/*
Theme Name: Cie Arnica
Author: Ton Nom
Description: Custom theme for Cie Arnica
Version: 1.0
*/

/* =========================================
   1. POLICES DE LA CHARTE GRAPHIQUE
   ========================================= */
/* Police pour les Titres et le Logo [cite: 170, 171] */
@font-face {
    font-family: 'Jean-Luc';
    src: url('polices/jeanlucweb-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
/* Police pour les Textes courants [cite: 197, 198] */
@font-face {
    font-family: 'HK Grotesk';
    src: url('polices/HKGrotesk-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('polices/HKGrotesk-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* =========================================
   2. VARIABLES (COULEURS OFFICIELLES)
   ========================================= */
:root {
    --c-rouge: #E20026; /* Web Hexa Rouge Arnica [cite: 278] */
    --c-bleu: #4767AA;  /* Web Hexa Bleu Arnica [cite: 284] */
    --c-vert: #00A373;  /* Web Hexa Vert Arnica [cite: 305] */
    
    /* Couleur de fond simulant le papier Fedrigoni Woodstock [cite: 292] */
    --c-fond-papier: #F4F1EA; 
    --c-texte: #1A1A1A;
}

/* =========================================
   3. RESET & BASE (TYPOGRAPHIE)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
}

body { 
    font-family: 'HK Grotesk', sans-serif; /* Application au texte [cite: 197, 198] */
    background: var(--c-fond-papier); 
    color: var(--c-texte); 
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   TAMPONS ARRIERE-PLAN
   ========================================= */
#tampons-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden; /* Prevent vertical overflow beyond body */
}

.tampon-img {
    position: absolute;
    mix-blend-mode: multiply;
    opacity: 0.15; /* Subdued look */
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.05em; /* Simule l'interlettrage de 50pt exigé par la charte [cite: 177] */
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; }

/* Classes pratiques pour colorer le texte rapidement [cite: 268] */
.rouge { color: var(--c-rouge); }
.bleu { color: var(--c-bleu); }
.vert { color: var(--c-vert); }

/* =========================================
   4. ÉLÉMENTS GRAPHIQUES (TAMPONS & POINTS)
   ========================================= */
.tampon-illustre {
    position: absolute;
    /* L'EFFET MAGIQUE DE SURIMPRESSION D'ENCRE [cite: 312, 313, 314, 315] */
    mix-blend-mode: multiply; 
    z-index: 5;
    pointer-events: none; 
}

.point-rouge-libre {
    display: inline-block;
    width: 12px; /* À ajuster pour faire la taille du point du logo [cite: 344, 345] */
    height: 12px;
    background-color: var(--c-rouge);
    border-radius: 50%;
    position: absolute;
}

/* =========================================
   HEADER FIXE (TOUJOURS EN HAUT)
   ========================================= */
.site-header {
    position: fixed; /* Maintient le menu en haut pendant le scroll */
    top: 0; 
    left: 0; 
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1000;
    
    /* On ajoute un léger dégradé noir derrière pour que le menu blanc 
       reste lisible même quand on scrolle sur les photos claires plus bas */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    
    /* Animation pour l'apparition du header */
    opacity: 0; 
    transform: translateY(-20px); 
    animation: apparitionEnDouceur 1.5s ease-out forwards; 
    animation-delay: 2s; 
}

/* Classe ajoutée par Javascript si l'utilisateur a déjà vu l'animation */
.site-header.deja-visite {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* La règle de l'animation : de transparent/haut vers visible/place normale */
@keyframes apparitionEnDouceur {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-petit img {
    height: 100px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5)); 
}

/* =========================================
   NAVIGATION PRINCIPALE
   ========================================= */
.main-nav {
    margin-top: 15px; 
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: white; 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--c-rouge);
}

.btn-contact {
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}
.btn-contact:hover {
    background: white;
    color: black !important;
}

/* =========================================
   LE SOUS-MENU "CROQUIS" (LIGNE ROUGE)
   ========================================= */
.menu-accueil {
    position: relative; /* Indispensable pour que le sous-menu s'accroche ici */
}

.sous-menu-croquis {
    position: absolute;
    top: 100%; /* Se place juste sous le mot "Accueil" */
    left: 30px; /* Décale le début de la ligne rouge vers la droite */
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}

/* On dessine la ligne rouge en équerre */
.croquis-ligne {
    width: 470px; /* Longueur de la ligne horizontale allongée pour inclure "newsletter" */
    height: 15px; /* Hauteur de la petite descente verticale */
    border-left: 2px solid var(--c-rouge);
    border-bottom: 2px solid var(--c-rouge);
    margin-bottom: 8px; /* Espace entre la ligne et le texte */
}

.croquis-liens {
    display: flex;
    gap: 15px;
    padding-left: 15px; /* Aligne le texte avec la barre */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.croquis-liens a {
    color: var(--c-rouge) !important;
    font-family: 'HK Grotesk', sans-serif;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: lowercase; /* Exactement comme sur ton dessin */
}

.mobile-only { display: none; } 

/* =========================================
   SCROLL FLUIDE POUR TOUTE LA PAGE
   ========================================= */
html {
    scroll-behavior: smooth;
}

/* =========================================
   MENU DÉROULANT "COMPAGNIE"
   ========================================= */
/* Le parent doit être en "relative" pour retenir le sous-menu */
.menu-deroulant {
    position: relative;
}

/* Le sous-menu est caché par défaut */
.sous-menu {
    display: none;
    position: absolute;
    top: 100%; /* S'accroche juste en dessous du mot "Compagnie" */
    left: 0;
    background-color: var(--c-fond-papier);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-top: 3px solid var(--c-rouge); /* Petite touche charte graphique */
    min-width: 220px;
    z-index: 200;
}

/* On change l'affichage des liens dans le sous-menu */
.sous-menu li {
    margin: 0.5rem 0;
}

.sous-menu a {
    color: var(--c-texte) !important; /* Force le texte en noir car on est sur fond clair */
    font-size: 0.8rem;
    display: block;
}

.sous-menu a:hover {
    color: var(--c-rouge) !important;
}

/* L'ANIMATION : Quand on survole le parent, le sous-menu s'affiche */
.menu-deroulant:hover .sous-menu {
    display: block;
}

/* =========================================
   ESPACEMENTS POUR LES ANCRES
   ========================================= */
/* Pour éviter que le menu en haut de l'écran ne cache les titres quand on glisse vers eux */
.section-compagnie {
    scroll-margin-top: 120px;
    
}

/* =========================================
   6. HERO FULLSCREEN (IMAGE D'ACCUEIL)
   ========================================= */
.hero-fullscreen {
    width: 100%; height: 100vh;
    background-image: url('images/accueil/photo-accueil.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-fullscreen::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 30%);
}

/* =========================================
   7. CONTENU & GRILLE DE 7 PHOTOS
   ========================================= */

.texte-standard{
    max-width: 800px;
    margin: 5rem auto;
    text-align: center;
    padding: 0 2rem;
}

.texte-standard h2 { margin-bottom: 1.5rem; font-size: 2rem; }

.intetions-artistique{
    max-width: 800px;
    margin: 5rem auto;
    text-align: center;
    padding: 0 2rem;
}

.intetions-artistique h2 { margin-bottom: 1.5rem; font-size: 2rem; }

.galerie-spectacles {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
}

.grille-7-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: 300px; 
    gap: 15px; 
}


.photo-item {
    overflow: hidden; /* Prevent zoom from breaking the grid slot */
    border: 3px solid transparent;
    cursor: pointer;
    border-radius: 8px; /* Optional slight rounding to look nice */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    border-color: var(--c-rouge, #e63946);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05); /* Zoom inside the container */
}

.grande-photo { grid-row: span 2; } 
.grande-photo-large { grid-column: span 2; } 


/* =========================================
   8. NEWSLETTER
   ========================================= */
.newsletter-highlight {
    background-color: white; 
    padding: 5rem 2rem;
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.form-news {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
}

.form-news input {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid #ccc;
    background: var(--c-fond-papier);
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--c-bleu);
    color: white;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'HK Grotesk', sans-serif;
    font-weight: bold;
}

/* =========================================
   LA TIMELINE (LIGNE DU TEMPS)
   ========================================= */
.timeline-spectacles {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* La grille magique : 3 colonnes (Date | Ligne | Carte) */
.timeline-item {
    display: grid;
    grid-template-columns: 120px 60px 1fr;
    align-items: start;
    position: relative;
    margin-bottom: 2rem;
}

/* 1. La Date à gauche */
.timeline-date {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 2.5rem;
    color: var(--c-rouge);
    text-align: right;
    padding-top: 15px; /* Aligne la date avec le titre de la carte */
    line-height: 1;
}

/* 2. Le Centre (La ligne et le point) */
.timeline-centre {
    position: relative;
    display: flex;
    justify-content: center;
    height: 100%; /* Prend toute la hauteur pour que la ligne descende */
}

/* La ligne verticale grise */
.timeline-centre::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -2rem; /* Descend jusqu'au prochain élément */
    width: 2px;
    background-color: #DDDDDD;
    z-index: 1;
}

/* Efface la ligne après le dernier élément */
.timeline-item:last-child .timeline-centre::before {
    display: none;
}

/* Le petit cercle bleu (le marqueur) */
.timeline-marqueur {
    width: 16px;
    height: 16px;
    border: 3px solid var(--c-bleu);
    background-color: var(--c-fond-papier);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-top: 25px; /* Aligne le point avec la date */
    transition: background-color 0.3s;
}

/* Le point devient rouge quand on survole toute la ligne */
.timeline-item:hover .timeline-marqueur {
    background-color: var(--c-rouge);
    border-color: var(--c-rouge);
}

/* 3. La Carte interactive à droite */
.timeline-contenu {
    position: relative;
}

/* LA PETITE FLÈCHE BIANCHE QUI POINTE VERS LA LIGNE */
.timeline-contenu::before {
    content: '';
    position: absolute;
    top: 25px; /* Aligné avec le point */
    left: -12px; /* Sort de la carte vers la gauche */
    border-width: 12px 12px 12px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
    z-index: 10;
}

/* Le design de la carte (similaire à avant, mais adapté) */
.carte-spectacle {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 1.5rem 2rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--c-bleu); /* Ligne bleue à gauche maintenant ! */
}

.carte-spectacle:hover {
    transform: translateX(5px); /* La carte se décale légèrement vers la droite au survol */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.carte-spectacle[open] {
    border-left-color: var(--c-rouge);
}

/* Le bouton cliquable */
.carte-spectacle summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carte-spectacle summary::-webkit-details-marker {
    display: none;
}

.titre-spectacle {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 1.4rem;
    color: var(--c-bleu);
    margin: 0 0 0.2rem 0;
    letter-spacing: 1px;
}

.auteur {
    font-family: 'HK Grotesk', sans-serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #666;
}

/* L'icône "+" */
.icone-plus {
    font-size: 2rem;
    color: var(--c-bleu);
    transition: transform 0.4s ease, color 0.4s ease;
}

.carte-spectacle[open] .icone-plus {
    transform: rotate(45deg);
    color: var(--c-rouge);
}

/* Le texte caché */
.infos-spectacle {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #EEEEEE;
    font-size: 0.9rem;
    line-height: 1.7;
    animation: apparitionTexte 0.4s ease;
}

@keyframes apparitionTexte {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   ÉQUIPE (GRILLE DE PORTRAITS)
   ========================================= */
.grille-equipe {
    display: grid;
    /* Grille Stricte : Colonnes égales */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 60px 30px; /* Plus d'espace vertical pour le décalage, espace horizontal régulier */
    margin-top: 5rem;
    margin-bottom: 5rem; /* Ajoute de l'espace avant la section suivante */
    padding-bottom: 60px; /* Compense le débordement causé par le décalage (translateY) du Masonry */
    align-items: start;
    max-width: 1000px; /* Limite la largeur pour une belle galerie */
    margin-left: auto;
    margin-right: auto;
}

.membre {
    text-align: left; /* Alignement du texte à gauche (Style cartel de musée) */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Le "Masonry" contrôlé : décalage une colonne sur deux */
.membre:nth-child(even) {
    transform: translateY(50px);
}

.membre:nth-child(even):hover {
    transform: translateY(47px); /* Se soulève de 3px au survol */
}

.membre:nth-child(odd):hover {
    transform: translateY(-3px); /* Se soulève de 3px au survol */
}

.membre img {
    width: 100%;
    /* Carré parfait */
    aspect-ratio: 1 / 1; 
    object-fit: cover; object-position: center top;
    border-radius: 15px; /* Bord arrondi restauré */
    
    /* Traitement d'image : Noir et Blanc par défaut */
    filter: grayscale(100%);
    
    /* Design plat, pas de bordure ni d'ombre */
    border: 4px solid transparent; /* Prépare le bord pour le survol sans décaler l'image */
    box-shadow: none; 
    margin-bottom: 0.8rem;
    transition: all 0.4s ease;
}

/* Effet Magique : Retour à la couleur et bordure au survol */
.membre:hover img {
    filter: grayscale(0%);
    border-color: var(--c-rouge);
}

.membre h4 {
    /* La Typographie : Mettre en valeur les noms */
    font-family: 'Jean-Luc', sans-serif;
    font-size: 1.2rem;
    color: var(--c-texte);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.role-membre {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--c-rouge); /* Rôle dans le Rouge Arnica */
    margin-top: 0.2rem;
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--c-fond-papier);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 2px solid #EEEEEE;
    font-size: 0.9rem;
    color: #444;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.footer-logos {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logos img {
    width: 100%;
    height: auto;
    max-width: 800px; /* Taille maximale pour ne pas être trop envahissant */
    mix-blend-mode: multiply; /* S'intègre bien au fond papier s'il y a du blanc */
}
/* ========================================================================== */
/* MODAL EQUIPE */
/* ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.visible {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--c-fond-papier, #f6f5f3); /* Fallback si variable pas lue ici */
    width: 85%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-texte, #333);
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: var(--c-rouge, #e63946);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.modal-left {
    flex: 0 0 45%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eae8e3; /* Leger contraste pour la photo */
}

.modal-left img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; border: 3px solid var(--c-rouge, red); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.modal-right {
    flex: 0 0 55%;
    padding: 40px 40px 40px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-right h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--c-titre, #222);
}

.modal-right .role-membre {
    font-size: 1.2rem;
    color: var(--c-rouge, red);
    font-style: italic;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#modal-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-texte, #444);
}

#modal-bio-text p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-left {
        flex: 0 0 40%;
        padding: 20px;
    }
    .modal-right {
        flex: 1;
        padding: 20px;
    }
    .modal-right h2 {
        font-size: 1.8rem;
    }
    #modal-bio-text p {
        font-size: 0.95rem;
    }
}


/* =========================================
   LIGHTBOX MODAL (Image en grand)
   ========================================= */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid var(--c-rouge, red);
}

.lightbox-close {
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--c-rouge, red);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        right: 0;
    }
}


/* =========================================
   📱 VERSION MOBILE (RESPONSIVE) 📱
   S'active uniquement sous 768px de large
   ========================================= */
@media (max-width: 768px) {

    /* Ajustements pour la page Spectacles sur Mobile */
    .carte-spectacle-vedette, 
    .carte-spectacle-vedette:nth-child(even) {
        flex-direction: column-reverse; /* Force l'image en haut, le texte en bas */
        border-left: none !important;
        border-right: none !important;
        border-top: 5px solid var(--c-bleu); /* La bordure passe en haut */
    }
    
    .carte-spectacle-vedette:hover,
    .carte-spectacle-vedette:nth-child(even):hover {
        border-top-color: var(--c-rouge);
    }

    .image-spectacle {
        min-height: auto;
        height: 250px; /* L'image est plus petite sur mobile */
    }

    .resume-spectacle {
        padding: 2rem; /* Moins d'espace perdu sur les côtés */
    }

    .resume-spectacle h3 {
        font-size: 2rem; /* Titre plus petit */
    }
    
    /* --- 1. LE HEADER & LE LOGO --- */
    .desktop-only { display: none !important; }
    
    .mobile-only { 
        display: block !important; 
    }

    /* Le bouton Menu Hamburger animé */
    .menu-mobile-btn {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001; /* Reste au-dessus du tiroir */
        position: relative;
    }

    .menu-mobile-btn .barre {
        width: 100%;
        height: 3px;
        background-color: white; /* Visible sur fond noir */
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 2px;
    }

    /* Transformation en croix (X) */
    .menu-mobile-btn.active .barre:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-mobile-btn.active .barre:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    .menu-mobile-btn.active .barre:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* CORRECTION : On annule complètement l'animation d'attente sur mobile ! */
    .site-header { 
        padding: 1rem; 
        align-items: center; 
        background: rgba(0, 0, 0, 0.95);
        animation: none !important; /* Plus d'animation */
        opacity: 1 !important;      /* Visible tout de suite */
        transform: none !important; /* À sa place tout de suite */
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .logo-petit img { height: 50px; } 
    body { padding-top: 80px; }

    /* --- L'OVERLAY DE FOND SEMI-TRANSPARENT --- */
    .menu-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        z-index: 998;
        transition: opacity 0.4s ease;
    }

    .menu-mobile-overlay.menu-ouvert {
        opacity: 1;
        pointer-events: auto;
    }

    /* --- LE DESIGN DU MENU CARNET DE CROQUIS --- */
    .main-nav {
        display: block !important; /* On ne le cache plus en display, on le décale */
        position: fixed;
        top: 0;
        right: -100%; /* Décalé hors de l'écran par défaut */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--c-fond-papier, #F4F1EA) !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        border-left: 4px solid var(--c-rouge);
        padding: 6rem 2rem 2rem 2.5rem; /* Grand padding haut pour laisser la place au header */
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .main-nav.menu-ouvert {
        right: 0; /* Glisse vers l'intérieur */
    }

    /* On aligne le menu verticalement à gauche */
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-nav ul li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px dashed rgba(26,26,26,0.12); /* Ligne croquis pointillée */
        padding-bottom: 0.8rem;
    }

    /* Animation cascade lors de l'ouverture */
    .main-nav.menu-ouvert ul li {
        opacity: 1;
        transform: translateX(0);
    }
    .main-nav.menu-ouvert ul li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.menu-ouvert ul li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.menu-ouvert ul li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.menu-ouvert ul li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.menu-ouvert ul li:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.menu-ouvert ul li:nth-child(6) { transition-delay: 0.35s; }

    .main-nav ul li a {
        font-family: 'Jean-Luc', sans-serif !important;
        font-size: 1.6rem !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--c-texte, #1a1a1a) !important;
        display: block;
        transition: color 0.2s ease;
    }

    /* Item active */
    .main-nav ul li a.active {
        color: var(--c-rouge) !important;
    }

    /* Le sous-menu Croquis */
    .sous-menu-croquis {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 0.8rem;
        padding-left: 1rem;
        border-left: 2px solid rgba(226, 0, 38, 0.15); /* Trait fin rouge croquis */
    }
    
    .croquis-ligne { display: none; }
    
    .croquis-liens {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 10px;
    }

    .croquis-liens a {
        font-family: 'HK Grotesk', sans-serif !important;
        font-size: 0.95rem !important;
        color: var(--c-rouge) !important;
        text-transform: lowercase;
        letter-spacing: 0;
        display: inline !important;
    }

    /* Bouton contact mobile spécial (Pill rouge) */
    .main-nav .btn-contact {
        border: 2px solid var(--c-rouge) !important;
        color: var(--c-rouge) !important;
        padding: 0.5rem 1.5rem !important;
        border-radius: 30px !important;
        display: inline-block !important;
        text-align: center;
        margin-top: 0.5rem;
        font-family: 'HK Grotesk', sans-serif !important;
        font-size: 1rem !important;
        font-weight: bold;
        text-transform: uppercase;
        width: fit-content;
        transition: all 0.3s ease;
    }

    .main-nav .btn-contact:active,
    .main-nav .btn-contact:hover {
        background: var(--c-rouge) !important;
        color: var(--c-fond-papier, #F4F1EA) !important;
    }


    /* --- 2. LA TIMELINE (Ligne du temps) --- */
    /* On casse les 3 colonnes pour tout empiler de haut en bas */
    .timeline-item {
        grid-template-columns: 1fr; /* Une seule colonne qui prend toute la largeur */
        gap: 10px;
        margin-bottom: 3rem;
    }
    
    /* On cache la ligne verticale et le point qui prennent trop de place */
    .timeline-centre { display: none; }
    
    /* On réaligne la date à gauche au-dessus de la carte */
    .timeline-date {
        text-align: left;
        padding-top: 0;
        font-size: 2rem;
    }
    
    /* On supprime la petite flèche blanche latérale */
    .timeline-contenu::before { display: none; }
    
    /* On remet la bordure bleue en HAUT de la carte, car sur le côté ça compresse le texte */
    .carte-spectacle {
        border-left: none;
        border-top: 4px solid var(--c-bleu);
        padding: 1rem;
    }
    .carte-spectacle[open] {
        border-top-color: var(--c-rouge);
    }


    /* --- 3. LES GALERIES PHOTOS & ÉQUIPE --- */
    /* Tout passe en 1 seule colonne au lieu de 3 ou 4 */
    .grille-7-photos, 
    .grille-equipe,
    .grille-spectacles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* On annule les tailles "spéciales" des grandes photos pour qu'elles rentrent */
    .grande-photo, .grande-photo-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Les marges générales du site */
    .section-compagnie, .intro-courte {
        padding: 3rem 1.5rem;
    }
}

/* =========================================
   PAGE SPECTACLES
   ========================================= */
.text-center { text-align: center; }

/* --- 1. LES SPECTACLES VEDETTES (GROS) --- */
.repertoire-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carte-spectacle-vedette {
    display: flex;
    flex-direction: row; /* Texte à gauche, Image à droite */
    align-items: stretch;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-left: 6px solid var(--c-bleu);
}

.carte-spectacle-vedette:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-left-color: var(--c-rouge);
}

/* L'EFFET MAGAZINE : Inverser l'ordre une carte sur deux ! */
.carte-spectacle-vedette:nth-child(even) {
    flex-direction: row-reverse; /* Image à gauche, Texte à droite */
    border-left: none;
    border-right: 6px solid var(--c-bleu);
}

.carte-spectacle-vedette:nth-child(even):hover {
    border-right-color: var(--c-rouge);
}

/* Le contenu des vedettes */
.resume-spectacle {
    flex: 1; /* Prend la moitié de la place */
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-spectacle {
    flex: 1; /* Prend l'autre moitié */
    min-height: 400px;
}

.image-spectacle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.carte-spectacle-vedette:hover .image-spectacle img {
    transform: scale(1.05); /* Petit zoom sur l'image au survol */
}

.annee-creation {
    font-family: 'Jean-Luc', sans-serif;
    color: var(--c-rouge);
    font-size: 2rem;
    line-height: 1;
}

.resume-spectacle h3 {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 3rem;
    color: var(--c-texte);
    margin: 0.5rem 0;
    line-height: 1;
}

.resume-spectacle .auteur {
    font-family: 'HK Grotesk', sans-serif;
    font-style: italic;
    color: var(--c-bleu);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.description-courte {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn-plus-info {
    align-self: flex-start;
    background: transparent;
    color: var(--c-rouge);
    border: 2px solid var(--c-rouge);
    padding: 0.8rem 1.5rem;
    font-family: 'HK Grotesk', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carte-spectacle-vedette:hover .btn-plus-info {
    background: var(--c-rouge);
    color: white;
}


/* --- 2. LES ARCHIVES (PETITS) --- */
.archives-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grille-archives {
    display: grid;
    /* Crée de belles colonnes automatiquement */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3rem 2rem;
}

.carte-archive {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carte-archive:hover {
    transform: translateY(-5px);
}

.carte-archive img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force un carré parfait */
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    margin-bottom: 1rem;
    filter: grayscale(80%); /* En noir et blanc comme l'équipe pour marquer "le passé" */
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.carte-archive:hover img {
    filter: grayscale(0%);
    border-color: var(--c-rouge);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.carte-archive h4 {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 1.2rem;
    color: var(--c-bleu);
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.carte-archive span {
    font-family: 'HK Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--c-rouge);
    font-style: italic;
}

/* =========================================
   PAGE ACTIONS CULTURELLES (DESIGN ALTERNÉ)
   ========================================= */

/* L'encadré pour les ateliers découvertes */
.encadre-bleu {
    border: 2px solid var(--c-bleu);
    padding: 2rem;
    margin-top: 3rem;
    background-color: rgba(71, 103, 170, 0.05);
    text-align: left;
}

.encadre-bleu h3 {
    color: var(--c-bleu);
    font-family: 'Jean-Luc', sans-serif;
    margin-bottom: 1rem;
}

/* Structure de la section alternée */
.section-alternee {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.bloc-alternee {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Inversion Image/Texte pour le rythme */
.bloc-alternee.inverse {
    flex-direction: row-reverse;
}

.texte-alternee {
    flex: 1;
}

.texte-alternee h2 {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.image-alternee {
    flex: 1;
}

.image-alternee img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Stylisation des témoignages d'élèves */
.citation-eleve {
    margin-top: 2rem;
    padding-left: 20px;
    border-left: 4px solid var(--c-rouge);
    font-style: italic;
    color: #444;
}

.citation-eleve span {
    font-weight: bold;
    color: var(--c-rouge);
    font-style: normal;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .bloc-alternee, .bloc-alternee.inverse {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .texte-alternee h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   MINI-GALERIES (MOODBOARDS ATELIER)
   ========================================= */
.mini-galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    grid-auto-rows: 180px; /* Hauteur de base d'une photo */
    gap: 15px;
    width: 100%;
}

.mini-galerie .photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.mini-galerie .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* On désature très légèrement les photos de l'atelier pour un côté "coulisses" */
.mini-galerie .photo-item img {
    filter: sepia(20%) grayscale(20%);
}

.mini-galerie .photo-item:hover img {
    transform: scale(1.05);
    filter: sepia(0%) grayscale(0%); /* L'image reprend ses vraies couleurs au survol */
}

/* Permet à une belle photo verticale de prendre 2 cases de hauteur */
.photo-span-2 {
    grid-row: span 2;
}

/* Adaptation pour Mobile */
@media (max-width: 768px) {
    .mini-galerie {
        grid-auto-rows: 120px; /* Plus petit sur téléphone */
        gap: 10px;
    }
}

/* =========================================
   CONTACT : DISPOSITION CÔTE À CÔTE
   ========================================= */
.contact-split {
    display: flex;
    flex-direction: row;
    align-items: center; /* Aligne la vidéo et le formulaire au centre verticalement */
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.col-video {
    flex: 1;
    width: 100%;
}

.col-formulaire {
    flex: 1;
    width: 100%;
    /* Encadré rouge juste autour du formulaire */
    border: 3px solid var(--c-rouge);
    border-radius: 20px;
    padding: 3rem;
    background-color: white;
}

/* L'astuce magique pour forcer le 16/9 sur YouTube sans déformation */
.video-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 = 9/16 = 0.5625 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: #000;
}

.video-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- LE FORMULAIRE MODERNE (Lignes uniquement) --- */
.form-arnica {
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

/* Les champs de saisie */
.form-arnica input, 
.form-arnica textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc; /* Ligne fine grise par défaut */
    padding: 10px 5px;
    font-family: 'HK Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--c-texte);
    transition: border-color 0.3s ease;
    resize: vertical; /* Permet d'agrandir la zone de texte en hauteur uniquement */
}

/* Effet très chic quand on clique pour écrire */
.form-arnica input:focus, 
.form-arnica textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--c-rouge); /* La ligne devient rouge et un peu plus épaisse */
}

/* Le bouton envoyer */
.btn-envoyer {
    background-color: var(--c-rouge);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Jean-Luc', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
}

.btn-envoyer:hover {
    background-color: var(--c-bleu);
    transform: translateY(-3px);
}

/* --- GRILLE DES CONTACTS PRO --- */
.grille-contacts-pro {
    display: grid;
    /* Crée automatiquement 3 colonnes sur grand écran */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    border-top: 2px solid var(--c-bleu); /* Une ligne bleue au-dessus de chaque personne */
    padding-top: 1.5rem;
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-radius: 0 0 8px 8px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.label-rouge {
    font-family: 'Jean-Luc', sans-serif;
    color: var(--c-rouge);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-card h4 {
    font-family: 'HK Grotesk', sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--c-bleu);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
    word-break: break-all; /* Empêche les adresses mail longues de casser la mise en page */
}

.contact-card a:hover {
    color: var(--c-rouge);
    opacity: 0.8;
}

/* Ajustements pour le bouton contact dans le menu si besoin */
.site-header .btn-contact.active {
    background-color: transparent !important;
}
/* Ajouts pour la page Contact sur mobile */
.contact-split {
    flex-direction: column;
    gap: 3rem;
}

.col-formulaire {
    padding: 2rem; /* Un peu moins de padding sur mobile */
}


/* Inversion des sous-menus pour eviter le debordement a droite */
.menu-droite .sous-menu-croquis {
    left: auto !important;
    right: 0;
    align-items: flex-end;
}

.menu-droite .croquis-ligne {
    border-left: none !important;
    border-right: 2px solid var(--c-rouge);
}

.menu-droite .croquis-liens {
    padding-left: 0 !important;
    padding-right: 15px;
    justify-content: flex-end;
}

/* Ajustement de l'image dans la pop-up spectacle */
#spectacle-modal .modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in; /* Affiche une petite loupe au survol */
}


/* annulation de l animation pour le menu deja visite */
.site-header.deja-visite {
    animation: none !important;
    transition: none !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
}


/* --- LAYOUT GLOBAL CONTACT --- */
.contact-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* Espace propre entre formulaire et video */
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Permet un bel alignement vertical */
}

/* --- BOITE FORMULAIRE --- */
.col-formulaire {
    flex: 1; 
    min-width: 350px;
    background: #ffffff; /* Fond blanc pour detacher du fond beige */
    padding: 3rem; /* Espace interne genereux */
    border-radius: 16px; /* Coins doux */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04); /* Ombre tres legere et moderne */
    border: none; /* Suppression de la bordure rouge dure */
}

/* --- BOITE VIDEO --- */
.col-video {
    flex: 1.2; /* La video prend un poil plus de place */
    min-width: 350px;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.video-wrapper {
    border-radius: 16px; /* Meme arrondi que le formulaire */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Ombre pour donner de la profondeur */
    overflow: hidden;
    /* Conserve tes anciens reglages de padding-bottom pour le ratio 16:9 ici */
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0;
}

/* --- CHAMPS DE TEXTE MODERNES --- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e5e5; /* Bordure gris tres clair */
    border-radius: 8px; /* Arrondi interne */
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #fafafa; /* Fond tres legerement teinte */
    transition: all 0.3s ease;
}

/* Animation au clic dans un champ */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--c-rouge, #E20026);
    box-shadow: 0 0 0 4px rgba(226, 0, 38, 0.1); /* Halo rouge translucide tres actuel */
    background-color: #ffffff;
}

/* --- BOITE NOUS TROUVER (CARTE) --- */
.encadre-bleu {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: none; /* Suppression de la bordure bleue */
    margin-top: 4rem;
}

.mini-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 850px) {
    .contact-grille {
        flex-direction: column;
        gap: 2rem;
    }
    .col-formulaire {
        padding: 2rem; /* Un peu moins d espace sur telephone */
    }
}

/* --- PAGE ATELIER --- */

/* Ajustement specifique pour centrer l equipe sur cette page */
#l-equipe .grille-equipe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
}

#l-equipe .grille-equipe .membre {
    width: 200px; 
    margin: 0;
    transform: none !important; 
}

/* Desactiver le noir et blanc */
#l-equipe .grille-equipe .membre img {
    filter: none !important; 
}



/* --- PAGE ACTIONS CULTURELLES --- */

/* La boite blanche autour de chaque projet */
.carte-action {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bloc-alterne {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Inversion pour l effet miroir un projet sur deux */
.bloc-alterne.inverse {
    flex-direction: row-reverse;
}

.texte-alterne {
    flex: 1;
}

.image-alternee {
    flex: 1;
}

.image-alternee img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Style des citations */
.citation-eleve {
    margin-top: 2rem;
    padding-left: 20px;
    border-left: 3px solid var(--c-rouge, #E20026);
}

/* Responsive mobile */
@media (max-width: 850px) {
    .bloc-alterne, .bloc-alterne.inverse {
        flex-direction: column;
    }
    .carte-action {
        padding: 2rem;
    }
}


/* --- PAGE TOURNEE --- */

.section-tournee {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Le design d une ligne de date */
.ligne-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.ligne-date:hover {
    transform: translateX(5px); /* Petit effet au survol */
}

.bloc-quand {
    flex: 0 0 150px;
    color: var(--c-rouge, #E20026);
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.bloc-quoi {
    flex: 1;
    padding-right: 2rem;
}

.nom-spectacle {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 1.5rem;
    color: var(--c-bleu, #4767AA);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.lieu-spectacle {
    color: #666;
    font-style: italic;
}

/* Bouton reserver */
.bloc-lien a {
    background: var(--c-rouge, #E20026);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.bloc-lien a:hover {
    background: var(--c-bleu, #4767AA);
}

/* Titre separateur d annee pour les archives */
.titre-annee {
    font-family: 'Jean-Luc', sans-serif;
    font-size: 3rem;
    color: var(--c-bleu, #4767AA);
    border-bottom: 2px solid var(--c-rouge, #E20026);
    padding-bottom: 10px;
    margin: 4rem 0 2rem 0;
}

/* Message si pas de dates futures */
.message-vide {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    font-style: italic;
}

/* Version Mobile */
@media (max-width: 768px) {
    .ligne-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .bloc-quand {
        flex: auto;
    }
}

/* ==========================================================================
   AMÉLIORATIONS ERGONOMIQUES MOBILE (PAGE SPECTACLES & MODALS)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Page Spectacles : Affichage vertical propre (photo au-dessus du texte) */
    .carte-spectacle-vedette,
    .carte-spectacle-vedette:nth-child(even) {
        flex-direction: column-reverse !important; /* L'image s'affiche au-dessus du résumé */
        border-left: none !important;
        border-right: none !important;
        border-top: 5px solid var(--c-bleu) !important;
    }
    
    .carte-spectacle-vedette:hover,
    .carte-spectacle-vedette:nth-child(even):hover {
        border-top-color: var(--c-rouge) !important;
    }

    .image-spectacle {
        flex: none !important;
        width: 100% !important;
        height: 250px !important;
        min-height: auto !important;
    }

    .image-spectacle img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .resume-spectacle {
        flex: none !important;
        width: 100% !important;
        padding: 2rem !important;
    }

    /* 2. Modals Équipe & Spectacles : Permettre le scroll global de l'image et du texte */
    .modal-content {
        height: 90vh !important;
        overflow: hidden !important;
    }

    .modal-body {
        flex-direction: column !important;
        overflow-y: auto !important; /* Le scroll se fait sur le body entier */
        height: 100% !important;
    }

    .modal-left {
        flex: none !important;
        width: 100% !important;
        padding: 20px !important;
        background-color: #eae8e3 !important;
        display: block !important;
    }

    .modal-left img {
        max-height: 40vh !important; /* Limite la hauteur de l'image pour voir le texte en dessous */
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .modal-right {
        flex: none !important;
        width: 100% !important;
        padding: 20px 20px 60px 20px !important; /* Espace en bas pour la lisibilité */
        overflow-y: visible !important; /* Pas de scrollbar double */
    }

    /* 3. Correction des sous-menus mobiles coupés ou décalés (no-wrap & menu-droite) */
    .sous-menu-croquis,
    .menu-droite .sous-menu-croquis {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        left: auto !important;
        right: auto !important;
        margin: 0.8rem 0 0 0 !important;
        padding: 0 !important;
        width: 100% !important;
        border-left: 2px solid rgba(226, 0, 38, 0.15) !important;
    }

    .croquis-liens,
    .menu-droite .croquis-liens {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-left: 1rem !important;
        padding-right: 0 !important;
        gap: 8px !important;
        white-space: normal !important; /* Permet le retour à la ligne */
        width: 100% !important;
    }

    .main-nav ul li .croquis-liens a,
    .main-nav ul li.menu-droite .croquis-liens a {
        display: block !important;
        font-family: 'Jean-Luc', sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: bold !important;
        color: var(--c-rouge) !important;
        text-transform: uppercase !important;
        white-space: normal !important;
        width: 100% !important;
        line-height: 1.3 !important;
        border: none !important;
        padding: 0 !important;
    }
}