/* ======================================================
   CHRONOVERSE v8 : charte « Latvérie »
   Archivo + Archivo Narrow + Big Shoulders Display + Instrument Serif
   Deux palettes, pilotées par [data-theme] sur <html> (theme-config.js) :
   « doom » (vert de Fatalis, fond noir teinté de vert) et « red » (Marvel,
   fond noir chaud, rouge réservé aux accents). Les surfaces changent avec
   le thème, pas seulement l'accent : un rouge posé sur le noir verdâtre de
   Doom tournait au sang caillé, d'où un noir à part pour chaque thème.
====================================================== */

/* --- VARIABLES GLOBALES (communes aux deux thèmes) --- */
:root {
    /* Polices. --font-ui remplace Rajdhani (libellés, boutons, navigation),
       --font-body remplace DM Sans, --font-display remplace Orbitron. */
    --font-body:    'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-ui:      'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Big Shoulders Display', 'Instrument Sans', Impact, sans-serif;
    --font-mono:    'DM Mono', ui-monospace, Consolas, monospace;
    --font-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;

    /* Nav */
    --nav-h: 60px;
    --nav-width-closed: 0px;
    --nav-width-open:   0px;

    /* Angles : quasi droits. L'arrondi généreux et la découpe en biseau étaient
       les deux marques les plus « gabarit » de l'ancienne charte. */
    --radius:    2px;
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 3px;
    --radius-xl: 4px;

    /* Ombres : une seule couche, courte et dure, comme une impression décalée. */
    --shadow-card:  0 1px 0 rgba(0,0,0,0.5);
    --shadow-hover: 0 14px 30px -12px rgba(0,0,0,0.7);

    /* Courbes de mouvement, partagées par le CSS et v8-motion.js. */
    --ease-snap:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:cubic-bezier(0.76, 0, 0.24, 1);
    /* v9 « L'Almanach » : trois gestes d'imprimerie (voir .claude/refonte/DIRECTION.md).
       La coupe (clip-path en biais), le tampon (léger dépassement), la trame (points). */
    --ease-coupe:  cubic-bezier(0.76, 0, 0.24, 1);
    --ease-tampon: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-1: 140ms;
    --dur-2: 280ms;
    --dur-3: 560ms;
    --dur-4: 900ms;

    /* Les deux encres neutres, communes aux deux thèmes : le papier est la voix du
       narrateur (récitatifs, bulles, étiquettes), l'encre le texte et les traits posés dessus. */
    --papier:       #ece4d2;
    --papier-ombre: #cfc5ae;
    --encre:        #0c0b0a;
    --trame-pas:    6px;
}

/* ======================================================
   MOTEUR DE THÈME
   Une seule ligne à changer dans theme-config.js retexture tout le site,
   et le commutateur de la barre de navigation fait de même pour un visiteur.
   Aucune autre couleur d'accent ne doit être codée en dur ailleurs.
====================================================== */
/* <table-lumineuse> ===================================================
   v9 « La Table lumineuse » : le jour est une table de montage claire, la nuit un îlot de
   projection. Le thème (Doom / Marvel) ne change plus que l'accent et la teinte du papier.
   Les noms restent ceux de la v8 : --bg-dark est le FOND DE PAGE, --lb-white le TEXTE FORT.
====================================================== */
:root,
:root[data-theme="doom"] {
    --bg-dark:      #eef0ea;
    --bg-rgb:       238, 240, 234;
    --bg-card:      #fbfbf8;
    --bg-elevated:  #e2e6de;
    --sidebar-bg:   #e7eae3;
    --metal-gray:   #d5dbd2;
    --metal-light:  #b9c2b8;
    --lb-surface:   #e2e6de;
    --lb-card:      #fbfbf8;
    --lb-border:    #d3d9d0;
    --lb-bg:        #eef0ea;

    --text-color:     #262b28;
    --text-muted:     #5a625d;
    --lb-text:        #262b28;
    --lb-muted:       #5a625d;
    --lb-white:       #0e1210;
    --lb-muted-clair: #444b46;

    /* Vert de Fatalis, assombri pour tenir sur le papier : blanc dessus 5,2:1 */
    --doom-green:      #0a7d3e;
    --doom-green-soft: #2fa862;
    --doom-glow:       rgba(10, 125, 62, 0.16);
    --lb-green:        #0a7d3e;
    --lb-green-dim:    rgba(10, 125, 62, 0.10);
    --lb-green-glow:   rgba(10, 125, 62, 0.16);
    --shadow-accent:   none;
    --accent-rgb:      10, 125, 62;
    --accent-deep:     #c9e4d2;      /* aplats larges : une teinte d'accent très claire */
    --on-accent:       #ffffff;
    --accent-texte:    #08713a;      /* 5,3:1 sur le fond, 4,8:1 sur --bg-elevated */

    --accent-gold:     #8a6d2c;
    --lb-gold:         #8a6d2c;

    --vapeur-1: 72, 255, 150;
    --vapeur-2: 18, 140, 74;

    /* L'îlot de nuit (voir .mv9-nuit) prend ces valeurs */
    --nuit-accent:       #3ddc7e;
    --nuit-accent-texte: #3ddc7e;
    --nuit-accent-rgb:   61, 220, 126;
    --nuit-on-accent:    #04140b;
    --nuit-deep:         #0f4d2b;
}

:root[data-theme="red"] {
    --bg-dark:      #f3eee6;
    --bg-rgb:       243, 238, 230;
    --bg-card:      #fdfaf5;
    --bg-elevated:  #e9e2d8;
    --sidebar-bg:   #ede7dd;
    --metal-gray:   #ddd4c8;
    --metal-light:  #c6bbad;
    --lb-surface:   #e9e2d8;
    --lb-card:      #fdfaf5;
    --lb-border:    #ddd5c9;
    --lb-bg:        #f3eee6;

    --text-color:     #2c2522;
    --text-muted:     #665d57;
    --lb-text:        #2c2522;
    --lb-muted:       #665d57;
    --lb-white:       #140f0d;
    --lb-muted-clair: #4d4541;

    --doom-green:      #d6232b;
    --doom-green-soft: #ff6b70;
    --doom-glow:       rgba(214, 35, 43, 0.14);
    --lb-green:        #d6232b;
    --lb-green-dim:    rgba(214, 35, 43, 0.09);
    --lb-green-glow:   rgba(214, 35, 43, 0.14);
    --shadow-accent:   none;
    --accent-rgb:      214, 35, 43;
    --accent-deep:     #f4d3d0;
    --on-accent:       #ffffff;
    --accent-texte:    #b51d24;      /* 5,7:1 sur le fond */

    --accent-gold:     #8f6a24;
    --lb-gold:         #8f6a24;

    --vapeur-1: 255, 90, 90;
    --vapeur-2: 120, 20, 24;

    --nuit-accent:       #e2272f;
    --nuit-accent-texte: #ff4d55;
    --nuit-accent-rgb:   226, 39, 47;
    --nuit-on-accent:    #ffffff;
    --nuit-deep:         #4a1013;
}

/* L'îlot de nuit : la salle de projection posée sur la table. Tout ce qui est dedans relit les
   mêmes jetons, redéclarés en sombre. Les héros des fiches, le générique, les fenêtres. */
.mv9-nuit, .hero-header, .char-hero-wrap, .modal, #tl-scene, .mv-curtain {
    --bg-dark:      #0b0c0b;
    --bg-rgb:       11, 12, 11;
    --bg-card:      #141614;
    --bg-elevated:  #1c1f1c;
    --metal-gray:   #222622;
    --metal-light:  #333833;
    --lb-surface:   #1c1f1c;
    --lb-card:      #141614;
    --lb-border:    #262a26;
    --lb-bg:        #0b0c0b;
    --text-color:     #d6d9d2;
    --text-muted:     #959c95;
    --lb-text:        #d6d9d2;
    --lb-muted:       #959c95;
    --lb-white:       #f4f2ec;
    --lb-muted-clair: #b5bab3;
    --doom-green:   var(--nuit-accent);
    --lb-green:     var(--nuit-accent);
    --accent-rgb:   var(--nuit-accent-rgb);
    --accent-texte: var(--nuit-accent-texte);
    --on-accent:    var(--nuit-on-accent);
    --accent-deep:  var(--nuit-deep);
    color: var(--lb-text);
}
/* </table-lumineuse> */

/* alias conservé pour le CSS existant qui référence encore --shadow-green */
:root { --shadow-green: var(--shadow-accent); }

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-color);
    min-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: var(--lb-border) var(--bg-dark);
}
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: var(--bg-dark); }
body::-webkit-scrollbar-thumb { background: var(--lb-border); border-radius: 3px; }
body::-webkit-scrollbar-thumb:hover { background: var(--doom-green); }

a { text-decoration: none; color: inherit; }
input, button, select { font-family: inherit; }

/* ======================================================
   TOP NAV (Letterboxd — shared across all pages)
====================================================== */
.lb-nav {
    position: sticky; top: 0; z-index: 200;
    height: var(--nav-h);
    background: rgba(var(--bg-rgb), 0.97);
    border-bottom: 1px solid var(--lb-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center;
    padding: 0 28px; gap: 20px;
}

.lb-logo {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.lb-logo-img { width: 28px; height: 28px; }
.lb-logo-text {
    font-family: var(--font-ui);
    font-weight: 700; font-size: 1.15rem;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--lb-white);
}
.lb-logo-text span { color: var(--accent-texte); }

.lb-nav-links {
    display: flex; align-items: center; gap: 2px;
    list-style: none; flex: 1;
}
.lb-nav-links a {
    display: block; padding: 6px 12px;
    font-size: 0.82rem; font-weight: 500;
    color: var(--lb-muted); border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.lb-nav-links a:hover { color: var(--lb-white); background: rgba(255,255,255,0.06); }
.lb-nav-links a.active { color: var(--accent-texte); }
.lb-nav-links a.disabled { opacity: 0.35; pointer-events: none; }

/* ======================================================
   HIDE OLD SIDEBAR
====================================================== */
.sidebar { display: none !important; }

/* ======================================================
   MAIN CONTENT
====================================================== */
main, .page-main {
    width: 100%; padding: 0;
    background-color: var(--bg-dark);
    min-height: calc(100vh - var(--nav-h));
}
.content { padding: 32px 36px; }

p { color: #cfcfcf; line-height: 1.6; font-weight: 300; }

h1 {
    font-family: var(--font-display);
    color: var(--doom-green-soft);
    text-transform: uppercase; letter-spacing: 2px;
    border-bottom: 1px solid var(--metal-gray);
    padding-bottom: 10px; position: relative;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}
h1::after {
    content: ""; display: block;
    width: 60px; height: 2px;
    background: var(--accent-gold); margin-top: 8px;
}

/* ======================================================
   WALLPAPER
====================================================== */
.wallpaper-container { width: 100%; line-height: 0; }
.wallpaper-img {
    width: 100%; height: auto; display: block;
    transition: opacity 0.1s linear; will-change: opacity;
}

/* ======================================================
   INSTAGRAM
====================================================== */
.insta-profile {
    display: flex; align-items: center; margin: 20px 0; padding: 12px;
    background: rgba(255,255,255,0.03); border-radius: 8px;
    border-left: 3px solid var(--doom-green);
    backdrop-filter: blur(5px); text-decoration: none; cursor: pointer;
}
.pfp-img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--metal-light); margin-right: 15px; }
.pfp-name { display: block; font-family: var(--font-display); font-size: 0.9rem; color: white; }
.pfp-status { font-size: 0.75rem; color: var(--doom-green-soft); text-transform: uppercase; letter-spacing: 1px; }
.insta-section .insta-carousel-wrap { margin-left: -36px; margin-right: -36px; }
.insta-section .insta-carousel { padding-left: 36px; padding-right: 36px; }
@media (max-width: 768px) { .insta-section .insta-carousel-wrap { margin-left: -24px; margin-right: -24px; } .insta-section .insta-carousel { padding-left: 24px; padding-right: 24px; } }
.insta-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; width: 100%; margin-top: 25px; }
.insta-post { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-card); }
.insta-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.insta-post:hover img { transform: scale(1.06); }

/* ======================================================
   HERO (details page)
====================================================== */
.hero-header {
    position: relative; width: 100%; min-height: 460px;
    overflow: hidden; background: #0c0d10;
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center center;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to top, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0.65) 50%, rgba(var(--bg-rgb),0.15) 100%),
        linear-gradient(to right, rgba(var(--bg-rgb),0.7) 0%, transparent 70%);
}
.hero-content {
    position: relative; z-index: 2;
    width: 100%; padding: 32px 48px;
    display: flex; flex-direction: column; align-items: flex-start;
}
.hero-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.hero-badge {
    font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 3px; color: #aaa;
}
.hero-title {
    font-family: var(--font-ui) !important;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 700 !important; color: #fff !important;
    text-transform: none !important; border: none !important; padding: 0 !important;
    margin: 0 0 20px !important; line-height: 1.1;
}
.hero-title::after { display: none !important; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hero-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: #ddd; font-family: var(--font-ui); font-weight: 700;
    font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
    background: rgba(var(--bg-rgb),0.7); border: 1px solid rgba(var(--accent-rgb), 0.4);
    backdrop-filter: blur(8px); padding: 8px 14px;
    border-radius: var(--radius-sm); transition: all 0.2s; text-decoration: none;
    margin-bottom: 20px;
}
.hero-back-btn:hover { background: var(--doom-green); color: var(--on-accent); }

/* ======================================================
   DETAILS CONTAINER — sidebar fixe 320px, main fluide
====================================================== */
.details-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 28px 48px 60px;
    box-sizing: border-box;
    width: 100%;
}
.details-main  { min-width: 0; }
.details-sidebar { width: 320px; }
@media (max-width: 1100px) {
    .details-container { grid-template-columns: 1fr; }
    .details-sidebar { width: 100%; }
}

/* La fiche personnage n'a plus de colonne latérale : tout tient dans une seule colonne
   pleine largeur, et les bandes horizontales font le travail que la colonne de 320 px
   faisait avant. La fiche film, elle, garde ses deux colonnes. */
.details-container-solo { grid-template-columns: 1fr; }
.details-container-solo .details-main { width: 100%; }

/* Relations et contenants sont désormais des bandes horizontales à toutes les largeurs, au
   même titre que les apparitions, l'histoire et les citations. La grille en deux colonnes
   qu'ils occupaient dans la colonne latérale n'a plus lieu d'être : vingt relations empilées
   faisaient plusieurs écrans de haut une fois la colonne supprimée. */
#char-main .char-relations-strip {
    display: flex; align-items: stretch; gap: 10px;
    padding: 6px 8px; overflow-x: auto;
    scroll-behavior: smooth; scrollbar-width: none;
}
#char-main .char-relations-strip::-webkit-scrollbar { display: none; }
#char-main .char-relations-strip .char-relation-carte { flex: 0 0 260px; }

/* La carte d'un contenant se réduit à ce qu'un objet a à montrer, une image et un nom : ni
   pastille de type, un contenant n'a pas de rôle à annoncer, ni paragraphe, qui transformait
   une vignette en pavé, ni infobulle : l'icône et le nom suffisent. L'image, elle, prend
   toute la largeur de la carte.

   Les Gemmes empruntent cette même vignette pour leurs RELATIONS, avec la fonction sous le
   nom. Une Gemme n'a pas d'ami ni de frère, elle passe de main en main : la carte dit qui
   l'a tenue et à quel titre, et une description de plus n'ajouterait rien à « Possesseur ».

   La bande ne revient pas à la ligne, elle défile, comme celles de l'Histoire et des
   Apparitions : douze porteurs empilés sur trois rangées repoussaient tout le reste de la
   page vers le bas. Les flèches sont celles du site et ne se montrent que si la bande
   déborde vraiment, ce dont `setupCarrousels()` décide seul : trois contenants n'auront
   donc pas de mécanisme pour rien. */
/* `stretch` et non `flex-start` : toutes les vignettes prennent la hauteur de la plus haute,
   celle qui porte deux fonctions ou un nom sur deux lignes. Alignees par le haut, elles
   dessinaient un bas de bande en dents de scie. */
#char-main .char-equipements-strip {
    display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px;
    padding: 6px 8px; overflow-x: auto;
    scroll-behavior: smooth; scrollbar-width: none;
}
#char-main .char-equipements-strip::-webkit-scrollbar { display: none; }
#char-main .char-equipements-strip .char-equipement { flex: 0 0 148px; }
.char-equipement {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 148px; padding: 12px 10px 14px;
    background: var(--bg-elevated); border: 1px solid var(--metal-gray);
    border-radius: var(--radius-sm);
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
/* Même réponse au survol que les cartes de relation, aux mêmes durées : la vignette
   s'éclaircit et prend l'accent. Le déplacement, lui, se fait vers le haut et non vers la
   droite, parce qu'une tuile dans une grille qui revient à la ligne glisserait sur sa
   voisine. La carte n'est pas cliquable et le curseur reste donc la flèche : l'animation
   dit qu'on la survole, pas qu'elle mène quelque part. */
.char-equipement:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(var(--accent-rgb), 0.45);
    transform: translateY(-3px);
}
.char-equipement:hover .char-equipement-nom { color: var(--accent-texte); }
.char-equipement-nom { transition: color 0.18s; }
/* Sur une Gemme la vignette mène quelque part, un porteur ayant une fiche là où un coffret
   n'en a pas : c'est la seule qui prenne le curseur de la main. */
a.char-equipement-lien { text-decoration: none; cursor: pointer; }
.char-equipement-img {
    width: 118px; height: 118px; border-radius: var(--radius-sm);
    object-fit: cover; background: rgba(255, 255, 255, 0.03);
}
.char-equipement-nom {
    font-size: 0.82rem; font-weight: 600; color: var(--lb-white);
    line-height: 1.3; text-align: center;
}
/* Même étiquette que le lien de parenté dans Relations, qui est le vocabulaire du site pour
   un type : accent sur fond teinté. Elle se colle au nom plutôt que de flotter au milieu du
   pas de 8 px, la fonction se lisant avec le nom et non à côté.

   Un porteur qui a tenu la Gemme à plusieurs titres reçoit **une pastille par fonction** et
   non une seule à rallonge : trois encadrés se comptent d'un coup d'œil là où
   « POSSESSEUR, UTILISATEUR, DESTRUCTEUR » d'un seul tenant se lisait comme un titre. */
.char-equipement-fonctions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
    margin-top: -4px; max-width: 100%;
}
.char-equipement-fonction {
    max-width: 100%;
    font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: var(--accent-texte);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 3px; padding: 2px 6px;
    line-height: 1.35; text-align: center;
}
/* Sur telephone la vignette retrecit plutot que de passer a la ligne : la bande defile de
   toute facon, et une carte demi-largeur laissait deviner la suivante sans jamais la
   montrer entiere. */
@media (max-width: 480px) {
    .char-equipement { width: 120px; padding: 10px 8px 12px; }
    #char-main .char-equipements-strip .char-equipement { flex: 0 0 120px; }
    .char-equipement-img { width: 100%; height: auto; aspect-ratio: 1; }
}

@media (max-width: 768px) {
    .details-container { padding: 20px 20px 40px; }
    .hero-content { padding: 24px 20px; }
}

/* ======================================================
   SECTIONS
====================================================== */
.details-info-section {
    background: var(--bg-card); border: 1px solid var(--lb-border);
    border-radius: var(--radius-lg); padding: 18px 22px 20px;
    margin-bottom: 16px; box-shadow: var(--shadow-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.details-info-section:hover { border-color: var(--metal-light); }
/* Le titre de section portait un gris atténué à 3px d'interlettrage : lisible de près,
   illisible en diagonale. Il passe au gris du texte, un cran plus grand et plus serré,
   et son filet prend une pointe d'accent pour rattacher la section à la charte. */
.section-title {
    font-family: var(--font-ui); font-size: 0.73rem; font-weight: 700;
    letter-spacing: 2.2px; text-transform: uppercase; color: var(--lb-text);
    margin: 0 0 15px 0; display: flex; align-items: center; gap: 8px;
    padding-bottom: 10px; border-bottom: 1px solid var(--metal-gray);
}
/* Le point d'accent des titres de section : plat, sans halo. Le halo lumineux répété une
   dizaine de fois par page était le tic le plus visible de l'ancienne charte. */
.glow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--doom-green); flex-shrink: 0; }
/* Chevron de repli. C'était un caractère « ∨ » posé là : mal aligné, de taille variable selon
   la police disponible, et sans surface cliquable propre. Devenu un vrai bouton rond avec un
   chevron SVG qui pivote, comme les flèches des carrousels. */
.toggle-btn {
    margin-left: auto; flex-shrink: 0;
    width: 24px; height: 24px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--lb-border);
    border-radius: 50%; color: var(--lb-muted); cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.toggle-btn:hover { background: rgba(var(--accent-rgb), 0.1); border-color: var(--doom-green); color: var(--accent-texte); }
/* L'état de repos porte une rotation explicite plutôt que `none` : les deux bornes de la
   transition sont alors de vraies matrices, et l'animation part à coup sûr. */
.toggle-btn svg { display: block; transform: rotate(0deg); transition: transform 0.22s var(--ease-snap); }
/* Repliée, la pointe passe de « vers le bas » à « vers la droite » : le sens de lecture dit
   qu'il reste du contenu à dérouler. */
.details-info-section.section-repliee .toggle-btn svg { transform: rotate(-90deg); }
.overview-text { font-size: 0.88rem; line-height: 1.75; color: var(--lb-text); margin: 0; }

/* ======================================================
   WATCH BUTTON
====================================================== */
.watch-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--doom-green); color: var(--on-accent);
    font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 2px; padding: 10px 22px; border-radius: var(--radius-sm);
    text-transform: uppercase; transition: all 0.2s; border: none; cursor: pointer;
    text-decoration: none;
}
.watch-btn:hover { background: var(--doom-green-soft); transform: translateY(-2px); }

/* ======================================================
   SIDEBAR — INFOS CLÉS
   Classes générées par cinema.js : info-line, info-label, info-value
====================================================== */
.quick-infos-box { display: flex; flex-direction: column; }
.info-line {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
}
.info-line:last-child { border-bottom: none; }
.info-label {
    color: var(--lb-muted); font-size: 0.68rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    font-family: var(--font-ui); font-weight: 700;
    flex-shrink: 0;
}
.info-value {
    color: var(--lb-white); font-weight: 500; font-size: 0.82rem;
    text-align: right; line-height: 1.4;
}
/* Aliases pour compatibilité avec l'ancien code */
.quick-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.quick-info-row:last-child { border-bottom: none; }
.quick-info-label { color: var(--lb-muted); font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font-ui); font-weight: 700; }
.quick-info-val { color: var(--lb-white); font-weight: 500; font-size: 0.82rem; text-align: right; }

/* ======================================================
   PREPA CARDS — même DA que trailer-mini-card
====================================================== */
.prepa-container-mask { overflow: visible; mask-image: none; -webkit-mask-image: none; }
.carousel-wrapper { position: relative; }
.nav-arrow { display: none !important; }
#prepa-list {
    display: flex !important; flex-wrap: wrap !important;
    gap: 12px !important; padding: 4px 0 !important; width: auto !important;
}

/* Légende */
.prepa-legend {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    margin-bottom: 14px; font-size: 0.75rem; color: var(--lb-muted);
}
.prepa-legend-item { display: flex; align-items: center; gap: 6px; }
.prepa-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.prepa-legend-note { margin-left: auto; font-size: 0.68rem; font-style: italic; color: #444; }

/* Carte — même style que trailer-mini-card */
.prepa-card {
    flex-shrink: 0; width: 110px;
    background: var(--metal-gray);
    border: 1px solid var(--metal-light);
    border-radius: 8px; overflow: hidden; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.prepa-card:hover {
    transform: translateY(-4px);
    border-color: var(--doom-green);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.15);
}
/* Point coloré importance */
.prepa-card::before {
    content: ''; position: absolute; top: 6px; left: 6px; z-index: 2;
    width: 8px; height: 8px; border-radius: 50%;
}
.prepa-O::before { background: #ff4757; box-shadow: 0 0 6px #ff4757; }
.prepa-I::before { background: #ffa502; box-shadow: 0 0 6px #ffa502; }
.prepa-F::before { background: #2ed573; box-shadow: 0 0 6px #2ed573; }

/* Image poster */
.prepa-poster {
    width: 100%; aspect-ratio: 2/3;
    object-fit: cover; display: block;
    transition: transform 0.3s;
}
.prepa-card:hover .prepa-poster { transform: scale(1.04); }

/* Info sous le poster — même style que trailer-mini-info */
.prepa-info {
    padding: 7px 8px 8px;
    background: var(--bg-elevated);
    display: flex; flex-direction: column; gap: 4px;
}
.prepa-title {
    font-size: 0.72rem; font-weight: 600; color: #e0e0e0;
    line-height: 1.3; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prepa-type {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent-texte);
    font-size: 0.55rem; font-family: var(--font-ui);
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 2px 5px; border-radius: 3px;
    align-self: flex-start;
}
.prepa-season-tag {
    display: inline-block;
    background: rgba(255,165,2,0.1);
    border: 1px solid rgba(255,165,2,0.35);
    color: #ffa502;
    font-size: 0.55rem; font-family: var(--font-ui);
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 2px 5px; border-radius: 3px;
    align-self: flex-start;
}

/* ======================================================
   PLACEHOLDER
====================================================== */
.placeholder-box {
    padding: 18px; background: var(--bg-elevated); border-radius: var(--radius-md);
    color: var(--lb-muted); font-size: 0.82rem; font-style: italic;
    border: 1px dashed var(--lb-border);
}

/* ======================================================
   PERSONNAGES SIDEBAR
   Classes générées par cinema.js : character-card-horizontal,
   char-img-horizontal, char-name-text, actor-name-text
====================================================== */
.character-tags { display: flex; flex-direction: column; gap: 6px; }

.character-card-horizontal {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: var(--radius-sm); background: var(--bg-elevated);
    border: 1px solid var(--metal-gray); border-left: 3px solid var(--metal-light);
    transition: all 0.18s; text-decoration: none;
}
/* L'accent n'apparaît qu'au survol : au repos, vingt liserés verts empilés faisaient de la
   liste un dégradé, sans rien désigner. */
.character-card-horizontal:hover {
    background: rgba(255,255,255,0.035);
    border-left-color: var(--doom-green);
    transform: translateX(3px);
}

.char-img-horizontal {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--metal-light);
    flex-shrink: 0;
}
/* Icône locale du personnage plutôt que photo d'acteur : elle est en 2/3, donc un cadrage
   centré couperait à hauteur de torse. On cale en haut, comme sur la grille Personnages. */
.char-img-icone { object-position: top; background: var(--bg-card); }
/* Une Pierre d'Infinité n'est pas un portrait d'acteur : son visuel local est une image large
   et sombre, recadrée au centre comme les autres pour garder la liste homogène, avec un liseré
   coloré et un fond noir pour la distinguer au premier coup d'œil. */
.char-img-stone {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: #000;
}

.char-info-horizontal {
    display: flex; flex-direction: column; min-width: 0; gap: 2px;
}

/* Nom du personnage — même police que la page */
.char-name-text {
    font-size: 0.82rem; font-weight: 600;
    color: var(--lb-white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2;
}

/* Nom de l'acteur — plus petit, en retrait. Il était vert : vingt noms d'acteurs colorés
   dans une seule colonne faisaient de l'accent la couleur du texte courant. */
.actor-name-text {
    font-size: 0.68rem; font-weight: 500;
    color: var(--lb-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2;
}

.btn-more {
    margin-top: 10px; width: 100%;
    background: transparent; border: 1px solid var(--metal-light);
    color: var(--lb-muted); font-family: var(--font-ui);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 8px; border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.2s;
}
.btn-more:hover { border-color: var(--doom-green); color: var(--accent-texte); background: rgba(var(--accent-rgb), 0.05); }

/* ======================================================
   MODAL CASTING — centré, deux colonnes
   Classes générées par cinema.js : credit-name, credit-role
====================================================== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.88); z-index: 3000;
    align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-content {
    background: var(--bg-card); border: 1px solid var(--metal-light);
    border-radius: var(--radius-xl); box-shadow: 0 32px 100px rgba(0,0,0,0.9);
    width: 100%; max-width: 860px; max-height: 82vh;
    display: flex; flex-direction: column; overflow: hidden;
    position: relative;
}
.modal-title {
    font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700;
    letter-spacing: 3px; color: var(--lb-white);
    padding: 20px 28px 14px; border-bottom: 1px solid var(--metal-gray);
    text-transform: uppercase; flex-shrink: 0;
}
.modal-headers {
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 10px 28px 8px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.col-title {
    font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-texte); margin: 0;
}
.modal-body {
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 0 28px 20px; overflow-y: auto; flex: 1; gap: 0 32px;
}
.modal-col ul { list-style: none; padding: 0; margin: 0; }
.modal-col ul li {
    display: flex; flex-direction: column; gap: 1px;
    padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.modal-col ul li:last-child { border-bottom: none; }

/* Nom acteur/technicien — lisible */
.credit-name {
    font-size: 0.8rem; font-weight: 600; color: var(--lb-white);
}
/* Rôle / Poste — accentué */
.credit-role {
    font-size: 0.68rem; color: var(--doom-green-soft); opacity: 0.85;
}

.close-btn {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; color: var(--lb-muted);
    font-size: 1.4rem; cursor: pointer; transition: color 0.2s; line-height: 1;
}
.close-btn:hover { color: #fff; }

/* ======================================================
   PERSO CARDS (page persos.html)
====================================================== */
.perso-card {
    background: var(--bg-card); border: 1px solid var(--metal-gray);
    border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow-card); transition: all 0.25s ease;
}
.perso-card:hover { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Perso modal */
.perso-modal {
    background: var(--bg-card); border: 1px solid var(--metal-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03);
    animation: fadeInUp 0.25s var(--ease-snap);
}
.perso-modal-close { border-radius: 50%; }
.perso-modal-portrait { border: 1px solid var(--metal-light); }

/* ======================================================
   SELECTS / INPUTS / BUTTONS — SHARED
====================================================== */
.filter-btn {
    background: var(--bg-elevated) !important; border-radius: var(--radius-sm) !important;
    border: 1px solid var(--metal-light) !important; color: var(--text-muted) !important;
    font-size: 0.72rem !important; letter-spacing: 1.5px !important;
    cursor: pointer; padding: 5px 13px;
    font-family: var(--font-ui); font-weight: 600;
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(var(--accent-rgb), 0.08) !important; border-color: var(--doom-green) !important;
    color: var(--accent-texte) !important;
}
.cinema-search, .persos-search {
    background: var(--bg-elevated) !important; border: 1px solid var(--metal-light) !important;
    border-radius: var(--radius-sm) !important; color: var(--text-color) !important;
}
.cinema-search:focus, .persos-search:focus {
    border-color: var(--doom-green) !important; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12) !important; outline: none !important;
}
.settings-select, .styled-select {
    background: var(--bg-elevated); border: 1px solid var(--metal-light); color: var(--text-color);
    font-family: var(--font-ui); font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
}
.settings-select:hover, .styled-select:hover { border-color: var(--doom-green); outline: none; }
.settings-btn, .persos-sort-btn {
    background: var(--bg-elevated) !important; border: 1px solid var(--metal-light) !important;
    border-radius: var(--radius-sm) !important; color: var(--lb-muted) !important; cursor: pointer;
}
.settings-btn:hover, .persos-sort-btn:hover {
    border-color: var(--doom-green) !important; color: var(--accent-texte) !important;
    background: rgba(var(--accent-rgb), 0.08) !important;
}
.btn-more {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid var(--lb-border); color: var(--lb-muted);
    font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; padding: 7px 18px;
    border-radius: var(--radius-sm); cursor: pointer; transition: all 0.22s;
}
.btn-more:hover { background: var(--doom-green); color: var(--on-accent); border-color: var(--doom-green); transform: translateY(-1px); }

/* ======================================================
   MISC COMPONENTS
====================================================== */
.scroll-theme::-webkit-scrollbar { width: 6px; }
.scroll-theme::-webkit-scrollbar-track { background: var(--bg-dark); border-radius: 3px; }
.scroll-theme::-webkit-scrollbar-thumb { background: var(--metal-light); border-radius: 3px; }
.scroll-theme::-webkit-scrollbar-thumb:hover { background: var(--doom-green); }

.card-badge { font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; border-radius: 3px; padding: 2px 7px; text-transform: uppercase; }

.perso-film-row { background: var(--bg-elevated); border: 1px solid var(--metal-gray); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; transition: all 0.2s; }
.perso-film-row:hover { background: rgba(var(--accent-rgb), 0.06); border-color: rgba(var(--accent-rgb), 0.35); transform: translateX(3px); }

.group-title { font-family: var(--font-ui) !important; color: var(--accent-gold) !important; letter-spacing: 4px !important; font-size: 1.1rem !important; border-bottom: 1px solid rgba(245,158,11,0.2) !important; padding-bottom: 6px !important; }

.review-cloud { background: var(--bg-elevated); border: 1px solid rgba(var(--accent-rgb), 0.18); border-radius: var(--radius-md); padding: 16px 20px; }

.tag-list span, .tag-list-alt span, .tag-list-gold span { display: inline-block; background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 3px 10px; font-size: 0.75rem; margin: 2px; color: var(--lb-text); }
.tag-list span { border: 1px solid rgba(var(--accent-rgb), 0.2); color: var(--accent-texte); }
.tag-list-alt span { border: 1px solid var(--lb-border); }
.tag-list-gold span { border: 1px solid rgba(245,158,11,0.2); color: var(--accent-gold); }

.trailer-mini-card { background: var(--bg-card); border: 1px solid var(--metal-gray); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; cursor: pointer; }
.trailer-mini-card:hover { border-color: rgba(var(--accent-rgb), 0.4); box-shadow: var(--shadow-hover); }
/* Une vingtaine de pastilles de lecture alignées : en vert plein et auréolées, elles
   tiraient l'œil avant les vignettes elles-mêmes. Blanc translucide, l'accent au survol. */
.trailer-mini-play-circle { background: var(--metal-gray); border: 1px solid var(--metal-light); }
.trailer-mini-play-circle svg { color: var(--lb-white); }
.trailer-mini-card:hover .trailer-mini-play-circle { background: var(--doom-green); border-color: var(--doom-green); }
.trailer-mini-card:hover .trailer-mini-play-circle svg { color: #000; }

.info-badge { background: var(--bg-elevated) !important; border: 1px solid var(--metal-gray) !important; border-radius: var(--radius-sm) !important; padding: 10px 15px; }
.info-badge strong { color: var(--accent-texte) !important; font-size: 0.68rem !important; letter-spacing: 2px !important; display: block; text-transform: uppercase; }
.char-bio { background: var(--bg-card) !important; border: 1px solid var(--metal-gray) !important; border-radius: var(--radius-lg) !important; padding: 28px 32px !important; line-height: 1.6; }
.char-bio img { max-width: 100%; height: auto; border-radius: 6px; }

.cerebro-text { font-size: 0.85rem; letter-spacing: 3px; color: var(--accent-texte); opacity: 0.8; }

/* ── Groupe repliable ──────────────────────────────────────────────────────────
   Le même bloc sur Personnages (par univers) et sur Cinéma (par saga, par phase, par
   type, par année) : un filet d'accent, un titre, un chevron, et le contenu dessous.
   Les deux pages avaient chacune leur dessin, et Cinéma en avait trois à lui seul. */
.mv-groupe { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--lb-border); }
.mv-groupe:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mv-groupe > summary.group-header {
    display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
    font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem;
    letter-spacing: 1px; text-transform: uppercase; color: var(--lb-text);
    margin: 0 0 14px; list-style: none;
}
.mv-groupe > summary.group-header::-webkit-details-marker { display: none; }
.mv-groupe > summary.group-header::before {
    content: ''; width: 4px; height: 20px; border-radius: 2px;
    background: var(--doom-green); flex: 0 0 auto;
}
.mv-groupe > summary.group-header:hover { color: var(--lb-white); }
/* Le chevron part à droite et pivote à l'ouverture, comme le repli des sections de fiche. */
.mv-groupe-chevron {
    margin-left: auto; display: inline-flex; color: var(--lb-muted);
    transition: transform 0.18s, color 0.18s;
}
.mv-groupe[open] > summary .mv-groupe-chevron { transform: rotate(180deg); }
.mv-groupe > summary:hover .mv-groupe-chevron { color: var(--accent-texte); }
/* Un sous-groupe (les phases d'une saga) : même dessin, un cran plus discret et sans trait. */
.mv-sous-groupe { margin-top: 16px; padding-top: 0; border-top: 0; padding-left: 14px; }
.mv-sous-groupe > summary.group-header {
    font-size: 0.86rem; color: var(--lb-muted-clair); margin-bottom: 10px;
}
.mv-sous-groupe > summary.group-header::before { height: 14px; width: 3px; background: var(--lb-border); }

.stats-ribbon { display: flex; align-items: center; padding: 0 28px; border-bottom: 1px solid var(--lb-border); background: rgba(31,41,55,0.3); overflow-x: auto; scrollbar-width: none; }
.stats-ribbon::-webkit-scrollbar { display: none; }
.stat-item { padding: 12px 20px; border-right: 1px solid var(--lb-border); flex-shrink: 0; }
.stat-item:last-child { border-right: none; }
.stat-item-num { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 700; color: var(--accent-texte); line-height: 1; }
.stat-item-label, .stat-item-lbl { font-size: 0.65rem; color: var(--lb-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* ======================================================
   CATALOGUE SYSTEM — barre de recherche nav, filtres, grille
   d'affiches, mode liste. Partagé par cinema/persos/jeux/recherche.
====================================================== */
:root { --filter-h: 52px; }

.lb-nav-search { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
/* `> svg` et non `svg` : la loupe est l'enfant direct du champ, mais la liste de
   suggestions vit dans le même conteneur et ses icônes se retrouvaient toutes empilées
   ici, derrière l'input. */
.lb-nav-search > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--lb-muted); pointer-events: none; }
.lb-nav-search input {
    width: 100%; background: var(--lb-surface); border: 1px solid var(--lb-border);
    border-radius: 20px; color: var(--lb-text); font-size: 0.82rem;
    padding: 7px 14px 7px 34px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.lb-nav-search input:focus { border-color: var(--doom-green); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12); }
.lb-nav-search input::placeholder { color: var(--lb-muted); }

.lb-filterbar {
    position: sticky; top: var(--nav-h); z-index: 190;
    background: rgba(var(--bg-rgb),0.96); border-bottom: 1px solid var(--lb-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    height: var(--filter-h); display: flex; align-items: center;
    padding: 0 28px; gap: 16px; overflow-x: auto; scrollbar-width: none;
}
.lb-filterbar::-webkit-scrollbar { display: none; }
.filter-pills { display: flex; gap: 6px; flex-shrink: 0; }
.pill {
    padding: 5px 13px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    border: 1px solid var(--lb-border); color: var(--lb-muted); cursor: pointer;
    background: transparent; white-space: nowrap; transition: all 0.15s; letter-spacing: 0.3px;
}
.pill:hover { border-color: var(--doom-green); color: var(--accent-texte); }
.pill.active { background: var(--doom-green); border-color: var(--doom-green); color: var(--on-accent); font-weight: 700; }
.filter-sep { width: 1px; height: 20px; background: var(--lb-border); flex-shrink: 0; }
.lb-sort { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lb-sort label { font-size: 0.72rem; color: var(--lb-muted); white-space: nowrap; }
.lb-sort select {
    background: var(--lb-surface); border: 1px solid var(--lb-border); border-radius: var(--radius);
    color: var(--lb-text); font-size: 0.78rem; padding: 5px 28px 5px 10px; cursor: pointer;
    outline: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 13px;
    transition: border-color 0.15s;
}
.lb-sort select:hover, .lb-sort select:focus { border-color: var(--doom-green); }
.lb-sort select option { background: var(--lb-bg); }
/* Le choix d'épisode vit dans le titre de la section Histoire, poussé à droite comme le
   bouton de repli : le titre dit ce qu'on regarde, la liste dit lequel. Elle rétrécit d'un
   cran, un titre de section n'ayant pas la hauteur d'une barre de filtres. */
/* Le choix d'épisode se range tout à droite du titre, juste avant le chevron de repli :
   c'est lui qui prend l'espace libre, le chevron le suit d'un simple écart. */
/* `hidden` ne suffit pas ici : `.lb-sort` pose `display: flex`, qui bat la feuille par défaut
   du navigateur. Sans cette règle, le choix d'épisode restait affiché sur les films. */
.section-title .history-episode-choix[hidden] { display: none; }
.section-title .history-episode-choix { margin-left: auto; text-transform: none; letter-spacing: 0; }
.section-title .history-episode-choix select { font-size: 0.74rem; padding: 3px 26px 3px 8px; }
.section-title .history-episode-choix ~ .toggle-btn { margin-left: 10px; }
.view-toggle { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.view-btn {
    width: 32px; height: 32px; background: transparent; border: 1px solid var(--lb-border);
    border-radius: var(--radius); color: var(--lb-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.view-btn:hover { border-color: var(--doom-green); color: var(--accent-texte); }
.view-btn.active { background: rgba(var(--accent-rgb),0.14); border-color: var(--doom-green); color: var(--accent-texte); }
.count-badge { font-size: 0.7rem; color: var(--lb-muted); white-space: nowrap; flex-shrink: 0; }
.count-badge span { color: var(--accent-texte); font-weight: 700; }

.lb-main { padding: 28px 28px 80px; }

/* ── Section "Pierres d'Infinité" de persos.html : sous la liste des personnages, avec ses
      propres cartes (visuel local, pas de photo d'acteur à aller chercher). ── */
#stones-section { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--lb-border); }
.stones-header {
    font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; letter-spacing: 1px;
    text-transform: uppercase; color: var(--lb-text); margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.stones-header::before {
    content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--doom-green);
}
#stones-grid.poster-grid { grid-template-columns: repeat(auto-fill, 140px); }
@media (max-width: 600px) { #stones-grid { grid-template-columns: repeat(3, 1fr); } }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
@media (min-width: 1400px) { .poster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
@media (max-width: 900px)  { .poster-grid { grid-template-columns: repeat(auto-fill, minmax(90px,  1fr)); gap: 8px; } }
@media (max-width: 600px)  { .poster-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (max-width: 380px)  { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; } }

.poster-card {
    display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden;
    background: var(--lb-card); cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid var(--metal-gray);
}
.poster-card:hover { transform: translateY(-3px); z-index: 10; border-color: var(--doom-green); }
/* Photo et légende sont deux blocs empilés, pas une légende en incrustation sur la photo — un
   dégradé assez sombre pour rester lisible par-dessus n'importe quel visage finissait par
   manger la moitié du portrait. */
.poster-img-wrap {
    /* Ratio un peu moins tout-en-hauteur que 2/3 : rogne un peu de bas d'image (souvent du
       vide ou des épaules coupées bizarrement), le portrait recentré sur le visage est plus net. */
    position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.poster-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity 0.3s; }
.poster-img-wrap .poster-skeleton { position: absolute; inset: 0; background: linear-gradient(135deg, #1f2937 0%, #1a232e 50%, #1f2937 100%); background-size: 200% 200%; animation: shimmer 1.6s infinite; }
.poster-caption { padding: 7px 8px 8px; border-top: 1px solid var(--metal-gray); }
/* Interlignes et hauteurs réservées en pixels entiers, pas en `em`. Avec `line-height: 1.35`
   sur du 0.68rem, une ligne mesurait 14.688px et la carte tombait à 248.55px : le navigateur
   arrondissait une rangée sur deux, et la grille avançait par écarts de 268 puis 269px. */
.poster-title {
    font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2px;
    color: var(--lb-white); line-height: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 2px;
    /* Réserve toujours la hauteur de 2 lignes (même quand le titre tient sur une seule) pour
       que toutes les cartes d'une même rangée s'alignent, peu importe la longueur du titre. */
    min-height: 30px;
}
.poster-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Étiquette d'univers, répétée sous chaque personnage de la grille : en accent, quatre-vingts
   pastilles vertes mouchetaient toute la page. Elle est neutre, et l'univers non confirmé se
   distingue par l'italique et un gris plus sourd. */
.uni-chip {
    font-family: var(--font-ui); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.3px;
    color: var(--lb-text); background: rgba(255,255,255,0.05); border: 1px solid var(--metal-light);
    border-radius: 4px; padding: 1px 5px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.uni-chip.unverified { color: var(--lb-muted); background: rgba(255,255,255,0.02); border-color: var(--lb-border); font-style: italic; }
.poster-year { font-size: 0.58rem; color: var(--lb-muted); }
.poster-apps { font-size: 0.55rem; color: var(--lb-muted); }
@media (max-width: 600px) {
    .poster-title { font-size: 0.6rem; }
    .uni-chip { font-size: 0.5rem; padding: 1px 4px; }
}
.poster-upcoming { position: absolute; top: 0; left: 0; font-size: 0.5rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #000; background: var(--doom-green); padding: 3px 7px; border-radius: 0 0 5px 0; }

.list-mode { display: flex; flex-direction: column; gap: 0; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--radius); transition: background 0.15s; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.04); }
.list-row:hover { background: rgba(255,255,255,0.04); }
.list-row:last-child { border-bottom: none; }
.list-num { font-size: 0.68rem; color: var(--lb-muted); width: 30px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.list-poster, .list-img { width: 36px; height: 52px; object-fit: cover; object-position: top; border-radius: 4px; flex-shrink: 0; background: var(--lb-card); display: block; }
.list-info { flex: 1; min-width: 0; }
.list-title, .list-name { font-size: 0.88rem; font-weight: 600; color: var(--lb-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.list-title:hover { color: var(--accent-texte); }
.list-actor { font-size: 0.72rem; color: var(--accent-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { display: flex; align-items: center; gap: 8px; }
.list-year { font-size: 0.72rem; color: var(--lb-muted); }
.list-saga { font-size: 0.65rem; font-weight: 600; color: var(--lb-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.list-type-badge { font-size: 0.62rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.list-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.list-apps { font-size: 0.68rem; color: var(--lb-muted); }

.lb-empty { text-align: center; padding: 60px 20px; color: var(--lb-muted); }
.lb-empty-icon { margin-bottom: 12px; opacity: 0.5; display: flex; justify-content: center; }
.lb-empty-text { font-size: 0.9rem; color: var(--lb-muted); }

.saga-section { margin-bottom: 40px; }
.saga-header { display: flex; align-items: baseline; gap: 12px; padding: 0 0 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--lb-border); position: relative; }
.saga-header::before { content: ''; position: absolute; bottom: -1px; left: 0; width: 60px; height: 1px; background: var(--doom-green); }
.saga-name { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; color: var(--lb-white); letter-spacing: 2px; text-transform: uppercase; }
.saga-count { font-size: 0.72rem; color: var(--lb-muted); }
/* Sous-titre de phase à l'intérieur d'une saga : un cran en dessous du titre de saga, en
   vert et sans filet, pour que la hiérarchie se lise sans alourdir la page. */
.phase-header { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 12px; }
.phase-header:first-of-type { margin-top: 4px; }
.phase-name { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700; color: var(--accent-texte); letter-spacing: 1.6px; text-transform: uppercase; }
.phase-count { font-size: 0.66rem; color: var(--lb-muted); }

#page-loader {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--bg-dark); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px; transition: opacity 0.3s ease;
}
body.page-ready #page-loader { opacity: 0; pointer-events: none; }
.lb-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; gap: 16px; }
.lb-loader-ring { width: 44px; height: 44px; border: 3px solid var(--lb-border); border-top-color: var(--doom-green); border-radius: 50%; animation: spin 0.8s linear infinite; }
.lb-loader-text { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--lb-muted); }

@media (max-width: 768px) {
    .lb-nav-search { max-width: 180px; }
    .lb-filterbar { padding: 0 14px; }
    .lb-main { padding: 16px 14px 80px; }
}
@media (max-width: 480px) {
    .lb-nav-search { max-width: 140px; }
    .filter-sep { display: none; }
    .lb-sort label { display: none; }
}

.section-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent); }

.creator-channel-btn { border-radius: var(--radius-sm) !important; letter-spacing: 1.5px !important; font-weight: 700 !important; }

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:.5;} }

.perso-modal    { animation: fadeInUp 0.25s var(--ease-snap); }
.settings-modal { animation: fadeInUp 0.2s var(--ease-snap); }

/* ======================================================
   FICHE PERSONNAGE — hero + variantes + timeline d'apparitions
   (personnage.html)
====================================================== */
/* La planète d'origine en fond du héros, sur le modèle de l'affiche en fond des fiches film.
   Elle est posée derrière le héros et non dessus : le portrait, le nom et le bouton de
   collection gardent leur place exacte.

   Elle couvre TOUTE la hauteur du héros (`inset: 0`) et pas une bande fixe : depuis que la
   biographie y est montée, cette hauteur varie de 420 à 590 px selon le personnage, et une
   bande figée coupait l'image au milieu du bloc. Le dégradé, exprimé en pourcentages, s'étire
   donc avec le héros et finit toujours sur --bg-dark opaque, à l'endroit exact où le héros
   s'arrête : aucune arête visible, quelle que soit la longueur de la biographie.

   Cadrage `center top` : on garde le haut de l'image, jamais son centre. */
.char-hero-wrap { position: relative; isolation: isolate; }
.char-hero-banner {
    position: absolute; inset: 0; z-index: -1;
    background-color: var(--bg-dark);
    background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.char-hero-banner::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(var(--bg-rgb),0.68) 0px, rgba(var(--bg-rgb),0.82) 200px, rgba(var(--bg-rgb),0.90) 60%, rgba(var(--bg-rgb),1) 100%),
        linear-gradient(to right, rgba(var(--bg-rgb),0.75) 0%, transparent 65%);
}

.char-hero {
    position: relative;
    display: grid; grid-template-columns: 220px 1fr; gap: 32px;
    padding: 36px 36px 28px; max-width: 1100px; margin: 0 auto;
}
@media (max-width: 720px) { .char-hero { grid-template-columns: 1fr; padding: 24px 18px 18px; } }

.char-hero-portrait-wrap { position: relative; }
.char-hero-portrait {
    /* `block` obligatoire : en inline, l'image repose sur la ligne de base et laisse 5 px sous
       elle, si bien que le conteneur dépassait l'image d'autant et que les points de
       navigation, calés sur le bas du conteneur, tombaient hors de la photo. */
    display: block;
    width: 100%; aspect-ratio: 2/3; object-fit: cover; object-position: top;
    background: var(--bg-card); border: 1px solid var(--metal-light);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.char-hero-skel { position: absolute; inset: 0; background: linear-gradient(135deg,#1f2937 0%,#1a232e 50%,#1f2937 100%); background-size: 200% 200%; animation: shimmer 1.6s infinite; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }

/* Portrait à plusieurs images : le cadre devient cliquable et annonce combien il en reste.
   Rien de tout ceci n'apparaît sur une fiche à une seule image, faute de classe. */
.char-hero-portrait-cyclable { cursor: pointer; outline-offset: 3px; }
.char-hero-portrait-cyclable .char-hero-portrait { transition: border-color 0.18s, filter 0.18s; }
.char-hero-portrait-cyclable:hover .char-hero-portrait,
.char-hero-portrait-cyclable:focus-visible .char-hero-portrait { border-color: var(--metal-light); filter: brightness(1.06); }
/* Un point par image, posé sur le bas du portrait : on voit d'un coup d'œil combien il y en a
   et où l'on se trouve, ce que le compteur « 2 / 3 » ne donnait pas.
   Aucun voile derrière la rangée : chaque point porte sa propre lisibilité, une ombre portée
   qui le détache aussi bien d'un ciel clair que d'un fond sombre. C'est ce qui permet de le
   laisser à même la photo sans y plaquer un bandeau noir. */
.char-portrait-points {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    padding: 10px 8px 11px;
    pointer-events: none;
}
.char-portrait-point {
    width: 8px; height: 8px; padding: 0; flex-shrink: 0;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 50%;
    background: rgba(10, 12, 15, 0.55); cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.35);
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.char-portrait-point:hover { background: rgba(255, 255, 255, 0.75); transform: scale(1.25); }
/* Le point courant prend l'accent : il est unique sur la page et signale un état, exactement
   l'emploi que la charte réserve à la couleur. */
.char-portrait-point.actif { background: var(--doom-green); border-color: var(--doom-green); }
.char-portrait-point:focus-visible { outline: 2px solid var(--lb-white); outline-offset: 2px; }

/* Les données sèches (planète, naissance, mort) vivent dans le héros depuis qu'il n'y a plus
   d'encadré « Infos clés » sur la fiche personnage. Elles forment un bandeau d'une case par
   donnée, séparées par un filet : la plaque translucide et floutée est ce qui les tient
   lisibles sur la photo de la planète, où une simple ligne de texte se perdrait dans le décor.
   Libellé en --lb-muted-clair, valeur en --lb-white, jamais d'accent : ces trois données sont
   sur toutes les fiches, les colorer teindrait la page au lieu de mettre en valeur. */
.char-hero-stats {
    display: flex; flex-wrap: wrap; margin-top: 16px;
    width: fit-content; max-width: 100%;
    border: 1px solid var(--metal-light); border-radius: var(--radius-sm);
    background: rgba(14, 16, 20, 0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}
.char-hero-stat {
    display: flex; flex-direction: column; gap: 3px;
    padding: 9px 18px; min-width: 0;
    border-left: 1px solid var(--metal-light);
}
.char-hero-stat:first-child { border-left: 0; }
.char-hero-stat-label {
    font-family: var(--font-ui); font-size: 0.63rem; font-weight: 700;
    letter-spacing: 1.7px; text-transform: uppercase; color: var(--lb-muted-clair);
    white-space: nowrap;
}
.char-hero-stat-value { font-size: 0.92rem; font-weight: 600; color: var(--lb-white); line-height: 1.3; }

/* L'univers porte trois informations là où les autres cases n'en portent qu'une : la
   désignation Earth-XXXXX, le nom lisible, et le doute sur la désignation. Empilées, elles
   rendaient la case deux fois plus haute que ses voisines et faisaient casser le bandeau
   sur deux lignes. Elles tiennent donc côte à côte, la désignation en pastille technique,
   le nom en valeur ordinaire, le doute réduit à un point d'interrogation dont l'infobulle
   dit le reste. */
.char-hero-univers { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.char-hero-univers-code {
    font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--lb-muted);
    border: 1px solid var(--metal-light); border-radius: 3px; padding: 1px 5px;
    white-space: nowrap;
}
.char-hero-univers-nom {
    font-size: 0.92rem; font-weight: 600; color: var(--lb-white); line-height: 1.3;
}
.char-hero-univers-doute {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
    color: var(--lb-muted); border: 1px dashed var(--metal-light);
}
.char-hero-stat-univers { cursor: help; }

/* La biographie, dans le héros elle aussi. Un filet vertical la rattache au bandeau du dessus
   sans ajouter une seconde plaque : deux encadrés à la suite alourdiraient la tête de page.
   La largeur est bornée en ch pour garder une ligne lisible même sur grand écran. */
.char-hero-bio {
    margin-top: 16px; max-width: 64ch;
    padding-left: 14px; border-left: 2px solid var(--metal-light);
}
.char-hero-bio-texte { color: var(--lb-text); font-size: 0.92rem; line-height: 1.62; margin: 0; }
.char-hero-bio .char-formes { margin-top: 10px; }

/* Action principale de la fiche. Tant que le personnage n'est pas collectionné, le bouton est
   un contour d'accent : il propose. Une fois ajouté, il passe en aplat plein, qui se voit de
   loin et confirme d'un coup d'œil que la fiche est dans la collection. */
.char-hero-actions { margin-top: 18px; }
.char-collect-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--accent-texte);
    font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 9px 18px; border: 1px solid rgba(var(--accent-rgb), 0.45);
    border-radius: var(--radius-sm);
    cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.char-collect-btn:hover {
    background: rgba(var(--accent-rgb), 0.10); border-color: var(--doom-green);
}
.char-collect-btn.mv-list-active {
    background: var(--doom-green); color: var(--on-accent); border-color: var(--doom-green);
}
.char-collect-btn.mv-list-active:hover {
    transform: translateY(-1px); background: #fff; border-color: #fff;
}

@media (max-width: 720px) {
    .char-hero-stats { width: 100%; }
    .char-hero-stat { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--metal-light); }
    .char-hero-stat:first-child { border-top: 0; }
}

.char-hero-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.char-hero-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--lb-text); font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
/* Le h1 global porte un filet pleine largeur et une barre dorée. Dans le héros, ce nom est le
   sujet de la page et non un titre de section : le filet pleine largeur le coupait de l'acteur,
   on le retire. La barre dorée, elle, reste, resserrée sous le nom : c'est la signature du
   site, et elle sépare le nom de l'acteur mieux qu'un blanc. */
.char-hero-name {
    font-family: var(--font-ui); font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--lb-white);
    line-height: 1.05; margin: 2px 0 0;
    border-bottom: 0; padding-bottom: 0; text-transform: none; letter-spacing: 0;
}
.char-hero-name::after {
    display: block; content: "";
    width: 54px; height: 3px; margin-top: 9px;
    background: var(--accent-gold); border-radius: 2px;
}
/* Nom d'acteur en accent : c'est une seule ligne par fiche, pas une donnée répétée à chaque
   rangée, et le vert y rattache la tête à la charte du site. Il tient au-dessus du seuil de
   lisibilité sur les bannières les plus claires grâce au dégradé, à revérifier si on
   l'éclaircit. */
.char-hero-variant { color: var(--accent-texte); font-size: 0.95rem; font-weight: 700; margin: 9px 0 10px; }

/* Le sur-titre garde un texte clair, le vert y serait illisible à 0,7 rem sur une photo. Sa
   part d'accent est la pastille verte qui l'ouvre, le même repère que les titres de section. */
.char-hero-eyebrow::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--doom-green); flex-shrink: 0;
}

/* Surnoms multiples (ex. War Machine devenu Iron Patriot dans Iron Man 3) — la fiche liste
   toutes les identités héroïques du personnage ; seul le nom principal (name) fait le H1. */
.char-hero-aliases { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.char-hero-aliases-label { font-size: 0.7rem; color: var(--lb-muted-clair); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-ui); font-weight: 700; margin-right: 2px; }
.char-alias-pill {
    display: inline-flex; align-items: center; font-family: var(--font-ui); font-weight: 700;
    font-size: 0.78rem; color: var(--lb-text); background: var(--bg-elevated);
    border: 1px solid var(--metal-light); border-radius: 20px; padding: 3px 12px;
}



.char-siblings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.char-siblings-label { font-size: 0.7rem; color: var(--lb-muted); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-ui); font-weight: 700; margin-right: 4px; }
.sibling-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-elevated); border: 1px solid var(--metal-light); border-radius: 20px;
    padding: 4px 12px 4px 4px; text-decoration: none; transition: border-color 0.18s, background 0.18s;
}
.sibling-pill:hover { border-color: var(--doom-green); background: rgba(var(--accent-rgb), 0.06); }
.sibling-pill img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; }
.sibling-pill span { font-size: 0.78rem; color: var(--lb-text); white-space: nowrap; }

/* ── Parties de la fiche personnage (Apparitions / Relations / Histoire), repliables ── */
.mv-collapsible-section { max-width: 1100px; margin: 0 auto; padding: 22px 36px; border-bottom: 1px solid var(--metal-gray); }
.mv-collapsible-section:last-of-type { border-bottom: none; }
@media (max-width: 720px) { .mv-collapsible-section { padding: 18px 18px; } }
.mv-section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mv-section-toggle-btn {
    display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0;
    cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.mv-section-toggle-btn svg { color: var(--lb-muted); transition: transform 0.2s; flex-shrink: 0; }
.mv-collapsible-section.mv-section-collapsed .mv-section-toggle-btn svg { transform: rotate(-90deg); }
.mv-section-body { overflow: hidden; margin-top: 4px; }
.mv-collapsible-section.mv-section-collapsed .mv-section-body,
.mv-collapsible-section.mv-section-collapsed .mv-toggle { display: none; }

/* Titre de chaque Partie — sans cette règle le sélecteur reste un <p> sans style, illisible
   au milieu du reste de la charte graphique du site. */
.perso-section-title {
    font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.5px;
    color: var(--lb-white); margin: 0; display: flex; align-items: center; gap: 10px;
}
.perso-section-title::before { content: ''; width: 3px; height: 1.15em; background: var(--doom-green); border-radius: 2px; flex-shrink: 0; }
.perso-section-title span { color: var(--lb-muted); font-weight: 600; }

/* ── Bandeau horizontal "Apparitions" (un film/une saison = une affiche) ── */
.mv-appearances-strip {
    display: flex; gap: 14px; margin-top: 16px; overflow-x: auto; padding-bottom: 10px;
    scrollbar-width: thin; scrollbar-color: var(--metal-light) transparent;
}
.mv-appearance-card {
    flex-shrink: 0; width: 150px; display: flex; flex-direction: column; gap: 6px;
    text-decoration: none;
}
.mv-appearance-poster-wrap {
    display: flex; width: 100%; aspect-ratio: 2/3; overflow: hidden; border-radius: 8px;
    background: var(--bg-elevated); align-items: center; justify-content: center;
    border: 1px solid var(--metal-gray); transition: border-color 0.2s;
}
.mv-appearance-card:hover .mv-appearance-poster-wrap { border-color: rgba(var(--accent-rgb), 0.4); }
.mv-appearance-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-appearance-poster-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--lb-muted); }
.mv-appearance-title {
    font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem; line-height: 1.3;
    color: var(--lb-white);
}
.mv-appearance-card:hover .mv-appearance-title { color: var(--accent-texte); }
.mv-appearance-type { font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lb-muted); }
@media (max-width: 560px) { .mv-appearance-card { width: 120px; } }

/* ── Timeline verticale des apparitions ── */
/* Interrupteur "Captures" — préférence persistée en localStorage (mv_show_captures) */
.mv-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.mv-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mv-toggle-track {
    position: relative; width: 34px; height: 19px; border-radius: 20px;
    background: var(--bg-elevated); border: 1px solid var(--metal-light); transition: background 0.18s, border-color 0.18s;
}
.mv-toggle-thumb {
    position: absolute; top: 1px; left: 1px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--lb-muted); transition: transform 0.18s, background 0.18s;
}
.mv-toggle input:checked + .mv-toggle-track { background: rgba(var(--accent-rgb), 0.18); border-color: var(--doom-green); }
.mv-toggle input:checked + .mv-toggle-track .mv-toggle-thumb { transform: translateX(15px); background: var(--doom-green); }
.mv-toggle-text { font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--lb-muted); }

.mv-timeline { position: relative; display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.mv-timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
    background: linear-gradient(to bottom, var(--doom-green), var(--lb-border) 90%);
    opacity: 0.4;
}
.mv-timeline-item { position: relative; padding-left: 34px; }
/* Une fiche bien remplie aligne une cinquantaine de puces et d'années : en accent, elles
   faisaient une colonne verte sur toute la hauteur de la page. La puce garde une pointe de
   couleur dans son liseré, la date passe au blanc cassé. */
.mv-timeline-dot {
    position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg-dark); border: 2px solid var(--metal-light);
}
.mv-timeline-year {
    font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: 1.5px;
    color: var(--lb-white); text-transform: uppercase; margin-bottom: 8px; display: block;
}
/* Scène qui prolonge la précédente le même jour : ni puce ni date répétée, juste sa carte,
   resserrée contre celle du dessus pour qu'on lise le bloc comme une seule journée. */
.mv-timeline-item-suite { margin-top: -12px; }
/* La frise énumère les événements eux-mêmes (un par temps fort), triés par date réelle dans
   l'histoire — plus de carte par film avec affiche : juste une mention textuelle de la source. */
.mv-event-card {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-card); border: 1px solid var(--metal-gray);
    border-radius: var(--radius-md); padding: 14px; transition: border-color 0.2s;
}
.mv-event-card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.mv-event-source { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mv-event-source-link {
    font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem;
    color: var(--lb-text); text-decoration: none;
}
.mv-event-source-link:hover { color: var(--accent-texte); }
/* La carte est titrée par le nom de l'événement : le film source ne se montre qu'au survol
   de la pastille de type, en infobulle, pour ne pas voler la vedette à l'événement lui-même. */
.mv-event-source-type {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--lb-muted); border: 1px solid var(--lb-border); border-radius: 3px; padding: 1px 6px;
    position: relative; cursor: help;
}
.mv-event-source-type[data-film]:hover { color: var(--lb-text); border-color: var(--doom-green); }
/* Une scène peut appartenir à plusieurs œuvres (la post-générique de Hulk est aussi la
   deuxième scène du one-shot « Le Consultant ») : l'infobulle en liste une par ligne, d'où
   `pre-line` plutôt que `nowrap`. La mention « (Post-Crédit) » s'écrit là, entre parenthèses
   derrière le titre, et non plus sur une étiquette de la carte. */
.mv-event-source-type[data-film]:hover::after {
    content: attr(data-film);
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    white-space: pre-line; text-align: center; width: max-content; max-width: 260px;
    z-index: 5; pointer-events: none;
    font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.3px; text-transform: none; color: var(--lb-text);
    background: var(--bg-elevated); border: 1px solid var(--doom-green);
    border-radius: 5px; padding: 4px 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
/* Lieu de la scène, et fonction tenue à l'écran par le personnage dont on lit la fiche
   (le cameo de Stan Lee est officier général ici, journaliste ailleurs). */
.mv-event-place {
    font-size: 0.68rem; color: var(--lb-muted); font-style: italic;
}
.mv-event-role {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent-texte); border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.07); border-radius: 3px; padding: 1px 6px;
}
/* Objet qu'une Pierre d'Infinité habitait lors de cette scène. Même gabarit que la pastille
   de rôle, mais en bleu froid : c'est une propriété de la gemme, pas une fonction tenue. */
.mv-event-forme {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: #1d5fa8; border: 1px solid rgba(29, 95, 168, 0.4);
    background: rgba(29, 95, 168, 0.08); border-radius: 3px; padding: 1px 6px;
}
/* Liste des contenants successifs, sur la fiche de la gemme elle-même. */
.char-formes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.char-formes-label {
    font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase; color: var(--lb-muted);
}
.char-forme { border-left: 2px solid rgba(29, 95, 168, 0.5); padding-left: 10px; }
.char-forme-nom { display: block; font-size: 0.86rem; font-weight: 600; color: #1d5fa8; line-height: 1.3; }
.char-forme-desc { display: block; font-size: 0.76rem; color: var(--lb-muted); line-height: 1.5; margin-top: 2px; }

.mv-moment-row { display: flex; align-items: flex-start; gap: 12px; }
.mv-moment-media {
    /* Ratio 2.39/1 : les captures de scène sont rognées au format scope du film, sans bandes noires. */
    flex-shrink: 0; width: 220px; aspect-ratio: 2.39/1; overflow: hidden; border-radius: 6px;
    background: var(--bg-elevated); position: relative;
}
.mv-moment-media-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--lb-muted); }
.mv-moment-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-app-importance { color: var(--lb-text); font-size: 0.85rem; line-height: 1.6; flex: 1; min-width: 0; }
.mv-hide-captures .mv-moment-media { display: none; }

/* Répliques de la scène : un encadré par citation, en fin d'événement. */
.mv-event-quotes { display: flex; flex-direction: column; gap: 8px; }
.mv-event-quote {
    margin: 0; padding: 9px 12px; border-left: 2px solid var(--metal-light);
    border-radius: 0 6px 6px 0; background: rgba(255,255,255,0.03);
}
.mv-quote-line { color: var(--lb-text); font-size: 0.83rem; line-height: 1.55; font-style: italic; }
.mv-quote-line + .mv-quote-line, .mv-quote-line + .mv-quote-stage, .mv-quote-stage + .mv-quote-line { margin-top: 3px; }
.mv-quote-who {
    font-family: var(--font-ui); font-weight: 700; font-style: normal;
    font-size: 0.76rem; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--lb-white); margin-right: 7px;
}
.mv-quote-stage { color: var(--lb-muted); font-size: 0.76rem; line-height: 1.5; font-style: italic; }

/* ── "Histoire" sur la fiche d'un film : ses événements dans l'ordre du récit, présentés
      comme les bandes-annonces. Une capture, un titre, une date, et la mention de la scène
      quand elle sort de la ligne du temps. Le résumé n'y figure plus : quarante paragraphes
      empilés faisaient de la section un mur de texte que personne ne lisait, et chaque fiche
      personnage raconte déjà la scène de son point de vue. ── */
.film-history-strip {
    display: flex; align-items: stretch; gap: 12px;
    padding: 6px 8px; overflow-x: auto;
    scroll-behavior: smooth; scrollbar-width: none;
}
.film-history-strip::-webkit-scrollbar { display: none; }
/* Gabarit fixe : toutes les cartes ont la même hauteur, le titre occupe deux lignes qu'il les
   remplisse ou non, et la date est collée en bas. D'une carte à l'autre, chaque information
   tombe donc exactement au même endroit. */
.film-history-card {
    flex: 0 0 clamp(200px, 22vw, 250px); overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--lb-border); border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: border-color 0.18s, transform 0.18s;
}
.film-history-card:hover { border-color: var(--metal-light); transform: translateY(-3px); }
.film-history-body { padding: 9px 11px 11px; display: flex; flex-direction: column; flex: 1; }
.film-history-name {
    font-family: var(--font-ui); font-weight: 700; font-size: 0.92rem;
    color: var(--lb-text); margin: 0; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: calc(2 * 1.25 * 0.92rem);
}
/* `margin-top: auto` plaque la date au bas de la carte : un titre d'une ligne ne la fait pas
   remonter, et la ligne des dates reste alignée sur toute la bande. */
.film-history-date { margin-top: auto; padding-top: 6px; }
.film-history-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* L'étiquette de nature se pose sur la capture, pas dans le texte : sa présence ou son absence
   ne décale plus rien, et deux cartes voisines gardent la même géométrie. */
.film-history-badges {
    position: absolute; top: 6px; left: 6px; right: 6px;
    display: flex; gap: 5px; flex-wrap: wrap; pointer-events: none;
}
.film-history-badges .film-history-tag {
    background: rgba(10, 12, 15, 0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
/* La date était verte sur chacune des trente-huit scènes d'un film, puis blanc cassé : dans
   les deux cas elle tirait l'œil avant le titre alors qu'elle se répète sur chaque carte.
   Elle est maintenant grise, lisible sans être la première chose qu'on lit (5:1 sur le fond
   des cartes), et c'est le titre qui reste en clair. */
.film-history-date {
    font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: 1px;
    text-transform: uppercase; color: var(--lb-muted-clair);
}
.film-history-place { font-size: 0.7rem; color: var(--lb-muted); font-style: italic; }
/* Le lieu sur sa propre ligne, coupé net plutôt que replié sur trois : accolé à la date, il
   faisait grandir la carte d'autant de lignes que le lieu était long. Le texte entier reste
   accessible en infobulle. */
.film-history-lieu {
    display: block; margin-top: 3px; font-size: 0.68rem; color: var(--lb-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.film-history-tag {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    border-radius: 3px; padding: 1px 6px;
}
/* Les étiquettes restent colorées : elles sont rares et c'est là que la couleur sert. */
.film-history-tag.postcredit { color: var(--accent-texte); border: 1px solid rgba(var(--accent-rgb), 0.5); }
/* Scènes hors de la ligne du temps du récit. Deux teintes distinctes du vert des scènes
   post-génériques : le retour en arrière et le saut en avant ne se confondent pas. */
/* La realite ou la scene se deroule, quand ce n'est pas celle de l'oeuvre. Une seule teinte
   pour toutes les realites : c'est le nom qui les distingue, pas la couleur. */
.film-history-tag-branche { color: var(--lb-text); border: 1px solid var(--metal-light); }
/* La capture de la scène, celle que partagent la plupart de ses personnages. Une scène sans
   capture garde son cadre : un aplat vaut mieux qu'une carte plus courte que ses voisines.
   C'est un bouton : le clic ouvre le résumé, que la carte n'affiche plus. */
.film-history-media {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    border: none; border-bottom: 1px solid var(--lb-border);
    background: rgba(255,255,255,0.04); padding: 0; width: 100%;
    cursor: pointer; display: block;
}
.film-history-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s, opacity 0.18s; }
.film-history-media:hover img { transform: scale(1.04); opacity: 0.85; }
.film-history-media:focus-visible { outline: 2px solid var(--doom-green); outline-offset: -2px; }
.film-history-media-vide img { display: none; }

/* ── Résumé d'une scène, ouvert depuis sa capture ── */
.scene-modal-content { max-width: 560px; }
/* La croix se pose sur la capture : sans fond, elle disparaît sur une image claire. */
.scene-modal-content .close-btn {
    top: 10px; right: 10px; z-index: 2; color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(10, 12, 15, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.scene-modal-media { aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,0.04); flex-shrink: 0; position: relative; }
.scene-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bulles posées sur le bas de la capture : les Pierres d'Infinité à gauche, les personnages à
   droite. C'est le seul endroit où l'on voit d'un coup tout ce qu'une scène implique, et deux
   colonnes séparées évitent de mélanger des gemmes avec des visages. Un dégradé remonte du bas
   de l'image pour que les pastilles restent lisibles sur un plan clair. */
.scene-modal-media::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 58%;
    background: linear-gradient(to top, rgba(10,12,15,0.78) 0%, rgba(10,12,15,0) 100%);
    pointer-events: none;
}
.scene-bulles {
    position: absolute; bottom: 9px; z-index: 1;
    display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap-reverse;
    max-width: calc(50% - 14px);
}
.scene-bulles:empty { display: none; }
.scene-bulles-gauche { left: 10px; justify-content: flex-start; }
.scene-bulles-droite { right: 10px; justify-content: flex-end; }
.scene-bulle {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.45);
    background: rgba(10, 12, 15, 0.6);
    transition: transform 0.15s, border-color 0.15s;
}
.scene-bulle img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.scene-bulle:hover, a.scene-bulle:focus-visible { transform: scale(1.15); border-color: var(--doom-green); }
.scene-bulle-inerte { cursor: default; }

/* Mention de l'œuvre, cliquable : depuis la timeline c'est le seul chemin vers la fiche du
   film, et une scène partagée en affiche autant qu'elle a de rattachements. */
.scene-oeuvres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.scene-oeuvres:empty { display: none; }
.scene-oeuvre-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-ui); font-size: 0.64rem; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none;
    color: var(--accent-texte); background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 4px; padding: 3px 10px;
    transition: background 0.15s, border-color 0.15s;
}
.scene-oeuvre-pill:hover { background: rgba(var(--accent-rgb), 0.18); border-color: var(--doom-green); }
.scene-oeuvre-note { color: var(--lb-muted); letter-spacing: 1px; }
.scene-modal-corps { padding: 16px 22px 22px; overflow-y: auto; }
.scene-modal-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.scene-modal-meta:empty { display: none; }
.scene-modal-titre {
    font-family: var(--font-ui); font-weight: 700; font-size: 1.28rem;
    color: var(--lb-white); margin: 0; line-height: 1.2;
}
.scene-modal-lieu {
    font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem;
    letter-spacing: 1px; text-transform: uppercase; color: var(--lb-muted); margin: 5px 0 0;
}
.scene-modal-resume { color: var(--lb-text); font-size: 0.9rem; line-height: 1.7; margin: 14px 0 0; }

/* ── "Citations" sur la fiche d'un film : toutes les répliques retenues, groupées par scène.
      Les fiches personnages n'en montrent qu'une partie (le champ `only` limite un échange à
      ses témoins) ; ici rien n'est filtré, et chaque nom connu de la base devient un lien. ── */
/* Une quinzaine de scènes empilées demandaient près de trois écrans de défilement. Les
   répliques défilent donc à l'horizontale, un échange par carte, dans l'ordre du récit :
   même carrousel que les bandes-annonces, mêmes flèches, même dégradé de bord. */
.film-quotes-strip {
    display: flex; align-items: stretch; gap: 12px;
    padding: 6px 8px; overflow-x: auto;
    scroll-behavior: smooth; scrollbar-width: none;
}
.film-quotes-strip::-webkit-scrollbar { display: none; }
.film-quote-card {
    flex: 0 0 clamp(240px, 26vw, 320px); margin: 0; overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--lb-border); border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: border-color 0.18s;
}
.film-quote-card:hover { border-color: var(--metal-light); }
/* Bandeau neutre : la scène et sa date, pour qu'une réplique sortie de son contexte dise
   quand même où et quand elle tombe. */
.film-quote-card-head {
    display: flex; align-items: baseline; gap: 7px;
    padding: 7px 11px; background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--lb-border);
    font-family: var(--font-ui); font-weight: 700; font-size: 0.66rem;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--lb-white);
}
.film-quote-card-scene { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-quote-card-date {
    margin-left: auto; padding-left: 8px; flex-shrink: 0;
    color: var(--lb-muted); font-size: 0.6rem; letter-spacing: 1px; text-transform: none;
}
.film-quote { margin: 0; padding: 10px 11px 12px; }
.film-quote-line { color: var(--lb-text); font-size: 0.82rem; line-height: 1.45; font-style: italic; margin: 0; }
.film-quote-line + .film-quote-line,
.film-quote-line + .film-quote-stage,
.film-quote-stage + .film-quote-line { margin-top: 3px; }
/* Le nom du locuteur se distingue par la graisse et le romain au milieu d'un texte en
   italique : il n'a pas besoin d'être coloré. Trente-trois noms verts sur une page en
   faisaient la couleur dominante. L'accent ne revient qu'au survol d'un nom cliquable. */
.film-quote-who {
    font-family: var(--font-ui); font-weight: 700; font-style: normal;
    font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--lb-white); margin-right: 6px;
}
.film-quote-who-link { text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
.film-quote-who-link:hover { color: var(--accent-texte); border-bottom-color: var(--doom-green); }
.film-quote-stage { color: var(--lb-muted); font-size: 0.73rem; line-height: 1.4; font-style: italic; margin: 0; }

/* ── Sections repliables de la fiche film : le titre entier sert de bouton, le corps est
      enveloppé à l'exécution par setupSectionsPliables(). Repliée, la section se réduit à son
      titre seul, sans le filet qui le sépare d'un contenu devenu invisible. ── */
.section-title-pliable { cursor: pointer; user-select: none; }
.section-title-pliable:hover { color: var(--lb-text); }
.details-info-section.section-repliee .details-section-body { display: none; }
.details-info-section.section-repliee .section-title {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}
/* Capture référencée mais pas encore ajoutée sur le disque — masque l'icône "image cassée"
   du navigateur plutôt que de l'afficher, le temps que le fichier arrive. */
.mv-moment-media-broken .mv-moment-img { display: none; }
@media (max-width: 560px) {
    .mv-moment-row { flex-direction: column; }
    .mv-moment-media { width: 100%; aspect-ratio: 2.39/1; }
}

/* ── Relations (données réelles issues du document personnages) ── */
.mv-relations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.mv-rel-card {
    display: flex; flex-direction: column; gap: 3px;
    background: var(--bg-card); border: 1px solid var(--metal-gray); border-radius: var(--radius-md);
    padding: 10px 13px; text-decoration: none; transition: border-color 0.18s, background 0.18s;
}
a.mv-rel-card:hover { border-color: var(--doom-green); background: rgba(var(--accent-rgb), 0.05); }
.mv-rel-card-plain { cursor: default; opacity: 0.75; }
.mv-rel-type { font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-texte); }
.mv-rel-name { font-size: 0.92rem; font-weight: 600; color: var(--lb-white); }
.mv-rel-note { font-size: 0.78rem; color: var(--lb-muted); line-height: 1.4; }

.char-not-found { max-width: 640px; margin: 80px auto; text-align: center; padding: 0 24px; }
.char-not-found svg { color: var(--lb-muted); margin-bottom: 14px; }
.char-not-found h1 { border: none; padding: 0; }
.char-not-found h1::after { display: none; }
.char-browse-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.char-browse-list a { font-size: 0.78rem; color: var(--accent-texte); border: 1px solid var(--metal-light); border-radius: 20px; padding: 4px 12px; }

/* ======================================================
   MA COLLECTION — bouton watchlist + étoiles de note
   (watchlist.js pilote l'état, réutilisable sur toutes les cartes du site)
====================================================== */
.mv-list-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(11,14,15,0.7); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; cursor: pointer; transition: border-color 0.18s, color 0.18s, background 0.18s;
    flex-shrink: 0;
}
.mv-list-btn:hover { border-color: var(--doom-green); color: var(--accent-texte); }
.mv-list-btn.mv-list-active { background: var(--doom-green); border-color: var(--doom-green); color: var(--on-accent); }
.mv-list-btn.mv-list-active svg { fill: currentColor; }
.mv-list-btn-card { position: absolute; top: 6px; right: 6px; z-index: 5; }

.mv-stars { display: inline-flex; gap: 2px; }
.mv-star-btn { background: none; border: none; padding: 1px; cursor: pointer; color: var(--lb-border); line-height: 0; transition: color 0.12s, transform 0.12s; }
.mv-star-btn:hover { transform: scale(1.15); }
.mv-star-btn.filled { color: var(--accent-gold); }
.mv-star-btn svg { fill: currentColor; stroke: currentColor; }

/* ── Page Ma Collection ── */
.collection-header { max-width: 1100px; margin: 0 auto; padding: 36px 36px 10px; }
.collection-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.collection-empty { max-width: 480px; margin: 60px auto; text-align: center; padding: 0 24px; color: var(--lb-muted); }
.collection-empty svg { color: var(--lb-muted); margin-bottom: 14px; }
.collection-grid-wrap { max-width: 1100px; margin: 0 auto; padding: 12px 36px 70px; }
.collection-card { position: relative; background: var(--bg-card); border: 1px solid var(--metal-gray); border-radius: var(--radius-md); overflow: hidden; }
.collection-card-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; object-position: top; background: var(--bg-elevated); display: block; }
.collection-card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.collection-card-title { font-size: 0.82rem; font-weight: 600; color: var(--lb-white); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.collection-card-sub { font-size: 0.68rem; color: var(--lb-muted); }
.collection-card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.collection-watched-toggle { font-size: 0.62rem; font-family: var(--font-ui); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid var(--metal-light); border-radius: 3px; padding: 3px 7px; background: transparent; color: var(--lb-muted); cursor: pointer; }
.collection-watched-toggle.on { background: rgba(var(--accent-rgb),0.12); border-color: var(--doom-green); color: var(--accent-texte); }
@media (max-width: 720px) { .collection-header, .collection-grid-wrap { padding-left: 18px; padding-right: 18px; } }

/* ======================================================
   RESPONSIVE — NAV
====================================================== */
@media (max-width: 768px) {
    .lb-nav { padding: 0 16px; gap: 12px; }
    .lb-nav-links a { padding: 6px 8px; font-size: 0.75rem; }
}
@media (max-width: 520px) { .lb-nav-search { display: none; } }

/* ======================================================
   FICHE PERSONNAGE — même charpente que la fiche film
   Le héros garde son portrait, tout le reste passe dans la grille à deux colonnes
   `.details-container`, avec les mêmes encadrés `.details-info-section`.
====================================================== */

/* Compteur discret accolé au titre de section (nombre d'apparitions, de relations…). */
.section-compteur {
    font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
    color: var(--lb-muted); background: rgba(255,255,255,0.05);
    border: 1px solid var(--lb-border); border-radius: 10px; padding: 0 7px;
    letter-spacing: 0.5px;
}
.char-vide { color: var(--lb-muted); font-size: 0.85rem; font-style: italic; margin: 0; }

/* Apparitions : mêmes cartes d'affiche que « Films à voir avant », en bande défilante. */
.char-apparitions-strip {
    display: flex; align-items: stretch; gap: 12px;
    padding: 6px 8px; overflow-x: auto;
    scroll-behavior: smooth; scrollbar-width: none;
}
.char-apparitions-strip::-webkit-scrollbar { display: none; }
.char-apparitions-strip .prepa-card { width: 118px; text-decoration: none; }
.prepa-card-inerte { cursor: default; opacity: 0.7; }
.prepa-card-inerte:hover { transform: none; border-color: var(--metal-light); box-shadow: none; }
.char-apparition-vide {
    display: flex; align-items: center; justify-content: center;
    color: var(--lb-muted); background: var(--bg-elevated);
}
/* La mention (Film, Mini-série, Saison N) : l'étiquette des « Films à voir avant », calée en bas
   de carte pour tomber à la même hauteur que le titre tienne sur une ligne ou sur deux. */
.char-apparitions-strip .prepa-card { display: flex; flex-direction: column; }
.char-apparitions-strip .prepa-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.char-apparition-type {
    margin-top: auto; align-self: flex-start;
    box-sizing: border-box; height: 18px; display: inline-flex; align-items: center; padding: 0 6px;
    font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700; white-space: nowrap;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--lb-text);
    background: transparent; border: 1px solid var(--metal-light); border-radius: 0;
}

/* Relations : la carte de la liste « Personnages » d'une fiche film, augmentée de la nature
   du lien et de sa description. Deux colonnes tant que la place le permet. */
/* Les relations s'empilent en colonne tant que la fiche est sur deux colonnes : dans une
   latérale de 320 px, une carte par ligne se lit très bien et des flèches n'auraient rien à
   faire défiler. Le balisage du carrousel est quand même en place, inerte, pour que le passage
   en une colonne n'ait qu'une règle à changer (voir plus bas, à 1100 px). */
.char-relations-strip {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
}

.char-relation-carte {
    display: flex; flex-direction: column; gap: 7px; padding: 10px 12px;
    background: var(--bg-elevated); border: 1px solid var(--metal-gray);
    border-left: 3px solid var(--metal-light); border-radius: var(--radius-sm);
    text-decoration: none; transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
a.char-relation-carte:hover {
    background: rgba(255,255,255,0.035);
    border-left-color: var(--doom-green);
    transform: translateX(3px);
}
.char-relation-carte-inerte { cursor: default; opacity: 0.85; }
.char-relation-entete { display: flex; align-items: center; gap: 10px; }
/* Le lien de parenté a pris la place du nom d'acteur sous le nom du personnage : il n'est plus
   une étiquette poussée à droite mais la deuxième ligne de la carte. Même traitement que
   .prepa-type sur la fiche film, l'accent sur fond teinté, qui est le vocabulaire du site pour
   une étiquette de type. */
.char-relation-type {
    align-self: flex-start; max-width: 100%;
    font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: var(--accent-texte);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 3px; padding: 1px 6px; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.char-relation-note { color: var(--lb-text); font-size: 0.8rem; line-height: 1.5; margin: 0; }

/* Autres versions : même carte que la liste des personnages d'un film. */
.char-versions-liste { display: flex; flex-direction: column; gap: 8px; }

/* Autres instances et autres interprètes, dans le bandeau du héros. Le gabarit de section du
   site y était trop lourd : une barre de titre pleine largeur, un compteur et un chevron de
   pliage pour une seule carte, séparés du héros par un vide. Ici, une étiquette discrète et
   des cartes qui s'arrêtent à leur largeur naturelle. */
/* Aligné sur le héros et non sur le bord de page : même largeur maximale, même marge
   automatique, même retrait horizontal que `.char-hero`. Sans ça l'étiquette part cinquante
   pixels à gauche du portrait et le bandeau paraît décroché de ce qu'il complète.

   Les deux bandeaux partagent une seule grille à deux colonnes plutôt que d'être deux lignes
   indépendantes : « Autres interprètes » est plus long qu'« Autres instances », et en flex
   chacun poussait ses cartes à un endroit différent. La colonne des étiquettes est en
   `max-content`, donc large comme la plus longue des deux, et les cartes des deux lignes
   commencent au même pixel sans qu'aucune largeur ne soit écrite en dur. */
.char-variantes-groupe {
    display: grid; grid-template-columns: max-content 1fr; align-items: center;
    gap: 10px 14px;
    max-width: 1100px; margin: 0 auto 22px; padding: 0 36px;
    box-sizing: border-box;
}
.char-variantes { display: contents; }
.char-variantes-label {
    font-family: var(--font-ui); font-size: 0.63rem; font-weight: 700;
    letter-spacing: 1.7px; text-transform: uppercase; color: var(--lb-muted-clair);
    white-space: nowrap;
}
.char-variantes-liste { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.char-variante {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 6px 12px 6px 6px; text-decoration: none;
    background: rgba(14, 16, 20, 0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--metal-light); border-radius: 999px;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.char-variante:hover {
    background: rgba(var(--accent-rgb), 0.10);
    border-color: rgba(var(--accent-rgb), 0.45);
    transform: translateY(-1px);
}
.char-variante-img {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    background: var(--bg-elevated); flex: 0 0 auto;
}
.char-variante-texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.char-variante-nom {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 600; color: var(--lb-white); line-height: 1.2;
    white-space: nowrap;
}
.char-variante-seconde {
    font-size: 0.7rem; color: var(--lb-muted); line-height: 1.2; white-space: nowrap;
}
/* Une instance n'a qu'une ligne, la désignation de sa réalité. Sans seconde ligne pour
   l'équilibrer, la pastille se recentre sur l'icône et le chiffre passe en tabulaire pour
   que deux numéros de même longueur s'alignent. */
.char-variante-instance .char-variante-texte { justify-content: center; }
.char-variante-instance .char-variante-nom {
    font-family: var(--font-ui); font-size: 0.86rem; letter-spacing: 0.6px;
    font-variant-numeric: tabular-nums;
}
/* Sous 720 px la colonne d'étiquettes mangerait la moitié de la largeur : on repasse à une
   seule colonne, étiquette au-dessus de ses cartes. */
@media (max-width: 720px) {
    .char-variantes-groupe { grid-template-columns: 1fr; padding: 0 18px; gap: 4px; }
    .char-variantes-liste { width: 100%; margin-bottom: 8px; }
}

/* Étiquettes posées sur la capture d'une scène, côté fiche personnage : le rôle tenu à
   l'écran, et pour une Gemme l'objet qu'elle habitait à ce moment-là. */
.film-history-tag-role { color: var(--lb-white); border: 1px solid var(--metal-light); }
.film-history-tag-forme { color: #8ab4ff; border: 1px solid rgba(138, 180, 255, 0.55); }

/* Lien vers l'œuvre depuis la fenêtre de récit. */
.scene-modal-lien {
    display: inline-block; margin-top: 14px;
    font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-texte);
    border: 1px solid var(--doom-green); border-radius: var(--radius-sm); padding: 5px 12px;
    transition: background 0.18s;
}
.scene-modal-lien:hover { background: rgba(var(--accent-rgb), 0.1); }
.scene-modal-oeuvre { font-size: 0.7rem; color: var(--lb-muted); align-self: center; }
/* Saison et épisode d'une scène de série (fiche personnage) : une donnée, pas un accent. */
.scene-modal-episode { font-size: 0.7rem; color: var(--lb-text); align-self: center; font-weight: 600; }

/* ======================================================
   CARROUSELS — bande défilante, dégradé de bord et flèches
   Ces règles vivaient dans le <style> de details.html : la fiche personnage, qui réutilise
   exactement le même balisage, se retrouvait avec des boutons non stylés. Mises en commun.
====================================================== */
.trailers-carousel-wrap { position: relative; }
.trailers-carousel-mask {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.trailers-carousel-mask.no-mask { mask-image: none; -webkit-mask-image: none; }
.trailers-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 4;
    background: rgba(14, 15, 18, 0.85);
    border: 1px solid var(--metal-light);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--lb-white);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.trailers-arrow:hover { border-color: var(--doom-green); color: var(--accent-texte); background: rgba(var(--accent-rgb), 0.16); }
.trailers-arrow.left  { left: -8px; }
.trailers-arrow.right { right: -8px; }
.trailers-arrow.hidden { display: none; }

/* ── Barre de défilement du site (barre-defilement.js, 16/11/2026) ─────────────────────────
   Deux petits boutons carrés aux deux bouts, un rail de la même épaisseur entre eux, et un
   curseur proportionnel à la part visible. Même dessin que les flèches des Bandes-annonces. */
.mv-barre { display: flex; align-items: center; gap: 6px; }
.mv-barre[hidden] { display: none !important; }
.mv-barre-x { margin-top: 14px; }
.mv-barre-y { flex-direction: column; align-items: center; }
.mv-barre-fleche {
    flex: 0 0 auto; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-elevated); color: var(--lb-white); cursor: pointer;
    border: var(--trait); border-radius: var(--rayon-bouton);
    transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.mv-barre-fleche:hover:not(:disabled) { background: var(--doom-green); border-color: var(--doom-green); color: var(--on-accent); }
.mv-barre-fleche:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 2px; }
.mv-barre-fleche:disabled { opacity: 0.35; cursor: default; }
.mv-barre-rail {
    position: relative; flex: 1 1 auto; box-sizing: border-box; cursor: pointer;
    background: var(--bg-elevated); border: var(--trait); border-radius: var(--rayon-bouton);
}
.mv-barre-x .mv-barre-rail { height: 28px; }
.mv-barre-y .mv-barre-rail { width: 28px; }
.mv-barre-curseur {
    position: absolute; cursor: grab;
    background: var(--lb-muted); border-radius: calc(var(--rayon-bouton) - 2px);
    transition: background-color var(--dur-1);
}
.mv-barre-x .mv-barre-curseur { top: 3px; bottom: 3px; left: 3px; min-width: 24px; }
.mv-barre-y .mv-barre-curseur { left: 3px; right: 3px; top: 3px; min-height: 24px; }
.mv-barre-rail:hover .mv-barre-curseur, .mv-barre-curseur.prise { background: var(--doom-green); }
.mv-barre-curseur.prise { cursor: grabbing; }
/* La barre HORIZONTALE s'affine (22/11/2026, « plus smooth ») sans devenir difficile à prendre (8 px
   était trop fin, même jour) : un rail de 16 px aux bouts arrondis, un curseur en pilule de 10 px, deux
   flèches rondes de 26 px. La zone qu'on clique est plus grande que le dessin : le rail fait 28 px de
   haut (le trait visible est son ::before), le curseur se saisit sur toute cette hauteur, et chaque
   flèche déborde de 6 px pour le doigt. */
.mv-barre-x { gap: 8px; }
.mv-barre-x .mv-barre-fleche { position: relative; width: 26px; height: 26px; border-radius: 50%; }
.mv-barre-x .mv-barre-fleche::before { content: ''; position: absolute; inset: -6px; }
.mv-barre-x .mv-barre-fleche svg { width: 13px; height: 13px; }
.mv-barre-x .mv-barre-rail { height: 28px; background: transparent; border: 0; border-radius: 0; }
.mv-barre-x .mv-barre-rail::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 16px; margin-top: -8px;
    box-sizing: border-box; background: var(--bg-elevated); border: var(--trait); border-radius: 999px;
}
.mv-barre-x .mv-barre-curseur { top: 50%; bottom: auto; height: 10px; margin-top: -5px; border-radius: 999px; }
.mv-barre-x .mv-barre-curseur::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }

/* ══════════════════════════════════════════════════════════════════════════════
   LES FICHES (œuvre et personnage), une seule DA (22/11/2026)
   ══════════════════════════════════════════════════════════════════════════════ */
/* La case d'ouverture : le récit à gauche (synopsis d'une œuvre, biographie d'un personnage), dans
   sa voix de sous-titre ; les infos clés à droite, derrière un filet vertical. Sous 1100 px, les
   infos passent sous le récit. `.oeuvre-ouverture-seule` : pas de récit, les infos seules. */
.oeuvre-ouverture { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: stretch; }
.oeuvre-ouverture-texte { min-width: 0; padding-right: clamp(24px, 3vw, 44px); }
.fiche-recit.mv9-recit { margin: 0; max-width: 68ch; padding: 0; font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.55; }
.oeuvre-infos { min-width: 0; padding-left: clamp(24px, 3vw, 44px); border-left: var(--trait); }
.oeuvre-infos-titre {
    margin: 0 0 14px; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-texte);
}
.oeuvre-ouverture-seule { grid-template-columns: minmax(0, 1fr); }
.oeuvre-ouverture-seule .oeuvre-infos { padding-left: 0; border-left: 0; }
/* Les infos clés : l'étiquette AU-DESSUS de la valeur, en deux colonnes, comme un carton de générique ;
   une dernière ligne seule (souvent la plus longue) prend les deux, `.info-line-large` aussi. */
.infos-cles-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.infos-cles-grille .info-line {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; min-width: 0;
    padding: 0; border: 0; font-size: inherit;
}
.infos-cles-grille .info-line:last-child:nth-child(odd), .infos-cles-grille .info-line-large { grid-column: 1 / -1; }
.infos-cles-grille .info-label {
    margin: 0; font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--lb-muted);
}
.infos-cles-grille .info-value { margin: 0; text-align: left; color: var(--lb-white); font-size: 0.92rem; font-weight: 500; line-height: 1.35; max-width: 100%; }
.infos-cles-grille > p { grid-column: 1 / -1; color: var(--lb-muted) !important; font-size: 0.84rem; margin: 4px 0 0; }
@media (max-width: 1100px) {
    .oeuvre-ouverture { grid-template-columns: minmax(0, 1fr); }
    .oeuvre-ouverture-texte { padding-right: 0; }
    .oeuvre-infos { padding: 20px 0 0; margin-top: 22px; border-left: 0; border-top: var(--trait); }
    .oeuvre-ouverture-seule .oeuvre-infos { padding-top: 0; margin-top: 0; border-top: 0; }
    .infos-cles-grille { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .infos-cles-grille .info-line:last-child:nth-child(odd) { grid-column: auto; }
    .infos-cles-grille .info-line-large { grid-column: 1 / -1; }
}
@media (max-width: 720px) { .fiche-recit.mv9-recit { font-size: 1.06rem; } }
@media (max-width: 560px) {
    .infos-cles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
    .infos-cles-grille .info-line:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Le pliage des cases : au clic sur le titre, sans chevron. Le bouton reste pour le clavier et les
   lecteurs d'écran, invisible ; le titre montre le focus à sa place. Pliée, la case se réduit à son
   titre, sans le filet pointillé (tva.css le pose en !important), et se rouvre d'un clic n'importe où. */
.section-title .pli-cache {
    position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.section-title-pli { cursor: pointer; user-select: none; }
.section-title-pli:hover { color: var(--lb-text); }
.section-title-pli:has(.pli-cache:focus-visible) { outline: 2px solid var(--accent-texte); outline-offset: 6px; }
.details-info-section.section-repliee { cursor: pointer; }
.details-info-section.section-repliee:hover .section-title { color: var(--lb-text); }
.details-info-section.section-repliee .section-title { border-bottom: 0 !important; padding-bottom: 0; margin-bottom: 0; }
/* Une bande qui a sa barre n'a plus besoin des flèches posées sur ses bords. */
.trailers-carousel-wrap:has(+ .mv-barre:not([hidden])) .trailers-arrow { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   INSTANCES ET BRANCHES
   Deux instances d'un même personnage (le Tony de 2012 et celui de 2023) ne doivent
   jamais finir sur la même carte : une étiquette est le seul signe qui les départage
   dans un casting ou une grille, où le nom et l'acteur sont identiques.

   Il n'en existe plus qu'une sorte, `.uni-chip`. La `.char-instance-chip` qui vivait à
   côté a été supprimée : sur une carte d'un univers alternatif, les deux s'affichaient
   à la suite en disant la même chose, « TRN732 » puis « TRN732 », dans deux dessins
   différents. Une carte porte donc désormais une étiquette et une seule.
   ══════════════════════════════════════════════════════════════════════════════ */



/* Dans une réplique, la pastille dit LAQUELLE des deux instances parle. Elle ne sort
   que dans une œuvre où deux instances se croisent, sinon elle n'apprendrait rien. */
.film-quote-inst {
    font-size: 0.6rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 0 5px;
    margin-right: 6px;
    border-radius: 999px;
    color: var(--lb-white);
    background: rgba(255, 255, 255, .1);
}

/* Les listes déroulantes ouvertes (03/11/2026) : le menu de mv-commun.js, dans la DA du site et non celle du système */
.mv-liste { position: fixed; inset: auto; margin: 0; z-index: 3000; box-sizing: border-box; max-width: min(420px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 6px; background: var(--bg-card); border: 1px solid var(--lb-border); border-radius: 10px; box-shadow: 0 18px 34px -16px rgba(28, 19, 13, 0.55); color: var(--lb-text); font: 600 0.88rem var(--font-ui); }
.mv-liste-option { padding: 8px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-liste-option.est-actif { background: var(--bg-elevated); color: var(--lb-white); }
.mv-liste-option.est-choisie { color: var(--accent-texte); }
.mv-liste-option.est-choisie::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.mv-liste-groupe { padding: 10px 12px 4px; font: 400 0.66rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lb-muted); }

/* Pas d'ombre sous les cartes de l'Histoire d'une fiche personnage ni sous celles de « Films à
   voir avant » (20/11/2026), comme sur les bandes de la fiche d'œuvre : le cadre suffit. */
#char-histoire .film-history-card, #char-histoire .film-history-card:hover, #char-histoire .film-history-card:active,
#prepa-section .prepa-card, #prepa-section .prepa-card:hover, #prepa-section .prepa-card:active,
#char-apparitions .prepa-card, #char-apparitions .prepa-card:hover, #char-apparitions .prepa-card:active,
#content-area .poster-card, #content-area .poster-card:hover, #content-area .poster-card:active { box-shadow: none !important; }

/* Pas de surbrillance au toucher sur mobile (20/11/2026) : le pendant tactile du « flash » au clic répété. */
html { -webkit-tap-highlight-color: transparent; }
