/* An encouraging, mobile-first study space. Layer order: sticky controls 5, main navigation 10. */
@font-face { font-family: Manrope; src: url('/fonts/manrope-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
:root {
  --bg: #f7f8fc; --surface: #fff; --surface-2: #edf0f5;
  --text: #23313c; --muted: #626f78; --line: #dce2df; --control-line: #b8c6cd;
  --primary: #3155ac; --primary-ink: #fff; --primary-soft: #e9efff;
  --accent: var(--primary); --tint: var(--primary-soft); --accent-line: #bbcaf0;
  --ok: #28674c; --ok-soft: #edf5ef; --ko: #a73d3d; --ko-soft: #fbefee;
  --mid: #8a651b; --mid-soft: #f7f1e5;
  --radius: 16px; --nav-h: 68px; color-scheme: light;
}
.tone-blue, .chip-valeurs { --accent: #3155ac; --tint: #eaf0ff; --accent-line: #b8c9ee; }
.tone-coral, .chip-droits { --accent: #a84430; --tint: #fff0e9; --accent-line: #e8bcae; }
.tone-green, .chip-societe { --accent: #28674c; --tint: #e8f5ed; --accent-line: #b2d7c1; }
.tone-amber, .chip-histoire { --accent: #7e5a13; --tint: #fff4d6; --accent-line: #e3cc8c; }
.tone-violet, .chip-institutions { --accent: #6a479b; --tint: #f2ebfc; --accent-line: #ccb9e5; }
.tone-teal { --accent: #216b72; --tint: #e7f5f5; --accent-line: #a8d3d6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, label.file { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 650; }
h2 { font-size: 22px; line-height: 1.4; font-weight: 650; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
b, strong { font-weight: 700; }
kbd { font: 12px ui-monospace, monospace; opacity: .7; margin-left: 6px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
::selection { background: #cad7fa; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; background: currentColor; mask: var(--icon) center/contain no-repeat; -webkit-mask: var(--icon) center/contain no-repeat; vertical-align: middle; }
.wrap { max-width: 720px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 20px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.page-intro { margin-top: 8px; color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.6; }
.center { text-align: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-title { font-size: 19px; margin-bottom: 18px; font-weight: 650; }
.row2, .row3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.foot { text-align: center; margin-top: 8px; line-height: 1.8; font-size: 11px; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--control-line); color: var(--primary); }
/* Four persistent destinations, comfortably reachable with one hand. */
.nav { position: fixed; inset: auto 0 0; z-index: 10; display: flex; justify-content: center; gap: 4px; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav a[data-nav] { flex: 1; max-width: 150px; min-width: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; font-size: 11px; font-weight: 650; color: var(--muted); position: relative; }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav-brand { display: none; }
/* Home: the next action comes before the numbers. */
.home-top { margin-bottom: 4px; }
.home-top .icon-btn { background: var(--primary-soft); border-color: #bbcaf0; }
.home-overview { display: grid; gap: 22px; }
.study-panel { background: #eaf0ff; padding: 22px; border: 1px solid #bbcaf0; border-radius: var(--radius); }
.study-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.study-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; color: var(--primary); }
.study-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff4d6; color: #7e5a13; }
.study-mark .icon { width: 18px; height: 18px; }
.study-count { color: #4b5e89; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.study-panel h2 { color: #243d76; font-size: 25px; line-height: 1.32; font-weight: 700; max-width: 18ch; margin-bottom: 10px; }
.study-panel .muted { color: #4b5e89; }
.study-panel.is-complete { background: #e8f5ed; border-color: #b2d7c1; }
.study-panel.is-complete h2, .study-panel.is-complete .study-label { color: var(--ok); }
.study-panel.is-complete .study-mark { color: #fff; background: var(--ok); }
.study-panel > p { font-size: 13px; }
.study-start { width: 100%; margin: 22px 0; min-height: 54px; justify-content: space-between !important; text-align: left; font-size: 14px !important; }
.study-start span:first-child { flex: 1; }
.daily-goal { display: grid; gap: 8px; }
.daily-goal .small { font-size: 11px; }
.daily-goal .bar { height: 7px; border-radius: 4px; background: #cfdbf6; }
.daily-goal .bar span { border-radius: 4px; }
.is-complete .daily-goal .bar { background: #c9e4d3; }
.bar { height: 4px; border-radius: 2px; overflow: hidden; background: var(--surface-2); }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: 2px; }
.bar.ok span { background: var(--ok); }
.bar.mid span { background: var(--mid); }
.home-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.metric { padding: 16px; background: var(--tint); border: 1px solid var(--accent-line); border-radius: var(--radius); }
.metric-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.metric-label .icon { width: 16px; height: 16px; }
.metric-value { color: var(--accent); font-size: 35px; line-height: 1.3; letter-spacing: -.05em; font-weight: 650; margin: 7px 0 8px; font-variant-numeric: tabular-nums; }
.metric-value span { font-size: 14px; letter-spacing: -.02em; color: var(--muted); margin-left: 3px; }
.metric .small { font-size: 12px; }
.metric-note { margin-top: 9px; font-size: 11px; color: #52616c; }
.metric .muted, .metric-value span { color: #52616c; }
.practice-section, .themes-section { margin-top: 10px; }
.practice-section .section-title { max-width: 23ch; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--tint); }
.tile-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; }
.tile-ico { width: 22px; height: 22px; }
.tile-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tile b { font-size: 14px; line-height: 1.4; }
.tile small { color: #52616c; font-size: 12px; line-height: 1.6; }
.tile-action { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; margin-top: auto; padding-top: 3px; color: var(--accent); font-size: 12px; font-weight: 750; }
.tile-arrow { width: 18px; height: 18px; }
.themes-list { gap: 10px; }
.theme-row { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--surface); }
.theme-body { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.theme-body b { font-size: 13px; line-height: 1.5; }
.theme-body small { font-size: 12px; color: var(--muted); }
.theme-body .bar { margin-top: 5px; height: 4px; background: var(--tint); }.theme-body .bar span { background: var(--accent); }
.theme-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.theme-arrow, .cta-arrow { width: 20px; height: 20px; color: var(--primary); }
.theme-arrow { color: var(--accent); }
/* Focused learning screens. */
.train-top { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.train-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.train-title b { font-size: 13px; letter-spacing: -.02em; }
.train-title small { color: var(--muted); font-size: 11px; }
.combo { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 650; }
.combo .icon { width: 17px; height: 17px; }
.combo.hot { color: var(--mid); }
.qcard { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.qcard.is-sit { border-top: 3px solid var(--mid); }
.qmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 650; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.chip-new, .chip-ai { background: var(--primary-soft); color: var(--primary); }
.chip-valeurs, .chip-institutions, .chip-droits, .chip-histoire, .chip-societe { background: var(--tint); color: var(--accent); }
.fmt { color: var(--muted); font-size: 11px; font-weight: 600; }
.prompt { font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
.statement { padding: 16px; background: var(--bg); border-radius: 10px; font-size: 16px; line-height: 1.6; }
.speak { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--control-line); border-radius: 10px; padding: 10px 13px; color: var(--primary); background: var(--surface); font-size: 12px; font-weight: 650; margin-top: -6px; }
.speak .icon { width: 18px; height: 18px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.options.vf { flex-direction: row; }
.options.vf .opt { justify-content: center; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; padding: 13px 14px; border-radius: 10px; border: 1px solid #ccd5d1; background: var(--surface); font-size: 15px; line-height: 1.55; transition: background .15s, border-color .15s; }
.opt-l { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 650; }
.opt.good { border-color: var(--ok); background: var(--ok-soft); }
.opt.good .opt-l { background: var(--ok); color: #fff; }
.opt.bad { border-color: var(--ko); background: var(--ko-soft); }
.opt.bad .opt-l { background: var(--ko); color: #fff; }
.opt.chosen { border-color: var(--primary); background: var(--primary-soft); }
.opt.chosen .opt-l { background: var(--primary); color: #fff; }
.opt:disabled:not(.good):not(.bad) { color: var(--muted); background: var(--bg); }
.typed { display: flex; flex-wrap: wrap; gap: 10px; }
.typed input, .search, .form input, .form select, .composer textarea { min-width: 0; width: 100%; padding: 14px; min-height: 50px; border-radius: 10px; border: 1px solid #bac7c0; background: var(--surface); font-size: 16px; }
.typed input { flex: 1; min-width: 140px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.typed input.good { border-color: var(--ok); background: var(--ok-soft); }
.typed input.bad { border-color: var(--ko); background: var(--ko-soft); }
.fb { border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.fb-ok { background: var(--ok-soft); }
.fb-ko { background: var(--ko-soft); }
.fb-neutral { background: var(--surface-2); }
.fb-title { font-size: 16px; font-weight: 700; }
.fb-ok .fb-title { color: var(--ok); }
.fb-ko .fb-title { color: var(--ko); }
.fb-answer, .fb-expl { font-size: 13px; line-height: 1.7; }
#feedback:not(:empty) { display: flex; flex-direction: column; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 18px; border-radius: 10px; border: 1px solid var(--control-line); background: var(--surface); font-size: 13px; font-weight: 650; cursor: pointer; transition: background .15s, transform .15s; }
.btn.primary { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.btn.good { color: #fff; background: var(--ok); border-color: var(--ok); }
.btn.bad { color: var(--ko); border-color: #d7aaa5; }
.btn.ghost { background: var(--surface); color: var(--primary); border-color: var(--control-line); }
.btn.block { width: 100%; }
.btn.small { font-size: 12px; }
.btn:disabled { opacity: .5; }
.btn:active:not(:disabled), .icon-btn:active { transform: scale(.98); }
.pause, .result { display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 32px 22px; }
.pause .row2 { width: 100%; margin-top: 10px; }
.status-icon { color: var(--primary); background: var(--primary-soft); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 6px; }
.status-icon .icon { width: 30px; height: 30px; }
/* Exams: each question shortcut has a genuine touch target. */
.facts { padding-left: 20px; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.timer { font: 600 14px Manrope, sans-serif; font-variant-numeric: tabular-nums; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.timer.urgent { color: var(--ko); border-color: var(--ko); }
.dots { display: flex; gap: 6px; overflow-x: auto; padding: 3px 0 7px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dot { flex: 0 0 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0; background: var(--surface); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dot.done { border-color: #8ea8b7; color: var(--primary); background: var(--primary-soft); }
.dot.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.exam-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.exam-facts b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.05em; }
.exam-facts small { display: block; color: var(--muted); font-size: 11px; }
.exam-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.t-ok { color: var(--ok); }
.t-ko { color: var(--ko); }
.score { font-size: 64px; font-weight: 650; line-height: 1.1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.score span { color: var(--muted); font-size: 24px; }
.trow { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0 8px; font-size: 13px; min-height: 24px; }
.trow.link:first-of-type { margin-top: 0; }
.trow.link { align-items: center; min-height: 48px; padding: 12px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--bg); }
.trow.link b { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--primary); }
.trow.link .icon { width: 18px; height: 18px; }
.trow + .bar + p { margin-top: 5px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.review summary { position: relative; padding-right: 44px; font-size: 14px; line-height: 1.6; font-weight: 650; cursor: pointer; list-style: none; min-height: 44px; }
.review summary::-webkit-details-marker { display: none; }
.review[open] summary { margin-bottom: 12px; }
.review p { font-size: 13px; margin-top: 8px; line-height: 1.7; }
.qnum { display: inline-block; min-width: 26px; color: var(--muted); font-size: 10px; margin-right: 5px; font-variant-numeric: tabular-nums; }
.dotm { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.dotm.ok { background: var(--ok); }.dotm.ko { background: var(--ko); }.dotm.mid { background: var(--mid); }
/* Progress and reference material. */
.hero { display: flex; align-items: center; gap: 18px; }
.hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero-text .eyebrow { letter-spacing: 0; text-transform: none; margin: 0; }
.hero-status { font-size: 15px; font-weight: 650; }
.ring { width: 104px; height: 104px; flex: none; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 64px 64px; }
.ring.ok .ring-fg { stroke: var(--ok); }.ring.mid .ring-fg { stroke: var(--mid); }
.ring-mark { stroke: var(--muted); stroke-width: 1.5; }
.ring-val { font-size: 34px; font-weight: 650; text-anchor: middle; fill: var(--text); }
.ring-max { font-size: 12px; text-anchor: middle; fill: var(--muted); }
.stat { padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.stat .eyebrow { font-size: 10px; text-transform: none; letter-spacing: 0; margin: 0; }
.stat-val { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-val span { font-size: 12px; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 130px; position: relative; margin-bottom: 12px; }
.chart .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.chart small { font-size: 10px; color: var(--muted); }
.colbar { width: 100%; max-width: 24px; min-height: 3px; background: var(--primary-soft); border-radius: 3px 3px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.colok { width: 100%; background: var(--primary); }.colbar.pass { background: var(--ok); }.colbar.fail { background: var(--ko); }
.cta { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--primary-soft); border: 1px solid #bbcaf0; border-radius: var(--radius); }
.cta-body { flex: 1; min-width: 0; }
.cta-ico { width: 28px; height: 28px; color: var(--primary); }
.cta b { display: block; font-size: 15px; margin-bottom: 4px; }
.cta small { font-size: 12px; line-height: 1.7; color: var(--muted); }
.fiche { border-color: var(--control-line); }
.fiche summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0,1fr) 32px; align-items: center; gap: 3px 12px; min-height: 44px; }
.fiche summary b { grid-column: 1; }
.fiche summary::-webkit-details-marker { display: none; }
.fiche summary b { font-size: 14px; }
.fiche summary small { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); }
.fiche summary::after { grid-column: 2; grid-row: 1 / 3; }
.fiche summary::after, .review summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--primary-soft); font-size: 22px; line-height: 1; font-weight: 500; color: var(--primary); }
.review summary::after { position: absolute; right: 0; top: 0; }
.fiche[open] summary { margin-bottom: 20px; }.fiche[open] summary::after, .review[open] summary::after { content: '−'; }
.fiche dl { margin: 0 0 22px; display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
.fiche dt { font-weight: 700; margin-top: 10px; }.fiche dt:first-child { margin-top: 0; }
.fiche dd { margin: 0; color: var(--muted); line-height: 1.7; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px 8px; margin: 0 -20px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 44px; padding: 10px 16px; border: 1px solid var(--control-line); background: var(--surface); border-radius: 8px; font-size: 12px; font-weight: 650; }
.chip-btn.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.search-label { font-size: 12px; font-weight: 650; margin-bottom: -12px; }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 13px; min-height: 44px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form h3 { margin-bottom: -10px; }
.form label:not(.toggle):not(.btn) { display: flex; flex-direction: column; gap: 9px; font-size: 13px; font-weight: 650; }
.card > p + p { margin-top: 14px; }
.chat { display: flex; flex-direction: column; gap: 16px; min-height: 45dvh; }
.msg { max-width: 90%; padding: 16px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.msg.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--primary-soft); }
.mini-speak { float: right; width: 44px; height: 44px; margin: -8px -8px 0 8px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--surface); color: var(--primary); }
.typing { display: flex; gap: 4px; }.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }.typing span:nth-child(2) { animation-delay: .2s; }.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.composer { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--bg); padding-top: 8px; z-index: 5; }
.composer textarea { resize: none; max-height: 140px; }.mic.rec { background: var(--ko); color: #fff; }
.tile, .theme-row, .cta, .trow.link, .speak, .chip-btn, .nav a[data-nav] { transition: background .15s, border-color .15s, transform .15s; }
.tile:active, .theme-row:active { background: var(--tint); border-color: var(--accent); transform: translateY(1px); }
.cta:active, .trow.link:active { background: var(--primary-soft); border-color: var(--primary); transform: translateY(1px); }
@media (hover: hover) {
  .btn.primary:hover { background: #254493; }
  .tile:hover, .theme-row:hover { background: var(--tint); border-color: var(--accent); }
  .tile:hover:not(:active), .theme-row:hover:not(:active) { transform: translateY(-2px); }
  .cta:hover, .trow.link:hover { background: var(--primary-soft); border-color: var(--primary); }
  .btn:not(.primary):not(.good):not(.bad):not(:disabled):hover, .speak:hover, .chip-btn:not(.on):hover, .icon-btn:hover, .nav a[data-nav]:hover { background: var(--primary-soft); border-color: var(--primary); }
  .fiche summary:hover::after, .review summary:hover::after { background: var(--primary); color: #fff; border-color: var(--primary); }
  .opt:not(:disabled):hover { background: var(--bg); border-color: var(--primary); }
}
@media (max-width: 360px) { .wrap { padding-inline: 16px; }.study-panel, .qcard { padding: 18px; }.study-start { padding-inline: 13px; font-size: 12px !important; }.tile { padding: 14px; gap: 10px; }.tile b { font-size: 13px; }.prompt { font-size: 20px; }.fiche { padding: 16px; }.chips-row { margin-inline: -16px; padding-inline: 16px; } }
@media (min-width: 768px) {
  .wrap { padding: 108px 32px 48px; gap: 24px; }
  body[data-page='entrainement'] .wrap, body[data-page='reglages'] .wrap, body[data-page='entretien'] .wrap { padding-top: 36px; }
  body[data-page='examen']:has(.train-top) .wrap { padding-top: 36px; }
  body[data-page='home'] .wrap { max-width: 1000px; }
  .nav { inset: 0 0 auto; padding: 0 max(24px, calc((100vw - 936px)/2)); justify-content: flex-end; min-height: 72px; align-items: center; }
  .nav-brand { display: block; margin-right: auto; font-size: 15px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
  .nav a[data-nav] { flex: 0 0 auto; width: 100px; height: 44px; flex-direction: row; gap: 8px; font-size: 12px; }
  .nav a[data-nav] .icon { width: 18px; height: 18px; }
  .home-top .eyebrow { display: none; }h1 { font-size: 38px; }
  .home-overview { grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
  .study-panel { padding: 28px; }.study-panel h2 { font-size: 28px; }.study-heading { margin-bottom: 24px; }
  .home-metrics { gap: 16px; }.metric { padding: 20px; }.metric-value { font-size: 42px; }.metric .small { font-size: 12px; }.metric-note { font-size: 11px; }
  .practice-section, .themes-section { margin-top: 16px; }.practice-section .section-title { max-width: none; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }.tile { gap: 14px; padding: 22px; }.tile b { font-size: 15px; }.tile small { font-size: 12px; }
  .theme-row { padding: 20px 22px; gap: 22px; }.theme-body b { font-size: 14px; }.theme-body small { font-size: 12px; }
  .qcard { padding: 32px; gap: 22px; }.prompt { font-size: 25px; }.opt { font-size: 15px; min-height: 64px; }
  .fiche dl { grid-template-columns: minmax(100px,32%) 1fr; gap: 14px 22px; }.fiche dt { margin: 0; }
  .dots { display: grid; grid-template-columns: repeat(20,minmax(0,1fr)); gap: 4px; overflow: visible; }.dot { min-height: 36px; font-size: 10px; }
}
@media (pointer: coarse) { kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
