/* Polices auto-hébergées (SIL Open Font License 1.1, voir fonts/OFL.txt) — aucune requête vers Google */
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/commissioner-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/commissioner-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/commissioner-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/commissioner-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/commissioner-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/commissioner-cyrillic-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/commissioner-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/commissioner-greek-500-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/commissioner-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/commissioner-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/commissioner-cyrillic-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/commissioner-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/commissioner-greek-600-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/commissioner-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/commissioner-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/commissioner-cyrillic-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/commissioner-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/commissioner-greek-700-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/commissioner-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/commissioner-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'GFS Didot';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/gfs-didot-greek-ext-400-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'GFS Didot';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/gfs-didot-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'GFS Didot';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/gfs-didot-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-greek-ext-400-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Λεξούλα — vitrine lexoula.gr. Même carnet que l'appli : papier vert olive, encre violine,
   GFS Didot pour les titres, Commissioner pour le texte. L'accueil est une entrée de dictionnaire ;
   la seule animation est la démo dans le téléphone. */
:root {
  --bg: #EDF0EA; --surface: #FAFBF8; --surface-2: #E2E7DF; --ink: #1B231E; --muted: #56625A; --line: #CBD3C8;
  --accent: #6A3E6D; --accent-ink: #FFFFFF; --accent-soft: #EADFEA;
  --ok: #2C7647; --ok-soft: #D9EEDF; --star: #B27412; --star-soft: #F6EAD0;
  --lv-new: #B9C2B6; --lv-weak: #D08A3E; --lv-mid: #8B6A9C; --lv-ok: #3E8A5A;
  --frame: #1B231E;
  --f-display: "GFS Didot", "Literata", Georgia, serif;
  --f-read: "Literata", Georgia, serif;
  --f-ui: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111512; --surface: #191E1A; --surface-2: #222924; --ink: #E4E9E2; --muted: #9BA69D; --line: #2D3630;
    --accent: #C9A3CC; --accent-ink: #1C1320; --accent-soft: #32253A;
    --ok: #6CC08A; --ok-soft: #1C3124; --star: #E3B341; --star-soft: #3A2F16;
    --lv-new: #4A544C; --lv-weak: #D6955A; --lv-mid: #A889B8; --lv-ok: #62B47F;
    --frame: #050706;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.in { max-width: 1120px; margin: 0 auto; padding-inline: var(--gut); }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1.1 var(--f-ui); text-decoration: none;
  border: 1.5px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-s { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-l { min-height: 52px; font-size: 17px; }

/* en-tête */
.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px); }
.bar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.mark { font: 400 28px/1 var(--f-display); color: var(--accent); text-decoration: none; letter-spacing: .01em; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  border-radius: 10px; color: var(--muted); font: 600 13px/1 var(--f-ui); letter-spacing: .04em; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--surface-2); color: var(--ink); }
.lang summary svg { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; padding: 6px; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.lang a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang a:hover { background: var(--surface-2); }
.lang a[aria-current] { color: var(--accent); font-weight: 600; }
@media (max-width: 420px) { .lang summary span { display: none; } .mark { font-size: 25px; } .btn-s { padding: 0 13px; font-size: 14px; } }
@media (max-width: 370px) { .bar .in { gap: 6px; } .mark { font-size: 22px; } .lang summary { padding: 0 6px; } .btn-s { padding: 0 10px; font-size: 13px; } }
.btn-s { white-space: nowrap; }

/* accueil : entrée de dictionnaire */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px 72px; align-items: center; padding-block: 64px 72px; }
.entry { position: relative; max-width: 620px; }
.word { font: 400 clamp(72px, 12vw, 136px)/.95 var(--f-display); color: var(--accent); letter-spacing: -.005em; margin-left: -4px; }
.pron { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.pron span { font-family: var(--f-display); font-size: 19px; color: var(--ink); margin-right: 6px; }
.pron i { font-style: normal; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.senses { margin-top: 16px; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.senses li { counter-increment: s; position: relative; padding-left: 30px; font: 400 18px/1.6 var(--f-read); color: var(--muted); }
.senses li::before { content: counter(s) "."; position: absolute; left: 0; top: 0; font: 700 17px/1.7 var(--f-ui); color: var(--accent); }
.senses .main-sense { font-size: 22px; line-height: 1.5; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 48ch; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 40px 56px; justify-items: stretch; }
  .demo { justify-self: center; }
  .senses .main-sense { font-size: 20px; }
}
@media (max-width: 480px) { .ctas .btn { flex: 1 1 100%; } .senses li { padding-left: 24px; } }

/* démo : téléphone */
.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 300px; max-width: 100%; }
.demo figcaption { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.cap { min-height: 6.4em; font-size: 15px; line-height: 1.6; color: var(--ink); text-align: center; }
.ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.play svg { width: 16px; height: 16px; }
.play .i-play, .demo.paused .play .i-pause { display: none; }
.demo.paused .play .i-play { display: block; }
.dots { display: flex; gap: 4px; }
.dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--line); transition: background .2s, inset .2s; }
.dots button[aria-current="true"]::after { background: var(--accent); inset: 7px; }

.phone { --pw: 286px; width: calc(var(--pw) + 20px); padding: 10px; border-radius: 48px; background: var(--frame);
  box-shadow: 0 1px 0 1px rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(27,35,30,.45), 0 12px 24px -12px rgba(27,35,30,.3); }
.p-screen { position: relative; width: var(--pw); height: calc(var(--pw) * 2.08); border-radius: 38px; overflow: hidden; background: var(--bg);
  font-family: var(--f-ui); color: var(--ink); isolation: isolate; }
.p-status { position: absolute; inset: 0 0 auto; height: 40px; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px; font: 600 12.5px/1 var(--f-ui); background: var(--bg); }
.p-island { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 82px; height: 22px; border-radius: 12px; background: #000; }
.p-batt { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .8; position: relative; }
.p-batt::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.p-scene { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.p-scene.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.p-top { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 16px 8px; border-bottom: 1px solid var(--line); }
.p-brand { font: 400 22px/1.1 var(--f-display); }
.p-streak { font: 600 11px/1 var(--f-ui); color: var(--muted); }
.p-streak b { color: var(--accent); font-size: 12.5px; }
.p-body { flex: 1; min-height: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.p-eyebrow { font: 600 9.5px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-hello { font: 400 25px/1.1 var(--f-display); margin-top: -6px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.p-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-nums div { background: var(--surface-2); border-radius: 9px; padding: 7px 8px; min-width: 0; }
.p-nums b { display: block; font: 600 19px/1.1 var(--f-ui); }
.p-nums span { display: block; font-size: 9.5px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.p-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font: 600 13px/1.2 var(--f-ui); text-align: center; padding: 0 10px; transition: transform .15s, filter .15s; }
.p-btn.pressed { transform: scale(.97); filter: brightness(1.15); }
.p-days { display: flex; gap: 3px; }
.p-days i { flex: 1; max-width: 13px; aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.p-days i.on { background: var(--accent); }
.p-days i.today { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.p-chips span { font: 400 14px/1.2 var(--f-display); background: var(--surface-2); border-radius: 7px; padding: 3px 7px; }
.p-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 7px 4px 16px; }
.p-tabs span { display: flex; flex-direction: column; align-items: center; gap: 1px; font: 500 8.5px/1.2 var(--f-ui); color: var(--muted); text-align: center; min-width: 0; overflow-wrap: anywhere; }
.p-tabs b { font: 400 13px/1.1 var(--f-display); }
.p-tabs .on { color: var(--accent); }
.p-tabs .on b { font-weight: 700; }

/* démo : session */
.p-shead { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.p-x { color: var(--muted); font-size: 20px; line-height: 1; width: 18px; }
.p-pbar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.p-pbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.p-count { font: 600 10.5px/1 var(--f-ui); color: var(--muted); }
.p-qlabel { font: 600 11px/1.3 var(--f-ui); color: var(--muted); }
.p-prompt { display: flex; align-items: center; gap: 10px; }
.p-big { font: 400 27px/1.15 var(--f-display); }
.p-say { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--accent); background: var(--accent-soft); }
.p-say svg { width: 15px; height: 15px; }
.p-opts { display: flex; flex-direction: column; gap: 7px; }
.p-opt { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 10px; font: 500 13.5px/1.3 var(--f-ui); transition: background .25s, border-color .25s; }
.p-opts.gr .p-opt { font: 400 17px/1.2 var(--f-display); }
.p-opt.right { border-color: var(--ok); background: var(--ok-soft); }
.p-sentence { font: 400 16px/1.55 var(--f-read); }
.p-blank { display: inline-block; min-width: 64px; border-bottom: 2px solid var(--accent); color: var(--accent); text-align: center; transition: min-width .3s; }
.p-hint { font: 500 11.5px/1.4 var(--f-ui); color: var(--muted); }
.p-verdict { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 22px; background: var(--surface); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px; transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.p-verdict::before { content: ""; position: absolute; inset: 8px 10px 14px; border-radius: 10px; background: var(--ok-soft); z-index: -1; }
.p-verdict b { font: 700 13px/1.3 var(--f-ui); color: var(--ok); padding: 4px 6px 0; }
.p-verdict span { font: 400 13.5px/1.4 var(--f-read); padding: 0 6px 4px; }
.p-scene.reveal .p-verdict { transform: none; }

/* démo : vocabulaire */
.p-ghead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.p-ghead b { font: 600 12px/1.25 var(--f-ui); }
.p-ghead span { font: 400 12px/1.2 var(--f-display); color: var(--muted); text-align: right; }
.p-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 2px 9px; align-items: start; padding: 2px 0 9px; border-bottom: 1px solid var(--line); margin-top: -3px; }
.p-row > div { display: flex; flex-direction: column; min-width: 0; }
.p-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; }
.lv-new { background: var(--lv-new); } .lv-weak { background: var(--lv-weak); } .lv-mid { background: var(--lv-mid); } .lv-ok { background: var(--lv-ok); }
.p-hw { font: 400 17px/1.25 var(--f-display); }
.p-fr { font: 500 12.5px/1.35 var(--f-ui); }
.p-forms { font: 400 11px/1.3 var(--f-ui); color: var(--muted); }
.p-star { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--line); transition: color .25s, background .25s, transform .25s; }
.p-star svg { width: 17px; height: 17px; }
.p-star.on { color: var(--star); background: var(--star-soft); transform: scale(1.08); }

/* démo : lecture */
.p-meta { display: flex; align-items: center; gap: 6px; font: 500 10px/1.2 var(--f-ui); color: var(--muted); }
.p-badge { font: 600 9px/1 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink); }
.p-rtitle { font: 400 23px/1.15 var(--f-display); margin-top: -2px; }
.p-rtr { font-size: 12px; color: var(--muted); margin-top: -8px; }
.p-para { font: 400 15px/1.65 var(--f-read); hyphens: auto; }
.p-para u { text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent-soft); border-bottom: 1.5px solid var(--accent-soft); transition: background .25s; }
.p-para u.lit { background: var(--accent-soft); border-radius: 3px; }
.p-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--surface); border-radius: 16px 16px 0 0; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.14); padding: 14px 16px 26px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(105%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.p-scene.reveal .p-sheet { transform: none; }
.p-sheethead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-sheet .p-hw { font-size: 21px; }
.p-sheet .p-fr { font-size: 14px; font-weight: 600; }
.p-ex { font: 400 13.5px/1.45 var(--f-read); color: var(--muted); margin-top: 4px; }

/* démo : progrès */
.p-levels { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.p-levels i { display: block; height: 100%; width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.p-scene.reveal .p-levels i { width: var(--w); }
.p-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 11px; }
.p-legend span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.p-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.p-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.p-big-n { font: 600 22px/1 var(--f-ui); color: var(--accent); letter-spacing: 0; margin-right: 2px; }

.p-finger { position: absolute; z-index: 6; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(106,62,109,.42) 0 40%, rgba(106,62,109,.14) 41% 100%); opacity: 0; transform: scale(.6); }
.p-finger.tap { animation: tap .7s ease-out; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.3); } 30% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .p-scene, .p-scene.on, .p-verdict, .p-sheet, .p-levels i, .p-opt, .p-star, .p-btn { transition: none; }
  .p-finger { display: none; }
}

/* sections */
.sect { padding-block: 88px; border-bottom: 1px solid var(--line); }
.sect h2, .final h2 { font: 400 clamp(34px, 5vw, 48px)/1.1 var(--f-display); max-width: 22ch; }
.lead { margin-top: 18px; font: 400 20px/1.6 var(--f-read); color: var(--muted); max-width: 60ch; }
@media (max-width: 700px) { .sect { padding-block: 64px; } .lead { font-size: 18px; } }

.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: none; }
.steps li { position: relative; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps .num { display: block; font: 400 44px/1 var(--f-display); color: var(--accent); margin-bottom: 14px; }
.steps h3 { font: 600 19px/1.35 var(--f-ui); }
.steps p { margin-top: 8px; color: var(--muted); max-width: 40ch; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; } .steps .num { grid-row: span 2; margin: 0; } .steps p { grid-column: 2; } }

.gloss { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.gloss > div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.gloss dt { font: 400 23px/1.25 var(--f-display); color: var(--ink); }
.gloss dd { margin-top: 6px; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .gloss { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; max-width: 64ch; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; max-width: none; }
@media (max-width: 760px) { .ticks.two { grid-template-columns: 1fr; } }

.teach-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.codecard { background: var(--accent-soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.codecard span { font: 600 14px/1.2 var(--f-ui); color: var(--muted); }
.codecard b { font: 700 32px/1.1 var(--f-ui); letter-spacing: .12em; color: var(--accent); }
.codecard .qr { width: 132px; height: 132px; margin-top: 8px; padding: 8px; background: #fff; border-radius: 10px; fill: #1B231E; shape-rendering: crispEdges; }
@media (max-width: 800px) { .teach-in { grid-template-columns: 1fr; } .codecard { max-width: 320px; } }

.people { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.people article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.people h3 { font: 400 46px/1 var(--f-display); color: var(--accent); order: -1; }
.people p { color: var(--muted); }
.people .credit { font-size: 14.5px; color: var(--ink); }
.credit a { white-space: nowrap; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

.bts .dg-wrap { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-tall { display: none; max-width: 340px; margin: 0 auto; }
@media (max-width: 700px) { .dg-wide { display: none; } .dg-tall { display: block; } .bts .dg-wrap { padding: 18px 10px; } }
.dg-box rect { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.dg-box.hl rect { fill: var(--accent-soft); stroke: var(--accent); }
.dg-box.hl2 rect { fill: var(--surface-2); stroke: var(--ink); }
.dg-t { font: 600 15px var(--f-ui); fill: var(--ink); text-anchor: middle; }
.dg-s { font: 400 12px var(--f-ui); fill: var(--muted); text-anchor: middle; }
.dg-a { font: 500 12px var(--f-ui); fill: var(--accent); }
.dg-l { stroke: var(--muted); stroke-width: 1.5; }
.dg-ah { fill: var(--muted); }
.facts { margin-top: 28px; font: 400 22px/1.5 var(--f-read); max-width: 52ch; }
.stack { margin-top: 36px; }
.stack h3 { font: 600 15px/1.3 var(--f-ui); color: var(--muted); }
.tags { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 14.5px; background: var(--surface); }
.gh { margin-top: 32px; }
.claude { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 60ch; }

.final { background: var(--accent); color: var(--accent-ink); padding-block: 80px; }
.final .in { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.final p { font: 400 20px/1.55 var(--f-read); max-width: 52ch; opacity: .92; }
.final .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); margin-top: 8px; }

.foot { padding-block: 40px 56px; font-size: 14.5px; color: var(--muted); padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.foot .in { display: flex; flex-direction: column; gap: 14px; }
.foot .credit { color: var(--ink); font-family: var(--f-read); font-size: 15px; line-height: 1.7; }
.foot .links, .foot .langs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot .langs a { color: var(--muted); text-decoration: none; }
.foot .langs a:hover { color: var(--accent); text-decoration: underline; }
.foot .langs a[aria-current] { color: var(--ink); font-weight: 600; }
