/* HMS — thèmes et « vie » du site : palettes au choix, verre dépoli, dégradés, lueurs et animations.
   Chargé après hms.css : redéfinit les couleurs et donne de la profondeur aux composants. */
:root, :root[data-theme="aurore"] {
  --nuit: #06070d; --surface: #10121f; --surface-2: #181b2e; --trait: rgba(255, 255, 255, .09);
  --encre: #f1f3fb; --doux: #b7bdd6; --pale: #7c84a3;
  --braise: #8b5cf6; --braise-sombre: #6d28d9; --or: #22d3ee;
  --grad: linear-gradient(115deg, #22d3ee 0%, #8b5cf6 50%, #f472b6 100%);
  --grad-doux: linear-gradient(115deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16) 50%, rgba(244, 114, 182, .14));
  --lueur: 139, 92, 246; --sur-grad: #fff;
  --verre: rgba(17, 19, 34, .58); --verre-fort: rgba(12, 14, 26, .88);
  --fond-1: 34, 211, 238; --fond-2: 139, 92, 246; --fond-3: 244, 114, 182; --fond-4: 251, 191, 36; --fond-nuit: #06070d;
  --bien: #34d399; --attention: #fbbf24; --mal: #fb7185; --info: #60a5fa;
  color-scheme: dark;
}
:root[data-theme="braise"] {
  --nuit: #110e0c; --surface: #1b1613; --surface-2: #251e1a; --trait: rgba(255, 220, 190, .1);
  --encre: #f4ede5; --doux: #b3a495; --pale: #7d6f63;
  --braise: #ff7a3a; --braise-sombre: #c9541f; --or: #ffc56e;
  --grad: linear-gradient(115deg, #ffc56e 0%, #ff7a3a 50%, #f43f5e 100%);
  --grad-doux: linear-gradient(115deg, rgba(255, 197, 110, .16), rgba(255, 122, 58, .16) 50%, rgba(244, 63, 94, .13));
  --lueur: 255, 122, 58; --sur-grad: #1b0e06;
  --verre: rgba(30, 22, 18, .6); --verre-fort: rgba(20, 15, 12, .9);
  --fond-1: 255, 122, 58; --fond-2: 255, 197, 110; --fond-3: 244, 63, 94; --fond-4: 201, 84, 31; --fond-nuit: #110e0c;
}
:root[data-theme="ocean"] {
  --nuit: #050b12; --surface: #0c1624; --surface-2: #122036; --trait: rgba(180, 220, 255, .1);
  --encre: #eef6ff; --doux: #a9bfd6; --pale: #6f86a0;
  --braise: #38bdf8; --braise-sombre: #0284c7; --or: #2dd4bf;
  --grad: linear-gradient(115deg, #2dd4bf 0%, #38bdf8 50%, #6366f1 100%);
  --grad-doux: linear-gradient(115deg, rgba(45, 212, 191, .16), rgba(56, 189, 248, .16) 50%, rgba(99, 102, 241, .14));
  --lueur: 56, 189, 248; --sur-grad: #fff;
  --verre: rgba(12, 22, 36, .6); --verre-fort: rgba(8, 15, 25, .9);
  --fond-1: 45, 212, 191; --fond-2: 56, 189, 248; --fond-3: 99, 102, 241; --fond-4: 14, 165, 233; --fond-nuit: #050b12;
}
:root[data-theme="foret"] {
  --nuit: #060d09; --surface: #0e1913; --surface-2: #15241b; --trait: rgba(200, 255, 220, .09);
  --encre: #eefcf3; --doux: #a7c4b2; --pale: #6c8a77;
  --braise: #34d399; --braise-sombre: #059669; --or: #a3e635;
  --grad: linear-gradient(115deg, #a3e635 0%, #34d399 50%, #22d3ee 100%);
  --grad-doux: linear-gradient(115deg, rgba(163, 230, 53, .14), rgba(52, 211, 153, .16) 50%, rgba(34, 211, 238, .12));
  --lueur: 52, 211, 153; --sur-grad: #062012;
  --verre: rgba(14, 25, 19, .6); --verre-fort: rgba(9, 17, 12, .9);
  --fond-1: 163, 230, 53; --fond-2: 52, 211, 153; --fond-3: 34, 211, 238; --fond-4: 250, 204, 21; --fond-nuit: #060d09;
}
:root[data-theme="neon"] {
  --nuit: #0a0612; --surface: #150d22; --surface-2: #1f1331; --trait: rgba(255, 180, 255, .1);
  --encre: #fdf2ff; --doux: #c8b3d9; --pale: #8a73a0;
  --braise: #ec4899; --braise-sombre: #be185d; --or: #22d3ee;
  --grad: linear-gradient(115deg, #22d3ee 0%, #ec4899 55%, #f59e0b 100%);
  --grad-doux: linear-gradient(115deg, rgba(34, 211, 238, .16), rgba(236, 72, 153, .18) 55%, rgba(245, 158, 11, .12));
  --lueur: 236, 72, 153; --sur-grad: #fff;
  --verre: rgba(21, 13, 34, .6); --verre-fort: rgba(14, 8, 24, .9);
  --fond-1: 236, 72, 153; --fond-2: 34, 211, 238; --fond-3: 168, 85, 247; --fond-4: 245, 158, 11; --fond-nuit: #0a0612;
}
:root[data-theme="clair"] {
  --nuit: #f5f6fb; --surface: #ffffff; --surface-2: #eef0f8; --trait: rgba(20, 24, 60, .1);
  --encre: #161a2e; --doux: #4d5578; --pale: #858cab;
  --braise: #7c3aed; --braise-sombre: #5b21b6; --or: #0891b2;
  --grad: linear-gradient(115deg, #0891b2 0%, #7c3aed 50%, #db2777 100%);
  --grad-doux: linear-gradient(115deg, rgba(8, 145, 178, .1), rgba(124, 58, 237, .1) 50%, rgba(219, 39, 119, .08));
  --lueur: 124, 58, 237; --sur-grad: #fff;
  --verre: rgba(255, 255, 255, .72); --verre-fort: rgba(255, 255, 255, .92);
  --fond-1: 8, 145, 178; --fond-2: 124, 58, 237; --fond-3: 219, 39, 119; --fond-4: 245, 158, 11; --fond-nuit: #f5f6fb;
  --bien: #059669; --attention: #b45309; --mal: #e11d48; --info: #2563eb;
  color-scheme: light;
}
:root {
  --titre: "Unbounded", "Manrope", system-ui, sans-serif;
  --texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 20px;
}
body { background: var(--nuit); font-family: var(--texte); }
::selection { background: rgba(var(--lueur), .45); }
h1, h2 { letter-spacing: -.025em; }
h1 { font-weight: 800; }

/* fond vivant (canvas animé, voir js/fond.js) + grain */
#fond { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; background: var(--fond-nuit); }
#etoiles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .55; }
:root[data-theme="clair"] #etoiles { display: none; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"); }

/* verre dépoli partout */
.rail { background: var(--verre-fort); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-right-color: var(--trait); }
.barre { background: linear-gradient(180deg, var(--verre-fort), transparent); }
.encart, .tuile, .machine, .service-tuile, .resultat, .jeu, .sortie, .carte-connexion, .emplacement-carte {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--verre);
  border-color: var(--trait); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -32px rgba(0, 0, 0, .75); }
:root[data-theme="clair"] .encart, :root[data-theme="clair"] .tuile, :root[data-theme="clair"] .machine, :root[data-theme="clair"] .service-tuile { box-shadow: 0 18px 40px -28px rgba(30, 30, 80, .35); }
.service-tuile, .tuile, .machine, .resultat { transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.service-tuile:hover, a.tuile:hover, .machine:hover, .resultat:hover { transform: translateY(-4px); border-color: rgba(var(--lueur), .45); box-shadow: 0 24px 50px -24px rgba(var(--lueur), .55); }
.service-tuile .ico { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: var(--grad-doux); border: 1px solid var(--trait); color: var(--or); }
.service-tuile b { font-family: var(--titre); font-size: .95rem; margin-top: 6px; }

/* menu : élément actif en dégradé lumineux */
.marque span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--titre); }
.marque img { filter: drop-shadow(0 8px 18px rgba(var(--lueur), .55)); transition: transform .4s cubic-bezier(.2, .8, .2, 1.2); }
.marque:hover img { transform: rotate(-10deg) scale(1.08); }
.lien { position: relative; transition: background .2s, color .2s, transform .2s; }
.lien:hover { background: rgba(255, 255, 255, .05); transform: translateX(2px); }
.lien[aria-current=page] { background: var(--grad-doux); color: var(--encre); box-shadow: inset 0 0 0 1px rgba(var(--lueur), .35); }
.lien[aria-current=page]::before { content: ""; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 14px rgba(var(--lueur), .9); }
.lien[aria-current=page] .ico { color: var(--or); }
.groupe-lien { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; }

/* boutons, champs, puces */
.bouton { transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.bouton:hover { transform: translateY(-1px); border-color: rgba(var(--lueur), .5); }
.bouton.plein { background: var(--grad); background-size: 160% 100%; color: var(--sur-grad); border: 0; box-shadow: 0 14px 30px -12px rgba(var(--lueur), .8); font-weight: 800; animation: degrade-glisse 6s ease-in-out infinite alternate; }
.bouton.plein:hover { box-shadow: 0 18px 38px -12px rgba(var(--lueur), 1); filter: brightness(1.08); }
@keyframes degrade-glisse { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
input:not([type=checkbox]):focus, select:focus, textarea:focus { border-color: rgba(var(--lueur), .75); box-shadow: 0 0 0 4px rgba(var(--lueur), .18); }
.filtre[aria-pressed=true] { background: var(--grad); color: var(--sur-grad); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(var(--lueur), .9); }
.puce .point, .point { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.puce.bien .point { box-shadow: 0 0 0 3px rgba(52, 211, 153, .15), 0 0 12px rgba(52, 211, 153, .7); animation: respire 2.4s ease-in-out infinite; }
@keyframes respire { 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .04), 0 0 20px rgba(52, 211, 153, .9); } }
.avatar { background: var(--grad); color: var(--sur-grad); box-shadow: 0 6px 16px -6px rgba(var(--lueur), .8); }
.degrade { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: degrade-glisse 8s ease-in-out infinite alternate; }
.tuile b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* affiches : survol vivant */
.affiche .image { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.affiche:hover .image { transform: translateY(-6px) scale(1.02); box-shadow: 0 26px 46px -20px rgba(var(--lueur), .75), 0 0 0 1px rgba(var(--lueur), .4); }
.note-coin { color: var(--or); }

/* entrées animées : la page arrive en douceur, les cartes en cascade */
#vue > div > * { animation: entree .55s cubic-bezier(.2, .7, .2, 1) both; }
#vue > div > *:nth-child(2) { animation-delay: .05s; } #vue > div > *:nth-child(3) { animation-delay: .1s; }
#vue > div > *:nth-child(4) { animation-delay: .15s; } #vue > div > *:nth-child(5) { animation-delay: .2s; } #vue > div > *:nth-child(n+6) { animation-delay: .25s; }
.services > *, .machines > *, .tuiles > *, .defile > * { animation: entree .5s cubic-bezier(.2, .7, .2, 1) both; }
.services > *:nth-child(2), .machines > *:nth-child(2), .tuiles > *:nth-child(2), .defile > *:nth-child(2) { animation-delay: .04s; }
.services > *:nth-child(3), .machines > *:nth-child(3), .tuiles > *:nth-child(3), .defile > *:nth-child(3) { animation-delay: .08s; }
.services > *:nth-child(4), .machines > *:nth-child(4), .tuiles > *:nth-child(4), .defile > *:nth-child(4) { animation-delay: .12s; }
.services > *:nth-child(5), .machines > *:nth-child(5), .tuiles > *:nth-child(5), .defile > *:nth-child(5) { animation-delay: .16s; }
.services > *:nth-child(n+6), .machines > *:nth-child(n+6), .tuiles > *:nth-child(n+6), .defile > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.accueil-tete { background: linear-gradient(135deg, rgba(var(--fond-1), .12), rgba(var(--fond-2), .1) 50%, rgba(var(--fond-3), .1)), var(--verre); border-color: var(--trait); backdrop-filter: blur(16px); }
.accueil-tete::after { background: linear-gradient(90deg, var(--nuit) 12%, color-mix(in srgb, var(--nuit) 70%, transparent) 55%, transparent), radial-gradient(600px 300px at 0% 0%, rgba(var(--lueur), .22), transparent 70%); }
.eventail a { animation: flotte 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
@keyframes flotte { 50% { translate: 0 -6px; } }
.rangee-tete h2 { font-family: var(--titre); font-size: clamp(1.1rem, 1.8vw, 1.45rem); }

/* choix du thème (Paramètres) */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; width: 100%; }
.theme-choix { display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--trait); background: var(--surface-2); cursor: pointer; text-align: left; transition: transform .2s, border-color .2s; }
.theme-choix:hover { transform: translateY(-2px); }
.theme-choix[aria-pressed=true] { border-color: rgba(var(--lueur), .9); box-shadow: 0 0 0 3px rgba(var(--lueur), .25); }
.theme-choix i { display: block; height: 46px; border-radius: 10px; }
.theme-choix b { font-size: .86rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-tuile { padding: 12px; } .service-tuile span { font-size: .78rem; } .service-tuile b { font-size: .82rem; }
}

/* fiche de la bibliothèque : saisons et épisodes */
.saison-bloc { margin-top: 14px; }
.liste-episodes { display: grid; }
.ligne-episode { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--trait); }
.ligne-episode:first-child { border-top: 0; }
.ligne-episode .num { font-family: var(--titre); font-size: .85rem; color: var(--or); min-width: 52px; }
.ligne-episode .titre-ep { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-episode .qualites { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .ligne-episode { grid-template-columns: auto minmax(0, 1fr); } .ligne-episode .qualites, .ligne-episode > .doux { grid-column: 2; justify-content: flex-start; } }
/* gros chiffres façon stats.odor */
.chiffres-geants { font-family: var(--titre); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.chiffres-geants .degrade { display: inline; }

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   FINITION (passe de lisibilité) : à la FIN de themes.css.
   Les six thèmes, le téléphone, le clavier : plus de couleur en dur qui ignore le thème, des contrastes lisibles
   (WCAG AA : 4,5 pour le texte, 3 pour les grands titres), un focus visible, des animations plus légères.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */

/* couleur de fond du thème en triplet (pour les voiles dégradés : rgb(var(--nuit-rgb) / .8)) */
:root, :root[data-theme="aurore"] { --nuit-rgb: 6 7 13; }
:root[data-theme="braise"] { --nuit-rgb: 17 14 12; }
:root[data-theme="ocean"] { --nuit-rgb: 5 11 18; }
:root[data-theme="foret"] { --nuit-rgb: 6 13 9; }
:root[data-theme="neon"] { --nuit-rgb: 10 6 18; }
:root[data-theme="clair"] { --nuit-rgb: 245 246 251; }

/* thème Clair : textes secondaires, états et dégradé assez foncés pour être lus sur fond blanc */
:root[data-theme="clair"] {
  --pale: #5a6285; --doux: #434b6e; --or: #0e7490; --braise: #6d28d9; --braise-sombre: #5b21b6;
  --bien: #046c4e; --attention: #92400e; --mal: #be123c; --info: #1d4ed8;
  --grad: linear-gradient(115deg, #0e7490 0%, #6d28d9 50%, #be185d 100%);
  --grad-doux: linear-gradient(115deg, rgba(14, 116, 144, .12), rgba(109, 40, 217, .12) 50%, rgba(190, 24, 93, .1));
  --lueur: 109, 40, 217;
}

/* zones posées sur une image sombre (vignettes de jeux, pastilles sur affiches) : on y reprend les couleurs « nuit » du thème sombre, quel que soit le thème */
.jv-hero, .jv-carte, .note-coin, .etat-coin, .vu-coche {
  --encre: #f6f6fb; --doux: #d3d7e8; --pale: #aab0c9; --or: #7fe0f0; --braise: #c4a1ff;
  --bien: #4ade80; --attention: #fbbf24; --mal: #fb7185; --info: #7db8ff;
  --trait: rgba(255, 255, 255, .18); --surface-2: rgba(255, 255, 255, .12); --surface: rgba(255, 255, 255, .08);
  color: var(--encre);
}
.jv-hero h1, .jv-carte-texte b { color: var(--encre); }
.jv-hero .puce.bien, .jv-carte .puce.bien { background: rgba(74, 222, 128, .14); }
.note-coin, .etat-coin, .vu-coche { background: rgb(10 10 16 / .82); }
.etat-coin { background: rgb(10 10 16 / .86); }

/* voiles de dégradé sur les images : ils se fondent dans la couleur du thème (et non plus dans un brun fixe) */
.heros::after { background: linear-gradient(90deg, rgb(var(--nuit-rgb) / .95) 10%, rgb(var(--nuit-rgb) / .55) 55%, rgb(var(--nuit-rgb) / .1)), linear-gradient(0deg, rgb(var(--nuit-rgb) / .9), transparent 50%); }
.fiche-fond::after { background: linear-gradient(0deg, var(--nuit) 4%, rgb(var(--nuit-rgb) / .55) 55%, rgb(var(--nuit-rgb) / .2)); }
.titre-fond::after { background: linear-gradient(0deg, var(--nuit) 4%, transparent 75%), linear-gradient(90deg, rgb(var(--nuit-rgb) / .9) 0%, rgb(var(--nuit-rgb) / .72) 55%, rgb(var(--nuit-rgb) / .2)); }
@media (max-width: 700px) { .titre-fond::after { background: linear-gradient(0deg, var(--nuit) 6%, rgb(var(--nuit-rgb) / .8) 60%, rgb(var(--nuit-rgb) / .55)); } }
.accueil-tete::after { background: linear-gradient(90deg, var(--nuit) 18%, rgb(var(--nuit-rgb) / .78) 55%, rgb(var(--nuit-rgb) / .35)), radial-gradient(600px 300px at 0% 0%, rgba(var(--lueur), .18), transparent 70%); }
.carte-connexion { background: var(--verre-fort); }
.resume { color: color-mix(in srgb, var(--encre) 90%, transparent); }

/* pastilles d'état : teintes calculées depuis les couleurs du thème */
.puce.bien { border-color: color-mix(in srgb, var(--bien) 45%, transparent); background: color-mix(in srgb, var(--bien) 12%, transparent); }
.puce.mal { border-color: color-mix(in srgb, var(--mal) 45%, transparent); background: color-mix(in srgb, var(--mal) 12%, transparent); }
.puce.attention { border-color: color-mix(in srgb, var(--attention) 50%, transparent); background: color-mix(in srgb, var(--attention) 14%, transparent); }
.puce.info { border-color: color-mix(in srgb, var(--info) 45%, transparent); background: color-mix(in srgb, var(--info) 12%, transparent); }
.pastille { background: color-mix(in srgb, var(--encre) 6%, transparent); }
.pastille.bien { border-color: color-mix(in srgb, var(--bien) 50%, transparent); }
.pastille.attention { border-color: color-mix(in srgb, var(--attention) 55%, transparent); }
.jeu.allume { border-color: color-mix(in srgb, var(--bien) 45%, transparent); }
.db-carte.hors { border-color: color-mix(in srgb, var(--mal) 50%, transparent); }
.jv-av { color: var(--sur-grad); }
.affiche:hover .image { box-shadow: 0 22px 34px -18px rgb(0 0 0 / .6), 0 0 0 1px rgba(var(--lueur), .45); }

/* clavier : un anneau bien visible partout (et de la place pour lui dans les rangées qui défilent) */
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(var(--lueur), .22); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--or); outline-offset: 1px; }
.defile { padding: 8px 8px 16px; margin: -4px -8px 0; }
.jv-carte:focus-visible, .jv-onglet:focus-visible, .ad-onglet:focus-visible { outline-offset: -3px; }

/* animations plus légères : plus de repeinture continue des ombres, des dégradés ni des cartes */
.bouton.plein, .degrade { animation: none; }
.puce.bien .point { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bien) 18%, transparent); animation: respire 2.6s ease-in-out infinite; will-change: transform; }
@keyframes respire { 50% { transform: scale(1.35); } }
.eventail a { animation: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .eventail a { animation: flotte 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); } }

/* téléphone */
@media (max-width: 900px) {
  /* flou plus léger (les cartes en verre dépoli coûtent cher sur un petit processeur) */
  .encart, .tuile, .machine, .service-tuile, .resultat, .jeu, .sortie, .db-carte, .carte-connexion, .accueil-tete { backdrop-filter: blur(8px) saturate(130%); -webkit-backdrop-filter: blur(8px) saturate(130%); }
  .onglets { background: var(--verre-fort); }
  .onglets a { padding: 6px 0; min-height: 48px; align-content: center; }
}
@media (max-width: 640px) {
  .actu { flex-direction: column; gap: 2px; }
  .actu span { white-space: normal; }
  .entete { align-items: flex-start; }
}

/* tableaux d'administration : sur téléphone, chaque ligne devient une petite carte lisible (plus de colonnes coupées) */
.actions-cellule { white-space: nowrap; }
@media (max-width: 640px) {
  .ad-contenu .table { overflow: visible; }
  .ad-contenu .table table, .ad-contenu .table tbody, .ad-contenu .table tr, .ad-contenu .table td { display: block; }
  .ad-contenu .table thead { display: none; }
  .ad-contenu .table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--trait); }
  .ad-contenu .table tr:last-child { border-bottom: 0; }
  .ad-contenu .table td { padding: 0; border: 0; white-space: normal; max-width: 100%; }
  .ad-contenu .table td.n { white-space: normal; color: var(--doux); font-size: .84rem; }
  .ad-contenu .table td.doux { flex-basis: 100%; overflow-wrap: anywhere; font-size: .88rem; }
  .ad-contenu .table td[data-l]::before { content: attr(data-l) " : "; color: var(--pale); font-size: .8rem; }
  .ad-contenu .table td.actions-cellule { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .ad-contenu .table td select { max-width: none; width: auto; min-width: 150px; }
}

/* vignettes sans image (affiche ou photo absente) : une petite icône au lieu d'un carré vide */
.vide:empty { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b92b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M3 8h4M3 12h4M3 16h4M17 8h4M17 12h4M17 16h4'/%3E%3C/svg%3E") center / 46% no-repeat; }
.acteur .vide:empty { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b92b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E") center / 52% no-repeat; }

/* fiche : la ligne « Série · 2011 · genres · note » ne commence jamais une ligne par un point */
@media (max-width: 640px) { .meta { gap: 4px 14px; } .meta span + span::before { display: none; } }

/* thèmes sombres : textes « pâles » (en-têtes de tableaux, sous-titres, aides) un peu plus clairs pour rester lisibles */
:root, :root[data-theme="aurore"] { --pale: #9aa1bf; }
:root[data-theme="braise"] { --pale: #a69788; }
:root[data-theme="ocean"] { --pale: #8fa4bb; }
:root[data-theme="foret"] { --pale: #8fab99; }
:root[data-theme="neon"] { --pale: #ab95be; }
/* boutons pleins, avatar, filtre choisi : le texte blanc sur le cyan clair du dégradé était illisible ; texte foncé et dégradé un peu plus clair au milieu */
:root, :root[data-theme="aurore"] { --grad: linear-gradient(115deg, #22d3ee 0%, #a78bfa 50%, #f472b6 100%); --sur-grad: #0b0c16; }
:root[data-theme="ocean"] { --grad: linear-gradient(115deg, #2dd4bf 0%, #38bdf8 50%, #818cf8 100%); --sur-grad: #06121f; }
:root[data-theme="neon"] { --grad: linear-gradient(115deg, #22d3ee 0%, #f472b6 55%, #fbbf24 100%); --sur-grad: #12081f; }
:root[data-theme="clair"] { --sur-grad: #ffffff; }
/* rappel Clair (après les réglages des thèmes sombres, même spécificité) */
:root[data-theme="clair"] { --pale: #5a6285; }

/* statistiques (livré par Claude.83) */
/* Statistiques : à ajouter à la FIN de themes.css (après le bloc FINITION). Couleurs prises dans le thème. */
.st { display: grid; gap: 30px; }
.st .c1 { --c: var(--braise); } .st .c2 { --c: var(--or); } .st .c3 { --c: var(--info); } .st .c4 { --c: var(--pale); } .st .c5 { --c: var(--bien); }

/* gros chiffres façon stats.odor */
.st-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.st-chiffre { padding: 18px 20px; border-radius: var(--rayon); border: 1px solid var(--trait); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--verre); display: grid; gap: 4px; align-content: start; }
.st-chiffre .chiffres-geants { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: clamp(1.7rem, 2.9vw, 2.9rem); }
.st-chiffre .chiffres-geants small { font-size: .45em; margin-left: 4px; color: var(--doux); letter-spacing: 0; }
.st-chiffre > span { font-size: .9rem; }

.st-grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; align-items: start; }
.st-large { grid-column: 1 / -1; }
.st-cle { margin: 6px 0 0; font-size: .8rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-cle i, .st-legende i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }

/* courbe des ajouts */
.st-courbe { width: 100%; height: auto; display: block; }
.st-grille { stroke: var(--trait); stroke-dasharray: 3 4; }
.st-axe { fill: var(--pale); font: 11px var(--texte); }
.st-trait { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.st-aire { fill: var(--c); opacity: .14; }
.st-courbe .st-trait { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1); }
.st-pret .st-courbe .st-trait { stroke-dashoffset: 0; }

/* barres horizontales (genres, jeux) */
.st-barres { display: grid; gap: 8px; }
.st-barre { display: grid; grid-template-columns: minmax(90px, 9rem) minmax(0, 1fr) 2.5rem; gap: 10px; align-items: center; font-size: .88rem; }
.st-barre-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-barre b { text-align: right; font-variant-numeric: tabular-nums; }
.st-barre-piste { display: flex; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.st-barre-piste i { display: block; height: 100%; width: var(--l); background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.st-pret .st-barre-piste i { transform: scaleX(1); }

/* colonnes (décennies, heures, mois) */
.st-colonnes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: end; height: calc(var(--h) + 22px); }
.st-colonne { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.st-pile { height: var(--h); width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; background: color-mix(in srgb, var(--encre) 5%, transparent); }
.st-pile i { display: block; width: 100%; height: var(--v); background: var(--c); transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.st-pret .st-pile i { transform: scaleY(1); }
.st-colonne small { font-size: .7rem; color: var(--pale); white-space: nowrap; min-height: 1em; }

/* anneaux (qualité, langues) */
.st-anneau { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; }
.st-anneau svg { width: 140px; height: 140px; }
.st-piste { fill: none; stroke: var(--surface-2); stroke-width: 16; }
.st-arc { fill: none; stroke: var(--c); stroke-width: 16; opacity: 0; transition: opacity .6s ease; }
.st-pret .st-arc { opacity: 1; }
.st-centre { fill: var(--encre); font: 800 22px var(--titre); }
.st-sous { fill: var(--doux); font: 600 11px var(--texte); }
.st-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-legende li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; font-size: .88rem; }
.st-legende li small { grid-column: 2 / -1; font-size: .76rem; }
.st-legende b { font-variant-numeric: tabular-nums; }

/* listes classées */
.st-liste { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: rang; }
.st-ligne { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--trait); counter-increment: rang; }
.st-ligne:first-child { border-top: 0; }
.st-ligne img, .st-ligne .vide { width: 36px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.st-ligne a, .st-ligne > div { display: grid; min-width: 0; }
.st-ligne b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-ligne small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.st-ligne a:hover b { color: var(--or); }
.st-droite { font-variant-numeric: tabular-nums; color: var(--doux); font-size: .86rem; white-space: nowrap; }
.st-note { color: var(--or); font-size: 1rem; }
.st-fichiers .st-rang::before { content: counter(rang); font: 800 1.1rem var(--titre); color: var(--pale); }
.st-fichiers .st-rang { text-align: center; }

/* jeux */
.st-jeux { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st-jeux li { display: grid; gap: 6px; }
.st-jeux span { font-size: .84rem; color: var(--doux); }

.st-bientot { border-style: dashed; }
.st-bientot p { margin: 0; }

/* entrée en cascade des sections */
.st > * { animation: entree .5s cubic-bezier(.2, .7, .2, 1) both; }
.st > *:nth-child(2) { animation-delay: .06s; } .st > *:nth-child(3) { animation-delay: .12s; } .st > *:nth-child(4) { animation-delay: .18s; } .st > *:nth-child(5) { animation-delay: .24s; }

@media (max-width: 640px) {
  .st-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-chiffre { padding: 14px; }
  .st-chiffre .chiffres-geants { font-size: 1.75rem; }
  .st-chiffre > span { font-size: .8rem; }
  .st .rangee-tete { flex-wrap: wrap; }
  .st-anneau { grid-template-columns: 1fr; justify-items: center; }
  .st-legende { width: 100%; }
  .st-barre { grid-template-columns: minmax(70px, 6.5rem) minmax(0, 1fr) 2rem; }
  .st-colonnes { gap: 2px; }
  .st-colonne small { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .st-barre-piste i, .st-pile i { transform: none; }
  .st-arc { opacity: 1; }
  .st-courbe .st-trait { stroke-dashoffset: 0; }
}

/* découvrir (livré par Claude.83) */
/* Ajouter un média (façon Jellyseerr) : à ajouter à la FIN de themes.css. Couleurs du thème ; badges posés sur l'affiche en couleurs « nuit » (lisibles dans les 6 thèmes). */

/* badges des affiches : type en haut à gauche, note en haut à droite, état en bas */
.type-coin { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 7px; border-radius: 6px; font: 800 .62rem/1.5 var(--texte); letter-spacing: .08em; color: #fff; background: rgb(10 10 16 / .78); backdrop-filter: blur(6px); }
.type-coin.film { box-shadow: inset 3px 0 0 #60a5fa; }
.type-coin.serie { box-shadow: inset 3px 0 0 #c084fc; }
.type-coin.anim { box-shadow: inset 3px 0 0 #fbbf24; }
.affiche .note-coin { left: auto; right: 8px; z-index: 2; }
.affiche .etat-coin { z-index: 2; font-weight: 700; }
/* l'état reste une pastille sombre sur l'affiche, même quand la couleur de la pastille (bien / attention…) voudrait l'éclaircir */
.affiche .etat-coin.puce { background: rgb(10 10 16 / .86); border-color: rgba(255, 255, 255, .18); }

/* cartes larges des demandes récentes */
.dc-demandes { grid-auto-columns: minmax(300px, 340px); }
.dc-demande { position: relative; display: block; aspect-ratio: 16 / 8; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); background: var(--surface-2); scroll-snap-align: start; isolation: isolate; transition: transform .2s, border-color .2s; }
.dc-demande:hover { transform: translateY(-3px); border-color: rgba(var(--lueur), .5); }
.dc-demande-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .4s; }
.dc-demande-fond.charge { opacity: 1; }
.dc-demande-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 10 16 / .9) 0%, rgb(10 10 16 / .6) 50%, rgb(10 10 16 / .12)); }
.dc-demande-corps { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: #f6f6fb;
  --bien: #4ade80; --attention: #fbbf24; --mal: #fb7185; --info: #7db8ff; --surface-2: rgba(255, 255, 255, .12); --trait: rgba(255, 255, 255, .18); }
.dc-demande-texte { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.dc-demande-texte small { color: #c9cde0; font-size: .78rem; }
.dc-demande-texte b { font: 700 1.05rem/1.2 var(--titre); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-demande-qui { color: #d3d7e8; font-size: .8rem; margin-bottom: 4px; }
.dc-demande-affiche { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 20px -10px rgb(0 0 0 / .8); flex: none; }

/* explorer par genre et par plateforme */
.dc-explorer { padding: 18px; border-radius: var(--rayon); border: 1px solid var(--trait); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), var(--verre); }
.dc-ligne { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 10px; align-items: start; }
.dc-ligne > span { padding-top: 7px; font-size: .85rem; font-weight: 600; }
.dc-type { display: inline-flex; gap: 6px; }
.dc-explorer .filtre[disabled] { opacity: .4; cursor: not-allowed; }
.dc-titre-res { margin: 8px 0 12px; font-size: 1.05rem; }
.dc-titre-res small { font: 500 .85rem var(--texte); }
.saisons-choix label.deja { opacity: .7; }
.saisons-choix label small { color: var(--doux); }

@media (max-width: 640px) {
  .dc-demandes { grid-auto-columns: 86%; }
  .dc-ligne { grid-template-columns: 1fr; gap: 4px; }
  .dc-ligne > span { padding-top: 0; }
  .dc-explorer { padding: 14px; }
  .dc-explorer .filtres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .dc-explorer .filtre { white-space: nowrap; }
}

/* notifications (livré par Claude.83) */
/* Notifications (cloche) et Mon espace : à ajouter à la FIN de themes.css. */
.cloche-zone { position: relative; margin-left: auto; }
.cloche-zone + .moi { margin-left: 0; }
.cloche { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--trait); background: var(--surface); color: var(--doux); cursor: pointer; transition: color .2s, border-color .2s; }
.cloche:hover, .cloche[aria-expanded=true] { color: var(--encre); border-color: rgba(var(--lueur), .6); }
.cloche .ico { width: 20px; height: 20px; }
.cloche-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--grad); color: var(--sur-grad); font: 800 .68rem/18px var(--texte); text-align: center; box-shadow: 0 0 0 2px var(--nuit), 0 4px 12px -2px rgba(var(--lueur), .8); }
.cloche-n.saute { animation: cloche-saute .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cloche-saute { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cloche-panneau { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 50; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; border-radius: var(--rayon); border: 1px solid var(--trait); background: var(--surface); /* fond plein : un flou ne fonctionne pas à l'intérieur de la barre déjà floutée */ box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: entree .25s ease both; }
.cloche-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.lien-discret { background: none; border: 0; padding: 0; color: var(--or); font-weight: 600; font-size: .84rem; cursor: pointer; }
.cloche-liste { list-style: none; margin: 0; padding: 0 6px 6px; }
.cloche-liste a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 12px; }
.cloche-liste a:hover { background: color-mix(in srgb, var(--encre) 6%, transparent); }
.cloche-liste li.non-lue a { background: color-mix(in srgb, var(--braise) 10%, transparent); }
.cloche-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--doux); font-weight: 800; }
.cloche-ico.demande_disponible, .cloche-ico.demande_acceptee { color: var(--bien); }
.cloche-ico.demande_refusee { color: var(--mal); }
.cloche-ico.demande_nouvelle, .cloche-ico.signalement_nouveau { color: var(--attention); }
.cloche-texte { display: grid; gap: 2px; min-width: 0; }
.cloche-texte b { font-size: .9rem; line-height: 1.3; }
.cloche-texte small { font-size: .8rem; overflow-wrap: anywhere; }
.cloche-vide { margin: 0; padding: 8px 16px 14px; font-size: .88rem; }
.cloche-pied { display: block; padding: 12px 16px; border-top: 1px solid var(--trait); color: var(--or); font-weight: 600; font-size: .88rem; }

/* Mon espace */
.moi-page { display: grid; gap: 22px; }
.moi-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.moi-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.moi-tete a { color: var(--doux); font-weight: 600; font-size: .88rem; }
.moi-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.moi-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--trait); }
.moi-liste li:first-child { border-top: 0; }
.moi-liste li > a, .moi-liste li > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.moi-liste li small { font-size: .8rem; overflow-wrap: anywhere; }
.moi-liste li.non-lue b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--braise); margin-right: 8px; vertical-align: middle; }
.moi-liste .puce { flex: none; }
.moi-demande img, .moi-demande .vide { width: 40px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-2); }
.moi-reglage { cursor: pointer; }
.moi-reglage > span { display: grid; gap: 2px; }
.moi-reglage.bientot { opacity: .78; cursor: default; }

@media (max-width: 900px) {
  .cloche { width: 36px; height: 36px; }
  .cloche-panneau { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
  .moi-liste li { flex-wrap: wrap; }
  .moi-liste li > .puce { margin-left: 52px; }
}

/* téléphone : bouton « Plus » et panneau de toutes les pages */
.panneau-plus { display: none; }
@media (max-width: 900px) {
  .onglet-plus { display: grid; justify-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--pale); padding: 6px 0; min-height: 48px; align-content: center; background: none; border: 0; cursor: pointer; }
  .onglet-plus[aria-expanded=true] { color: var(--or); }
  .panneau-plus:not([hidden]) { display: grid; gap: 2px; position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 80;
    max-height: 70vh; overflow-y: auto; padding: 12px; border-radius: 18px; background: var(--verre-fort); border: 1px solid var(--trait);
    backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 -20px 50px -20px rgb(0 0 0 / .6); animation: entree .25s ease both; }
  .panneau-plus .groupe-lien { margin: 10px 10px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
}

/* ─── Hestiarr : téléchargements, versions, suivi des séries (19/10) ─── */
button.tuile { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
button.tuile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--or) 45%, transparent); }
.hs-dls { display: grid; gap: 10px; margin-top: 10px; }
.hs-dl { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface-2); min-width: 0; }
.hs-dl-tete { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.hs-dl code, .hv-nom code { overflow-wrap: anywhere; font-size: .8rem; color: var(--doux); }
.hs-dl-barre { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hs-dl-barre .jauge { flex: 1 1 160px; }
.hs-dl-barre .jauge i { transition: width .8s ease; }
.hs-reglages { display: grid; gap: 10px; margin-top: 10px; }
.hs-reglages label { display: grid; gap: 4px; font-size: .85rem; }
.hs-reglages label span { color: var(--doux); }
.hs-reglages input, .hs-reglages select { width: 100%; }
.hs-boutons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hv-fenetre { width: min(760px, 100%); }
.hv-liste { display: grid; gap: 8px; max-height: min(60vh, 560px); overflow-y: auto; padding-right: 4px; }
.hv-ligne { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--trait); min-width: 0; }
.hv-ligne.ok { border-color: color-mix(in srgb, var(--bien) 40%, transparent); background: color-mix(in srgb, var(--bien) 6%, transparent); }
.hv-ligne.non { opacity: .72; }
.hv-nom { display: grid; gap: 5px; min-width: 0; }
.hv-puces { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hv-raisons { margin: 0; font-size: .8rem; color: var(--mal); }
.bouton.petit { padding: 6px 12px; font-size: .82rem; }
.ligne-episode.absent { opacity: .62; }
.ligne-episode.absent .num { color: var(--mal); }
.ligne-episode.a-venir { opacity: .55; }
.ligne-episode.a-venir .num { color: var(--info); }
.saison-etat { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hv-ligne { flex-direction: column; align-items: stretch; }
  .ligne-episode { grid-template-columns: auto minmax(0, 1fr); }
  .ligne-episode .qualites, .ligne-episode > .doux { grid-column: 2; justify-content: flex-start; }
}
