/* 4. La bande d'images. Le papier glisse sous un repère, éclairé par la lampe. */
html:not([data-motion]) .outils { display: none; }
.bande > summary { font-size: 1.125rem; }
@media (min-width: 561px) { .bande > summary { display: none; } }
.bande-dedans { display: grid; gap: 10px; min-width: 0; }
.bande-dedans > * { min-width: 0; }
.bande-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; align-items: baseline; }
.bande-info { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.bande-cases { display: flex; flex-wrap: wrap; gap: 0 24px; }
.bande-cases label { display: flex; gap: 8px; align-items: center; min-height: 36px; font-weight: 700; cursor: pointer; }
.bande-cases input { width: 20px; height: 20px; accent-color: var(--vermillon); margin: 0; }
.banc { position: absolute; left: 0; top: 0; width: 100%; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; contain: strict; }
.tambour { --tete: 22%; position: relative; overflow: hidden; background: var(--nuit); margin-inline: calc(-1 * var(--marge)); padding: 16px 0 34px; touch-action: pan-y; }
.couloir-suite .tambour { margin-inline: 0; --tete: 32%; }
.fond--nuit .tambour { background: var(--nuit-haute); }
.lueur { position: absolute; left: var(--tete); top: -20%; bottom: -20%; width: 520px; margin-left: -260px; background: radial-gradient(closest-side, rgb(255 203 117 / .6), transparent); }
.ruban { position: relative; min-width: 72px; margin-left: var(--tete); background: var(--papier); color: var(--nuit); cursor: grab; will-change: transform; user-select: none; -webkit-user-select: none; box-shadow: 0 8px 24px rgb(4 6 20 / .5); }
.tambour.est-tire, .tambour.est-tire .ruban { cursor: grabbing; }
.ruban:focus-visible { outline-offset: -5px; outline-color: var(--vermillon-fonce) !important; }
/* Les fentes en haut du papier, une par image. Celle de l'image lue s'allume */
.ruban-fentes { position: relative; height: 24px; background: repeating-linear-gradient(90deg, transparent 0 calc(var(--case) / 2 - 3px), #141b3c calc(var(--case) / 2 - 3px) calc(var(--case) / 2 + 3px), transparent calc(var(--case) / 2 + 3px) var(--case)) 0 4px / 100% 16px no-repeat; }
.ruban-fentes i { position: absolute; left: calc(var(--case) / 2 - 5px); top: 3px; width: 10px; height: 18px; border-radius: 2px; background: var(--vermillon); }
/* L'amorce, comme au bout d'une pellicule */
.amorce { position: absolute; top: 0; bottom: 0; width: 900px; background: repeating-linear-gradient(115deg, #e9dcb8 0 18px, #f3e9cd 18px 36px); color: #141b3c; }
.amorce--debut { right: 100%; border-right: 2px solid #141b3c; }
.amorce--fin { left: 100%; border-left: 2px solid #141b3c; }
.amorce span { position: absolute; right: 22px; top: 50%; transform: translateY(-60%); font: 800 1.25rem/1 var(--titre); background: #141b3c; color: #f3e9cd; padding: 9px 14px; white-space: nowrap; }
.cases { display: flex; }
.case { position: relative; width: var(--case); height: var(--haut); flex: none; overflow: hidden; border-left: 1px solid rgb(20 27 60 / .3); contain: strict; }
.case [data-statut] { visibility: hidden; } /* la note dépasserait en bas de chaque case */
.case:last-child { border-right: 1px solid rgb(20 27 60 / .3); }
/* Comparer : les deux bandes l'une sous l'autre, la plus courte finit sur des hachures */
.compare .ruban { background: repeating-linear-gradient(115deg, #e9dcb8 0 10px, #f3e9cd 10px 20px); }
.compare .regle, .compare .pistes, .compare .ruban-fentes { background-color: var(--papier); }
.compare .ruban-fentes { background-color: var(--papier); }
.cases--ratee { border-top: 5px solid var(--vermillon); }
.compare .cases:not(.cases--ratee) { border-top: 5px solid #1f6b4c; }
.vue { position: absolute; transform-origin: 0 0; pointer-events: none; }
.vue .scene { margin: 0 !important; border-radius: 0; box-shadow: none; }
.vue .s-reussite { border-radius: 50%; }
.vue-fantome { opacity: .3; }
.vue-fantome .scene, .fantome.scene { background: none !important; box-shadow: none !important; outline: 0 !important; visibility: hidden; }
.vue-fantome .scene::before, .vue-fantome .scene::after, .fantome.scene::before, .fantome.scene::after { display: none !important; }
.vue-fantome [data-mobile], .fantome [data-mobile], .fantome [data-mobile] *, .vue-fantome [data-mobile] * { visibility: visible !important; }
.regle { position: relative; height: 24px; border-top: 2px solid var(--nuit); font-size: .8125rem; line-height: 1; }
.regle i { position: absolute; top: 0; width: 1px; height: 6px; background: var(--nuit); }
.regle i.fort { height: 11px; width: 2px; }
.regle span { position: absolute; top: 11px; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.regle span.zero { transform: translateX(3px); }
.pistes { position: relative; padding: 4px 0 8px; display: grid; gap: 4px; }
.piste { position: relative; height: 30px; }
.piste-barre { position: absolute; top: 0; height: 30px; background: #f6dfba; border-left: 3px solid var(--vermillon); overflow: hidden; min-width: 4px; }
.piste-barre svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.piste-barre path { fill: rgb(207 52 25 / .2); stroke: var(--vermillon); stroke-width: 2; vector-effect: non-scaling-stroke; }
.piste-nom { position: absolute; z-index: 2; top: 5px; padding-left: 9px; font-size: .9375rem; line-height: 20px; white-space: nowrap; font-weight: 700; background: linear-gradient(90deg, transparent, rgb(246 223 186 / .92) 9px); }
.serrees .piste, .serrees .piste-barre { height: 25px; }
.serrees .piste-nom { top: 2px; }
.couloir-suite .amorce span { font-size: 1rem; right: 10px; padding: 8px 9px; }
.tete-lecture { position: absolute; left: var(--tete); top: 0; bottom: 0; width: 0; pointer-events: none; }
.tete-lecture::before { content: ""; position: absolute; left: -2px; width: 4px; top: 0; bottom: 0; background: var(--vermillon); box-shadow: 0 0 0 1px rgb(255 203 117 / .8); }
.tete-lecture span { position: absolute; right: 12px; bottom: 0; line-height: 34px; background: var(--vermillon); color: #fff; font-weight: 700; padding: 0 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chemin { display: grid; grid-template-columns: minmax(0, 34ch) minmax(160px, 1fr); gap: 8px 28px; align-items: center; }
.chemin p { font-size: 1.0625rem; line-height: 1.35; }
.chemin svg { width: 100%; height: 34px; overflow: visible; }
.chemin line { stroke: currentColor; stroke-width: 1; opacity: .4; vector-effect: non-scaling-stroke; }
.chemin .zero { stroke-dasharray: 4 4; opacity: .7; }
.chemin polyline { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .5; vector-effect: non-scaling-stroke; }
.chemin .pas { stroke: currentColor; stroke-width: 8; stroke-linecap: round; opacity: .42; vector-effect: non-scaling-stroke; }
.chemin .pas.lu { stroke: var(--vermillon); opacity: 1; }
.fond--nuit .chemin .pas.lu { stroke: var(--lampe); }
.fantome { position: absolute !important; grid-area: auto !important; justify-self: auto !important; left: 0; top: 0; margin: 0 !important; pointer-events: none; opacity: .2; z-index: 4; }
.fantome * { pointer-events: none; }
@media (max-width: 560px) {
  .tambour, .couloir-suite .tambour { --tete: 44px; padding: 10px 0 30px; }
  .amorce span { display: none; }
  .tete-lecture span { right: auto; left: 8px; line-height: 30px; }
  .chemin { grid-template-columns: minmax(0, 1fr); }
  .bande-cases { gap: 0 18px; }
}
