/* ==========================================================================
   CHRONOVERSE v9 : « L'Almanach », sur la charte « Latvérie » de la v8
   --------------------------------------------------------------------------
   La première moitié du fichier est la v8 (filets, angles droits, rideau,
   accueil). La seconde, à partir de « L'ALMANACH », est la couche v9 : la
   grammaire de la bande dessinée imprimée (cases, récitatifs, bulles, trame,
   tampon, ombre d'impression) et les trois gestes du mouvement. Elle passe
   devant la v8 parce qu'elle est écrite après. Direction complète :
   .claude/refonte/DIRECTION.md.
   --------------------------------------------------------------------------
   Chargée EN DERNIER dans <head> (après style.css et les <style> de page) :
   elle redessine les composants partagés sans toucher à leur balisage.
   Les palettes vivent dans style.css (:root[data-theme]). Ici, aucune couleur
   d'accent en dur : var(--doom-green), rgba(var(--accent-rgb), x).

   Parti pris, contre l'esthétique « générée » de la v7 :
   - de l'imprimé plutôt que de l'écran : filets, angles droits, grain, titres
     d'affiche condensés, italiques de revue pour les citations ;
   - aucun halo, aucun dégradé de texte, aucun verre dépoli décoratif ;
   - le mouvement porte l'information (entrée, sortie, survol), jamais en boucle
     sur le contenu. Seule la vapeur de Fatalis vit en continu, et seulement
     en thème Doom.
   ========================================================================== */

/* ── Base ─────────────────────────────────────────────────────────────── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
/* La place de la barre de défilement est toujours réservée (03/11/2026) : sans cela elle disparaissait le temps
   qu'une page courte au premier affichage (grille pas encore dessinée, contenu réservé caché, fenêtre qui bloque
   le défilement) se remplisse, et toute la page glissait de 15 px à gauche puis à droite à chaque changement de page. */
html { scrollbar-gutter: stable; }
body { font-size: 15px; letter-spacing: 0.005em; }
p { color: var(--lb-text); font-weight: 400; }
::selection { background: rgba(var(--accent-rgb), 0.85); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--doom-green); outline-offset: 2px; }

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-thumb { background: var(--metal-light); border-radius: 0; }

/* Grain d'impression, posé sur toute la page. Un bruit fixe, pas animé : il casse le
   noir plat des écrans sans rien demander au processeur. */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
    opacity: 0.055; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Titres : affiche condensée. Le h1 global perd son filet et sa barre dorée de v7. */
h1 {
    font-family: var(--font-display); font-weight: 800; color: var(--lb-white);
    letter-spacing: 0.01em; line-height: 0.95; border-bottom: 0; padding-bottom: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
h1::after { display: none; }
/* Un titre de page reste en blanc : l'accent est pour ce qu'on peut cliquer. */
h1 .ch-green { color: var(--lb-white); }
/* Groupes repliables (Personnages par univers, Cinéma par saga) : titre d'affiche. */
.mv-groupe > summary.group-header {
    font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.01em;
    color: var(--lb-white); line-height: 1; padding-bottom: 10px; border-bottom: 1px solid var(--lb-border);
}
.mv-groupe > summary.group-header::before { width: 10px; height: 10px; border-radius: 0; }
.mv-sous-groupe > summary.group-header { font-size: 1.1rem; color: var(--lb-muted-clair); border-bottom: 0; }
.mv-sous-groupe > summary.group-header::before { width: 6px; height: 6px; }
.stats-ribbon { background: transparent !important; }

/* L'année d'un jeu se répète sur chaque carte : neutre, comme toute donnée répétée. */
.game-year-badge {
    color: var(--lb-white) !important; border-color: transparent !important; border-radius: 0 !important;
    background: rgba(var(--bg-rgb), 0.85) !important; font-family: var(--font-ui) !important; letter-spacing: 0.06em;
}
h2, h3 { font-family: var(--font-ui); }

/* L'ancien voile de chargement de chaque page cède la place au rideau commun. */
#page-loader { display: none !important; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.lb-nav {
    height: var(--nav-h); padding: 0 28px; gap: 28px;
    background: rgba(var(--bg-rgb), 0.92);
    border-bottom: 1px solid var(--lb-border);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.lb-logo { gap: 10px; }
.lb-logo-img { width: 26px; height: 26px; filter: grayscale(0.15); }
.lb-logo-text {
    font-family: var(--font-display); font-weight: 900; font-size: 1.45rem;
    letter-spacing: 0.04em; line-height: 1; color: var(--lb-white);
}
/* v9 : le mot-marque est d'une seule couleur (voir la couche Almanach). */

.lb-nav-links { gap: 0; position: relative; height: 100%; }
.lb-nav-links li { height: 100%; display: flex; align-items: center; }
.lb-nav-links a {
    position: relative; padding: 0 13px; height: 100%; display: flex; align-items: center;
    font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--lb-muted); border-radius: 0; background: none !important;
    transition: color var(--dur-1);
}
.lb-nav-links a:hover { color: var(--lb-white); }
.lb-nav-links a.active { color: var(--lb-white); }
/* Le trait sous l'onglet : un seul, qui glisse d'un lien à l'autre (v8-motion.js).
   Sans JS, le lien actif garde son propre trait. */
.lb-nav-links a.active::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px;
    background: var(--doom-green);
}
.mv8-nav-js .lb-nav-links a.active::after { display: none; }
.mv8-nav-encre {
    position: absolute; bottom: -1px; left: 0; height: 2px; width: 0;
    background: var(--doom-green); pointer-events: none;
    transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
/* L'onglet Marathon (débloqué depuis l'accueil) est un onglet comme les autres, marqué d'un
   petit carré d'accent : plus de pastille jaune encadrée. */
.lb-nav-links a.nav-marathon-active {
    border: 0 !important; border-radius: 0 !important; padding: 0 13px !important;
    color: var(--lb-muted) !important; gap: 7px;
}
.lb-nav-links a.nav-marathon-active::before {
    content: ''; width: 5px; height: 5px; flex: 0 0 auto; background: var(--doom-green);
}
.lb-nav-links a.nav-marathon-active:hover, .lb-nav-links a.nav-marathon-active.active { color: var(--lb-white) !important; }

.lb-nav-search input {
    border-radius: 0 !important; background: transparent !important;
    border: 0 !important; border-bottom: 1px solid var(--metal-light) !important;
    font-family: var(--font-body); font-size: 0.82rem; padding-left: 28px !important;
    transition: border-color var(--dur-1);
}
.lb-nav-search input:focus { border-bottom-color: var(--doom-green) !important; box-shadow: none !important; }
.lb-nav-search > svg { left: 4px !important; }

/* Commutateur de thème (injecté par v8-motion.js en bout de barre) */
.mv8-theme {
    flex-shrink: 0; display: inline-flex; align-items: stretch; height: 26px;
    border: 1px solid var(--metal-light); padding: 0; background: none; cursor: pointer;
    font-family: var(--font-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--lb-muted); position: relative; overflow: hidden;
}
.mv8-theme span { position: relative; z-index: 1; display: flex; align-items: center; padding: 0 9px; transition: color var(--dur-2); }
.mv8-theme::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
    background: var(--doom-green); transition: transform var(--dur-2) var(--ease-out), background var(--dur-2);
}
:root[data-theme="red"] .mv8-theme::before { transform: translateX(100%); }
:root[data-theme="doom"] .mv8-theme span:first-child,
:root[data-theme="red"]  .mv8-theme span:last-child { color: var(--on-accent); }
.mv8-theme:hover { border-color: var(--lb-muted); }
.mv8-theme span { min-width: 50%; justify-content: center; }

/* ── Sections (« dossiers ») ──────────────────────────────────────────── */
/* Un dossier imprimé : angles droits, filet fin, et quatre repères de coupe aux coins à
   la place de l'ombre portée. Les titres sont numérotés comme les rubriques d'une revue. */
.details-main, .details-sidebar, #char-main, .lb-main, main { counter-reset: rubrique; }
/* Sur une seule colonne, la latérale passe SOUS la principale : sa numérotation continue au
   lieu de repartir de 01 (on lisait « 05 Citations » puis « 01 Infos clés »). */
@media (max-width: 1100px) { .details-sidebar { counter-reset: none; } }
.details-info-section {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--lb-border); border-radius: 0; box-shadow: none;
    padding: 20px 22px 22px;
    background-image:
        linear-gradient(var(--metal-light), var(--metal-light)), linear-gradient(var(--metal-light), var(--metal-light)),
        linear-gradient(var(--metal-light), var(--metal-light)), linear-gradient(var(--metal-light), var(--metal-light)),
        linear-gradient(var(--metal-light), var(--metal-light)), linear-gradient(var(--metal-light), var(--metal-light)),
        linear-gradient(var(--metal-light), var(--metal-light)), linear-gradient(var(--metal-light), var(--metal-light));
    background-repeat: no-repeat;
    background-size: 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px;
    background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
    transition: border-color var(--dur-2);
}
.details-info-section:hover { border-color: var(--metal-gray); }

.section-title {
    counter-increment: rubrique;
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
    letter-spacing: 0.02em; color: var(--lb-white); text-transform: uppercase;
    gap: 12px; padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 1px solid var(--lb-border);
}
.section-title::before {
    content: counter(rubrique, decimal-leading-zero);
    font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
    color: var(--accent-texte); align-self: flex-start; margin-top: 2px;
}
.glow-dot { display: none; }
.section-title .history-episode-choix[hidden] ~ .toggle-btn { margin-left: auto; }
.section-compteur { font-family: var(--font-ui); font-size: 0.7rem !important; font-weight: 600; color: var(--lb-muted) !important; letter-spacing: 0.06em; }
.toggle-btn {
    border-radius: 0; background: transparent; width: 26px; height: 26px;
    border-color: var(--lb-border);
}
.toggle-btn:hover { background: transparent; }

/* ── Boutons, pastilles, sélecteurs ───────────────────────────────────── */
/* Survol : l'aplat se remplit de gauche à droite au lieu de changer de teinte d'un coup. */
.watch-btn, .btn-more, .char-collect-btn, .hero-back-btn {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: 0 !important; font-family: var(--font-ui) !important;
    letter-spacing: 0.12em !important; font-weight: 700 !important;
}
.home-search-btn { border-radius: 0 !important; font-family: var(--font-ui) !important; letter-spacing: 0.12em !important; font-weight: 700 !important; }
.watch-btn::before, .btn-more::before, .char-collect-btn::before, .hero-back-btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--lb-white); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur-2) var(--ease-out);
}
.watch-btn { background: var(--doom-green); color: var(--on-accent); padding: 12px 24px; }
.watch-btn:hover { background: var(--doom-green); transform: none; color: #0a0a0a; }
.watch-btn:hover::before, .btn-more:hover::before, .hero-back-btn:hover::before { transform: scaleX(1); }

.btn-more { background: transparent; border: 1px solid var(--metal-light); color: var(--lb-text); }
.btn-more:hover { background: transparent !important; color: #0a0a0a !important; border-color: var(--lb-white) !important; transform: none !important; }

.hero-back-btn {
    background: rgba(var(--bg-rgb), 0.7); border: 1px solid var(--metal-light);
    backdrop-filter: none; color: var(--lb-text);
}
.hero-back-btn:hover { background: rgba(var(--bg-rgb), 0.7); color: #0a0a0a; border-color: var(--lb-white); }

.char-collect-btn { border-color: var(--metal-light); color: var(--lb-white); }
.char-collect-btn::before { background: var(--doom-green); }
.char-collect-btn.mv-list-active { background: var(--doom-green); color: var(--on-accent); }
.char-collect-btn.mv-list-active:hover { background: var(--lb-white); border-color: var(--lb-white); color: #0a0a0a; transform: none; }

.pill {
    border-radius: 0; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px;
    border-color: var(--lb-border); color: var(--lb-muted);
    transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1);
}
.pill:hover { border-color: var(--lb-muted); color: var(--lb-white); }
.pill.active { background: var(--lb-white); border-color: var(--lb-white); color: #0a0a0a; font-weight: 700; box-shadow: inset 3px 0 0 var(--doom-green); }

.lb-sort label { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
.lb-sort select, select {
    border-radius: 0 !important; font-family: var(--font-body);
}
.lb-sort select { background-color: transparent; border-color: var(--lb-border); }
.view-btn { border-radius: 0; }
.count-badge { font-family: var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.68rem; }
.count-badge span { color: var(--lb-white); }

.lb-filterbar {
    background: rgba(var(--bg-rgb), 0.95); backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--lb-border);
}
.filter-sep { height: 16px; }

.mv-list-btn { border-radius: 0 !important; }

.trailers-arrow {
    border-radius: 0; background: rgba(var(--bg-rgb), 0.92); width: 36px; height: 36px;
    transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.trailers-arrow:hover { background: var(--lb-white); color: #0a0a0a; border-color: var(--lb-white); }
.trailer-mini-card:hover .trailer-mini-play-circle svg { color: var(--on-accent); }

/* ── Cartes ───────────────────────────────────────────────────────────── */
/* La découpe en biseau et l'arrondi disparaissent. Au survol, l'image avance d'un cran et
   un filet d'accent se trace sous la légende ; l'inclinaison suit le pointeur (v8-motion.js). */
.poster-card, .prepa-card, .trailer-mini-card, .film-history-card, .stat-img-card, .choice-card {
    border-radius: 0 !important;
}
.poster-card {
    border: 1px solid var(--lb-border); background: var(--bg-card); box-shadow: none;
    transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.poster-card:hover { transform: translateY(-4px); border-color: var(--metal-light); }
.poster-img-wrap { clip-path: none !important; background: var(--bg-elevated); }
.poster-img-wrap img { transition: transform 700ms var(--ease-out), opacity var(--dur-2); }
.poster-card:hover .poster-img-wrap img { transform: scale(1.06); }
.poster-caption { position: relative; border-top: 1px solid var(--lb-border); padding: 8px 8px 9px; }
.poster-caption::before {
    content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
    background: var(--doom-green); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur-2) var(--ease-out);
}
.poster-card:hover .poster-caption::before { transform: scaleX(1); }
.poster-title { font-family: var(--font-ui); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em; }
.uni-chip { border-radius: 0; font-family: var(--font-ui); }

.prepa-card {
    background: var(--bg-card); border-color: var(--lb-border);
    transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.prepa-card:hover { transform: translateY(-4px); border-color: var(--metal-light); box-shadow: none; }
.prepa-card:hover .prepa-poster { transform: scale(1.05); }
.prepa-poster { transition: transform 700ms var(--ease-out); }
/* Les trois pastilles d'importance gardent leurs couleurs (elles codent un ordre, pas la
   charte), mais perdent leur halo. */
.prepa-O::before, .prepa-I::before, .prepa-F::before { box-shadow: 0 0 0 2px rgba(0,0,0,0.55) !important; border-radius: 0 !important; }

.trailer-mini-card { border-color: var(--lb-border); box-shadow: none; }
.trailer-mini-card:hover { border-color: var(--metal-light); box-shadow: none; }

.film-history-card { border-color: var(--lb-border); transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.film-history-card:hover { border-color: var(--metal-light); transform: translateY(-4px); }
.film-history-media img { transition: transform 700ms var(--ease-out), opacity var(--dur-2); }
.film-history-media:hover img { transform: scale(1.05); opacity: 1; }

.character-card-horizontal, .char-relation-carte {
    border-radius: 0; background: var(--bg-elevated); border: 1px solid var(--lb-border);
    border-left: 2px solid var(--metal-light);
    transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out), background var(--dur-1);
}
.character-card-horizontal:hover, a.char-relation-carte:hover { background: var(--bg-elevated); border-left-color: var(--doom-green); transform: translateX(4px); }
.char-img-horizontal { border-radius: 0; }
.char-relation-type, .prepa-type {
    border-radius: 0 !important; color: var(--lb-white) !important;
    background: transparent !important; border: 1px solid var(--metal-light) !important;
}

/* Squelettes de chargement : une ligne de balayage plutôt que le dégradé chatoyant. */
.poster-img-wrap .poster-skeleton, .char-hero-skel {
    clip-path: none !important;
    background: var(--bg-elevated) !important; animation: none !important; overflow: hidden;
}
.poster-img-wrap .poster-skeleton::after, .char-hero-skel::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(var(--accent-rgb), 0.07) 50%, transparent 70%);
    transform: translateX(-100%); animation: mv8-balayage 1.4s var(--ease-in-out) infinite;
}
@keyframes mv8-balayage { to { transform: translateX(100%); } }

/* ── Héros des fiches ─────────────────────────────────────────────────── */
.hero-header { min-height: 520px; background-color: var(--bg-dark); }
.hero-overlay {
    background:
        linear-gradient(to top, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0.72) 38%, rgba(var(--bg-rgb),0.12) 80%),
        linear-gradient(to right, rgba(var(--bg-rgb),0.82) 0%, transparent 62%);
}
.hero-content { padding: 40px 48px 36px; }
.hero-title {
    font-family: var(--font-display) !important; font-weight: 900 !important;
    font-size: clamp(2.8rem, 7.5vw, 6rem) !important; line-height: 0.88 !important;
    text-transform: uppercase !important; letter-spacing: 0.005em;
    margin-bottom: 18px !important; max-width: 16ch;
}
.hero-badge {
    border-radius: 0; font-family: var(--font-ui); border-color: var(--metal-light);
    color: var(--lb-text); letter-spacing: 0.1em;
}

.char-hero-banner::after {
    background:
        linear-gradient(to bottom, rgba(var(--bg-rgb),0.66) 0px, rgba(var(--bg-rgb),0.84) 200px, rgba(var(--bg-rgb),0.93) 60%, rgba(var(--bg-rgb),1) 100%),
        linear-gradient(to right, rgba(var(--bg-rgb),0.8) 0%, transparent 65%);
}
.char-hero { gap: 40px; padding-top: 44px; }
.char-hero-portrait {
    clip-path: none !important; border: 1px solid var(--metal-light);
    background: var(--bg-elevated);
}
.char-hero-eyebrow { font-family: var(--font-ui); letter-spacing: 0.16em; font-size: 0.72rem; color: var(--lb-muted-clair); }
.char-hero-eyebrow::before { width: 16px; height: 2px; border-radius: 0; }
.char-hero-name {
    font-family: var(--font-display) !important; font-weight: 900 !important;
    font-size: clamp(2.6rem, 6.2vw, 5rem) !important; line-height: 0.88 !important;
    text-transform: uppercase !important; letter-spacing: 0.005em !important;
}
.char-hero-name::after { width: 46px; height: 3px; border-radius: 0; margin-top: 12px; }
.char-hero-variant {
    font-family: var(--font-serif); font-style: italic; font-weight: 400;
    font-size: 1.3rem; color: var(--lb-white); letter-spacing: 0;
}
.char-hero-stats {
    border-radius: 0; background: rgba(var(--bg-rgb), 0.6);
    backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--metal-light);
}
.char-hero-stat-label { font-family: var(--font-ui); letter-spacing: 0.12em; }
.char-hero-bio { border-left-color: var(--doom-green) !important; }
.char-hero-bio-texte { font-size: 0.95rem; line-height: 1.68; }

/* Les grandes grilles (2 350 fiches sur Personnages, 180 affiches au Catalogue) : le navigateur ne met en
   page et ne peint que les cartes proches de l'écran. La taille de réserve évite que la barre de défilement
   saute ; « auto » retient ensuite la taille réelle de chaque carte déjà vue. */
.poster-grid > .poster-card { content-visibility: auto; contain-intrinsic-size: auto 280px; }

/* ── Fenêtres modales ─────────────────────────────────────────────────── */
.modal { background: rgba(var(--bg-rgb), 0.86); }
.modal.open { animation: mv8-voile var(--dur-2) var(--ease-out) both; }
.modal.open .modal-content { animation: mv8-fenetre 520ms var(--ease-out) both; }
.modal-content { border-radius: 0; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.9); border-color: var(--metal-light); }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.02em; font-weight: 800; }
@keyframes mv8-voile { from { opacity: 0; } }
@keyframes mv8-fenetre {
    from { opacity: 0; transform: translateY(26px) scale(0.985); clip-path: inset(0 0 100% 0); }
    to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

/* ── Citations : l'italique de revue ─────────────────────────────────── */
blockquote, .citation-texte, .quote-text, .film-quote-text {
    font-family: var(--font-serif) !important; font-style: italic; font-size: 1.12em; letter-spacing: 0;
}

/* Un échange très long (jusqu'à 1 700 caractères, 21 répliques) donnait sa hauteur à TOUTE la
   bande : sur la fiche de Tony Stark, 173 cartes de quelques lignes s'étiraient sur 700 px de
   vide. Le corps d'une carte est plafonné à une quinzaine de lignes et défile au-delà. */
.film-quote-card .film-quote {
    max-height: 290px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--lb-border) transparent;
}

/* ══════════════════════════════════════════════════════════════════════
   MOUVEMENT
   ══════════════════════════════════════════════════════════════════════ */

/* ── Le rideau : chargement, sortie et arrivée de page ───────────────── */
.mv-curtain {
    position: fixed; inset: 0; z-index: 10000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-dark); overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);   /* replié en haut, au repos */
    contain: strict;
}
.mv-curtain.is-covering { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); pointer-events: auto; visibility: visible; }
.mv-curtain.is-revealing { animation: mv8-rideau-sortie 820ms var(--ease-in-out) both; pointer-events: none; }
.mv-curtain.is-entering  { animation: mv8-rideau-entree 520ms var(--ease-in-out) both; pointer-events: auto; }
/* v9 : un rideau terminé sort du rendu. Caché seulement, il gardait quatre nappes floues animées à l'infini (audit performance). */
.mv-curtain.is-done { display: none; }
@keyframes mv8-rideau-sortie {
    0%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    55%  { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 -14%); }
}
@keyframes mv8-rideau-entree {
    0%   { clip-path: polygon(0 114%, 100% 100%, 100% 100%, 0 100%); }
    50%  { clip-path: polygon(0 40%, 100% 64%, 100% 100%, 0 100%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
/* Filet d'accent qui court sur le bord du rideau pendant qu'il passe */
.mv-curtain::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--doom-green);
    transform-origin: left; transform: scaleX(0);
}
.mv-curtain.is-covering:not(.is-revealing)::after { animation: mv8-filet 2.6s var(--ease-out) forwards; }
.mv-curtain.is-ready::after { animation: none; transform: scaleX(1); transition: transform 240ms var(--ease-out); }
@keyframes mv8-filet { from { transform: scaleX(0); } to { transform: scaleX(0.82); } }

.mv-curtain-centre { position: relative; z-index: 2; text-align: center; transition: opacity 240ms, transform 520ms var(--ease-in-out); }
.mv-curtain.is-revealing .mv-curtain-centre { opacity: 0; transform: translateY(-40px); }
.mv-curtain-mot {
    position: relative; display: inline-block;
    font-family: var(--font-display); font-weight: 900; line-height: 0.85;
    font-size: clamp(3.4rem, 12vw, 9.5rem); letter-spacing: 0.01em;
}
.mv-curtain-mot-fond { color: transparent; -webkit-text-stroke: 1px var(--metal-light); }
/* Le remplissage monte avec le chargement. Deux translations opposées plutôt qu'un
   clip-path : elles tournent sur le compositeur, donc même pendant que le navigateur
   analyse les sept mégaoctets d'events.js. */
.mv-curtain-mot-plein {
    position: absolute; inset: 0; overflow: hidden; color: var(--lb-white);
    transform: translateY(100%);
    animation: mv8-monte 2.6s var(--ease-out) forwards;
}
.mv-curtain-mot-plein::before {
    content: 'CHRONOVERSE'; position: absolute; inset: 0; color: var(--lb-white);
    transform: translateY(-100%);
    animation: mv8-monte-contre 2.6s var(--ease-out) forwards;
}
.mv-curtain-mot-plein { color: transparent; }
@keyframes mv8-monte       { to { transform: translateY(16%); } }
@keyframes mv8-monte-contre { to { transform: translateY(-16%); } }
.mv-curtain.is-ready .mv-curtain-mot-plein,
.mv-curtain.is-ready .mv-curtain-mot-plein::before { animation: none; transform: none; transition: transform 260ms var(--ease-out); }
.mv-curtain-page {
    margin-top: 18px; font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem;
    letter-spacing: 0.32em; text-transform: uppercase; color: var(--lb-muted);
    min-height: 1em;
}

/* Vapeur du rideau : quatre nappes floues, animées en transform seulement. */
.mv-curtain-vapeur { position: absolute; inset: -10%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 400ms; }
:root[data-theme="doom"] .mv-curtain-vapeur { opacity: 1; }
.mv-curtain-vapeur i {
    position: absolute; width: 60vmax; height: 40vmax; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--vapeur-1), 0.20), rgba(var(--vapeur-2), 0.10) 45%, transparent 75%);
    filter: blur(30px); will-change: transform;
}
.mv-curtain-vapeur i:nth-child(1) { left: -10%; bottom: -20%; animation: mv8-nappe-a 7s ease-in-out infinite alternate; }
.mv-curtain-vapeur i:nth-child(2) { right: -15%; bottom: -10%; animation: mv8-nappe-b 9s ease-in-out infinite alternate; }
.mv-curtain-vapeur i:nth-child(3) { left: 25%; bottom: -35%; width: 50vmax; animation: mv8-nappe-a 11s ease-in-out infinite alternate-reverse; }
.mv-curtain-vapeur i:nth-child(4) { left: 30%; top: 20%; width: 34vmax; height: 24vmax; opacity: 0.6; animation: mv8-nappe-b 8s ease-in-out infinite alternate; }
@keyframes mv8-nappe-a { from { transform: translate3d(0, 6%, 0) scale(1); } to { transform: translate3d(8%, -14%, 0) scale(1.18); } }
@keyframes mv8-nappe-b { from { transform: translate3d(0, 0, 0) scale(1.1) rotate(0deg); } to { transform: translate3d(-10%, -18%, 0) scale(0.92) rotate(12deg); } }

/* Le portail : le portrait cliqué traverse le rideau et atterrit dans la fiche. */
.mv-portail {
    position: fixed; z-index: 3; display: none; object-fit: cover; object-position: top;
    border: 1px solid var(--metal-light); background: var(--bg-elevated);
    will-change: transform, left, top, width, height;
}
.mv-curtain.avec-portail .mv-portail[src] { display: block; }
.mv-curtain.avec-portail .mv-curtain-mot { display: none; }
.mv-curtain.avec-portail .mv-curtain-centre { position: absolute; left: 0; right: 0; bottom: max(6vh, calc(19vh - 60px)); }
.mv-curtain.avec-portail .mv-curtain-page { color: var(--lb-white); font-size: 0.86rem; }
.mv-curtain.avec-portail .mv-curtain-vapeur i { background: radial-gradient(closest-side, rgba(var(--vapeur-1), 0.28), rgba(var(--vapeur-2), 0.12) 45%, transparent 75%); }
:root[data-theme="doom"] .mv-curtain.avec-portail .mv-curtain-vapeur i:nth-child(4) { left: 32%; top: 18%; width: 38vmax; height: 44vmax; opacity: 1; }
.mv-curtain.is-fondu-entree { animation: mv8-fondu 360ms var(--ease-out) both; clip-path: none; }
.mv-curtain.is-fondu-sortie { animation: mv8-fondu 420ms var(--ease-in-out) reverse both; clip-path: none; pointer-events: none; }
.mv-curtain.avec-portail { clip-path: none; }
@keyframes mv8-fondu { from { opacity: 0; } to { opacity: 1; } }
.mv-portail.en-vol { transition: left 560ms var(--ease-in-out), top 560ms var(--ease-in-out), width 560ms var(--ease-in-out), height 560ms var(--ease-in-out), opacity 260ms; }

/* Filet de secours : si v8-motion.js ne se charge pas, le rideau s'efface seul au bout
   de neuf secondes plutôt que de condamner la page. Les états animés plus bas passent
   devant (même spécificité, déclarés après). */
.mv-curtain.is-covering { animation: mv8-secours 1ms 9s both; }
@keyframes mv8-secours { to { visibility: hidden; pointer-events: none; } }

/* ── L'aura de Fatalis ────────────────────────────────────────────────── */
#mv8-aura {
    position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
    mix-blend-mode: screen; opacity: 0; transition: opacity 900ms;
}
:root[data-theme="doom"] #mv8-aura.actif { opacity: 0.9; }
/* La brume est un FOND : peinte sous le contenu, elle ne se voit que là où le fond de page
   l'est. style.css donnait à <main> le même noir opaque que <body>, qui la masquait. */
main, .page-main { background-color: transparent; }

/* Passage d'une page à l'autre : le fondu natif du navigateur (Chrome, Edge, Safari 18),
   sans écran de chargement. La barre de navigation ne bouge pas, seul le contenu change. */
@view-transition { navigation: auto; }
.lb-nav { view-transition-name: mv8-nav; }
::view-transition-old(root) { animation: mv8-vt-sortie 200ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: mv8-vt-entree 420ms var(--ease-out) both; }
@keyframes mv8-vt-sortie { to { opacity: 0; transform: translateY(-8px); } }
@keyframes mv8-vt-entree { from { opacity: 0; transform: translateY(14px); } }

/* Bascule de thème : le nouveau thème s'ouvre en cercle depuis le commutateur. */
html.mv8-bascule::view-transition-old(root) { animation: none; }
html.mv8-bascule::view-transition-new(root) { animation: mv8-cercle 700ms var(--ease-in-out); }
html.mv8-bascule .lb-nav { view-transition-name: none; }
@keyframes mv8-cercle { from { clip-path: circle(0 at var(--mv8-x, 90%) var(--mv8-y, 30px)); } to { clip-path: circle(150vmax at var(--mv8-x, 90%) var(--mv8-y, 30px)); } }

/* ══════════════════════════════════════════════════════════════════════
   ACCUEIL
   Quatre sections, un seul gabarit : numéro « 0N / 04 », titre d'affiche,
   sous-titre en italique, puis une rangée de cases jointives et OPAQUES.
   Chaque section joue son entrée quand elle arrive à l'écran (classe
   .acc-actif posée par v8-accueil.js), et la rejoue si l'on y revient.
   Les états de départ ne s'appliquent que sous html.acc-js : sans script,
   tout est visible.
   ══════════════════════════════════════════════════════════════════════ */
html:has(#snap-main) {
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(var(--accent-rgb), 0.08), transparent 70%),
        linear-gradient(var(--bg-dark), var(--bg-dark)) !important;
    background-size: auto !important; background-color: var(--bg-dark) !important;
}
#vignette { background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 40%, rgba(0,0,0,0.5) 100%) !important; }

.acc-section { padding: 0 clamp(20px, 5vw, 64px) !important; gap: 0 !important; }
.acc-contenu, .acc-heros-cadre { width: 100%; max-width: 1180px; }

/* ── En-tête commun ── */
.acc-num {
    display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.14em; color: var(--accent-texte);
}
.acc-num i { font-style: normal; color: var(--lb-muted); }
.acc-tete { padding-bottom: 22px; margin-bottom: 0; position: relative; }
.acc-tete::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--metal-light);
    transform-origin: left;
}
.acc-titre {
    margin: 22px 0 8px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.86; letter-spacing: 0.005em; color: var(--lb-white);
}
/* Le masque laisse de la place aux accents des capitales (À, É) au-dessus de la ligne. */
.acc-ligne { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0 0.04em; margin-top: -0.16em; }
.acc-ligne > span { display: inline-block; }
.acc-titre .acc-ligne:last-child > span { color: var(--lb-muted-clair); }
.acc-sous {
    font-family: var(--font-serif) !important; font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.4rem) !important;
    letter-spacing: 0 !important; color: var(--lb-muted-clair) !important; margin: 0;
}

/* ── Cases : une seule famille, jointives, fond plein ── */
.acc-grille { display: grid; border: 1px solid var(--lb-border); border-top: 0; background: var(--bg-card); }
.acc-grille-3 { grid-template-columns: repeat(3, 1fr); }
.acc-grille-4 { grid-template-columns: repeat(4, 1fr); }
.acc-case {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
    min-height: clamp(200px, 30vh, 290px); padding: 24px 24px 26px;
    background: var(--bg-card); border-left: 1px solid var(--lb-border);
    color: var(--lb-text); text-decoration: none;
}
.acc-case:first-child { border-left: 0; }
.acc-case::after {           /* filet d'accent sur le bord haut, tracé à l'entrée */
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--doom-green);
    transform: scaleX(0); transform-origin: left;
}
.acc-case-num { position: absolute; top: 20px; left: 24px; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lb-muted); }
.acc-case-titre { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 0.9; color: var(--lb-white); }
.acc-case-texte { font-size: 0.9rem; line-height: 1.55; color: var(--lb-text); max-width: 34ch; }
.acc-case-texte strong { color: var(--lb-white); font-weight: 600; }
.acc-case-fleche { position: absolute; top: 14px; right: 22px; font-size: 1.5rem; color: var(--lb-white); transition: transform var(--dur-2) var(--ease-out); }
.acc-chiffre {
    font-family: var(--font-display); font-weight: 900; color: var(--lb-white);
    font-size: clamp(3.4rem, 6.5vw, 6rem); line-height: 0.82; font-variant-numeric: tabular-nums;
}
.acc-case-chiffre .acc-case-texte { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Survol : un aplat sombre monte du bas, le filet se trace, la flèche avance. */
.acc-case-lien::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg-elevated);
    transform: translateY(101%); transition: transform 480ms var(--ease-out);
}
.acc-case-lien:hover::before { transform: none; }
.acc-case-lien:hover::after { transform: scaleX(1); transition: transform 480ms var(--ease-out); }
.acc-case-lien:hover .acc-case-fleche { transform: translateX(6px); color: var(--accent-texte); }

/* ── Héros ── */
.acc-heros { position: relative; }
.acc-heros-haut {
    display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
    padding-bottom: 12px; position: relative;
}
.acc-heros-haut::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--metal-light); transform-origin: left; }
.acc-heros-tag { font-family: var(--font-ui); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lb-muted-clair); }
.acc-titre-geant {
    margin: 2.5vh 0 2vh !important; font-family: var(--font-display) !important; font-weight: 900 !important;
    font-size: clamp(4.4rem, 16.5vw, 15rem) !important; line-height: 0.8 !important; letter-spacing: 0 !important;
    color: var(--lb-white) !important; text-shadow: none !important; text-transform: uppercase;
    white-space: nowrap; will-change: transform;
}
.acc-titre-geant .acc-ligne { padding-bottom: 0.02em; }
.acc-titre-geant .acc-l { display: inline-block; color: var(--lb-white); }
.acc-titre-geant .acc-l-accent { color: var(--accent-texte); }
.acc-heros .acc-sous { max-width: 44ch; margin-bottom: 26px; }
.acc-recherche { max-width: 660px !important; margin: 0 !important; animation: none; }
.home-search-input {
    border-radius: 0 !important; background: var(--bg-card) !important;
    border: 1px solid var(--metal-light) !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.home-search-input:focus { border-color: var(--doom-green) !important; box-shadow: none !important; }
.home-search-btn { border-radius: 0 !important; right: 6px !important; text-transform: uppercase; }

/* Bandeau des œuvres, en bas du héros */
.acc-defile {
    position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; white-space: nowrap;
    border-top: 1px solid var(--lb-border); background: var(--bg-dark); padding: 11px 0;
}
.acc-defile-piste {
    display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--lb-muted);
    animation: acc-defile 140s linear infinite;
}
.acc-defile-piste span { margin: 0 18px; }
.acc-defile-piste b { color: var(--accent-texte); font-weight: 700; }
.acc-defile:hover .acc-defile-piste { animation-play-state: paused; }
@keyframes acc-defile { to { transform: translateX(-50%); } }
.acc-suite { bottom: 58px !important; font-family: var(--font-ui) !important; letter-spacing: 0.16em !important; }

#section-dots .sdot { border-radius: 0 !important; width: 3px !important; }

/* ── Chorégraphie d'entrée (seulement avec le script) ── */
html.acc-js .acc-section .acc-num,
html.acc-js .acc-section .acc-heros-tag,
html.acc-js .acc-section .acc-sous,
html.acc-js .acc-section .acc-recherche,
html.acc-js .acc-section .acc-defile,
html.acc-js .acc-section .acc-case { opacity: 0; }
html.acc-js .acc-section .acc-ligne > span,
html.acc-js .acc-section .acc-l { transform: translateY(108%); }
html.acc-js .acc-section .acc-tete::after,
html.acc-js .acc-section .acc-heros-haut::after { transform: scaleX(0); }

.acc-actif .acc-num, .acc-actif .acc-heros-tag { animation: acc-fondu 600ms var(--ease-out) both; }
.acc-actif .acc-tete::after, .acc-actif .acc-heros-haut::after { animation: acc-trait 1100ms var(--ease-in-out) both; }
.acc-actif .acc-ligne > span { animation: acc-monte 900ms var(--ease-out) both; }
.acc-actif .acc-ligne:nth-child(2) > span { animation-delay: 110ms; }
.acc-actif .acc-sous { animation: acc-glisse 800ms 320ms var(--ease-out) both; }
.acc-actif .acc-case { animation: acc-case 850ms var(--ease-out) both; animation-delay: calc(380ms + var(--i, 0) * 110ms); }
.acc-actif .acc-case::after { animation: acc-trait 900ms var(--ease-in-out) both; animation-delay: calc(560ms + var(--i, 0) * 110ms); }
.acc-case:nth-child(1) { --i: 0; } .acc-case:nth-child(2) { --i: 1; } .acc-case:nth-child(3) { --i: 2; } .acc-case:nth-child(4) { --i: 3; }

/* Héros : les neuf lettres montent l'une après l'autre, puis tout le reste suit. */
.acc-actif .acc-l { animation: acc-monte 1000ms var(--ease-out) both; animation-delay: calc(120ms + var(--l, 0) * 55ms); }
.acc-l:nth-child(1) { --l: 0; } .acc-l:nth-child(2) { --l: 1; } .acc-l:nth-child(3) { --l: 2; }
.acc-l:nth-child(4) { --l: 3; } .acc-l:nth-child(5) { --l: 4; } .acc-l:nth-child(6) { --l: 5; }
.acc-l:nth-child(7) { --l: 6; } .acc-l:nth-child(8) { --l: 7; } .acc-l:nth-child(9) { --l: 8; }
.acc-heros.acc-actif .acc-sous { animation-delay: 650ms; }
/* La découpe n'est tenue que pendant l'entrée (backwards) : laissée en place, elle masquait la liste de suggestions. */
.acc-heros.acc-actif .acc-recherche { animation: acc-fondu 900ms 800ms var(--ease-out) both, acc-recherche 900ms 800ms var(--ease-out) backwards; }
.acc-heros.acc-actif .acc-defile { animation: acc-fondu 900ms 1100ms var(--ease-out) both; }

@keyframes acc-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes acc-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes acc-monte { from { transform: translateY(108%); } to { transform: none; } }
@keyframes acc-glisse { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes acc-case { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes acc-recherche { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 860px) {
    .acc-grille-3, .acc-grille-4 { grid-template-columns: 1fr 1fr; }
    .acc-grille-3 .acc-case:last-child { grid-column: 1 / -1; }
    .acc-case { min-height: 150px; border-top: 1px solid var(--lb-border); }
    .acc-heros-tag { display: none; }
}
@media (max-width: 520px) {
    .acc-grille-3 { grid-template-columns: 1fr; }
    .acc-case { border-left: 0; min-height: 0; padding-top: 48px; }
    .acc-chiffre { font-size: 3rem; }
    .acc-titre-geant { font-size: 4.2rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    html.acc-js .acc-section * { animation: none !important; opacity: 1 !important; transform: none !important; }
    .acc-defile-piste { animation: none !important; }
}

/* Le logo est un PNG vert : en thème Marvel, on le fait tourner sur la roue des teintes. */
:root[data-theme="red"] img[src*="website_logo"] { filter: hue-rotate(205deg) saturate(1.25) brightness(1.05); }


/* ══════════════════════════════════════════════════════════════════════
   Accessibilité : sans mouvement, tout est en place d'emblée.
   ══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
    .mv-curtain-vapeur i, .mv-curtain-mot-plein, .mv-curtain-mot-plein::before { animation: none !important; }
    #mv8-aura { display: none; }
}

/* Pas de menu replié : en dessous de 1000 px les onglets défilent dans la barre, au lieu
   d'élargir toute la page (la v7 débordait à 936 px sur un téléphone). */
@media (max-width: 1100px) {
    .lb-nav-links {
        flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
                mask-image: linear-gradient(to right, #000 85%, transparent);
    }
    .lb-nav-links::-webkit-scrollbar { display: none; }
    .lb-nav-links li { flex-shrink: 0; }
    .lb-logo-text { font-size: 1.25rem; }
    .lb-logo { flex-shrink: 0; }
}
/* Sous 1000 px (tablette et téléphone), la barre tient sur deux rangées : le nom du site, la
   recherche et le commutateur en haut, les onglets en dessous sur toute la largeur. Les huit
   onglets, le logo, le champ et le commutateur demandent 1 000 px côte à côte : en dessous,
   sur une seule rangée, il ne restait que quelques onglets lisibles (un seul sur un téléphone)
   et rien n'indiquait qu'il y en avait d'autres. Tout ce qui se cale sous la barre lit
   --nav-h, qui suit. */
@media (max-width: 1100px) {
    :root { --nav-h: 94px; }
    .lb-nav { flex-wrap: wrap; align-content: flex-start; padding: 0 14px; column-gap: 12px; row-gap: 0; }
    .lb-logo { height: 50px; }
    .lb-nav-search { height: 50px; display: flex; align-items: center; }
    .mv8-theme { margin-left: auto; margin-top: 12px; }
    .mv8-loupe + .mv8-theme { margin-left: 0; }
    .lb-nav-links {
        order: 5; flex: 0 0 calc(100% + 28px); height: 44px; margin: 0 -14px; padding: 0 5px;
        border-top: 1px solid var(--lb-border);
        -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
                mask-image: linear-gradient(to right, #000 92%, transparent);
    }
    .lb-nav-links a { padding: 0 10px; font-size: 0.76rem; }
    .hero-content { padding: 28px 18px; }
    .mv8-theme span { padding: 0 6px; }
}
/* La consigne de la frise parle de survol : au doigt il n'y en a pas, et la phrase longue
   repoussait les périodes hors de l'écran. */
.tl-aide-tactile { display: none; }
@media (hover: none), (max-width: 720px) {
    .tl-aide-souris { display: none; }
    .tl-aide-tactile { display: inline; }
}
/* La loupe (injectée par v8-motion.js) remplace le champ de recherche de la barre quand il
   n'a plus la place d'exister : elle mène à la page de recherche. */
.mv8-loupe { display: none; }
@media (max-width: 720px) {
    .lb-nav-search { display: none; }
    .mv8-loupe {
        display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
        width: 34px; height: 26px; margin-left: auto; margin-top: 12px;
        border: 1px solid var(--metal-light); color: var(--lb-muted);
    }
    .mv8-loupe:hover, .mv8-loupe:focus-visible { color: var(--lb-white); border-color: var(--lb-muted); }
}

/* ── Commun à toutes les pages (mv-commun.js) ─────────────────────────────── */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Lien d'évitement : invisible tant qu'on n'y arrive pas au clavier. */
.mv-evitement { position: fixed; left: 16px; top: -80px; z-index: 10001; padding: 10px 16px; background: var(--doom-green); color: var(--on-accent, #000); font-family: var(--font-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.mv-evitement:focus { top: 8px; }

/* Pied de page commun. */
.mv-pied { position: relative; z-index: 2; border-top: 1px solid var(--lb-border); background: var(--bg-dark); padding: 28px 24px 34px; text-align: center; scroll-snap-align: end; }
.mv-pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 14px; }
.mv-pied-liens a { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lb-text); text-decoration: none; }
.mv-pied-liens a:hover, .mv-pied-liens a:focus-visible { color: var(--accent-texte); }
.mv-pied-texte { max-width: 80ch; margin: 6px auto 0; font-size: .76rem; line-height: 1.6; color: var(--lb-muted-clair); }
.mv-pied-tmdb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.mv-pied-tmdb img { display: block; height: 28px; width: auto; } /* logo TMDB empilé (21/11/2026) */

/* Cartes devenues de vrais liens (catalogue, recherche) : elles gardent l'allure des anciens blocs. */
a.poster-card, a.list-row, a.jeu-card, a.creator-card { color: inherit; text-decoration: none; }
a.jeu-card { display: block; }



/* ══════════════════════════════════════════════════════════════════════════
   LA TABLE LUMINEUSE (v9, 19/10/2026)
   Seconde direction, après le refus de « L'Almanach » (BD imprimée, trop proche d'un site Marvel
   existant). La salle de montage du multivers : une table claire où l'on pose des photogrammes, des
   îlots de nuit pour projeter (héros, générique, fenêtres), le vocabulaire du cinéma (photogramme,
   timecode, pellicule, sous-titre, carton). Direction complète : .claude/refonte/DIRECTION.md.
   Les classes .mv9-* de la première direction sont gardées (les pages s'en servent) et redessinées.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --rayon-carte: 4px;
    --rayon-bouton: 999px;
    --ombre-table: 0 0 0 0 transparent;
    --ombre-levee: 0 2px 0 rgba(20, 20, 18, 0.05), 0 22px 40px -18px rgba(20, 20, 18, 0.38);
    --trait: 1px solid var(--lb-border);
    /* Perforations d'une pellicule 35 mm, en motif répété : à poser sur un bord (voir .mv9-pellicule). */
    --perfos: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.92) 9px 19px, transparent 19px 28px);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body { background-color: var(--bg-dark); color: var(--lb-text); font-size: 15.5px; letter-spacing: 0; }
body::after { opacity: 0.035; mix-blend-mode: multiply; }
p { color: var(--lb-text); }
::selection { background: var(--doom-green); color: var(--on-accent); }
h1, .hero-title, .char-hero-name, .mv9-titre-page { text-shadow: none !important; letter-spacing: -0.005em; }
/* La vapeur de Fatalis est une fumée sur fond noir : elle n'a plus de sens sur la table claire. */
#mv8-aura { display: none !important; }

/* ── Barre de navigation : un bandeau de table, net ───────────────────── */
.lb-nav {
    background: rgba(var(--bg-rgb), 0.94); border-bottom: 1px solid var(--lb-border);
    backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.lb-logo-text { color: var(--lb-white); font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.lb-nav-links a { font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: none; color: var(--lb-muted); }
.lb-nav-links a:hover, .lb-nav-links a.active { color: var(--lb-white); }
.mv8-nav-encre, .lb-nav-links a.active::after { height: 2px; bottom: -1px; border-radius: 2px; }
.lb-nav-search input { border-radius: var(--rayon-bouton) !important; border: 1px solid var(--lb-border) !important; background: var(--bg-card) !important; padding-top: 7px !important; padding-bottom: 7px !important; }
.lb-nav-search input:focus { border-color: var(--doom-green) !important; }
.mv8-theme { border-radius: var(--rayon-bouton); border-color: var(--lb-border); color: var(--lb-muted); }
.mv8-theme::before { border-radius: var(--rayon-bouton); }
/* Le numéro de la page devient un repère de bobine, en mono. */
.mv9-numero {
    transform: none; box-shadow: none; background: transparent; color: var(--lb-muted);
    border: 1px solid var(--lb-border); border-radius: 3px; height: 24px; padding: 0 6px; margin-left: -8px;
    flex-direction: row; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.04em;
}
.mv9-numero b { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; color: var(--lb-white); }

/* ── En-tête de page ─────────────────────────────────────────────────── */
.mv9-tete {
    background: none; border-bottom: 1px solid var(--lb-border);
    padding: clamp(36px, 7vw, 88px) clamp(16px, 4vw, 56px) clamp(24px, 3vw, 36px);
}
.mv9-tete-sur { font-family: var(--font-mono); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lb-muted); }
.mv9-tete-sur::before { width: 22px; height: 2px; background: var(--doom-green); transform: none; border-radius: 2px; }
.mv9-titre-page { font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.84; color: var(--lb-white); margin-top: 14px; }

/* ── Le récitatif devient un sous-titre de film ───────────────────────── */
.mv9-recit {
    display: block; padding: 0; background: none; border: 0; box-shadow: none; color: var(--lb-muted-clair);
    font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.35;
    max-width: 52ch;
}
.mv9-recit b, .mv9-recit strong { font-family: var(--font-mono); font-style: normal; font-weight: 500; font-size: 0.7em; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lb-white); }
.mv9-recit a { color: var(--accent-texte); text-decoration-thickness: 1px; }
.mv9-recit :focus-visible, .mv9-recit:focus-visible { outline-color: var(--accent-texte); box-shadow: none; }

/* ── Sections : la case devient une feuille posée sur la table ─────────── */
.details-info-section {
    background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-table); padding: 26px 26px 24px; background-image: none;
}
.details-info-section:hover { border-color: var(--lb-border); }
.section-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: 0; line-height: 0.95; color: var(--lb-white);
    border-bottom: var(--trait); padding-bottom: 14px; align-items: baseline;
}
/* Le repère de montage : numéro de plan en mono, avant le titre, dans le flux. */
.section-title::before {
    content: counter(rubrique, decimal-leading-zero) ' \2014' !important;
    position: static; transform: none; box-shadow: none; background: none; padding: 0; margin: 0 4px 0 0;
    font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.02em;
    color: var(--accent-texte); align-self: center;
}
.toggle-btn { border: var(--trait); border-radius: 50%; color: var(--lb-muted); background: var(--bg-card); }
.toggle-btn:hover { border-color: var(--lb-white); color: var(--lb-white); }

/* ── Boutons et pastilles : arrondis, nets, l'ombre seulement au survol ── */
.watch-btn, .home-search-btn, .mv9-bouton {
    border: 0 !important; border-radius: var(--rayon-bouton) !important; box-shadow: none !important;
    transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2) !important;
}
.watch-btn:hover, .home-search-btn:hover, .mv9-bouton:hover { transform: translateY(-2px) !important; box-shadow: var(--ombre-levee) !important; }
.watch-btn:active, .home-search-btn:active, .mv9-bouton:active { transform: translateY(1px) !important; box-shadow: none !important; }
.watch-btn::before, .btn-more::before, .char-collect-btn::before, .hero-back-btn::before { display: none; }
.mv9-bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
    background: var(--doom-green); color: var(--on-accent);
    padding: 12px 22px; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem;
}
.mv9-bouton::after { content: '\2192'; transition: transform var(--dur-2) var(--ease-out); }
.mv9-bouton:hover::after { transform: translateX(4px); }
.mv9-bouton-papier { background: var(--lb-white); color: var(--bg-dark); }
.btn-more, .hero-back-btn, .char-collect-btn { border-width: 1px !important; border-radius: var(--rayon-bouton) !important; }
.pill { border-width: 1px; border-radius: var(--rayon-bouton); text-transform: none; letter-spacing: 0.01em; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; }
.pill.active { background: var(--lb-white); border-color: var(--lb-white); color: var(--bg-dark); box-shadow: none; }
.lb-filterbar { background: rgba(var(--bg-rgb), 0.94); border-bottom: var(--trait); }
.lb-sort select, select { border-radius: 8px !important; }
.view-btn { border-radius: 8px; }
.count-badge { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }

/* ── Le photogramme : une image posée dans son passe-partout ──────────── */
.poster-card, .prepa-card, .film-history-card, .jeu-card, .creator-card {
    border: var(--trait) !important; border-radius: var(--rayon-carte) !important; background: var(--bg-card);
    box-shadow: var(--ombre-table);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out) !important;
}
.poster-card:hover, .prepa-card:hover, .film-history-card:hover, .jeu-card:hover, .creator-card:hover {
    transform: translateY(-5px) !important; box-shadow: var(--ombre-levee) !important; border-color: var(--lb-border) !important;
}
.poster-card:active, .prepa-card:active, .film-history-card:active { transform: translateY(-1px) !important; box-shadow: var(--ombre-table) !important; }
.poster-img-wrap { border-radius: 2px; overflow: hidden; }
.poster-card .poster-img-wrap { margin: 6px 6px 0; width: auto; }   /* width:100% + marges débordait de 12 px : la carte (overflow hidden) rognait la droite des affiches */
.poster-img-wrap::after, .film-history-media::after, .mv9-trame-survol::after { display: none; }
.poster-card:hover .poster-img-wrap img { transform: scale(1.035); }
.poster-caption { border-top: 0; }
.poster-title { font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; color: var(--lb-white); letter-spacing: 0; }
@media (hover: none) {
    .poster-card:hover, .prepa-card:hover, .film-history-card:hover, .jeu-card:hover, .creator-card:hover { transform: none !important; box-shadow: var(--ombre-table) !important; }
}

/* La bande de pellicule : deux rangées de perforations sur une bande de nuit. */
.mv9-pellicule {
    position: relative; background: #0b0c0b; padding: 18px 0;
}
.mv9-pellicule::before, .mv9-pellicule::after {
    content: ''; position: absolute; left: 0; right: 0; height: 8px; opacity: 0.85;
    background-image: var(--perfos); background-size: 28px 8px; pointer-events: none;
}
.mv9-pellicule::before { top: 5px; }
.mv9-pellicule::after { bottom: 5px; }

/* ── Héros des fiches : des îlots de nuit ─────────────────────────────── */
.hero-header::after, .char-hero-banner::before { display: none; }
.hero-header, .char-hero-wrap { background-color: var(--bg-dark); }
.hero-title { font-size: clamp(3rem, 9vw, 7.4rem) !important; line-height: 0.82 !important; }

/* ── Les répliques : sous-titrées sur un petit écran ──────────────────── */
.film-quote-card { overflow: visible !important; background: transparent !important; border: 0 !important; }
.film-quote-card-head { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--lb-muted); padding: 2px 2px 8px; background: none; border: 0; }
.film-quote-card .film-quote {
    margin: 0; padding: 22px 18px 18px; border: 0; border-radius: var(--rayon-carte);
    background: #0b0c0b; color: #f4f2ec; box-shadow: var(--ombre-table); text-align: center;
}
.film-quote-card .film-quote::after { display: none; }
.film-quote-card .film-quote-line { color: #f4f2ec; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.4; }
.film-quote-card .film-quote-who { color: #e8d36a; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.film-quote-card .film-quote-who-link:hover { color: #fff1a1; border-bottom-color: #fff1a1; }
.film-quote-card .film-quote-stage { color: #a3a8a1; }

/* ── Le carton (états vides, erreurs, page introuvable) ───────────────── */
.mv9-etat { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.mv9-sfx {
    transform: none; text-shadow: none; -webkit-text-stroke: 0; color: #f4f2ec;
    background: #0b0c0b; padding: 18px 28px 14px; border-radius: var(--rayon-carte);
    font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: 0.04em;
    outline: 1px solid rgba(244, 242, 236, 0.35); outline-offset: -8px;
}
.mv9-etat-titre { color: var(--lb-white); }

/* ── Chargement : un compteur de pellicule qui bat ────────────────────── */
.poster-img-wrap .poster-skeleton::after, .char-hero-skel::after, .mv9-charge {
    background: var(--bg-elevated) !important; background-image: none !important;
    -webkit-mask-image: none; mask-image: none; animation: mv9-battement 1.2s steps(2, jump-none) infinite !important;
}
@keyframes mv9-battement { 50% { opacity: 0.55; } }

/* ── Fenêtres : un écran de projection ───────────────────────────────── */
.modal { background: rgba(8, 9, 8, 0.82); }
.modal-content { border: 1px solid #333833; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); background: #141614; color: #d6d9d2; }
@keyframes mv8-fenetre {
    from { opacity: 0; transform: translateY(24px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

/* ── Pied de page : le générique de fin ──────────────────────────────── */
.mv-pied {
    display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 20px 48px; align-items: start; text-align: left;
    padding: 48px clamp(16px, 4vw, 56px) 44px; border-top: var(--trait); background: var(--bg-elevated); background-image: none;
}
.mv-pied-marque { display: flex; flex-direction: column; gap: 10px; }
.mv-pied-mot { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 0.9; text-transform: uppercase; color: var(--lb-white); text-shadow: none; }
.mv-pied-marque .mv9-recit { font-size: 1.05rem; }
.mv-pied-corps { display: flex; flex-direction: column; gap: 10px; }
.mv-pied-liens { justify-content: flex-start; margin-bottom: 4px; }
.mv-pied-liens a { font-family: var(--font-ui); text-transform: none; letter-spacing: 0.01em; font-weight: 600; font-size: 0.88rem; color: var(--lb-white); }
.mv-pied-texte { margin: 0; max-width: 78ch; color: var(--lb-muted); font-size: 0.8rem; }
.mv-pied-tmdb { justify-content: flex-start; }
.mv-pied-tmdb-lien { display: inline-flex; align-items: center; min-height: 24px; }
.mv-pied-tmdb-lien span { font-family: var(--font-mono); font-weight: 500; color: var(--lb-white); border: var(--trait); border-radius: 3px; padding: 2px 8px; }
@media (max-width: 760px) { .mv-pied { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════════════
   MOUVEMENT (la table lumineuse)
   Les classes posées par v9-motion.js gardent leur nom : .mv9-tamponne joue maintenant un
   TRAVELLING (l'élément glisse dans un masque), .mv9-coupe un VOLET (dévoilement de gauche à droite).
   ══════════════════════════════════════════════════════════════════════════ */
html.mv9-js .mv9-a-tamponner:not(.mv9-tamponne) { opacity: 0; }
.mv9-tamponne { animation: mv9-travelling 760ms var(--ease-out) both; }
/* Sans clip-path : une découpe rognait les accents des capitales (É, À) au-dessus de la ligne. */
@keyframes mv9-travelling {
    from { opacity: 0; transform: translateY(0.45em); }
    to   { opacity: 1; transform: none; }
}
.mv9-sfx.mv9-tamponne { animation: mv9-carton 900ms steps(1, end) both; }
@keyframes mv9-carton { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: 0.2; } 26%, 100% { opacity: 1; } }
html.mv9-js .mv9-a-couper:not(.mv9-coupe) { clip-path: inset(0 100% 0 0); }
.mv9-coupe { animation: mv9-volet 820ms var(--ease-coupe) backwards; }
@keyframes mv9-volet { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Entre deux pages : l'avance de pellicule. L'ancienne image monte et s'efface, la nouvelle arrive
   d'un cran plus bas. La barre de navigation ne bouge pas. */
::view-transition-old(root) { animation: mv9-avance-sortie 300ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: mv9-avance-entree 560ms var(--ease-out) both; }
/* L'en-tête de page ne suit pas l'avance de pellicule (demande du 03/11/2026 : « ça gâche tout et ça défluidifie ») :
   comme la barre, il a son propre calque, et la nouvelle page le pose d'un coup, sans glissement ni fondu. Une seule
   .mv9-tete ou .mr-tete par page, sinon le navigateur annule toute la transition. Seul cas animé : quitter une page
   à en-tête pour une page qui n'en a pas (fiche d'œuvre, accueil), où l'ancien s'efface avec le reste. */
.mv9-tete, .mr-tete { view-transition-name: mv-tete; }
::view-transition-group(mv-tete), ::view-transition-new(mv-tete) { animation: none; }
::view-transition-old(mv-tete) { display: none; }
::view-transition-old(mv-tete):only-child { display: block; animation: mv9-avance-sortie 300ms var(--ease-in-out) both; }
@keyframes mv9-avance-sortie { to { opacity: 0; transform: translateY(-3vh); } }
@keyframes mv9-avance-entree { from { opacity: 0; transform: translateY(5vh); } }

.mv-curtain.is-ready .mv-curtain-mot { animation: none; }

@media (prefers-reduced-motion: reduce) {
    html.mv9-js .mv9-a-tamponner:not(.mv9-tamponne), html.mv9-js .mv9-a-couper:not(.mv9-coupe) { opacity: 1; clip-path: none; }
    .mv9-tamponne, .mv9-coupe { animation: none !important; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ── Le sommaire du téléphone ───────────────────────────────────────── */
.mv9-menu-btn, .mv9-tiroir { display: none; }
@media (max-width: 720px) {
    :root { --nav-h: 56px; }
    .lb-nav { flex-wrap: nowrap; height: var(--nav-h); padding: 0 12px; gap: 10px; }
    .lb-logo { height: auto; }
    .lb-nav > .lb-nav-links, .lb-nav > .mv8-theme, .lb-nav-search { display: none !important; }
    .mv8-loupe { display: inline-flex; width: 44px; height: 44px; margin: 0 0 0 auto; border-radius: 50%; border: var(--trait); color: var(--lb-white); align-items: center; justify-content: center; }
    .mv9-menu-btn {
        display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
        background: var(--lb-white); color: var(--bg-dark); border: 0; border-radius: var(--rayon-bouton); cursor: pointer;
        font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem;
    }
    .mv9-menu-traits { display: inline-flex; flex-direction: column; gap: 3px; width: 14px; }
    .mv9-menu-traits i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1); }
    .mv9-menu-ouvert .mv9-menu-traits i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .mv9-menu-ouvert .mv9-menu-traits i:nth-child(2) { opacity: 0; }
    .mv9-menu-ouvert .mv9-menu-traits i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    .mv9-tiroir:not([hidden]) {
        display: flex; flex-direction: column; justify-content: space-between;
        position: fixed; z-index: 199; left: 0; right: 0; top: var(--nav-h); bottom: 0;
        overflow-y: auto; padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
        background: var(--bg-dark); animation: mv9-volet var(--dur-3) var(--ease-coupe) both;
    }
    .mv9-tiroir.mv9-tiroir-sortie { animation: mv9-volet 240ms var(--ease-coupe) reverse both; }
    .mv9-tiroir ul { list-style: none; display: flex; flex-direction: column; }
    .mv9-tiroir li + li { border-top: var(--trait); }
    .mv9-tiroir a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); text-decoration: none; }
    .mv9-tiroir a.active { color: var(--accent-texte); }
    .mv9-tiroir-n { font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; color: var(--lb-muted); min-width: 3.4em; }
    .mv9-tiroir-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: var(--trait); font-family: var(--font-mono); font-size: 0.75rem; color: var(--lb-muted); }
    .mv9-tiroir .mv8-theme { display: inline-flex; height: 44px; margin: 0; }
    .mv9-tiroir .mv8-theme span { padding: 0 14px; }
}
/* Téléphone : le bouton du sommaire ne garde que son icône (son nom reste lu par les lecteurs d'écran).
   29/11/2026 : avant, ce n'était vrai que sous 380 px ; de 381 à 720 px, le mot « Sommaire » élargissait la barre
   au-delà de l'écran et poussait le bouton de compte hors du bord droit (on n'en voyait qu'un cercle vide). */
@media (max-width: 720px) {
    .mv9-menu-btn { width: 44px; padding: 0; justify-content: center; flex: 0 0 auto; }
    .mv9-menu-btn > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .mv8-loupe { flex: 0 0 auto; }
    /* Le nom du site cède la place plutôt que de pousser les boutons hors de l'écran. */
    .lb-logo { min-width: 0; flex: 0 1 auto; overflow: hidden; }
    .lb-logo-text { min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; font-size: clamp(1rem, 5vw, 1.35rem) !important; letter-spacing: 0.06em !important; }
    .lb-nav { gap: 8px; }
    /* Même ordre sur toutes les pages (le compte s'insérait tantôt avant, tantôt après la loupe) :
       logo à gauche, puis recherche, sommaire, et le compte tout à droite. */
    .lb-nav > .lb-logo { order: 0; margin-right: auto; }
    .lb-nav > .mv8-loupe { order: 1; margin-left: 0 !important; }
    .lb-nav > .mv9-menu-btn { order: 2; }
    .lb-nav > .mvc-nav { order: 3; margin-left: 0 !important; }
}
@media (max-width: 380px) { .lb-logo-text { font-size: 1rem !important; } }
@media (max-width: 340px) { .lb-logo-text { display: none; } }
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .mv9-tiroir:not([hidden]), .mv9-tiroir.mv9-tiroir-sortie { animation: none; }
}

/* ── Garde-fous d'accessibilité ─────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   COULEUR, GABARIT ET ALIGNEMENTS (20/10/2026)
   Demande : plus de la couleur DU SITE (le vert Doom, ou le rouge Marvel selon le thème), des
   conteneurs de même taille, de meilleurs alignements, des en-têtes plus compacts.
   1. Une seule colonne : tout ce qui porte du contenu (en-tête, barre de filtres, corps, pied)
      part du même bord, `--bord`, et s'arrête à `--page-max`. Avant, les bords allaient de 28 à
      199 px selon la page à 1440 px de large.
   2. L'accent du thème, plus présent : fond d'en-tête teinté, filet sous l'en-tête, repères et
      filets des groupes, étiquettes de type. Fonds et filets en --doom-green, textes en
      --accent-texte (seul à tenir 4,5:1 sur le papier).
   3. Les en-têtes de page : moins hauts, moins d'interligne, une phrase chacun.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
    --page-max: 1320px;
    --gouttiere: clamp(16px, 4vw, 56px);
    /* Le bord du contenu, dans un bloc pleine largeur : la gouttière, ou ce qu'il faut pour centrer
       une colonne de --page-max. `100%` se résout sur la largeur du bloc qui l'emploie. */
    --bord: max(var(--gouttiere), calc((100% - var(--page-max)) / 2));
}

/* ── 1. Une seule colonne ─────────────────────────────────────────────── */
.mv9-tete, .lb-filterbar, .lb-main, .cin-contenu, .mv-pied,
.mr-tete, .mr-modes, .mr-filterbar, .mr-main,
#detail-hero .oeuvre-hero-grille, .planche,
.coll-outils, .coll-classeur, .gen-corps,
#char-main .fiche-tete, #char-main .fiche-bande, #char-main .details-container {
    padding-left: var(--bord) !important; padding-right: var(--bord) !important;
}
/* Les blocs qui se centraient eux-mêmes sur une largeur à eux (1100, 1120, 1180, 1240 px)
   prennent toute la largeur : c'est désormais le bord qui centre. */
main.coll, .gen-corps, #char-main .fiche-tete, #char-main .fiche-bande, #char-main .details-container,
.mr-accueil {
    max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
}
.mr-accueil { padding-left: var(--bord) !important; padding-right: var(--bord) !important; }
.cin-page { --cin-marge: var(--bord); }

/* Un même socle pour toutes les sections-cartes : même rayon, même retrait intérieur. */
.details-info-section, .fiche-case, .une-case, .mr-mode { border-radius: var(--rayon-carte); }
.details-info-section { padding: 26px; }

/* ── 2. L'accent du thème ─────────────────────────────────────────────── */
.mv9-tete, .mr-tete {
    background-color: color-mix(in srgb, var(--doom-green) 10%, var(--bg-dark)) !important;
    border-bottom: 3px solid var(--doom-green) !important;
}
.mv9-tete-sur { color: var(--accent-texte); font-weight: 500; }
.mv9-tete-sur::before { background: var(--doom-green); width: 28px; height: 3px; }
.mv9-recit b, .mv9-recit strong { color: var(--accent-texte); }
.section-title { border-bottom-color: color-mix(in srgb, var(--doom-green) 35%, var(--lb-border)); }
.planche .details-info-section, #char-main .details-info-section { border-top: 3px solid var(--doom-green); }
.mr-accueil-tete { border-left: 4px solid var(--doom-green); padding-left: 18px; }

/* Les groupes (sagas, réalités, résultats) : repère, filet et survol à l'accent. */
.mv-groupe > summary.group-header::before { background: var(--doom-green) !important; }
.mv-groupe:not(.mv-sous-groupe) > summary.group-header { border-bottom: 2px solid var(--doom-green) !important; }
.cin-phase { color: var(--accent-texte) !important; }
.cin-phase::after { background: color-mix(in srgb, var(--doom-green) 30%, var(--lb-border)) !important; }
.persos-groupe-sous { color: var(--accent-texte); }
.mv-groupe .poster-card:hover, .mv-groupe .film-history-card:hover { border-color: var(--doom-green) !important; }

/* L'étiquette de type d'une carte du catalogue, teintée de l'accent. */
.cin-carte .uni-chip {
    color: var(--accent-texte) !important; font-weight: 600;
    border-color: color-mix(in srgb, var(--doom-green) 40%, transparent) !important;
    background: color-mix(in srgb, var(--doom-green) 9%, transparent) !important;
}

/* ── 3. Les en-têtes de page : plus hauts sur l'écran, plus serrés ────── */
.mv9-tete { padding-top: clamp(18px, 2.6vw, 34px) !important; padding-bottom: clamp(16px, 2vw, 24px) !important; }
.mr-tete { padding-top: clamp(18px, 2.6vw, 34px) !important; padding-bottom: clamp(16px, 2vw, 24px) !important; }
.mv9-titre-page { font-size: clamp(2.6rem, 6.4vw, 5.2rem) !important; line-height: 0.86 !important; margin-top: 8px !important; }
.mv9-tete .mv9-recit, .mr-tete .mv9-recit { margin-top: 10px !important; line-height: 1.3; }

/* ── Des grilles d'affiches de même calibre partout ───────────────────── */
.cin-contenu .poster-grid, .persos-grille, #search-results .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important; gap: 18px 14px !important;
}
@media (max-width: 900px) {
    .cin-contenu .poster-grid, .persos-grille, #search-results .poster-grid {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important; gap: 14px 10px !important;
    }
}
@media (max-width: 600px) {
    .cin-contenu .poster-grid, .persos-grille, #search-results .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px 8px !important;
    }
}

/* ── Le marathon : le type choisi prend l'accent ──────────────────────── */
.mr-grand { box-shadow: inset 0 -5px 0 var(--nuit-accent), var(--ombre-table) !important; }
.mr-mode { border-top: 3px solid var(--doom-green) !important; }

/* ── Contrastes (audit du 21/10/2026) ─────────────────────────────────── */
/* Les étiquettes posées sur une capture ont toujours un fond sombre : leur texte est clair,
   quelle que soit la page (la recherche les écrivait en encre sombre sur ce fond). */
.film-history-badges .film-history-tag { color: #f4f2ec !important; border-color: rgba(244, 242, 236, 0.35) !important; background: rgba(10, 12, 15, 0.82) !important; }
.film-history-badges .film-history-tag.postcredit { color: var(--nuit-accent-texte) !important; border-color: rgba(var(--nuit-accent-rgb), 0.6) !important; }
/* Le titre d'une carte « à voir avant » ou d'une apparition : l'encre forte de la page (il était
   resté en gris clair de la v7, illisible sur la table). */
.prepa-title { color: var(--lb-white) !important; }
/* La marque d'instance d'une réplique vit dans le sous-titre sombre : texte clair. */
.film-quote-card .film-quote-inst { color: #f4f2ec !important; border-color: rgba(244, 242, 236, 0.35) !important; background: transparent !important; }
/* La barre de navigation part du même bord que le contenu : le logo tombe sur l'aplomb des titres. */
.lb-nav { padding-left: var(--bord) !important; padding-right: var(--bord) !important; }

/* ── MISS MINUTES (miss-minutes.js, 21/10/2026) ───────────────────────────────────────
   La mascotte, sur toutes les pages et dans les deux DA : au coin bas-droit, au-dessus du
   bandeau du marathon (--dock-h) et sous les fenêtres. Bulle aux couleurs de la page. */
.mm-compagne {
    position: fixed; right: clamp(8px, 1.6vw, 24px); bottom: calc(var(--dock-h, 0px) + clamp(8px, 1.6vh, 20px));
    z-index: 850; display: flex; align-items: flex-end; gap: 4px; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.mm-compagne.mm-cachee { opacity: 0; transform: translateY(30px); visibility: hidden; }
.mm-perso {
    pointer-events: auto; flex: 0 0 auto; width: clamp(78px, 7.4vw, 112px); aspect-ratio: 1; padding: 0;
    border: 0; background: none; cursor: pointer; transform-origin: 50% 100%;
    animation: mm-flotte 3.4s ease-in-out infinite;
}
.mm-perso img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.mm-perso:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; border-radius: 50%; }
.mm-compagne.mm-saute .mm-perso { animation: mm-saute 0.45s ease-out, mm-flotte 3.4s ease-in-out 0.45s infinite; }
.mm-bulle {
    pointer-events: auto; position: relative; order: -1; max-width: min(250px, 62vw); margin: 0 4px 58px 0; padding: 10px 14px;
    border: 2px solid var(--doom-green); border-radius: 14px; background: var(--bg-card); color: var(--lb-white);
    font-family: var(--font-ui); font-weight: 600; font-size: 0.88rem; line-height: 1.3;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55); animation: mm-bulle 0.25s ease-out;
}
.mm-bulle[hidden] { display: none; }
.mm-bulle::after {
    content: ''; position: absolute; right: -9px; bottom: 16px; width: 14px; height: 14px; background: var(--bg-card);
    border-right: 2px solid var(--doom-green); border-bottom: 2px solid var(--doom-green); transform: rotate(-45deg);
}
.mm-fermer {
    pointer-events: auto; position: absolute; top: -4px; right: -2px; width: 22px; height: 22px; padding: 0;
    border: 1px solid var(--lb-border); border-radius: 50%; background: var(--bg-card); color: var(--lb-muted-clair);
    font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.mm-compagne:hover .mm-fermer, .mm-fermer:focus-visible { opacity: 1; }
@keyframes mm-flotte { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes mm-saute { 0% { transform: scale(1); } 40% { transform: translateY(-14px) scale(1.06, 0.94); } 100% { transform: scale(1); } }
@keyframes mm-bulle { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
@media (hover: none) { .mm-fermer { opacity: 1; } }
@media (max-width: 640px) { .mm-bulle { margin-bottom: 44px; font-size: 0.82rem; } }

/* Les easter eggs : l'alerte « Variante détectée », l'élagage manqué, les confettis. */
.mm-alerte {
    position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; pointer-events: none;
    background: rgba(233, 118, 27, 0.32); animation: mm-alerte 0.5s steps(2, end) 5;
}
.mm-alerte-texte {
    display: grid; gap: 6px; padding: 22px 34px; border: 4px double #fff3df; background: #b5491a; color: #fff3df;
    font-family: var(--font-display); text-align: center; text-transform: uppercase; transform: rotate(-3deg);
}
.mm-alerte-texte b { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: 0.04em; line-height: 1; }
.mm-alerte-texte span { font-family: var(--font-mono, monospace); font-size: 0.85rem; letter-spacing: 0.1em; }
@keyframes mm-alerte { 50% { background: rgba(233, 118, 27, 0.08); } }
.mm-confettis { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
.mm-confettis i { position: absolute; top: -20px; width: 9px; height: 14px; animation: mm-tombe linear forwards; }
@keyframes mm-tombe { to { top: 105vh; transform: rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
    .mm-perso, .mm-compagne.mm-saute .mm-perso, .mm-bulle, .mm-alerte { animation: none; }
}
@media print { .mm-compagne { display: none; } }

/* Miss Minutes dans l'en-tête de page (23/10/2026) : à droite du titre, posée sur le filet du bas. Hors de l'écran, elle redescend au coin (mm-detachee). */
/* 23/10/2026 : bien plus grande, et enfoncée sous le bord bas de l'en-tête : le bas de son corps disparaît derrière la
   barre qui suit (outils de la collection, filtres…), comme si elle se penchait par-dessus le guichet du TVA. */
.mm-hote { position: relative; overflow: hidden; }
.mm-compagne.mm-en-tete:not(.mm-detachee) { position: absolute; right: var(--bord, 56px); bottom: calc(-1 * clamp(70px, 8vw, 116px)); z-index: 3; }
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-perso { width: clamp(210px, 22vw, 320px); }
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-bulle { margin-bottom: clamp(130px, 15vw, 210px); }
/* Dans l'en-tête, elle ne bouge pas et n'a pas d'ombre : posée derrière le guichet, comme une affiche. */
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-perso,
.mm-compagne.mm-en-tete.mm-saute:not(.mm-detachee) .mm-perso { animation: none !important; transform: none !important; }
/* Un décor, plus une compagne (23/10/2026) : ni bulle, ni « × », ni clic. Elle passe SOUS le texte de l'en-tête
   et se fond dans son papier : `multiply` mange le blanc des gants et des yeux vers le crème de la page, le sépia
   ramène son orange vers celui du TVA, comme une illustration imprimée sur le formulaire. */
.mm-compagne.mm-en-tete:not(.mm-detachee) { z-index: 0; pointer-events: none; }
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-bulle,
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-fermer { display: none !important; }
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-perso { pointer-events: none; cursor: default; }
.mm-hote > :not(.mm-compagne) { position: relative; z-index: 1; }
/* Les easter eggs de la recherche (« Miss Minutes », « Doomsday ») la font parler dans l'en-tête : la bulle passe devant. */
.mm-compagne.mm-en-tete.mm-parle:not(.mm-detachee) { z-index: 3; }
.mm-compagne.mm-en-tete.mm-parle:not(.mm-detachee) .mm-bulle:not([hidden]) { display: block !important; }
.mm-compagne.mm-en-tete:not(.mm-detachee) .mm-perso img {
    mix-blend-mode: multiply; opacity: 0.94;
    filter: sepia(0.3) saturate(0.88) contrast(1.05) !important;
}
@media (max-width: 640px) {
    .mm-compagne.mm-en-tete:not(.mm-detachee) .mm-perso { width: 64px; }
    .mm-compagne.mm-en-tete:not(.mm-detachee) .mm-bulle { margin-bottom: 18px; max-width: 58vw; }
    html[data-da="tva"] .mm-hote::after { display: none; }
}


/* ══════════════════════════════════════════════════════════════════════════
   LE TÉLÉPHONE (audit du 23/10/2026, mesuré à 375 px sur les douze pages)
   1. Tout ce qu'on touche fait au moins 44 px au doigt : une zone invisible agrandit les petits
      boutons (cœurs, chevrons, points du portrait, × de Miss Minutes) sans changer leur dessin.
   2. Aucun texte sous 11,5 px : les étiquettes de 8 à 10 px (types, années, réalités) remontent.
   3. (Le tampon « TVA : APPROUVÉ » de l'en-tête a été retiré partout le 23/10/2026.)
   4. Miss Minutes se fait petite au coin et s'efface vers le bord pendant qu'on fait défiler
      (miss-minutes.js, classe mm-defile) : elle ne cache plus les cartes qu'on veut toucher.
   5. Pendant un jeu, l'en-tête de la page Jeux disparaît : la partie commence en haut de l'écran.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* 1. Les cibles au doigt */
    /* :where() ne pèse rien : un bouton déjà placé en absolu le reste. */
    :where(.toggle-btn, .char-portrait-point) { position: relative; }
    .mv-list-btn-card::before, .toggle-btn::before, .char-portrait-point::before, .mm-fermer::before {
        content: ''; position: absolute; inset: -9px;
    }
    .mm-fermer { width: 28px; height: 28px; top: -8px; font-size: 17px; }
    .toggle-btn { min-width: 34px; min-height: 34px; }
    .mv-groupe > summary.group-header { min-height: 44px; }
    .pill { min-height: 38px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
    .oeuvre-btn-titre, .prepa-pourquoi, .btn-more { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .mv-pied-liens { gap: 4px 18px; }
    .mv-pied-liens a { display: inline-flex; align-items: center; min-height: 40px; }
    .mv-pied-tmdb-lien { min-height: 40px; }
    .hero-back-btn { min-height: 40px; }

    /* 2. Les textes trop petits */
    .uni-chip, .cin-carte .uni-chip { font-size: 0.72rem !important; }
    .poster-year, .cin-carte .poster-year, .poster-interprete { font-size: 0.74rem !important; }
    .prepa-type, .char-relation-type, .char-apparition-type, .film-history-tag, .film-history-tag-branche,
    .film-quote-card-date, .film-quote-inst, .trailer-mini-badge { font-size: 0.72rem !important; }
    .film-quote-card-scene, .film-history-lieu, .actor-name-text, .char-hero-univers-code { font-size: 0.76rem !important; }
    #count-num, #count-mot, #count-libelle, .section-compteur, .info-label, .char-variantes-label { font-size: 0.74rem !important; }
    .gen-tc, #gen-tc, .bob-u { font-size: 0.72rem !important; }


    /* 4. Miss Minutes au coin */
    .mm-compagne:not(.mm-en-tete) .mm-perso, .mm-compagne.mm-detachee .mm-perso { width: 64px; }
    .mm-compagne { right: 6px; bottom: calc(var(--dock-h, 0px) + 6px + env(safe-area-inset-bottom)); }
    .mm-bulle { max-width: min(230px, 64vw); margin-bottom: 40px; padding: 8px 12px; }
    .mm-compagne.mm-defile { transform: translateX(62%); opacity: 0.55; }
    .mm-compagne.mm-defile .mm-bulle, .mm-compagne.mm-defile .mm-fermer { visibility: hidden; }

    /* La fiche d'œuvre : les boutons « Détails » et « Marathon » passent sous le titre au lieu de sortir de l'écran. */
    #prepa-section .section-title { flex-wrap: wrap; row-gap: 10px; }
    #prepa-section .prepa-boutons { margin-left: 0; order: 5; width: 100%; }

    /* 5. Les jeux */
    body.jx-en-jeu .mv9-tete { display: none; }
    body.jx-en-jeu .jx-zone, body.jx-en-jeu #jx-partie { padding-top: 4px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
    .mm-compagne { transition: transform 0.25s ease-out, opacity 0.25s; }
}


/* ══════════════════════════════════════════════════════════════════════════
   LE TÉLÉPHONE, PAGE PAR PAGE (23/10/2026, « formidable sur ordinateur, ignoble sur téléphone »)
   Relevé à 375 px sur toutes les pages. Ce qui suit corrige ce qui se lisait mal au doigt ;
   v9-mobile.js replie les listes trop longues et coupe les textes trop longs.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* ── Ce que pose v9-mobile.js ── */
    .mv-mobile-cache { display: none !important; }
    .mv-mobile-coupe { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--mv-lignes, 6); line-clamp: var(--mv-lignes, 6); overflow: hidden; }
    .mv-mobile-plus {
        display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; cursor: pointer;
        border: var(--trait); border-radius: var(--rayon-bouton); background: var(--bg-card); color: var(--lb-white);
        font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
    }
    .mv-mobile-plus[hidden] { display: none; }
    /* Sous un texte coupé, un simple lien : un gros bouton y pesait plus que le texte. */
    .mv-mobile-plus[data-mv-mobile="texte"] {
        display: inline-flex; width: auto; min-height: 40px; margin-top: 2px; padding: 0; border: 0; background: none;
        color: var(--accent-texte); text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.04em; font-size: 0.8rem;
    }
    .mv-mobile-plus[data-mv-mobile="texte"][hidden] { display: none; }
    .char-hero-wrap .mv-mobile-plus { background: transparent; }

    /* ── Les en-têtes de page : un titre, une phrase, et on passe au contenu ── */
    .mv9-tete, .mr-tete { padding-top: 16px !important; padding-bottom: 14px !important; }
    /* v10 : 0,72rem (11,5 px) et non 0,64 : la règle du téléphone ne laisse aucun texte sous 11,5 px. */
    .mv9-tete-sur { font-size: 0.72rem !important; letter-spacing: 0.06em !important; }
    .mv9-titre-page { font-size: clamp(2.2rem, 11vw, 2.8rem) !important; margin-top: 4px !important; }
    .mv9-tete .mv9-recit, .mr-tete .mv9-recit { font-size: 0.98rem !important; margin-top: 6px !important; }

    /* ── Fiche d'œuvre ── */
    /* Le casting en vignettes. Depuis le 22/11/2026 c'est une bande horizontale (trois vignettes
       visibles, deux rangées) : sa grille est réglée dans details.html, plus ici. */
    #detail-characters .character-card-horizontal {
        flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
        min-height: 0; padding: 10px 6px 9px; text-align: center;
    }
    #detail-characters .char-img-horizontal { width: 58px; height: 58px; }
    #detail-characters .char-info-horizontal { align-items: center; width: 100%; }
    #detail-characters .char-name-text { display: block; white-space: normal; font-size: 0.78rem; line-height: 1.15; overflow: visible; }
    /* La réalité d'une variante passe sous le nom, sinon elle le coupe au milieu. */
    #detail-characters .char-name-text .uni-chip, #detail-stones .char-name-text .uni-chip { display: table; margin: 3px auto 0; }
    #detail-stones .char-name-text .uni-chip { margin-left: 0; }
    #detail-characters .actor-name-text { max-width: 100%; }
    #detail-stones.character-tags { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
    #detail-stones .character-card-horizontal, #detail-stones .char-info-horizontal { min-width: 0; }
    #detail-stones .char-name-text { white-space: normal; font-size: 0.78rem; }
    .oeuvre-synopsis.mv9-recit { font-size: 1.06rem; }
    .oeuvre-handbook { padding: 16px 16px 10px; }
    .oeuvre-handbook .info-line { padding: 7px 0; }

    /* ── Fiche personnage ── */
    /* Les autres réalités et interprètes défilent sur une rangée au lieu d'empiler cinq lignes de pastilles. */
    html body .fiche-versions .char-variantes-liste, .char-variantes-liste { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-right: -14px; padding-right: 14px; }
    .char-variantes-liste::-webkit-scrollbar { display: none; }
    .char-variantes-liste > * { flex: 0 0 auto; }

    /* ── Frise : la barre sur deux rangées, la réalité en haut, les périodes dessous ── */
    :root:has(#tl-periode) { --filter-h: 112px; }
    .lb-filterbar:has(#tl-periode) { flex-wrap: wrap; height: auto; padding: 8px 16px !important; gap: 8px; overflow: visible; }
    .lb-filterbar:has(#tl-periode) .tl-univers { flex: 1 1 0; min-width: 0; }
    .lb-filterbar:has(#tl-periode) .tl-univers select { width: 100%; }
    .lb-filterbar:has(#tl-periode) .filter-sep { display: block; order: 2; flex: 0 0 100%; height: 0; margin: 0; border: 0; background: none; }
    .lb-filterbar:has(#tl-periode) #tl-periode { order: 3; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .lb-filterbar:has(#tl-periode) #tl-periode::-webkit-scrollbar { display: none; }
    .lb-filterbar:has(#tl-periode) #tl-toggle-all { order: 4; flex: 0 0 auto; }

    /* ── Marathon ── */
    /* Le bouton qui fait avancer devient une barre d'action en bas de l'écran, sous le pouce ; il
       recouvrait les autres outils de la barre. Il se pose au-dessus du bandeau des œuvres à placer. */
    .mr-filterbar .mr-btn-next {
        position: fixed !important; left: 12px; right: 12px; bottom: calc(var(--dock-h, 0px) + 10px + env(safe-area-inset-bottom));
        z-index: 860; min-height: 52px; justify-content: center; outline: 0 !important; font-size: 0.95rem;
        box-shadow: none !important;
    }
    body:has(.mr-filterbar:not([hidden]) .mr-btn-next) { padding-bottom: 76px; }
    body:has(.mr-filterbar:not([hidden]) .mr-btn-next) .mm-compagne { bottom: calc(var(--dock-h, 0px) + 72px); }
    .mr-filterbar { min-height: 56px !important; }
    /* Les barres collantes, opaques : un titre qui passe dessous ne doit pas transparaître. */
    html[data-da="tva"] body .lb-filterbar, html[data-da="tva"] body .mr-filterbar { background: #dccaa8 !important; }
    /* Les outils de l'en-tête (mode d'emploi, enregistrer…) sur une seule rangée qui défile. */
    /* min-width: 0, sans quoi la rangée qui défile élargit toute la grille de l'en-tête et pousse le texte hors de l'écran. */
    .mr-tete > *, .mr-tete-cote, .mr-tete-bas { min-width: 0; max-width: 100%; }
    .mr-tete-outils { min-width: 0; max-width: calc(100% + 16px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .mr-tete-outils::-webkit-scrollbar { display: none; }
    .mr-tete-outils .mr-outil { flex: 0 0 auto; min-height: 38px; padding: 0 12px; font-size: 0.8rem; }
    .mr-tete-bas { gap: 8px; }
    /* Mes héros, Prêt pour un film : le champ de recherche prend toute une rangée (il sortait de l'écran). */
    .mr-filterbar:has(.mo-cherche) { flex-wrap: wrap; height: auto; padding-top: 8px !important; padding-bottom: 8px !important; row-gap: 8px; overflow: visible; }
    .mr-filterbar .mo-cherche { flex: 1 1 100%; min-height: 44px; order: 5; }
    .mr-filterbar:has(.mo-cherche) .mr-sep { display: none; }
    /* Les personnages à choisir : trois par rangée, en vignettes. */
    .mo-persos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .mo-perso { padding: 10px 6px 9px; gap: 2px; }
    .mo-perso img { width: 54px; height: 54px; margin-bottom: 4px; }
    .mo-perso b { font-size: 0.78rem; }
    .mo-acteur { font-size: 0.74rem; }
    .mo-perso .mr-case-coche { top: 6px; right: 6px; }
    .mr-stat { padding: 6px 12px 7px; }
    .mr-stat-num { font-size: 1.6rem !important; }
}


/* ══════════════════════════════════════════════════════════════════════════
   L'APPARITION DE DOCTOR DOOM (easter egg « Doomsday », 23/10/2026)
   Posée par miss-minutes.js (apparitionDoom) quand on valide « doomsday » dans une recherche, avant le passage au
   vert : l'ombre tombe, Doom monte du bas de l'écran, une onde verte part de sa poitrine et couvre tout (le site bascule
   dessous à 64 % de la durée), puis l'onde se dissipe et Doom redescend. Ici et pas dans doomsday.css, qui n'est pas
   encore chargée à ce moment-là. Rien si le système demande moins d'animations (miss-minutes.js bascule sans elle).
   ══════════════════════════════════════════════════════════════════════════ */
.dd-apparition { position: fixed; inset: 0; z-index: 9500; pointer-events: none; overflow: hidden; --dd-duree: 4.4s; }
.dd-apparition .dd-ombre {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(8, 26, 15, 0.78), rgba(4, 12, 8, 0.68) 55%, rgba(0, 0, 0, 0.6));
    animation: dd-ombre var(--dd-duree) ease both;
}
@keyframes dd-ombre { 0% { opacity: 0; } 14% { opacity: 1; } 66% { opacity: 1; } 100% { opacity: 0; } }
.dd-apparition .dd-doom {
    position: absolute; left: 50%; bottom: 0; height: min(84vh, 820px); width: auto; max-width: none;
    transform: translate(-50%, 105%); filter: drop-shadow(0 -6px 34px rgba(40, 190, 105, 0.35));
    animation: dd-doom var(--dd-duree) both;
}
@keyframes dd-doom {
    0%   { transform: translate(-50%, 105%); animation-timing-function: cubic-bezier(0.16, 0.84, 0.3, 1); }
    38%  { transform: translate(-50%, 0); }
    60%  { transform: translate(-50%, -1.5%) scale(1.02); }      /* il se redresse au moment de frapper */
    76%  { transform: translate(-50%, 0); opacity: 1; animation-timing-function: ease-in; }
    100% { transform: translate(-50%, 40%); opacity: 0; }
}
/* L'onde : un disque vert qui part de sa poitrine (≈ 56 % de la hauteur de l'écran) et couvre tout l'écran. */
.dd-apparition .dd-vague {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 56%, rgba(190, 255, 210, 0.95), rgba(70, 200, 125, 0.9) 18%, rgba(28, 110, 64, 0.92) 48%, rgba(12, 48, 28, 0.95));
    clip-path: circle(0 at 50% 56%);
    animation: dd-vague var(--dd-duree) both;
}
@keyframes dd-vague {
    0%, 46% { clip-path: circle(0 at 50% 56%); opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.7, 0.4); }
    63%     { clip-path: circle(150vmax at 50% 56%); opacity: 1; animation-timing-function: ease-out; }
    100%    { clip-path: circle(150vmax at 50% 56%); opacity: 0; }
}
@media (max-width: 640px) { .dd-apparition .dd-doom { height: auto; width: 150vw; } }

/* ══════════════════════════════════════════════════════════════════════════
   LES BADGES (24/10/2026) : badges.js, la vitrine de Ma collection, la page badges.html et l'annonce
   « Badge débloqué ». Un badge est un objet dessiné (SVG, palette TVA fixe) : ici ne vivent que les cartes
   qui le portent, sur le vocabulaire du site (passe-partout, légende, survol).
   ══════════════════════════════════════════════════════════════════════════ */
.bdg-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bdg-grille-vitrine { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.bdg-carte {
    height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px;
    text-align: center; text-decoration: none; color: var(--lb-text);
    background: var(--bg-card); border: var(--trait); border-radius: var(--rayon-carte, 10px); box-shadow: var(--ombre-table);
}
a.bdg-carte { transition: transform var(--dur-2, 0.2s) var(--ease-out, ease-out), box-shadow var(--dur-2, 0.2s); }
a.bdg-carte:hover, a.bdg-carte:focus-visible { transform: translateY(-3px); box-shadow: var(--ombre-levee); }
.bdg-carte b { font-family: var(--font-ui); font-weight: 700; font-size: 0.86rem; line-height: 1.2; color: var(--lb-white); }
.bdg-carte span { font-size: 0.76rem; line-height: 1.35; color: var(--lb-muted-clair); }
.bdg-carte i { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--lb-muted); }
.bdg-carte.est-secret { background: transparent; box-shadow: none; border-style: dashed; }
.bdg-carte.est-secret b { color: var(--lb-muted); font-weight: 600; }
.bdg-carte.est-vise { outline: 3px solid var(--accent-texte); outline-offset: 3px; }
.bdg-svg { display: block; flex: 0 0 auto; }
.bdg-vide { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--lb-muted-clair); }
.bdg-tous { margin: 16px 0 0; }
.bdg-vitrine { margin: 24px clamp(16px, 4vw, 48px) 0; }
/* La vitrine (30/10/2026) : une seule ligne de vingt badges, ni nom ni cadre, juste les images espacées ; deux flèches
   n'apparaissent que si la ligne déborde (plus de vingt badges, ou écran étroit). */
.bdg-ruban { display: flex; align-items: center; gap: 8px; }
.bdg-ligne {
    --bdg-ecart: 10px;
    flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 6px 2px; display: flex; gap: var(--bdg-ecart);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.bdg-ligne::-webkit-scrollbar { display: none; }
.bdg-ligne > li { flex: 0 0 calc((100% - 19 * var(--bdg-ecart)) / 20); min-width: 40px; scroll-snap-align: start; }
.bdg-pastille { display: block; border-radius: 50%; transition: transform var(--dur-2, 0.2s) var(--ease-out, ease-out); }
.bdg-pastille:hover, .bdg-pastille:focus-visible { transform: translateY(-3px) scale(1.06); }
.bdg-pastille:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 3px; }
.bdg-pastille .bdg-svg { width: 100%; height: auto; }
.bdg-fleche {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: var(--trait); background: var(--bg-card); color: var(--lb-text);
    font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px;
}
.bdg-fleche:hover:not(:disabled) { background: var(--doom-green); color: var(--on-accent); }
.bdg-fleche:disabled { opacity: 0.35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .bdg-ligne { scroll-behavior: auto; } .bdg-pastille { transition: none; } }
/* L'annonce : un bandeau de nuit qui monte en bas de l'écran, le badge à gauche. Un clic mène à sa place. */
.bdg-toast {
    position: fixed; left: 50%; bottom: calc(var(--dock-h, 0px) + 22px); z-index: 9000; display: flex; align-items: center; gap: 14px;
    max-width: min(440px, calc(100vw - 32px)); padding: 10px 18px 10px 12px; border-radius: 14px; text-decoration: none;
    background: var(--bg-card); color: var(--lb-text); border: 1px solid var(--lb-border); box-shadow: var(--ombre-levee);
    transform: translate(-50%, 140%); opacity: 0; transition: transform 0.45s cubic-bezier(.2,.9,.3,1.2), opacity 0.3s;
}
.bdg-toast.est-la { transform: translate(-50%, 0); opacity: 1; }
.bdg-toast-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bdg-toast-sur { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nuit-accent-texte, var(--accent-texte)); }
.bdg-toast b { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; line-height: 1; text-transform: uppercase; color: var(--lb-white); }
.bdg-toast-texte > span:last-child { font-size: 0.8rem; color: var(--lb-muted-clair); }
@media (prefers-reduced-motion: reduce) { .bdg-toast { transition: opacity 0.2s; transform: translate(-50%, 0); } a.bdg-carte { transition: none; } }
@media (max-width: 640px) {
    .bdg-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .bdg-grille .bdg-svg { width: 72px; height: 72px; }
    .bdg-carte { padding: 10px 6px; }
    .bdg-carte span, .bdg-carte i { display: none; }
}
