/* =============================================================================
   cours-joueur.css — Académie joueur (section #cours de l'accueil)
   Typographie de la DA (Saira Condensed, DM Sans, Space Mono), aplats navy,
   filets d'encre et ombres dures. Ton de jeu assumé : couleurs de parcours,
   petits arrondis, animations courtes (désactivées si l'appareil le demande).
   ============================================================================= */

.lp-cours-section {
  --ac-paper: var(--le-paper, #F2EDE2);
  --ac-surface: #FBF8F1;
  --ac-surface-2: var(--le-paper-2, #E9E2D2);
  --ac-ink: var(--le-ink, #10182E);
  --ac-body: #2B3146;
  --ac-muted: #625D55;
  --ac-line: var(--le-line, #CFC6B2);
  --ac-rose: var(--le-rose, #D8466F);
  --ac-rose-text: var(--le-rose-text, #B5365B);
  --ac-navy: var(--le-navy, #122A52);
  --ac-ok: #1A7F4B;
  --ac-ok-soft: #E3F3EA;
  --ac-ko: #B3261E;
  --ac-ko-soft: #FBE7E5;
  --ac-or: #E09F00;
  --ac-ombre: var(--le-ink, #10182E);
  --ac-r: 6px;
  --ac-cond: "Saira Condensed", "Saira Cond Fallback", "Arial Narrow", sans-serif;
  --ac-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --ac-mono: "Space Mono", ui-monospace, monospace;
  font-family: var(--ac-sans);
  color: var(--ac-ink);
  padding-bottom: 72px;
}
html.dark .lp-cours-section {
  --ac-paper: #0B1020;
  --ac-surface: #121A2E;
  --ac-surface-2: #1A2440;
  --ac-ink: #F0ECE1;
  --ac-body: rgba(240, 236, 225, .86);
  --ac-muted: rgba(240, 236, 225, .66);
  --ac-line: rgba(240, 236, 225, .18);
  --ac-rose-text: #F07B9F;
  --ac-navy: #16223C;
  --ac-ok: #4ADE80;
  --ac-ok-soft: #0E2018;
  --ac-ko: #F2A0A6;
  --ac-ko-soft: #2A1416;
  --ac-ombre: rgba(0, 0, 0, .55);
}

.ac-app { max-width: 1120px; margin: 0 auto; padding: 24px 16px 0; display: grid; gap: 22px; }
.ac-app * { box-sizing: border-box; }
.ac-app h2, .ac-app h3 { font-family: var(--ac-cond); text-transform: uppercase; letter-spacing: 0; line-height: .98; margin: 0; color: var(--ac-ink); }
.ac-app p { margin: 0; color: var(--ac-body); line-height: 1.6; }
.ac-icone { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ac-kicker { font-family: var(--ac-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-rose-text); font-weight: 700; }
.ac-kicker-clair { color: #FFB3C6; }
.ac-mini { display: block; font-family: var(--ac-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ac-muted); margin-bottom: 4px; }
.ac-lead { font-size: 1.08rem; }
.ac-note { font-size: .84rem; color: var(--ac-muted) !important; }
.ac-source { display: block; margin-top: 10px; font-family: var(--ac-mono); font-size: .66rem; letter-spacing: .04em; color: var(--ac-muted); }
.ac-chargement, .ac-vide { padding: 40px 0; text-align: center; color: var(--ac-muted); }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r);
  font-family: var(--ac-cond); font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; text-transform: uppercase;
  background: var(--ac-surface); color: var(--ac-ink); cursor: pointer; text-decoration: none; text-align: left;
  box-shadow: 3px 3px 0 var(--ac-ombre); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ac-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ac-ombre); }
.ac-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ac-ombre); }
.ac-btn:focus-visible, .ac-tuile:focus-visible, .ac-module:focus-visible, .ac-onglet:focus-visible, .ac-chip:focus-visible, .ac-segment-btn:focus-visible { outline: 3px solid var(--ac-rose); outline-offset: 3px; }
.ac-btn-primaire { background: var(--ac-rose); border-color: var(--ac-ink); color: #fff; }
.ac-btn-primaire:hover { background: #C43A62; }
.ac-btn-clair { background: transparent; color: #F2EDE2; border-color: #F2EDE2; box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.ac-btn-contour { background: transparent; }
.ac-btn-sm { min-height: 40px; padding: 7px 14px; font-size: .92rem; }
.ac-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ac-retour { background: none; border: 0; padding: 6px 0; min-height: 40px; font-family: var(--ac-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-muted); cursor: pointer; }
.ac-retour:hover { color: var(--ac-rose-text); }

/* ── Écrans d'accès ──────────────────────────────────────────────────────── */
.ac-gate { background: var(--ac-surface); border: 2px solid var(--ac-ink); border-radius: var(--ac-r); box-shadow: 5px 5px 0 var(--ac-ombre); padding: 28px 22px; display: grid; gap: 14px; justify-items: start; }
.ac-gate-titre { font-size: clamp(2rem, 6vw, 3.2rem); }

/* ── Bandeau d'accueil ───────────────────────────────────────────────────── */
.ac-hero {
  background: var(--ac-navy); color: #F2EDE2; border: 2px solid var(--ac-ink); border-radius: var(--ac-r);
  box-shadow: 5px 5px 0 var(--ac-rose); padding: 26px 22px; display: grid; gap: 22px;
  background-image: radial-gradient(rgba(242, 237, 226, .07) 1px, transparent 1.2px); background-size: 22px 22px;
}
.ac-hero-texte { display: grid; gap: 12px; justify-items: start; }
.ac-hero-titre { color: #F2EDE2 !important; font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
.ac-hero-lead { color: rgba(242, 237, 226, .86) !important; max-width: 56ch; }
.ac-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ac-hero-actions .ac-btn-primaire { max-width: 100%; }
.ac-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-stat { background: rgba(242, 237, 226, .07); border: 1.5px solid rgba(242, 237, 226, .22); border-radius: var(--ac-r); padding: 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ac-stat-label { font-family: var(--ac-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 237, 226, .7); }
.ac-stat-valeur { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; font-family: var(--ac-cond); font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; color: #fff; overflow-wrap: anywhere; }
.ac-stat-sous { font-size: .76rem; color: rgba(242, 237, 226, .72); }

.ac-barre { height: 8px; background: var(--ac-surface-2); border: 1.5px solid var(--ac-ink); border-radius: 99px; overflow: hidden; }
.ac-barre span { display: block; height: 100%; background: var(--mod, var(--ac-rose)); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.ac-barre-clair { background: rgba(242, 237, 226, .14); border-color: rgba(242, 237, 226, .4); }
.ac-barre-clair span { background: #FFB703; }

/* ── Cartes d'action ─────────────────────────────────────────────────────── */
.ac-actions { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-action { background: var(--ac-surface); border: 2px solid var(--ac-ink); border-radius: var(--ac-r); box-shadow: 3px 3px 0 var(--ac-ombre); padding: 16px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.ac-action.is-chaude { border-color: var(--ac-rose); box-shadow: 3px 3px 0 var(--ac-rose); }
.ac-action.is-fait { opacity: .9; }
.ac-action-titre { font-family: var(--ac-cond); font-size: 1.3rem; text-transform: uppercase; line-height: 1.02; }
.ac-action-texte { font-size: .9rem; }
.ac-badge-ok { font-family: var(--ac-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-ok); border: 1.5px solid var(--ac-ok); padding: 4px 8px; border-radius: 99px; }

/* ── Onglets et recherche ────────────────────────────────────────────────── */
.ac-barre-outils { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; position: sticky; top: 64px; z-index: 5; background: var(--ac-paper); padding: 8px 0; border-bottom: 2px solid var(--ac-ink); }
.ac-onglets { display: inline-flex; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); overflow: hidden; }
.ac-onglet { min-height: 42px; padding: 8px 16px; border: 0; background: var(--ac-surface); font-family: var(--ac-cond); font-weight: 800; text-transform: uppercase; font-size: 1rem; color: var(--ac-ink); cursor: pointer; }
.ac-onglet + .ac-onglet { border-left: 2px solid var(--ac-ink); }
.ac-onglet[aria-selected='true'] { background: var(--ac-ink); color: var(--ac-paper); }
.ac-recherche { flex: 1 1 260px; max-width: 420px; }
.ac-recherche-champ { width: 100%; min-height: 42px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-surface); color: var(--ac-ink); padding: 8px 12px; font: inherit; font-size: 16px; }
.ac-resultats-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Niveaux et tuiles de cours ──────────────────────────────────────────── */
.ac-niveau { display: grid; gap: 12px; }
.ac-niveau-tete { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 8px; border-bottom: 1.5px solid var(--ac-line); }
.ac-niveau-num { width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--ac-cond); font-size: 1.8rem; font-weight: 800; background: var(--ac-ink); color: var(--ac-paper); border-radius: var(--ac-r); }
.ac-niveau.is-courant .ac-niveau-num { background: var(--ac-rose); color: #fff; }
.ac-niveau-nom h3 { font-size: 1.6rem; }
.ac-niveau-nom p { font-size: .86rem; color: var(--ac-muted); }
.ac-niveau-prog { display: grid; gap: 4px; min-width: 110px; font-family: var(--ac-mono); font-size: .72rem; text-align: right; }

.ac-grille { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ac-tuile {
  position: relative; display: grid; gap: 7px; align-content: start; text-align: left; cursor: pointer;
  background: var(--ac-surface); color: var(--ac-ink); font: inherit;
  border: 2px solid var(--ac-ink); border-left: 7px solid var(--mod, var(--ac-rose)); border-radius: var(--ac-r);
  box-shadow: 3px 3px 0 var(--ac-ombre); padding: 13px 14px 12px; min-height: 152px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ac-tuile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ac-ombre); }
.ac-tuile.is-fait { background: color-mix(in srgb, var(--mod) 8%, var(--ac-surface)); }
.ac-tuile.is-verrou { opacity: .78; }
.ac-tuile-haut { display: flex; justify-content: space-between; gap: 8px; font-family: var(--ac-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-muted); }
.ac-tuile-module { display: inline-flex; align-items: center; gap: 4px; color: var(--ac-ink); font-weight: 700; }
.ac-tuile-module .ac-icone { color: var(--mod); }
.ac-tuile-titre { font-family: var(--ac-cond); font-size: 1.32rem; font-weight: 800; text-transform: uppercase; line-height: 1.02; }
.ac-tuile-accroche { font-size: .86rem; line-height: 1.45; color: var(--ac-body); }
.ac-tuile-bas { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.ac-tuile-etat { font-family: var(--ac-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); }
.ac-tuile-pass { font-family: var(--ac-mono); font-size: .66rem; text-transform: uppercase; color: var(--ac-rose-text); font-weight: 700; }
.ac-tag { font-family: var(--ac-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ac-line); border-radius: 99px; padding: 2px 7px; color: var(--ac-muted); }
.ac-tag-pass { border-color: var(--ac-rose-text); color: var(--ac-rose-text); }
.ac-etoiles-mini { letter-spacing: 1px; font-size: 1rem; }
.ac-etoiles-mini .pleine { color: var(--ac-or); }
.ac-etoiles-mini .vide { color: var(--ac-line); }

/* ── Parcours thématiques ────────────────────────────────────────────────── */
.ac-modules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ac-module {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; text-align: left; cursor: pointer; font: inherit;
  background: var(--ac-surface); color: var(--ac-ink); border: 2px solid var(--ac-ink); border-radius: var(--ac-r);
  box-shadow: 3px 3px 0 var(--mod); padding: 14px; transition: transform .12s ease, box-shadow .12s ease;
}
.ac-module:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--mod); }
.ac-module-pastille { position: relative; width: 52px; height: 52px; display: grid; place-items: center; color: var(--mod); }
.ac-module-pastille .ac-anneau { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-anneau .fond { stroke: var(--ac-line); stroke-width: 4; }
.ac-anneau .arc { stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .9s ease; }
.ac-module-texte { display: grid; gap: 4px; }
.ac-module-nom { font-family: var(--ac-cond); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.ac-module-desc { font-size: .86rem; color: var(--ac-body); line-height: 1.45; }
.ac-module-meta { font-family: var(--ac-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); }
.ac-module-detail { display: grid; gap: 8px; justify-items: start; padding: 18px; background: var(--ac-surface); border: 2px solid var(--ac-ink); border-radius: var(--ac-r); box-shadow: 4px 4px 0 var(--mod); }
.ac-module-detail-titre { display: flex; align-items: center; gap: 12px; }
.ac-module-detail-titre h3 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.ac-chemin { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.ac-chemin::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 3px; background: var(--ac-line); }
.ac-chemin-pas { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; position: relative; }
.ac-chemin-num { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-surface); border: 2px solid var(--ac-ink); font-family: var(--ac-cond); font-weight: 800; font-size: 1.2rem; z-index: 1; }
.ac-chemin-pas.is-fait .ac-chemin-num { background: var(--mod); color: var(--mod-ink, #fff); border-color: var(--ac-ink); }
.ac-chemin .ac-tuile { min-height: 0; }

/* ── Pass Joueur ─────────────────────────────────────────────────────────── */
.ac-pass { border: 2px dashed var(--ac-rose); border-radius: var(--ac-r); padding: 18px; display: grid; gap: 10px; background: color-mix(in srgb, var(--ac-rose) 5%, var(--ac-paper)); }
.ac-pass-tete { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; }
.ac-pass-prix { font-family: var(--ac-cond); font-size: 1.4rem; text-transform: uppercase; }
.ac-pass-liste { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ac-body); }
.ac-pass:not(.is-compact) { border-style: solid; box-shadow: 4px 4px 0 var(--ac-rose); background: var(--ac-surface); }

/* ── Pages simples (badges, test, révisions, pass) ───────────────────────── */
.ac-page-tete { display: grid; gap: 8px; justify-items: start; }
.ac-page-tete h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
.ac-badges { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ac-badge { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 12px; border: 2px dashed var(--ac-line); border-radius: var(--ac-r); color: var(--ac-muted); }
.ac-badge strong { font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.1rem; color: var(--ac-muted); }
.ac-badge span:last-child { font-size: .8rem; }
.ac-badge-medaille { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ac-line); font-size: 1.4rem; color: var(--ac-line); }
.ac-badge.is-ok { border: 2px solid var(--ac-ink); background: var(--ac-surface); box-shadow: 3px 3px 0 var(--mod, var(--ac-or)); color: var(--ac-body); }
.ac-badge.is-ok strong { color: var(--ac-ink); }
.ac-badge.is-ok .ac-badge-medaille { border-color: var(--ac-ink); background: var(--mod, var(--ac-or)); color: var(--mod-ink, #fff); }

.ac-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 9998; background: var(--le-navy, #122A52); color: #fff; border: 2px solid #10182E; border-radius: 6px; box-shadow: 4px 4px 0 #FFB703; padding: 12px 18px; display: grid; gap: 2px; text-align: center; animation: ac-toast .35s cubic-bezier(.2, .7, .2, 1.3) both; }
.ac-toast strong { font-family: "Saira Condensed", sans-serif; text-transform: uppercase; font-size: 1.3rem; }
.ac-toast.is-sortie { opacity: 0; transition: opacity .5s ease; }
@keyframes ac-toast { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ── Lecteur de cours ────────────────────────────────────────────────────── */
.ac-cours-tete { display: grid; gap: 12px; }
.ac-cours-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-cours-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-chip, .ac-chip-mod { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ac-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border: 1.5px solid var(--ac-ink); border-radius: 99px; background: var(--ac-surface); color: var(--ac-ink); }
.ac-chip-mod { background: var(--mod); color: var(--mod-ink, #fff); border-color: var(--ac-ink); font-weight: 700; }
button.ac-chip { cursor: pointer; min-height: 34px; }
button.ac-chip[aria-pressed='true'] { background: var(--ac-ink); color: var(--ac-paper); }
.ac-cours-titre { font-size: clamp(2.2rem, 7vw, 4rem); }
.ac-objectifs { background: var(--ac-surface); border: 1.5px solid var(--ac-line); border-left: 5px solid var(--mod); border-radius: var(--ac-r); padding: 12px 14px; }
.ac-objectifs strong { font-family: var(--ac-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.ac-objectifs ul { margin: 6px 0 0; padding-left: 20px; color: var(--ac-body); display: grid; gap: 2px; }

.ac-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.ac-etape { display: grid; justify-items: center; gap: 4px; padding-top: 8px; border-top: 4px solid var(--ac-line); font-family: var(--ac-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ac-muted); text-align: center; }
.ac-etape-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 700; }
.ac-etape.is-fait { border-top-color: var(--mod); color: var(--ac-ink); }
.ac-etape.is-fait .ac-etape-n { background: var(--mod); color: var(--mod-ink, #fff); border-color: var(--mod); }
.ac-etape[aria-current='step'] { border-top-color: var(--ac-ink); color: var(--ac-ink); font-weight: 700; }
.ac-etape[aria-current='step'] .ac-etape-n { background: var(--ac-ink); color: var(--ac-paper); }

.ac-panneau { background: var(--ac-surface); border: 2px solid var(--ac-ink); border-radius: var(--ac-r); box-shadow: 5px 5px 0 var(--mod, var(--ac-ombre)); padding: 20px 18px; display: grid; gap: 16px; min-width: 0; }
.ac-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.ac-segments span { height: 6px; border-radius: 99px; background: var(--ac-line); }
.ac-segments .is-fait { background: var(--mod); }
.ac-segments .is-courant { background: var(--ac-ink); }

.ac-carte { display: grid; gap: 12px; min-width: 0; }
.ac-carte.is-entree { animation: ac-entree .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ac-entree { from { opacity: 0; transform: translateX(18px); } }
.ac-carte h3 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
.ac-carte p { font-size: 1.04rem; max-width: 68ch; }
.ac-reperes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: rep; }
.ac-reperes li { counter-increment: rep; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--ac-paper); border: 1.5px solid var(--ac-line); border-radius: var(--ac-r); color: var(--ac-body); line-height: 1.5; }
.ac-reperes li::before { content: counter(rep); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--mod); color: var(--mod-ink, #fff); font-family: var(--ac-cond); font-weight: 800; }
.ac-erreurs { display: grid; gap: 10px; }
.ac-erreur { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ac-line); border-radius: var(--ac-r); overflow: hidden; }
.ac-erreur p { padding: 10px 12px; font-size: .94rem; }
.ac-erreur-sympt { background: var(--ac-ko-soft); }
.ac-erreur-corr { background: var(--ac-ok-soft); }
.ac-chiffre { display: grid; gap: 8px; padding: 20px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-paper); }
.ac-chiffre-valeur { font-family: var(--ac-cond); font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: .9; color: var(--mod, var(--ac-rose)); }
.ac-tableau-wrap { overflow-x: auto; border: 1.5px solid var(--ac-ink); border-radius: var(--ac-r); }
.ac-tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ac-tableau th, .ac-tableau td { padding: 9px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ac-line); color: var(--ac-body); }
.ac-tableau thead th { background: var(--ac-ink); color: var(--ac-paper); font-family: var(--ac-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.ac-tableau tbody th { font-weight: 700; color: var(--ac-ink); }
.ac-tableau tbody tr:last-child > * { border-bottom: 0; }
.ac-schema svg { width: 100%; height: auto; max-height: 340px; }
.ac-contacts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ac-check { border: 1.5px dashed var(--ac-line); border-radius: var(--ac-r); padding: 12px; }

.ac-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 6px; border-top: 1.5px solid var(--ac-line); }
.ac-nav-compte { text-align: center; font-family: var(--ac-mono); font-size: .72rem; color: var(--ac-muted); }
.ac-nav-fin { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.ac-quiz-tete { display: grid; gap: 8px; }
.ac-question { display: grid; gap: 12px; }
.ac-question h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.ac-chrono-ligne { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.ac-chrono-texte { font-family: var(--ac-mono); font-weight: 700; font-size: .8rem; color: var(--ac-rose-text); }
.ac-chrono { height: 10px; border: 1.5px solid var(--ac-ink); border-radius: 99px; overflow: hidden; background: var(--ac-paper); }
.ac-chrono span { display: block; height: 100%; width: 100%; background: var(--ac-rose); transition: width .1s linear; }

.ac-situation { padding: 14px; border-left: 5px solid var(--mod); background: var(--ac-paper); border-radius: var(--ac-r); }
.ac-situation p { font-size: 1.05rem; }
.ac-suite { padding: 14px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-navy); }
.ac-suite .ac-mini { color: #FFB3C6; }
.ac-suite strong { display: block; font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.ac-suite p { color: rgba(242, 237, 226, .88) !important; }

.ac-terrain { display: grid; gap: 10px; }
.ac-terrain-bloc { padding: 12px 14px; border: 1.5px solid var(--ac-line); border-radius: var(--ac-r); background: var(--ac-paper); }
.ac-sources { font-size: .84rem; color: var(--ac-muted); }
.ac-sources summary { cursor: pointer; font-family: var(--ac-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.ac-sources ul { margin: 6px 0 0; padding-left: 18px; }

.ac-bilan { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 16px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-paper); }
.ac-bilan-chiffre { font-family: var(--ac-cond); font-size: 1.6rem; }
.ac-bilan-score { font-size: 4.2rem; line-height: .9; color: var(--mod); }
.ac-bilan-droite { display: grid; gap: 6px; }
.ac-bilan-xp { font-family: var(--ac-cond); font-size: 1.5rem !important; text-transform: uppercase; color: var(--ac-ink) !important; }
.ac-bilan-badges { padding: 12px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: #FFF4D6; color: #10182E; }
.ac-bilan-badges strong { font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.2rem; display: block; }
.ac-bilan-badges .ac-mini { color: #6B5310; }

/* ── Ralenti, vignettes et atelier ───────────────────────────────────────── */
.ac-ralenti { margin: 0; display: grid; gap: 10px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); padding: 12px; background: var(--ac-paper); }
.ac-ralenti-tete { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ac-ralenti-tete strong { font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.2rem; }
.ac-ralenti-svg, .ac-atelier-svg, .ac-contact-svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.ac-ralenti-svg { max-height: 50vh; }
.ac-ralenti-commandes { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.ac-ralenti-commandes .ac-segment { grid-column: 1 / -1; }
.ac-btn-jouer { min-width: 92px; }
.ac-ralenti-curseur, .ac-atelier input[type='range'] { width: 100%; accent-color: var(--ac-rose); min-height: 32px; }
.ac-segment { display: inline-flex; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); overflow: hidden; justify-self: start; }
.ac-segment-btn { min-height: 36px; padding: 6px 10px; border: 0; background: var(--ac-surface); color: var(--ac-ink); font-family: var(--ac-mono); font-size: .68rem; text-transform: uppercase; cursor: pointer; }
.ac-segment-btn + .ac-segment-btn { border-left: 2px solid var(--ac-ink); }
.ac-segment-btn[aria-pressed='true'] { background: var(--ac-ink); color: var(--ac-paper); }
.ac-ralenti-phases { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-ralenti-legende { padding: 10px 12px; background: var(--ac-surface); border-left: 5px solid var(--ac-rose); border-radius: 4px; min-height: 86px; }
.ac-ralenti-legende strong { font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.15rem; }
.ac-ralenti-legende p { font-size: .96rem; }

.rl-fond { fill: var(--ac-surface); }
.rl-sol { stroke: var(--ac-line); stroke-width: 2; }
.rl-table { fill: var(--ac-navy); }
html.dark .lp-cours-section .rl-table { fill: #3C5A8F; }
.rl-pied { stroke: var(--ac-navy); stroke-width: 4; }
html.dark .lp-cours-section .rl-pied { stroke: #3C5A8F; }
.rl-filet { stroke: var(--ac-ink); stroke-width: 3; }
.rl-legende { font-family: var(--ac-mono); font-size: 9px; fill: var(--ac-muted); }
.rl-corps line, .rl-corps polyline, .rl-corps circle { stroke: var(--ac-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.rl-corps .rl-tete { fill: var(--ac-surface); }
.rl-arriere { opacity: .4; }
.rl-bras { stroke: var(--ac-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rl-palette { stroke: var(--ac-rose); stroke-width: 7; stroke-linecap: round; }
.rl-balle { fill: #FFB703; stroke: #10182E; stroke-width: 1.5; }
.rl-trajet { fill: none; stroke: var(--ac-ink); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .32; }
.rl-trajet-depart { stroke: var(--ac-rose); opacity: .6; }
.rl-sillage { stroke: var(--ac-rose); stroke-width: 2; opacity: .22; }
.rl-onde { fill: none; stroke: var(--ac-rose); stroke-width: 2; opacity: 0; transition: opacity .1s; }
.rl-onde.is-on { opacity: 1; }
.rl-geste { fill: none; stroke: var(--ac-ink); stroke-width: 3; }
.rl-pointe { fill: var(--ac-ink); }
.rl-trajet-atelier { stroke-width: 3; stroke-dasharray: none; opacity: 1; }
.rl-trajet-atelier[data-verdict='bon'] { stroke: var(--ac-ok); }
.rl-trajet-atelier[data-verdict='filet'], .rl-trajet-atelier[data-verdict='long'] { stroke: var(--ac-ko); }

.ac-contact { margin: 0; display: grid; gap: 4px; border: 1.5px solid var(--ac-line); border-radius: var(--ac-r); padding: 8px; background: var(--ac-paper); }
.ac-atelier { display: grid; gap: 10px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); padding: 12px; background: var(--ac-paper); }
.ac-atelier-titre { font-size: 1.02rem; }
.ac-atelier-ligne { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.ac-atelier-label { font-family: var(--ac-mono); font-size: .7rem; text-transform: uppercase; }
.ac-atelier-valeur { grid-column: 1 / -1; font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.15rem; }
.ac-atelier-verdict { font-weight: 700; padding: 8px 10px; border-radius: 4px; }
.ac-atelier-verdict[data-verdict='bon'] { background: var(--ac-ok-soft); color: var(--ac-ok) !important; }
.ac-atelier-verdict[data-verdict='filet'], .ac-atelier-verdict[data-verdict='long'] { background: var(--ac-ko-soft); color: var(--ac-ko) !important; }

/* Questions partagées avec le carnet du coach : réglages propres à l'Académie. */
.lp-cours-section .cl-option { min-height: 48px; border-radius: var(--ac-r); }
.lp-cours-section .cl-feedback { border-radius: var(--ac-r); }

/* ── Mise en page large ──────────────────────────────────────────────────── */
@media (min-width: 860px) {
  .ac-app { padding-top: 32px; gap: 28px; }
  .ac-hero { grid-template-columns: 1.4fr 1fr; padding: 34px 32px; align-items: center; }
  .ac-hero-stats { grid-template-columns: 1fr; }
  .ac-panneau { padding: 28px 30px; }
}

/* ── Téléphone ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .ac-actions { grid-template-columns: 1fr; }
  .ac-barre-outils { top: 56px; }
  .ac-onglets { width: 100%; }
  .ac-onglet { flex: 1; }
  .ac-recherche { max-width: none; flex-basis: 100%; }
  .ac-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ac-stat { padding: 9px; }
  .ac-stat-valeur { font-size: 1.05rem; }
  .ac-niveau-tete { grid-template-columns: auto 1fr; }
  .ac-niveau-prog { grid-column: 1 / -1; text-align: left; }
  .ac-erreur { grid-template-columns: 1fr; }
  .ac-etape-nom { display: none; }
  .ac-etape[aria-current='step'] .ac-etape-nom { display: block; }
  .ac-nav { grid-template-columns: 1fr 1fr; }
  .ac-nav-compte { display: none; }
  .ac-nav > :last-child { justify-self: end; }
  .ac-bilan { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .ac-hero-actions .ac-btn { width: 100%; }
  .ac-app { padding-left: 12px; padding-right: 12px; }
  .ac-panneau { padding: 16px 12px; box-shadow: 3px 3px 0 var(--mod, var(--ac-ombre)); }
  .ac-ralenti, .ac-atelier { padding: 8px; }
  .ac-cours-titre { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ac-carte.is-entree, .ac-toast { animation: none; }
  .ac-btn, .ac-tuile, .ac-module, .ac-barre span { transition: none; }
}

/* ── Entraîner l'œil ─────────────────────────────────────────────────────── */
.oe-partie { display: grid; gap: 12px; }
.oe-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--ac-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ac-muted); }
.oe-score { font-family: var(--ac-cond); font-size: 1.4rem; color: var(--ac-ink); letter-spacing: 0; }
.oe-serie { color: #E85D04; font-weight: 700; }
.oe-cadre { position: relative; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); overflow: hidden; background: var(--ac-surface); justify-self: center; width: 100%; }
.oe-cadre-effet { max-width: 640px; }
/* Scènes verticales : largeur bornée par la hauteur d'écran, pour que les réponses restent visibles sous la scène sur téléphone. */
.oe-cadre-longueur { max-width: min(340px, calc(52vh * 280 / 440)); }
.oe-cadre-direction { max-width: min(340px, calc(52vh * 280 / 510)); }
.oe-svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.oe-rideau { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #122A52 0 14px, #16305D 14px 28px); opacity: 0; pointer-events: none; transition: opacity .06s linear; }
.oe-rideau.is-on { opacity: 1; }
.oe-rideau-texte { font-family: var(--ac-cond); font-size: 4rem; color: #F2EDE2; font-weight: 800; }
.oe-chrono { height: 8px; border-radius: 99px; background: var(--ac-surface-2); overflow: hidden; visibility: hidden; }
.oe-chrono.is-on { visibility: visible; }
.oe-chrono span { display: block; height: 100%; width: 100%; background: var(--ac-rose); }
.oe-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.oe-option { min-height: 54px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-surface); color: var(--ac-ink); font-family: var(--ac-cond); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 var(--ac-ombre); }
.oe-option:not(:disabled):hover { background: var(--ac-ink); color: var(--ac-paper); }
.oe-option:disabled { cursor: default; opacity: .55; box-shadow: none; }
.oe-option.is-ok { opacity: 1; background: var(--ac-ok-soft); border-color: var(--ac-ok); color: var(--ac-ok); }
.oe-option.is-ko { opacity: 1; background: var(--ac-ko-soft); border-color: var(--ac-ko); color: var(--ac-ko); }
.oe-retour { min-height: 0; }
.oe-retour.is-ok, .oe-retour.is-ko { padding: 10px 12px; border-radius: var(--ac-r); border-left: 5px solid; }
.oe-retour.is-ok { background: var(--ac-ok-soft); border-color: var(--ac-ok); }
.oe-retour.is-ko { background: var(--ac-ko-soft); border-color: var(--ac-ko); }
.oe-retour strong { font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.2rem; }
.oe-bas { display: flex; justify-content: flex-end; }
.oe-fond { fill: var(--ac-surface); }
.oe-table { fill: #1F4E8C; }
html.dark .lp-cours-section .oe-table { fill: #24508F; }
.oe-ligne-centre { stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; }
.oe-filet-dessus { stroke: #10182E; stroke-width: 4; }
html.dark .lp-cours-section .oe-filet-dessus { stroke: #F0ECE1; }
.oe-legende { font-family: var(--ac-mono); font-size: 10px; fill: var(--ac-muted); }
.oe-arc { fill: none; stroke: var(--ac-line); stroke-width: 2; stroke-dasharray: 3 5; }
.oe-bras, .oe-bras-dessus { stroke: var(--ac-ink); stroke-width: 6; stroke-linecap: round; }
.oe-palette { stroke: var(--ac-rose); stroke-width: 9; stroke-linecap: round; }
.oe-balle { fill: #FFB703; stroke: #10182E; stroke-width: 1.5; }
.oe-ombre { fill: rgba(0, 0, 0, .28); }
.oe-impact { fill: none; stroke: #FFB703; stroke-width: 3; }
.oe-impact-2 { stroke: #fff; stroke-dasharray: 3 3; }
.oe-epaules { stroke: var(--ac-ink); stroke-width: 9; stroke-linecap: round; }
.oe-tete { fill: var(--ac-surface); stroke: var(--ac-ink); stroke-width: 4; }
.oe-hub { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.oe-carte { display: grid; gap: 8px; align-content: start; text-align: left; font: inherit; color: var(--ac-ink); cursor: pointer; padding: 16px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-navy); box-shadow: 4px 4px 0 #FFB703; transition: transform .12s ease, box-shadow .12s ease; }
.oe-carte:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #FFB703; }
.oe-carte * { color: #F2EDE2; }
.oe-carte-titre { font-family: var(--ac-cond); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.oe-carte-texte { font-size: .88rem; opacity: .88; line-height: 1.45; }
.oe-carte-meta { font-family: var(--ac-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #FFD166 !important; }
.oe-carte.is-video { background: var(--ac-surface); box-shadow: 4px 4px 0 var(--ac-rose); }
.oe-carte.is-video * { color: var(--ac-ink); }
.oe-carte.is-video .oe-carte-meta { color: var(--ac-rose-text) !important; }
.oe-resultat { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-paper); }
.oe-resultat-score { font-family: var(--ac-cond); font-size: 4rem; line-height: .9; color: var(--ac-rose); }
.oe-reglages { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .9rem; }

/* ── La raquette dessinée (joueur-raquette.js) ───────────────────────────── */
.rq-manche { fill: #C8955A; stroke: #10182E; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.rq-manche-ligne { stroke: rgba(16, 24, 46, .35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rq-bois { fill: #E4C590; stroke: #10182E; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rq-coupdroit { fill: #D62828; }
.rq-revers { fill: #1C1C1C; }
.rq-face-revers .rq-coupdroit { fill: #1C1C1C; }
.rq-face-revers .rq-revers { fill: #D62828; }
html.dark .lp-cours-section .rq-bois, html.dark .lp-cours-section .rq-manche { stroke: #F0ECE1; }
html.dark .lp-cours-section .rq-revers, html.dark .lp-cours-section .rq-face-revers .rq-coupdroit { fill: #3A3A3A; }
.rq-coupdroit { stroke: #7A1010; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rq-revers { stroke: #000; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rq-face-revers .rq-coupdroit { stroke: #000; }
.rq-face-revers .rq-revers { stroke: #7A1010; }
.rq-reflet { fill: rgba(255, 255, 255, .18); }
.oe-loupe-fond { fill: var(--ac-surface, #FBF8F1); stroke: var(--ac-ink, #10182E); stroke-width: 2.5; }

/* ── Accueil : entraîner l'œil, Pass+, atelier ───────────────────────────── */
.ac-action-plus { border-color: #E09F00; box-shadow: 3px 3px 0 #E09F00; }
.ac-atelier-acces { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 2px dashed var(--ac-ink); border-radius: var(--ac-r); }
.ac-tag-nouveau { border-color: #E85D04; color: #B54400; font-weight: 700; }
html.dark .lp-cours-section .ac-tag-nouveau { color: #FFB86B; }

/* ── Vidéos ──────────────────────────────────────────────────────────────── */
.ac-video { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); overflow: hidden; background: #000; }
.ac-video-iframe { width: 100%; height: 100%; border: 0; display: block; }
.ac-video-facade { width: 100%; height: 100%; border: 0; cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; }
.ac-video-play { padding: 10px 18px; background: var(--ac-rose); color: #fff; border: 2px solid #10182E; border-radius: var(--ac-r); font-family: var(--ac-cond); font-weight: 800; text-transform: uppercase; box-shadow: 3px 3px 0 #10182E; }
.ac-videos-theme { display: grid; gap: 10px; }
.ac-videos-tete { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ac-videos-tete h3, .ac-videos-theme > h3 { font-size: 1.6rem; }
.ac-consigne-video { padding: 10px 12px; border-left: 5px solid var(--ac-rose); background: var(--ac-surface); border-radius: 4px; }
.ac-videos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ac-video-carte { display: grid; gap: 6px; align-content: start; text-align: left; font: inherit; color: var(--ac-ink); background: var(--ac-surface); border: 2px solid var(--ac-ink); border-radius: var(--ac-r); padding: 0 0 10px; overflow: hidden; cursor: pointer; box-shadow: 3px 3px 0 var(--ac-ombre); transition: transform .12s ease; }
.ac-video-carte:hover { transform: translate(-2px, -2px); }
.ac-video-carte.is-ouverte { outline: 3px solid var(--ac-rose); }
.ac-video-carte.is-fait .ac-video-vignette::after { content: '✓ fait'; position: absolute; top: 6px; left: 6px; background: var(--ac-ok); color: #fff; font-family: var(--ac-mono); font-size: .62rem; padding: 2px 6px; border-radius: 99px; }
.ac-video-vignette { position: relative; display: block; aspect-ratio: 16 / 9; background: #10182E center / cover no-repeat; border-bottom: 2px solid var(--ac-ink); }
.ac-video-titre { padding: 0 10px; font-size: .86rem; font-weight: 700; line-height: 1.3; }
.ac-video-chaine { padding: 0 10px; font-family: var(--ac-mono); font-size: .62rem; text-transform: uppercase; color: var(--ac-muted); }
.ac-video-ouverte { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-surface); box-shadow: 4px 4px 0 var(--ac-rose); }
.ac-clips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ac-clip { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-surface); }
.ac-clip-question { font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.2rem; }
.ac-clip-zone { display: grid; gap: 8px; }

/* ── Formulaires (Pass+, atelier) ────────────────────────────────────────── */
.ac-champ { display: grid; gap: 6px; }
.ac-champ-label { font-family: var(--ac-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ac-input { width: 100%; min-height: 44px; padding: 9px 11px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-surface); color: var(--ac-ink); font: inherit; font-size: 16px; }
textarea.ac-input { resize: vertical; }
.ac-case { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ac-body); }
.ac-case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ac-rose); flex: none; }
.ac-video-locale { width: 100%; max-height: 50vh; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: #000; }
.ac-vignettes { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.ac-vignette { width: 100%; border: 1.5px solid var(--ac-line); border-radius: 4px; }
.ac-conseils { padding: 10px 12px; background: var(--ac-paper); border: 1.5px solid var(--ac-line); border-radius: var(--ac-r); }
.ac-conseils ul { margin: 6px 0 0; padding-left: 18px; color: var(--ac-body); }
.ac-analyse { display: grid; gap: 10px; }
.ac-priorite { border-left: 5px solid var(--ac-rose); }
.ac-priorite strong { display: block; font-family: var(--ac-cond); text-transform: uppercase; font-size: 1.3rem; }
.ac-consigne { font-family: var(--ac-cond); text-transform: uppercase; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.05; color: var(--ac-ink); }
.ac-exercice { padding: 8px 0; border-top: 1px solid var(--ac-line); }
.ac-liens-cours { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-demandes { display: grid; gap: 8px; }
.ac-demande { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; text-align: left; font: inherit; color: var(--ac-ink); padding: 10px 12px; border: 2px solid var(--ac-ink); border-radius: var(--ac-r); background: var(--ac-surface); cursor: pointer; }
.ac-brouillon { display: grid; gap: 10px; }
.ac-ligne-2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

/* ── Contrastes en mode sombre (vérifiés sur les 1 182 écrans des 90 cours) ── */
/* Grands chiffres à la couleur du parcours : éclaircis sur fond sombre (le violet du service était illisible). */
html.dark .lp-cours-section :is(.ac-chiffre-valeur, .ac-bilan-score) { color: color-mix(in srgb, var(--mod, var(--ac-rose)) 55%, #fff); }
/* Bouton « Vérifier » des quiz : rose plus soutenu sous le texte blanc. */
.lp-cours-section .btn.rose.cl-check { background: #B5365B; border-color: #B5365B; color: #fff; }
/* Pas de clavier sur téléphone : l'aide aux touches 1-4 n'a rien à y faire. */
@media (hover: none) and (pointer: coarse) { .ac-note-clavier { display: none; } }

/* ── Accueil simplifié et « S'entraîner autrement » dans les parcours ─────── */
button.ac-stat-lien { font: inherit; text-align: left; cursor: pointer; color: inherit; }
button.ac-stat-lien:hover, button.ac-stat-lien:focus-visible { background: rgba(242, 237, 226, .14); }
.ac-lien { font: inherit; background: none; border: 0; padding: 0; color: var(--ac-rose-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ac-lien-videos { text-align: center; }
.ac-entrainer { display: grid; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 2px solid var(--ac-ink); }
.ac-entrainer h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.ac-defis { display: grid; gap: 10px; }
.ac-defi { display: grid; gap: 6px; justify-items: start; padding: 14px; border: 1.5px solid var(--ac-line); border-left: 5px solid var(--mod, var(--ac-rose)); border-radius: var(--ac-r); background: var(--ac-surface); }
.ac-defi p { margin: 0; color: var(--ac-body); }
.ac-defi.is-fait { opacity: .8; }
.ac-duel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
