/* Recofilm — feuille unique, système de la Ludothèque, palette « salle obscure ».
   Bleu nuit pour l'habillage, ambre « projecteur » pour les actions et TA note,
   rouge velours UNIQUEMENT pour ce qui est en salle, vert pour « inclus dans tes
   abonnements ». Les affiches sont le contenu : tout le reste se tait autour d'elles. */

:root {
  --salle: #141b33;           /* habillage : rail, en-têtes de fiche */
  --salle-clair: #232d52;
  --sur-salle: #ffffff;       /* texte posé sur l'habillage */
  --sur-salle-discret: #b9c0dc;
  --fond: #eeeff3;            /* pierre, légèrement bleutée */
  --surface: #ffffff;
  --encre: #171a26;
  --discret: #5b6178;
  --ligne: #d6d9e3;
  --projecteur: #f5a524;      /* action principale, note perso */
  --projecteur-encre: #2b1a00;
  --donnee: #b86e00;          /* marques de graphique : validée ≥ 3:1 sur la surface */
  --velours: #b3262e;         /* en salle — et rien d'autre */
  --ok: #2f7d4f;
  --ok-texte: #256b42;       /* « inclus dans tes abonnements », en texte */
  --alerte: #b25d00;
  --voile: rgba(8, 11, 24, .5);
  --ombre-affiche: 0 1px 0 rgba(0, 0, 0, .18), 0 8px 16px -8px rgba(12, 16, 40, .6);
  --r-petit: 6px;
  --r: 10px;
  --police-titre: "Bricolage Grotesque", system-ui, sans-serif;
  --police: "Atkinson Hyperlegible", system-ui, sans-serif;
  --larg-affiche: 132px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0d1020; --surface: #171b2e; --encre: #e7e9f2; --discret: #969cb5;
    --ligne: #2a3048; --salle: #080b18; --salle-clair: #1a2140; --donnee: #c98208; --ok-texte: #74d19b;
    --voile: rgba(0, 0, 0, .62);
    --ombre-affiche: 0 1px 0 rgba(0, 0, 0, .5), 0 8px 16px -8px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0d1020; --surface: #171b2e; --encre: #e7e9f2; --discret: #969cb5;
  --ligne: #2a3048; --salle: #080b18; --salle-clair: #1a2140; --donnee: #c98208; --ok-texte: #74d19b;
  --voile: rgba(0, 0, 0, .62);
  --ombre-affiche: 0 1px 0 rgba(0, 0, 0, .5), 0 8px 16px -8px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 16px/1.5 var(--police);
}
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: 1.9rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .7em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--projecteur); outline-offset: 2px; }
.discret { color: var(--discret); }
.erreur { color: var(--velours); font-weight: 700; }
.nombre { font-family: var(--police-titre); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Boutons, champs ─────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 1px solid var(--ligne);
  background: var(--surface); border-radius: 999px; padding: .5em 1.05em; cursor: pointer; min-height: 2.5rem;
  font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.bouton:hover { border-color: var(--discret); }
.bouton.principal { background: var(--projecteur); color: var(--projecteur-encre); border-color: transparent; }
.bouton.principal:hover { filter: brightness(1.05); }
.bouton.danger { color: var(--velours); }
.bouton.petit { padding: .25em .75em; font-size: .82rem; min-height: 2rem; }
.bouton:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=search], input[type=number], input[type=password],
input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--ligne); border-radius: var(--r-petit);
  background: var(--surface); padding: .55em .7em;
}
label { display: grid; gap: .25em; font-size: .88rem; color: var(--discret); }
label > input, label > select { color: var(--encre); font-size: 1rem; }

/* Puces de filtre : la « question » à gauche, les réponses en pastilles */
.filtres { display: grid; gap: .5rem; margin: 0 0 1.1rem; }
.rangee { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.question { color: var(--discret); font-size: .88rem; min-width: 3.6rem; }
.puce {
  border: 1px solid var(--ligne); background: var(--surface); border-radius: 999px;
  padding: .32em .85em; font-size: .88rem; cursor: pointer; white-space: nowrap; min-height: 2rem;
}
a.puce { text-decoration: none; display: inline-flex; align-items: center; }
.puce[aria-pressed="true"], .puce[aria-current="page"] { background: var(--salle); color: var(--sur-salle); border-color: var(--salle); }
:root[data-theme="dark"] .puce:is([aria-pressed="true"], [aria-current="page"]) { background: var(--salle-clair); border-color: var(--salle-clair); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .puce:is([aria-pressed="true"], [aria-current="page"]) { background: var(--salle-clair); border-color: var(--salle-clair); }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.puce .n { color: var(--discret); font-size: .8em; margin-left: .3em; font-variant-numeric: tabular-nums; }
.puce[aria-pressed="true"] .n { color: var(--sur-salle-discret); }

/* ── Structure : rail + vue + panneau ────────────────────────────────────── */
.appli { min-height: 100vh; display: grid; grid-template-columns: 84px 1fr; }
.rail {
  background: var(--salle); color: var(--sur-salle-discret); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem .4rem;
}
.rail a {
  position: relative; display: grid; justify-items: center; gap: .15rem; text-decoration: none;
  padding: .55rem .2rem; border-radius: var(--r); font-size: .74rem; color: var(--sur-salle-discret);
}
.rail a svg { width: 24px; height: 24px; fill: currentColor; }
.rail a:hover { background: var(--salle-clair); color: var(--sur-salle); }
.rail a[aria-current="page"] { background: var(--salle-clair); color: var(--sur-salle); }
.rail a[aria-current="page"]::before {
  content: ""; position: absolute; left: -.4rem; top: 25%; bottom: 25%; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--projecteur);
}
.rail-logo { margin-bottom: .8rem; }
.vue { padding: 1.4rem clamp(1rem, 3vw, 2.5rem) 6rem; min-width: 0; outline: none; max-width: 1280px; }
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-bottom: 1rem; }
.entete h1 { margin: 0; }
.entete .sous-titre { flex-basis: 100%; margin: 0; color: var(--discret); }
.entete .outils { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Qui regarde : la bascule de profil, présente en tête de chaque vue */
.qui { display: inline-flex; border: 1px solid var(--ligne); border-radius: 999px; background: var(--surface); padding: 2px; }
.qui button {
  border: 0; background: none; border-radius: 999px; padding: .3em .85em; cursor: pointer;
  font-size: .86rem; font-weight: 700; color: var(--discret); min-height: 2rem;
}
.qui button[aria-pressed="true"] { background: var(--projecteur); color: var(--projecteur-encre); }

.onglets { display: flex; gap: .35rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.barre-recherche { margin-bottom: .8rem; }
.barre-recherche input { border-radius: 999px; padding-left: 1.1em; max-width: 420px; }

/* ── Affiches ────────────────────────────────────────────────────────────── */
.affiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--larg-affiche), 1fr)); gap: 1.3rem 1rem; }
.affiche {
  position: relative; display: grid; gap: .4rem; align-content: start; border: 0; background: none; padding: 0;
  text-align: left; cursor: pointer; min-width: 0;
}
.affiche .image {
  position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; box-shadow: var(--ombre-affiche);
  background: var(--salle); transition: translate .15s ease;
}
.affiche:hover .image { translate: 0 -4px; }
.affiche .image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sans affiche (titre connu du seul CSV) : une « affiche typographique », teintée par titre */
.sans-affiche {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; padding: .7rem .6rem;
  color: #fff; background:
    linear-gradient(to top, rgba(8, 11, 24, .88) 12%, rgba(8, 11, 24, .1) 75%),
    hsl(var(--teinte, 228) 42% 30%);
}
.sans-affiche b { font-family: var(--police-titre); font-size: .98rem; line-height: 1.12; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sans-affiche small { font-size: .72rem; color: #c9cfe6; }
/* Ta note : pastille ambre légèrement tournée, comme un tampon sur le billet */
.pastille-note {
  position: absolute; top: -.45rem; right: -.35rem; min-width: 2rem; height: 2rem; padding: 0 .3rem;
  display: grid; place-items: center; background: var(--projecteur); color: var(--projecteur-encre);
  font-family: var(--police-titre); font-weight: 800; font-size: 1.02rem; border-radius: 7px; rotate: 6deg;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums;
}
.pastille-note.bof { background: var(--surface); color: var(--discret); border: 1px solid var(--ligne); }
.legende { min-width: 0; }
.legende .titre { font-weight: 700; font-size: .9rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.legende .infos { display: block; font-size: .78rem; color: var(--discret); }
.legende .ou { color: var(--ok-texte); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Note PUBLIQUE, en bas de l'image et étiquetée : jamais confondue avec la pastille (ta note) */
.note-publique {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .45rem .3rem; font-size: .72rem; color: #fff;
  background: linear-gradient(to top, rgba(8, 11, 24, .88), rgba(8, 11, 24, 0)); text-align: left;
}
.note-publique b { font-family: var(--police-titre); font-size: .88rem; font-variant-numeric: tabular-nums; }
.ruban {
  position: absolute; top: .5rem; left: 0; background: var(--ok); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .12rem .55rem .12rem .4rem; border-radius: 0 999px 999px 0;
}

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.cartes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.1rem 1.2rem; min-width: 0; }
.carte.large { grid-column: 1 / -1; }
.carte h2 { font-size: 1.15rem; }
.carte > :last-child { margin-bottom: 0; }
.carte .actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.note-bas { font-size: .84rem; color: var(--discret); margin-top: .7rem; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.chiffre { border: 1px solid var(--ligne); border-radius: var(--r); padding: .6rem .7rem; }
.chiffre .valeur { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre .libelle { font-size: .8rem; color: var(--discret); }

/* Mise en route : ce qui est branché, ce qui manque */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.etapes li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; }
.etapes .coche {
  width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--ligne); display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; margin-top: .1rem;
}
.etapes li.fait .coche { background: var(--ok); border-color: var(--ok); color: #fff; }
.etapes b { display: block; }
.etapes span.detail { font-size: .86rem; color: var(--discret); }

/* ── Graphiques ──────────────────────────────────────────────────────────── */
/* Barres horizontales : une teinte, marques fines, extrémité arrondie côté donnée */
.barres { display: grid; gap: 2px; }
.barres.notes { --col-libelle: 8.6rem; }   /* « 10 Exceptionnel » ne doit pas être tronqué */
.barre { display: grid; grid-template-columns: var(--col-libelle, 7.5rem) 1fr 2.6rem; gap: .6rem; align-items: center; padding: .22rem .3rem; border-radius: var(--r-petit); }
.barre:hover { background: color-mix(in srgb, var(--donnee) 9%, var(--surface)); }
.barre .lib { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre .lib b { font-family: var(--police-titre); display: inline-block; min-width: 1.5rem; font-variant-numeric: tabular-nums; }
.barre .piste { height: 12px; border-left: 1px solid var(--ligne); }
.barre .plein { display: block; height: 100%; min-width: 2px; background: var(--donnee); border-radius: 0 4px 4px 0; }
.barre.attenue .plein { background: color-mix(in srgb, var(--donnee) 45%, var(--surface)); }
.barre .val { font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--discret); }
.barres-titre { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--discret); margin: 0 .3rem .3rem; }

/* Corrélation d'une source : point + intervalle à 95 % sur un axe −0,2 → 1 */
.sources-liste { display: grid; gap: .9rem; }
.source { display: grid; gap: .3rem; }
.source .tete { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.source .tete b { font-family: var(--police-titre); }
.axe { position: relative; height: 22px; }
.axe::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ligne); }
.axe .zero { position: absolute; top: 3px; bottom: 3px; width: 1px; background: var(--discret); opacity: .6; }
.axe .intervalle { position: absolute; top: 50%; height: 4px; translate: 0 -50%; border-radius: 2px; background: color-mix(in srgb, var(--donnee) 40%, var(--surface)); }
.axe .point { position: absolute; top: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--donnee); box-shadow: 0 0 0 2px var(--surface); }
.axe-graduations { display: flex; justify-content: space-between; font-size: .72rem; color: var(--discret); font-variant-numeric: tabular-nums; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .4rem .5rem; border-bottom: 1px solid var(--ligne); text-align: left; }
.table th { font-family: var(--police-titre); font-weight: 600; color: var(--discret); font-size: .82rem; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.defile { overflow-x: auto; }

/* ── Panneau latéral (fiche) ─────────────────────────────────────────────── */
.panneau {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(560px, 100vw); background: var(--surface);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .3); z-index: 30; overflow-y: auto;
  translate: 100% 0; transition: translate .22s ease, visibility 0s linear .22s; overscroll-behavior: contain;
  visibility: hidden;   /* sinon son ombre déborde sur le bord droit de l'écran */
}
.panneau.ouvert { translate: 0 0; visibility: visible; transition: translate .22s ease; }
.voile { position: fixed; inset: 0; background: var(--voile); z-index: 25; }
.fiche-tete { position: relative; background: var(--salle); color: var(--sur-salle); padding: 1.2rem 1.3rem 1.1rem; display: grid; grid-template-columns: 118px 1fr; gap: 1.1rem; }
.fiche-tete .image { width: 118px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; box-shadow: var(--ombre-affiche); align-self: start; }
.fiche-tete .image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fiche-tete h2 { font-size: 1.5rem; margin: 0 2.2rem .25rem 0; }
.fiche-tete .original { color: var(--sur-salle-discret); font-style: italic; font-size: .9rem; margin: 0; }
.fiche-tete .faits { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .9rem; color: var(--sur-salle-discret); margin-top: .5rem; }
.fiche-tete .faits b { color: var(--sur-salle); font-family: var(--police-titre); }
.fermer {
  position: absolute; right: .7rem; top: .7rem; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.fiche-corps { padding: 1.1rem 1.3rem 3rem; display: grid; gap: 1.5rem; }
.bloc h3 { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.bloc h3 .discret { font-family: var(--police); font-weight: 400; font-size: .85rem; }

/* Note : dix cases, la note se donne d'un geste */
.note-cases { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.note-cases button {
  aspect-ratio: 1; border: 1px solid var(--ligne); background: var(--surface); border-radius: 5px;
  font-family: var(--police-titre); font-weight: 700; cursor: pointer; font-size: .95rem; padding: 0;
}
.note-cases button.plein { background: var(--projecteur); border-color: var(--projecteur); color: var(--projecteur-encre); }
.note-sens { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .5rem; font-size: .88rem; color: var(--discret); min-height: 2rem; }
.note-sens strong { color: var(--encre); font-family: var(--police-titre); font-size: 1rem; }

.notes-ext { display: grid; gap: .1rem; }
.note-ext { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--ligne); }
.note-ext:last-child { border-bottom: 0; }
.note-ext .valeur { font-family: var(--police-titre); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.note-ext .valeur small { font-weight: 400; font-size: .78rem; color: var(--discret); }
.note-ext .infos { grid-column: 1 / -1; font-size: .78rem; color: var(--discret); }
.liens { display: flex; flex-wrap: wrap; gap: .5rem; }
.bandeau { background: color-mix(in srgb, var(--projecteur) 16%, var(--surface)); border-radius: var(--r); padding: .7rem .9rem; font-size: .9rem; }

/* ── Import (zone de dépôt) ──────────────────────────────────────────────── */
.depot {
  border: 2px dashed var(--ligne); border-radius: var(--r); padding: 1.2rem; text-align: center; display: grid; gap: .6rem; justify-items: center;
}
.depot.survol { border-color: var(--projecteur); background: color-mix(in srgb, var(--projecteur) 10%, var(--surface)); }
.pas { margin: .2rem 0 .8rem; padding-left: 1.2rem; font-size: .92rem; }
.pas li { margin-bottom: .2rem; }
code { background: color-mix(in srgb, var(--salle) 9%, var(--surface)); padding: .1em .35em; border-radius: 4px; font-size: .88em; }

/* ── Dialogue, toasts, états vides ───────────────────────────────────────── */
.dialogue {
  border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem); background: var(--surface); color: var(--encre);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.dialogue::backdrop { background: var(--voile); }
.dialogue form { display: grid; gap: 1rem; padding: 1.2rem 1.3rem; }
.dialogue h2 { margin: 0; }
.dialogue .actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.toasts { position: fixed; left: 50%; translate: -50% 0; bottom: 1.5rem; display: grid; gap: .4rem; z-index: 50; width: max-content; max-width: calc(100vw - 2rem); }
.toast {
  background: var(--encre); color: var(--fond); padding: .6rem 1rem; border-radius: 999px; font-size: .92rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: monter .2s ease; text-align: center;
}
.toast.erreur { background: var(--velours); color: #fff; border-radius: 14px; }
@keyframes monter { from { opacity: 0; translate: 0 8px; } }
.vide-etat { padding: 2.5rem 1rem; text-align: center; color: var(--discret); max-width: 520px; margin: 0 auto; }
.vide-etat h2 { color: var(--encre); }
.chargement { padding: 3rem; text-align: center; color: var(--discret); }
.plus { display: grid; justify-items: center; margin-top: 1.6rem; }
.pied { margin-top: 2rem; font-size: .8rem; color: var(--discret); }

/* ── Connexion ───────────────────────────────────────────────────────────── */
.connexion { min-height: 100dvh; display: grid; place-items: center; background: var(--salle); padding: 1rem; }
.connexion-carte { background: var(--surface); border-radius: 16px; padding: 2rem; width: min(380px, 100%); display: grid; gap: .8rem; }
.connexion-carte h1 { margin: 0; }
.connexion form { display: grid; gap: .8rem; margin-top: .4rem; }

/* ── Mobile : rail en barre d'onglets ────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --larg-affiche: 96px; }
  .appli { grid-template-columns: 1fr; }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 22;
    flex-direction: row; justify-content: space-around; padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom));
  }
  .rail .rail-logo { display: none; }
  .rail a { padding: .45rem .3rem; font-size: .7rem; flex: 1; min-height: 3rem; }
  .rail a[aria-current="page"]::before { left: 25%; right: 25%; top: -.3rem; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .vue { padding: 1rem 1rem calc(6.5rem + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.5rem; }
  .affiches { gap: 1.1rem .7rem; }
  .sans-affiche { padding: .5rem .45rem; }
  .sans-affiche b { font-size: .82rem; }
  .pastille-note { min-width: 1.75rem; height: 1.75rem; font-size: .92rem; }
  /* Une question par ligne, les réponses défilent au doigt : les affiches restent visibles */
  .filtres { margin: 0 -1rem 1rem; }
  .filtres .rangee { flex-wrap: nowrap; overflow-x: auto; padding: 0 1rem; scrollbar-width: none; }
  .filtres .rangee::-webkit-scrollbar { display: none; }
  .question { min-width: auto; white-space: nowrap; }
  .barre-recherche input { max-width: none; }
  .entete .outils { margin-left: 0; }
  .fiche-tete { grid-template-columns: 88px 1fr; }
  .fiche-tete .image { width: 88px; }
  .toasts { bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
  .barres { --col-libelle: 6.2rem; }
  .barres.notes { --col-libelle: 8.4rem; }
  .carte { padding: 1rem; }
}

/* ── Fiche : gestes, où regarder ─────────────────────────────────────────── */
.gestes { display: flex; flex-wrap: wrap; gap: .5rem; }
.gestes .bouton[aria-pressed="true"]:not(.principal) { border-color: var(--discret); background: color-mix(in srgb, var(--encre) 9%, var(--surface)); }
.plateformes { display: flex; flex-wrap: wrap; gap: .4rem; }
.plateforme {
  border: 1px solid color-mix(in srgb, var(--ok) 55%, var(--surface)); background: color-mix(in srgb, var(--ok) 13%, var(--surface));
  border-radius: 999px; padding: .3em .85em; font-weight: 700; font-size: .9rem;
}
.plateforme small { font-weight: 400; color: var(--discret); }
/* Le rouge velours : en salle, et rien d'autre */
.en-salle { display: inline-block; background: var(--velours); color: #fff; border-radius: 999px; padding: .25em .85em; font-weight: 700; font-size: .86rem; }

/* ── Profil : abonnements (interrupteurs), crédits ───────────────────────── */
.abonnements { display: grid; gap: .4rem; }
.abonnement {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .7rem; align-items: center; text-align: left; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--surface); border-radius: var(--r); padding: .55rem .7rem; min-height: 3rem;
}
.abonnement .temoin { width: 2.4rem; height: 1.35rem; border-radius: 999px; background: var(--ligne); position: relative; transition: background .15s; }
.abonnement .temoin::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.35rem - 4px); height: calc(1.35rem - 4px);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: translate .15s;
}
.abonnement[aria-pressed="true"] .temoin { background: var(--ok); }
.abonnement[aria-pressed="true"] .temoin::after { translate: 1.05rem 0; }
.abonnement .detail { display: block; font-size: .82rem; color: var(--discret); }
.abonnement[aria-pressed="false"] b { color: var(--discret); }
.logo-tmdb { display: block; }
