/* Base page styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1.1rem; /* Adjusted for better readability */
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #222;
}

/* Navigation menu styling */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #007aff;
    color: #ffffff;
}

/* Main content styling */
main {
    padding: 40px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Education section */
.education-section {
    margin-bottom: 40px;
}

.education-section .profile-image {
    margin-bottom: 20px;
}

.education-section .profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Rounded image */
    object-fit: cover;
}

/* Skills section */
.skills-section {
    text-align: center;
    margin-bottom: 40px;
}

.skills-section h2 {
    font-size: 1.6rem;
    margin-top: 20px;
    color: #333;
}

.skills-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    width: 150px; /* Adjusted for better size */
    text-align: center;
}

.skill-item img {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Rounded images */
    object-fit: cover;
}

/* Adjusting for responsive behavior */
@media (max-width: 768px) {
    main {
        padding: 20px;
    }

    .education-section .profile-image img {
        width: 120px;
        height: 120px;
    }

    .skills-group {
        flex-direction: column; /* Stack items vertically */
    }

    .skill-item {
        width: 100%;
    }

    .skills-section h2 {
        font-size: 1.4rem; /* Slightly smaller */
    }
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer address {
    color: #333;
    font-style: normal;
}

footer a {
    color: #007aff;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Formulaire de contact */
.form-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 4px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #007aff; /* Accent bleu clair */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
}

.submit-btn:hover {
    background-color: #005bb5; /* Teinte plus foncée */
    transform: translateY(-3px);
}
