@font-face { font-family: 'Nunito Web'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Web'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Web'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Web'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Web'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Web'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F6F3EC; --card: #FFFFFF; --ink: #1B2233; --muted: #687083; --line: #E6E1D6;
  --blue: #2346A8; --blue-soft: #E8EDFB; --red: #E0533D; --green: #1E8E53; --green-soft: #E3F5EA;
  --bad: #C8402F; --bad-soft: #FCE9E6; --mid: #B7791F; --mid-soft: #FDF3DD; --mark: #FFE08A;
  --r: 18px; --sh: 0 1px 2px rgba(27,34,51,.06), 0 6px 20px rgba(27,34,51,.06);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Nunito Web', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.boot, .center { display: grid; place-items: center; min-height: 60vh; }
.spin { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--blue-soft); border-top-color: var(--blue); border-radius: 50%; animation: sp .8s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
.nz { font-size: .62em; vertical-align: .55em; font-weight: 800; margin-left: .02em; color: var(--blue); }
mark { background: var(--mark); color: inherit; border-radius: 5px; padding: 0 .08em; }

/* boutons */
.btn { display: block; width: 100%; padding: 15px 18px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 3px 0 #17337F; transition: transform .06s; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #17337F; }
.btn:disabled { background: #C9CFDC; box-shadow: 0 3px 0 #AEB5C5; cursor: default; }
.btn.big { padding: 17px 18px; font-size: 18px; }
.btn.ghost { background: var(--card); color: var(--blue); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.link { display: block; margin: 0 auto; padding: 10px; color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mini { font-size: .55em; vertical-align: middle; background: var(--blue-soft); border-radius: 999px; padding: 3px 8px; }

/* accueil */
.home { padding: 22px 18px 40px; }
.hh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hh h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.hh p { margin: 2px 0 0; color: var(--muted); font-weight: 700; }
.streak { background: var(--card); border-radius: 14px; padding: 6px 12px; text-align: center; box-shadow: var(--sh); line-height: 1.1; font-size: 20px; }
.streak b { font-weight: 800; }
.streak small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.het { display: flex; justify-content: space-between; margin: 18px 0 16px; padding: 10px 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.nap { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.nap i { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; font-size: 14px; }
.nap.ok i { background: var(--green); }
.nap.ma span { color: var(--ink); }
.nap.ma i { box-shadow: 0 0 0 2px var(--blue); }
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); margin-bottom: 14px; }
.card.next { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; border: 2px solid var(--blue-soft); }
.card.next .btn, .card.next .hint { grid-column: 1 / -1; }
.card.next .btn { margin-top: 10px; }
.hint { text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 2px; }
.nt small { color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.nt h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.nt p { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.badge { width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.badge.xl { width: 72px; height: 72px; font-size: 30px; border-radius: 20px; margin: 0 auto 12px; }
.card.ism { display: flex; align-items: center; gap: 12px; border-left: 5px solid var(--red); }
.card.ism .ct { flex: 1; display: flex; flex-direction: column; }
.card.ism .ct span { color: var(--muted); font-size: 14px; font-weight: 700; }
.card.ism .btn { width: auto; padding: 11px 16px; background: var(--red); box-shadow: 0 3px 0 #A93A29; }
.puska-btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); font-size: 26px; margin-bottom: 6px; }
.puska-btn span { display: flex; flex-direction: column; font-size: 16px; }
.puska-btn small { color: var(--muted); font-weight: 600; font-size: 14px; }
.resz { margin: 24px 4px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.ut { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh); }
.lj { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.lt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.lt small { color: var(--muted); font-weight: 600; font-size: 14px; }
.ls { font-weight: 800; color: var(--green); font-size: 14px; }
.lrow.kesz .lj { background: var(--green-soft); }
.lrow.cur { box-shadow: 0 0 0 2px var(--blue), var(--sh); }
.lrow.cur .lj { background: var(--blue); color: #fff; }
.lrow.cur .ls { color: var(--blue); }
.lab { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 22px; }

/* accueil : fenêtre d'accueil */
.overlay { position: fixed; inset: 0; background: rgba(27,34,51,.45); display: grid; place-items: center; padding: 18px; z-index: 50; overflow-y: auto; }
.modal { background: var(--card); border-radius: 22px; padding: 22px 20px 20px; max-width: 440px; width: 100%; }
.modal h2 { margin: 4px 0 8px; font-size: 24px; font-weight: 800; }
.modal p { margin: 0 0 10px; }
.modal ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.modal li { background: var(--bg); border-radius: 12px; padding: 9px 12px; font-size: 15px; }
.modal li b { display: inline-block; min-width: 66px; color: var(--blue); }
.wave { font-size: 38px; }

/* pages */
.page { padding: 16px 18px 40px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 0; background: var(--bg); }
.top > b { flex: 1; text-align: center; font-weight: 800; }
.x { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--muted); font-weight: 800; }
.x:active { background: var(--line); }
.x.help { font-size: 20px; }
.bar { flex: 1; height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .35s ease; }
.box { background: var(--card); border-radius: 14px; padding: 12px 14px; margin-top: 10px; text-align: left; }
.box b { font-size: 14px; font-weight: 800; }
.box p { margin: 3px 0 0; font-size: 16px; }
.box.kj { border-left: 4px solid var(--red); }
.box.ny { border-left: 4px solid var(--blue); }
.box.jelek { border-left: 4px solid var(--blue); }
.abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.bt { background: var(--card); border-radius: 12px; padding: 10px 4px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; }
.bt b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.bt span { font-size: 14px; color: var(--blue); font-weight: 700; }
.tbl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tr { display: grid; grid-template-columns: 54px 1fr 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left; background: var(--card); border-radius: 12px; padding: 9px 12px; box-shadow: var(--sh); }
.tr .g { grid-row: 1 / 3; font-weight: 800; font-size: 19px; color: var(--blue); }
.tr .w { font-weight: 800; font-size: 17px; }
.tr .p { font-weight: 700; color: var(--blue); text-align: right; }
.tr .m { grid-column: 2 / 4; color: var(--muted); font-size: 14px; font-weight: 600; }

/* séance */
.sess { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 18px; }
.sess .top { padding-top: max(12px, env(safe-area-inset-top)); }
.stage { flex: 1; display: flex; flex-direction: column; padding-bottom: 12px; }
.foot { position: sticky; bottom: 0; padding: 12px 0 max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); display: flex; flex-direction: column; gap: 10px; }
.kicker { display: block; color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; text-align: center; }
.intro { text-align: center; margin: auto 0; padding: 20px 0; }
.intro h2 { font-size: 26px; font-weight: 800; margin: 6px 0 10px; line-height: 1.2; }
.intro p { font-size: 18px; margin: 0; text-align: left; background: var(--card); border-radius: 16px; padding: 16px; }
.uj { text-align: center; padding-top: 6px; }
.letter { font-size: 96px; font-weight: 800; line-height: 1; margin: 8px 0 2px; color: var(--ink); }
.letter small { font-size: .5em; color: var(--muted); margin-left: 10px; }
.letter.sm { font-size: 80px; }
.fr { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 10px 0 4px; letter-spacing: -.01em; }
.fr.long { font-size: 27px; }
.phon { display: inline-block; font-size: 21px; font-weight: 800; color: var(--blue); background: var(--blue-soft); border-radius: 12px; padding: 4px 14px; margin: 6px 0 10px; }
.phon-s { color: var(--blue); font-weight: 800; }
.hu { font-size: 19px; font-weight: 700; margin-top: 10px; }
.hu.big { font-size: 24px; font-weight: 800; margin: 8px 0; }
.szo { color: var(--muted); font-size: 15px; margin-top: 2px; }
.hg { display: flex; gap: 10px; justify-content: center; }
.snd { background: var(--card); border-radius: 999px; padding: 9px 16px; font-weight: 800; box-shadow: var(--sh); color: var(--blue); }
.snd.lassu { color: var(--ink); }
.snd.huge { width: 112px; height: 112px; border-radius: 50%; font-size: 46px; background: var(--blue); color: #fff; box-shadow: 0 5px 0 #17337F; display: grid; place-items: center; margin: 10px auto; padding: 0; }
.snd.solo { display: inline-block; margin: 4px auto 0; }
.snd.mini { padding: 8px 11px; flex: none; }
.snd:active { transform: translateY(1px); }
.pelda { display: block; width: 100%; background: var(--card); border-radius: 14px; padding: 10px 14px; margin-top: 14px; text-align: left; box-shadow: var(--sh); }
.pelda small { display: block; color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pelda b { font-size: 19px; }
.pelda i { color: var(--muted); font-style: normal; font-weight: 600; }
.ex { display: flex; flex-direction: column; }
.cim { font-size: 23px; font-weight: 800; margin: 8px 0 6px; }
.prompt { text-align: center; padding: 6px 0 14px; display: flex; flex-direction: column; align-items: center; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.grid { display: grid; grid-template-columns: 1fr 1fr; }
.opts.grid .opt { font-size: 30px; text-align: center; padding: 16px; }
.opt { background: var(--card); border-radius: 14px; padding: 14px 16px; text-align: left; font-weight: 700; font-size: 18px; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); transition: transform .06s; }
.opt:active:not(:disabled) { transform: translateY(2px); }
.opt.good { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green), 0 3px 0 var(--green); color: #12613A; }
.opt.bad { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad), 0 3px 0 var(--bad); color: #8E2A1E; }
.opt:disabled { cursor: default; }
.line { min-height: 64px; border-bottom: 2px solid var(--line); border-top: 2px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; margin-bottom: 16px; }
.line.good { border-color: var(--green); }
.line.bad { border-color: var(--bad); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile { background: var(--card); border-radius: 12px; padding: 9px 14px; font-weight: 800; font-size: 18px; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.tile.used { visibility: hidden; }
.micwrap { text-align: center; margin-top: 4px; }
.mic { width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: #fff; font-size: 40px; box-shadow: 0 5px 0 #A93A29; }
.mic.rec { animation: pulse 1.1s ease-in-out infinite; background: #D63A24; }
.mic:disabled { opacity: .6; }
@keyframes pulse { 0%, 100% { box-shadow: 0 5px 0 #A93A29, 0 0 0 0 rgba(224,83,61,.45); } 50% { box-shadow: 0 5px 0 #A93A29, 0 0 0 16px rgba(224,83,61,0); } }
#mst { color: var(--muted); font-weight: 700; font-size: 15px; min-height: 44px; margin: 10px 0 0; }

/* feuille de réponse */
.sheet-wrap { position: fixed; inset: 0; background: rgba(27,34,51,.25); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 18px max(18px, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-wrap.show .sheet { transform: none; }
.sheet h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.sheet p { margin: 0 0 10px; }
.sheet.ok { background: var(--green-soft); }
.sheet.ok h3 { color: #12613A; }
.sheet.no { background: var(--bad-soft); }
.sheet.no h3 { color: #8E2A1E; }
.sheet.mid { background: var(--mid-soft); }
.sheet.mid h3 { color: #8A5A10; }
.sheet .box { background: rgba(255,255,255,.75); }
.sheet .btn { margin-top: 14px; }
.sheet .btn.ghost { margin-top: 12px; }
.answ { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; }
.answ div { display: flex; flex-direction: column; line-height: 1.3; }
.answ b { font-size: 20px; }
.answ i { font-style: normal; color: var(--muted); font-weight: 700; }
.heard { font-size: 17px; }
.small { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 10px; }

/* fin */
.vege { text-align: center; justify-content: center; }
.party { font-size: 64px; }
.vege h2 { font-size: 30px; font-weight: 800; margin: 4px 0; }
.vege > p { margin: 0 0 10px; color: var(--muted); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stats div { background: var(--card); border-radius: 14px; padding: 12px 6px; box-shadow: var(--sh); display: flex; flex-direction: column; }
.stats b { font-size: 21px; font-weight: 800; }
.stats small { color: var(--muted); font-weight: 700; font-size: 12px; }

@media (min-width: 700px) {
  body { font-size: 18px; }
  .home, .page { padding-top: 28px; }
}
@media (max-height: 600px) {
  .letter { font-size: 72px; } .snd.huge { width: 88px; height: 88px; font-size: 36px; } .fr { font-size: 28px; } .intro { padding: 6px 0; }
}
