/* Leçons futées — styles de l’application (les 3 blocs de styles des prototypes, dans le même ordre). */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

.mascot{display:block;width:auto;height:auto;max-width:150px;max-height:100px;pointer-events:none;user-select:none;-webkit-user-select:none;transform-origin:50% 92%;filter:drop-shadow(0 3px 3px rgba(0,0,0,.25))}
.mascot.cut{-webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)}
.mascot.sz-guide{max-width:180px;max-height:118px}
.mascot.sz-fb{max-width:130px;max-height:84px}
.mflip{display:inline-block;transform:scaleX(-1)}
.quest.withhero .guide{flex-direction:column !important;align-items:center !important;width:230px;max-width:100%}
.quest.withhero .guide .say{white-space:normal !important;text-align:center;width:100%;max-width:none !important;box-sizing:border-box;line-height:1.3;overflow-wrap:anywhere}
.stars.many{display:flex;flex-wrap:wrap;gap:2px;max-width:100%}
.stars.lg.many .star{width:26px !important;height:26px !important}
.hero.mag.mc{top:-46px}
.fb.hasm{display:flex;gap:14px;align-items:flex-start}
.fb .fbav{flex:none;order:-1}
.fb .fbtxt{min-width:0;flex:1}
@keyframes mWave{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg) translateY(-3px)}}
@keyframes mCheer{0%{transform:translateY(0)}30%{transform:translateY(-16px) rotate(-6deg) scale(1.06)}60%{transform:translateY(0)}80%{transform:translateY(-8px) rotate(5deg)}100%{transform:translateY(0)}}
@keyframes mJoy{0%,100%{transform:scale(1)}25%{transform:scale(1.14,.9)}50%{transform:scale(.92,1.12) translateY(-10px)}75%{transform:scale(1.08,.95)}}
@keyframes mOops{0%,100%{transform:rotate(0)}20%{transform:rotate(-8deg)}40%{transform:rotate(7deg)}60%{transform:rotate(-5deg)}80%{transform:rotate(3deg)}}
@keyframes mThink{0%,100%{transform:rotate(0)}50%{transform:rotate(-9deg) translateY(2px)}}
.m-wave{animation:mWave 2.6s ease-in-out infinite}
.m-cheer{animation:mCheer .9s ease-out 1}.m-joy{animation:mJoy .9s ease-in-out 1}
.m-oops{animation:mOops .7s ease-in-out 1}.m-think{animation:mThink 1.6s ease-in-out 1}
@media (prefers-reduced-motion:reduce){.m-wave,.m-cheer,.m-joy,.m-oops,.m-think{animation:none}}
@media (max-width:480px){.mascot{max-width:120px;max-height:84px}.mascot.sz-guide{max-width:150px;max-height:100px}.mascot.sz-fb{max-width:96px;max-height:64px}.quest.withhero .guide{width:100%}}
.lbxrow{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px;align-items:flex-end}
.lbx{width:44px;height:54px;border:3px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:1.5rem;font-weight:800;background:var(--surface)}
.lbx.on{border-color:var(--gc,#5b6bd6)}.lbx.ok{background:var(--good-bg);border-color:var(--good)}.lbx.no{background:var(--try-bg);border-color:var(--try)}
.lsep{min-width:18px;height:54px;display:flex;align-items:flex-end;justify-content:center;font-weight:800;font-size:1.4rem}
@media (max-width:480px){.lbx{width:36px;height:46px;font-size:1.25rem}}
.sndbtn{flex:none;border:3px solid var(--line);background:var(--surface);border-radius:999px;width:46px;height:46px;font-size:1.2rem;line-height:1;cursor:pointer;color:inherit}
.shopts{display:grid;gap:10px;margin-top:14px}
.shopt{text-align:left;border:3px solid var(--line);border-radius:16px;background:var(--surface);padding:14px 16px;cursor:pointer;font:inherit;color:inherit;display:grid;gap:4px}
.shopt small{color:var(--muted)}
.shopt.on{border-color:var(--g1);box-shadow:0 0 0 4px rgba(91,107,214,.22)}
.shopt:disabled{opacity:.55;cursor:not-allowed}
.setgrid{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 18px}
.swt{display:flex;align-items:center;gap:8px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:8px 14px;font:inherit;cursor:pointer;min-height:48px}
.swt.on{border-color:var(--focus);box-shadow:0 0 0 3px rgba(120,140,220,.35)}
.swc{width:26px;height:26px;border-radius:8px;border:2px solid rgba(0,0,0,.28);flex:none}
.psets{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:8px 0 18px}
.pset{display:flex;flex-direction:column;gap:6px;text-align:left;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:10px;font:inherit;cursor:pointer}
.pset.on{border-color:var(--focus);box-shadow:0 0 0 3px rgba(120,140,220,.35)}
.pset:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.pset .pv{display:flex;align-items:center;height:62px;border-radius:12px;border:2px solid rgba(0,0,0,.2);padding:0 9px}
.pset .pc{display:flex;align-items:center;gap:8px;flex:1;height:36px;border-radius:9px;border:2px solid;padding:0 8px}
.pset .pb{height:18px;width:38px;border-radius:999px;flex:none}
.pset .pl{height:7px;border-radius:4px;flex:1;opacity:.5}
.pset small{color:var(--muted);line-height:1.3}
html.fs1{font-size:18px}html.fs1 body{font-size:20px !important}
html.fs2{font-size:20px}html.fs2 body{font-size:22px !important}

/* Concept : une seule colonne, grands boutons à toucher. Chaque jeu a sa couleur, le reste reste calme (marine + blanc). */
:root{
  --bg:#EEF3FB; --surface:#FFFFFF; --ink:#18264A; --muted:#55608A; --line:#D3DCF0;
  --btn:#18264A; --btn-ink:#FFFFFF; --focus:#2F6FED;
  --g1:#2F6FED; --g1i:#FFFFFF; --g2:#8450D6; --g2i:#FFFFFF; --g3:#E8492B; --g3i:#FFFFFF;
  --g4:#0C8F9B; --g4i:#FFFFFF; --g5:#F4B000; --g5i:#18264A;
  --sky:#BFE6FF; --grass:#C6EBAE; --grass2:#9FD98B; --road:#EBD7AA; --roadedge:#CDB27B; --walk:#FFD45E; --halo:#FFE9A8;
  --good:#17835A; --good-bg:#DAF3E7; --try:#B4400E; --try-bg:#FFE8D2; --star:#F4B000;
  --font-body:"Andika",system-ui,"Segoe UI",sans-serif;
  --font-display:"Baloo 2","Andika",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --sky:#1B3A63; --grass:#2D5B3A; --grass2:#234A2E; --road:#6E5C3B; --roadedge:#4E4129; --walk:#B8932A; --halo:#7A6420;
    --bg:#0E1530; --surface:#172046; --ink:#EAF0FF; --muted:#A5B1DA; --line:#2C3968;
    --btn:#EAF0FF; --btn-ink:#0E1530; --focus:#78A2FF;
    --g1:#78A2FF; --g1i:#0E1530; --g2:#B392FF; --g2i:#0E1530; --g3:#FF876C; --g3i:#0E1530;
    --g4:#4FD0DB; --g4i:#0E1530; --g5:#FFC83D; --g5i:#0E1530;
    --good:#5AE0A8; --good-bg:#123B30; --try:#FFB27A; --try-bg:#4A2A14; --star:#FFC83D;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --sky:#1B3A63; --grass:#2D5B3A; --grass2:#234A2E; --road:#6E5C3B; --roadedge:#4E4129; --walk:#B8932A; --halo:#7A6420;
  --bg:#0E1530; --surface:#172046; --ink:#EAF0FF; --muted:#A5B1DA; --line:#2C3968;
  --btn:#EAF0FF; --btn-ink:#0E1530; --focus:#78A2FF;
  --g1:#78A2FF; --g1i:#0E1530; --g2:#B392FF; --g2i:#0E1530; --g3:#FF876C; --g3i:#0E1530;
  --g4:#4FD0DB; --g4i:#0E1530; --g5:#FFC83D; --g5i:#0E1530;
  --good:#5AE0A8; --good-bg:#123B30; --try:#FFB27A; --try-bg:#4A2A14; --star:#FFC83D;
  color-scheme:dark;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:18px;line-height:1.55;
  padding-block:18px 56px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
#app{max-width:800px;margin:0 auto}
@media (min-width:1000px){
  #app.wide{max-width:1040px}
  main.imp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:48px;align-items:start}
  main.imp>h1,main.imp>.lead{grid-column:1}
  main.imp>.card{grid-column:2;grid-row:1 / span 6}
}
h1,h2,h3{font-family:var(--font-display);line-height:1.15;text-wrap:balance;margin:0}
h1{font-size:clamp(1.9rem,6vw,2.7rem);font-weight:800}
h1:focus{outline:none}
h2{font-size:1.5rem;font-weight:800}
p{margin:0}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:10px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-bottom:28px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:800;font-size:1.35rem}
.kfoot{display:flex;justify-content:center;margin:36px 0 8px}
.kfoot span{display:inline-flex;background:#FFFFFF;border:1px solid var(--line);border-radius:10px;padding:5px 9px}
.kfoot img{display:block;height:30px;width:auto}
.steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;font-size:.8rem;color:var(--muted);flex-wrap:wrap}
.steps li{padding:3px 12px;border-radius:99px;border:2px solid var(--line)}
.steps li.on{background:var(--btn);color:var(--btn-ink);border-color:var(--btn);font-weight:700}
.tools2{display:flex;align-items:center;gap:6px;flex:none}
.steps .short{display:none}
@media (max-width:480px){.steps .long{display:none}.steps .short{display:inline}.steps li{padding:3px 10px}}

.lead{color:var(--muted);margin-top:10px;max-width:60ch}
.card{background:var(--surface);border:2px solid var(--line);border-radius:22px;padding:22px;margin-top:24px}
.lbl{font-weight:700;font-size:.9rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:8px}
.level{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.lv{min-width:84px;min-height:52px;padding:6px 18px;border-radius:14px;border:3px solid var(--line);background:var(--bg);font-weight:700;font-family:var(--font-display);font-size:1.2rem}
.lv[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
.drop{display:flex;flex-wrap:wrap;align-items:center;gap:14px;border:3px dashed var(--line);border-radius:18px;padding:18px;cursor:pointer;background:var(--bg)}
.drop.over,.drop:hover{border-color:var(--g1)}
.drop b{font-family:var(--font-display);font-size:1.15rem}
.drop small{color:var(--muted);display:block;line-height:1.35}
.fileinput:focus-visible + .drop{outline:3px solid var(--focus);outline-offset:3px}
.fname{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.95rem}
textarea{width:100%;min-height:150px;resize:vertical;font:inherit;color:var(--ink);background:var(--bg);border:3px solid var(--line);border-radius:16px;padding:14px}
textarea:focus{outline:3px solid var(--focus);outline-offset:2px;border-color:var(--focus)}
.mt{margin-top:20px}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.btn{min-height:56px;padding:10px 26px;border-radius:16px;background:var(--btn);color:var(--btn-ink);font-family:var(--font-display);font-weight:800;font-size:1.2rem}
.btn:hover{filter:brightness(1.12)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.ghost{background:transparent;color:var(--ink);border:3px solid var(--line);font-weight:600}
.btn.ghost:hover{border-color:var(--ink);filter:none}
.btn.sm{min-height:44px;padding:6px 18px;font-size:1rem}
.eacts{display:inline-flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.link:disabled{opacity:.45;cursor:not-allowed;text-decoration:none}
.link{font-weight:700;text-decoration:underline;text-underline-offset:4px;padding:6px 2px;min-height:44px;display:inline-flex;align-items:center}
.msg{margin-top:16px;padding:12px 16px;border-radius:14px;background:var(--try-bg);color:var(--ink);border:2px solid var(--try)}
.gnotice{grid-column:1/-1;margin:0}
.msg:focus{outline:3px solid var(--ink);outline-offset:2px}
.msg.okk{background:var(--good-bg);border-color:var(--good)}
.note{color:var(--muted);font-size:.9rem;margin-top:12px}

.loading{text-align:left;padding:34px 22px}
.bar{height:16px;border-radius:99px;background:var(--line);overflow:hidden;margin:22px 0 14px}
.bar i{display:block;height:100%;width:4%;border-radius:99px;background:var(--g1);transition:width .6s ease}
.bounce{display:flex;gap:8px;margin-top:20px}
.bounce i{width:18px;height:18px;border-radius:50%;animation:hop 1s ease-in-out infinite}
.bounce i:nth-child(1){background:var(--g1)}.bounce i:nth-child(2){background:var(--g3);animation-delay:.12s}
.bounce i:nth-child(3){background:var(--g5);animation-delay:.24s}.bounce i:nth-child(4){background:var(--g4);animation-delay:.36s}
.bounce i:nth-child(5){background:var(--g2);animation-delay:.48s}
@keyframes hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-14px)}}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tag{display:inline-block;padding:2px 12px;border-radius:99px;border:2px solid var(--line);font-size:.85rem;color:var(--muted)}
.recap h2{margin-bottom:6px}
.carnet h2{margin-bottom:4px}
html.lfmodal{overflow:hidden}
.cf-fond{position:fixed;inset:0;z-index:1000;background:rgba(10,16,40,.62);display:grid;place-items:center;padding:16px;overflow:auto}
.cf-boite{background:var(--surface);color:var(--ink);border:3px solid var(--line);border-radius:22px;padding:22px;width:min(460px,100%);box-shadow:0 20px 60px rgba(0,0,0,.4)}
.cf-boite h2{margin:0 0 8px;font-size:1.5rem}
.cf-boite p{margin:0;color:var(--ink);overflow-wrap:anywhere}
.cf-boite .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.cf-boite .btn{flex:1 1 180px}
@media (max-width:480px){.cf-boite .actions{flex-direction:column}.cf-boite .btn{flex:0 0 auto}}
.carnetline{font-weight:600}
.sect{margin-top:34px}
.sect .count{font-size:.6em;font-weight:600;color:var(--muted)}
.lv{min-width:72px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px;margin-top:14px}
.game{display:flex;flex-direction:column;gap:8px;text-align:left;padding:18px;border-radius:22px;
  background:color-mix(in srgb,var(--gc) 12%,var(--surface));border:3px solid color-mix(in srgb,var(--gc) 45%,var(--surface));transition:transform .15s,border-color .15s}
.game:hover{transform:translateY(-3px);border-color:var(--gc)}
.game:disabled{opacity:.5;transform:none;cursor:not-allowed}
.glyph{width:58px;height:58px;border-radius:50%;background:var(--gc);color:var(--gi);display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:1.25rem;letter-spacing:-.02em}
.game h3{font-size:1.3rem;font-weight:800}
.game p{font-size:.95rem;color:var(--muted);line-height:1.4}
.game .meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:6px;font-size:.85rem;color:var(--muted)}
.stars{display:flex;gap:2px}
.star{fill:var(--star);stroke:var(--star);stroke-width:1}
.star.off{fill:transparent;stroke:var(--muted);stroke-opacity:.6;stroke-width:1.5}

.playhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-bottom:8px}
.gname{display:flex;align-items:center;gap:12px}
.gname .glyph{width:46px;height:46px;font-size:1.05rem}
.count{color:var(--muted);font-size:.95rem}
.dots{display:flex;gap:6px;margin:10px 0 22px;flex-wrap:wrap}
.dots i{width:26px;height:10px;border-radius:99px;background:var(--line)}
.dots i.cur{background:var(--gc)}
.dots i.ok{background:var(--good)}
.dots i.no{background:var(--try)}
.dots i.part{background:linear-gradient(90deg,var(--good) 50%,var(--try) 50%)}
.q{font-family:var(--font-display);font-weight:600;font-size:clamp(1.45rem,4.5vw,1.9rem);line-height:1.3;margin-bottom:20px;text-wrap:balance}
.blank{display:inline-block;min-width:4.5ch;border-bottom:4px solid var(--gc);margin:0 4px;text-align:center;color:var(--good)}
.blank.bad{color:var(--try)}
.opts{display:grid;gap:12px}
.opts.two{grid-template-columns:1fr 1fr}
.opt{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 18px;text-align:left;border-radius:18px;border:3px solid var(--line);background:var(--surface);font-size:1.15rem}
.opts.two .opt{justify-content:center;font-family:var(--font-display);font-weight:800;font-size:1.6rem;min-height:84px}
.opt:hover{border-color:var(--gc)}
.opt .ltr{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--gc);color:var(--gi);font-weight:700;font-size:.95rem}
.opt.ok{border-color:var(--good);background:var(--good-bg)}
.opt.no{border-color:var(--try);background:var(--try-bg)}
.opt.dim{opacity:.55}
.opt[aria-disabled="true"]{cursor:default}
.fb{margin-top:18px;padding:14px 18px;border-radius:16px;border:2px solid}
.fb.ok{background:var(--good-bg);border-color:var(--good)}
.fb.no{background:var(--try-bg);border-color:var(--try)}
.fb b{font-family:var(--font-display);font-size:1.15rem}

.pairs{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.col{display:grid;gap:12px;align-content:start;min-width:0}
.pbtn{min-height:68px;padding:10px 14px;border:3px solid var(--line);background:var(--surface);border-radius:16px;text-align:left;width:100%;overflow-wrap:anywhere}
.pbtn:hover{border-color:var(--gc)}
.pbtn.sel{border-color:var(--ink);box-shadow:0 0 0 3px var(--gc)}
.pbtn.m{background:color-mix(in srgb,var(--pc) 24%,var(--surface));border-color:var(--pc);cursor:default}
.pbtn.bad{border-color:var(--try);background:var(--try-bg);animation:shake .4s}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.hint{color:var(--muted);margin-bottom:16px}

.slots{display:flex;flex-wrap:wrap;gap:10px;min-height:76px;padding:12px;border-radius:18px;border:3px dashed var(--line);background:var(--surface);align-items:center}
.slot-hint{color:var(--muted);font-size:.95rem;padding:0 6px}
.pool{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;min-height:56px}
.chip{min-height:52px;padding:8px 16px;border-radius:14px;border:3px solid var(--gc);background:color-mix(in srgb,var(--gc) 14%,var(--surface));font-size:1.1rem;text-align:left;display:inline-flex;gap:8px;align-items:center}
.chip .n{width:24px;height:24px;border-radius:50%;background:var(--gc);color:var(--gi);font-size:.8rem;font-weight:700;display:grid;place-items:center;flex:none}
.chip[aria-disabled="true"]{cursor:default}
.chip.sel{box-shadow:0 0 0 3px var(--ink)}
.chip.bad{border-color:var(--try);background:var(--try-bg);animation:shake .4s}
.chip.ok{border-color:var(--good);background:var(--good-bg)}
.slots.okk{border-color:var(--good);border-style:solid;background:var(--good-bg)}
.slots.part{border-color:var(--ink);border-style:solid;background:var(--surface)}
.slots.nok{border-color:var(--try);border-style:solid;background:var(--try-bg)}

.flash{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;min-height:270px;padding:28px;border-radius:26px;text-align:center;
  background:color-mix(in srgb,var(--gc) 14%,var(--surface));border:4px solid var(--gc)}
.flash.back{background:var(--gc);color:var(--gi)}
.flash.turn{animation:turn .35s ease-out}
@keyframes turn{from{transform:rotateY(90deg)}to{transform:none}}
.fl{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.ft{font-family:var(--font-display);font-weight:800;font-size:clamp(1.6rem,6vw,2.3rem);line-height:1.2;text-wrap:balance}
.fh{font-size:.9rem;opacity:.75}

.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-top:16px}
.mem{min-height:98px;padding:10px;border-radius:16px;border:3px solid var(--gc);background:var(--gc);color:var(--gi);font-family:var(--font-display);font-weight:800;font-size:2rem;display:grid;place-items:center;overflow-wrap:anywhere;text-align:center}
.mem.up{background:var(--surface);color:var(--ink);font-family:var(--font-body);font-weight:700;font-size:1rem;line-height:1.3}
.mem.m{background:color-mix(in srgb,var(--pc) 24%,var(--surface));border-color:var(--pc);cursor:default}

.timer{display:flex;align-items:center;gap:14px;margin:14px 0 20px;flex-wrap:wrap}
.tbar{flex:1;min-width:140px;height:14px;border-radius:99px;background:var(--line);overflow:hidden}
.tbar i{display:block;height:100%;background:var(--gc)}
.timer b{font-family:var(--font-display);font-size:1.4rem;min-width:3.2ch}

.boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;margin-top:18px}
.box{min-height:110px;padding:12px;border-radius:18px;border:3px solid var(--pc);background:color-mix(in srgb,var(--pc) 12%,var(--surface));text-align:left;display:flex;flex-direction:column;gap:8px;width:100%}
.box b{font-family:var(--font-display);font-size:1.15rem}
.box .got{display:flex;flex-wrap:wrap;gap:6px}
.mini{padding:2px 10px;border-radius:99px;background:var(--surface);border:2px solid var(--pc);font-size:.9rem}

.word{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 6px}
.lt{width:42px;height:56px;border-bottom:5px solid var(--gc);display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:1.8rem}
.lt.sp{border:0;width:18px}
.lt.miss{color:var(--try)}
.lives{display:flex;gap:6px;align-items:center;margin-top:10px;color:var(--muted);font-size:.9rem}
.lives i{width:14px;height:14px;border-radius:50%;background:var(--line)}
.lives i.on{background:var(--gc)}
.kb{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:8px;margin-top:18px}
.key{min-height:50px;border-radius:12px;border:3px solid var(--line);background:var(--surface);font-weight:700;font-family:var(--font-display);font-size:1.2rem}
.key:hover{border-color:var(--gc)}
.key.right{background:var(--good-bg);border-color:var(--good)}
.key.wrong{background:var(--try-bg);border-color:var(--try);opacity:.7}
.key[aria-disabled="true"]{cursor:default}

.score{display:flex;flex-wrap:wrap;align-items:center;gap:18px 28px}
.big{font-family:var(--font-display);font-weight:800;font-size:3.6rem;line-height:1}
.big small{font-size:1.5rem;color:var(--muted)}
.stars.lg svg{width:46px;height:46px}
.corr{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.corr li{padding:14px 18px;border-radius:16px;border:2px solid var(--line);background:var(--surface);display:grid;gap:4px}
.corr li.ok{border-color:var(--good)}
.corr li.no{border-color:var(--try)}
.corr li.part{border-color:var(--ink)}
.part .pill{background:var(--surface);color:var(--ink);border:2px solid var(--ink)}
.pill{justify-self:start;padding:1px 12px;border-radius:99px;font-size:.8rem;font-weight:700}
.ok .pill{background:var(--good-bg);color:var(--good)}
.no .pill{background:var(--try-bg);color:var(--try)}
.ex{color:var(--muted);font-size:.95rem}

.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 6px}
.tab{padding:8px 16px;border-radius:99px;border:3px solid var(--line);font-weight:700;background:var(--surface)}
.tab[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
.eitem{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:10px;margin-top:14px}
.eh{display:flex;justify-content:space-between;gap:10px;align-items:center}
.eh b{font-family:var(--font-display);font-size:1.1rem}
.field{display:grid;gap:4px;font-size:.85rem;color:var(--muted)}
input[type="text"],select{font:inherit;color:var(--ink);background:var(--bg);border:3px solid var(--line);border-radius:12px;padding:9px 12px;width:100%;min-width:0}
input[type="text"]:focus,select:focus{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.crow{display:flex;gap:10px;align-items:center}
.crow input[type="radio"],.crow input[type="checkbox"]{width:28px;height:28px;flex:none;accent-color:var(--good)}
.erow{display:flex;gap:8px;align-items:center}
.erow > .field{flex:1;min-width:0}
.erow .link{flex:none;font-size:.9rem}
.etext{font-size:.9rem;color:var(--muted)}
.ecat{border:2px dashed var(--line);border-radius:14px;padding:12px;display:grid;gap:8px}
.ecat textarea{min-height:90px}

.pcard h2{margin-bottom:4px}
.pmini{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.pmini li{display:flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border-radius:99px;border:2px solid color-mix(in srgb,var(--gc) 50%,var(--surface));background:color-mix(in srgb,var(--gc) 12%,var(--surface));font-size:.9rem}
.pmini small{color:var(--muted)}
.pn{flex:none;width:26px;height:26px;border-radius:50%;background:var(--gc);color:var(--gi);display:inline-grid;place-items:center;font-weight:700;font-size:.85rem}
.path{list-style:none;margin:26px 0 0;padding:0}
.node{position:relative;display:flex;gap:16px;padding-bottom:26px}
.node::before{content:"";position:absolute;left:21px;top:46px;bottom:0;width:4px;border-radius:2px;background:var(--line)}
.node:last-child::before{display:none}
.node.done::before{background:var(--good)}
.nd{flex:none;width:46px;height:46px;border-radius:50%;background:var(--gc);color:var(--gi);display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:1.2rem;z-index:1}
.node.lock .nd{background:var(--line);color:var(--muted)}
.node.done .nd{background:var(--good);color:#fff}
.node.lock{opacity:.65}
.nb{flex:1;min-width:0;padding-top:4px}
.nb h3{font-size:1.25rem}
.ng{color:var(--muted);font-size:.9rem}
.recap2{margin-top:12px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--gc) 12%,var(--surface));border:2px solid color-mix(in srgb,var(--gc) 45%,var(--surface))}
.recap2 b{font-family:var(--font-display)}
.nrow{display:flex;align-items:center;gap:14px;margin-top:8px;flex-wrap:wrap}
.peek{margin:14px 0;padding:14px 18px;border-radius:16px;background:var(--surface);border:3px dashed var(--gc);font-family:var(--font-display);font-weight:800;font-size:1.6rem;text-align:center}
.imgbox{position:relative;display:inline-block;max-width:100%;border-radius:16px;overflow:hidden;border:3px solid var(--line);line-height:0;cursor:crosshair;background:var(--surface)}
.imgbox img{display:block;max-width:100%;height:auto;user-select:none;-webkit-user-select:none}
.pin{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:var(--gc,var(--g1));color:var(--gi,#fff);border:3px solid #fff;font-weight:700;font-size:.9rem;display:grid;place-items:center;line-height:1;font-family:var(--font-body);box-shadow:0 1px 6px rgba(0,0,0,.35);padding:0}
.pin.good{background:var(--good);color:#fff}
.pin.bad{background:var(--try);color:#fff}
.legend{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}
.lg{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 12px;border-radius:14px;border:3px solid var(--line);background:var(--surface);text-align:left}
.lg.on{background:var(--good-bg);border-color:var(--good)}
.opts.grid2{grid-template-columns:1fr 1fr}
.opts.grid2 .opt{justify-content:center;text-align:center}
.moverow{display:flex;gap:8px;flex-wrap:wrap}
#dict{font-size:1.4rem;font-family:var(--font-display);font-weight:600}

.thumbs{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.thumbs li{position:relative;width:84px;height:84px;border-radius:12px;overflow:hidden;border:3px solid var(--line);background:var(--surface)}
.thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.tn{position:absolute;left:4px;bottom:4px;min-width:22px;height:22px;border-radius:11px;background:var(--g1);color:var(--g1i,#fff);font-size:.8rem;font-weight:700;display:grid;place-items:center;padding:0 5px}
.tx{position:absolute;right:3px;top:3px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:1.1rem;line-height:1;cursor:pointer;padding:0}
.chip[data-act="ttok"],.chip[data-act="ltok"],.chip[data-act="cp"],.pbtn[data-act="lp"]{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}
.dragghost{position:fixed;z-index:50;transform:translate(-50%,-50%) rotate(-3deg);pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.35);opacity:.95;margin:0}
.dragsrc{opacity:.35}
.dropover{outline:4px dashed var(--gc);outline-offset:2px}
.opt.picked{border-color:var(--gc);background:color-mix(in srgb,var(--gc) 18%,var(--surface))}
.pbtn.emo{font-size:2rem;line-height:1.1;text-align:center}
.pbtn.ebtn{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
.ebtn .eico{font-size:1.3rem;line-height:1.2}
.ebtn .emot{font-weight:700}
#sai{font-size:1.4rem;font-family:var(--font-display);font-weight:600}
.pathpage{max-width:640px;margin:0 auto}
.prog{margin:14px 0 6px}
.pbar{position:relative;height:18px;border-radius:99px;background:var(--line);overflow:visible}
.pbar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--star);min-width:0;transition:width .5s}
.pbar u{position:absolute;top:-5px;bottom:-5px;width:4px;margin-left:-2px;border-radius:2px;background:var(--ink);text-decoration:none}
.prog p{margin:8px 0 0;color:var(--muted);font-size:.95rem}
.quest{margin-top:16px}
.quest h2{margin:8px 0 0}
.trail{position:relative;margin-top:22px;border-radius:28px;overflow:hidden;background:linear-gradient(var(--sky) 0,var(--grass) 9%,var(--grass2) 100%);border:3px solid var(--line)}
.roadsvg{position:absolute;inset:0;width:100%;height:100%}
.roadsvg path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.r-edge{stroke:var(--roadedge);stroke-width:46px}
.r-road{stroke:var(--road);stroke-width:36px}
.r-walk{stroke:var(--walk);stroke-width:36px}
.r-dash{stroke:#fff;stroke-opacity:.75;stroke-width:3px;stroke-dasharray:2 14}
.deco{position:absolute;transform:translate(-50%,-50%);font-size:1.9rem;line-height:1;pointer-events:none;user-select:none}
.deco.cloud{font-size:2.6rem;opacity:.85}
.stops{list-style:none;margin:0;padding:0}
.stop{position:absolute;transform:translateX(-50%);width:0;display:flex;flex-direction:column;align-items:center}
.bub{position:relative;flex:none;width:80px;height:80px;border-radius:50%;border:6px solid var(--surface);background:var(--gc,var(--g1));color:var(--gi,#fff);display:grid;place-items:center;box-shadow:0 4px 0 rgba(0,0,0,.18),0 6px 14px rgba(0,0,0,.25);padding:0;cursor:pointer}
.bub.small{width:52px;height:52px;border-width:4px;margin-top:14px;background:var(--surface);cursor:default}
.bub.big{width:96px;height:96px;margin-top:-8px}
.bub .emo{font-size:2.1rem;line-height:1}
.bub.big .emo{font-size:2.6rem}
.bub .num{position:absolute;left:-8px;top:-8px;min-width:30px;height:30px;border-radius:15px;background:var(--surface);color:var(--ink);border:3px solid var(--gc,var(--g1));font-family:var(--font-display);font-size:1rem;display:grid;place-items:center}
.bub .tick{position:absolute;right:-8px;bottom:-6px;width:30px;height:30px;border-radius:50%;background:var(--good);color:#fff;border:3px solid var(--surface);font-style:normal;font-weight:800;display:grid;place-items:center}
.stop.lock .bub{background:var(--line);color:var(--muted);cursor:not-allowed;box-shadow:none}
.stop.lock .bub .num{border-color:var(--line);color:var(--muted)}
.stop.done .bub{background:var(--good);}
.stop.cur .bub{transform:scale(1.12);box-shadow:0 0 0 8px var(--halo),0 6px 14px rgba(0,0,0,.25)}
.stop.test.open .bub{background:var(--star);box-shadow:0 0 0 10px var(--halo),0 6px 14px rgba(0,0,0,.25)}
.stop.test.won .bub{background:var(--star)}
.stop.test.lock .bub{background:var(--line)}
.slab{margin-top:10px;width:max-content;max-width:min(160px,42vw);text-align:center;background:var(--surface);color:var(--ink);border:3px solid var(--line);border-radius:14px;padding:6px 10px;font-size:.95rem;line-height:1.25;display:flex;flex-direction:column;align-items:center;gap:2px}
.slab small{color:var(--muted)}
.slab .stars svg{width:18px;height:18px}
.stop.lock .slab{opacity:.75}
.hero{position:absolute;left:46px;top:-26px;font-size:2.4rem;line-height:1;pointer-events:none;filter:drop-shadow(0 3px 2px rgba(0,0,0,.3))}
.stop.test .hero{left:60px;top:-22px}
@media (prefers-reduced-motion:no-preference){
  .stop.cur .bub{animation:pulse 1.8s ease-in-out infinite}
  .stop.test.open .bub{animation:pulse 1.4s ease-in-out infinite}
  .hero{animation:hop 1.2s ease-in-out infinite}
  .deco.cloud{animation:drift 14s ease-in-out infinite alternate}
}
@keyframes pulse{50%{transform:scale(1.2)}}
@keyframes hop{50%{transform:translateY(-9px)}}
@keyframes drift{to{transform:translate(calc(-50% + 18px),-50%)}}
/* --- Décor « Monde magique » --- */
.trail.magic{border-color:#5b3aa0;background:
  radial-gradient(1.6px 1.6px at 18px 26px,#fff,transparent),radial-gradient(1.2px 1.2px at 70px 90px,#ffe9a8,transparent),radial-gradient(1.8px 1.8px at 120px 40px,#fff,transparent),radial-gradient(1.2px 1.2px at 150px 130px,#d7c2ff,transparent),radial-gradient(1.4px 1.4px at 40px 150px,#fff,transparent),
  linear-gradient(180deg,#1b0f4d 0%,#33196f 42%,#5f3a9f 76%,#e9a97f 100%);
  background-size:170px 170px,170px 170px,170px 170px,170px 170px,170px 170px,100% 100%}
.magic .roadsvg{filter:drop-shadow(0 0 7px rgba(255,214,120,.75))}
.magic .r-edge{stroke:#b57bff;stroke-opacity:.30;stroke-width:50px}
.magic .r-road{stroke:#ffe3a3;stroke-opacity:.30;stroke-width:30px}
.magic .r-walk{stroke:#ffd45e;stroke-opacity:1;stroke-width:30px}
.magic .r-dash{stroke:#fff;stroke-opacity:.9;stroke-width:3px;stroke-dasharray:1 13}
.magic .deco{color:#ffe08a;text-shadow:0 0 8px rgba(255,214,120,.9);font-size:1.5rem}
.magic .deco.cloud{font-size:2rem;opacity:.9}
.magic .bub{width:66px;height:88px;border-radius:33px 33px 10px 10px;border:5px solid #f4c95d;background:linear-gradient(#3b2386,#1f1252);color:#fff;box-shadow:0 6px 14px rgba(0,0,0,.45)}
.magic .bub .emo{font-size:1.7rem;margin-top:8px}
.magic .bub .num{left:50%;top:-14px;transform:translateX(-50%);background:#ffc83d;color:#3a1d7a;border:3px solid #fff;min-width:28px;height:28px}
.magic .bub::after{content:"";position:absolute;right:9px;top:54%;width:7px;height:7px;border-radius:50%;background:#f4c95d}
.magic .stop.cur .bub{background:linear-gradient(#ffeeb8 0,#8fd3ff 46%,#7ccf6a 47%,#4fae5a 100%);box-shadow:0 0 24px 8px rgba(255,214,120,.7)}
.magic .stop.done .bub{background:linear-gradient(#8fd3ff 0 50%,#7ccf6a 51%,#4fae5a 100%)}
.magic .stop.lock .bub{background:linear-gradient(#2a2250,#1a1438);border-color:#6a5aa0;color:#a79bd8;box-shadow:none}
.magic .stop.lock .bub .num{background:#4a3d80;color:#cfc6f2;border-color:#6a5aa0}
.magic .bub.small{width:46px;height:46px;border-radius:50%;margin-top:14px;background:#2a1a66}
.magic .bub.small::after{display:none}
.magic .bub.big{width:92px;height:122px;border-radius:46px 46px 14px 14px;margin-top:-30px}
.magic .bub.big .emo{font-size:2.5rem;margin-top:14px}
.magic .stop.test.open .bub,.magic .stop.test.won .bub{background:linear-gradient(#fff3c4,#ffc069 60%,#ff9a62);box-shadow:0 0 28px 12px rgba(255,214,120,.75)}
.magic .stop.test.lock .bub{background:linear-gradient(#2a2250,#1a1438)}
.magic .slab{border-color:#f4c95d}
.frise{list-style:none;margin:20px 0 0;padding:0 0 0 0;position:relative}
.fr{display:grid;grid-template-columns:minmax(64px,28%) 18px 1fr;align-items:center;gap:10px;padding:8px 0;position:relative}
.fr::before{content:"";position:absolute;left:calc(min(28%,100%) + 10px + 8px);top:0;bottom:0;width:4px;background:var(--line);border-radius:2px}
.fr:first-child::before{top:50%}.fr:last-child::before{bottom:50%}
.fdate{font-family:var(--font-display);font-weight:800;font-size:1.1rem;text-align:right;overflow-wrap:anywhere}
.fdot{width:18px;height:18px;border-radius:50%;background:var(--gc);border:4px solid var(--surface);z-index:1;justify-self:center}
.fslot{min-height:52px;padding:8px 12px;border-radius:14px;border:3px dashed var(--gc);background:transparent;text-align:left;font-size:1rem;color:var(--muted);width:100%}
.fr.got .fslot{border-style:solid;background:var(--good-bg);border-color:var(--good);color:var(--ink)}
.chip[data-act="ftok"]{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}
.gcell{display:flex;flex-direction:column;gap:8px}
.gcell .game{flex:1}
.addp{min-height:44px;border-radius:14px;border:3px dashed var(--line);background:transparent;color:var(--ink);font-weight:700;font-size:.95rem;padding:6px 12px;cursor:pointer}
.addp.on{border-style:solid;border-color:var(--good);background:var(--good-bg)}
.addp:disabled{opacity:.5;cursor:not-allowed}
.addp small{font-weight:400;color:var(--muted)}
.replbox{display:grid;gap:6px;padding:10px;border-radius:14px;border:3px solid var(--line);background:var(--surface)}
.replq{margin:0;font-size:.95rem}
.gpicks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,148px),1fr));gap:8px;margin-top:6px}
.gpick{display:flex;align-items:center;gap:8px;min-height:48px;padding:6px 10px;border-radius:14px;border:3px solid var(--line);background:var(--surface);color:var(--ink);text-align:left;font-size:.95rem;cursor:pointer}
.gpick .gl{flex:none;min-width:30px;height:30px;border-radius:9px;background:var(--gc);color:var(--gi);display:grid;place-items:center;font-weight:800;font-size:.8rem;padding:0 4px}
.gpick.on{border-color:var(--gc);background:color-mix(in srgb,var(--gc) 16%,var(--surface));box-shadow:0 0 0 2px var(--gc)}
.gpick:disabled{opacity:.45;cursor:not-allowed}
.tab.add{border-style:dashed}
/* Étape 4F : étapes du parcours = bouton + poignée ⠿ (glisser). Seule la poignée bloque le défilement au doigt. */
.steprow{align-items:center;gap:10px 14px}
.stepchip{position:relative;display:inline-flex;align-items:stretch;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html.lfdrag,html.lfdrag body{overflow:hidden;overscroll-behavior:none}   /* verrou de la page pendant un glisser d'étape au doigt (4F) */
.stepchip .tab{border-radius:99px 0 0 99px;border-right:0}
.grab{display:grid;place-items:center;min-width:48px;min-height:48px;padding:0 6px;border:3px solid var(--line);border-left:0;border-radius:0 99px 99px 0;background:var(--surface);color:var(--muted);font-size:1.25rem;line-height:1;touch-action:none;cursor:grab}
.stepchip .tab[aria-pressed="true"]+.grab{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
.stepchip.dragsrc{opacity:.35}
.dropbefore::before,.dropafter::after{content:"";position:absolute;top:-4px;bottom:-4px;width:6px;border-radius:3px;background:var(--btn);box-shadow:0 0 0 2px var(--surface)}
.dropbefore::before{left:-9px}.dropafter::after{right:-9px}
.dragghost.stepchip{display:inline-flex;position:fixed}
.iconbtn{min-width:44px;font-size:1.25rem;line-height:1;padding:6px 14px}
.playhead .tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.listen{min-width:44px;min-height:44px;border-radius:22px;border:3px solid var(--line);background:var(--surface);color:var(--ink);font-size:1.15rem;line-height:1;padding:0 10px;cursor:pointer}
.listen.txt{font-size:.9rem;font-weight:700;font-family:var(--font-display)}
.listen[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
.listen.sm{min-height:40px;font-size:.95rem;border-radius:12px;margin-top:8px;display:inline-flex;align-items:center;gap:6px;padding:0 14px}
.corr .listen.sm{margin-top:10px}
.zbar{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0}
.zlab{font-weight:700;min-width:84px;text-align:center}
.zoomwrap{overflow:auto;max-height:72vh;border-radius:16px;border:3px solid var(--line);background:var(--surface);-webkit-overflow-scrolling:touch}
.zoomwrap .imgbox.zb{display:block;max-width:none;border:0;border-radius:0}
.zoomwrap .imgbox.zb img{width:100%;max-width:none;height:auto}
.plines{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.pin.on{box-shadow:0 0 0 4px var(--ink),0 1px 6px rgba(0,0,0,.35)}
.hero.mag{width:max-content;display:flex;align-items:flex-end;gap:0;left:52px;top:-4px;font-size:0}
.hero.mag.rt{left:auto;right:52px;flex-direction:row-reverse}
.hero.mag .psvg{margin:0 -6px -2px 0;animation-delay:.25s}
.hero.mag.rt .psvg{margin:0 0 -2px -6px}
.hsvg,.psvg{flex:none;display:block}
.guide{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px}
.guide .say{background:var(--surface);border:3px solid var(--line);border-radius:14px;padding:3px 10px;font-family:var(--font-display);font-weight:700;font-size:.9rem;white-space:nowrap}
.quest.withhero{display:flex;gap:16px;align-items:flex-start}
.quest.withhero .qbody{flex:1;min-width:0}
@media (max-width:480px){.quest.withhero{flex-direction:column;align-items:stretch}.guide{flex-direction:row;align-items:flex-end}.magic .bub{width:60px;height:80px}.magic .bub.big{width:84px;height:112px}.hero.mag{left:44px}.hero.mag.rt{right:44px}}
@media (prefers-reduced-motion:no-preference){.magic .stop.cur .bub{animation:pulse 1.8s ease-in-out infinite}}
@media (max-width:480px){.bub{width:72px;height:72px}.bub.big{width:88px;height:88px}.hero{left:40px}}
@media (max-width:480px){
  body{font-size:17px}
  .card{padding:16px}
  .opts.two .opt{font-size:1.3rem}
  .lt{width:34px;height:48px;font-size:1.5rem}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important}
}
/* Étape 2 — Zones tactiles d’au moins 44 × 44 px, SANS changer le dessin des boutons :
   une zone transparente (pseudo-élément ::after) agrandit seulement la surface qui répond au doigt. */
.chip{position:relative}
.pin::after,.chip::after{content:'';position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
/* Croix « Retirer la photo » (26 px) : zone de 44 px dans le coin de la vignette (la vignette coupe ce qui dépasse). */
.tx::after{content:'';position:absolute;top:-3px;right:-3px;width:44px;height:44px}
/* Bouton radio « bonne réponse » de l’éditeur (28 px) : enveloppe cliquable de 8 px tout autour,
   compensée par une marge de −8 px pour que le bouton reste exactement à la même place. */
.crow .zt-radio{display:flex;flex:none;padding:8px;margin:-8px;cursor:pointer}
/* Listes déroulantes (42 px) : 2 px de plus en hauteur (seul changement visible). */
select{min-height:44px}
/* Étape 3 : code d’accès de test et panneau « Coût de cette leçon (test) ». */
input[type="password"]{font:inherit;color:var(--ink);background:var(--bg);border:3px solid var(--line);border-radius:12px;padding:9px 12px;width:100%;min-width:0}
input[type="password"]:focus{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.cout summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cout-tab{overflow-x:auto;margin-top:12px}
.cout table{border-collapse:collapse;width:100%;font-size:.85rem}
.cout th,.cout td{border-bottom:1px solid var(--line);padding:6px 4px;text-align:right;white-space:nowrap}
.cout th:first-child,.cout td:first-child{text-align:left;white-space:normal}
.cout tfoot th{border-bottom:0}

/* Étape 4 : liens présentés comme des boutons (Se connecter, Voir les formules). */
a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}

/* ---------- Étape 4C : parcours horizontal (ordinateur, 1024 px et plus) : toutes les étapes sur une ligne ---------- */
@media (min-width:1024px){
  #app.pathv{max-width:1400px}
  .pathpage.hz{max-width:none}
  .pathpage.hz h1{text-align:center}
  .pathpage.hz>.playhead,.pathpage.hz>.prog,.pathpage.hz>.quest{max-width:760px;margin-left:auto;margin-right:auto}
  .pathpage.hz>.quest{margin-top:14px}
  .trail.horiz{margin-top:12px}
  .trail.horiz .slab{width:max-content;max-width:calc((min(100vw - 32px,1400px) - 6px) / var(--n) - 8px);padding:5px 6px;font-size:.88rem;overflow-wrap:anywhere}
  .trail.horiz .slab b,.trail.horiz .slab small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}
  .trail.horiz.dense .slab{font-size:.76rem;padding:4px;gap:1px}
  .trail.horiz.dense .slab .stars svg{width:14px;height:14px}
  .trail.horiz.dense .bub{width:54px;height:74px}
  .trail.horiz.dense .bub.big{width:76px;height:104px}
  .trail.horiz.dense .bub.small{width:40px;height:40px}
  .trail.horiz .bub .emo{font-size:1.5rem}
  .trail.horiz .stop .hero.mag{left:-44px;top:-76px;font-size:0}
  .trail.horiz .mascot{max-width:88px;max-height:64px}
  .trail.horiz .deco{font-size:1.3rem}
}

/* Étape 5B : « Mes parcours » (parcours enregistrés dans le compte) */
.mp-sauv{margin:0 0 14px}
.mp-sauv .msg{margin-top:0}
.mp-case{display:flex;align-items:center;gap:10px;margin-top:16px;font-weight:600;cursor:pointer}
.mp-case input{width:24px;height:24px;flex:none;accent-color:var(--btn)}
.mp-filtres{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}
.mp-bloc{flex:1 1 200px;min-width:0}
.mp-champ{width:100%;min-height:48px;font:inherit;color:var(--ink);background:var(--bg);border:3px solid var(--line);border-radius:12px;padding:9px 12px}
.mp-champ:focus{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.mp-liste{list-style:none;margin:0;padding:0}
.mp-fiche{border:2px solid var(--line);border-radius:18px;padding:16px;margin-top:14px;background:var(--bg)}
.mp-fiche h3{margin:0 0 8px;font-family:var(--font-display);font-size:1.25rem;overflow-wrap:anywhere}
.mp-fiche h3:focus{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.mp-meta{margin:0;color:var(--muted);font-size:.92rem}
.mp-fiche .actions{margin-top:12px;gap:10px}
.mp-ren .lbl{margin-bottom:6px}
#mp-etat:focus{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
@media (max-width:480px){.mp-fiche .actions .btn{flex:1 1 100%}}

/* ---------- Design v2, partie B : écran Réglages (§ 12 du dossier design) ----------
   Couleurs de l'ambiance choisie (var(--surface), var(--line), var(--btn)…) : lisible dans les 9 ambiances.
   Fredoka et Nunito si la page les charge (/app/, /decouverte/), sinon les polices de l'appli ; police d'accessibilité : classe lf-police. */
.reg{font-family:Nunito,var(--font-body);font-size:1rem;line-height:1.45;display:flex;flex-direction:column;gap:24px}
.reg h1,.reg h2{font-family:Fredoka,var(--font-display);letter-spacing:-.01em;font-weight:700}
.lf-police .reg,.lf-police .reg h1,.lf-police .reg h2{font-family:var(--font-body)}
.reg h1{font-size:2.25rem}
.reg h2{font-size:1.25rem}
.reg h2:focus{outline:none}
.reg h2:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.reg-tete{display:flex;flex-direction:column;gap:4px}
.reg-tete p{color:var(--muted);font-size:1rem}
.reg-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:20px;align-items:start}
.reg-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.reg-carte{background:var(--surface);border:1.5px solid var(--line);border-radius:24px;padding:22px 24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.reg-titre{display:flex;flex-direction:column;gap:2px}
.reg-titre span,.reg-texte{font-size:.875rem;color:var(--muted)}
.reg-champ{display:flex;flex-direction:column;gap:8px}
.reg-lbl{font-size:.8125rem;font-weight:800;color:var(--muted)}
.reg-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.reg-ligne>.reg-lbl{margin-right:6px}
.reg-pils{display:flex;flex-wrap:wrap;gap:8px}
.reg-pil{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 18px;font-weight:800;font-size:.9375rem;font-family:inherit}
.reg-pil.sm{padding:7px 16px;font-size:.875rem}
.reg-pil.t1{font-size:1.0625rem}.reg-pil.t2{font-size:1.1875rem}
.reg-pil:hover{border-color:var(--btn)}
.reg-pil[aria-pressed="true"]{background:var(--btn);border-color:var(--btn);color:var(--btn-ink)}
.reg-ecoute{margin-left:auto}
.reg-select{width:100%;min-height:48px;font-family:inherit;font-size:.9375rem;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:12px;padding:10px 14px}
.reg-select:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.reg-note{color:var(--muted);font-size:.875rem;line-height:1.45}
.reg-ambs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.reg-amb{position:relative;display:flex;flex-direction:column;gap:8px;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:10px;text-align:left;font-family:inherit}
.reg-amb:hover{border-color:var(--btn)}
.reg-amb.on{border-color:var(--btn);box-shadow:0 0 0 1px var(--btn)}
.reg-amb strong{font-size:.8125rem;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.reg-ambv{height:46px;border-radius:10px;border:1.5px solid rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;gap:6px;padding:0 6px}
.reg-ambv span{width:30px;max-width:40%;height:12px;border-radius:999px}
.reg-coche{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;background:var(--btn);color:var(--btn-ink);display:inline-flex;align-items:center;justify-content:center}
.reg-ident{display:flex;align-items:center;gap:12px}
.reg-avatar{width:44px;height:44px;flex:none;border-radius:50%;background:#FFCC3F;color:#171A33;font-weight:800;font-size:1.125rem;display:inline-flex;align-items:center;justify-content:center}
.reg-idtxt{display:flex;flex-direction:column;min-width:0;gap:2px}
.reg-idtxt strong{font-size:.9375rem;overflow-wrap:anywhere}
.reg-idtxt span{font-size:.8125rem;color:var(--muted)}
.reg-offre{background:linear-gradient(135deg,#120F38 0%,#3A2A7E 100%);color:#FFFFFF;border-radius:18px;padding:16px 18px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.reg-offre span{font-size:.875rem;line-height:1.4;max-width:300px}
.reg-jaune{display:inline-flex;align-items:center;min-height:44px;background:#FFCC3F;color:#171A33;font-weight:800;font-size:.875rem;padding:10px 16px;border-radius:999px;text-decoration:none}
.reg-offre :focus-visible{outline-color:#FFCC3F}
.reg-actions{display:flex;flex-wrap:wrap;gap:10px}
.reg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:999px;background:var(--btn);color:var(--btn-ink);border:2px solid var(--btn);font-weight:800;font-size:.9375rem;text-decoration:none;font-family:inherit}
.reg-btn.contour{background:transparent;color:var(--ink);border-color:var(--line)}
.reg-btn:hover,.reg-jaune:hover,.reg-fini:hover{filter:brightness(1.06)}
.reg-btn:disabled{opacity:.5;cursor:not-allowed}
.reg-liens{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:.875rem;font-weight:800}
.reg-liens a,.reg-quitter{color:var(--ink);text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center;font-family:inherit;font-weight:800}
.reg-quitter{color:var(--try)}
.reg-pied{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center}
.reg-fini{min-height:48px;background:var(--btn);color:var(--btn-ink);font-weight:800;font-size:.9375rem;padding:12px 22px;border-radius:999px;font-family:inherit}
.reg-defaut{min-height:44px;font-size:.875rem;font-weight:800;color:var(--muted);font-family:inherit;text-decoration:underline;text-underline-offset:3px}
@media (max-width:480px){.reg h1{font-size:1.9rem}.reg-carte{padding:18px 16px}.reg-ambs{gap:8px}.reg-ecoute{margin-left:0}}
