/*
Theme Name: ChacalProd v4.0
Theme URI: https://chacalprod.fr
Author: ChacalProd
Description: Thème Neo-Brutalist dynamique (Mag / Collectif / Indiv) pour collectif BD avec espace privé.
Version: 4.0.0
Requires at least: 6.0
License: GNU General Public License v2 or later
Text Domain: chacalprod
*/
/* ── Light mode (défaut) ── */
:root {
    --bg-color:      #ffffff;
    --bg-page:       rgba(250, 245, 240, 0.85);
    --bg-section:    #ffffff;
    --bg-card:       #ffffff;
    --bg-navbar:     rgba(255, 255, 255, 0.95);
    --text-color:    #2b1f1f;
    --text-muted:    #888888;
    --accent-brown:  #8b5a2b;
    --discord-blue:  #4a2c16;
    --hover-blue:    #2c1a0d;
    --border-color:  rgba(0, 0, 0, 0.05);
    --shadow:        rgba(0, 0, 0, 0.08);
}

/* ── Dark mode ── */
[data-theme="dark"] {
    --bg-color:      #1a1410;
    --bg-page:       rgba(18, 14, 10, 0.95);
    --bg-section:    #221c16;
    --bg-card:       #2d2420;
    --bg-navbar:     rgba(30, 24, 18, 0.97);
    --text-color:    #f0e8dc;
    --text-muted:    #9a8a7a;
    --accent-brown:  #c9853e;
    --discord-blue:  #d4a574;
    --hover-blue:    #e8c09a;
    --border-color:  rgba(255, 255, 255, 0.06);
    --shadow:        rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background-color: var(--bg-page);
    background-image: url('images/sketch_bg.png');
    color: var(--text-color);
}

[data-theme="dark"] .section        { background: var(--bg-section); }
[data-theme="dark"] .nav-right      { background: var(--bg-navbar);  color: var(--text-color); }
[data-theme="dark"] .festival-card  { background: var(--bg-card);    border-color: var(--border-color); }
[data-theme="dark"] .scroll-item-cover { box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
[data-theme="dark"] .lightbox       { background: rgba(10, 8, 5, 0.97); }
[data-theme="dark"] .back-to-top    { background: var(--bg-card); color: var(--text-muted); }
[data-theme="dark"] .cta-section    { background: #1f1810; }
[data-theme="dark"] footer          { background: #150f0a; border-color: #2a2018; color: var(--text-muted); }
[data-theme="dark"] .nav-link       { color: var(--text-color); }
[data-theme="dark"] .gallery-table-scattered img { background: #2d2420; box-shadow: 3px 6px 18px rgba(0,0,0,0.6); }
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] p   { color: var(--text-color); }

/* ── View Transitions API ── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vt-fade-out 0.25s ease forwards;
}

::view-transition-new(root) {
    animation: vt-slide-in 0.3s ease forwards;
}

@keyframes vt-fade-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-30px); }
}

@keyframes vt-slide-in {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Swipe snap pour fanzines ── */
.horizontal-scroll-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
.horizontal-scroll-container:active { cursor: grabbing; }

/* ── Bouton install PWA ── */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Wildjess', 'Inter', sans-serif;
    color: var(--text-color);
    background-color: rgba(250, 245, 240, 0.85); /* Filtre plus léger pour laisser apparaître le croquis */
    background-blend-mode: overlay;
    background-image: url('images/sketch_bg.png');
    background-size: 400px;
    background-repeat: repeat;
    line-height: 1.6;
    overflow-x: hidden;
}

.site-wrapper {
    max-width: 1200px;
    margin: 220px auto 0 auto; /* Descendu plus bas car le bandeau est plus haut (180px) */
    background-color: transparent; /* Permet de voir le motif sketch_bg partout ! */
    box-shadow: 0 0 50px rgba(0,0,0,0.05); /* Ombre super douce et discrète */
    border-left: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
.comic-title, .logo {
    font-family: 'Bangers', cursive; 
    letter-spacing: 3px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.1;
}

h2.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #888;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Nav (Bandeau Haut avec Onglets) --- */
.navbar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 180px; /* BANDEAU PLUS GRAND */
    background-color: #e3ccb3;
    background-image: url('images/dessin_bandeau_haut.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid #6b4423; /* Bordure plus forte */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
}

.logo {
    display: none; /* Le logo sera dans un bloc séparé sur les pages concernées, mais pas dans le bandeau fix */
}

.nav-right {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    width: 100vw;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.95); /* Bandeau blanc très propre en bas de l'image */
    border-top: 1px solid rgba(0,0,0,0.05); /* Ligne subtile */
    position: relative;
    z-index: 2; /* S'assure que les onglets passent au-dessus du lien global du bandeau */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.02); /* Ombre douce inversée pour détacher de l'image */
}

/* Lien invisible qui couvre le bandeau pour cliquer dessus */
.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* 100% moins la taille du menu en bas */
    z-index: 1;
    cursor: pointer;
}

.nav-link {
    font-family: 'Bangers', cursive; /* Police très cartoon/BD demandée */
    font-weight: normal; /* Bangers n'a pas besoin de gras */
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    font-size: 1.4rem; /* Bangers taille petit, on compense un peu */
    text-transform: none; /* Déjà en majuscule naturellement */
    letter-spacing: 2px;
    padding: 0.6rem 1.2rem;
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

/* Fond de survol élégant (effet bulle moderne) */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(139, 90, 43, 0.08); /* Très léger fond brun */
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}



/* Nouveau style pour le bloc logo en dessous du bandeau */
.site-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.site-head .logo-img {
    height: 100px;
    margin-bottom: 10px;
}
.site-head .logo-title {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: var(--text-color);
}

/* ============================================================
   🏷️ BOUTONS STICKER — Style Pop-Art / BD 2026
   ============================================================ */
.btn {
    text-decoration: none;
    padding: 0.85rem 1.8rem;
    border-radius: 4px;
    font-weight: 900;
    font-family: 'Bangers', cursive;
    font-size: 1.15rem;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* L'ombre nette et épaisse = effet Sticker/Autocollant */
    box-shadow: 4px 4px 0px #1a1a1a;
    border: 2.5px solid #1a1a1a;
    background: #ffe04b; /* Jaune BD chaud par défaut */
    color: #1a1a1a;
    position: relative;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.12s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-4px) rotate(-1deg) scale(1.04);
    box-shadow: 7px 7px 0px #1a1a1a;
    color: #1a1a1a;
}

.btn:active {
    /* Au clic : le sticker s'écrase ! */
    transform: translateY(3px) scale(0.96);
    box-shadow: 1px 1px 0px #1a1a1a;
}

.btn-discord {
    background: #d28c4e;
    color: #1a1a1a;
    border-color: #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
}

.btn-discord:hover {
    background: #bd7941;
    color: #1a1a1a;
    transform: translateY(-4px) rotate(-1deg) scale(1.04);
    box-shadow: 7px 7px 0px #1a1a1a;
}

.discord-svg {
    fill: #1a1a1a !important;
    transition: transform 0.3s;
}

.btn-hero {
    font-size: 1.4rem;
    padding: 1.1rem 2.8rem;
}

.btn-huge {
    font-size: 1.7rem;
    padding: 1.5rem 3.5rem;
    box-shadow: 6px 6px 0px #1a1a1a;
}
.btn-huge:hover {
    box-shadow: 10px 10px 0px #1a1a1a;
}

/* --- HERO CENTRALISE --- */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh; 
    padding: 4rem 5%;
    margin: 0 auto;
    position: relative;
}

.hero-image-logo {
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    z-index: 2; 
}

.hero-image-logo img {
    width: 100%;
    transform: scale(1.6); 
    height: auto;
    object-fit: contain; 
}

.hero-text {
    max-width: 700px;
    z-index: 2;
}

/* Indicateur Scroll sobre */
.scroll-indicator {
    margin-top: 4rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: #ccc;
}
.scroll-indicator:hover { color: var(--accent-brown); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- Sections génériques --- */
.section {
    padding: 5rem 5%;
    margin: 0 auto;
    position: relative;
    background: #ffffff; /* Très pur */
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Mosaïque "Eparpillée" sur Table --- */
.gallery-mosaic, .fanzine-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 1.5rem;
    padding: 2rem;
}

.gallery-mosaic img, .fanzine-pages img {
    width: 300px;
    height: auto;
    border-radius: 2px;
    border: 10px solid white; /* Effet Polaroid */
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); /* Ombre douce et large */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    object-fit: contain; 
}

/* The Magic of Scattered Photos */
.gallery-mosaic img:nth-child(even), .fanzine-pages img:nth-child(even) { transform: rotate(3deg); }
.gallery-mosaic img:nth-child(3n), .fanzine-pages img:nth-child(3n) { transform: rotate(-4deg); }
.gallery-mosaic img:nth-child(5n), .fanzine-pages img:nth-child(5n) { transform: rotate(2deg); }

.gallery-mosaic img:hover, .fanzine-pages img:hover {
    transform: scale(1.1) rotate(0deg); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

/* --- Festivals Grid --- */
.festivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Mosaïque Galerie (Ordonnée) — surcharge intentionnelle pour la galerie */
.gallery-mosaic {
    display: grid;
    gap: 1.5rem;
    padding: 0 2%;
    /* Annule le flex du sélecteur précédent */
    flex-wrap: unset;
    justify-content: unset;
}

.gallery-mosaic img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-mosaic img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Galerie Style Table en Bazar (Scatter) */
.gallery-table-scattered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    padding: 5rem 4%;
    margin-bottom: 2rem;
    min-height: 500px;
}

/* L'unité eparpillée est le lien <a>, pas l'image */
.gallery-img {
    display: inline-block;
    position: relative;
    margin: 8px;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s ease,
                z-index 0s;
    cursor: zoom-in;
    text-decoration: none;
}

.gallery-img img {
    display: block;
    max-width: 200px;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: white;
    padding: 8px 8px 28px 8px;
    box-shadow: 3px 6px 18px rgba(0,0,0,0.22);
}

/* Rotations pseudo-aléatoires différenciées sur chaque image */
.gallery-img:nth-child(6n+1)  { transform: rotate(-4deg) translateY(10px); }
.gallery-img:nth-child(6n+2)  { transform: rotate(6deg) translateY(-8px); margin-left: -16px; }
.gallery-img:nth-child(6n+3)  { transform: rotate(-9deg) translateY(14px); }
.gallery-img:nth-child(6n+4)  { transform: rotate(3deg) translateY(-5px); margin-left: -12px; }
.gallery-img:nth-child(6n+5)  { transform: rotate(-6deg) translateY(6px); }
.gallery-img:nth-child(6n)    { transform: rotate(11deg) translateY(-12px); margin-left: -18px; }

/* Survol : la photo s'arràche du tas */
.gallery-img:hover {
    transform: scale(1.18) rotate(0deg) translateY(-14px) !important;
    z-index: 100;
    box-shadow: 12px 28px 45px rgba(0,0,0,0.42) !important;
}

/* Filtre auteur : sobre, ligne fine */
#auteur-filter {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.6rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    border: 1.5px solid rgba(107, 68, 35, 0.35);
    border-radius: 3px;
    background: white;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.5px;
    transition: border-color 0.2s;
}
#auteur-filter:hover, #auteur-filter:focus {
    border-color: var(--accent-brown);
}

/* Bouton load-more : lien texte discret */
#load-more-wrap {
    text-align: center;
    padding: 1.5rem 0 3rem 0;
}
#load-more-btn {
    background: none;
    border: none;
    border-bottom: 1.5px solid var(--text-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 0 3px 0;
    transition: color 0.2s, border-color 0.2s;
    opacity: 0.55;
}
#load-more-btn:hover {
    opacity: 1;
    color: var(--accent-brown);
    border-color: var(--accent-brown);
}

.festival-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombre Douce */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.festival-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.festival-poster {
    width: 100%;
    height: 450px;
    object-fit: contain; 
    background: #fafafa; 
}

.festival-info {
    padding: 2rem;
}

.festival-location {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.festival-date {
    display: inline-block;
    color: var(--accent-brown);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* --- Auteurs Dynamique --- */
.author-avatar-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.author-avatar-link:hover {
    transform: translateY(-10px);
}

.author-avatar-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.author-avatar-link:hover .author-avatar-wrapper {
    box-shadow: 0 15px 35px rgba(139, 90, 43, 0.2);
    border-color: var(--accent-brown);
}

.author-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-avatar-link:hover .author-avatar-wrapper img {
    transform: scale(1.1);
}

.author-avatar-link h3 {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.author-avatar-link:hover h3 {
    color: var(--accent-brown);
}

/* --- CTA Section Finale --- */
.cta-section {
    text-align: center;
    background: #faf8f5;
    border-radius: 12px;
    margin: 4rem 5% 8rem 5%;
    padding: 6rem 2rem;
    box-shadow: none;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(250, 250, 250, 0.95); /* Fond blanc translucide pour la sobriété ! */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* --- Scroll Horizontal Dynamique (Fanzines) --- */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 1rem 3rem 1rem;
    scroll-behavior: smooth;
    align-items: center;
    margin-bottom: 3rem;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 12px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05); 
    border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-brown); 
    border-radius: 10px;
    border: 3px solid rgba(250, 245, 240, 0.85); /* Fausse marge pour donner l'impression d'une pilule fine */
}

.scroll-item-cover {
    flex: 0 0 auto;
    width: 260px;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: zoom-in;
}

.scroll-item-cover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 90, 43, 0.25);
}

.scroll-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-author {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 25px;
    border-radius: 8px;
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--accent-brown);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #333;
    font-size: 3rem;
    cursor: pointer;
    font-family: sans-serif;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-brown);
}

/* --- Back to top Sobre --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

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

.back-to-top:hover {
    color: var(--accent-brown);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2.2rem;
    color: var(--text-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fafafa;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }
    
    .nav-right {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    
    .nav-right.active {
        max-height: 400px;
        padding: 2rem 0;
    }
    
    .hero-image-logo img {
        transform: scale(1.2);
    }
}
/* --- Style Articles Auteurs (v2.9) --- */
.author-bio-article h2, .author-bio-article h3 {
    margin: 2.5rem 0 1rem 0;
    color: var(--accent-brown);
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}
.author-bio-article p {
    margin-bottom: 1.5rem;
}
.author-bio-article ul {
    margin: 1rem 0 2rem 2rem;
}
.author-bio-article li {
    margin-bottom: 0.5rem;
}

/* --- COMPTA KILLER (v3.5) --- */
/* On masque radicalement tout élément avec le mot Compta */
[title*="ompta"], [href*="ompta"], .menu-item-compta {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ============================================================
   📄 EFFET GRAIN DE PAPIER (Noise) — Donne une texture organique
   ============================================================ */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Petit bruit SVG inline ultra-léger, imperceptible mais fondamental */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 99998;
}

/* ============================================================
   🏷️ EFFET SCOTCH (Tape) — Pour épingler les affiches
   ============================================================ */
.tape-wrapper {
    position: relative;
    display: inline-block;
}

/* Scotch horizontal centré en haut de l'image */
.tape-wrapper::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 60px;
    height: 22px;
    background: rgba(255, 240, 180, 0.72);
    border: 1px solid rgba(200, 180, 100, 0.5);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    z-index: 5;
    /* Légère transparence pour imiter le vrai scotch */
    backdrop-filter: blur(1px);
}

/* Variante : scotch légèrement en biais à droite */
.tape-wrapper.tape-right::before {
    left: auto;
    right: 10%;
    transform: rotate(5deg);
}
.tape-wrapper.tape-left::before {
    left: 10%;
    transform: rotate(-6deg);
}

/* ============================================================
   📄 EFFET BORD DÉCHIRÉ — Séparateur façon papier arraché
   ============================================================ */
.torn-edge-bottom {
    position: relative;
    overflow: visible;
}

.torn-edge-bottom::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    /* Masque SVG qui simule un bord déchiré de papier */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C30,5 60,25 100,10 C140,0 170,20 220,14 C270,5 300,22 360,12 C420,2 450,18 510,8 C570,0 600,20 660,14 C720,4 760,22 820,10 C880,0 910,20 970,12 C1030,2 1070,25 1130,15 C1160,8 1180,18 1200,15 L1200,30 L0,30 Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C30,5 60,25 100,10 C140,0 170,20 220,14 C270,5 300,22 360,12 C420,2 450,18 510,8 C570,0 600,20 660,14 C720,4 760,22 820,10 C880,0 910,20 970,12 C1030,2 1070,25 1130,15 C1160,8 1180,18 1200,15 L1200,30 L0,30 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    z-index: 10;
}

/* Scroll-item-cover enveloppé dans tape-wrapper pour l'effet scotch sur fanzines */
.scroll-item-cover.taped {
    position: relative;
    margin-top: 20px;
}

.scroll-item-cover.taped::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 55px;
    height: 20px;
    background: rgba(255, 240, 160, 0.75);
    border: 1px solid rgba(200, 170, 80, 0.4);
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
}

.scroll-item-cover:nth-child(even)::before {
    transform: translateX(-50%) rotate(3deg);
    left: 45%;
    width: 50px;
}
.scroll-item-cover:nth-child(3n)::before {
    transform: translateX(-50%) rotate(-5deg);
    left: 55%;
    width: 65px;
}

/* ============================================================
   🎨 BOUTONS PINCEAU (Brush Buttons)
   ============================================================ */
.brush-btn {
    display: inline-block;
    width: 160px;
    padding: 10px 15px;
    background-color: #ba7c5e; /* Brun terre cuite style pinceau */
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.6rem;
    text-align: center;
    text-decoration: none;
    letter-spacing: 2px;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Forme organique */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 3px 5px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.2s;
    border: 2px solid transparent;
}
.brush-btn:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: brightness(1.1);
    color: white;
}

/* ============================================================
   📖 LECTEUR D'EXTRAITS (FSLIGHTBOX) FOND NOIR ABSOLU
   ============================================================ */
.fslightbox-container {
    background-color: #000000 !important;
}

