:root {
    --primary: #2d3e50;
    --secondary: #f5f5f5;
    --accent: #4a6fa5;
    --accent-light: #6789b7;
    --text: #333333;
    --light-text: #666666;
    --border: #e0e0e0;
    --timeline-color: #4a6fa5;
}
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    padding: 1rem 0;
}

@media (max-width: 768px) {
nav ul {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background-color: white;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
z-index: 99;
padding: 0;
}
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin-right: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

body {
    /* Conservez vos autres styles pour body */
    background-color: white;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    margin: 0; /* Assurez-vous qu'il n'y a pas de marge */
    padding: 0; /* Assurez-vous qu'il n'y a pas de padding */
    min-height: 100vh; /* S'assure que le body prend au moins toute la hauteur de la fenêtre */
}


.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cv-button {
    display: inline-block;
    background-color: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid white;
}

.cv-button:hover {
    background-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Style responsive pour l'en-tête */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content {
        margin-bottom: 1.5rem;
    }
}

header {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.nav-menu li {
    margin-right: 2rem;
}

.nav-menu li:last-child {
    margin-right: 0;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px; /* Hauteur approximative de la navbar */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 1000;
        display: none;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }
}
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 1rem 0;
}

nav ul li {
    margin-right: 2rem;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--accent);
}

section {
    margin: 4rem 0;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.about {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.profile-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.about-details p {
    display: flex;
    margin-bottom: 1rem;
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
}

.skill-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--timeline-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-type {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-experience {
    background-color: #e63946;
    color: white;
}

.type-education {
    background-color: #2a9d8f;
    color: white;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--accent);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-left::after {
    right: -17px;
}

.timeline-right::after {
    left: -17px;
}

.timeline-left .timeline-content::after {
    content: '';
    position: absolute;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
    top: 22px;
    right: -10px;
}

.timeline-right .timeline-content::after {
    content: '';
    position: absolute;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
    top: 22px;
    left: -10px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-top: 0;
}

.timeline-meta {
    color: var(--light-text);
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-description ul {
    padding-left: 20px;
    margin-top: 10px;
}

.timeline-description li {
    margin-bottom: 5px;
}

.project-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item:last-child {
    border-bottom: none;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.project-description ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.project-description li {
    margin-bottom: 0.5rem;
}

.project-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-img:hover {
    transform: scale(1.02);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info strong {
    margin-right: 0.5rem;
    min-width: 80px;
    display: inline-block;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* .contact-form textarea {
    min-height: 150px;
    resize: vertical; 
} */

.button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--accent);
}

footer {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    width: 100vw; /* Utilise la largeur complète de la fenêtre */
    margin-left: calc(-50vw + 50%); /* Centre par rapport au viewport */
    margin-bottom: 0; /* Supprime la marge en bas */
    box-sizing: border-box;
    
    /* Ces propriétés vont aider à éliminer l'espace blanc en bas */
    position: relative; /* Pour maintenir le flux normal du document */
    bottom: 0; /* Colle le footer au bas */
}

footer + * {
    margin-top: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

.download-cv {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.download-cv:hover {
    background-color: white;
    color: var(--primary);
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
    }
    
    .profile-img {
        max-width: 250px;
        margin: 0 auto 2rem;
        display: block;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
    }
    
    .project-meta span {
        margin-bottom: 0.5rem;
    }
    
    /* Timeline responsive */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .timeline-left::after,
    .timeline-right::after {
        left: 15px;
    }
    
    .timeline-left .timeline-content::after {
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
        left: -10px;
        right: auto;
    }
}