:root {
    --bg-color: #FAFAFA;
    --text-color: #2D3748;
    --primary-color: #6C63FF;
    --secondary-color: #E9D8FD;
    --accent-color: #B794F4;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px -10px rgba(108, 99, 255, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-brand: 'Zeniq', sans-serif;
}

@font-face {
    font-family: 'Zeniq';
    src: url('../fonts/Zeniq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilitaires */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Barre de navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    /* Alignement à gauche */
    align-items: center;
    height: 70px;
}

.brand-name {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: auto;
    /* Push links to the right if needed, or just gap */
    padding-right: 30px;
    /* Space between brand and links */
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.hamburger {
    display: none;
    /* Masqué par défaut */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Superposition du menu mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Aligner le conteneur à gauche */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding-left: 10%;
    /* Padding général à gauche */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 400px;
    padding-left: 2rem;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.mobile-menu-overlay.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-link:hover {
    color: var(--primary-color);
}

.mobile-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #718096;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-link.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-link.disabled:hover {
    color: #718096;
    /* Pas de changement de couleur au survol pour désactivé */
}

/* Section Héros */
.hero {
    min-height: 100vh;
    /* Utiliser min-height pour éviter la coupure sur les petits écrans/grandiose contenu */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, var(--secondary-color), transparent 40%),
        radial-gradient(circle at bottom left, var(--secondary-color), transparent 40%);
    padding-top: 80px;
    /* Compte tenu de la navbar fixe */
}

.hero-container {
    display: flex;
    align-items: center;
    /* Alignement vertical centré */
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    z-index: 2;
    max-width: 650px;
    /* Limite la largeur du texte */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Pousse l'image vers la droite sur bureau */
    align-items: center;
    z-index: 2;
    padding-right: 5%;
    /* Ajoute un peu de padding pour ne pas coller au bord */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    /* Limite la hauteur de l'image */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    border-radius: 20px;
    /* Optionnel : ajoute des coins arrondis */
}

.hero-content {
    z-index: 2;
    max-width: 1200px;
    /* Increased from 800px */
    padding: 2rem;
    padding-left: 10%;
    /* Ajoute un peu de padding à gauche */
}

.hero h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero .intro-text {
    font-size: 1.1rem;
    color: #4A5568;
    max-width: 800px;
    /* Increased slightly to match wider header feeling */
    margin: 0 0 3rem 0;
    /* Alignement gauche signifie suppression de margin auto */
}

/* Flèche de défilement vers le bas */
.scroll-down-arrow {
    display: inline-block;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: 0;
    z-index: 10;
}

.scroll-down-arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -10px;
    animation: scrollBounce 2s infinite;
}

.scroll-down-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down-arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scrollBounce {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

#presentation h2,
#timeline h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.bio-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #4A5568;
}

/* Chronologie */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* La Ligne */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Les cercles sur la ligne */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.timeline-item.left::after {
    right: -14px;
}

.timeline-item.right::after {
    left: -14px;
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
}

/* Boîte de contenu */
.timeline-item .content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.timeline-item:hover .content {
    transform: translateY(-5px);
}

.timeline-item .date {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-item h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.timeline-item p {
    font-size: 1rem;
    color: #718096;
}

/* Chronologie et Menu Responsives */
@media screen and (max-width: 768px) {

    /* Menu Mobile */
    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        /* Pousser vers la droite */
    }

    .nav-content {
        justify-content: space-between;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
        /* Forcer l'alignement à gauche sur mobile */
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 17px;
        /* Aligner le cercle sur la ligne */
        right: auto;
    }

    .timeline-item.left {
        text-align: left;
        /* Surcharger la transformation droite spécifiquement */
    }

    /* Override pour Héros sur Mobile */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        text-align: left;
        /* Garder l'alignement à gauche */
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Texte au-dessus, Image en dessous */
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
        /* Centrer l'image sur mobile */
        margin-top: 10px;
        /* Réduit depuis 30px */
        margin-bottom: 40px;
        /* Ajout d'espace entre image et flèche */
        padding-right: 0;
        /* Supprimer desktop padding */
    }

    .hero .intro-text {
        margin-bottom: 1rem;
        /* Reduced from 3rem */
    }

    .hero-image img {
        max-height: 300px;
        max-width: 80%;
    }

    /* Assurer que la flèche est visible et positionnée correctement sur mobile */
    .scroll-down-arrow {
        bottom: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes de révélation au défilement (contrôlées par JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.scroll-slide-left.visible,
.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #A0AEC0;
    font-size: 0.9rem;
}

.tribute {
    font-size: 0.75rem;
    margin-top: 10px;
    opacity: 0.8;
}