/* UsagIA · V0, passe « affiche et sticker »
   Quatre couleurs : le papier journal, le noir, le bleu d'Elessar Labs, un jaune fluo.
   Des capitales d'affiche (Big Shoulders), une italique à empattements en contrepoint,
   des bords épais, des ombres dures, des étiquettes légèrement de travers. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */

:root {
  color-scheme: light dark;

  --papier: #efede6;
  --carton: #ffffff;
  --encre: #0b0b0b;
  --encre-2: #55554f;
  --accent: #0754c9;
  --sur-accent: #ffffff;
  --fluo: #d6ff3d;
  --sur-fluo: #0b0b0b;
  --ombre: #0b0b0b;
  --bande: #0b0b0b;
  --sur-bande: #efede6;
  --losange: #d6ff3d;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  --affiche: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --serif: "Instrument Serif", ui-serif, "New York", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --main: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;

  --vif: cubic-bezier(0.2, 1.25, 0.3, 1);
  --marge: clamp(18px, 4.4vw, 60px);
  --b: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --papier: #0b0b0b;
    --carton: #171717;
    --encre: #f2f0e8;
    --encre-2: #a9a79e;
    --accent: #5b8def;
    --sur-accent: #0b0b0b;
    --ombre: #d6ff3d;
    --bande: #d6ff3d;
    --sur-bande: #0b0b0b;
    --losange: #0b0b0b;
    --grain: none;
  }
  :root:not([data-theme="clair"]) .logo--clair { display: none; }
  :root:not([data-theme="clair"]) .logo--sombre { display: block; }
}

:root[data-theme="sombre"] {
  --papier: #0b0b0b;
  --carton: #171717;
  --encre: #f2f0e8;
  --encre-2: #a9a79e;
  --accent: #5b8def;
  --sur-accent: #0b0b0b;
  --ombre: #d6ff3d;
  --bande: #d6ff3d;
  --sur-bande: #0b0b0b;
  --losange: #0b0b0b;
  --grain: none;
}
:root[data-theme="sombre"] .logo--clair { display: none; }
:root[data-theme="sombre"] .logo--sombre { display: block; }

/* ---------- Socle ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--papier);
  background-image: var(--grain);
  color: var(--encre);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: clamp(16px, 2.6vw, 28px) var(--marge);
  overflow-x: clip;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

/* ---------- Barre haute ---------- */

.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  min-height: 46px;
  margin-inline: auto;
}

.marque {
  display: inline-flex;
  align-items: baseline;
  padding: 7px 11px 4px;
  border: var(--b) solid var(--encre);
  background: #0b0b0b;
  color: #f2f0e8;
  font: 900 26px/1 var(--affiche);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  rotate: -2deg;
  transition: rotate 0.25s var(--vif);
}
.marque:hover { rotate: 2deg; }
.marque em { font-style: normal; color: var(--fluo); }

.echelle {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.echelle[hidden] { display: none; }
.echelle__points { display: flex; gap: 5px; }
.echelle__points i {
  width: 13px;
  height: 13px;
  border: var(--b) solid var(--encre);
  transition: background 0.2s ease;
}
.echelle__points i[data-e="fait"] { background: var(--encre); }
.echelle__points i[data-e="ici"] { background: var(--fluo); }

/* ---------- Scène et entrées ---------- */

.scene {
  display: grid;
  align-content: center;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-block: clamp(26px, 5.5vh, 64px);
  transition: opacity 0.14s ease, translate 0.14s ease;
}
.scene.sort { opacity: 0; translate: 0 -8px; }

.monte {
  opacity: 0;
  translate: 0 22px;
  animation: monte 0.55s var(--vif) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 30ms);
}
@keyframes monte {
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Étiquettes ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 clamp(16px, 2.6vh, 26px);
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px 5px;
  border: var(--b) solid var(--encre);
  background: var(--encre);
  color: var(--papier);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--clair { background: transparent; color: var(--encre); }
.tag--fluo { background: var(--fluo); color: var(--sur-fluo); }

.meta {
  margin: 0;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-2);
}

/* ---------- Typographie ---------- */

.titre { margin: 0; }
.titre__gros {
  display: block;
  white-space: nowrap;
  font: 900 clamp(64px, min(20vw, 27vh), 262px)/0.8 var(--affiche);
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.titre__fin {
  display: inline-block;
  margin: 0.16em 0 0 clamp(4px, 5vw, 76px);
  font: italic 400 clamp(44px, min(8.4vw, 12.5vh), 120px)/1 var(--serif);
  letter-spacing: -0.02em;
  rotate: -2.5deg;
}
.nb { white-space: nowrap; }
.surligne {
  padding: 0 0.12em 0.05em;
  background: var(--fluo);
  color: var(--sur-fluo);
}

.chapo {
  max-width: 44ch;
  margin: clamp(24px, 3.6vh, 38px) 0 0;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: var(--encre-2);
  text-wrap: pretty;
}

.question {
  max-width: 16em;
  margin: 0;
  font: 800 clamp(38px, 5.5vw, 78px)/0.98 var(--affiche);
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.question--longue { font-size: clamp(32px, 4.4vw, 60px); }
.question--tres-longue { font-size: clamp(27px, 3.5vw, 48px); line-height: 1.02; }

/* ---------- Boutons et liens ---------- */

.bouton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px 12px 24px;
  border: var(--b) solid var(--encre);
  background: var(--encre);
  color: var(--papier);
  box-shadow: 6px 6px 0 var(--accent);
  font: 900 clamp(22px, 1.9vw, 27px)/1 var(--affiche);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: translate 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.bouton svg { flex: none; margin-top: -3px; }
@media (hover: hover) {
  .bouton:hover {
    background: var(--fluo);
    color: var(--sur-fluo);
    border-color: #0b0b0b;
    translate: 3px 3px;
    box-shadow: 3px 3px 0 var(--accent);
  }
}
.bouton:active { translate: 6px 6px; box-shadow: 0 0 0 var(--accent); }

.lien {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 2px 6px;
  border: 0;
  background: none;
  color: inherit;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}
@media (hover: hover) {
  .lien:hover { background: var(--fluo); color: var(--sur-fluo); }
}

/* ---------- Accueil ---------- */

.accueil {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  column-gap: clamp(24px, 5vw, 80px);
}
.accueil__tete { grid-column: 1 / -1; }
.accueil__tete .tags { margin-bottom: clamp(14px, 2.2vh, 22px); }
.accueil__texte { align-self: start; }
.accueil__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(28px, 4.4vh, 46px);
}
.accueil__carte {
  position: relative;
  justify-self: end;
  margin-top: clamp(-150px, -9.6vw, -20px);
  padding: 22px 12px 12px 0;
}
.planche {
  position: relative;
  width: min(100%, 372px);
  padding: 30px 20px 16px;
  border: var(--b) solid var(--encre);
  background: var(--carton);
  box-shadow: 9px 9px 0 var(--ombre);
  rotate: 2.5deg;
}
.planche .meta { margin-top: 16px; }
.scotch {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 112px;
  height: 30px;
  translate: -50% 0;
  rotate: -4deg;
  background: var(--fluo);
  opacity: 0.88;
}
/* Le mot écrit à la main en haut de la planche. */
.note-main {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0 0 6px 2px;
  font: 400 21px/1.02 var(--main);
  color: var(--accent);
  rotate: -4deg;
  transform-origin: left bottom;
}
.note-main svg { margin-bottom: -12px; }

@media (max-width: 900px) {
  .accueil { grid-template-columns: 1fr; }
  .accueil__carte { justify-self: start; margin-top: 30px; padding-right: 12px; }
}

/* Bandeau qui défile, sur l'accueil seulement. */
.defile {
  margin: clamp(6px, 1.6vh, 16px) calc(var(--marge) * -1) clamp(16px, 2.6vh, 28px);
  border-block: var(--b) solid var(--encre);
  background: var(--bande);
  color: var(--sur-bande);
  overflow: hidden;
  rotate: -1deg;
  scale: 1.02;
}
.defile[hidden] { display: none; }
.defile__piste {
  display: flex;
  width: max-content;
  padding: 11px 0 8px;
  font: 800 clamp(19px, 2vw, 27px)/1 var(--affiche);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: defile 34s linear infinite;
}
.defile__piste span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}
.defile__piste span::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: -3px;
  background: var(--losange);
  rotate: 45deg;
}
@keyframes defile {
  to { translate: -50% 0; }
}

/* ---------- Écran de question ---------- */

.ecran { display: grid; }

.choix {
  display: grid;
  gap: 22px;
  margin-top: clamp(28px, 5.6vh, 60px);
  padding: 0 8px 8px 0;
}
.choix--2 { grid-template-columns: 1fr 1fr; }
.choix--3 { grid-template-columns: 1fr 1fr 1fr; }
.choix--pile { grid-template-columns: 1fr; gap: 14px; }
.choix__b {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: clamp(110px, 17vh, 168px);
  padding: 14px 16px 14px 20px;
  border: var(--b) solid var(--encre);
  background: var(--carton);
  color: var(--encre);
  box-shadow: 8px 8px 0 var(--ombre);
  font-family: var(--affiche);
  font-weight: 900;
  letter-spacing: 0.005em;
  text-align: left;
  cursor: pointer;
  transition: translate 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease, opacity 0.3s ease;
}
/* Quatre tailles : plus la réponse est longue, plus elle s'écrit petit et en minuscules. */
.choix--xl .choix__b { font-size: clamp(34px, 3.9vw, 56px); line-height: 0.92; text-transform: uppercase; }
.choix--l .choix__b { font-size: clamp(27px, 2.9vw, 40px); line-height: 0.96; text-transform: uppercase; }
.choix--m .choix__b { font-size: clamp(22px, 2.15vw, 30px); line-height: 1.05; font-weight: 800; }
.choix--s .choix__b { font-size: clamp(19px, 1.75vw, 25px); line-height: 1.1; font-weight: 800; }
.choix__b kbd {
  flex: none;
  align-self: flex-end;
  padding: 6px 8px 5px;
  background: var(--encre);
  color: var(--papier);
  font: 500 11px/1 var(--mono);
}
.choix--pile .choix__b {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 66px;
  padding: 12px 18px 12px 14px;
  box-shadow: 6px 6px 0 var(--ombre);
}
.choix--pile .choix__b kbd { align-self: center; }
@media (hover: hover) {
  .choix__b:hover {
    background: var(--fluo);
    color: var(--sur-fluo);
    border-color: #0b0b0b;
    translate: 4px 4px;
    box-shadow: 4px 4px 0 var(--ombre);
  }
  .choix--pile .choix__b:hover { translate: 3px 3px; box-shadow: 3px 3px 0 var(--ombre); }
  .choix__b:hover kbd { background: #0b0b0b; color: var(--fluo); }
}
.choix__b:active { translate: 8px 8px; box-shadow: 0 0 0 var(--ombre); }
.choix__b.est-choisi {
  background: var(--accent);
  color: var(--sur-accent);
  border-color: var(--encre);
  translate: 8px 8px;
  box-shadow: 0 0 0 var(--ombre);
}
.choix--pile .choix__b:active,
.choix--pile .choix__b.est-choisi { translate: 6px 6px; }
.choix.a-choisi .choix__b:not(.est-choisi) { opacity: 0.25; }
.choix.a-choisi .choix__b { pointer-events: none; }

.ecran__bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  min-height: 40px;
}

@media (hover: none) {
  .choix__b kbd { display: none; }
}
@media (max-width: 760px) {
  .choix--2, .choix--3 { grid-template-columns: 1fr; gap: 14px; }
  .choix { margin-top: 26px; padding: 0 6px 6px 0; }
  .choix__b {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 66px;
    padding: 12px 18px;
    box-shadow: 6px 6px 0 var(--ombre);
  }
  .choix__b kbd { display: none; }
  .choix__b:active, .choix__b.est-choisi { translate: 6px 6px; }
}

/* ---------- Tampon ---------- */

.tampon {
  flex: none;
  display: inline-block;
  padding: 7px 16px 2px;
  border: 4px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font: 900 clamp(34px, 3.6vw, 50px)/1 var(--affiche);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  rotate: -5deg;
  animation: tampon 0.32s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
}
.tampon--revoir { border-color: var(--encre); color: var(--encre); }
.tampon--petit { padding: 4px 9px 0; border-width: 3px; font-size: 22px; rotate: -4deg; animation: none; }
@keyframes tampon {
  from { opacity: 0; scale: 1.9; }
}

/* ---------- Parcours : un point par question, une ligne par acte ---------- */

.trace {
  --pas: 21px;
  --pt: 12px;
  display: grid;
  gap: 9px;
  width: 100%;
}
.trace__ligne {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
}
.trace__nom {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font: 500 9.5px/1.25 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trace__nom b { flex: none; min-width: 12px; font: 900 21px/1 var(--affiche); letter-spacing: 0; }
.trace__points { display: flex; flex-wrap: wrap; }

.pt {
  appearance: none;
  display: grid;
  place-items: center;
  width: var(--pas);
  height: var(--pas);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.pt i {
  position: relative;
  display: block;
  width: var(--pt);
  height: var(--pt);
  border-radius: 50%;
  transition: scale 0.2s var(--vif);
}
/* Quatre états, quatre formes : la couleur n'est jamais seule à porter le sens. */
.pt[data-etat="juste"] i { background: var(--accent); box-shadow: 0 0 0 var(--b) var(--encre); }
.pt[data-etat="revoir"] i { box-shadow: 0 0 0 var(--b) var(--encre); }
.pt[data-etat="vu"] i { background: var(--carton); box-shadow: 0 0 0 var(--b) var(--encre); }
.pt[data-etat="vu"] i::after {
  content: "";
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  background: var(--encre);
}
.pt[data-etat="non"] i {
  width: calc(var(--pt) * 0.36);
  height: calc(var(--pt) * 0.36);
  background: var(--encre);
  opacity: 0.4;
}
@media (hover: hover) {
  button.pt:hover i { scale: 1.4; }
}
.pt.est-actif i { scale: 1.4; }
span.pt { cursor: default; }
.pt--mini { --pas: 22px; --pt: 11px; }

.trace--decor { --pas: 18px; --pt: 10px; gap: 6px; }
.trace--decor .trace__ligne { grid-template-columns: 18px minmax(0, 1fr); gap: 0 8px; }
.trace--decor .trace__nom span { display: none; }
.trace--decor .trace__nom b { font-size: 18px; }
.trace--decor .pt i {
  animation: eclot 0.5s var(--vif) backwards;
  animation-delay: calc(var(--c) * 110ms + var(--r) * 35ms + 420ms);
}
@keyframes eclot {
  from { opacity: 0; scale: 0.1; }
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legende li { display: inline-flex; align-items: center; gap: 3px; }

.trace__info {
  min-height: 4.6em;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--encre-2);
}
.trace__info span {
  display: block;
  font: 500 10.5px/1.7 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trace__info b { display: block; font-weight: 600; color: var(--encre); }
.trace__info em { display: block; font-style: normal; }

@media (max-width: 520px) {
  .trace { --pas: 21px; }
  .trace__ligne { grid-template-columns: 1fr; }
  .trace--decor .trace__ligne { grid-template-columns: 18px minmax(0, 1fr); }
  .echelle__texte { display: none; }
}

/* ---------- Bilan ---------- */

.bilan {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: start;
  gap: clamp(40px, 7vh, 80px) clamp(30px, 5.4vw, 84px);
  padding-right: 11px;
}

/* Le résultat, présenté comme un pass. */
.pass {
  padding: clamp(16px, 2.2vw, 28px);
  border: var(--b) solid var(--encre);
  background: var(--carton);
  box-shadow: 11px 11px 0 var(--accent);
  rotate: -1.2deg;
}
.pass__haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.niveau {
  margin: clamp(14px, 2.4vh, 24px) 0 0;
  font: 900 clamp(84px, 12.4vw, 184px)/0.86 var(--affiche);
  letter-spacing: -0.008em;
  text-transform: uppercase;
}
.niveau--moyen { font-size: clamp(54px, 7.4vw, 108px); line-height: 0.92; }
.niveau--long { font-size: clamp(40px, 5.2vw, 76px); line-height: 0.98; }
.niveau span {
  display: inline-block;
  padding: 0.07em 0.1em 0;
  background: var(--fluo);
  color: var(--sur-fluo);
}
.gamme {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: clamp(18px, 3vh, 28px) 0 0;
  padding: 0;
  list-style: none;
}
.gamme li {
  padding: 6px 8px 5px;
  border: var(--b) solid var(--encre-2);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.gamme li[aria-current="true"] {
  border-color: var(--encre);
  background: var(--encre);
  color: var(--papier);
}
.verdict {
  margin-top: clamp(16px, 2.6vh, 24px);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  text-wrap: pretty;
}
.verdict p { margin: 0 0 0.7em; }
.verdict p:last-child { margin-bottom: 0; }
.pass__bas {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: var(--b) dashed var(--encre);
}
.code-barres {
  flex: none;
  width: 156px;
  height: 34px;
  background: repeating-linear-gradient(90deg,
    var(--encre) 0 2px, transparent 2px 5px,
    var(--encre) 5px 6px, transparent 6px 10px,
    var(--encre) 10px 13px, transparent 13px 15px,
    var(--encre) 15px 16px, transparent 16px 20px);
}

.bilan__cote {
  display: grid;
  align-content: start;
  gap: clamp(28px, 4.4vh, 44px);
}
.bilan--carte .bilan__cote {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  column-gap: clamp(28px, 5.4vw, 84px);
}
.carte-gagnee {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 15px;
  min-width: 0;
  margin: 0;
}
.carte-gagnee img {
  display: block;
  width: min(100%, clamp(225px, 42vh, 380px));
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  border-radius: 4% / 3%;
  box-shadow: 3px 5px 0 var(--accent);
}
.carte-gagnee figcaption { min-width: 0; max-width: 100%; }
.carte-gagnee__partage {
  max-width: 100%;
  gap: 9px;
  padding: 13px 15px 11px;
  font-size: clamp(18px, 1.7vw, 24px);
}
.note .tags { margin-bottom: 12px; }
.note__chiffre {
  margin: 0;
  font: 900 clamp(84px, 10vw, 150px)/0.8 var(--affiche);
  letter-spacing: -0.01em;
}
.note__chiffre i { font-style: normal; opacity: 0.38; }
.note__texte { max-width: 36ch; margin: 24px 0 0; color: var(--encre-2); }
.note__texte--seul { margin-top: 0; font-size: 18px; color: var(--encre); }

.parcours__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.corriges,
.suite,
.sortie { grid-column: 1 / -1; }

.corriges ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px 24px;
  margin: 0;
  padding: 0 7px 7px 0;
  list-style: none;
}
.corriges li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(16px, 1.8vw, 22px);
  border: var(--b) solid var(--encre);
  background: var(--carton);
  box-shadow: 7px 7px 0 var(--ombre);
}
.corrige__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.corriges .num {
  font: 900 46px/0.8 var(--affiche);
  color: transparent;
  -webkit-text-stroke: 2px var(--encre);
}
.corriges h3 {
  margin: 0;
  font: 800 clamp(22px, 2vw, 27px)/1.04 var(--affiche);
  text-wrap: balance;
}
.corrige__rep { margin: 0; font-size: 15px; line-height: 1.35; }
.corrige__rep b {
  display: block;
  font: 500 10px/1.7 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.corrige__texte {
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: var(--b) dashed var(--encre);
  font-size: 15px;
  line-height: 1.4;
  color: var(--encre-2);
}

.suite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(22px, 3.6vw, 48px);
  border: var(--b) solid var(--encre);
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: 11px 11px 0 var(--ombre);
}
.suite h2 {
  margin: 0;
  font: 900 clamp(70px, 11vw, 168px)/0.8 var(--affiche);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.suite p { max-width: 38ch; margin: 20px 0 0; font-size: 18px; }
.suite__actions { display: grid; justify-items: start; gap: 2px; }
.suite .bouton {
  margin-bottom: 14px;
  border-color: #0b0b0b;
  background: var(--fluo);
  color: var(--sur-fluo);
  box-shadow: 6px 6px 0 #0b0b0b;
}
@media (hover: hover) {
  .suite .bouton:hover { background: #ffffff; color: #0b0b0b; box-shadow: 3px 3px 0 #0b0b0b; }
}
.suite .bouton:active { box-shadow: 0 0 0 #0b0b0b; }

.sortie {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding-top: 24px;
  border-top: var(--b) solid var(--encre);
}

@media (max-width: 860px) {
  .bilan, .suite, .bilan--carte .bilan__cote { grid-template-columns: minmax(0, 1fr); }
  .carte-gagnee { grid-row: 1; }
  .pass { rotate: -1deg; }
}
@media (max-width: 500px) {
  .pass, .suite, .suite__actions { min-width: 0; }
  .niveau span { max-width: 100%; overflow-wrap: anywhere; }
  .pass__bas .code-barres { width: min(38%, 156px); }
  .suite h2 { font-size: clamp(53px, 11vw, 70px); }
  .suite .bouton { gap: 8px; padding-inline: 12px; }
}

/* ---------- Pied ---------- */

.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-top: 14px;
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.signature {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.logo { display: block; width: auto; height: 40px; }
.logo--sombre { display: none; }
.pied__mentions { margin: 0; text-align: right; }
.pied__mentions a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pied__mentions a:hover { background: var(--fluo); color: var(--sur-fluo); }
.etiquette {
  padding: 5px 16px;
  background: repeating-linear-gradient(-45deg, var(--fluo) 0 9px, #0b0b0b 9px 18px);
}
.etiquette b {
  display: block;
  padding: 5px 8px 4px;
  background: #0b0b0b;
  color: var(--fluo);
  font-weight: 500;
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .monte, .tampon, .trace--decor .pt i { animation: none; opacity: 1; translate: none; scale: none; }
  .defile__piste { animation: none; }
  .scene, .bouton, .choix__b, .option, .pt i, .marque { transition: none; }
}
:root[data-fixe] .monte,
:root[data-fixe] .tampon,
:root[data-fixe] .trace--decor .pt i { animation: none; opacity: 1; translate: none; scale: none; }
:root[data-fixe] .defile__piste { animation: none; }
