/* =========================================
   1. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    display: block;      /* IMPORTANT : Pas de Flexbox ici */
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
    color: #1a1a1a;
    line-height: 1.6;
}

/* =========================================
   2. SIDEBAR (MENU GAUCHE)
   ========================================= */
header {
    width: 250px;
    height: 100vh;
    position: fixed;     /* Menu fixe à gauche */
    left: 0;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    z-index: 100;
    padding: 40px;
}

/* LOGO */
.logo { text-align: center; margin-bottom: 40px; }
.logo img {
    max-width: 100%; width: 150px; height: auto;
    display: block; margin: 0 auto;
}

/* NAVIGATION */
nav ul { list-style: none; }
nav li { margin-bottom: 15px; }

.menu-separator {
    margin-top: 30px; font-size: 0.7rem; color: #999;
    letter-spacing: 2px; text-transform: uppercase;
    border-bottom: 1px solid #eee; padding-bottom: 5px; margin-bottom: 15px;
}

nav a {
    text-decoration: none; color: #666; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s;
    display: block;
}
nav a:hover, nav a.active {
    color: #000; font-weight: 600; padding-left: 5px; border-left: 2px solid black;
}

/* --- LE CONTENU (LA GROSSE BOITE) --- */
.contenu-droite {
    display: block;             /* S'assure qu'il se comporte comme un bloc */
    margin-left: 250px;         /* Laisse la place au menu */
    width: auto;
    
    /* C'EST CETTE LIGNE QUI POUSSE LE FOOTER EN BAS */
    min-height: 100vh;          /* Force la boîte à faire toute la hauteur de l'écran */
    
    padding-bottom: 50px;       /* Un peu d'air en bas */
    
    /* DEBUG : SI TU NE VOIS PAS DE GRIS, TON CSS NE MARCHE PAS */
    background-color: #f9f9f9; 
}

/* =========================================
   FOOTER SIGNATURE (Design Validé)
   ========================================= */

footer#pied-de-page {
    background-color: #1a1a1a; /* Noir/Gris très foncé */
    color: #cccccc;            /* Texte Gris clair */
    padding: 60px 20px 40px 20px; /* Padding généreux */
    text-align: center;
    margin-top: 0;
    
    /* GESTION DU MENU LATÉRAL */
    margin-left: 250px; 
    border-top: 1px solid #333; /* Séparation subtile */
}

/* 1. IDENTITÉ */
.footer-section.identity h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.footer-section.identity p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 2. RÉSEAUX SOCIAUX */
.footer-section.socials {
    margin: 30px 0; /* Espacement vertical */
    display: flex;
    justify-content: center;
    gap: 40px; /* Espace entre les icônes */
}

.footer-section.socials a {
    color: #d4af37; /* OR (Accent principal) */
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-section.socials a:hover {
    opacity: 1;
    transform: scale(1.1); /* Léger zoom élégant */
    color: #f0e68c; /* Or plus clair au survol */
}

/* 3. LEGAL & ADMIN */
.footer-section.legal {
    margin-top: 40px;
    font-size: 0.75rem;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

.separateur {
    margin: 0 15px;
    color: #444;
}

/* Le Lien Admin (Discret mais accessible) */
.lien-admin-discret {
    color: #444; /* Très sombre par défaut (quasi invisible) */
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: lowercase;
}

.lien-admin-discret:hover {
    color: #888; /* Devient lisible au survol */
    text-decoration: underline;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    footer#pied-de-page {
        margin-left: 0; /* On annule la marge du menu */
        padding-bottom: 90px; /* Place pour le scroll */
    }
    
    .footer-section.socials {
        gap: 25px; /* Icônes plus rapprochées */
    }
}

/* =========================================
   5. TYPOGRAPHIE & ELEMENTS
   ========================================= */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; color: #000; }
h1 { font-size: 3rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
p { margin-bottom: 15px; font-weight: 300; font-size: 1.05rem; }
blockquote { border-left: 3px solid #000; padding-left: 20px; font-style: italic; color: #555; margin: 20px 0; }



/* =========================================
   6. VITRINE (ACCUEIL & PHOTOS)
   ========================================= */
.hero-text { text-align: center; margin-bottom: 50px; animation: fadein 1s; }
.hero-text h1 { font-size: 4rem; letter-spacing: 5px; }
.hero-text .sous-titre { font-style: italic; color: #666; font-size: 1.2rem; }

.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.carte-vitrine { cursor: pointer; transition: transform 0.3s ease; }
.carte-vitrine:hover { transform: translateY(-10px); }

.image-wrapper {
    position: relative; overflow: hidden; height: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s; filter: grayscale(100%);
}
.carte-vitrine:hover img { transform: scale(1.05); filter: grayscale(0%); }

.etiquette {
    position: absolute; top: 15px; left: 15px;
    padding: 5px 10px; font-size: 0.7rem; font-weight: bold;
    letter-spacing: 1px; text-transform: uppercase;
}
.carte-vitrine h3 { text-align: center; margin-top: 15px; font-size: 1.2rem; }

/* =========================================
   7. FORMULAIRE
   ========================================= */
input, textarea {
    width: 100%; padding: 15px; margin-bottom: 20px;
    border: 1px solid #ddd; background: #fafafa; font-family: inherit;
}
button {
    background: #000; color: #fff; padding: 15px 30px;
    border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
}
button:hover { background: #333; }

/* =========================================
   8. MOBILE (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    header { position: relative; width: 100%; height: auto; }
    
    /* Annulation des marges sur mobile */
    .contenu-droite, .footer-global {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    main { padding: 30px; }
    .vitrine-grid { grid-template-columns: 1fr; }
}

@keyframes fadein { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* =========================================
   NOUVEAU DESIGN : ACCUEIL 3 PORTES
   ========================================= */

/* L'En-tête Nom + Baseline */
.intro-header {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.intro-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    letter-spacing: 4px;
    margin: 0;
    color: #1a1a1a;
    text-transform: uppercase;
}
.intro-header .baseline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-top: 10px;
}

/* La Grille des 3 Portes */
.grille-portes {
    display: flex;
    height: 75vh; /* Prend une bonne partie de l'écran */
    width: 100%;
}

.porte {
    flex: 1; /* Largeur égale pour les 3 */
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-right: 1px solid #fff; /* Séparateur blanc fin */
    background: #000;
}

/* L'image de fond */
.porte-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(100%); /* Noir et blanc par défaut */
    opacity: 0.7;
}

/* L'Overlay (Voile noir pour lisibilité texte) */
.porte-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

/* Le Texte sur la porte */
.porte-contenu {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.porte h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.porte .sous-titre {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #d4af37; /* LE DORÉ DU BRIEF */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-top: 1px solid #d4af37;
    padding-top: 10px;
    display: inline-block;
}

/* --- INTERACTIONS (HOVER) --- */
.porte:hover .porte-bg {
    transform: scale(1.05); /* Zoom léger */
    filter: grayscale(0%);  /* Retour de la couleur */
    opacity: 1;
}
.porte:hover .porte-overlay {
    opacity: 0.4; /* On éclaircit pour mieux voir l'image */
}
.porte:hover h2 {
    color: #fff;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .grille-portes {
        flex-direction: column; /* Les portes s'empilent */
        height: auto;
    }
    .porte {
        height: 300px; /* Hauteur fixe sur mobile */
        border-bottom: 1px solid #fff;
        border-right: none;
    }
    .intro-header h1 { font-size: 2rem; }
}


/* =========================================
   PAGE SPÉCIALE : AKOPHA (Théâtre)
   ========================================= */

/* 1. HERO SECTION (L'En-tête géant) */
.hero-akopha {
    height: 70vh;
    /* Image par défaut si pas chargée dynamiquement */
    background-color: #1a1a1a; 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.hero-akopha::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); /* Voile noir pour lire le texte */
}

.hero-akopha h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5em;
    color: white;
    z-index: 1;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    letter-spacing: 5px;
}

.hero-akopha .sous-titre {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: #d4af37; /* OR */
    z-index: 1;
    letter-spacing: 4px;
    margin-top: 10px;
    text-transform: uppercase;
}

.hero-akopha .badge {
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    color: #ccc;
    font-size: 0.8rem;
    letter-spacing: 2px;
    z-index: 1;
    text-transform: uppercase;
}

/* 2. CONTENU GÉNÉRAL */
.contenu-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.synopsis p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
}
.synopsis strong { color: #000; font-weight: 600; }

.separateur-fin {
    width: 100px; height: 2px; background: #d4af37;
    margin: 60px auto;
}

/* 3. GRILLE INFOS TECHNIQUES */
.infos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.info-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}
.info-card:hover { transform: translateY(-5px); border-color: #d4af37; }

.info-card h4 {
    color: #d4af37;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.info-card ul { list-style: none; padding: 0; font-size: 0.9rem; }
.info-card li { margin-bottom: 5px; }


/* MOBILE */
@media (max-width: 768px) {
    .hero-akopha h1 { font-size: 3em; }
    .infos-grid { grid-template-columns: 1fr; }
}

/* =========================================
   STYLE PAGE À PROPOS (Mise à jour)
   ========================================= */

/* Le Header */
.bio-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #d4af37; /* Bordure Or */
    object-fit: cover;
    margin: 0 auto 25px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bio-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bio-header .baseline {
    font-family: 'Montserrat', sans-serif;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1em;
}

/* Le Texte */
.bio-contenu {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #333;
    font-family: 'Georgia', serif;
    margin-bottom: 30px;
}

.bio-contenu h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.bio-contenu p {
    font-family: 'Georgia', serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.bio-contenu strong {
    color: #000;
    font-weight: 600;
}

/* Liens dans les pages de contenu */
.bio-contenu a,
.contenu-page a:not(.cta-bouton):not(.btn-or) {
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.bio-contenu a:hover,
.contenu-page a:not(.cta-bouton):not(.btn-or):hover {
    color: #b8960b;
    border-bottom-color: #b8960b;
}

/* La Citation de fin */
.bio-citation {
    margin: 60px 0 30px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    font-style: italic;
    color: #d4af37;
    line-height: 1.4;
    padding: 0 20px;
}

/* Séparateur */
.separateur-bio {
    width: 60px;
    height: 2px;
    background: #d4af37;
    margin: 40px auto;
}

/* Bloc Contact */
.contact-section {
    background: #f9f9f9;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    border-radius: 4px;
}
/* =========================================
   PAGE : CONTACT
   ========================================= */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Introduction */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.contact-intro h1 { font-family: 'Cormorant Garamond', serif; font-size: 3em; margin: 0; }
.contact-intro .sous-titre { font-family: 'Montserrat', sans-serif; color: #d4af37; text-transform: uppercase; letter-spacing: 2px; margin: 10px 0 20px; }
.contact-intro p { font-family: 'Georgia', serif; font-size: 1.1em; color: #333; line-height: 1.6; }

/* Layout 2 colonnes */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Formulaire plus large que infos */
    gap: 60px;
    align-items: start;
}

/* Formulaire */
.form-col {
    background: #fafafa;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.85em; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; text-transform: uppercase; letter-spacing: 1px; }

.form-group input, .form-group textarea {
    width: 100%; padding: 12px;
    border: 1px solid #ddd; border-radius: 2px;
    font-family: inherit; font-size: 1em;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #d4af37; }

.btn-envoyer {
    background: #1a1a1a; color: white;
    padding: 15px 40px; border: 2px solid #1a1a1a;
    font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; width: 100%;
}
.btn-envoyer:hover { background: transparent; color: #1a1a1a; }

/* Messages Réponse */
.form-response { display: none; margin-top: 20px; padding: 15px; border-radius: 4px; font-size: 0.9em; text-align: center; }
.form-response.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-response.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Infos (Droite) */
.info-col h3 { font-family: 'Montserrat', sans-serif; font-size: 1.2em; border-bottom: 2px solid #d4af37; padding-bottom: 10px; margin-top: 0; }

.info-item { margin-bottom: 25px; }
.info-item .label { color: #888; font-size: 0.85em; text-transform: uppercase; margin-bottom: 5px; }
.info-item .value { font-size: 1.1em; color: #000; font-weight: 500; }
.info-item a { color: #d4af37; text-decoration: none; }

.reseaux-contact a { color: #d4af37; margin-right: 15px; display: inline-block; transition: transform 0.3s; }
.reseaux-contact a:hover { transform: scale(1.1); color: #b8860b; }

.section-pro { margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; }
.section-pro h4 { color: #d4af37; text-transform: uppercase; font-size: 0.9em; letter-spacing: 1px; }
.section-pro p { font-size: 0.9em; color: #666; margin-bottom: 10px; line-height: 1.4; }

/* Mobile */
@media (max-width: 768px) {
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .form-col { padding: 25px; }
}


/* =========================================
   PORTFOLIO PHOTO — DESIGN PRO
   Remplace l'ancienne section "PORTFOLIO PHOTO"
   dans style.css (lignes ~733-852)
   ========================================= */

/* ---- HERO HEADER ---- */
.portfolio-hero {
    position: relative;
    height: 45vh;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #0a0a0a;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.03) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.02) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}

.portfolio-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    animation: fadeUp 1s ease-out;
    border-bottom: none;
}

.portfolio-hero .tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4af37;
    animation: fadeUp 1s ease-out 0.2s both;
}

.portfolio-hero .location {
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 3px;
    color: #666;
    margin-top: 12px;
    text-transform: uppercase;
    animation: fadeUp 1s ease-out 0.4s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- NAVIGATION SÉRIES (onglets filtres) ---- */
.series-navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,175,55,0.1);
    padding: 0;
    transition: box-shadow 0.3s;
}

.series-navigation.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.series-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.series-nav-inner::-webkit-scrollbar { display: none; }

.serie-tab {
    position: relative;
    background: none;
    border: none;
    padding: 20px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    transition: color 0.4s;
    white-space: nowrap;
    border-radius: 0;
}

.serie-tab:hover { color: #bbb; }

.serie-tab.active { 
    color: #d4af37;
    font-weight: 500;
}

.serie-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 2px;
    background: #d4af37;
    animation: expandLine 0.3s ease-out;
}

@keyframes expandLine {
    from { left: 50%; right: 50%; }
    to { left: 30%; right: 30%; }
}

.serie-count {
    font-size: 0.55rem;
    color: #555;
    margin-left: 6px;
    font-weight: 300;
}

.serie-tab.active .serie-count { color: #b8960b; }

/* ---- HEADER DE SÉRIE ---- */
.serie-header {
    text-align: center;
    padding: 40px 20px 50px;
}

.serie-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: none;
}

.serie-header .serie-description {
    font-size: 0.85rem;
    font-weight: 200;
    color: #777;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- CONTAINER GALERIE ---- */
.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 80px;
    background: #0a0a0a;
}

/* ---- GRILLE MASONRY (CSS Columns) ---- */
.gallery-grid {
    column-count: 3;
    column-gap: 14px;
    padding: 0;
    transition: opacity 0.4s, transform 0.4s;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                filter 0.5s ease;
    filter: brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}

/* Overlay gradient au hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

/* Titre au hover */
.gallery-item .photo-title {
    position: absolute;
    bottom: 16px;
    left: 18px;
    right: 18px;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .photo-title {
    opacity: 1;
    transform: translateY(0);
}

/* ---- LIGHTBOX PRO ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
    animation: lbFadeIn 0.3s ease-out;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay img.lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0,0,0,0.6);
    animation: lbZoomIn 0.3s ease-out;
}

@keyframes lbZoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Bouton fermer (croix) */
.lb-close {
    position: absolute;
    top: 24px; right: 30px;
    width: 44px; height: 44px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.lb-close:hover { transform: rotate(90deg); }
.lb-close::before, .lb-close::after {
    content: '';
    position: absolute;
    width: 24px; height: 1.5px;
    background: #888;
    transition: background 0.3s;
}
.lb-close:hover::before, .lb-close:hover::after { background: #d4af37; }
.lb-close::before { transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }

/* Flèches navigation */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    opacity: 0.5;
    z-index: 10001;
}
.lb-nav:hover { opacity: 1; }

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-nav svg {
    width: 28px; height: 28px;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
}
.lb-nav:hover svg { stroke: #d4af37; }

/* Infos en bas */
.lb-info {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10001;
}

.lb-info .lb-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
}

.lb-info .lb-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 200;
    color: #555;
    margin-top: 6px;
    letter-spacing: 2px;
}

/* Barre de thumbnails */
.lb-thumbnails {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10001;
    max-width: 80vw;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
}
.lb-thumbnails::-webkit-scrollbar { display: none; }

.lb-thumb {
    width: 48px;
    height: 32px;
    object-fit: cover;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s;
    flex-shrink: 0;
}
.lb-thumb:hover { opacity: 0.7; }
.lb-thumb.active { opacity: 1; border-bottom: 2px solid #d4af37; }

/* ---- SECTION ATELIERS ---- */
.ateliers-section {
    background: #111;
    border-top: 1px solid rgba(212,175,55,0.15);
    text-align: center;
    padding: 80px 20px;
    margin-top: 0;
}

.ateliers-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: none;
}

.ateliers-section p {
    font-size: 0.85rem;
    font-weight: 200;
    color: #888;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.btn-atelier {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #d4af37;
    color: #d4af37;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s;
}
.btn-atelier:hover {
    background: #d4af37;
    color: #0a0a0a;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .gallery-grid { column-count: 3; }
}

@media (max-width: 900px) {
    .gallery-grid { column-count: 2; column-gap: 10px; }
    .gallery-item { margin-bottom: 10px; }
    .serie-tab { padding: 16px 20px; font-size: 0.65rem; letter-spacing: 2px; }
}

@media (max-width: 600px) {
    .gallery-grid { column-count: 1; column-gap: 0; padding: 0 10px; }
    .gallery-item { margin-bottom: 10px; }
    .portfolio-hero { height: 35vh; min-height: 260px; }
    .portfolio-hero h1 { letter-spacing: 6px; }
    .serie-tab { padding: 14px 16px; }
    .lb-thumbnails { display: none; }
    .lb-nav { width: 44px; height: 44px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}


/* --- STYLE PORTFOLIO OVERLAY (HOVER) --- */

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Important pour que l'image ne dépasse pas */
    border-radius: 4px; /* Optionnel : coins arrondis */
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

/* L'Overlay (caché par défaut) */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    color: #fff;
    opacity: 0; /* Invisible au départ */
    display: flex;
    align-items: center;     /* Centré verticalement */
    justify-content: center; /* Centré horizontalement */
    text-align: center;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Au survol de la souris */
.gallery-item:hover .photo-overlay {
    opacity: 1; /* Devient visible */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Petit zoom sympa sur l'image */
}

/* Contenu de l'overlay */
.overlay-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37; /* Couleur Or */
}

.overlay-exif {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.6;
}

.tech-details {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
}

/* Style Lightbox EXIF */
.lb-exif {
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* On s'assure que la lightbox est cachée par défaut */
.lightbox-overlay {
    display: none; 
    /* ... tes autres styles existants ... */
}
.lightbox-overlay.visible {
    display: flex; /* Le JS ajoute cette classe pour afficher */
}

/* 1. On aligne tout proprement à droite */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre les éléments */
}

/* 2. Le style du bouton "Index du site" */
.btn-site {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icone maison et le texte */
    
    background-color: #d4af37; /* Le doré de votre marque */
    color: #fff; /* Texte blanc */
    
    padding: 8px 16px;
    border-radius: 4px; /* Coins arrondis */
    text-decoration: none; /* Pas de soulignement */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Légère ombre */
}

/* 3. Effet au survol de la souris */
.btn-site:hover {
    background-color: #bfa140; /* Doré un peu plus foncé */
    transform: translateY(-2px); /* Le bouton remonte un peu */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* L'ombre grandit */
    color: #fff;
}

/* 4. Petit ajustement pour le texte "Connecté : ..." pour qu'il ne colle pas */
.user-info {
    color: #aaa;
    font-size: 0.9rem;
    margin-right: 10px;
}



/* =========================================================
 * COLONIES — Styles spécifiques page Roman
 * ========================================================= */

/* --- Hero Colonies (bandeau image + titre) --- */
.hero-colonies {
    position: relative;
    width: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-colonies::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-colonies h1 {
    position: relative;
    z-index: 1;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3em;
    font-weight: 300;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-colonies .sous-titre {
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-colonies { min-height: 250px; padding: 40px 15px; }
    .hero-colonies h1 { font-size: 2em; letter-spacing: 3px; }
}

/* --- Barre de progression --- */
.progress-container {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: #f8f7f4;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8em;
    font-family: 'Montserrat', sans-serif;
}

.progress-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
}

.progress-count {
    font-size: 0.95em;
    color: #1a1a1a;
}

.progress-count strong {
    font-size: 1.3em;
    color: #d4af37;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0ddd6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0e68c);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.progress-note {
    margin-top: 0.8em;
    margin-bottom: 0;
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}

/* --- Thèmes du roman --- */
.theme-item {
    padding: 0.8em 0;
    border-bottom: 1px solid #f0ede6;
    line-height: 1.7;
}

.theme-item:last-child {
    border-bottom: none;
}

.theme-item strong {
    color: #1a1a1a;
}

/* --- Arcs narratifs (grille) --- */
.chapitres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin: 1.5em 0;
}

.arc-narratif {
    padding: 1.5em;
    background: #f8f7f4;
    border-left: 3px solid #d4af37;
    border-radius: 0 6px 6px 0;
}

.arc-narratif h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    color: #1a1a1a;
}

.arc-narratif p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.chapitres-note {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 0.5em;
}

/* --- Tagline --- */
.page-colonies .tagline,
.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3em;
    font-style: italic;
    text-align: center;
    color: #888;
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #e8e4dc;
    border-bottom: 1px solid #e8e4dc;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .chapitres-grid {
        grid-template-columns: 1fr;
    }

    .progress-container {
        padding: 1em 1.2em;
    }

    .progress-info {
        flex-direction: column;
        gap: 0.3em;
    }
}


/* =========================================================
 * AKOPHA — Styles spécifiques page Théâtre
 * ========================================================= */

/* --- Extrait théâtral --- */
.didascalie {
    display: block;
    font-style: italic;
    color: #888;
    font-size: 0.88em;
    margin: 1.2em 0 0.6em 0;
    padding-left: 1em;
    border-left: 2px solid #e0ddd6;
}

.personnage {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}

.replique {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 0.3em;
    padding-left: 1.5em;
}

/* --- Distribution (liste des personnages) --- */
.page-akopha ul {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.page-akopha ul li {
    padding: 0.6em 0;
    border-bottom: 1px solid #f0ede6;
    font-size: 0.95em;
    line-height: 1.6;
}

.page-akopha ul li:last-child {
    border-bottom: none;
}

.page-akopha ul li strong {
    color: #1a1a1a;
}

/* --- Genre & Scénographie (blocs info compacts) --- */
.page-akopha .genre,
.page-akopha .scenographie {
    font-size: 0.9em;
    line-height: 2;
    color: #666;
}

/* --- Badge SACD --- */
.badge-sacd {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 0.3em 0.8em;
    border-radius: 3px;
    margin-bottom: 1em;
}

/* --- CTA Professionnel (partagé Akopha + Colonies) --- */
.cta-pro {
    margin: 3em 0 2em 0;
    padding: 2em;
    background: #f8f7f4;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    text-align: center;
}

.cta-pro h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 0.8em 0;
    color: #1a1a1a;
}

.cta-pro p,
.cta-pro .cta-texte {
    font-size: 0.9em;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1.2em;
}

.cta-pro em {
    display: block;
    margin-top: 0.5em;
    font-size: 0.85em;
    color: #999;
}

.cta-bouton {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    background: transparent;
    border: 2px solid #d4af37;
    padding: 0.8em 2em;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5em;
}

.cta-bouton:hover {
    background: #d4af37;
    color: #fff;
}

/* --- Accroche (partagé Akopha + Colonies) --- */
.accroche {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25em;
    font-style: italic;
    line-height: 1.7;
    color: #555;
    text-align: center;
    margin: 1.5em 0 2em 0;
    padding: 0 1em;
}

/* --- Séparateur de section --- */
.page-akopha h3,
.page-colonies h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3em;
    font-weight: 500;
    color: #1a1a1a;
    margin: 2.5em 0 0.8em 0;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #e8e4dc;
}

/* --- Blockquote (extraits / citations) --- */
.page-akopha blockquote,
.page-colonies blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    font-style: italic;
    color: #888;
    border-left: 3px solid #d4af37;
    margin: 2em 0;
    padding: 0.8em 1.5em;
    background: transparent;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .replique {
        padding-left: 0.8em;
        font-size: 1em;
    }

    .cta-pro {
        padding: 1.5em 1.2em;
    }

    .cta-bouton {
        display: block;
        text-align: center;
    }

    .accroche {
        font-size: 1.1em;
        padding: 0;
    }
}