/* E-learning (EPIC 14) : page « Apprendre », mobile d'abord. Un écran par étape, texte court,
   illustration au-dessus, bouton « Continuer › » pleine largeur. Palette du site. */
:root { --bg: #0f1512; --panel: #16201b; --line: rgba(255,255,255,.10); --txt: #f3ede0; --dim: rgba(243,237,224,.72);
        --gold: #e8c464; --green: #3dd68c; --red: #ff6b6b; --felt: #1d3b30; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--tv-fond-bg); color: var(--tv-encre-txt); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ln-top { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; border-bottom: 1px solid var(--tv-trait-line); position: sticky; top: 0; background: var(--tv-fond-bg); z-index: 5; }
.ln-brand { font-weight: 800; letter-spacing: .12em; color: var(--tv-encre-txt); text-decoration: none; font-size: 14px; }
.ln-brand span { color: var(--tv-encre-gold); font-weight: 400; }
/* sortir vers le jeu à tout moment (retour du 09/09) : la marque est un lien, « Jouer › » le dit */
.ln-brand-go { font-style: normal; font-weight: 600; letter-spacing: 0; font-size: 12px; color: var(--tv-encre-gold); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 8px; margin-left: 4px; white-space: nowrap; }
.ln-brand-go::after { content: " ›"; }
.ln-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-btn { border: 1px solid var(--gold); background: var(--gold); color: #1a1408; border-radius: 12px; padding: 12px 16px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; }
.ln-btn.ghost { background: transparent; color: var(--tv-encre-txt); border-color: var(--tv-trait-line); width: auto; padding: 8px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ln-btn.mini { width: auto; padding: 8px 14px; font-size: 14px; }
.ln-btn:disabled { opacity: .45; cursor: default; }
.ln-main { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 96px); }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
/* accueil des parcours */
.ln-card { background: var(--tv-fond-panel); border: 1px solid var(--tv-trait-line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.ln-card h2 { margin: 0 0 6px; font-size: 20px; }
.ln-card p { margin: 0 0 12px; color: var(--tv-encre-dim); }
.ln-card .ln-meta { font-size: 13px; color: var(--tv-encre-dim); margin-bottom: 10px; }
.ln-lessons { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ln-lessons li { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--tc-fond-ffffff-040); font-size: 14px; }
.ln-lessons li.done { color: var(--tv-encre-green); }
.ln-lessons li.cur { outline: 1px solid var(--gold); }
.ln-lessons li button { background: none; border: 0; color: var(--tv-encre-gold); font-weight: 600; cursor: pointer; }
.ln-note { font-size: 13px; color: var(--tv-encre-dim); }
/* leçon */
.ln-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ln-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--tc-fond-ffffff-080); overflow: hidden; }
.ln-bar::after { content: ""; display: block; height: 100%; width: var(--w, 0%); background: var(--gold); transition: width .3s; }
.ln-step { font-size: 12px; color: var(--tv-encre-dim); font-variant-numeric: tabular-nums; }
.ln-h { font-size: 22px; margin: 4px 0 10px; text-wrap: balance; }
.ln-text { font-size: 17px; line-height: 1.55; margin: 12px 0; max-width: 62ch; }
.ln-illu:empty { display: none; }
.ln-illu { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 10px 0; }
/* le bouton « Continuer › » reste visible en bas de l'écran, même sur un écran long (retour du 08/09 : impossible d'atteindre le bouton sous la barre de Safari) */
.ln-actions { display: grid; gap: 10px; margin-top: 14px; position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); padding-top: 10px; background: linear-gradient(to bottom, var(--tc-fond-0f1512-000), var(--tv-fond-bg) 60%); z-index: 3; pointer-events: none; }
.ln-actions > * { pointer-events: auto; }
/* barre collée au bas de l'écran : les boutons secondaires prennent le fond de la page, sinon ce qui défile dessous
   se lit à travers (« vous 200 » sous « Écran précédent », 17/11) */
.ln-actions .ln-btn.ghost { background: var(--tv-fond-bg); }
@keyframes blinkSoft { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.ln-btn.blink-soft { animation: blinkSoft 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ln-btn.blink-soft { animation: none; outline: 2px solid var(--tc-trait-ffffff); } }
/* cartes */
.ln-card-el { display: inline-flex; flex-direction: column; justify-content: space-between; width: 46px; height: 64px; border-radius: 6px; background: #f6f2e8; color: #1a1a1a; padding: 4px 5px; font-weight: 800; font-size: 16px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.35); position: relative; user-select: none; }
.ln-card-el.red { color: #c8262e; }
.ln-card-el .s { font-size: 20px; align-self: flex-end; }
.ln-card-el.mini { width: 28px; height: 38px; font-size: 11px; padding: 2px 3px; }
.ln-card-el.mini .s { font-size: 12px; }
.ln-card-el.big { width: 96px; height: 134px; font-size: 30px; padding: 8px 10px; }
.ln-card-el.big .s { font-size: 40px; }
.ln-card-el.sel { outline: 3px solid var(--gold); transform: translateY(-4px); }
.ln-card-el.good { outline: 3px solid var(--green); }
.ln-card-el.bad { outline: 3px solid var(--red); }
.ln-card-el.dimmed { opacity: .35; }
.ln-card-el.back { background: repeating-linear-gradient(45deg, #2a4a7a, #2a4a7a 4px, #24406a 4px, #24406a 8px); }
.ln-cards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ln-deck { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; width: 100%; }
.ln-suits { display: flex; gap: 14px; }
.ln-suit { text-align: center; font-size: 13px; color: var(--tv-encre-dim); }
.ln-suit b { display: block; font-size: 44px; line-height: 1.1; color: var(--tc-encre-f6f2e8); }
.ln-suit.red b { color: var(--tc-encre-ff6b6b); }
.ln-anatomy { display: flex; align-items: center; gap: 14px; }
.ln-anatomy .lbl { font-size: 13px; color: var(--tv-encre-dim); }
.ln-familles { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.ln-familles li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--tc-fond-ffffff-040); opacity: .35; font-size: 14px; }
.ln-familles li.on { opacity: 1; }
.ln-familles li .ln-cards { gap: 2px; }
/* table */
.ln-table { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / 1.08; }
.ln-felt { position: absolute; inset: 14% 12%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #2a5a45, var(--felt) 70%); border: 6px solid #3b2a17; box-shadow: inset 0 0 30px rgba(0,0,0,.4); }
.ln-seat { position: absolute; width: 64px; transform: translate(-50%, -50%); text-align: center; font-size: 12px; color: var(--tv-encre-dim); }
.ln-seat .av { width: 40px; height: 40px; margin: 0 auto 2px; border-radius: 50%; background: var(--tc-fond-243128); border: 2px solid var(--tv-trait-line); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ln-seat.vous .av { border-color: var(--gold); }
.ln-seat.parle .av { box-shadow: 0 0 0 4px rgba(232,196,100,.5); }
.ln-seat.couche { opacity: .4; }
.ln-seat.sel .av { border-color: var(--green); box-shadow: 0 0 0 4px rgba(61,214,140,.4); }
.ln-seat.pick { cursor: pointer; }
.ln-seat .chips { display: block; font-size: 11px; color: var(--gold); }
.ln-btnD { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1a1408; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); transition: left .6s, top .6s; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ln-board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 4px; }
.ln-pot { position: absolute; left: 50%; top: 64%; transform: translateX(-50%); background: var(--tc-voile-350); border: 1px solid var(--tv-trait-line); border-radius: 12px; padding: 3px 10px; font-size: 13px; color: var(--tv-encre-gold); }
.ln-heros { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 4px; }
.ln-blind { position: absolute; transform: translate(-50%, -50%); background: var(--gold); color: #1a1408; border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
/* actions */
.ln-actbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.ln-act { border: 1px solid var(--tv-trait-line); background: var(--tv-fond-panel); color: var(--tv-encre-txt); border-radius: 12px; padding: 12px 8px; font-weight: 700; font-size: 15px; opacity: .45; }
.ln-act.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,196,100,.35); }
.ln-act.fold { color: var(--tv-encre-red); }
.ln-act.raise { color: var(--tv-encre-gold); }
/* quiz */
.ln-q { font-weight: 600; margin: 8px 0; }
.ln-opts { display: grid; gap: 8px; }
.ln-opt { border: 1px solid var(--tv-trait-line); background: var(--tv-fond-panel); color: var(--tv-encre-txt); border-radius: 12px; padding: 12px 14px; text-align: left; font-size: 16px; cursor: pointer; }
.ln-opt.sel { border-color: var(--gold); }
.ln-opt.good { border-color: var(--green); background: rgba(61,214,140,.12); }
.ln-opt.bad { border-color: var(--red); background: rgba(255,107,107,.12); }
.ln-feedback { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.ln-feedback.ok { background: rgba(61,214,140,.14); color: var(--tv-encre-green); }
.ln-feedback.ko { background: rgba(255,107,107,.14); color: var(--tv-encre-red); }
.ln-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ln-hand { border: 1px solid var(--tv-trait-line); border-radius: 12px; padding: 10px 6px; background: var(--tv-fond-panel); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ln-hand .lbl { font-size: 13px; color: var(--tv-encre-dim); }
.ln-hand.good { border-color: var(--green); }
.ln-hand.bad { border-color: var(--red); }
.ln-score { font-size: 13px; color: var(--tv-encre-dim); margin-top: 6px; }
.ln-match { display: grid; gap: 8px; }
.ln-match-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ln-match-row select { border-radius: 10px; padding: 8px; background: var(--tv-fond-panel); color: var(--tv-encre-txt); border: 1px solid var(--tv-trait-line); font-size: 15px; }
.ln-match-row.good select { border-color: var(--green); }
.ln-match-row.bad select { border-color: var(--red); }
.ln-showdown { display: grid; gap: 10px; width: 100%; }
.ln-showdown .row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 6px 10px; border-radius: 10px; background: var(--tc-fond-ffffff-040); }
.ln-showdown .row.win { outline: 1px solid var(--green); }
.ln-showdown .who { font-size: 14px; }
.ln-showdown .verdict { font-size: 13px; color: var(--tv-encre-green); }
.ln-principes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.ln-principe { background: var(--tv-fond-panel); border: 1px solid var(--tv-trait-line); border-radius: 12px; padding: 10px; font-size: 13px; }
.ln-principe b { display: block; margin-bottom: 4px; }
.ln-badge { text-align: center; font-size: 15px; }
.ln-badge .ico { font-size: 54px; display: block; }
/* aide combinaisons */
.ln-overlay[hidden], .ln-lesson[hidden], .ln-home[hidden] { display: none; }
.ln-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.ln-sheet { background: var(--tv-fond-bg); border-radius: 18px 18px 0 0; padding: 16px; width: 100%; max-width: 640px; max-height: 85vh; overflow: auto; }
.ln-sheet h3 { margin: 0 0 10px; }
.ln-sheet .ln-btn { margin-top: 12px; }
@media (min-width: 720px) {
  .ln-h { font-size: 26px; }
  .ln-actions { max-width: 360px; }
  .ln-overlay { align-items: center; }
  .ln-sheet { border-radius: 18px; }
}
.ln-opt.ln-egal { display: block; width: 100%; text-align: center; margin-top: 10px; font-weight: 700; border-color: rgba(232,196,100,.45); }
/* parcours 3 */
.ln-rue { border: 1px solid var(--tv-trait-line); border-radius: 12px; padding: 4px 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-encre-dim); }
.ln-cockpit { width: 100%; display: grid; gap: 4px; }
.ln-ck-row { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--tc-fond-ffffff-040); opacity: .45; font-size: 14px; }
.ln-ck-row.on { opacity: 1; outline: 1px solid var(--gold); }
.ln-ck-row b { color: var(--tv-encre-gold); }
.ln-ck-titre { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.ln-ck-ligne { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--tc-fond-ffffff-060); opacity: .45; font-size: 14px; margin-bottom: 4px; }
.ln-ck-ligne.on { opacity: 1; outline: 1px solid var(--gold); }
.ln-ck-ligne small { opacity: .8; }
.ln-cockpit-v2 .ln-ck-row { gap: 12px; padding: 6px 10px; font-size: 13px; }
.ln-cockpit-v2 .ln-ck-row span { flex: 0 0 auto; white-space: nowrap; }
.ln-cockpit-v2 .ln-ck-row b { text-align: right; }
.ln-ck-ligne b { color: var(--tv-encre-gold); }
.ln-card-el.connue { opacity: .18; }
.ln-card-el.pick { cursor: pointer; }
.ln-calcul { width: 100%; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.ln-calcul-l { padding: 8px 12px; border-radius: 8px; background: var(--tc-fond-ffffff-050); font-size: 16px; }
.ln-calcul-l.last { background: rgba(232,196,100,.14); color: var(--tv-encre-gold); font-weight: 700; }
.ln-sim { width: 100%; display: grid; gap: 10px; justify-items: center; }
.ln-sim-c { font-size: 15px; } .ln-sim-c b { font-size: 34px; color: var(--tv-encre-gold); margin-right: 6px; } .ln-sim-c span { display: block; font-size: 12px; color: var(--tv-encre-dim); }
.ln-grille { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; width: 100%; }
.ln-g { font-size: 8px; text-align: center; padding: 3px 0; border-radius: 3px; background: rgba(61,214,140,.35); color: var(--tc-encre-ffffff); }
.ln-g.p { background: rgba(232,196,100,.5); } .ln-g.off { background: var(--tc-fond-ffffff-050); color: var(--tc-encre-ffffff-250); }
.ln-slider { width: 100%; accent-color: var(--tv-encre-gold); }
.ln-est-val { text-align: center; font-size: 26px; font-weight: 700; color: var(--tv-encre-gold); margin-top: 8px; }
/* le paquet de 52 cartes tient dans ses colonnes sur 320 px : les cartes se redimensionnent au lieu de se chevaucher */
.ln-deck .ln-card-el.mini { width: 100%; min-width: 0; height: auto; aspect-ratio: 28 / 38; font-size: clamp(7px, 2.4vw, 11px); padding: 1px 2px; }
.ln-deck .ln-card-el.mini .s { font-size: clamp(8px, 2.8vw, 12px); }
/* le bouton « Continuer › » n'apparaît qu'une fois la question faite ; le quiz garde de la place au-dessus de la barre collée */
#ln-next:disabled { display: none; }
.ln-quiz:not(:empty) { padding-bottom: 8px; }
.ln-actions:has(#ln-next:not(:disabled)) { margin-top: 18px; }
.ln-skip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.ln-skip .ln-btn.ghost { border-color: transparent; color: var(--tv-encre-dim); text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
/* bilan du test d'entrée et fin du parcours 2 */
.ln-bilan { display: grid; gap: 8px; width: 100%; }
.ln-bilan .ln-btn.ghost { width: 100%; white-space: normal; }
.ln-bilan .ln-btn.du { background: transparent; color: var(--tv-encre-gold); }
/* mise en situation chronométrée et épreuve (parcours 4) */
.ln-chrono-annonce { display: grid; gap: 10px; background: var(--tv-fond-panel); border: 1px solid var(--tv-trait-line); border-radius: 14px; padding: 14px; }
.ln-chrono-annonce p { margin: 0; }
.ln-chrono-plus { font-size: 14px; color: var(--tv-encre-dim); display: flex; align-items: center; gap: 6px; }
.ln-chrono-barre { position: relative; height: 22px; border-radius: 11px; background: var(--tc-fond-ffffff-080); overflow: hidden; margin-bottom: 10px; }
.ln-chrono-reste { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gold); }
.ln-chrono-barre span { position: relative; display: block; text-align: center; font: 700 13px/22px system-ui, sans-serif; color: var(--tc-encre-ffffff); text-shadow: 0 1px 2px var(--tc-trait-000000); font-variant-numeric: tabular-nums; }
.ln-chrono-sit { display: grid; gap: 8px; justify-items: center; margin-bottom: 8px; }
.ln-chrono-texte { margin: 0; text-align: center; }
.ln-chrono-opts .ln-opt { font-size: 17px; padding: 14px; }
.ln-debrief { display: grid; gap: 8px; margin-top: 12px; }
.ln-db-row { display: grid; gap: 2px; background: var(--tc-fond-ffffff-040); border-radius: 10px; padding: 8px 10px; font-size: 15px; }
.ln-db-row b { font-size: 12px; color: var(--tv-encre-gold); text-transform: uppercase; letter-spacing: .04em; }
.ln-db-rep.ok b { color: var(--tv-encre-green); }
.ln-db-rep.ko b { color: var(--tv-encre-red); }
.ln-memo { display: grid; gap: 8px; width: 100%; }
.ln-memo-bloc { background: var(--tv-fond-panel); border: 1px solid var(--tv-trait-line); border-radius: 12px; padding: 10px 12px; font-size: 14px; display: grid; gap: 4px; }
.ln-memo-bloc b { color: var(--tv-encre-gold); }
@media (prefers-reduced-motion: reduce) { .ln-chrono-reste { transition: none !important; } }
/* verdict « presque parfait » et reprise des lignes ratées (retour du 22/09) */
.ln-feedback.presque { background: rgba(232,196,100,.14); color: var(--tv-encre-gold); }
.ln-ratees { display: grid; gap: 8px; margin-top: 10px; }
.ln-ratee { display: grid; gap: 2px; background: var(--tc-fond-ffffff-040); border-left: 3px solid var(--red); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.ln-ratee span { color: var(--tv-encre-green); font-weight: 600; }
.ln-ratee i { color: var(--tv-encre-dim); font-style: normal; }
/* trois cas de jetons (salon, entre amis, tournoi) : une colonne sur téléphone */
.ln-principes.trois { grid-template-columns: 1fr; }
@media (min-width: 640px) { .ln-principes.trois { grid-template-columns: repeat(3, 1fr); } }

/* illustrations (noms des rues, R28 du 23/09) : image bornée en hauteur, mention discrète */
.ln-photo { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ln-photo img { display: block; width: 100%; max-height: min(42vh, 360px); object-fit: cover; border-radius: 12px; border: 1px solid var(--tv-trait-line); background: var(--tv-fond-panel); aspect-ratio: 4 / 3; }
.ln-photo figcaption { font-size: 11px; color: var(--tv-encre-dim); }
/* petits téléphones (320 px) : l'en-tête avec « Combinaisons » et « Retour aux leçons » débordait et la page dézoomait */
@media (max-width: 380px) {
  .ln-top { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .ln-top .ln-btn.ghost { padding: 6px 8px; font-size: 12px; white-space: normal; line-height: 1.15; flex-shrink: 1; }
  .ln-brand { font-size: 13px; letter-spacing: .08em; }
  .ln-brand-go { margin-left: 2px; padding: 2px 6px; }
}

/* rappel de la donne au-dessus d'une illustration (R15, R31, R35) */
.ln-avec-donne { display: grid; gap: 10px; justify-items: center; width: 100%; }
.ln-donne { display: grid; gap: 6px; justify-items: center; }
/* vérifications : chaque tirage jugé, puis la grille de cent pastilles (R32, R37) */
.ln-sim-vu { display: grid; gap: 6px; justify-items: center; border: 2px solid var(--tv-trait-line); border-radius: 12px; padding: 8px 12px; min-width: 60%; }
.ln-sim-vu.good { border-color: var(--green); } .ln-sim-vu.bad { border-color: var(--red); } .ln-sim-vu.egal { border-color: var(--dim); }
.ln-sim-num { font-size: 12px; color: var(--tv-encre-dim); }
.ln-sim-adv { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tv-encre-dim); }
.ln-sim-verdict { font-weight: 700; }
.ln-sim-vu.good .ln-sim-verdict { color: var(--tv-encre-green); } .ln-sim-vu.bad .ln-sim-verdict { color: var(--tv-encre-red); }
.ln-sim-vu .ln-card-el.good { outline: 2px solid var(--green); outline-offset: 1px; }
.ln-sim-blocs { display: grid; gap: 12px; width: 100%; justify-items: center; }
.ln-sim-blocs.deux { grid-template-columns: 1fr 1fr; align-items: start; }
.ln-sim-bloc { display: grid; gap: 6px; justify-items: center; width: 100%; text-align: center; }
.ln-sim-grille { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: 100%; max-width: 220px; }
.ln-sim-grille i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--line); }
.ln-sim-grille i.good { background: var(--green); } .ln-sim-grille i.bad { background: var(--red); } .ln-sim-grille i.egal { background: var(--dim); }
.ln-sim-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* mémo à côté d'une question (P-elearning-14, points de la main) */
.ln-aide { margin-top: 12px; background: var(--tv-fond-panel); border: 1px solid var(--tv-trait-line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.ln-aide summary { cursor: pointer; color: var(--tv-encre-gold); font-weight: 700; }
.ln-aide-l { padding: 3px 0; }
@media (min-width: 720px) {
  .ln-quiz.avec-aide { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
  .ln-quiz.avec-aide .ln-aide { margin-top: 0; }
}
/* noms des rues au-dessus des cartes du tableau (R44) */
.ln-board.avec-rues { align-items: flex-end; gap: 6px; }
.ln-rue-g { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.ln-rue-l { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--tv-encre-gold); border-bottom: 1px solid var(--gold); padding-bottom: 1px; white-space: nowrap; }
.ln-rue-c { display: flex; gap: 4px; justify-content: center; }   /* R55 : la carte centrée sous son nom */
/* recette du 01/10 : textes en lignes et en puces (R84, R103) */
.ln-text .ln-par + .ln-par, .ln-text .ln-puce + .ln-par { margin-top: 6px; }
.ln-text .ln-puce { position: relative; padding-left: 1.2em; margin-top: 4px; }
.ln-text .ln-puce::before { content: "•"; position: absolute; left: .2em; color: var(--tv-encre-gold); }
.ln-lessons li:hover { background: var(--tc-fond-ffffff-080); }
/* R51 : légendes des cartes */
.ln-legende { font-size: 12px; color: var(--tv-encre-dim); text-transform: uppercase; letter-spacing: .06em; }
/* R50 : lien vers la page des règles */
.ln-avec-lien { display: grid; gap: 10px; justify-items: center; width: 100%; }
.ln-lien { color: var(--tv-encre-gold); font-weight: 600; }
/* R53 : sens du jeu */
.ln-sens { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: grid; justify-items: center; color: var(--tc-encre-e8c464-750); font-size: 11px; pointer-events: none; }
.ln-sens svg { width: 54px; height: 54px; }
/* tableaux (R126, R127) et table des chances (R88, R90) */
.ln-tab-w { width: 100%; overflow-x: auto; }
.ln-tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.ln-tab th { font-size: 12px; color: var(--tv-encre-dim); font-weight: 600; text-align: center; padding: 4px 6px; border-bottom: 1px solid var(--tv-trait-line); }
.ln-tab td { text-align: center; padding: 4px 6px; border-bottom: 1px solid var(--tc-trait-ffffff-050); }
.ln-tab tr.on td { background: rgba(232,196,100,.18); color: var(--tv-encre-gold); font-weight: 700; }
.ln-chances-pli { width: 100%; margin-top: 10px; }
.ln-chances-pli summary { cursor: pointer; color: var(--tv-encre-gold); font-weight: 600; font-size: 14px; }
.ln-chances-pli .ln-tab { margin-top: 6px; font-size: 13px; }
/* calcul annoté (R131) : une couleur par sous-total ; empilé sur téléphone */
.ln-annote { width: 100%; }
.ln-annote-g { display: grid; gap: 4px 8px; align-items: start; justify-items: center; font-variant-numeric: tabular-nums; }
.ln-an-v { font-size: 20px; font-weight: 700; }
.ln-an-v.op { color: var(--tv-encre-dim); }
.ln-an-s { font-size: 11px; color: var(--tv-encre-dim); text-align: center; max-width: 9em; }
.ln-an-t { justify-self: stretch; text-align: center; border-top: 2px solid currentColor; padding-top: 4px; display: grid; }
.ln-an-t b { font-size: 15px; } .ln-an-t span { font-size: 11px; }
.c0 { color: var(--tc-encre-3dd68c); } .c1 { color: var(--tc-encre-ff8f8f); } .c2 { color: var(--tv-encre-gold); }
.ln-an-s.c0, .ln-an-s.c1, .ln-an-s.c2 { opacity: .85; }
.ln-annote-p { display: none; gap: 8px; }
.ln-an-bloc { border-left: 3px solid currentColor; padding: 6px 10px; background: var(--tc-fond-ffffff-040); border-radius: 6px; display: grid; gap: 2px; font-size: 14px; }
.ln-an-bloc div { color: var(--tv-encre-txt); } .ln-an-bloc .tot { color: inherit; font-weight: 600; }
@media (max-width: 600px) { .ln-annote-g { display: none; } .ln-annote-p { display: grid; } }
/* tirages (R85, R95, R96) */
.ln-sim-c b { display: block; } .ln-sim-c em { font-style: normal; font-size: 13px; color: var(--tv-encre-dim); }
.ln-sim-grille.ln-sim-grille { grid-template-columns: repeat(25, 1fr); gap: 1px; max-width: 260px; }
.ln-sim-info { background: none; border: 0; color: var(--tv-encre-gold); cursor: pointer; font-size: 13px; padding: 0 2px; }
.ln-sim-bareme { font-size: 12px; text-align: left; background: var(--tc-fond-ffffff-050); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.ln-sim-l { display: grid; grid-template-columns: 5.5em auto; align-items: center; gap: 6px; font-size: 12px; color: var(--tv-encre-dim); }
.ln-sim-vu .ln-card-el.tiree { outline: 2px solid var(--gold); outline-offset: 1px; }
.ln-sim-vu .ln-card-el.tiree.good { outline-color: var(--green); }
/* entraînement : profil par type d'exercice (recette du 07/10) */
.ln-tr-profil { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--tc-fond-ffffff-040); font-size: 14px; }
.ln-tr-profil > div { display: flex; justify-content: space-between; gap: 10px; }
.ln-tr-profil > div.faible { color: var(--tv-encre-gold); font-weight: 600; }
/* règle rappelée en entier quand la réponse est fausse (recette du 07/10) */
.ln-rappel { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; background: rgba(232,196,100,.08); font-size: 14px; line-height: 1.45; }
.ln-rappel b { color: var(--tv-encre-gold); }
.ln-tr-schema { margin: 12px 0 0; display: grid; gap: 4px; }
.ln-tr-schema figcaption { font-size: 13px; color: var(--tv-encre-dim); text-align: center; }
/* liens parcours ↔ S'entraîner (Hub E-liens-parcours-entrainement) */
.ln-lien-btn { background: none; border: 0; padding: 4px 0 0; color: var(--tv-encre-gold); font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ln-appris { display: block; font-size: 12px; color: var(--tv-encre-dim); margin-top: 2px; text-decoration: underline; text-underline-offset: 2px; }
.ln-lessons li span { display: flex; flex-direction: column; }
/* liens, étape 2 */
.ln-voir { display: grid; gap: 4px; margin-top: 10px; }
.ln-themes-parcours { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 12px; font-size: 13px; color: var(--tv-encre-dim); }
.ln-themes-parcours .ln-lien-btn { font-size: 13px; padding: 0; }
.ln-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #1a1408; background: var(--gold); border-radius: 999px; padding: 1px 7px; margin-right: 6px; align-self: flex-start; }
.ln-tag.revoir { background: transparent; color: var(--tv-encre-gold); border: 1px solid var(--gold); margin: 2px 0 0; }
.ln-conseil { margin-bottom: 8px; font-weight: 500; }

/* lexique (Hub E-liens-etape3) */
.ln-lex { text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
.ln-lex:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.ln-lex-mot { padding: 10px 0; border-bottom: 1px solid var(--tc-trait-ffffff-080); }
.ln-lex-titre { font-weight: 700; }
.ln-lex-def { margin: 4px 0 6px; line-height: 1.45; }
.ln-lex-voir { min-height: 44px; text-align: left; }
.ln-tr-mains { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* G-7 (P-178) : leçon déjà vue au parcours 2 */
.ln-deja-vu { border: 1px solid var(--gold); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.ln-deja-vu-t { font-weight: 700; }
.ln-deja-vu .ln-btn { width: 100%; min-height: 44px; }

/* US 14.28 : fenêtre d'inscription au 21e écran sans compte (R-3.5) */
.ln-compte { position: relative; text-align: center; }
.ln-compte h3 { margin: 6px 28px 10px; }
.ln-compte p { margin: 0 0 16px; line-height: 1.45; }
.ln-compte .ln-btn { display: block; width: 100%; text-decoration: none; box-sizing: border-box; }
.ln-compte-deja { display: inline-block; margin-top: 12px; color: inherit; opacity: .85; }
.ln-compte-x { position: absolute; top: 6px; right: 6px; background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; padding: 6px; }
