/* ============================================================
   LISSAN — design system, écrans, animations, mode sombre
   ============================================================ */

/* ---------- Jetons ---------- */
:root {
  --bg: #F4F5FF; --bg-2: #EBEDFF; --surface: #FFFFFF; --surface-2: #F7F7FD;
  --ink: #1B1840; --ink-2: #4B4870; --ink-3: #8B89A8; --line: #E4E3F3; --line-2: #D3D1EA;
  --brand: #6C4DFF; --brand-deep: #4E30DB; --brand-soft: #ECE7FF;
  --sun: #FFC93C; --sun-deep: #E0A400; --sun-ink: #4A3300;
  --ok: #1FBF75; --ok-deep: #13935A; --ok-soft: #DDF8EB; --ok-ink: #0E6B41;
  --bad: #FF5470; --bad-deep: #D93656; --bad-soft: #FFE4E9; --bad-ink: #A11E3B;
  --fire: #FF8A1F; --gem: #2FA8FF; --heart: #FF5470;
  --r-xs: 10px; --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-xl: 40px;
  --sh-1: 0 1px 2px rgb(27 24 64 / .06), 0 4px 12px -4px rgb(27 24 64 / .08);
  --sh-2: 0 18px 40px -18px rgb(27 24 64 / .28);
  --sh-3: 0 40px 90px -30px rgb(40 20 120 / .45);
  --f-display: 'Bricolage', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 244px; --rail-w: 330px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110F24; --bg-2: #17152F; --surface: #1B1935; --surface-2: #221F40;
    --ink: #F2F0FF; --ink-2: #C3BFE3; --ink-3: #8D89B3; --line: #2D2A50; --line-2: #3A3663;
    --brand: #8367FF; --brand-deep: #5B3EE6; --brand-soft: #2A2260;
    --ok-soft: #10392A; --ok-ink: #7BE7B3; --bad-soft: #3D1623; --bad-ink: #FF9CAE;
    --sh-1: 0 1px 2px rgb(0 0 0 / .3), 0 4px 12px -4px rgb(0 0 0 / .4);
    --sh-2: 0 18px 40px -18px rgb(0 0 0 / .6); --sh-3: 0 40px 90px -30px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110F24; --bg-2: #17152F; --surface: #1B1935; --surface-2: #221F40;
  --ink: #F2F0FF; --ink-2: #C3BFE3; --ink-3: #8D89B3; --line: #2D2A50; --line-2: #3A3663;
  --brand: #8367FF; --brand-deep: #5B3EE6; --brand-soft: #2A2260;
  --ok-soft: #10392A; --ok-ink: #7BE7B3; --bad-soft: #3D1623; --bad-ink: #FF9CAE;
  --sh-1: 0 1px 2px rgb(0 0 0 / .3), 0 4px 12px -4px rgb(0 0 0 / .4);
  --sh-2: 0 18px 40px -18px rgb(0 0 0 / .6); --sh-3: 0 40px 90px -30px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(80px + var(--safe-t)); }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 1rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 750; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic.g { stroke: none; }
.small { font-size: .85rem; color: var(--ink-3); }
.center { text-align: center; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }
.link { color: var(--brand); font-weight: 800; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link.right { display: block; text-align: right; margin: -.25rem 0 1rem; }
kbd { font: 800 .7rem/1 var(--f-body); color: var(--ink-3); border: 2px solid var(--line); border-radius: 7px; padding: .25rem .4rem; }

/* ---------- Boutons (ombre pleine, enfoncement au clic) ---------- */
.btn {
  --c: var(--surface); --d: var(--line-2); --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.3rem; border-radius: 16px; border: 2px solid var(--d);
  background: var(--c); color: var(--t); font: 800 1rem/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 4px 0 var(--d); transform: translateY(0);
  transition: transform .08s, box-shadow .08s, filter .15s, background .15s; user-select: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.04); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--d); }
.btn:disabled { --c: var(--surface-2); --d: var(--line); --t: var(--ink-3); cursor: not-allowed; border-color: var(--line); box-shadow: 0 4px 0 var(--line); filter: none; }
.btn-primary { --c: var(--brand); --d: var(--brand-deep); --t: #fff; border-color: var(--brand); }
.btn-sun { --c: var(--sun); --d: var(--sun-deep); --t: var(--sun-ink); border-color: var(--sun); }
.btn-ok { --c: var(--ok); --d: var(--ok-deep); --t: #fff; border-color: var(--ok); }
.btn-bad { --c: var(--bad); --d: var(--bad-deep); --t: #fff; border-color: var(--bad); }
.btn-white { --c: #fff; --d: rgb(0 0 0 / .18); --t: var(--u, var(--brand)); border-color: #fff; }
.btn-danger { --c: var(--bad); --d: var(--bad-deep); --t: #fff; border-color: var(--bad); }
.btn-danger-ghost { --t: var(--bad-ink); }
.btn-ghost { --c: var(--surface); }
.btn-sm { min-height: 38px; padding: 0 .9rem; font-size: .88rem; border-radius: 12px; box-shadow: 0 3px 0 var(--d); }
.btn-lg { min-height: 54px; padding: 0 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent; color: var(--ink-3); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .ic { width: 24px; height: 24px; }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; }
.logo-mark .mascot { width: 100%; height: 100%; }
.logo-word { position: relative; display: inline-block; font: 800 1.6rem/1 var(--f-display); letter-spacing: -.045em; color: var(--brand); padding-top: .3em; }
.logo-word i { position: absolute; top: 0; left: 1.72em; width: .23em; height: .23em; border-radius: 50%; background: var(--sun); }

/* ---------- Mascotte ---------- */
.mascot { overflow: visible; }
.mascot .m-eyes { transform-origin: 60px 50px; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.mascot .m-accent { transform-origin: 76px 10px; animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: var(--ink); color: var(--bg); border-radius: 16px; font-weight: 700; box-shadow: var(--sh-2); pointer-events: auto; }
.toast-ic { font-size: 1.3rem; line-height: 1; }

/* ---------- Modales ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem; }
.modal-bg { position: absolute; inset: 0; background: rgb(17 15 36 / .55); backdrop-filter: blur(6px); }
.modal { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; background: var(--surface); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--sh-3); text-align: center; outline: none; }
.modal.wide { width: min(620px, 100%); }
.modal-title { font-size: 1.5rem; margin-bottom: .5rem; }
.modal-text { color: var(--ink-2); margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.modal-actions.col { flex-direction: column; }
.m-md { width: 110px; margin: 0 auto 1rem; }

/* ---------- Loader d'accueil ---------- */
#loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #FFFFFF 0%, #EEF0FF 55%, #E5E0FF 100%); clip-path: circle(150% at 50% 50%); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1), opacity .6s .5s; }
#loader.open { clip-path: circle(0% at 50% 50%); opacity: 0; }
.ld-word { font: 750 clamp(2.4rem, 8vw, 5rem)/1 var(--f-display); letter-spacing: -.03em; opacity: 0; }
html[data-theme="dark"] #loader { background: radial-gradient(120% 90% at 50% 40%, #221F40, #110F24); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) #loader { background: radial-gradient(120% 90% at 50% 40%, #221F40, #110F24); } }

/* ============================================================
   ACCUEIL
   ============================================================ */
.home { overflow-x: clip; }
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 1rem; padding: calc(.8rem + var(--safe-t)) clamp(1rem, 3vw, 2rem) .8rem; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-links { display: flex; gap: .25rem; margin-inline: auto; }
.nav-links a { padding: .55rem .85rem; border-radius: 12px; font-weight: 800; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--ink); }
.nav-cta { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.nav-burger { display: none; }
.nav-sheet { position: fixed; top: calc(68px + var(--safe-t)); left: 12px; right: 12px; z-index: 49; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-3); padding: .5rem; display: grid; }
.nav-sheet a { padding: .9rem 1rem; font-weight: 800; text-decoration: none; border-radius: 12px; }
.nav-sheet a:hover { background: var(--surface-2); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(96px + var(--safe-t)) 1.25rem 5rem; isolation: isolate; overflow: hidden; touch-action: pan-y; }
.sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #E9EDFF 0%, #F3EEFF 45%, #FFF3E8 100%); overflow: hidden; }
html[data-theme="dark"] .sky { background: linear-gradient(180deg, #0F0D22 0%, #1A1540 55%, #2A1A3A 100%); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sky { background: linear-gradient(180deg, #0F0D22 0%, #1A1540 55%, #2A1A3A 100%); } }
.sky i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.sky .b1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: #B9A8FF; }
.sky .b2 { width: 38vmax; height: 38vmax; right: -10vmax; top: 8vmax; background: #9FE3FF; animation-duration: 28s; }
.sky .b3 { width: 34vmax; height: 34vmax; left: 20vw; bottom: -18vmax; background: #FFD6A8; animation-duration: 25s; }
.sky .b4 { width: 20vmax; height: 20vmax; right: 18vw; bottom: 6vmax; background: #FFB6CF; opacity: .35; animation-duration: 31s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }

.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; }
.ow { position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem .55rem .7rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); font: 750 1.35rem/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 10px 30px -14px rgb(40 20 120 / .45), inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); will-change: transform, opacity, filter; backdrop-filter: blur(4px); }
.ow::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); flex: none; }
.ow.ring2 { font-size: 1.1rem; font-weight: 600; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ow.said { box-shadow: 0 0 0 4px var(--c), 0 14px 30px -10px var(--c); }
.ow[data-tip].said::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 800 .75rem/1 var(--f-body); background: var(--ink); color: var(--bg); padding: .35rem .55rem; border-radius: 8px; }

.hero-copy { position: relative; z-index: 3; max-width: 860px; text-align: center; display: grid; justify-items: center; gap: 1.4rem; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-hi { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1rem .35rem .35rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--sh-1); font-weight: 800; color: var(--ink-2); font-size: .95rem; backdrop-filter: blur(8px); }
.hero-m { width: 40px; height: 40px; }
.hero-title { font-size: clamp(2.8rem, 8.2vw, 6.6rem); line-height: .96; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; perspective: 600px; }
.hero-title .w { display: inline-block; overflow: visible; }
.hero-title .w > span { display: inline-block; transform-origin: 50% 100%; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; font-weight: 600; text-wrap: pretty; }
.hero-cta { position: relative; z-index: 6; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero-tip { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--ink-3); }
.scroll-hint { position: absolute; bottom: calc(1.5rem + var(--safe-b)); left: 50%; transform: translateX(-50%); width: 28px; height: 44px; border: 2.5px solid var(--ink-3); border-radius: 20px; z-index: 4; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink-3); animation: sh 1.8s ease-in-out infinite; }
@keyframes sh { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--bg); padding: 1rem 0; }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; animation: tick 60s linear infinite; }
.ticker span { display: inline-flex; align-items: baseline; gap: .6rem; white-space: nowrap; }
.ticker b { font: 700 1.5rem/1 var(--f-display); color: color-mix(in srgb, var(--c) 45%, #fff); }
.ticker em { font-style: normal; font-weight: 700; font-size: .85rem; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Titres de sections */
.sec-title { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; text-wrap: balance; max-width: 16em; }
.sec-lead { margin-top: .9rem; color: var(--ink-2); font-size: 1.1rem; max-width: 38em; font-weight: 600; }

/* Traversée Z */
.journey { position: relative; height: 340vh; background: var(--bg); }
.j-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(300px, 1fr) 1.2fr; align-items: center; gap: 2rem; width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.j-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .6rem; }
.j-steps li { position: relative; padding: 1rem 1.2rem 1rem 1.4rem; border-radius: var(--r); transition: background .4s, opacity .4s; opacity: .45; }
.j-steps li b { display: block; font: 750 1.4rem/1.1 var(--f-display); margin-bottom: .3rem; }
.j-steps li span { color: var(--ink-2); font-weight: 600; }
.j-steps li i { position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.j-steps li i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform-origin: top; transform: scaleY(var(--f, 0)); }
.j-steps li.on { opacity: 1; background: var(--surface); box-shadow: var(--sh-1); }
.j-stage { position: relative; height: min(560px, 70vh); perspective: 1000px; perspective-origin: 50% 40%; }
.j-plane { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform, opacity, filter; transform-style: flat; }
.journey.static { height: auto; padding: 5rem 0; }
.journey.static .j-sticky { position: static; height: auto; grid-template-columns: 1fr; }
.journey.static .j-stage { height: auto; perspective: none; display: grid; gap: 1.5rem; }
.journey.static .j-plane { position: static; }
.journey.static .j-steps li { opacity: 1; }

.demo-q, .demo-path, .demo-talk { width: min(420px, 90%); background: var(--surface); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--sh-3); }
.demo-q-t { font: 750 1.4rem/1.2 var(--f-display); margin-bottom: 1rem; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.demo-grid span { display: grid; place-items: center; gap: .2rem; padding: 1rem .5rem; font-size: 2.6rem; border: 2px solid var(--line); border-radius: var(--r); box-shadow: 0 3px 0 var(--line); }
.demo-grid em { font-style: normal; font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.demo-grid .ok { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 3px 0 var(--ok); }
.demo-bar { margin-top: 1.2rem; height: 14px; border-radius: 10px; background: var(--line); overflow: hidden; }
.demo-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.dp-top { display: flex; justify-content: space-between; font-weight: 800; }
.dp-fire { color: var(--fire); display: inline-flex; gap: .3rem; align-items: center; }
.dp-gem { color: var(--gem); display: inline-flex; gap: .3rem; align-items: center; }
.dp-fire .ic, .dp-gem .ic { fill: currentColor; stroke-width: 1.5; }
.dp-nodes { display: grid; justify-items: center; gap: .9rem; margin: 1.4rem 0; }
.dp-nodes i { display: grid; place-items: center; width: 64px; height: 56px; border-radius: 50%; background: var(--line); color: var(--ink-3); box-shadow: 0 6px 0 var(--line-2); font-style: normal; font-size: 1.6rem; }
.dp-nodes i:nth-child(2) { transform: translateX(40px); } .dp-nodes i:nth-child(3) { transform: translateX(56px); } .dp-nodes i:nth-child(4) { transform: translateX(40px); }
.dp-nodes .done { background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 0 var(--sun-deep); }
.dp-nodes .cur { background: var(--brand); color: #fff; box-shadow: 0 6px 0 var(--brand-deep), 0 0 0 8px color-mix(in srgb, var(--brand) 20%, transparent); }
.dp-nodes .ic { width: 28px; height: 28px; stroke-width: 3; }
.dp-foot { text-align: center; font-weight: 800; color: var(--ink-2); }
.demo-talk { display: flex; align-items: center; gap: 1rem; }
.demo-talk .mascot { width: 130px; flex: none; }
.talk-bubble { flex: 1; padding: 1.2rem; border-radius: var(--r); border: 2px solid var(--line); position: relative; }
.talk-bubble b { display: block; font: 800 2.2rem/1 var(--f-display); color: var(--brand); margin-bottom: .8rem; }
.wave { display: flex; gap: 5px; align-items: center; height: 36px; }
.wave i { width: 6px; border-radius: 4px; background: var(--brand); animation: wave 1s ease-in-out infinite; height: 30%; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; } .wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; }
@keyframes wave { 50% { height: 100%; } }

/* Jeux */
.games { padding: clamp(5rem, 10vw, 8rem) 0; }
.game-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; perspective: 1200px; }
.game-card { --rx: 0deg; --ry: 0deg; position: relative; padding: 1.25rem; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .3s; transform-style: preserve-3d; }
.game-card.tilting { transition: transform .08s linear; box-shadow: var(--sh-2); }
.game-card.pre { opacity: 0; }
.game-card h3 { font-size: 1.25rem; margin: 1rem 0 .3rem; }
.game-card p { color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.gc-demo { height: 130px; border-radius: var(--r); background: color-mix(in srgb, var(--g) 12%, var(--surface)); display: grid; place-items: center; position: relative; overflow: hidden; transform: translateZ(30px); }
.gd-pick { grid-template-columns: repeat(2, 48px); gap: 8px; place-content: center; }
.gd-pick span { display: grid; place-items: center; height: 48px; border-radius: 12px; background: var(--surface); font-size: 1.6rem; box-shadow: 0 3px 0 var(--line); }
.gd-pick .hit { animation: hit 2.4s ease-in-out infinite; }
@keyframes hit { 30%, 70% { box-shadow: 0 0 0 3px var(--g), 0 3px 0 var(--g); transform: translateY(-3px); } }
.gd-listen { display: flex; gap: 12px; color: var(--g); }
.gd-listen > .ic { width: 44px; height: 44px; }
.gd-listen .bars { display: flex; gap: 5px; height: 40px; align-items: center; }
.gd-listen .bars i { width: 6px; height: 30%; background: var(--g); border-radius: 4px; animation: wave .9s ease-in-out infinite; }
.gd-listen .bars i:nth-child(2) { animation-delay: .15s; } .gd-listen .bars i:nth-child(3) { animation-delay: .3s; } .gd-listen .bars i:nth-child(4) { animation-delay: .45s; } .gd-listen .bars i:nth-child(5) { animation-delay: .6s; }
.gd-match { grid-template-columns: 1fr 1fr; gap: 10px 48px; place-content: center; }
.gd-match span { padding: .35rem .7rem; border-radius: 10px; background: var(--surface); font-weight: 800; font-size: .9rem; text-align: center; position: relative; z-index: 1; }
.gd-match svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gd-match path { fill: none; stroke: var(--g); stroke-width: 1.4; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 2.6s ease-in-out infinite; vector-effect: non-scaling-stroke; }
.gd-match path:nth-child(2) { animation-delay: .6s; }
@keyframes draw { 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.gd-build { display: flex; gap: 6px; }
.gd-build span { padding: .45rem .7rem; border-radius: 10px; background: var(--surface); font-weight: 800; box-shadow: 0 3px 0 var(--line); animation: jump 2.4s var(--ease) infinite; }
.gd-build span:nth-child(2) { animation-delay: .25s; } .gd-build span:nth-child(3) { animation-delay: .5s; }
@keyframes jump { 0% { transform: translateY(30px); opacity: 0; } 20%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.gd-type .typed { font: 800 1.4rem/1 var(--f-display); color: var(--g); border-right: 3px solid var(--g); padding-right: 4px; width: 0; overflow: hidden; white-space: nowrap; animation: type 3s steps(7) infinite; }
@keyframes type { 60%, 90% { width: 5.2em; } }

/* Langues */
.langs { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--bg-2); }
.lang-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; perspective: 1000px; }
.lang-card { --rx: 0deg; --ry: 0deg; display: grid; gap: .2rem; text-align: left; padding: 1.2rem; min-height: 150px; border: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .3s; position: relative; overflow: hidden; align-content: end; }
.lang-card::before { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .13; transition: transform .5s var(--ease); }
.lang-card:hover::before { transform: scale(1.6); }
.lang-card.tilting { transition: transform .08s linear; box-shadow: var(--sh-2); }
.lc-hello { font: 750 1.7rem/1.1 var(--f-display); color: var(--c); margin-bottom: auto; padding-bottom: 1rem; }
.lc-name { font-weight: 900; font-size: 1.05rem; }
.lc-native { color: var(--ink-3); font-weight: 700; font-size: .88rem; }

/* Parents */
.parents { padding: clamp(5rem, 10vw, 8rem) 0; background: #1B1840; color: #F2F0FF; --ink-2: #C3BFE3; --line: #3A3663; }
.parents .sec-lead { color: #C3BFE3; }
.parents-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.p-feats { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.p-feats li { display: flex; gap: 1rem; align-items: flex-start; }
.p-feats li > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / .08); color: var(--sun); }
.p-feats b { display: block; font-size: 1.05rem; }
.p-feats span { color: #C3BFE3; font-weight: 600; }
.p-card-wrap { perspective: 1400px; display: grid; place-items: center; }
.report { --rx: 0deg; --ry: 0deg; width: min(400px, 100%); aspect-ratio: 4 / 5; border: 0; padding: 0; background: none; color: var(--ink); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.report.tilting { transition: transform .08s linear; }
.rp-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.report.flipped .rp-inner { transform: rotateY(180deg); }
.rp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-xl); background: #fff; color: #1B1840; padding: 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; text-align: left; box-shadow: 0 50px 100px -30px rgb(0 0 0 / .6); }
.rp-back { transform: rotateY(180deg); background: linear-gradient(160deg, #6C4DFF, #4E30DB); color: #fff; }
.rp-head { display: flex; align-items: center; gap: .8rem; transform: translateZ(40px); }
.rp-av { font-size: 2.2rem; width: 56px; height: 56px; display: grid; place-items: center; background: #F1EEFF; border-radius: 18px; }
.rp-head b { display: block; font: 750 1.2rem/1.1 var(--f-display); }
.rp-head small { color: #8B89A8; font-weight: 700; }
.rp-lang { margin-left: auto; font-weight: 900; font-size: .8rem; color: #fff; background: var(--c); padding: .35rem .6rem; border-radius: 10px; }
.rp-bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.rp-bars span { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.rp-bars i { width: 100%; height: var(--h); border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #8C74FF, #6C4DFF); }
.rp-bars em { font-style: normal; font-weight: 800; font-size: .78rem; color: #8B89A8; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.rp-stats span { background: #F4F5FF; border-radius: 14px; padding: .7rem; font-size: .78rem; font-weight: 700; color: #4B4870; }
.rp-stats b { display: block; font: 800 1.4rem/1 var(--f-display); color: #1B1840; }
.rp-hint { text-align: center; color: #8B89A8; font-weight: 700; }
.rp-title { font: 750 1.5rem/1.1 var(--f-display); }
.rp-words { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rp-words li { padding: .5rem .8rem; border-radius: 12px; background: rgb(255 255 255 / .16); font-weight: 800; }
.rp-note { margin-top: auto; font-weight: 700; opacity: .85; }

/* Tarif */
.pricing { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.pricing .sec-title, .pricing .sec-lead { margin-inline: auto; }
.price-row { margin-top: 3rem; display: flex; gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.price-stage { perspective: 1400px; }
.price-card { --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 30%; position: relative; width: min(380px, 88vw); padding: 2rem; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3); text-align: left; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); overflow: hidden; }
.price-card.pre { opacity: 0; }
.price-card.floating { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.pc-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--sx) var(--sy), rgb(108 77 255 / .14), transparent 45%); }
.pc-name { font: 750 1.2rem/1 var(--f-display); color: var(--brand); transform: translateZ(60px); }
.pc-price { margin: 1rem 0 1.4rem; display: flex; align-items: baseline; gap: .5rem; transform: translateZ(60px); }
.pc-price b { font: 800 5rem/1 var(--f-display); letter-spacing: -.05em; }
.pc-price span { font-weight: 800; color: var(--ink-3); }
.pc-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; font-weight: 700; }
.pc-list li { display: flex; gap: .6rem; align-items: center; }
.pc-list .ic { color: var(--ok); stroke-width: 3; }
.soon-card { width: min(300px, 88vw); padding: 1.6rem; border-radius: var(--r-lg); border: 2px dashed var(--line-2); text-align: left; display: grid; gap: .7rem; justify-items: start; }
.soon-card h3 { font-size: 1.5rem; }
.soon-card p { color: var(--ink-2); font-weight: 600; }
.soon-tag { font-weight: 900; font-size: .8rem; color: var(--sun-ink); background: var(--sun); padding: .3rem .6rem; border-radius: 8px; }

/* FAQ */
.faq { padding: 2rem 0 clamp(5rem, 10vw, 8rem); }
.faq .sec-title { margin-bottom: 2rem; }
.qa { border-bottom: 2px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font: 750 1.2rem/1.25 var(--f-display); cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-1); transition: transform .3s var(--ease); }
.qa[open] summary span { transform: rotate(45deg); }
.qa p { padding: 0 3rem 1.4rem 0; color: var(--ink-2); font-weight: 600; }

/* Final + pied */
.final { padding: 0 0 5rem; }
.final-in { background: linear-gradient(135deg, #6C4DFF, #8B5CF6 60%, #B266FF); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.final-in h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 14em; text-wrap: balance; }
.final-m { width: 110px; }
.foot { padding: 2.5rem 0 calc(2.5rem + var(--safe-b)); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot nav a { font-weight: 800; color: var(--ink-2); text-decoration: none; }
.foot p { color: var(--ink-3); font-weight: 700; font-size: .9rem; }

/* ============================================================
   AUTHENTIFICATION
   ============================================================ */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr minmax(360px, 560px); }
.auth-art { position: relative; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.auth-art .sky { position: absolute; }
.aa-float span { position: absolute; font: 750 clamp(1.2rem, 2vw, 1.8rem)/1 var(--f-display); color: var(--brand); opacity: .55; left: calc(10% + (var(--i) * 11%)); top: calc(12% + mod(var(--i) * 37%, 76%)); animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
@supports not (top: mod(1%, 2%)) { .aa-float span:nth-child(odd) { top: 18%; } .aa-float span:nth-child(even) { top: 78%; } .aa-float span:nth-child(3n) { top: 46%; left: 8%; } }
@keyframes bob { 50% { transform: translateY(-16px) rotate(-3deg); } }
.aa-m { width: min(240px, 40%); animation: bob 5s ease-in-out infinite; }
.aa-quote { position: absolute; bottom: 3rem; left: 0; right: 0; text-align: center; font: 700 1.5rem/1.2 var(--f-display); padding: 0 2rem; color: var(--ink); }
.auth-main { display: flex; flex-direction: column; padding: calc(1.2rem + var(--safe-t)) clamp(1.25rem, 4vw, 3rem) calc(2rem + var(--safe-b)); background: var(--surface); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.auth-top .link { font-size: .92rem; }
.auth-card { margin: auto 0; padding: 2rem 0; width: 100%; max-width: 420px; align-self: center; }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.auth-sub { color: var(--ink-2); margin: .5rem 0 1.6rem; font-weight: 600; }
.field { margin-bottom: 1rem; }
.field label, .ob-label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: .4rem; }
.inp { position: relative; }
.inp input, .ob-input { width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 700; transition: border-color .15s, background .15s; }
.inp input:focus, .ob-input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field.bad input { border-color: var(--bad); background: var(--bad-soft); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; border-radius: 10px; }
.hint { font-size: .82rem; color: var(--ink-3); margin-top: .35rem; font-weight: 600; }
.err { color: var(--bad-ink); font-size: .85rem; font-weight: 800; margin-top: .35rem; min-height: 0; }
.err:empty { display: none; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -.4rem 0 1rem; }
.meter i { height: 5px; border-radius: 4px; background: var(--line); transition: background .2s; }
.meter i.on.s1 { background: var(--bad); } .meter i.on.s2 { background: var(--fire); } .meter i.on.s3 { background: var(--sun); } .meter i.on.s4 { background: var(--ok); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .92rem; color: var(--ink-2); margin: .4rem 0 .3rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
form .btn-block[type=submit] { margin-top: .9rem; }
.or { display: flex; align-items: center; gap: 1rem; color: var(--ink-3); font-weight: 800; margin: 1.4rem 0; font-size: .85rem; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.auth-card > .btn + .btn { margin-top: .7rem; }
.auth-foot { margin-top: 1.6rem; text-align: center; font-weight: 700; color: var(--ink-2); }
.roles { border: 0; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .6rem; }
.roles legend { font-weight: 800; font-size: .92rem; margin-bottom: .5rem; }
.role { display: block; cursor: pointer; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role span { display: block; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line); transition: border-color .15s, background .15s; }
.role b { display: block; }
.role small { color: var(--ink-3); font-weight: 700; }
.role input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 3px 0 var(--brand); }
.role input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.sent { display: grid; justify-items: center; text-align: center; gap: .8rem; padding: 1.5rem; border-radius: var(--r); background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; }
.sent .ic { width: 40px; height: 40px; }
.sent small { color: var(--ink-3); }

/* ============================================================
   PARCOURS DE BIENVENUE
   ============================================================ */
.ob { min-height: 100dvh; display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; gap: 1rem; padding: calc(1rem + var(--safe-t)) clamp(1rem, 4vw, 2rem) 1rem; max-width: 1000px; width: 100%; margin: 0 auto; }
.ob-bar, .l-bar { flex: 1; height: 16px; border-radius: 10px; background: var(--line); overflow: hidden; position: relative; }
.ob-bar i, .l-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .5s var(--ease); position: relative; }
.ob-bar i::after, .l-bar > i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .35); }
.ob-main { flex: 1; width: min(760px, 100% - 2rem); margin: 0 auto; padding: 1rem 0 2rem; }
.ob-q { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.ob-m { width: 96px; flex: none; }
.ob-bubble { position: relative; padding: 1rem 1.3rem; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); }
.ob-bubble::before { content: ''; position: absolute; left: -10px; top: 50%; width: 18px; height: 18px; background: var(--surface); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.ob-bubble p { font: 700 clamp(1.25rem, 3vw, 1.6rem)/1.2 var(--f-display); }
.ob-foot { position: sticky; bottom: 0; border-top: 2px solid var(--line); background: var(--bg); padding: 1rem 1rem calc(1rem + var(--safe-b)); display: flex; justify-content: center; }
.ob-foot .btn { width: min(420px, 100%); }
.ob-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.ob-lang, .ob-opt, .chip, .av { border: 2px solid var(--line); background: var(--surface); border-radius: 16px; box-shadow: 0 3px 0 var(--line); transition: border-color .15s, background .15s, transform .1s; }
.ob-lang:active, .ob-opt:active, .chip:active, .av:active { transform: translateY(3px); box-shadow: none; }
.ob-lang { display: grid; gap: .2rem; padding: 1rem; text-align: left; }
.ol-hi { font: 750 1.3rem/1.1 var(--f-display); color: var(--c); }
.ol-name { font-weight: 800; }
.ob-lang.on, .ob-opt.on, .chip.on, .av.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 3px 0 var(--brand); }
.ob-list { display: grid; gap: .7rem; }
.ob-opt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; text-align: left; font-weight: 800; font-size: 1.05rem; }
.ob-opt > span { font-size: 1.8rem; line-height: 1; }
.ob-opt small { display: block; color: var(--ink-3); font-weight: 700; font-size: .88rem; }
.ob-opt em { margin-left: auto; font-style: normal; color: var(--ink-3); font-weight: 800; font-size: .9rem; }
.ob-form { display: grid; gap: .6rem; }
.ob-form .ob-label { margin-top: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .55rem .9rem; font-weight: 800; }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .5rem; }
.av { aspect-ratio: 1; font-size: 1.9rem; display: grid; place-items: center; }
.avatars.big .av { font-size: 2.3rem; }
.ob-ready { display: grid; gap: 1.2rem; }
.ob-sum { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.ob-sum-av { font-size: 2.6rem; }
.ob-sum b { font: 750 1.3rem/1.1 var(--f-display); display: block; }
.ob-sum small { color: var(--ink-3); font-weight: 700; }
.ob-ready p { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   COQUE DE L'APPLICATION
   ============================================================ */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--rail-w); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem 1rem; border-right: 2px solid var(--line); background: var(--bg); }
.side .logo { padding: 0 .6rem .8rem; }
.side nav { display: grid; gap: .3rem; }
.side-link { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; border-radius: 14px; border: 2px solid transparent; text-decoration: none; font-weight: 800; color: var(--ink-2); transition: background .15s; }
.side-link .ic { width: 26px; height: 26px; }
.side-link:hover { background: var(--surface-2); }
.side-link.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand); }
.side-prof { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); text-align: left; }
.sp-av { font-size: 1.8rem; }
.sp-t { flex: 1; min-width: 0; }
.sp-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-t small { color: var(--ink-3); font-weight: 700; font-size: .8rem; }
.side-prof > .ic { color: var(--ink-3); }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; padding: calc(.7rem + var(--safe-t)) clamp(.8rem, 3vw, 1.5rem) .7rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.course-btn { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .6rem .35rem .35rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; }
.lang-dot { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 .35rem; border-radius: 10px; background: var(--c); color: #fff; font: 900 .78rem/1 var(--f-body); letter-spacing: .03em; }
.stats { display: flex; gap: .2rem; margin-left: auto; }
.stat { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .55rem; border: 0; background: none; border-radius: 12px; font-weight: 900; font-size: 1.05rem; color: var(--ink-3); }
.stat:hover { background: var(--surface-2); }
.stat .ic { width: 24px; height: 24px; fill: currentColor; stroke-width: 1.2; }
.stat.fire.on { color: var(--fire); }
.stat.gem { color: var(--gem); }
.stat.heart { color: var(--heart); }
.stat.heart.inf b { font-size: 1.3rem; }
.tb-av { display: none; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-size: 1.3rem; }
.view { padding: 1rem clamp(1rem, 3vw, 2rem) 4rem; outline: none; }
.menu-pop { position: absolute; top: calc(100% - 4px); left: clamp(.8rem, 3vw, 1.5rem); z-index: 30; min-width: 250px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-3); padding: .5rem; border: 2px solid var(--line); }
.mp-t { font-size: .8rem; font-weight: 900; color: var(--ink-3); padding: .4rem .6rem; }
.mp-i { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .6rem; border: 0; background: none; border-radius: 12px; text-align: left; font-weight: 800; text-decoration: none; }
.mp-i small { margin-left: auto; color: var(--ink-3); }
.mp-i:hover, .mp-i:focus-visible, .mp-i.on { background: var(--surface-2); }
.mp-i.add { color: var(--brand); }
.rail { position: sticky; top: 0; height: 100dvh; overflow: auto; padding: 1.4rem 1.2rem; display: grid; align-content: start; gap: 1rem; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 1.2rem; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.card h3 { font-size: 1.1rem; }
.card-title { font-size: 1.25rem; margin-bottom: 1rem; }
.goal-card { display: flex; align-items: center; gap: 1rem; }
.goal-card p { color: var(--ink-2); font-weight: 700; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 6; }
.ring .fg { stroke: var(--sun); stroke-linecap: round; transition: stroke-dasharray 1s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: .82rem; }
.lg-mini { display: flex; gap: .8rem; align-items: center; color: var(--ink-2); font-weight: 600; }
.lg-gem { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; }
.lg-gem .ic { width: 28px; height: 28px; fill: currentColor; stroke: color-mix(in srgb, var(--c) 60%, #000); stroke-width: 1; }
.quests { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.quests li { display: flex; gap: .8rem; align-items: center; }
.quests li > .ic { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.quests li > div { flex: 1; min-width: 0; }
.quests b { display: block; font-size: .92rem; }
.qbar, .bar { display: block; height: 10px; border-radius: 8px; background: var(--line); overflow: hidden; margin: .35rem 0 .15rem; }
.qbar i, .bar i { display: block; height: 100%; background: var(--sun); border-radius: inherit; }
.quests small { color: var(--ink-3); font-weight: 800; font-size: .78rem; }
.q-gift { font-size: 1.3rem; }
.quests li.done .q-gift { color: var(--ok); }
.quests li.done .qbar i { background: var(--ok); }
.parent-promo { display: flex; gap: .9rem; align-items: center; text-decoration: none; background: #1B1840; color: #fff; border-color: #1B1840; }
.parent-promo .ic { width: 34px; height: 34px; color: var(--sun); }
.parent-promo small { display: block; opacity: .75; font-weight: 700; }
.rail-foot { font-size: .8rem; color: var(--ink-3); font-weight: 700; text-align: center; }
.tabbar { display: none; }

/* ---------- Chemin d'apprentissage ---------- */
.learn { max-width: 600px; margin: 0 auto; }
.unit { position: relative; margin-bottom: 2.5rem; }
.unit-head { position: relative; display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.2rem 1.3rem 1.5rem; border-radius: var(--r); background: var(--u); color: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--u) 70%, #000); overflow: hidden; }
.unit.future .unit-head { filter: saturate(.25) brightness(1.1); opacity: .75; }
.unit-k { font-weight: 800; opacity: .85; font-size: .9rem; }
.unit-head h2 { font-size: 1.55rem; margin: .15rem 0 .25rem; }
.unit-s { font-weight: 700; opacity: .9; font-size: .92rem; }
.unit-guide { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-radius: 12px; border: 2px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .12); color: #fff; font-weight: 800; flex: none; }
.unit-guide:hover { background: rgb(255 255 255 / .22); }
.unit-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgb(0 0 0 / .15); }
.unit-prog i { display: block; height: 100%; background: rgb(255 255 255 / .75); }
.path { display: grid; justify-items: center; gap: 1.1rem; padding: 2rem 0 1rem; }
.node-row { position: relative; transform: translateX(var(--off)); display: grid; justify-items: center; }
.node { position: relative; width: 76px; height: 68px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--line); color: var(--ink-3); box-shadow: 0 7px 0 var(--line-2); transition: transform .08s, box-shadow .08s; }
.node .ic { width: 32px; height: 32px; stroke-width: 3; }
.node:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--line-2); }
.node.done { background: var(--sun); color: var(--sun-ink); box-shadow: 0 7px 0 var(--sun-deep); }
.node.done:active { box-shadow: 0 1px 0 var(--sun-deep); }
.node.current { background: var(--u); color: #fff; box-shadow: 0 7px 0 color-mix(in srgb, var(--u) 70%, #000); }
.node.current .ic { fill: currentColor; }
.node.current:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--u) 70%, #000); }
.node-ring { position: absolute; inset: -12px -10px -16px; width: calc(100% + 20px); height: calc(100% + 28px); pointer-events: none; }
.node-ring circle { fill: none; stroke: color-mix(in srgb, var(--u) 35%, transparent); stroke-width: 6; stroke-dasharray: 16 10; animation: spin 12s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.node.chest { background: transparent; box-shadow: none; }
.chest-e { font-size: 3rem; line-height: 1; filter: drop-shadow(0 6px 0 rgb(0 0 0 / .12)); }
.node.chest.locked .chest-e { filter: grayscale(1) opacity(.5); }
.node.chest.current .chest-e { animation: bounce 1.4s ease-in-out infinite; }
.start-tag { position: absolute; bottom: calc(100% + 12px); padding: .5rem .8rem; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); color: var(--u); font-weight: 900; font-size: .88rem; white-space: nowrap; animation: bounce 1.6s ease-in-out infinite; }
.start-tag::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: var(--surface); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translate(-50%, -6px) rotate(45deg); }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.node-pop { position: absolute; top: calc(100% + 14px); z-index: 10; width: 260px; padding: 1rem; border-radius: var(--r); background: var(--u); color: #fff; box-shadow: var(--sh-2); display: grid; gap: .4rem; text-align: left; }
.node-pop::before { content: ''; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; background: var(--u); transform: translateX(-50%) rotate(45deg); }
.node-pop.locked { background: var(--surface); color: var(--ink-2); border: 2px solid var(--line); }
.node-pop.locked::before { background: var(--surface); border-left: 2px solid var(--line); border-top: 2px solid var(--line); top: -8px; }
.node-pop b { font-size: 1.05rem; }
.node-pop p { font-weight: 700; opacity: .92; margin-bottom: .4rem; }
.node-pop .btn-ghost { --c: rgb(255 255 255 / .15); --d: rgb(0 0 0 / .2); --t: #fff; border-color: rgb(255 255 255 / .4); }
.path-m { position: absolute; top: 55%; width: 110px; pointer-events: none; animation: bob 6s ease-in-out infinite; }
.path-m.right { right: 0; } .path-m.left { left: 0; }
.path-end { display: flex; gap: 1rem; align-items: center; padding: 1.3rem; border-radius: var(--r); border: 2px dashed var(--line-2); color: var(--ink-2); }
.path-end > .ic { width: 36px; height: 36px; color: var(--brand); }
.path-end p { font-weight: 600; }
.limit-note { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border-radius: var(--r); background: var(--brand-soft); margin-bottom: 1.5rem; }
.limit-note .mascot { width: 70px; flex: none; }
.limit-note p { color: var(--ink-2); font-weight: 600; }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; text-align: left; }
.g-w { display: grid; gap: .1rem; padding: .8rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); position: relative; text-align: left; }
.g-w.wide { width: 100%; }
.g-w > .ic { position: absolute; right: .6rem; top: .7rem; color: var(--brand); }
.g-e { font-size: 1.6rem; }
.g-t { font: 750 1.2rem/1.1 var(--f-display); }
.g-w small { color: var(--ink-3); font-weight: 700; }
.g-w em { font-style: normal; color: var(--ink-2); font-weight: 700; font-size: .88rem; }
.g-ph { margin-top: 1rem; text-align: left; display: grid; gap: .4rem; }

/* ---------- Pages ---------- */
.page { max-width: 760px; margin: 0 auto; display: grid; gap: 1.2rem; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-sub { color: var(--ink-2); font-weight: 600; margin-top: .3rem; }
.page-note { font-size: .85rem; color: var(--ink-3); text-align: center; font-weight: 700; }
.lg-tiers { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; padding-top: .5rem; }
.lg-t { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.lg-t .ic { fill: currentColor; stroke-width: 1; }
.lg-t.on { width: 64px; height: 64px; background: var(--c); color: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 65%, #000); }
.lg-t.on .ic { width: 34px; height: 34px; }
.lg-t.locked { background: var(--line); color: var(--ink-3); }
.lg-t.locked .ic { fill: none; stroke-width: 2.2; }
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.board .row { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-radius: 16px; }
.board .row.me { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.board .rk { width: 32px; text-align: center; font-weight: 900; color: var(--ink-3); font-size: 1.05rem; }
.board .row.top .rk { color: var(--ok); }
.board .av { font-size: 1.7rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.board .nm { flex: 1; font-weight: 800; }
.board .nm small { color: var(--ink-3); }
.board .xp { font-weight: 800; color: var(--ink-2); }
.board .zone { text-align: center; font-weight: 900; font-size: .85rem; padding: .5rem; margin: .3rem 0; border-radius: 10px; }
.board .zone.up { color: var(--ok-ink); background: var(--ok-soft); }
.board .zone.down { color: var(--bad-ink); background: var(--bad-soft); }
.center { text-align: center; }

.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.wallet { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); font-weight: 900; font-size: 1.3rem; color: var(--gem); }
.wallet .ic { fill: currentColor; stroke-width: 1.2; width: 28px; height: 28px; }
.shop-grid { display: grid; gap: .8rem; }
.item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); }
.it-e { font-size: 2.6rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); flex: none; }
.it-t { flex: 1; min-width: 0; }
.it-t h3 { font-size: 1.15rem; }
.it-t p { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.it-t small { color: var(--ink-3); font-weight: 800; font-size: .8rem; }
.item .btn .ic { fill: currentColor; stroke-width: 1.2; }
.earn ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-weight: 600; display: grid; gap: .4rem; }

.prof-head { display: flex; gap: 1.3rem; align-items: center; }
.ph-av { position: relative; width: 104px; height: 104px; border-radius: 32px; border: 3px dashed var(--line-2); background: var(--surface); font-size: 3.4rem; flex: none; }
.ph-av span { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; }
.ph-av span .ic { width: 16px; height: 16px; }
.ph-langs { display: flex; gap: .3rem; margin-top: .6rem; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.sg { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sg-ic { grid-row: span 2; width: 36px; height: 36px; }
.sg-ic .ic { width: 100%; height: 100%; fill: currentColor; stroke-width: 1.2; }
.sg-ic.fire { color: var(--fire); } .sg-ic.bolt { color: var(--sun-deep); } .sg-ic.book { color: var(--brand); } .sg-ic.gem { color: var(--gem); }
.sg-ic.book .ic, .sg-ic.gem .ic { fill: none; stroke-width: 2.2; }
.sg b { font: 800 1.35rem/1.1 var(--f-display); }
.sg small { color: var(--ink-3); font-weight: 800; font-size: .8rem; }
.ranks { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; perspective: 600px; }
.rk-i { display: grid; justify-items: center; gap: .3rem; text-align: center; opacity: .4; filter: grayscale(1); }
.rk-i span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 1.7rem; background: color-mix(in srgb, var(--c) 18%, transparent); }
.rk-i small { font-weight: 800; font-size: .72rem; color: var(--ink-2); }
.rk-i.past { opacity: .8; filter: none; }
.rk-i.on { opacity: 1; filter: none; }
.rk-i.on span { background: var(--c); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 65%, #000); }
.rank-next { margin-top: 1rem; font-weight: 600; color: var(--ink-2); }
.rank-card .bar i { background: var(--c); }
.wchart, .rchart { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; height: 170px; align-items: end; }
.wchart span, .rchart span { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; }
.wchart b, .rchart b { font-size: .75rem; font-weight: 900; color: var(--ink-3); min-height: 1em; }
.wchart i, .rchart i { width: 100%; max-width: 44px; height: max(var(--h), 4px); border-radius: 10px 10px 6px 6px; background: var(--brand); transform-origin: bottom; }
.wchart .today i { background: var(--sun); }
.wchart em, .rchart em { font-style: normal; font-weight: 800; font-size: .78rem; color: var(--ink-3); }
.wchart hr { position: absolute; left: 0; right: 0; bottom: calc(var(--g) * (170px - 2.4rem) / 100 + 1.4rem); border: 0; border-top: 2px dashed var(--line-2); margin: 0; pointer-events: none; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.ach { display: flex; gap: .9rem; align-items: center; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ach-e { position: relative; font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); filter: grayscale(1); opacity: .6; flex: none; }
.ach.got .ach-e { filter: none; opacity: 1; background: color-mix(in srgb, var(--sun) 30%, transparent); }
.ach-e em { position: absolute; right: -6px; bottom: -6px; font: 900 .75rem/1 var(--f-body); font-style: normal; background: var(--sun); color: var(--sun-ink); border-radius: 8px; padding: .25rem .4rem; }
.ach > div { flex: 1; min-width: 0; }
.ach small { color: var(--ink-3); font-weight: 800; font-size: .8rem; }

.pp-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.kid { display: grid; gap: .8rem; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); }
.kid.on { border-color: var(--brand); box-shadow: 0 3px 0 var(--brand); }
.kid-main { display: flex; align-items: center; gap: .8rem; border: 0; background: none; padding: 0; text-align: left; }
.kid-av { font-size: 2.2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); flex: none; }
.kid-t b { display: block; font: 750 1.15rem/1.1 var(--f-display); }
.kid-t small { color: var(--ink-3); font-weight: 700; }
.kid-stats { display: flex; gap: .8rem; flex-wrap: wrap; font-weight: 800; font-size: .88rem; color: var(--ink-2); }
.kid-stats span { display: inline-flex; gap: .25rem; align-items: center; }
.kid-stats .ic { width: 18px; height: 18px; }
.kid-acts { display: flex; gap: .4rem; align-items: center; }
.kid-acts .btn { flex: 1; }
.kid.add { place-items: center; text-align: center; border-style: dashed; cursor: pointer; color: var(--ink-2); }
.kid.add > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.kid.add small { color: var(--ink-3); font-weight: 700; }
.rc-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.2rem; }
.rc-head .card-title { margin: 0; }
.rc-head small { color: var(--ink-3); font-weight: 700; }
.rc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: stretch; }
.rchart i { background: linear-gradient(180deg, #8C74FF, var(--brand)); }
.rc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rc-stats div { padding: .8rem; border-radius: 14px; background: var(--surface-2); }
.rc-stats b { display: block; font: 800 1.5rem/1 var(--f-display); }
.rc-stats small { color: var(--ink-3); font-weight: 800; font-size: .78rem; }
.rc-words { margin-top: 1.2rem; }
.rc-words > div { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.rc-words span { padding: .4rem .7rem; border-radius: 10px; background: var(--brand-soft); font-weight: 800; font-size: .9rem; }
.empty { margin-top: 1rem; color: var(--ink-3); font-weight: 700; }
.rc-limit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 2px solid var(--line); flex-wrap: wrap; }
.rc-limit label { display: flex; gap: .7rem; align-items: center; }
.rc-limit label > span b { display: block; }
.rc-limit label small { color: var(--ink-3); font-weight: 700; }
.rc-limit .ic { width: 28px; height: 28px; color: var(--brand); }
.rc-limit select, select.ob-input { min-height: 46px; padding: .5rem 2rem .5rem .8rem; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 800; }
.tips ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; color: var(--ink-2); font-weight: 600; }
.tips b { color: var(--ink); }
.pin-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pin-card > div { display: flex; gap: .8rem; align-items: center; }
.pin-card .ic { width: 30px; height: 30px; color: var(--ok); }
.pin-card small { display: block; color: var(--ink-3); font-weight: 700; }
.pin-page { min-height: 60vh; place-items: center; }
.pin-box { display: grid; justify-items: center; gap: .8rem; text-align: center; max-width: 380px; }
.pin-box > .ic { width: 56px; height: 56px; color: var(--brand); }
.pins { display: flex; gap: .7rem; margin: .8rem 0; }
.pin { width: 58px; height: 66px; text-align: center; font: 900 1.8rem/1 var(--f-body); border-radius: 16px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); }
.pin:focus { outline: none; border-color: var(--brand); box-shadow: 0 3px 0 var(--brand); }
.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; margin-top: 1rem; }
.who-i { display: grid; justify-items: center; gap: .2rem; padding: 1rem .5rem; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); text-decoration: none; box-shadow: 0 3px 0 var(--line); }
.who-i > span { font-size: 2.4rem; line-height: 1.1; }
.who-i small { color: var(--ink-3); font-weight: 700; font-size: .78rem; }
.who-i.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 3px 0 var(--brand); }
.who-i.add > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1rem; }
.kid-form { text-align: left; display: grid; gap: .3rem; }
.kid-form .ob-label { margin-top: .6rem; }

.set .set-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 2px solid var(--line); font-weight: 700; flex-wrap: wrap; }
.set .card-title + .set-row { border-top: 0; padding-top: 0; }
.set .set-row.col { flex-direction: column; align-items: stretch; }
.set-row > b { color: var(--ink-2); overflow-wrap: anywhere; }
.inline { display: flex; gap: .5rem; flex: 1; min-width: 240px; max-width: 380px; }
.inline .ob-input { min-height: 44px; }
.seg { display: flex; gap: .3rem; padding: .3rem; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); flex-wrap: wrap; }
.seg button { flex: 1; min-height: 40px; border: 0; background: none; border-radius: 10px; font-weight: 800; color: var(--ink-2); padding: 0 .6rem; }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--sh-1); }
.switch { position: relative; width: 56px; height: 32px; border-radius: 20px; border: 0; background: var(--line-2); transition: background .2s; flex: none; }
.switch i { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 4px rgb(0 0 0 / .2); }
.switch.on { background: var(--ok); }
.switch.on i { transform: translateX(24px); }
.danger .card-title { color: var(--bad-ink); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.course { display: grid; gap: .2rem; text-align: left; padding: 1.1rem; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.course:active { transform: translateY(3px); box-shadow: none; }
.course.on { border-color: var(--c); box-shadow: 0 3px 0 var(--c); }
.co-hi { font: 750 1.35rem/1.1 var(--f-display); color: var(--c); margin-bottom: .6rem; }
.course small { color: var(--ink-3); font-weight: 700; }
.course .bar i { background: var(--c); }
.course em { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--ink-3); }
.course em.new { color: var(--c); margin-top: .5rem; }

/* Modales spécifiques */
.streak-m .sm-flame { position: relative; width: 110px; height: 110px; margin: 0 auto 1rem; color: var(--line-2); }
.streak-m .sm-flame.on { color: var(--fire); }
.streak-m .sm-flame .ic { width: 100%; height: 100%; fill: currentColor; stroke-width: 1; }
.streak-m .sm-flame b { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font: 800 1.8rem/1 var(--f-display); }
.week { display: flex; justify-content: center; gap: .4rem; margin: 1rem 0; }
.week span { display: grid; justify-items: center; gap: .3rem; }
.week em { font-style: normal; font-weight: 900; font-size: .78rem; color: var(--ink-3); }
.week i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--line); color: #fff; }
.week .on i { background: var(--fire); }
.week .today em { color: var(--fire); }
.week .ic { width: 18px; height: 18px; stroke-width: 3.5; }
.sm-freeze { display: inline-flex; gap: .4rem; align-items: center; font-weight: 800; color: var(--gem); }
.hm-row { display: flex; justify-content: center; gap: .3rem; margin-bottom: 1rem; }
.hm-row span { color: var(--line-2); }
.hm-row span.on { color: var(--heart); }
.hm-row .ic { width: 36px; height: 36px; fill: currentColor; stroke-width: 1; }
.chest-m .cm-box { font-size: 5rem; line-height: 1; margin: .5rem 0 1rem; display: inline-block; }
.cm-gems { display: inline-flex; gap: .4rem; align-items: center; color: var(--gem); font: 800 2rem/1 var(--f-display); opacity: 0; }
.cm-gems .ic { fill: currentColor; stroke-width: 1.2; width: 32px; height: 32px; }

/* ============================================================
   LEÇON
   ============================================================ */
.lesson { min-height: 100dvh; display: flex; flex-direction: column; }
.l-top { display: flex; align-items: center; gap: 1rem; width: min(1000px, 100%); margin: 0 auto; padding: calc(1rem + var(--safe-t)) clamp(1rem, 3vw, 2rem) .5rem; }
.l-bar > i { background: var(--ok); }
.combo { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .68rem; font-weight: 900; color: var(--fire); }
.l-bar:has(.combo:not([hidden])) { overflow: visible; }
.l-bar .combo { top: calc(100% + 12px); right: 0; transform: none; background: color-mix(in srgb, var(--fire) 14%, var(--surface)); padding: .25rem .5rem; border-radius: 8px; }
.l-top .stat .ic { width: 28px; height: 28px; }
.l-stage { flex: 1; width: min(640px, 100% - 2rem); margin: 0 auto; padding: 2rem 0 3rem; perspective: 1200px; }
.ex { display: grid; gap: 1.4rem; }
.ex-title { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.ex-title .tw { color: var(--brand); }
.ex-sub { display: flex; align-items: center; gap: .6rem; margin-top: -.8rem; }
.roman { color: var(--ink-3); font-weight: 700; font-style: italic; }
.say-mini { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--brand-soft); color: var(--brand); }
.opts.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.opts.list { display: grid; gap: .7rem; }
.opt { position: relative; display: flex; align-items: center; gap: .9rem; min-height: 62px; padding: .8rem 1rem; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 4px 0 var(--line); font-weight: 800; font-size: 1.1rem; text-align: left; transition: border-color .12s, background .12s, transform .08s, box-shadow .08s; }
.opt:hover:not(:disabled) { background: var(--surface-2); }
.opt:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 0 var(--brand); color: var(--brand); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 4px 0 var(--ok); color: var(--ok-ink); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); box-shadow: 0 4px 0 var(--bad); color: var(--bad-ink); }
.opt:disabled { cursor: default; }
.opt small { margin-left: auto; color: var(--ink-3); font-weight: 700; font-style: italic; font-size: .85rem; }
.opt .ot { font-size: 1.2rem; }
.opt.pic { flex-direction: column; justify-content: center; padding: 1.2rem .6rem 1rem; gap: .5rem; }
.opt.pic kbd { position: absolute; left: .6rem; top: .6rem; }
.pic-e { font-size: clamp(3rem, 10vw, 4.4rem); line-height: 1; }
.pic-t { font-size: 1rem; }
.big-e { font-size: 5rem; line-height: 1; text-align: center; }
.speech { display: flex; align-items: center; gap: 1rem; }
.speech .mascot { width: 104px; flex: none; }
.speech .bubble { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); font: 700 1.4rem/1.2 var(--f-display); text-align: left; }
.speech .bubble::before { content: ''; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; background: var(--surface); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.speech .bubble .ic { color: var(--brand); width: 26px; height: 26px; }
.speech .bubble small { width: 100%; font: italic 700 .9rem/1 var(--f-body); color: var(--ink-3); }
.listen-row { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; }
.say-big { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 32px; border: 0; background: var(--brand); color: #fff; box-shadow: 0 6px 0 var(--brand-deep); }
.say-big .ic { width: 54px; height: 54px; }
.say-big:active { transform: translateY(6px); box-shadow: none; }
.say-big.pulse { animation: pulse .6s var(--ease); }
@keyframes pulse { 40% { transform: scale(1.08); } }
.say-slow { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); font-size: 1.8rem; box-shadow: 0 4px 0 var(--line); }
.note { text-align: center; color: var(--ink-3); font-weight: 700; }
.type-in { width: 100%; min-height: 64px; padding: 1rem 1.2rem; border-radius: 18px; border: 2px solid var(--line); background: var(--surface-2); font: 800 1.4rem/1 var(--f-body); }
.type-in:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.accents { display: flex; flex-wrap: wrap; gap: .4rem; }
.accents button { min-width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.1rem; box-shadow: 0 3px 0 var(--line); }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mcol { display: grid; gap: .7rem; }
.mt { min-height: 60px; padding: .7rem; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 4px 0 var(--line); font-weight: 800; font-size: 1.05rem; transition: border-color .12s, background .12s, opacity .3s; }
.mt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 0 var(--brand); color: var(--brand); }
.mt.matched { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); box-shadow: none; opacity: .5; }
.mt.miss { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.answer { min-height: 118px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .5rem; padding: .6rem 0; background: repeating-linear-gradient(transparent 0 54px, var(--line) 54px 56px); }
.bank { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tile { min-height: 48px; padding: .5rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); box-shadow: 0 4px 0 var(--line); font-weight: 800; font-size: 1.1rem; }
.bank .tile.used { background: var(--line); color: transparent; box-shadow: none; pointer-events: none; }
.new-tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 900; color: var(--brand); }
.intro-card { position: relative; display: grid; justify-items: center; gap: .4rem; padding: 2rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); text-align: center; }
.ic-e { font-size: 5.5rem; line-height: 1; margin-bottom: .6rem; }
.ic-t { font: 800 clamp(2.2rem, 7vw, 3.2rem)/1 var(--f-display); color: var(--u, var(--brand)); letter-spacing: -.02em; }
.ic-m { color: var(--ink-2); font-weight: 800; font-size: 1.15rem; }
.say-btn { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: 0; background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-deep); }
.l-foot { border-top: 2px solid var(--line); background: var(--bg); position: sticky; bottom: 0; transition: background .2s, border-color .2s; }
.l-foot-in { width: min(1000px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem clamp(1rem, 3vw, 2rem) calc(1.2rem + var(--safe-b)); }
.l-foot.ok { background: var(--ok-soft); border-color: transparent; }
.l-foot.bad { background: var(--bad-soft); border-color: transparent; }
.fb { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.fb-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--surface); flex: none; }
.fb-ic .ic { width: 32px; height: 32px; stroke-width: 3.4; }
.l-foot.ok .fb-ic, .l-foot.ok .fb b { color: var(--ok-ink); }
.l-foot.bad .fb-ic, .l-foot.bad .fb b { color: var(--bad-ink); }
.fb b { font: 800 1.4rem/1.1 var(--f-display); }
.fb p { font-weight: 700; color: var(--ink-2); }
.fb-ans { color: var(--bad-ink); font-weight: 900; }
.fb-say { color: var(--bad-ink); }

/* Écrans de fin */
.end { min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.end-in { flex: 1; display: grid; justify-items: center; align-content: center; gap: 1rem; text-align: center; padding: 2rem 1rem; perspective: 800px; }
.end-m { width: 150px; }
.end h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--sun-deep); }
.end-sub { color: var(--ink-2); font-weight: 700; font-size: 1.1rem; }
.end-stats { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.es { width: 128px; border-radius: 18px; border: 2px solid var(--c); overflow: hidden; background: var(--c); }
.es small { display: block; padding: .4rem; color: #fff; font-weight: 900; font-size: .78rem; }
.es b { display: flex; justify-content: center; align-items: baseline; gap: .1rem; padding: .9rem .5rem; background: var(--surface); border-radius: 15px; color: var(--c); font: 800 1.7rem/1 var(--f-display); }
.es em { font: 900 .8rem/1 var(--f-body); font-style: normal; margin-left: .3rem; }
.es.xp { --c: var(--sun-deep); } .es.acc { --c: var(--ok); } .es.time { --c: var(--gem); }
.end-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--gem) 14%, transparent); color: var(--gem); font-weight: 900; }
.end-pill .ic { fill: currentColor; stroke-width: 1.2; }
.end-pill.goal { background: var(--ok-soft); color: var(--ok-ink); }
.end-pill.goal .ic { fill: none; stroke-width: 2.4; }
.end-foot { border-top: 2px solid var(--line); padding: 1.2rem 1rem calc(1.2rem + var(--safe-b)); display: flex; justify-content: center; position: relative; z-index: 3; }
.end-foot .btn { width: min(420px, 100%); }
.big-flame { width: 170px; height: 170px; color: var(--fire); filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--fire) 50%, transparent)); }
.big-flame .ic { width: 100%; height: 100%; fill: currentColor; stroke-width: .6; }
.big-n { font: 800 5rem/1 var(--f-display); color: var(--fire); margin-top: -1rem; }
.streak-s h1 { color: var(--fire); margin-top: -.6rem; }
.rank-s .medal { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; font-size: 5rem; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 50%, #fff), var(--c)); box-shadow: 0 12px 0 color-mix(in srgb, var(--c) 60%, #000), 0 30px 60px -20px var(--c); transform-style: preserve-3d; }
.rank-s h1 { color: var(--c); font-size: clamp(2.4rem, 7vw, 3.6rem); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .j-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 0; padding-top: 70px; }
  .j-text .sec-title { font-size: 1.7rem; }
  .j-steps { margin-top: 1rem; grid-template-columns: repeat(3, 1fr); }
  .j-steps li { padding: .6rem .7rem .8rem; }
  .j-steps li span { display: none; }
  .j-steps li b { font-size: 1.05rem; margin: 0; }
  .j-steps li i { left: .7rem; right: .7rem; top: auto; bottom: 0; width: auto; height: 4px; }
  .j-steps li i::after { transform-origin: left; transform: scaleX(var(--f, 0)); }
  .j-stage { height: 56vh; }
  .parents-in { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .tb-av { display: block; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 2px solid var(--line); padding: .35rem .3rem calc(.35rem + var(--safe-b)); justify-content: space-around; }
  .tab { flex: 1; display: grid; justify-items: center; gap: .1rem; padding: .35rem 0; border-radius: 12px; text-decoration: none; color: var(--ink-3); font-weight: 800; font-size: .68rem; }
  .tab .ic { width: 26px; height: 26px; }
  .tab.on { color: var(--brand); background: var(--brand-soft); }
  .view { padding-bottom: calc(6rem + var(--safe-b)); }
  .rc-grid { grid-template-columns: 1fr; }
  .path-m { display: none; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .cb-name { display: none; }
  .hero { padding-top: calc(90px + var(--safe-t)); }
  .hero-hi { font-size: .82rem; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; max-width: 360px; }
  .ow { font-size: 1.05rem; padding: .45rem .8rem .45rem .55rem; }
  .ow.ring2 { font-size: .9rem; }
  .demo-talk .mascot { width: 90px; }
  .qa p { padding-right: 0; }
  .l-foot-in { flex-direction: column; align-items: stretch; }
  .l-foot-in > span:empty { display: none; }
  .l-foot-in #skip { order: 2; }
  .l-foot-in .btn { width: 100%; }
  .fb-ic { width: 44px; height: 44px; }
  .speech .mascot { width: 76px; }
  .ob-m { width: 70px; }
  .ranks small { font-size: .62rem; }
  .rk-i span { width: 44px; height: 44px; font-size: 1.3rem; }
  .prof-head { flex-direction: column; text-align: center; }
  .ph-langs { justify-content: center; }
  .stat { padding: .35rem .3rem; font-size: .95rem; }
  .l-stage { padding-top: 1.2rem; }
  .ex { gap: 1.1rem; }
  .item { flex-wrap: wrap; }
  .item .btn { width: 100%; }
}
@media (max-width: 400px) {
  .match { gap: .5rem; }
  .mt { font-size: .92rem; }
  .pin { width: 52px; }
}

/* ============================================================
   MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.rm .game-card.pre, html.rm .price-card.pre { opacity: 1; }
html.rm .gd-type .typed { width: auto; border: 0; }
@media (prefers-reduced-motion: reduce) { .gd-type .typed { width: auto; border: 0; } }
.ach b { display: block; }
.path { gap: 1.6rem; padding-top: 3rem; }
.start-tag { bottom: calc(100% + 10px); padding: .35rem .7rem; font-size: .8rem; }
body[data-route="lecon"] #toasts { top: auto; bottom: calc(150px + var(--safe-b)); }
@media (max-width: 600px) { .orbit { opacity: .85; } .ow.ring2 { display: none; } }

/* ============================================================
   LE VOYAGE DE BULLE
   ============================================================ */

/* --- Carte "Mon voyage" sur Apprendre --- */
.voyage-card {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem .85rem .9rem;
  border-radius: var(--r); border: 2px solid var(--line);
  background: var(--surface); text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-1); margin-bottom: 1.6rem;
  transition: box-shadow .15s, transform .1s;
}
.voyage-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.voyage-card:active { transform: translateY(2px); box-shadow: none; }
.vc-isle {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  display: grid; place-items: center; font-size: 1.6rem;
  border: 2px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.vc-info { flex: 1; min-width: 0; }
.vc-info b { display: block; font: 800 .95rem/1.2 var(--f-display); }
.vc-info small { font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.voyage-card > .ic { color: var(--ink-3); flex: none; }

/* --- Page Voyage --- */
.voyage-page { padding-bottom: 4rem; }

/* Chemin d'îles */
.isle-path {
  max-width: 500px; margin: 1.5rem auto 0; position: relative;
  display: flex; flex-direction: column; gap: 1.4rem; padding: 0 0 .5rem;
}
.isle-path::before {
  content: ''; position: absolute; top: 26px; bottom: 26px; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 9px, transparent 9px 20px);
  z-index: 0;
}
.isle-stop { position: relative; z-index: 1; width: 52%; }
.isle-stop.left  { margin-right: auto; }
.isle-stop.right { margin-left: auto;  }
.isle-stop.active { padding-top: 54px; }

.isle-btn {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  gap: .45rem; padding: .75rem .65rem .85rem; text-align: center;
  border-radius: var(--r-sm); border: 2px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-1);
  transition: box-shadow .15s, transform .1s, border-color .15s, background .15s;
}
.isle-stop.started .isle-btn:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.isle-stop.started .isle-btn:active { transform: translateY(2px); box-shadow: none; }
.isle-btn:disabled { opacity: .52; cursor: default; }
.isle-stop.sel .isle-btn { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }

.isle-dot {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 2px solid color-mix(in srgb, var(--c) 32%, transparent);
  display: grid; place-items: center; font-size: 1.55rem; flex: none;
}
.isle-stop.locked .isle-dot { background: var(--line); border-color: var(--line-2); }
.isle-info b { display: block; font: 800 .88rem/1.2 var(--f-display); }
.isle-info small { font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.isle-stop.active .isle-info b { color: var(--c); }

/* Bulle flottant au-dessus de l'île active */
.bulle-float {
  position: absolute; top: 5px; left: 50%; margin-left: -23px;
  width: 46px; pointer-events: none;
  animation: bulle-bob 3s ease-in-out infinite;
}
.isle-mascot { width: 46px; height: 46px; }
@keyframes bulle-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
html.rm .bulle-float { animation: none; }
@media (prefers-reduced-motion: reduce) { .bulle-float { animation: none; } }

/* --- Album d'autocollants --- */
.album { max-width: 560px; margin: 2.2rem auto 0; scroll-margin-top: 80px; }
.album-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.album-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem; border-radius: 40px; font-weight: 900; font-size: .92rem;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 2px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.album-badge span { font-size: 1.2rem; }
.album-count { font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.album-empty { color: var(--ink-3); font-size: .9rem; margin-top: 1rem; text-align: center; }

.sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.sticker {
  aspect-ratio: 1; border-radius: var(--r-sm); border: 2px solid var(--line);
  background: var(--surface-2); display: grid; place-items: center;
  padding: .3rem; flex-direction: column;
}
.sticker.earned {
  background: var(--surface); border-color: var(--line-2);
  box-shadow: var(--sh-1); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.sticker.earned:hover  { transform: translateY(-3px); box-shadow: var(--sh-2); }
.sticker.earned:active { transform: scale(.95); box-shadow: none; }
.sticker .s-e { font-size: 1.5rem; line-height: 1; display: block; }
.sticker .s-nom {
  display: block; font-size: .6rem; font-weight: 800; color: var(--ink-2);
  text-align: center; margin-top: .2rem; line-height: 1.2;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100%;
}
.sticker.locked .s-e { filter: grayscale(1); opacity: .35; font-size: 1.1rem; }

/* --- Modale autocollant (album) --- */
.sticker-reveal { text-align: center; padding: .5rem 0; display: grid; justify-items: center; gap: .75rem; }
.sr-card {
  width: 130px; height: 130px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-2));
  border: 2px solid var(--line-2);
  display: grid; place-items: center; box-shadow: var(--sh-2);
}
.sr-e   { font-size: 4rem; line-height: 1; }
.sr-nom { font: 800 1.05rem/1.2 var(--f-display); color: var(--ink); }
.sr-lang { font-size: .82rem; font-weight: 700; color: var(--ink-3); }

/* --- Écran de fin : autocollant gagné --- */
.sticker-s .end-in { gap: .9rem; }
.s-card-wrap { perspective: 700px; }
.s-card {
  width: 160px; height: 160px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-soft) 0%, color-mix(in srgb, var(--brand) 10%, var(--bg)) 100%);
  border: 3px solid color-mix(in srgb, var(--brand) 30%, transparent);
  display: grid; place-items: center; font-size: 4.5rem; line-height: 1;
  box-shadow: var(--sh-3); transform-style: preserve-3d;
}
.sticker-s h1 { color: var(--brand); }
.sticker-s .end-foot { gap: .75rem; }
.sticker-s .end-foot .btn { width: auto; }

/* --- Responsive --- */
@media (max-width: 600px) {
  .isle-stop { width: 60%; }
  .album { max-width: 100%; }
}
@media (max-width: 380px) {
  .isle-stop { width: 72%; }
  .isle-btn { padding: .6rem .5rem .7rem; }
  .isle-dot { width: 44px; height: 44px; font-size: 1.35rem; }
  .sticker-grid { gap: .45rem; }
  .sticker .s-e { font-size: 1.3rem; }
  .sticker .s-nom { font-size: .55rem; }
  .s-card { width: 140px; height: 140px; font-size: 4rem; }
}

/* Panneau illustré de connexion/inscription : toujours à la taille de l'écran */
.auth { align-items: start; }
.auth-art { position: sticky; top: 0; height: 100vh; height: 100dvh; }
.auth-main { min-height: 100dvh; }
@media (max-width: 960px) {
  .auth-art { display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative; height: auto; padding: calc(1rem + var(--safe-t)) 1.25rem 1rem; }
  .aa-float { display: none; }
  .aa-m { width: 76px; flex: none; }
  .aa-quote { position: static; text-align: left; font-size: 1.1rem; padding: 0; max-width: 16em; }
  .auth-main { min-height: 0; }
}

/* La bulle d'une étape passe toujours au-dessus des autres étapes */
.node-row { position: relative; z-index: 1; }
.node-row:has(.node-pop) { z-index: 30; }
.node-pop { z-index: 30; }

