/* Apprendre le foot-fauteuil — Bordeaux Foot-Fauteuil */
:root {
  --navy: #001642;
  --navy-2: #03215c;
  --bleu: #3381ff;
  --bleu-fonce: #1f5fd1;
  --orange: #ff6d33;
  --orange-fonce: #d94e17;
  --ardoise: #475c85;
  --violet: #7c4dff;

  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --texte: #0f1b33;
  --texte-2: #475c85;
  --bordure: #d8dfeb;
  --ok: #138a4b;
  --ok-bg: #e5f6ec;
  --ko: #c62828;
  --ko-bg: #fdecea;
  --info-bg: #e8f0ff;
  --attention-bg: #fff1e8;

  --sol: #f2dfb8;
  --sol-hors: #e6eaf1;
  --ligne-terrain: #1b2f5e;
  --trait-scene: #111827;
  --lien: #1f5fd1;

  --rayon: 14px;
  --ombre: 0 1px 2px rgba(0, 22, 66, .06), 0 6px 20px rgba(0, 22, 66, .07);
  --taille-texte: 17px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1324; --surface: #121c33; --surface-2: #1a2643; --texte: #e8eefc; --texte-2: #a9b8d6; --bordure: #2a3a5f;
    --ok: #4cd08a; --ok-bg: #12301f; --ko: #ff7b72; --ko-bg: #3a1714; --info-bg: #15264a; --attention-bg: #3a2414;
    --sol: #5a4a2c; --sol-hors: #19233b; --ligne-terrain: #f1f4fb; --trait-scene: #f8fafc; --lien: #8fb6ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1324; --surface: #121c33; --surface-2: #1a2643; --texte: #e8eefc; --texte-2: #a9b8d6; --bordure: #2a3a5f;
  --ok: #4cd08a; --ok-bg: #12301f; --ko: #ff7b72; --ko-bg: #3a1714; --info-bg: #15264a; --attention-bg: #3a2414;
  --sol: #5a4a2c; --sol-hors: #19233b; --ligne-terrain: #f1f4fb; --trait-scene: #f8fafc; --lien: #8fb6ff;
  color-scheme: dark;
}
:root.grand-texte { --taille-texte: 20px; }

* { box-sizing: border-box; }
html { font-size: var(--taille-texte); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--lien); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.entete-int { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.15; }
.marque img { width: 40px; height: auto; }
.marque small { display: block; font-weight: 500; opacity: .75; font-size: .72rem; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.actif { background: var(--bleu); }
.outils { display: flex; align-items: center; gap: 8px; }
.puce-apprenant { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.puce-apprenant .rond { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: .75rem; }
.btn-icone { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px; min-width: 44px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-menu { display: none; }
@media (max-width: 600px) {
  .marque { font-size: .85rem; }
  .marque small { display: none; }
  .marque img { width: 34px; }
  .entete-int { gap: 8px; }
  h1 { font-size: 1.6rem; }
  .question { padding: 18px; }
  .contenu section { padding: 18px 16px; }
}
@media (max-width: 900px) {
  .btn-menu { display: inline-block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-2); flex-direction: column; padding: 8px 16px 16px; }
  .nav.ouvert { display: flex; }
  .outils .nom-long { display: none; }
}

/* ---------- Mise en page ---------- */
main { flex: 1; width: 100%; }
.conteneur { max-width: 1180px; margin: 0 auto; padding: 28px 16px 56px; }
.etroit { max-width: 860px; }
.pied { background: var(--navy); color: rgba(255,255,255,.8); font-size: .85rem; }
.pied .conteneur { padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.pied a { color: #fff; }
.fil { font-size: .88rem; color: var(--texte-2); margin-bottom: 12px; }
.fil a { color: inherit; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--bleu); color: #fff; transition: transform .08s ease, background .15s; }
.btn:hover { background: var(--bleu-fonce); }
.btn:active { transform: translateY(1px); }
.btn.orange { background: var(--orange); } .btn.orange:hover { background: var(--orange-fonce); }
.btn.secondaire { background: var(--surface); color: var(--texte); border-color: var(--bordure); }
.btn.secondaire:hover { background: var(--surface-2); }
.btn.fantome { background: transparent; color: inherit; border-color: currentColor; }
.btn.petit { min-height: 40px; padding: 6px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Accueil ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,22,66,.95) 0%, rgba(0,22,66,.65) 55%, rgba(0,22,66,.2) 100%); }
.hero .conteneur { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 16ch; }
.hero p { max-width: 54ch; font-size: 1.05rem; opacity: .92; }
.hero .surtitre { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--orange); }
.progression-globale { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.barre { height: 12px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; width: min(360px, 100%); }
.barre > span { display: block; height: 100%; background: var(--orange); border-radius: inherit; transition: width .4s; }
.barre.claire { background: var(--surface-2); }
.section { margin-top: 40px; }
.section-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-titre p { margin: 0; color: var(--texte-2); }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
a.carte { color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
a.carte:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,22,66,.14); }
.carte .vignette { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; background: var(--surface-2); }
.carte .corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte .meta { font-size: .8rem; color: var(--texte-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.carte h3 { margin: 0; font-size: 1.08rem; }
.carte p { margin: 0; color: var(--texte-2); font-size: .92rem; }
.numero { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; }
.parcours-arbitre .numero { background: var(--orange); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--texte-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.lu { background: var(--info-bg); color: var(--lien); }
.badge.ko { background: var(--ko-bg); color: var(--ko); }
.carte-action { padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.carte-action .icone { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--info-bg); flex: none; font-size: 1.6rem; }
.carte-action.orange .icone { background: var(--attention-bg); }
.bandeau-parcours { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.bandeau-parcours .pastille-parcours { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.3rem; }
.parcours-arbitre .bandeau-parcours .pastille-parcours { background: var(--orange); }

/* ---------- Module ---------- */
.module-tete { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--navy); color: #fff; margin-bottom: 26px; }
.module-tete img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.module-tete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,22,66,.92) 10%, rgba(0,22,66,.35) 100%); }
.module-tete .int { position: relative; z-index: 1; padding: 90px 28px 26px; }
.module-tete h1 { margin-bottom: 6px; }
.module-tete p { margin: 0; opacity: .9; }
.module-tete .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.module-tete .meta span { background: rgba(255,255,255,.15); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; }
.module-grille { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.sommaire { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 14px; font-size: .9rem; }
.sommaire ol { margin: 0; padding-left: 1.2em; }
.sommaire li { margin: 6px 0; }
.sommaire a { color: var(--texte); text-decoration: none; }
.sommaire a:hover { color: var(--bleu-fonce); text-decoration: underline; }
.sommaire .btn { width: 100%; margin-top: 12px; }
@media (max-width: 900px) { .module-grille { grid-template-columns: 1fr; } .sommaire { position: static; } }
.contenu section { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 90px; }
.contenu section h2 { font-size: 1.3rem; display: flex; gap: 10px; align-items: center; }
.contenu section h2 .n { color: var(--lien); font-weight: 800; }
.contenu ul, .contenu ol { padding-left: 1.25em; margin: 0 0 1em; }
.contenu li { margin: .35em 0; }
.contenu li::marker { color: var(--bleu); font-weight: 700; }
ol.etapes { list-style: none; padding: 0; counter-reset: e; }
ol.etapes li { counter-increment: e; position: relative; padding-left: 44px; min-height: 32px; margin: 10px 0; }
ol.etapes li::before { content: counter(e); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.encadre { border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: var(--info-bg); border-left: 5px solid var(--bleu); }
.encadre strong:first-child { display: block; margin-bottom: 2px; }
.encadre.astuce { background: var(--ok-bg); border-color: var(--ok); }
.encadre.attention { background: var(--attention-bg); border-color: var(--orange); }
.deux-colonnes, .trois-colonnes { display: grid; gap: 14px; margin: 14px 0; }
.deux-colonnes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trois-colonnes { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.carte-info { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.carte-info p { margin: 6px 0 0; font-size: .95rem; }
.carte-info h4 { margin: 8px 0 0; }
.pastille { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; border-radius: 8px; padding: 2px 10px; font-size: .85rem; }
figure { margin: 18px 0; }
figure img.photo { border-radius: 12px; width: 100%; max-height: 460px; object-fit: cover; }
figcaption { font-size: .85rem; color: var(--texte-2); margin-top: 8px; }
.definitions dt { font-weight: 800; margin-top: 12px; }
.definitions dd { margin: 2px 0 0; }
.tableau { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .93rem; }
.tableau th, .tableau td { border: 1px solid var(--bordure); padding: 10px 12px; text-align: left; vertical-align: top; }
.tableau th { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.contenu section.retenir, .retenir { background: var(--navy); color: #fff; border-radius: var(--rayon); padding: 22px 24px; margin-bottom: 18px; }
.retenir h2 { color: #fff; }
.retenir ul { margin: 0; padding-left: 1.2em; }
.retenir li { margin: 6px 0; }
.retenir li::marker { color: var(--orange); }
.module-fin { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 24px; }

/* ---------- Schémas ---------- */
svg.scene { width: 100%; height: auto; max-height: 72vh; border-radius: 12px; display: block; background: var(--sol-hors); }
svg.scene .hors { fill: var(--sol-hors); }
svg.scene .sol { fill: var(--sol); }
svg.scene .lignes, svg.scene .croix { stroke: var(--ligne-terrain); fill: none; }
svg.scene .poteau { fill: #fff; stroke: #c62828; }
svg.scene .repere { stroke: var(--orange-fonce); }
svg.scene .zone-info { fill: rgba(51, 129, 255, .2); stroke: rgba(31, 95, 209, .55); stroke-width: .06; }
svg.scene .zone-faute { fill: rgba(198, 40, 40, .22); }
svg.scene .rayon { fill: rgba(255, 255, 255, .25); stroke: var(--trait-scene); }
svg.scene .joueur .chassis { fill: #2b3445; stroke: #111827; }
svg.scene .joueur .roue { fill: #111827; }
svg.scene .joueur .parechocs { stroke: #111827; }
svg.scene .eq-bleu .siege, svg.scene .eq-bleu .parechocs { fill: var(--bleu); }
svg.scene .eq-orange .siege, svg.scene .eq-orange .parechocs { fill: var(--orange); }
svg.scene .gardien .siege { fill: var(--violet); }
svg.scene .joueur .num { fill: #fff; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 0.04; }
svg.scene .joueur .note { fill: var(--texte); text-anchor: middle; font-weight: 600; paint-order: stroke; stroke: var(--sol); stroke-width: 0.12; }
svg.scene .etat-passif { opacity: .5; }
svg.scene .halo { fill: rgba(198, 40, 40, .2); stroke: #c62828; stroke-width: .05; }
svg.scene .rotation { fill: none; stroke: var(--orange-fonce); }
svg.scene .ballon circle { fill: #fff; stroke: #111827; }
svg.scene .ballon path { fill: #111827; stroke: #111827; }
svg.scene .ballon.fantome { opacity: .35; }
svg.scene .fleche.ballon { stroke: var(--trait-scene); }
svg.scene .fleche.mouvement { stroke: var(--bleu-fonce); }
svg.scene .fleche.deplacement { stroke: var(--ardoise); }
svg.scene .fl-ballon { fill: var(--trait-scene); } svg.scene .fl-mvt { fill: var(--bleu-fonce); } svg.scene .fl-dep { fill: var(--ardoise); }
svg.scene .marque { stroke: #c62828; }
svg.scene .etiquette { fill: var(--texte); text-anchor: middle; font-weight: 700; paint-order: stroke; stroke: var(--sol); stroke-width: 0.14; }
svg.scene .etiquette-fine { fill: var(--texte-2); text-anchor: middle; font-weight: 600; }
svg.scene .marque-lbl { fill: #c62828; }
svg.scene .rayon-lbl { fill: var(--trait-scene); }
svg.scene .verdict.ok circle { fill: var(--ok); } svg.scene .verdict.ko circle { fill: #c62828; }
svg.scene .verdict path { stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
svg.scene .cote { stroke: var(--texte-2); }
svg.scene .cote-lbl { stroke: var(--sol-hors); }
svg.scene .zone-arbitres { fill: rgba(71, 92, 133, .12); stroke: rgba(71, 92, 133, .5); stroke-width: .04; stroke-dasharray: .2 .15; }
svg.scene .zone-tech { fill: rgba(51, 129, 255, .2); } svg.scene .table { fill: rgba(255, 109, 51, .25); }
svg.scene .repere-num { cursor: pointer; }
svg.scene .repere-num circle { fill: var(--orange); stroke: #fff; stroke-width: .08; }
svg.scene .repere-num text { fill: #fff; font-weight: 800; text-anchor: middle; }
svg.scene .repere-num.actif circle, svg.scene .repere-num:hover circle, svg.scene .repere-num:focus circle { fill: var(--navy); }
.terrain-interactif { display: grid; gap: 14px; }
.legende-terrain { columns: 2 260px; font-size: .92rem; padding-left: 1.4em; margin: 0; }
.legende-terrain li { break-inside: avoid; padding: 4px 6px; border-radius: 8px; }
.legende-terrain li.actif { background: var(--attention-bg); }
svg.schema-fauteuil .chassis { fill: #2b3445; stroke: #111827; }
svg.schema-fauteuil .roue { fill: #111827; } svg.schema-fauteuil .roue.petite { fill: #374151; }
svg.schema-fauteuil .eq-bleu-fill, svg.schema-hauteur .eq-bleu-fill { fill: var(--bleu); }
svg.schema-fauteuil .accoudoir { fill: #6b7280; }
svg.schema-fauteuil .joystick { fill: #111827; stroke: #9ca3af; stroke-width: 2; }
svg.schema-fauteuil .parechocs-grand { fill: #9aa4b5; stroke: #111827; }
svg.schema-fauteuil .zone-tacle { fill: rgba(255, 109, 51, .55); }
svg.schema-fauteuil .num { fill: #fff; font-weight: 800; text-anchor: middle; }
svg.schema-fauteuil .fleche-legende { stroke: var(--texte-2); }
svg.schema-fauteuil .sens { stroke: var(--bleu-fonce); }
.etiquette-g { fill: var(--texte); font-weight: 700; font-size: 17px; }
.etiquette-p { fill: var(--texte-2); font-weight: 600; font-size: 14px; }
svg.schema-hauteur .sol-cote { fill: var(--sol); }
svg.schema-hauteur .seuil { stroke: #c62828; }
svg.schema-hauteur .poteau-cote { fill: #fff; stroke: #c62828; stroke-width: 2; }
svg.schema-hauteur .ligne-but-cote { stroke: var(--ligne-terrain); }
svg.schema-hauteur .chassis { fill: #2b3445; stroke: #111827; }
svg.schema-hauteur .roue-c { fill: #111827; }
svg.schema-hauteur .parechocs { fill: var(--bleu); stroke: #111827; }
svg.schema-hauteur .trajectoire { stroke: var(--texte); }
svg.schema-hauteur .ballon circle { fill: #fff; stroke: #111827; }
svg.schema-hauteur .alerte { fill: #c62828; font-size: 20px; }
svg.schema-hauteur .fl-ballon { fill: var(--texte); }

/* Gestes */
.gestes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 14px 0; }
.geste-carte { background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.geste-carte h4 { margin: 6px 0 4px; }
.geste-carte p { font-size: .85rem; margin: 0; color: var(--texte-2); }
svg.geste { width: 100%; max-width: 150px; height: auto; margin: 0 auto; display: block; }
svg.geste .ombre { fill: rgba(0, 0, 0, .12); }
svg.geste .jambe { stroke: #111827; }
svg.geste .maillot { fill: #111827; }
svg.geste.assistant .maillot { fill: #f2c200; }
svg.geste .bras { stroke: #111827; }
svg.geste.assistant .bras { stroke: #e0b000; }
svg.geste .tete { fill: #e7b48f; }
svg.geste .hampe { stroke: #374151; }
svg.geste .drapeau rect, svg.geste .drapeau .rouge { fill: #ff2e00; } svg.geste .drapeau rect.case, svg.geste .drapeau .jaune { fill: #ffd400; }
svg.geste .agite { stroke: var(--texte-2); }
svg.geste .indication { fill: var(--orange-fonce); font-weight: 800; }
svg.geste .croix-sol { stroke: #c62828; }
svg.geste .ballon-geste { fill: #fff; stroke: #111827; stroke-width: 2; }
svg.geste .bulle rect { fill: var(--orange); } svg.geste .bulle text { fill: #fff; font-weight: 800; text-anchor: middle; }
svg.geste { background: #f3f5f7; border-radius: 12px; }
svg.geste .agite { stroke: #475c85; }

/* ---------- Quiz ---------- */
.quiz { max-width: 900px; margin: 0 auto; }
.quiz-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.quiz-tete .compteur { font-weight: 700; color: var(--texte-2); }
.quiz-barre { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.quiz-barre span { display: block; height: 100%; background: var(--bleu); transition: width .3s; }
.question { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.question .titre-sit { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-fonce); font-weight: 800; margin-bottom: 6px; }
.question .contexte { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.question h2 { font-size: 1.35rem; }
.question figure { margin: 0 0 16px; }
.question .fig-geste { max-width: 220px; margin: 0 auto 16px; }
.choix { display: grid; gap: 12px; margin-top: 8px; }
.choix.vf { grid-template-columns: 1fr 1fr; }
.choix button { text-align: left; display: flex; gap: 14px; align-items: center; min-height: 60px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--bordure); background: var(--surface); color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s; }
.choix.vf button { justify-content: center; font-size: 1.15rem; min-height: 72px; }
.choix button:hover:not([disabled]) { border-color: var(--bleu); background: var(--info-bg); }
.choix button .lettre { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; }
.choix button.choisi { border-color: var(--bleu); background: var(--info-bg); }
.choix button.bonne { border-color: var(--ok); background: var(--ok-bg); }
.choix button.mauvaise { border-color: var(--ko); background: var(--ko-bg); }
.choix button[disabled] { cursor: default; }
.retour { margin-top: 18px; border-radius: 12px; padding: 16px 18px; }
.retour.ok { background: var(--ok-bg); } .retour.ko { background: var(--ko-bg); }
.retour strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.retour .ok-t { color: var(--ok); } .retour .ko-t { color: var(--ko); }
.loi-ref { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--texte-2); }
.raccourcis { font-size: .78rem; color: var(--texte-2); margin-top: 14px; }
.resultat { text-align: center; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 32px 24px; box-shadow: var(--ombre); }
.score-rond { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; background: conic-gradient(var(--c, var(--ok)) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.score-rond::before { content: ""; position: absolute; inset: 14px; background: var(--surface); border-radius: 50%; }
.score-rond span { position: relative; }
.resultat .actions { justify-content: center; }
.corrections { text-align: left; margin-top: 26px; }
.corrections li { margin-bottom: 14px; }
.corrections .q { font-weight: 700; }
.corrections .r { color: var(--texte-2); font-size: .93rem; }

/* ---------- Modale d'identification ---------- */
.voile { position: fixed; inset: 0; background: rgba(0, 10, 30, .6); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modale { background: var(--surface); color: var(--texte); border-radius: 18px; max-width: 520px; width: 100%; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: calc(100vh - 32px); overflow: auto; }
.modale .logo { width: 64px; margin-bottom: 10px; }
.champ { display: grid; gap: 6px; margin-bottom: 14px; }
.champ label { font-weight: 700; font-size: .92rem; }
.champ input { font: inherit; padding: 12px 14px; min-height: 52px; border-radius: 12px; border: 2px solid var(--bordure); background: var(--surface); color: var(--texte); }
.champ input:focus { border-color: var(--bleu); outline: none; }
.champ .aide { font-size: .82rem; color: var(--texte-2); }
.erreur { color: var(--ko); font-weight: 600; min-height: 1.4em; }
.lien-bouton { background: none; border: 0; color: var(--texte-2); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; min-height: 44px; }

/* ---------- Diplôme ---------- */
.diplome-zone { display: grid; gap: 20px; justify-items: center; }
.diplome { width: min(100%, 1000px); aspect-ratio: 297 / 210; background: #fff; color: #0f1b33; position: relative; border-radius: 6px; box-shadow: var(--ombre); padding: 4.5% 6%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; overflow: hidden; font-size: clamp(9px, 1.6vw, 16px); }
.diplome::before { content: ""; position: absolute; inset: 2.2%; border: 3px solid #001642; border-radius: 4px; pointer-events: none; }
.diplome::after { content: ""; position: absolute; inset: 3.2%; border: 1px solid #ff6d33; border-radius: 2px; pointer-events: none; }
.diplome .bandeau { position: absolute; top: 0; left: 0; right: 0; height: 2.2%; background: linear-gradient(90deg, #001642, #3381ff 60%, #ff6d33); }
.diplome img { width: 11%; }
.diplome .titre-d { font-size: 2.6em; font-weight: 800; color: #001642; letter-spacing: .02em; margin: 0; }
.diplome .sous { font-size: 1.05em; color: #475c85; margin: 0; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.diplome .nom-d { font-size: 2.4em; font-weight: 800; color: #ff6d33; margin: .1em 0; }
.diplome .texte-d { font-size: 1.1em; max-width: 46em; margin: 0; }
.diplome .bas { display: flex; justify-content: space-between; width: 100%; font-size: .9em; color: #475c85; align-items: flex-end; }
.diplome .bas strong { color: #001642; display: block; }

/* ---------- Divers ---------- */
.vide { text-align: center; color: var(--texte-2); padding: 40px 16px; }
.memo-grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.chiffre { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px; }
.chiffre b { display: block; font-size: 1.6rem; color: var(--bleu-fonce); }
.chiffre b { color: var(--lien); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: var(--ombre); font-weight: 600; max-width: calc(100% - 32px); }
.etat-sync { font-size: .8rem; color: var(--texte-2); }

/* Impression */
@media print {
  body { background: #fff; }
  .entete, .pied, .no-print, .toast { display: none !important; }
  .conteneur { padding: 0; max-width: none; }
  .diplome { width: 297mm; height: 210mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; font-size: 15px; }
  .imprimable section, .imprimable .chiffre { break-inside: avoid; }
}
