/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --couleur-fond: #CAC426;  /* Olive */
    --couleur-texte: #222223; /* Noir Anthracite */
    --couleur-creme: #FFFEEC; /* Crème */
}

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

body {
    font-family: 'Switzer', sans-serif;
    color: var(--couleur-texte);
    background-color: #FFFEEC;
    overflow-x: hidden;
}

/* =========================================
   2. TRANSITIONS & ANIMATIONS
   ========================================= */
@view-transition {
    navigation: auto;
}

/* Animation Text Reveal (Utilisé par JS) */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    display: inline-block;
    will-change: transform, opacity;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navigation-wrapper {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
}

header {
    background-color: var(--couleur-fond);
    padding: 20px 24px;
}

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

.logo {
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--couleur-texte);
    cursor: pointer;
}

.desktop-nav { display: none; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a, .btn-contact {
    text-decoration: none;
    color: var(--couleur-texte);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
        letter-spacing: -0.2px;

}

.nav-links a:hover, .btn-contact:hover {
    opacity: 0.6;
    transition: 0.3s;
}

.mobile-menu-btn {
    display: block;
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    color: var(--couleur-texte);
}

/* Dans style.css, modifie la classe .sticky-banner */
.sticky-banner {
    background-color: #222223;
    color: var(--couleur-creme);
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Nouvelles propriétés pour coller sous le header */
    position: sticky;
    top: 77px; /* Ajuste cette valeur selon la hauteur exacte de ton header */
    z-index: 1000;
    margin-top: 0;
    min-height: 45px;
}

.sticky-banner p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.15px;
}

@media (max-width: 900px) {
    .sticky-banner {
            top: 57px; /* Ajuste cette valeur selon la hauteur exacte de ton header */

    }
    
}

/* Ajoute ceci à la fin de la section .sticky-banner */
.sticky-banner p {
    transition: opacity 0.5s ease-in-out; /* Effet de fondu doux */
}

/* Classe utilitaire pour l'animation de transition */
.fade-out {
    opacity: 0;
}

/* OVERLAY MOBILE */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--couleur-fond);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.open { transform: translateY(0); }

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: -70px;
}

.close-menu-btn { cursor: pointer; color: var(--couleur-texte); }
.close-menu-btn svg { width: 30px; height: 30px; }

.overlay-links {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.overlay-link {
    font-family: 'Gambarino', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--couleur-texte);
    text-decoration: none;
    text-transform: uppercase;
    position: relative; 
    padding-bottom: 5px;
}

.overlay-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--couleur-texte);
    transition: width 0.3s ease-out;
}

.overlay-link:hover::after, .overlay-link:active::after { width: 100%; }

/* =========================================
   4. HERO - DYNAMIC LUMINANCE (NO RED)
   ========================================= */
.hero {
    min-height: 87vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; 
    padding-top: 12vh;
    padding-left: 5vw;
    padding-right: 5vw;
    position: relative; 
    overflow: hidden;
}


.hero-intro, .hero-name, .hero-description {
    color: #CAC426; /* Couleur Olive d'origine */
}

.hero {  
    /* EFFET RAFFINÉ : Un point de lumière centrale qui diffuse */
    /* On utilise tes couleurs Olive (#CAC426) et Crème (#FFFEEC) */
/* Exemple avec un bleu nuit et un violet */
    background: radial-gradient(circle at 50% 50%, 
    #3a3a0b 0%,    /* Centre : Crème */
    #222206 40%,   /* Milieu : Olive clair */
    #131102 100%   /* Bord : Olive foncé */);    background-size: 180% 180%;
    
    /* On appelle l'animation nommée "aurora" définie plus bas */
    animation: aurora 5s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% {
        background-position: 20% 30%;
        background-size: 180% 180%;
    }
    50% {
        background-position: 60% 70%;
        background-size: 220% 220%; /* La lumière s'étend légèrement */
    }
    100% {
        background-position: 40% 10%;
        background-size: 180% 180%;
    }
}

/* --- ANIMATION HAUTE ÉNERGIE --- */
@keyframes highEnergy {
    0% {
        transform: translate(-5%, -5%) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(10%, 5%) rotate(8deg) scale(1.3);
    }
    66% {
        transform: translate(-10%, 15%) rotate(-5deg) scale(0.8);
    }
    100% {
        transform: translate(5%, -10%) rotate(12deg) scale(1.2);
    }
}

/* Dans style.css, modifie la section mobile */
@media (max-width: 900px) {
    .hero {
        /* On utilise dvh (dynamic viewport height) pour éviter les sauts */
        height: 90dvh !important; 
        min-height: auto;
    }
}

.hero-name, .hero-description, .manifesto-title {
    /* Force une hauteur de ligne stable avant le découpage JS */
    line-height: 1.1; 
    /* Empêche le texte de s'afficher avant que GSAP ne soit prêt (optionnel) */
    visibility: visible; 
}



.hero-content { 
    width: 100%; 
    z-index: 10;
    /* Pas de max-width restrictif pour laisser le titre respirer */
}


.hero-name {
    font-family: 'Gambarino', serif;
    font-size: clamp(3.5rem, 13vw, 11rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #CAC426; /* Olive */
    margin-left: -5px; /* Petit alignement optique */
}

/* LA DESCRIPTION (EN BAS À DROITE) */
.hero-description {
   position: relative; /* On enlève 'absolute' */
    margin-top: 100px;    /* Espace entre le nom et la description */
    text-align: left;
    max-width: 800px;
    
    font-family: 'Switzer', sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #CAC426; /* Ton Olive signature */
    
    /* On supprime les anciennes valeurs de positionnement */
    bottom: auto;
    right: auto; 
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .hero {
        padding-top: 60px;
        /* On remplace 100vh par 100svh pour bloquer la hauteur */
        height: 50svh; 
        min-height: -webkit-fill-available; /* Correctif pour vieux iOS */
        
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Aide à caler l'indicateur en bas */
    }

    .hero-content { 
    width: 100%; 
    z-index: 10;
    margin-top: -30px;
    /* Pas de max-width restrictif pour laisser le titre respirer */
}

    .hero-description {
        position: static; 
        text-align: left;
        margin-top: 0px;
        max-width: 100%;
        bottom: auto;
        right: auto;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 60px; /* Un peu plus haut que le bord strict */
        left: 5vw;
        margin-top: -40px;
    }
}

/* =========================================
   SCROLL INDICATOR (HERO)
   ========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 63px;
    left: 5vw; /* Aligné sur la marge du nom */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    opacity: 0.8;

    text-decoration: none; 
    color: inherit;
    cursor: pointer;
}

.scroll-text {
    font-family: 'Switzer', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #CAC426; /* Ton Olive signature */
    text-transform: uppercase;
}

.scroll-arrow {
    color: #CAC426;
    display: flex;
    align-items: center;
    animation: bounceDown 2s infinite ease-in-out;
}

/* ANIMATION DE REBOND */
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}



/* =========================================
   SECTION MANIFESTO (ACCROCHE)
   ========================================= */
.manifesto-section {
    background-color: #FFFEEC; /* Couleur Crème */
    padding: 40px 120px  5vw 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;

    
}

.manifesto-container {
    max-width: 1100px; /* On limite la largeur pour que le texte revienne à la ligne joliment */
    margin: 0 ;
    

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.manifesto-title {
    font-family: 'Switzer', sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem); 
    line-height: 1.3;
    color: #222223;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: left;
    letter-spacing: -0.75px;

    text-align: left;
}

/* Nécessaire pour l'animation SplitType */
.manifesto-title .word {
    display: inline-block;
    line-height: 1.1;
    padding-bottom: 5px;
}

.cta-manifesto {
    display: inline-block;
    /* L'animation du bouton sera gérée par le CSS hover existant */
}

/* =========================================
   BOUTON MANIFESTO (STYLE INVERSÉ)
   ========================================= */

/* État par défaut : Fond Noir / Texte Crème */
.cta-manifesto .btn-primary {
    background-color: #222223; 
    color: #FFFEEC;            
    border: 1px solid #222223;
    
    /* Petit ajustement pour qu'il s'aligne parfaitement à gauche */
    margin-top: 10px; 
}

/* État au survol : On inverse (Devient transparent avec texte noir) */
.cta-manifesto .btn-primary:hover {
    background-color: transparent;
    color: #222223;
    border: 1px solid #222223;
}

/* =========================================
   SECTION SÉLECTION PROJETS (HOME)
   ========================================= */
.selected-projects-section {
    padding: 4vw 5vw 100px 5vw;
    background-color: #FFFEEC;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 100px; /* Grand espace entre les projets */
}

.project-preview {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    /* Opacité 0 au départ pour l'animation GSAP */
    opacity: 0; 
}

/* CONTENEUR MÉDIA (Image + Vidéo) */
.media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9; /* Format Cinéma large */
    background-color: #222223; /* Fond noir pendant chargement */
    overflow: hidden;
    margin-bottom: 25px;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* On cache l'image par défaut pour laisser place à la vidéo qui défile */
    opacity: 0; 
    transition: opacity 0.4s ease;
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La vidéo est maintenant visible par défaut */
    opacity: 1; 
}

/* EFFET HOVER : L'image disparait, la vidéo apparait */
.project-preview:hover .preview-img {
    opacity: 0;
}
.project-preview:hover .preview-video {
    opacity: 1;
}

/* TEXTES */
.preview-info {
    border-top: 1px solid rgba(34, 34, 35, 0.2); /* Petite ligne fine comme sur la maquette ? (optionnel) */
    padding-top: 20px;
}

.preview-title {
    font-family: 'Switzer', serif;
    font-size: 2.8rem;
    letter-spacing: -0.75px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #222223;
}

.preview-desc {
    font-family: 'Switzer', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .media-wrapper {
        aspect-ratio: 4 / 3; /* Plus carré sur mobile */
    }
    .preview-title {
        font-size: 2rem;
    }
}

/* =========================================
   5. EXPERTISE (ACCUEIL)
   ========================================= */
.expertise-section {
    padding: 80px 5vw; /* C'EST ICI QUE SE JOUE LA MARGE */
    background-color: #FFFEEC; 
}

.section-title {
    font-family: 'Gambarino', serif; /* C'EST ICI POUR LA POLICE */
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 50px;
    color: var(--couleur-texte);
    font-weight: 400;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* CARTES */
.expertise-card {
    display: block;
    position: relative; /* Pour positionner la flèche */
    height: 400px;
    padding: 30px;
    color: #222223;
    border: 1px solid var(--couleur-texte);
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.expertise-card:hover { transform: translateY(-10px); }

/* Couleurs des cartes */
.card-graphisme { background-color: #e5e5e5; }
.card-video { background-color: #CAC426; } /* Pas de border:none ici ! */
.card-web { background-color: #cccccc; }

/* Titre dans la carte */
.card-title {
    font-family: 'Gambarino', serif;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 400;
    margin: 0;
    text-decoration: none;
}

/* Flèche (Position Absolue en bas à droite) */
.card-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--couleur-texte);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.expertise-card:hover .card-arrow { transform: translate(10px, -5px); }

/* CTA (Bouton) */
.cta-container { text-align: center; margin-top: 60px; }

.btn-primary {
    display: inline-block;
    background-color: var(--couleur-texte);
    color: var(--couleur-creme);
    border: 1px solid var(--couleur-texte);
    padding: 15px 40px;
    font-family: 'Switzer', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary:hover { background-color: var(--couleur-creme); color: #222223; }

/* =========================================
   NOUVEAUX BLOCS DE LECTURE (EXPERTISE)
   ========================================= */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    
    /* On force un grand espace */
    gap: 50px !important; 
    
    margin-bottom: 60px;
    width: 100%;
}

/* LE STYLE DU BLOC */
.reading-block {
    padding: 40px 30px;
    height: 350px; /* Hauteur fixe pour l'uniformité */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Titre en haut, texte en bas */
    transition: transform 0.3s ease; /* Juste une petite réactivité si besoin */
    letter-spacing: -0.65px;
}

/* TYPOGRAPHIE */
.block-title {
    font-family: 'Gambarino', serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.block-desc {
    font-family: 'Switzer', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 90%;
}

/* COULEURS (ALTERNANCE) */

/* 1. Fond Olive / Texte Noir */
.block-olive {
    background-color: #CAC426; /* Olive */
    color: #222223; /* Noir */
    border: 1px solid #222223; /* Fine bordure pour séparer si collés */
}

/* 2. Fond Noir / Texte Olive */
.block-black {
    background-color: #222223; /* Noir */
    color: #CAC426; /* Olive */
    border: 1px solid #222223; /* Bordure noire */
}

/* --- RESPONSIVE MOBILE (< 900px) --- */
@media (max-width: 900px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 30px !important;
    }

    .reading-block {
        height: auto; /* Hauteur libre selon le texte */
        min-height: 250px;
        padding: 30px 20px;
    }

    .block-title {
        font-size: 2rem;
        margin-bottom: 20px; /* Espace car en "height: auto" ils ne sont plus justify-between */
    }
 }

/* =========================================
   NOUVEAU MARQUEE DOUBLE & INCLINÉ
   ========================================= */
.tools-marquee-container {
    position: relative;
    padding: 60px 0; /* Espace pour laisser respirer l'inclinaison */
    overflow: hidden;
    background-color: var(--couleur-creme);
    margin-top: -60px;
}

.marquee-band {
    width: 160%; /* Plus large pour compenser la rotation sans voir les bords */
    margin-left: -30%;
    padding: 30px 0;
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--couleur-texte);
}

/* Bande Olive (Tech) */
.band-tech {
    background-color: var(--couleur-fond);
    transform: rotate(-1.5deg) translateY(30px);
    z-index: 2;
}

/* Bande Noire (Créa) */
.band-crea {
    background-color: var(--couleur-texte);
    color: var(--couleur-creme);
    transform: rotate(-1.5deg) translateY(30px);
    z-index: 1;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: scrollLinear 25s linear infinite;
}

/* On inverse le sens de défilement pour la bande noire */
.band-crea .marquee-content {
    animation-direction: reverse;
}

.tool {
    flex-shrink: 0; /* Empêche les éléments de rétrécir si la ligne est trop longue */
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 40px;
    font-family: 'Switzer', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tool img {
    height: 35px;
    width: auto;
    filter: brightness(0); /* Logos noirs sur fond Olive */
}

.band-crea .tool img {
    filter: brightness(0) invert(1); /* Logos crème sur fond Noir */
}

@keyframes scrollLinear {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .tools-marquee-container { padding: 40px 0; margin-top: -100px; margin-bottom: -40px; }
    .marquee-band { width: 200%; margin-left: -50%; padding: 15px 0; }
    .tool { font-size: 1.1rem; margin: 0 20px; }
    .tool img { height: 25px; }
}



/* =========================================
   7. PAGE PROJETS
   ========================================= */
.projects-page { background-color: #FFFEEC; padding: 40px 5vw 150px 5vw; min-height: 100vh; }
.projects-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.page-title { font-family: 'Gambarino', serif; font-size: clamp(3.5rem, 10vw, 6rem); color: var(--couleur-texte); font-weight: 400; line-height: 1; }

.filter-container { 
    position: relative; 
    margin-left: auto; /* C'EST CETTE LIGNE QUI FORCE L'ALIGNEMENT À DROITE */
}
.filter-btn {
    background: var(--couleur-texte); 
    color: var(--couleur-creme);
    border: 1px solid var(--couleur-texte); padding: 12px 24px;
    font-family: 'Switzer', sans-serif; font-weight: 600; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.filter-dropdown {
    position: absolute; top: 110%; right: 0; background-color: #222223; color: #FFFEEC; padding: 10px 0; display: none; z-index: 100;
}
.filter-dropdown.show { display: block; }
.filter-option { padding: 10px 20px; cursor: pointer; }
.filter-option:hover { background-color: #FFFEEC; color: #222223; }

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes au lieu de 2 */
    column-gap: 30px; /* Un peu plus serré pour tenir à trois */
    row-gap: 60px; 
}
.project-item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.project-thumb { width: 100%; aspect-ratio: 1 / 1; background-color: #e0e0e0; margin-bottom: 25px; overflow: hidden; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.project-item:hover .project-img { transform: scale(1.05); }

.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.tag {
    border: 1px solid var(--couleur-texte); padding: 6px 16px;
    font-family: 'Switzer', sans-serif; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; display: inline-block;
}
.project-name { font-family: 'Gambarino', serif; font-size: 1.9rem; font-weight: 400; margin-bottom: 5px; }
.project-year { font-family: 'Switzer', sans-serif; font-size: 1rem; color: #555; }

/* =========================================
   8. PAGE DÉTAIL PROJET
   ========================================= */
.project-detail-page { background-color: #FFFEEC; padding-bottom: 0; position: relative; display: block; }
.project-hero { padding: 80px 5vw 60px 5vw; text-align: left; max-width: 1000px; margin: 0 auto; margin-top: -30px; }
.project-meta { display: flex; justify-content: left; gap: 10px; margin-bottom: 25px; }
.project-main-title { font-family: 'Gambarino', serif; font-size: clamp(3rem, 10vw, 6rem); line-height: 1; color: var(--couleur-texte); margin-bottom: 30px; font-weight: 400; }
.project-subtitle { 
    font-family: 'Switzer', sans-serif; 
    font-size: 1.1rem; color: #555; 
    max-width: 650px;
     line-height: 1.6; 
    text-align: left; 
    text-wrap: balance; 
        margin-bottom: 20px;
}

.project-cover { 
    max-width: 1000px;       /* MÊME largeur que .project-hero */
    margin: 0px auto 60px;  /* Centre le bloc sur la page */
    padding: 0 5vw;          /* MÊME padding que le texte pour l'alignement */
    width: 100%;
}

.cover-img { 
    width: 100%;             /* L'image prend toute la place des 1000px */
    height: auto;            /* Garde ses proportions naturelles */
    display: block;
    object-fit: cover; 
}

/* Ajustement Mobile */
@media (max-width: 900px) {
    .project-cover {
        margin: 0px auto 40px;
    }

    .projects-page {
        padding: 40px 5vw 50px 5vw;
    }
}

@media (max-width: 900px) {
    .project-hero {
        text-align: left;
    }
    .project-main-title {
        text-align: left;
    }
    .project-subtitle {
        text-align: left;
    }

     .project-name {
        font-size: 2.2rem;
    }

    .project-meta {
        text-align: left;
        justify-content: left;
    }
}



.project-infos { 
    max-width: 1000px; 
    width: 100%;      /* S'assure que le bloc occupe l'espace jusqu'à 1200px */
    margin: 0 auto 100px auto; 
    padding: 0 5vw; 
    display: block;   /* Force le comportement en bloc pour le centrage */
}


.accordion-container { border-top: 1px solid var(--couleur-texte); }
.accordion-item { border-bottom: 1px solid var(--couleur-texte); overflow: hidden; }

.accordion-header { 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 0; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
}

.accordion-title { 
    font-family: 'Gambarino', serif; 
    font-size: 1.6rem; 
    font-weight: 400; 
    color: var(--couleur-texte);
}

/* --- LE NOUVEAU CODE --- */
.accordion-icon {
    display: flex;
    transition: transform 0.3s ease; /* Animation fluide */
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg); /* Rotation en croix */
}
/* ----------------------- */

.accordion-content { max-height: 0; transition: max-height 0.4s ease-out; }

.content-inner { padding-bottom: 20px; font-family: 'Switzer', sans-serif; font-size: 1rem; line-height: 1.6; }

.project-gallery { padding: 0 5vw; display: flex; flex-direction: column; gap: 40px; margin-bottom: 120px; }
.gallery-img { width: 100%; height: auto; display: block; }

.next-project { background-color: #222223; color: #FFFEEC; padding: 100px 5vw; text-align: center; }
.next-link { font-family: 'Gambarino', serif; font-size: clamp(2.5rem, 8vw, 5rem); color: #FFFEEC; text-decoration: none; }

/* =========================================
   PIMP MY PROJECT HERO (HOVER)
   ========================================= */

/* 1. LES TAGS (Inversion de couleur stylée) */
.project-meta .tag {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default; /* Juste pour le style */
    background: transparent;
}

.project-meta .tag:hover {
    background-color: var(--couleur-texte); /* Devient noir */
    color: #FFFEEC; /* Texte crème */
    transform: translateY(-3px); /* Petit saut */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 2. LE TITRE (Effet de glissement subtil) */
.project-main-title {
    transition: transform 0.5s ease;
    display: inline-block; /* Nécessaire pour le transform */
}

.project-main-title:hover {
    /* Glisse un tout petit peu vers la droite pour dire "je suis vivant" */
    transform: translateX(10px) skewX(-2deg); 
    color: #CAC426; /* Petite teinte Olive au survol ? (Optionnel) */
}


/* =========================================
   9. PAGE CONTACT & POPUP (MODIFIÉ : FERRÉ À GAUCHE)
   ========================================= */
.contact-page-wrapper { background-color: #FFFEEC; min-height: 80vh; padding: 40px 5vw 100px 5vw; }

.contact-intro { 
    margin-bottom: -30px; 
    max-width: 1000px; /* Un peu moins large pour la lecture */
    text-align: left;  /* Force l'alignement à gauche */
    margin-left: 0;    /* Colle le bloc à gauche */
}

.big-contact-title { 
    font-family: 'Gambarino', serif; 
    font-size: clamp(3.5rem, 10vw, 6rem); 
    margin-bottom: 30px; 
    line-height: 1; 
    font-weight: 400;
    margin-left: -5px; /* Petit décalage pour aligner optiquement le "T" avec le reste */
}

.contact-desc { font-family: 'Switzer', sans-serif; font-size: 1.2rem; }

.form-container-box { 
    width: 100%; 
    max-width: 900px; 
    margin: 0; /* Enlève le "auto" pour ne plus centrer la boîte */
    border: 1px solid #909090; 
    padding: 60px 80px; 
}

.clean-form { display: flex; flex-direction: column; gap: 50px; }
.form-row { display: flex; gap: 60px; }
.input-group { display: flex; flex-direction: column; width: 100%; }
.input-group input, .input-group textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid #222223; padding: 10px 0; font-family: 'Switzer', sans-serif; font-size: 1.2rem; outline: none; }
.input-group input:focus, .input-group textarea:focus { border-bottom-width: 2px; }

.btn-submit-pill { background-color: #222223; border: 1px solid #222223; padding: 15px 60px; font-family: 'Switzer', sans-serif; font-weight: 600; text-transform: uppercase; cursor: pointer; color: var(--couleur-creme); }
.btn-submit-pill:hover 
{ background: #222223; 
    color: #FFFEEC; }

/* =========================================
   POP-UP SUCCÈS (MODAL CENTRÉ)
   ========================================= */

/* 1. LE CONTENEUR PRINCIPAL (L'OVERLAY NOIR) */
.success-modal {
    /* Positionnement fixe pour couvrir tout l'écran */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Très haut pour passer au-dessus du menu et du reste */

    /* Le fond noir semi-transparent */
    background-color: rgba(18, 18, 18, 0.9); /* Noir profond à 90% d'opacité */

    /* Centrage de la boîte blanche grâce à Flexbox */
    display: flex;
    justify-content: center;
    align-items: center;

    /* État caché par défaut (transition fluide) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Important : laisse passer les clics quand caché */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Transition douce */
}

/* 2. L'ÉTAT "VISIBLE" (Ajouté par le JavaScript) */
.success-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Réactive les clics sur le modal */
}

/* 3. LA BOÎTE DE CONTENU AU MILIEU */
.modal-content {
    background-color: #FFFEEC; /* Couleur crème de votre site */
    padding: 60px;
    border: 1px solid #CAC426; /* Fine bordure olive */
    text-align: center;
    
    /* Largeur */
    width: 90%;
    max-width: 450px;

    /* Petite animation d'entrée supplémentaire (optionnel mais chic) */
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Quand le modal s'affiche, la boîte se met en place */
.success-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

/* Styles des textes intérieurs (pour être sûr que c'est joli) */
.modal-content h3 {
    font-family: 'Gambarino', serif;
    font-size: 2.5rem;
    color: #222223;
    margin-bottom: 20px;
}

.modal-content p {
    font-family: 'Switzer', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}
.btn-close-modal { background: #CAC426; border: none; padding: 15px 60px; font-family: 'Switzer', sans-serif; font-weight: 700; cursor: pointer; }

/* =========================================
   10. PAGE À PROPOS (ÉDITORIAL)
   ========================================= */
.editorial-title { font-family: 'Gambarino', serif; font-size: clamp(4.5rem, 15vw, 10rem); color: var(--couleur-texte); font-weight: 400; line-height: 0.9; margin-bottom: -40px; letter-spacing: -0.03em; }

/* =========================================
   AJUSTEMENT TITRE À PROPOS (Pour matcher PROJETS)
   ========================================= */
.title-adjust {
    /* On reprend exactement les valeurs de .page-title */
    font-size: clamp(3.5rem, 10vw, 6rem) !important; 
    line-height: 1 !important;
    letter-spacing: normal !important;
    
    /* Optionnel : Si vous le trouvez encore un poil trop gros visuellement 
       par rapport à "Projets" (car le mot est plus court), 
       passez le 6rem à 5.5rem ci-dessus */
}

.about-intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 30px; align-items: start; }
.intro-text p { font-family: 'Switzer', sans-serif; font-size: 1.15rem; line-height: 1.6; margin-bottom: 25px; max-width: 550px; }
.link-underline { display: inline-block; margin-top: 10px; font-family: 'Switzer', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--couleur-texte); text-decoration: none; border-bottom: 2px solid var(--couleur-texte); }
.intro-image { width: 100%; aspect-ratio: 1/1; background-color: #e0e0e0; }
.img-square { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-statement h2 { font-family: 'Switzer', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; font-weight: 400; }

/* 2. Espace sous la Phrase (pour égaliser) */
.about-statement {
    margin-bottom: 40px; /* On met EXACTEMENT la même valeur ici */
}

/* --- AJUSTEMENT MOBILE (Pour garder la symétrie aussi sur téléphone) --- */
@media (max-width: 900px) {
    .about-intro-split {
        margin-bottom: 40px; /* Si on réduit en haut... */
    }
    .about-statement {
        margin-bottom: 10px; /* ...on réduit aussi en bas ! */
    }
}
.detail-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 40px 0; align-items: baseline; }
.detail-title { font-family: 'Gambarino', serif; font-size: 2rem; font-weight: 400; color: var(--couleur-texte); margin: 0; }
.detail-content { font-family: 'Switzer', sans-serif; font-size: 1.2rem; line-height: 1.6; }
.tags-cloud span { display: inline-block; margin-right: 15px; margin-bottom: 10px; font-weight: 600; }
.editorial-divider { border: none; border-top: 1px solid rgba(34, 34, 35, 0.2); margin: 0; }

/* =========================================
   SECTION FINAL CTA (TRAVAILLONS ENSEMBLE) - VERSION DARK
   ========================================= */
.final-cta-section {
    background-color: #222223; /* Fond Noir Anthracite */
    padding: 120px 5vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-content {
    max-width: 800px;
}

.big-cta-title {
    font-family: 'Gambarino', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    color: #CAC426; /* Texte Olive */
    line-height: 1;
    margin-bottom: 30px;
    font-weight: 400;
}

.highlight-italic {
    font-style: italic;
    font-family: 'Gambarino', serif;
}

.cta-subtitle {
    font-family: 'Switzer', sans-serif;
    font-size: 1.2rem;
    color: #CAC426; /* Texte Olive */
    margin-bottom: 50px;
    opacity: 0.9;
    letter-spacing: -0.15px;
}

/* Le bouton s'adapte aussi pour ressortir sur le noir */
.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
    
    background-color: #CAC426; /* Fond Olive */
    color: #222223;            /* Texte Noir */
    
    border: 1px solid #CAC426;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background-color: transparent; /* Devient transparent */
    color: #CAC426;                /* Texte devient Olive */
    border: 1px solid #CAC426;
}
/* =========================================
   11. FOOTER (CORRIGÉ & STABLE)
   ========================================= */
.main-footer {
    background-color: #CAC426;
    color: #222223;
    padding: 100px 40px 30px 40px;
    min-height: 60vh;
    display: flex; flex-direction: column; justify-content: space-between;
}
.footer-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.footer-title { 
    font-family: 'Gambarino', serif; 
    font-size: clamp(3rem, 8vw, 6rem); 
    font-weight: 400; /* Pas de gras ! */
    margin-bottom: 40px; 
    line-height: 1; 
}
.btn-footer {
    background: #222223; color: #CAC426; padding: 18px 60px; text-decoration: none;
    font-family: 'Switzer', sans-serif; font-weight: 600; text-transform: uppercase;
}

.btn-footer:hover .btn-footer { transform: scale(1.05); }


.footer-bottom { display: flex; justify-content: space-between; margin-top: 60px; font-family: 'Switzer', sans-serif; font-size: 0.9rem; }
.footer-link { color: #222223; text-decoration: none; }

/* Version Contact */
.minimal-footer { min-height: auto !important; padding: 20px 40px !important; }
.minimal-footer .footer-content { display: none; }
.minimal-footer .footer-bottom { margin-top: 0; }



/* =========================================
   12. MEDIA QUERIES (TOUT LE MOBILE ICI)
   ========================================= */
@media (max-width: 900px) {
    /* Header & Nav */
    header { padding: 15px 25px; }
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    
    /* Hero */
    .hero { padding-top: 40px; align-items: flex-start; }

    .hero-name {
        font-size: 4.7rem; 
        line-height: 0.9;
        margin-top: 50px;
        margin-bottom: 100px;

    }

    .hero-description {
        font-size: 1.6rem; 
        line-height: 1.3;
        max-width: 100%;   
        margin-top: 50px;
        position: static; /* Important pour annuler le position absolute du desktop */
        text-align: left;
                letter-spacing: -0.65px;

    }



    .manifesto-title br {
        display: none;
    }

    .manifesto-section {
        /* On augmente le padding du bas (160px) pour compenser les -100px du marquee */
        padding: 0px 5vw 160px 5vw !important; 
        text-align: left;
    }

    .manifesto-container {
        width: 100%; /* S'assure que le conteneur prend toute la largeur mobile */
    }

    /* Permet au texte de se répartir harmonieusement tout seul */
    .manifesto-title {
        text-wrap: balance; 
        line-height: 1.2;
        margin-right: 0;
    }

    
    /* Expertise Cards */
    .expertise-grid { grid-template-columns: 1fr; gap: 0; }
    .expertise-card { height: 250px; border-bottom: none; }
    .expertise-card:last-child { border-bottom: 1px solid var(--couleur-texte); }
    
    /* Marquee Mobile */
    .tools-marquee { padding: 15px 0; }
    .marquee-content span { font-size: 0.9rem; margin: 0 8px; }
    
    /* Projects & Details */
    .projects-grid { grid-template-columns: 1fr; }
    .about-intro-split { grid-template-columns: 1fr; }
    .detail-row { grid-template-columns: 1fr; }
    .about-page-editorial { padding: 60px 5vw; }
    .editorial-title { font-size: 4rem; 
        margin-bottom: 0px; 
        margin-top: -20px;
    }
    
    /* Footer Mobile */
    .main-footer { padding: 60px 20px 20px 20px; min-height: auto; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .minimal-footer { padding: 30px 20px !important; }
    
    /* Contact Form Mobile */
    .contact-page-wrapper { padding: 40px 5vw 60px 5vw; }
    .form-container-box { padding: 30px 20px; border: 1px solid #909090; } /* J'ai remis la bordure visible sur mobile aussi */
    .form-row { flex-direction: column; gap: 30px; }
}

@media (min-width: 900px) {
    header { padding: 25px 50px; }
    .desktop-nav { display: flex; align-items: center; width: 100%; }
    .mobile-menu-btn { display: none; }
    .nav-links { margin-right: auto; margin-left: 60px; }
    .mobile-overlay { display: none; }
}

/* ... Fin des Media Queries ... */

/* =========================================
   STYLE TEXT REVEAL (SplitType)
   IMPORTANT : Ce code doit être en DEHORS des Media Queries
   ========================================= */
.about-statement h2 .word {
    display: inline-block; 
    line-height: 1.2;
    will-change: opacity; /* Optimisation performance */
}

/* On force la couleur de base pour éviter les bugs d'affichage */
.about-statement h2 {
    color: var(--couleur-texte); 
}

/* On garde le style de highlight (couleur olive) même si c'est découpé */
.about-statement h2 .highlight .word {
    color: var(--couleur-texte); /* Ou var(--couleur-fond) si vous vouliez du jaune */
    /* Si vous voulez que la partie "highlight" soit d'une autre couleur quand elle s'active : */
    /* La GSAP va gérer l'opacité, la couleur reste celle définie dans le CSS de base */
}


/* =========================================
   BOUTON RETOUR HAUT (SCROLL TOP)
   ========================================= */
#scrollTopBtn {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 9999;
    
    /* Design */
    background-color: #222223; /* Noir Anthracite */
    color: #FFFEEC; /* Olive */
    border: 1px solid #FFFEEC;
    border-radius: 0; /* Carré comme tes autres boutons */
    
    /* Flexbox pour centrer la flèche */
    display: flex;
    justify-content: center;
    align-items: center;
    
    cursor: pointer;
    z-index: 1000; /* Au-dessus du contenu */
    
    /* Animation d'apparition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Quand il devient visible (ajouté par JS) */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Effet au survol */
#scrollTopBtn:hover {
    background-color: #CAC426;
    color: #222223;
    border-color: #222223;
    transform: translateY(-5px); /* Petit saut vers le haut */
}

/* =========================================
   BOUTONS PAGE À PROPOS
   ========================================= */
.about-buttons {
    display: flex;
    gap: 20px; /* Espace entre les deux boutons */
    margin-top: 30px;
    flex-wrap: wrap; /* Permet de passer à la ligne sur petit écran */
}

/* Ajustement pour mobile : boutons pleine largeur */
@media (max-width: 900px) {
    .about-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-buttons .btn-primary {
        text-align: center;
        width: 100%;
    }
}

/* =========================================
   LISTE "GÉNÉRIQUE" (FICHE TECHNIQUE)
   ========================================= */

.specs-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Aligne le texte sur la ligne d'écriture */
    padding: 15px 0;
    border-bottom: 1px solid rgba(34, 34, 35, 0.2); /* Ligne fine discrète */
}

/* On enlève la bordure du dernier élément */
.spec-item:last-child {
    border-bottom: none;
}

/* La colonne de gauche (Catégorie) */
.spec-label {
    font-family: 'Gambarino', serif; /* Rappel du titre, très élégant */
    font-size: 1.3rem;
    color: var(--couleur-texte);
    flex-shrink: 0; /* Empêche le titre d'être écrasé */
    margin-right: 20px;
}

/* La colonne de droite (Outils) */
.spec-value {
    font-family: 'Switzer', sans-serif;
    font-size: 1.1rem;
    text-align: right;
    opacity: 0.8;
    line-height: 1.4;
}

/* --- VERSION MOBILE --- */
@media (max-width: 600px) {
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }

    .spec-value {
        text-align: left; /* Sur mobile, on aligne tout à gauche pour la lecture */
    }
}

/* =========================================
   STYLE TIMELINE (PARCOURS)
   ========================================= */

.timeline-wrapper {
    /* Pas de marge en bas ici car on a mis un <hr> dans le HTML */
    padding-left: 10px;
}

.timeline-steps {
    position: relative;
    border-left: 1px solid rgba(34, 34, 35, 0.2); /* La ligne verticale */
    padding-left: 50px; /* Espace entre la ligne et le texte */
}

.timeline-step {
    position: relative;
    margin-bottom: 70px; /* Espace entre chaque étape */
}
.timeline-step:last-child { margin-bottom: 0; }

/* Le Point sur la ligne */
.step-marker {
    position: absolute;
    left: -56px; /* Calé sur la ligne (-50px padding - 6px moitié point) */
    top: 5px;
    width: 13px;
    height: 13px;
    background-color: var(--couleur-texte);
    border-radius: 50%;
    border: 2px solid #FFFEEC; /* Contour couleur fond pour détacher */
    transition: transform 0.3s ease;
}

/* Typographie */
.step-label {
    font-family: 'Switzer', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #909090;
    margin-bottom: 15px;
    display: block;
}

.step-title {
    font-family: 'Gambarino', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1;
    font-weight: 400;
}

.step-tools {
    font-family: 'Switzer', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666; /* Olive */
}

.step-desc {
    font-family: 'Switzer', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
}

/* MOBILE */
@media (max-width: 600px) {
    .timeline-steps { padding-left: 30px; }
    .step-marker { left: -37px; }
    .step-title { font-size: 1.8rem; }
}

/* =========================================
   INSPIRATIONS (MOODBOARD PARALLAXE)
   ========================================= */


.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.inspiration-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Le cadre qui coupe l'image */
.img-mask {
    width: 100%;
    height: 450px; /* Cartes bien hautes */
    overflow: hidden; /* INDISPENSABLE pour l'effet parallaxe */
    position: relative;
}

/* L'image elle-même (elle sera plus grande que le cadre) */
.parallax-img {
    width: 100%;
    height: 120%; /* 120% pour avoir de la marge de mouvement */
    object-fit: cover;
    position: absolute;
    top: -10%; /* On la centre verticalement pour qu'elle puisse bouger */
}

/* Textes sous l'image */
.card-meta {
    display: flex;
    flex-direction: column;
}

.meta-cat {
    font-family: 'Gambarino', serif;
    font-size: 1.4rem;
    color: var(--couleur-texte);
    margin-bottom: 5px;
}

.meta-desc {
    font-family: 'Switzer', sans-serif;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* MOBILE */
@media (max-width: 900px) {
    .inspiration-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 40px;
    }
    
    .img-mask {
        height: 300px; /* Moins haut sur mobile */
    }
}

/* =========================================
   POP-UP MUSIQUE & LECTEUR
   ========================================= */

/* Le Pop-up de proposition */
.music-popup {
    position: fixed;
    bottom: 30px;
    left: 30px; /* En bas à gauche (opposé au bouton retour haut) */
    width: 300px;
    background-color: #222223; /* Noir */
    border: 1px solid #CAC426; /* Olive */
    padding: 25px;
    z-index: 9995;
    
    /* Caché par défaut (en bas) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.music-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.music-text {
    font-family: 'Gambarino', serif;
    font-size: 1.4rem;
    color: #FFFEEC; /* Crème */
    line-height: 1.1;
    margin-bottom: 5px;
}

.music-track {
    font-family: 'Switzer', sans-serif;
    font-size: 0.85rem;
    color: #CAC426; /* Olive */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.music-buttons {
    display: flex;
    gap: 15px;
}

.btn-music-action {
    flex: 1;
    background: transparent;
    border: 1px solid #CAC426;
    color: #CAC426;
    padding: 10px 0;
    font-family: 'Switzer', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-music-action:hover {
    background: #CAC426;
    color: #222223;
}

/* Le petit contrôleur (Une fois la musique lancée) */
.music-controller {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #222223;
    padding: 10px 20px;
    border: 1px solid #CAC426;
    z-index: 9995;
    display: flex;
    align-items: center;
    gap: 15px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s;
}

.music-controller.playing {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-stop {
    background: transparent; border: none;
    color: #CAC426; font-family: 'Switzer', sans-serif;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
}

/* Animation Equalizer */
.equalizer { display: flex; gap: 3px; height: 15px; align-items: flex-end; }
.equalizer span { width: 3px; background: #CAC426; animation: bounce 1s infinite; }
.equalizer span:nth-child(2) { animation-delay: 0.2s; }
.equalizer span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { height: 3px; }
    50% { height: 15px; }
}

/* MOBILE : On cache ou on adapte */
@media (max-width: 600px) {
    .music-popup { width: calc(100% - 40px); left: 20px; bottom: 20px; }
}

/* =========================================
   NOUVEAU : MISE EN PAGE STORYTELLING (PROJET)
   ========================================= */

.project-process {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    padding: 0 5vw;
}

.process-block {
    margin-bottom: 20px;
}

.process-title {
    font-family: 'Gambarino', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
            margin-top: 35px;

    color: var(--couleur-texte);
    font-weight: 400;
}




/* Grille de comparaison (Gravure vs Film) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.process-img {
    width: 100%;
    height: auto;
    display: block;
    /* Petit effet esthétique : bordure fine */
    border: 1px solid rgba(34, 34, 35, 0.1); 
}

figcaption {
    font-family: 'Switzer', sans-serif;
    font-size: 0.85rem;
    color: #909090;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MOBILE */
@media (max-width: 700px) {
    .comparison-grid {
        grid-template-columns: 1fr; /* Les images passent l'une sous l'autre */
        gap: 40px;
    }
}

/* =========================================
   CORRECTIF FOOTER (LARGEUR & POSITION)
   ========================================= */

/* 1. On force le footer à ignorer le padding du parent */
.about-page-editorial .main-footer,
.contact-page-wrapper .main-footer {
    width: 100vw;          /* Force la largeur totale de l'écran */
    margin-left: -5vw;     /* Tire vers la gauche pour annuler le padding */
    margin-bottom: 0;
    margin-top: auto;      /* Pousse vers le bas si on est en flex */
}

/* 2. Correction Spécifique CONTACT (Pour coller en bas) */
.contact-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0 !important; /* On enlève la marge du bas du main */
    gap: 100px;
}

/* 3. Correction Spécifique À PROPOS */
.about-page-editorial {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    /* RÉGLAGE : On passe de 90px à 40px pour remonter la suite de la page */
    gap: 40px; 
}

.about-page-editorial { 
    background-color: var(--couleur-creme); 
    padding: 50px 5vw 150px ; 
    min-height: 100vh; 
}


/* =========================================
   GESTION DES SAUTS DE LIGNE (DÉFINITIF)
   ========================================= */

/* 1. ORDINATEUR (Code lu par défaut) */
.hero-description {
    max-width: 800px !important; 
}

.desktop-break {
    display: block; 
}

.mobile-break {
    display: none; 
}

/* =========================================
   MEDIA QUERIES (CORRECTIFS MOBILES)
   ========================================= */
@media (max-width: 900px) {

    /* --- Gestion des sauts de ligne Mobile --- */
    .hero-description {
        max-width: 100%; 
    }
    .desktop-break {
        display: none; 
    }
    .mobile-break {
        display: block; 
    }

    /* --- Fix Safari / iPhone (Couleurs Bleues & Boutons) --- */
    
    /* 1. Page PROJETS : Forcer le "Trier par" en noir */
    .filter-btn {

        text-decoration: none; 
    }

    .filter-container {
        margin-top: 50px;
    }

    .projects-header {
        margin-top: -50px;
        margin-bottom: 30px;
    }

    /* ... (Laissez votre code précédent tel quel jusqu'ici) ... */

    /* DANS LA SECTION MOBILE (max-width: 900px) : */
    /* 2. Page CONTACT : Rendre le bouton visible */
    .btn-submit-pill {
        color: var(--couleur-creme) !important; 
        background-color: #222223 !important;
        -webkit-appearance: none;
        appearance: none;
        border: 1px solid #222223 !important;
        opacity: 1 !important;
    }
    
    .btn-submit-pill:active {
        background-color: #222223 !important;
        color: #FFFEEC !important;
    }

} /* <--- CETTE ACCOLADE EST CRUCIALE : ELLE FERME LE MOBILE */


/* =========================================
   FIX GLOBAL (ORDINATEUR & MOBILE)
   A METTRE TOUT À LA FIN DU FICHIER
   ========================================= */

/* 1. SÉCURITÉ CLIC : Le menu mobile ne doit jamais bloquer la souris sur PC */
.mobile-overlay {
    pointer-events: none !important; /* Par défaut, on clique au travers */
    z-index: 6000 !important;
}

.mobile-overlay.open {
    pointer-events: auto !important; /* On active les clics SEULEMENT quand il est ouvert */
}

/* 2. SÉCURITÉ MENU : Le menu du haut doit être au-dessus de tout */
.navigation-wrapper {
    z-index: 5000 !important;
    position: sticky;
}

/* 4. FIX CROIX MENU */
.close-menu-btn {
    padding: 20px;
    margin: -20px; 
    cursor: pointer;
    position: relative; 
    z-index: 9999 !important;
    pointer-events: auto;
}

.project-video-container {
    max-width: 1000px; /* Augmentez cette valeur pour plus de largeur (ex: 100% ou 1400px) */
    margin: 60px auto 100px auto; /* Centre le bloc et ajoute de l'espace autour */
    padding: 0 5vw; /* Garde une marge de sécurité sur les côtés */
}

/* --- LE RATIO RESPONSIVE (16/9) --- */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(34, 34, 35, 0.1); /* Optionnel : fine bordure pour le fini */
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.btn-youtube {
    display: inline-block;
    padding: 16px 32px;
    margin-top: 10px;
    background-color: #222223;
    border: 1px solid #222223;
    color: #FFFEEC;
    text-decoration: none;
    font-family: 'Switzer', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
        letter-spacing: -0.15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-youtube:hover {
    border: 1px solid #222223;
    color: #222223; /* Texte Crème au survol */
    background: transparent;
}

/* =========================================
   LIGHTBOX PROFESSIONNELLE (IMAGE ZOOM)
   DOIT ÊTRE TOUT EN BAS ET HORS DES @MEDIA
   ========================================= */
.lightbox-overlay {
    display: none; 
    position: fixed;
    z-index: 99999 !important; /* On s'assure qu'il passe au-dessus de TOUT */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-img {
    max-width: 90vw;  
    max-height: 85vh; 
    object-fit: contain;
    background-color: transparent !important; 
    border: none !important;                  
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFFEEC;
    font-size: 50px;
    font-weight: 100;
    cursor: pointer;
}

/* --- GRILLE SPÉCIFIQUE POUR RAVYN LENAE --- */
.project-poster-grid {
    max-width: 1200px;
    margin: 0 auto 100px auto; /* Marge du haut à 0 pour réduire l'espace sous l'intro */
    padding: 0 5vw;
}

/* Ajustement de l'intro pour resserrer encore plus si besoin */
.project-hero {
    padding-bottom: 20px !important; /* Force la réduction de l'espace sous le texte */
}

/* --- SCROLLER AUTOMATIQUE APP --- */
.app-scroller-section {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background-color: #FFFEEC; /* Couleur crème de votre site */
}

.scroller-container {
    display: flex;
    width: 100%;
}

.scroller-track {
    display: flex;
    gap: 30px;
    animation: scrollApp 30s linear infinite; /* Vitesse réglable ici */
    white-space: nowrap;
}

.app-screen {
    width: 280px; /* Largeur d'un écran de téléphone */
    height: auto;
    border-radius: 30px; /* Aspect arrondi smartphone */
    border: 8px solid #222223; /* Coque du téléphone */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Animation de défilement infini */
@keyframes scrollApp {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 5 - 30px * 5)); } 
    /* Calcule : -(largeur_image * nombre_images_uniques + gap * nombre_images_uniques) */
}

/* Pause au survol pour que le recruteur puisse regarder un écran */
.scroller-container:hover .scroller-track {
    animation-play-state: paused;
}


/* --- CONTENEUR FIGMA & BOUTON --- */
.project-figma-container {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 5vw;
    text-align: center;
}

.btn-figma {
    display: inline-block;
    padding: 16px 32px;
    margin-top: 25px;
    background-color: var(--couleur-texte);
    border: 1px solid var(--couleur-texte);
    color: var(--couleur-creme);
    text-decoration: none;
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.btn-figma:hover {
    background-color: transparent;
    color: var(--couleur-texte);
}

/* --- SCROLLER D'ÉCRANS APP --- */
.app-scroller-section {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
}

.scroller-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollApp 35s linear infinite;
}

.app-screen {
    width: 280px;
    height: auto;
    border-radius: 30px;
    border: 8px solid #222223;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@keyframes scrollApp {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.scroller-track:hover {
    animation-play-state: paused;
}

/* --- SÉLECTEUR DE VUE --- */
.view-switcher {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-end;
}

.view-btn {
    background: transparent;
    border: none;
    font-family: 'Switzer', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
    padding: 5px 0;
}

.view-btn.active {
    opacity: 1;
    border-bottom: 2px solid var(--couleur-texte);
}

/* =========================================
   MODE LISTE : CONFIGURATION SANS MODIF HTML
   ========================================= */

/* 1. On passe la grille en une seule colonne */
.projects-grid.list-view {
    grid-template-columns: 1fr;
    row-gap: 0;
}

/* 2. On cible le LIEN (<a>) qui contient tout ton contenu */
.projects-grid.list-view .project-item a {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(34, 34, 35, 0.1);
}

.projects-grid.list-view .project-thumb {
    display: block; 
    order: 3;
    width: 100px;
    height: 60px;
    margin: 0 20px 0 0 !important; /* Marge réduite à droite */
    flex-shrink: 0;
    border-radius: 4px;
}

/* 4. LE NOM (À GAUCHE) */
.projects-grid.list-view .project-name {
    order: 1;
    flex: 1; /* Remplit le vide à gauche */
    margin: 0 !important; 
    font-size: 1.6rem;
}

.projects-grid.list-view .project-tags {
    order: 2;
    display: flex;
    gap: 8px;
    margin: 0 40px 0 0 !important; /* Marge uniquement à droite */
}

.projects-grid.list-view .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-grid.list-view .project-year {
    order: 4;
    margin: 0 !important;
    min-width: 50px;
    text-align: right;
    font-weight: 600;
}

/* --- OPTIONNEL : EFFET SURVOL LIGNE --- */
.projects-grid.list-view .project-item:hover {
    background-color: rgba(34, 34, 35, 0.02);
}

/* --- RESPONSIVE MOBILE --- */
/* --- ADAPTATION LISTE SUR MOBILE --- */

@media (max-width: 900px) {
    .projects-grid.list-view .project-item a {
        padding: 15px 0;
    }

    /* Le nom continue de pousser tout à droite */
    .projects-grid.list-view .project-name {
        font-size: 1.15rem;
    }

    /* On cache les tags sur mobile pour laisser de la place à l'image */
    .projects-grid.list-view .project-tags {
        display: none; 
    }

    /* On réduit drastiquement l'espace entre l'image et la date sur mobile */
    .projects-grid.list-view .project-thumb {
        width: 65px;
        height: 45px;
        margin: 0 15px 0 0 !important; /* Seulement 15px d'écart avec la date */
    }

    .projects-grid.list-view .project-year {
        font-size: 0.85rem;
        min-width: auto; /* Laisse la date prendre sa place naturelle */
    }
}


/* =========================================
   GRILLE PROJETS VIDÉOS (ACCORDÉON)
   ========================================= */
.video-grid-section {
    padding: 30px 5vw 10px 5vw;
    background-color: var(--couleur-creme);
}

.video-accordion-grid {
    /* 1. On remplace grid par column-count */
    display: block; 
    column-count: 3; /* 3 colonnes */
    column-gap: 40px; /* Espace entre les colonnes */
    width: 100%;
}

.video-item {
    /* 2. Indispensable pour éviter que le bloc ne se coupe entre deux colonnes */
    break-inside: avoid; 
    display: inline-block; /* On passe en inline-block pour le Masonry */
    width: 100%;
    margin-bottom: 60px; /* Espace vertical entre les vidéos d'une même colonne */
    vertical-align: top;
}

.video-item {
    opacity: 0;
    will-change: transform, opacity; /* Optimisation des performances */
}

.project-preview {
    opacity: 0;
}

.video-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.video-title {
    font-family: 'Switzer', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-tag {
    font-family: 'Switzer', sans-serif;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Style spécifique pour le bouton plus */
.plus-btn {
    background-color: #CAC426; /* Ton Olive */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222223;
    transition: transform 0.3s ease;
}

/* On réutilise tes styles d'accordéon existants */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.video-item.active .plus-btn {
    transform: rotate(45deg); /* Le + devient une croix */
}

/* Responsive mobile */
@media (max-width: 900px) {
    .video-accordion-grid {
        column-count: 1; /* 1 seule colonne sur mobile */
    }
}

/* =========================================
   SYSTÈME DE RATIOS POUR LA GRILLE
   ========================================= */

/* Le conteneur de base (commun à toutes les vidéos) */
.video-preview-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: transparent;
    line-height: 0;
    margin-bottom: 10px;
}

/* 1. Format CARRÉ (Avec Crop pour cacher les bandes noires YouTube) */
.ratio-square {
    aspect-ratio: 1 / 1;
}
.ratio-square iframe {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180% !important; /* Agrandit pour faire sortir les bandes noires du cadre */
    height: 100% !important;
}

/* 2. Format VERTICAL (Shorts / Reels) */
.ratio-vertical {
    aspect-ratio: 9 / 16;
}

/* 3. Format HORIZONTAL (Classique 16:9) */
.ratio-horizontal {
    aspect-ratio: 16 / 9;
}

/* Réglage général pour les iframes qui ne sont pas "croppées" */
.ratio-vertical iframe, 
.ratio-horizontal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Positionnement du bouton retour */
.back-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--couleur-texte);
    font-family: 'Switzer', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px); /* Petit décalage vers la gauche */
}

/* Ajustement mobile */
@media (max-width: 900px) {
    .back-container {
        margin-bottom: 30px;
    }
}

.video-archive-page .project-hero {
    margin-left: 0 !important;   /* Annule le "margin: 0 auto" qui centrait le bloc */
    max-width: 1200px;           /* Aligne sur ta nouvelle largeur de page */
    padding-left: 5vw;           /* Garde la marge de sécurité de ton site */
}

/* On s'assure que le titre et le sous-titre sont bien ferrés à gauche */
.video-archive-page .project-main-title,
.video-archive-page .project-subtitle {
    text-align: left !important;
    margin-left: 0 !important;
}

/* On cale les tags (AUDIOVISUEL) au début de la ligne */
.video-archive-page .project-meta {
    justify-content: flex-start !important;
}

/* --- GRILLE ÉDITORIALE MODERNE --- */
/* --- GRILLE ÉDITORIALE MODERNE (CORRECTIF ALIGNEMENT) --- */
.about-modern-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr 1.2fr; 
    gap: 80px; 
    
    /* RÉGLAGE : On met 60px en haut mais seulement 20px en bas */
    padding: 60px 0 20px 0; 
    
    background-color: var(--couleur-creme);
    align-items: start;
}

.about-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Étiquettes de colonnes (About, Bio, etc.) */
.col-label {
    font-family: 'Switzer', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #909090; /* Gris élégant */
    letter-spacing: -0.7px;
}

/* Effet timbre (Stamp) pour la photo */
.stamp-wrapper {
    position: relative;
    width: 100%;
}

.stamp-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stamp-name {
    font-family: 'Gambarino', serif;
    font-size: 1.8rem;
    line-height: 1; /* Légèrement augmenté pour éviter que les lettres ne se touchent trop */
    margin-top: 20px; /* On remplace -20px par +25px pour créer le vide */
    position: relative;
    z-index: 2;
    color: var(--couleur-texte);
}

/* Éléments de parcours (Career/Studies) */
.info-item {
    margin-bottom: 30px;
}

.info-date {
    display: block;
    font-size: 0.8rem;
    color: #909090;
    margin-bottom: 5px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 1024px) {
    .about-modern-grid { grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 0; }

    .scroll-indicator-about {
        display: none !important;
    }

}

@media (max-width: 900px) {
    .about-modern-grid { grid-template-columns: 1fr; }
    .stamp-wrapper { max-width: 250px; }
    
    .about-modern-grid { 
    grid-template-columns: 1fr; 
    padding-top: 0 !important; /* On colle le contenu au titre */
    gap: 40px !important;      /* On réduit l'espace entre tes colonnes */
}
.scroll-indicator-about {
        display: none !important;
    }

}

/* Style du bouton scroll pour la page À Propos - Version Centrée */
.scroll-indicator-about {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    /* On réduit drastiquement la marge pour le rapprocher du texte */
    margin-top: -30px; 
    
    text-decoration: none;
    color: var(--couleur-texte) !important;
    cursor: pointer;
    position: relative;
}

.scroll-indicator-about .scroll-arrow {
    animation: bounceDown 2s infinite ease-in-out;
    color: var(--couleur-texte);
}

.scroll-indicator-about .scroll-text {
    color: var(--couleur-texte);
}

.contact-email-link {
    text-decoration: none;
    color: inherit; /* Utilise la couleur du texte parent (Noir Anthracite) */
}

.contact-email-link:hover {
    opacity: 0.7; /* Petit effet au survol pour montrer que c'est cliquable */
}