/* --- 1. Définition des Variables de Couleur (votre "Brand") --- */
        :root {
            --couleur-fond: #0a0e1a;
            --couleur-fond-secondaire: #1a1f2b;
            --couleur-texte: #eae0d1;
            --couleur-accent: #d98a48;
            --couleur-accent-hover: #f0a060; /* Un orange plus clair au survol */
        }

        /* --- 2. Styles Généraux (Reset) --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--couleur-fond);
            color: var(--couleur-texte);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1100px;
            margin: 0 auto; /* Centre le contenu */
            padding: 40px 0;
        }

        h1, h2 {
            /* Simule la police "UMBRAL" de votre logo (serif) */
            font-family: Georgia, 'Times New Roman', Times, serif;
            color: var(--couleur-texte);
            margin-bottom: 20px;
        }
        
        h1 { font-size: 3rem; }
        h2 { font-size: 2.2rem; border-bottom: 2px solid var(--couleur-accent); padding-bottom: 10px; }
        p { margin-bottom: 15px; }
        a { color: var(--couleur-accent); text-decoration: none; }
        a:hover { color: var(--couleur-accent-hover); }

        /* --- 3. Barre de Navigation --- */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1100px;
            margin: 0 auto;
            padding: 15px 20px;
        }

        .nav-wrapper {
            background-color: var(--couleur-fond-secondaire);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        nav .logo {
            display: flex;
            align-items: center;
        }

        nav .logo img {
            height: 70px;
            width: auto;
            display: block;
            transition: height 0.3s ease;
        }

        .nav-wrapper.scrolled nav .logo img {
            height: 40px;
        }

        nav .nav-links {
            display: flex;
            align-items: center;
            list-style: none;
            gap: 5px;
        }

        nav .nav-links li {
            margin-left: 0;
        }

        nav .nav-links li a {
            font-weight: 500;
            font-size: 0.95rem;
            padding: 8px 16px;
            border-radius: 8px;
            position: relative; /* Requis pour positionner le soulignement */
            transition: color 0.3s ease, background-color 0.3s ease;
        }

        /* Le soulignement animé */
        nav .nav-links li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 4px; /* Un petit espace sous le texte */
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--couleur-accent);
            transition: width 0.3s ease;
        }

        nav .nav-links li a:hover {
            background-color: #2a2f3b; /* On garde ça pour le menu mobile */
            color: var(--couleur-accent);
        }
        
        /* On active l'animation du soulignement au survol */
        nav .nav-links li a:hover::after {
            width: 100%;
        }

        /* On déplace le contenu du lien (icône + texte) vers le haut au survol */
        nav .nav-links li a span,
        nav .nav-links li a svg {
            display: inline-block; /* Nécessaire pour que la transformation fonctionne */
            vertical-align: middle; /* Aligner icône et texte proprement */
            transition: transform 0.3s ease;
        }

        nav .nav-links li a:hover span,
        nav .nav-links li a:hover svg {
            transform: translateY(-3px);
        }

        /* Sur les écrans larges, on retire le fond au survol pour ne garder que la ligne */
        @media (min-width: 769px) {
            nav .nav-links li a:hover {
                background-color: transparent;
            }
        }

        /* Sélecteur de langue */
        .lang-selector {
            display: flex;
            gap: 2px;
            margin-left: 10px;
        }

        .lang-selector button {
            background: transparent;
            border: none;
            color: var(--couleur-texte);
            padding: 6px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
            transition: background-color 0.3s ease, color 0.3s ease;
            opacity: 0.6;
        }

        .lang-selector button:hover {
            opacity: 1;
            background-color: #2a2f3b;
        }

        .lang-selector button.active {
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
            opacity: 1;
        }

        /* --- Logo Background Fixed --- */
        .bg-logo {
            position: fixed;
            top: 50%;
            left: -100px;
            transform: translateY(-50%);
            width: 800px;
            height: 800px;
            background-image: url('img/logo.svg');
            background-repeat: no-repeat;
            background-size: contain;
            opacity: 0.08;
            z-index: 0;
            pointer-events: none;
        }

        /* --- 4. Section "Hero" (Haut de page) --- */
        .hero {
            text-align: center;
            padding: 80px 20px;
            background-color: transparent;
            position: relative;
        }

        .hero-logo {
            width: 120px;
            height: auto;
            margin-bottom: 20px;
        }

        .hero h1 {
            line-height: 1.2;
        }

        .hero .tagline {
            font-size: 1.3rem;
            color: var(--couleur-accent);
            font-weight: 600;
            margin-top: 10px;
        }

        .hero .intro {
            max-width: 700px;
            margin: 30px auto 0;
            font-size: 1.1rem;
            line-height: 1.7;
            color: var(--couleur-texte);
            opacity: 0.9;
        }

        /* --- 5. Section "Nos Projets" (Vos "Cards") --- */
        #projets {
            background-color: transparent;
            text-align: center;
        }

        .projets-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            margin-top: 40px;
        }

        .projet-card {
            background-color: var(--couleur-fond-secondaire);
            border-radius: 12px;
            text-align: left;
            transition: box-shadow 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .projet-card:hover {
            z-index: 2;
        }

        /* Carte principale (Sillons) mise en avant */
        .projet-card.principal {
            grid-column: span 2;
        }

        .projet-card.principal .card-image img,
        .projet-card.principal .card-image video {
            height: 280px;
        }

        .card-image {
            position: relative;
            overflow: hidden;
            border-radius: 12px 12px 0 0;
        }

        .projet-card img,
        .projet-card video {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background-color: #333;
        }

        .card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 15px;
            background: linear-gradient(to top, rgb(26 32 43) 0%, rgba(10, 14, 26, 0.7) 70%, rgba(10, 14, 26, 0) 100%);
        }

        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            background-color: var(--couleur-fond-secondaire);
            color: var(--couleur-texte);
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .tag.accent {
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
        }

        .card-content {
            padding: 25px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .card-content h3 {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 1.8rem;
            margin-bottom: 0;
        }

        .card-content .statut {
            display: inline-block;
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: bold;
            white-space: nowrap;
        }

        .card-content .statut.secondary {
            background-color: #3a3f4b;
            color: var(--couleur-texte);
        }

        .card-content p {
            color: rgba(234, 224, 209, 0.8);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-meta {
            display: flex;
            gap: 15px;
            font-size: 0.8rem;
            color: rgba(234, 224, 209, 0.6);
        }

        .card-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn {
            display: inline-block;
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.5px;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background-color: var(--couleur-accent-hover);
            color: var(--couleur-fond);
        }

        .btn.btn-secondary {
            background-color: #3a3f4b;
            color: var(--couleur-texte);
        }

        .btn.btn-secondary:hover {
            background-color: #4a4f5b;
        }

        .btn.disabled {
            opacity: 0.6;
            pointer-events: none;
            cursor: not-allowed;
        }

        .equipe-cta {
            text-align: center;
            margin-top: 40px;
        }

        .btn.btn-ghost {
            background-color: transparent;
            border: 2px dashed var(--couleur-accent);
            color: var(--couleur-accent);
        }

        .btn.btn-ghost:hover {
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
        }

        /* --- 6. Section Équipe --- */
        #equipe {
            background-color: transparent;
            text-align: center;
        }

        .equipe-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .membre-card {
            background-color: var(--couleur-fond-secondaire);
            border-radius: 12px;
            padding: 30px 20px;
            text-align: center;
        }

        .membre-card:hover {
        }

        .membre-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 20px;
        }

        .membre-card h3 {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .membre-role {
            color: var(--couleur-accent);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .membre-card p {
            font-size: 0.9rem;
            color: rgba(234, 224, 209, 0.7);
            line-height: 1.5;
        }

        /* --- 7. Section Roadmap --- */
        #roadmap {
            background-color: transparent;
            text-align: center;
        }

        /* Animation de pulsation pour l'étape en cours */
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(217, 138, 72, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(217, 138, 72, 0); }
            100% { box-shadow: 0 0 0 0 rgba(217, 138, 72, 0); }
        }

        .timeline {
            position: relative;
            max-width: 800px;
            margin: 40px auto 0;
            padding-left: 30px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: var(--couleur-fond-secondaire);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 30px;
            padding-left: 30px;
        }

        /* Style de base pour les points de la timeline */
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -36px;
            top: 5px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--couleur-fond-secondaire);
            border: 2px solid var(--couleur-accent);
        }

        /* Style pour les points des étapes terminées */
        .timeline-item.completed::before {
            background-color: var(--couleur-accent);
        }

        /* Style pour le point de l'étape en cours (avec pulsation) */
        .timeline-item.current::before {
            background-color: var(--couleur-accent);
            animation: pulse 2s infinite;
        }

        .timeline-content {
            background-color: var(--couleur-fond-secondaire);
            padding: 20px;
            border-radius: 12px;
            text-align: left;
            border: 2px solid transparent;
            transition: border-color 0.3s ease, opacity 0.3s ease;
        }
        
        /* Mise en avant des étapes terminées */
        .timeline-item.completed .timeline-content {
            border-color: rgba(45, 90, 60, 0.5);
        }
        
        /* Estomper les étapes à venir */
        .timeline-item:not(.completed):not(.current) .timeline-content {
            opacity: 0.6;
        }

        .timeline-content:hover {
            border-color: var(--couleur-accent);
            opacity: 1; /* Rendre l'élément complètement visible au survol */
        }

        .timeline-date {
            font-size: 0.8rem;
            color: var(--couleur-accent);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .timeline-content h3 {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: 1.1rem;
            margin-bottom: 8px;
        }

        .timeline-content p {
            font-size: 0.9rem;
            color: rgba(234, 224, 209, 0.7);
            margin-bottom: 0;
            line-height: 1.5;
        }

        .timeline-status {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
            margin-top: 10px;
        }

        .timeline-status.done {
            background-color: #2d5a3c;
            color: #8fdf9f;
        }

        .timeline-status.in-progress {
            background-color: rgba(217, 138, 72, 0.2);
            color: var(--couleur-accent);
        }

        .timeline-status.upcoming {
            background-color: #3a3f4b;
            color: rgba(234, 224, 209, 0.6);
        }

        @media (max-width: 768px) {
            .timeline {
                padding-left: 20px;
            }

            .timeline-item {
                padding-left: 20px;
            }

            .timeline-item::before {
                left: -26px;
                width: 10px;
                height: 10px;
            }

            .timeline-content {
                padding: 15px;
            }
        }

        /* --- 8. Section Contact --- */
        #contact {
            background-color: var(--couleur-fond-secondaire);
            text-align: center;
            padding: 60px 20px;
            position: relative;
            z-index: 1;
        }

        #contact .container {
            max-width: 600px;
        }

        #contact h2 {
            border-bottom: none;
            margin-bottom: 15px;
        }

        #contact .contact-intro {
            color: rgba(234, 224, 209, 0.8);
            margin-bottom: 30px;
        }

        .contact-email {
            display: inline-block;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--couleur-accent);
            margin-bottom: 30px;
            padding: 12px 24px;
            background-color: var(--couleur-fond);
            border-radius: 8px;
            transition: background-color 0.3s ease;
        }

        .contact-email:hover {
            background-color: #0d1220;
            color: var(--couleur-accent-hover);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background-color: var(--couleur-fond);
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .social-link:hover {
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
        }

        /* --- 9. Footer --- */
        footer {
            text-align: center;
            padding: 40px 20px;
            background-color: #050810;
            position: relative;
            z-index: 1;
        }

        .footer-logo {
            height: 80px;
            width: auto;
            margin-bottom: 20px;
            opacity: 0.6;
        }

        footer p {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 8px;
        }

        footer .made-in {
            color: #888;
            font-size: 0.8rem;
        }

        footer .made-in span {
            color: var(--couleur-accent);
        }

        /* --- Bouton retour en haut --- */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            background-color: var(--couleur-accent);
            color: var(--couleur-fond);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 50;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background-color: var(--couleur-accent-hover);
            transform: translateY(-3px);
        }

        /* --- Animations au scroll --- */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .fade-in-delay-1 { transition-delay: 0.1s; }
        .fade-in-delay-2 { transition-delay: 0.2s; }
        .fade-in-delay-3 { transition-delay: 0.3s; }

        /* --- 11. Menu Burger Mobile --- */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
        }

        .menu-toggle span {
            display: block;
            width: 100%;
            height: 2px;
            background-color: var(--couleur-texte);
            transition: all 0.3s ease;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* --- 9. Responsive --- */
        @media (max-width: 768px) {
            /* Navigation mobile */
            .menu-toggle {
                display: flex;
            }

            nav .nav-links {
                position: fixed;
                top: 70px;
                left: 0;
                right: 0;
                flex-direction: column;
                background-color: rgba(26, 31, 43, 0.98);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                padding: 20px;
                gap: 0;
                transform: translateY(-150%);
                opacity: 0;
                transition: all 0.3s ease;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                z-index: 99;
            }

            /* Masquer les icônes dans le menu mobile */
            nav .nav-links li a svg {
                display: none;
            }

            nav .nav-links.active {
                transform: translateY(0);
                opacity: 1;
            }

            nav .nav-links li {
                width: 100%;
                text-align: center;
            }

            nav .nav-links li a {
                display: block;
                padding: 15px;
                font-size: 1.1rem;
            }

            nav .nav-links li a::after {
                display: none;
            }

            .lang-selector {
                margin: 15px auto 0;
            }

            /* Hero responsive */
            .hero {
                padding: 60px 20px;
            }

            .hero-logo {
                width: 80px;
            }

            h1 {
                font-size: 2rem;
            }

            .hero .tagline {
                font-size: 1rem;
            }

            .hero .intro {
                font-size: 0.95rem;
                line-height: 1.6;
            }

            /* Titres */
            h2 {
                font-size: 1.6rem;
            }

            /* Cards projets */
            .projets-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .projet-card.principal {
                grid-column: span 1;
            }

            .projet-card.principal .card-image img,
            .projet-card.principal .card-image video,
            .projet-card img,
            .projet-card video {
                height: 180px;
            }

            .card-content h3 {
                font-size: 1.5rem;
            }

            .card-header {
                flex-direction: column;
                gap: 10px;
            }

            .card-footer {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .card-footer .btn {
                width: 100%;
            }

            .card-tags {
                gap: 6px;
            }

            .tag {
                font-size: 0.7rem;
                padding: 3px 8px;
            }

            /* Background logo */
            .bg-logo {
                width: 400px;
                height: 400px;
                left: -150px;
                opacity: 0.05;
            }

            /* Contact */
            #contact {
                padding: 40px 20px;
            }

            .contact-email {
                font-size: 1rem;
                padding: 10px 20px;
                word-break: break-all;
            }

            .social-links {
                flex-direction: column;
                gap: 10px;
            }

            .social-link {
                width: 100%;
                justify-content: center;
            }

            /* Footer */
            footer {
                padding: 20px 15px;
            }

            .footer-logo {
                height: 60px;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 40px 15px;
            }

            h1 {
                font-size: 1.6rem;
            }

            .hero .tagline {
                font-size: 0.9rem;
            }

            .container {
                width: 95%;
                padding: 30px 0;
            }

            .btn {
                padding: 10px 16px;
                font-size: 0.85rem;
            }
        }