/* =============================================================
   Style « sobre et pro » : blanc, bleu marine, un accent rouge
   ============================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --ink: #0f1f3a;
  --ink-soft: #3f4c63;
  --muted: #6b778c;
  --line: #e3e8ef;
  --navy: #0f2744;
  --navy-2: #1c3a63;
  --accent: #c8102e;          /* rouge du drapeau canadien, utilisé avec parcimonie */
  --tint: #eef2f8;            /* bleu très pâle */
  --ok: #17803d;
  --ok-bg: #eaf6ee;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --shadow: 0 1px 2px rgba(15,31,58,.05), 0 4px 12px rgba(15,31,58,.05);
  --shadow-lg: 0 2px 4px rgba(15,31,58,.05), 0 16px 40px rgba(15,31,58,.10);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1424; --bg-alt: #111b2f; --surface: #14203a; --ink: #eef2f8; --ink-soft: #c3cbd9; --muted: #8b97ab;
    --line: #243250; --tint: #1a2a48; --ok-bg: #12301f; --bad-bg: #3a1714; --navy: #e8eef7; --navy-2: #c9d6ea;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 16px 40px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0c1424; --bg-alt: #111b2f; --surface: #14203a; --ink: #eef2f8; --ink-soft: #c3cbd9; --muted: #8b97ab;
  --line: #243250; --tint: #1a2a48; --ok-bg: #12301f; --bad-bg: #3a1714; --navy: #e8eef7; --navy-2: #c9d6ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
svg { flex: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.en { color: var(--muted); font-weight: 400; }
.with-ic { display: inline-flex; align-items: center; gap: 6px; }
.with-ic svg { width: 15px; height: 15px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid #5b8def; outline-offset: 2px; border-radius: 6px; }

/* ============ Boutons ============ */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.3em; border-radius: 8px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: 600 .95rem var(--font); transition: background .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-light { background: #fff; color: #0f2744; }
.btn-light:hover { background: #eef2f8; }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.btn-green { background: #1f7a4d; color: #fff; }
.btn-green:hover { background: #17643e; }

/* ============ Navigation ============ */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; color: var(--navy); }
:root[data-theme="dark"] .logo-mark text { fill: #0c1424; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-mark text { fill: #0c1424; } }
.links { display: flex; align-items: center; gap: 2px; }
.links a:not(.btn) { text-decoration: none; padding: .45em .8em; border-radius: 8px; font-weight: 500; font-size: .93rem; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.links a small { font-weight: 400; font-size: .68rem; color: var(--muted); }
.links a:not(.btn):hover { color: var(--ink); background: var(--bg-alt); }
.links a.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.links .btn { margin-left: 10px; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
@media (max-width: 1100px) {
  .burger { display: block; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); display: none; }
  .links.open { display: flex; }
  .links a:not(.btn) { flex-direction: row; justify-content: space-between; padding: .85em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .links a.active { box-shadow: inset 3px 0 0 var(--accent); padding-left: .9em; }
  .links .btn { justify-content: center; margin: 12px 0 0; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ Sections ============ */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-link { text-decoration: none; display: block; transition: border-color .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-lg); }
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: var(--tint); color: var(--navy); }
.icon svg { width: 22px; height: 22px; }

/* ============ Accueil : hero ============ */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: .92rem; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { width: 100%; }
.hero-media { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); min-height: 420px; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; }
/* aperçu de leçon (visuel par défaut) */
.preview { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-lg); }
.pv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pv-title { font-weight: 700; font-size: 1.15rem; }
.pv-words { margin: 18px 0; border-top: 1px solid var(--line); }
.pv-word { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pv-word .muted { font-size: .82rem; }
.pv-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.pv-ic svg { width: 14px; height: 14px; }
.pv-prog { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-media { min-height: 380px; } }

/* bande de chiffres */
.stats-band { padding: 36px 0; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ============ Étapes / niveaux ============ */
.step-num { font-weight: 800; font-size: .9rem; color: var(--accent); margin-bottom: 10px; letter-spacing: .05em; }
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level { position: relative; border-top: 4px solid var(--navy); }
.level.a2 { border-top-color: #5b7fb5; }
.level.b1 { border-top-color: var(--accent); }
.level .tag { font-weight: 800; font-size: 2rem; letter-spacing: -.02em; margin-bottom: 6px; }
.level p { margin: 0; }
.level .soon { position: absolute; top: 18px; right: 18px; background: var(--bg-alt); color: var(--muted); padding: .2em .7em; border-radius: 6px; font-size: .72rem; font-weight: 600; }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; } }

/* ============ À propos ============ */
.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--tint); position: relative; border: 1px solid var(--line); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait .initial { font-size: 6rem; font-weight: 800; color: var(--navy); opacity: .25; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 280px; } }

/* ============ Tarifs ============ */
.price { position: relative; display: flex; flex-direction: column; }
.price.hl { border: 2px solid var(--navy); }
.price .badge { position: absolute; top: -12px; left: 24px; background: var(--navy); color: var(--bg); font-size: .72rem; font-weight: 600; padding: .3em .8em; border-radius: 6px; }
.price .amount { font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em; margin: 12px 0 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price li { padding: .45em 0 .45em 1.5em; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.price li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price .btn { justify-content: center; }
.interac { text-align: center; margin-top: 28px; color: var(--muted); font-size: .92rem; }

/* ============ CTA ============ */
.cta-band { background: #0f2744; color: #fff; border-radius: 16px; padding: 56px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cfe2; }

/* ============ En-tête de page ============ */
.page-head { padding: 56px 0 28px; }
.page-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.page { padding-top: 0; }

/* ============ Leçons ============ */
.filters { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: var(--surface); padding: .45em 1em; border-radius: 8px; cursor: pointer; font: 500 .9rem var(--font); color: var(--ink-soft); }
.filter.on { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.lesson-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lesson-card .num { font-weight: 800; font-size: 1.5rem; color: var(--line); letter-spacing: -.02em; }
.card-link:hover .num { color: var(--accent); }
.lvl { font-size: .72rem; font-weight: 600; padding: .25em .6em; border-radius: 6px; background: var(--tint); color: var(--navy); }
.lesson-card h3 { margin-bottom: .2em; }
.lesson-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.done-badge { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.done-badge svg { width: 14px; height: 14px; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.lesson-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.lesson-aside { position: sticky; top: 92px; font-size: .92rem; }
.lesson-aside ol { padding-left: 1.2em; margin: 10px 0 0; }
.lesson-aside li { margin: .35em 0; color: var(--muted); }
.lesson-aside a { text-decoration: none; color: var(--ink-soft); }
.lesson-aside a:hover { color: var(--accent); }
@media (max-width: 900px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-aside { position: static; order: -1; } }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.goals { background: var(--bg-alt); border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; padding: 18px 22px; margin-bottom: 36px; }
.goals ul { margin: .4em 0 0; padding-left: 1.2em; }
.block { margin-bottom: 44px; scroll-margin-top: 92px; }
.block h2 { font-size: 1.45rem; }
.block h2 .en { font-size: .95rem; font-weight: 400; margin-left: .4em; letter-spacing: 0; }
.conj { border-collapse: collapse; margin: 8px 0 16px; width: 100%; max-width: 480px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.conj td { padding: .55em 1em; border-bottom: 1px solid var(--line); }
.conj tr:last-child td { border-bottom: 0; }
.conj td:last-child { color: var(--muted); }
.tip { background: var(--tint); border-radius: 10px; padding: 18px 22px; display: flex; gap: 14px; color: var(--ink-soft); }
.tip-ic { color: var(--navy); padding-top: 2px; }
.further { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; }
.further ul { margin: 10px 0 8px; padding-left: 18px; }
.further li { margin: 6px 0; }
.further a { font-weight: 600; }

.vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.word { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .2s; }
.word:hover { border-color: var(--ink-soft); }
.word .fr { font-weight: 600; display: block; }
.word .tr { font-size: .85rem; color: var(--muted); }
.speak { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); }
.speak svg { width: 15px; height: 15px; }
.word.playing .speak { background: var(--navy); color: var(--bg); }

.dialogue { display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; gap: 12px; align-items: flex-end; max-width: 85%; }
.line.right { align-self: flex-end; flex-direction: row-reverse; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--navy); background: var(--tint); font-size: .85rem; }
.line.right .avatar { background: var(--navy); color: var(--bg); }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 10px 16px; cursor: pointer; }
.msg:hover { border-color: var(--ink-soft); }
.msg.playing { border-color: var(--navy); }
.line.right .msg { border-radius: 12px 12px 3px 12px; background: var(--bg-alt); }
.msg .who { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.msg .tr { font-size: .85rem; color: var(--muted); }

.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-soft); }
.video-placeholder .play { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--bg); display: grid; place-items: center; margin: 0 auto 12px; }
.video-placeholder a { color: var(--navy); font-weight: 600; }

.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* ============ Exercices ============ */
.ex-wrap { display: flex; flex-direction: column; gap: 16px; }
.ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.ex-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.ex-type { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ex-q { font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
.options { display: grid; gap: 8px; }
.opt { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .75em 1em; font: 500 .98rem var(--font); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover:not(:disabled) { border-color: var(--ink-soft); background: var(--bg-alt); }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt:disabled { cursor: default; }
.fill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 500; }
.fill-row input { font: 600 1rem var(--font); padding: .5em .8em; border: 1px solid var(--line); border-radius: 8px; width: 170px; background: var(--surface); color: var(--ink); }
.fill-row input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.fill-row input.correct { border-color: var(--ok); background: var(--ok-bg); }
.fill-row input.wrong { border-color: var(--bad); background: var(--bad-bg); }
.feedback { margin-top: 12px; font-weight: 500; min-height: 1.4em; font-size: .95rem; }
.feedback.ok { color: var(--ok); } .feedback.ko { color: var(--bad); }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .col { display: flex; flex-direction: column; gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .7em 1em; font: 500 .95rem var(--font); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, opacity .3s; }
.tile:hover:not(:disabled) { border-color: var(--ink-soft); }
.tile.sel { border-color: var(--navy); background: var(--tint); }
.tile.matched { border-color: var(--ok); background: var(--ok-bg); cursor: default; opacity: .7; }
.scorebar { position: sticky; bottom: 16px; z-index: 5; margin-top: 20px; background: #0f2744; color: #fff; border-radius: 12px; padding: 14px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.progress { flex: 1; min-width: 120px; height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.progress.light { background: var(--bg-alt); }
.progress > div { height: 100%; width: 0; background: #4caf7d; border-radius: 999px; transition: width .5s cubic-bezier(.22,1,.36,1); }
.scorebar .btn { padding: .45em .9em; font-size: .85rem; }

/* ============ Direct / contact ============ */
.schedule { width: 100%; border-collapse: collapse; background: var(--surface); }
.schedule th, .schedule td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.schedule tr:last-child td { border-bottom: 0; }
.schedule th { background: var(--bg-alt); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.form { display: grid; gap: 14px; }
.form label { font-weight: 500; font-size: .88rem; display: grid; gap: 6px; color: var(--ink-soft); }
.form input, .form select, .form textarea { font: 1rem var(--font); padding: .7em .85em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.contact-card { display: flex; align-items: center; gap: 16px; }

/* ============ Pied de page ============ */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 24px; }
.footer .logo { margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.footer-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ============ Disponibilités ============ */
.avail { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 40px; }
.avail h2 { font-size: 1.5rem; margin-bottom: .2em; }

/* ============ Examens ============ */
.exam-card { border-top: 4px solid var(--accent); }
.exam-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.exam-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.exam-kind svg { width: 16px; height: 16px; }
.exam-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.fail-badge { color: var(--bad); font-weight: 600; }
.exam-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.exam-facts div { display: flex; flex-direction: column; }
.exam-facts b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.exam-facts span { color: var(--muted); font-size: .85rem; }
.exam-intro ul { padding-left: 1.2em; margin: 0 0 22px; font-size: .95rem; }
.exam-intro .form { max-width: 360px; }
.exam-bar { position: sticky; top: 76px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; margin-bottom: 16px; box-shadow: var(--shadow); font-size: .92rem; }
.timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.timer.low { color: var(--bad); }
.opt.chosen { border-color: var(--navy); background: var(--tint); }
.match-select { display: grid; gap: 10px; }
.match-select label { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; }
.match-select select { font: 1rem var(--font); padding: .55em .7em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.match-select select.correct { border-color: var(--ok); background: var(--ok-bg); }
.match-select select.wrong { border-color: var(--bad); background: var(--bad-bg); }
.exam-submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.exam-result { text-align: center; margin-bottom: 20px; padding: 36px 24px; }
.exam-result.pass { border-top: 4px solid var(--ok); }
.exam-result.fail { border-top: 4px solid var(--bad); }
.exam-score { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.exam-result.pass .exam-score { color: var(--ok); }
.exam-result.fail .exam-score { color: var(--bad); }

/* ============ Connexion / espace élève ============ */
.auth-page { display: grid; place-items: center; padding: 64px 0 96px; }
.auth-card { width: min(440px, 100%); padding: 32px; }
.auth-card h1 { font-size: 2rem; }
.notice { background: var(--tint); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; font-size: .92rem; color: var(--ink-soft); }
.notice.good { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice p { margin: .6em 0 0; }
[hidden] { display: none !important; }

/* ============ Tableau de bord ============ */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { text-decoration: none; padding: .7em 1.1em; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-sub { margin: 32px 0 14px; font-size: 1.05rem; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.class-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.class-card .kind { font-size: .78rem; color: var(--muted); }
.class-card .names { margin: 0 0 14px; padding-left: 1.1em; font-size: .92rem; }
.link, .link-danger { background: none; border: 0; padding: 0; font: 500 .85rem var(--font); cursor: pointer; text-decoration: underline; color: var(--navy); }
.link-danger { color: var(--bad); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { background: var(--bg-alt); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.data.compact td { padding: 8px 12px; }
table.data .answer { color: var(--ok); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--tint); color: var(--navy); border-radius: 6px; padding: .15em .3em .15em .6em; font-size: .8rem; font-weight: 500; }
.chip button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 .2em; }
.chip button:hover { color: var(--bad); }
select.mini { font: .82rem var(--font); padding: .3em .4em; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); }
.status { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15em .6em; border-radius: 6px; }
.status.on { background: var(--ok-bg); color: var(--ok); }
.status.off { background: var(--bad-bg); color: var(--bad); }
.score { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1em .5em; border-radius: 6px; }
.score.pass { background: var(--ok-bg); color: var(--ok); }
.score.fail { background: var(--bad-bg); color: var(--bad); }
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filterbar select { font: .95rem var(--font); padding: .45em .6em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); margin-left: 6px; }
.creds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; color: var(--ink); }
details.acc { margin-bottom: 10px; padding: 0; }
details.acc summary { padding: 16px 20px; cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
details.acc[open] summary { border-bottom: 1px solid var(--line); }
details.acc > p, details.acc > table { margin: 12px 20px; width: calc(100% - 40px); }
code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.pay-stats { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
.nowrap { white-space: nowrap; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form label.check input { width: auto; }
.voice-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: #0f2744; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }

/* Correctif : les champs de formulaire ne dépassent plus de leur cadre */
.form label, .dash-grid > *, .grid > * { min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; }
.inline { align-items: stretch; }
.inline .btn { flex: none; }

/* ============ Entraînement libre ============ */
.practice-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .practice-levels { grid-template-columns: 1fr; } }
.practice-card { text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s; border-top: 4px solid var(--ok); }
.practice-card.lv1 { border-top-color: #d08a1e; }
.practice-card.lv2 { border-top-color: var(--bad); }
.practice-card:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-lg); }
.practice-card b { font-size: 1.15rem; }
.practice-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.practice-card .go svg { width: 16px; height: 16px; }
.dots { display: flex; gap: 4px; margin-bottom: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }

.modal { position: fixed; inset: 0; z-index: 150; background: rgba(8, 18, 36, .55); display: grid; place-items: start center; padding: 32px 16px; overflow-y: auto; }
.modal-box { width: min(760px, 100%); background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-head { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.modal-close { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.modal-close:hover { border-color: var(--ink-soft); }
.modal-body { padding: 20px 24px 24px; }

/* type « remettre dans l'ordre » */
.order-built { min-height: 52px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; background: var(--bg-alt); }
.order-built.correct { border: 1px solid var(--ok); background: var(--ok-bg); }
.order-built.wrong { border: 1px solid var(--bad); background: var(--bad-bg); }
.order-bank { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; margin-bottom: 12px; }
.order-built .tile, .order-bank .tile { padding: .45em .8em; }
.order-actions { display: flex; gap: 8px; }

/* ============ Page légale ============ */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .3em 0; }

/* ============ Inscriptions ============ */
.pay-info { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 18px 0; }
.pay-info h3 { margin-top: 0; }
.pay-info .steps-list li { margin-bottom: 12px; }
.pending { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pending-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; margin-bottom: 12px; border-left: 4px solid #d08a1e; }
.pending-info > div { margin-top: 4px; }
.pending-form { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; align-items: end; }
.pending-form label { font-size: .8rem; font-weight: 500; display: grid; gap: 4px; color: var(--ink-soft); min-width: 0; }
.pending-form select, .pending-form input { font: .92rem var(--font); padding: .5em .6em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
.pending-actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
@media (max-width: 800px) { .pending-card { grid-template-columns: 1fr; } .pending-form { grid-template-columns: 1fr 1fr; } }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.form label.check { align-items: flex-start; } .form label.check input { margin-top: .3em; }

/* ============ Mon profil ============ */
.profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar.big { width: 48px; height: 48px; font-size: 1.2rem; background: var(--navy); color: var(--bg); }
.prow { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-top: 1px solid var(--line); }
.prow b { font-weight: 500; overflow-wrap: anywhere; }

/* ============ Faire cours (espace prof) ============ */
.teach-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.teach-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.teach-head { margin-bottom: 24px; }
.teach-head h2 { margin-bottom: 10px; }
.teach-summary { background: var(--tint); border-radius: 12px; padding: 18px 22px; }
.teach-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .teach-grid { grid-template-columns: 1fr; } }
.teach-aside { display: grid; gap: 16px; position: sticky; top: 90px; }
@media (max-width: 1000px) { .teach-aside { position: static; } }
.teach-aside h3 { margin-bottom: 2px; }
.teach-step { margin-bottom: 16px; }
.teach-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.teach-step-head h3 { margin: 0; flex: 1; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.chip-min { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg-alt); padding: .2em .6em; border-radius: 6px; }
.say-list { display: grid; gap: 4px; }
.say { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.say:first-child { border-top: 0; }
.say-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--navy); display: grid; place-items: center; cursor: pointer; margin-top: 2px; }
.say-play:hover { border-color: var(--navy); }
.say-play svg { width: 15px; height: 15px; }
.say-en { font-size: 1.12rem; font-weight: 600; line-height: 1.45; }
.say-en.big { font-size: 1.2rem; font-weight: 500; }
.say-fr { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.hide-fr .fr-tr { display: none; }
.teach-sub { margin: 14px 0 6px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.ask-list, .tip-list { margin: 0; padding-left: 1.1em; }
.ask-list li, .tip-list li { margin: .35em 0; }
.tip-list li { color: var(--ink-soft); }
.voc-list { list-style: none; padding: 0; margin: 8px 0 0; }
.voc-list li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.voc-list li:first-child { border-top: 0; }
.teach-classroom { margin-top: 24px; }
.teach-classroom .say-list { padding: 4px 20px 16px; }
.teach-classroom > .teach-sub, .teach-classroom > .tip-list { margin-left: 20px; margin-right: 20px; }
.teach-classroom > .tip-list:last-child { padding-bottom: 16px; }
.teach-aside .say-en { font-size: .95rem; }
.mfa-qr { background: #fff; display: inline-block; padding: 10px; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0 12px; }

/* ============ Contenu verrouillé ============ */
.lesson-card.locked, .exam-card.locked, .card.locked { opacity: .6; }
.lesson-card.locked:hover { opacity: .8; }
.lock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lock-badge svg { width: 14px; height: 14px; }
.lock-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.lock-banner svg { width: 18px; height: 18px; flex: none; color: var(--navy); }
.lock-banner span { flex: 1; min-width: 220px; }
.locked-card { text-align: center; }
.lock-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; margin: 0 auto 14px; }
.lock-ic svg { width: 26px; height: 26px; }

.pay-choice { margin: 8px 0 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pay-choice .btn { margin-top: 6px; }
.pending-form { grid-template-columns: 1.3fr .9fr .7fr 1fr; }

.g5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Photo du prof : affichée en entier, sans recadrage */
.portrait:has(img) { aspect-ratio: auto; max-width: 300px; justify-self: center; background: var(--bg-alt); }
.portrait:has(img) .fallback { display: none; }
.portrait img { position: relative; inset: auto; width: 100%; height: auto; object-fit: contain; }

/* ============ Photos des leçons ============ */
.lesson-photo { margin: -24px -24px 18px; aspect-ratio: 12/7; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-alt); }
.lesson-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card-link:hover .lesson-photo img { transform: scale(1.04); }
.lesson-card.locked .lesson-photo img { filter: grayscale(1); }

/* ============ Inscription : assistant étape par étape ============ */
.wiz-wrap { max-width: 760px; }
.wiz-head { max-width: 760px; }
.wiz-progress { margin-bottom: 18px; }
.wiz-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 20%; background: var(--navy); border-radius: 99px; transition: width .35s ease; }
.wiz-steps { list-style: none; display: flex; justify-content: space-between; gap: 6px; margin: 10px 0 0; padding: 0; font-size: .8rem; color: var(--muted); }
.wiz-steps li.on { color: var(--navy); font-weight: 700; }
.wiz-steps li.done { color: var(--ink-soft); }
.wiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.wiz-card h2 { font-size: 1.5rem; margin: 0 0 18px; }
.wiz-card h2 small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.wiz-grid { display: grid; gap: 12px; margin-bottom: 18px; }
.wiz-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wiz-choice { position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wiz-choice:hover { border-color: var(--navy); transform: translateY(-2px); }
.wiz-choice.on { border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.wiz-choice b { font-size: 1.05rem; }
.wiz-choice b em { font-style: normal; color: var(--accent); margin-left: 6px; }
.wiz-choice span:not(.badge):not(.lvl) { color: var(--muted); font-size: .9rem; }
.wiz-choice .badge { align-self: flex-start; margin-bottom: 4px; background: var(--navy); color: var(--bg); font-size: .72rem; font-weight: 600; padding: .3em .8em; border-radius: 6px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.wiz-nav .btn-primary:only-child { margin-left: auto; }
.wiz-other { margin-top: 14px; }
.wiz-other summary { cursor: pointer; color: var(--ink-soft); font-size: .92rem; }
.wiz-other textarea { width: 100%; margin-top: 8px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.wiz-recap { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 18px; }
.wiz-recap dt { color: var(--muted); }
.wiz-recap dd { margin: 0; }
.wiz-card label.form { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.wiz-card label.form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }

/* Grille des créneaux (élèves et enseignants) */
.slot-scroll { border: none; }
.slot-grid { border-collapse: separate; border-spacing: 4px; margin: 0 auto; }
.slot-grid th { font-size: .78rem; font-weight: 600; color: var(--ink-soft); padding: 2px 4px; text-align: center; }
.slot-grid th small { display: block; font-weight: 400; color: var(--muted); }
.slot-grid tbody th { text-align: right; white-space: nowrap; }
.slot-grid td { padding: 0; }
.slot { display: block; width: 44px; height: 30px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; }
.slot:hover { border-color: var(--navy); }
.slot.on { background: var(--navy); border-color: var(--navy); }
.slot.off { background: var(--bg-alt); border-style: dashed; cursor: default; }
.slot-grid.edit .slot:not(.on) { background: var(--surface); }

.resend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }

@media (max-width: 640px) {
  .wiz-grid.g2 { grid-template-columns: 1fr; }
  .wiz-card { padding: 20px 16px; }
  .wiz-steps { font-size: .7rem; }
  .slot { width: 34px; height: 28px; }
}
.wiz-wrap .auth-card { max-width: none; margin: 0; }

/* ============ Tableau de bord : paiement en un clic, classes ============ */
.accept-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; }
.accept-btn { white-space: normal; text-align: left; }
.accept-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.accept-opts label { font-size: .78rem; color: var(--ink-soft); display: grid; gap: 3px; }
.accept-opts input, .accept-opts select { font: .88rem var(--font); padding: .35em .5em; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); width: 130px; }
.accept-opts input { width: 80px; }
.class-teacher { display: flex; align-items: center; gap: 6px; margin: -4px 0 6px; }
.class-card .add-student { margin: 4px 0 12px; display: block; }
.t-students { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.t-students li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .92rem; }

/* ============ Entraînement plein écran (50 exercices, 10 par page) ============ */
.modal.practice-full { padding: 0; display: flex; overflow: hidden; }
.practice-full .modal-box { width: 100%; height: 100%; max-width: none; border-radius: 0; display: flex; flex-direction: column; }
.practice-full .modal-head { border-radius: 0; padding: 16px max(24px, calc((100% - 860px) / 2)); }
.pr-head-right { display: flex; align-items: center; gap: 14px; }
.pr-count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pr-bar { height: 4px; background: var(--line); flex: none; }
.pr-bar span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s ease; }
.practice-full .modal-body { flex: 1; overflow-y: auto; padding: 24px max(24px, calc((100% - 860px) / 2)) 32px; display: flex; flex-direction: column; gap: 14px; }
.pr-page { margin: 0; }
.pr-tools { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pr-listen { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--navy); border: 0; border-radius: 99px; padding: .45em 1em; font: 600 .85rem var(--font); cursor: pointer; }
.pr-listen svg { width: 16px; height: 16px; }
.pr-listen:hover, .pr-listen.playing { background: var(--navy); color: var(--bg); }
.pr-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px max(24px, calc((100% - 860px) / 2)); border-top: 1px solid var(--line); background: var(--bg); }
.pr-result { text-align: center; padding: 18px 0 6px; }
.pr-result.pass .exam-score { color: var(--ok); }
.pr-result.fail .exam-score { color: var(--bad); }
.pr-review { display: grid; gap: 10px; }
.pr-miss { border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; padding: 12px 14px; background: var(--surface); display: grid; gap: 4px; }
.pr-miss.nearly { border-left-color: #d08a1e; }
.pr-yours { color: var(--bad); font-size: .95rem; }
.pr-miss.nearly .pr-yours { color: #9a6514; }
.pr-good { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; }
@media (max-width: 640px) { .pr-count { display: none; } .pr-foot .muted { display: none; } }

/* ============ Cartes avec photo en fond (page Exercices) ============ */
.bg-card { position: relative; overflow: hidden; isolation: isolate; min-height: 210px; }
.bg-card .bg-img { position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; transition: transform .5s ease; }
.bg-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 62%, transparent) 0%, color-mix(in srgb, var(--surface) 90%, transparent) 55%, var(--surface) 100%); }
.bg-card:hover .bg-img { transform: scale(1.05); }
.bg-card .num { color: var(--navy); opacity: .55; }
.bg-card .lvl { background: var(--surface); }
.bg-card.locked .bg-img { filter: grayscale(1); }
.price .amount-2 { margin-top: 10px; padding: 8px 10px; background: var(--tint); border-radius: 8px; font-size: .9rem; color: var(--ink-soft); }
.price .amount-2 b { color: var(--ink); font-size: 1.05rem; }
.save { display: inline-block; margin-left: 4px; padding: .1em .45em; border-radius: 6px; background: var(--ok); color: #fff; font-size: .75rem; font-weight: 700; }

/* ============ Exercices : correction à la fin ============ */
.tile[data-pair] { border-width: 2px; color: #0f1f3a; }
.tile[data-pair="0"] { border-color: #2f5bd3; background: #eaf0ff; }
.tile[data-pair="1"] { border-color: #b8860b; background: #fff6e0; }
.tile[data-pair="2"] { border-color: #7b3fbf; background: #f3ebfc; }
.tile[data-pair="3"] { border-color: #0f8a8a; background: #e5f6f6; }
.tile[data-pair="4"] { border-color: #c2410c; background: #fff0e8; }
.tile[data-pair="5"] { border-color: #4d7c0f; background: #eef7e2; }
.tile.bad { border-color: var(--bad); background: var(--bad-bg); }
.tile.matched, .tile.bad { color: var(--ink); }
.scorebar .ex-finish { margin-left: auto; background: #fff; color: #0f2744; border: 0; font-weight: 700; }
.scorebar .ex-finish:hover { background: var(--tint); }
.wiz-pref { margin-top: 14px; } .wiz-pref textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; }

/* ============ Aide : pas de voix française ============ */
.voice-help { position: fixed; z-index: 300; top: 84px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 16px 52px 14px 18px; font-size: .92rem; }
.voice-help p { margin: 6px 0 4px; color: var(--ink-soft); }
.voice-help ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.voice-help .modal-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; }

/* Petit rappel en français à côté d'un titre anglais (avant l'inscription à un cours) */
.fr-hint { font-size: .55em; font-weight: 500; font-style: italic; color: var(--muted); letter-spacing: 0; margin-left: .35em; white-space: nowrap; }
h3 .fr-hint, b .fr-hint { font-size: .8em; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.pay-amount span { color: var(--ink-soft); }
.pay-amount b { font-size: 1.6rem; letter-spacing: -.02em; }

/* =============================================================
   Fonds : paysages du Canada + dégradés rouge et blanc + feuille d'érable
   (photos : Wikimedia Commons, voir assets/img/bg/credits.json)
   ============================================================= */
:root { --flag: #d52b1e; --veil: var(--bg); }
main { overflow-x: clip; }

/* Bande « drapeau » rouge-blanc-rouge */
.flag-bar { height: 5px; background: linear-gradient(90deg, var(--flag) 0 22%, #fff 22% 78%, var(--flag) 78%); box-shadow: 0 0 0 1px var(--line) inset; }

/* Accueil : Toronto en fond, voile clair à gauche pour garder le texte lisible */
.hero { position: relative; isolation: isolate; border-bottom: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/img/bg/hero.jpg") center 60% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--veil) 0%, color-mix(in srgb, var(--veil) 94%, transparent) 38%, color-mix(in srgb, var(--veil) 62%, transparent) 70%, color-mix(in srgb, var(--veil) 35%, transparent) 100%),
    linear-gradient(0deg, var(--veil) 0%, transparent 28%); }
.hero + .flag-bar, .hero-flag { display: block; }

/* Feuille d'érable en filigrane (sections et en-têtes) */
.maple-mark { position: relative; isolation: isolate; }
.maple-mark::before { content: ""; position: absolute; z-index: -1; width: min(420px, 60vw); aspect-ratio: 1; right: -60px; top: 40px;
  background: url("../assets/img/maple.svg") center / contain no-repeat; opacity: .055; transform: rotate(-12deg); pointer-events: none; }
.maple-mark.left::before { right: auto; left: -80px; transform: rotate(14deg); }

/* Section « parcours » : Rocheuses très adoucies */
.bg-rockies { position: relative; isolation: isolate; background: none; }
.bg-rockies::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/img/bg/ecriture.jpg") center 35% / cover no-repeat; }
.bg-rockies::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--veil) 0%, color-mix(in srgb, var(--veil) 86%, transparent) 30%, color-mix(in srgb, var(--veil) 80%, transparent) 70%, var(--veil) 100%); }

/* Tarifs : dégradé rouge et blanc du drapeau, très doux */
.bg-flag { position: relative; isolation: isolate;
  background:
    radial-gradient(60% 80% at 0% 50%, color-mix(in srgb, var(--flag) 10%, transparent) 0%, transparent 70%),
    radial-gradient(60% 80% at 100% 50%, color-mix(in srgb, var(--flag) 10%, transparent) 0%, transparent 70%),
    var(--bg-alt); }
.bg-flag::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(560px, 90vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("../assets/img/maple.svg") center / contain no-repeat; opacity: .05; pointer-events: none; }

/* Bandeau final : feuilles d'érable en automne sous un voile bleu nuit */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: #0f2744; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/img/bg/cafe.jpg") center / cover no-repeat; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(15, 39, 68, .93) 0%, rgba(15, 39, 68, .80) 55%, rgba(120, 22, 18, .72) 100%); }

/* En-têtes des autres pages : bande pleine largeur, dégradé + feuille d'érable */
.page-head { position: relative; isolation: isolate; }
.page-head:not(.auth-page)::before { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw;
  background:
    radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--flag) 9%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.page-head:not(.auth-page)::after { content: ""; position: absolute; z-index: -1; right: -30px; top: 18px; width: 230px; aspect-ratio: 1;
  background: url("../assets/img/maple.svg") center / contain no-repeat; opacity: .08; transform: rotate(-10deg); pointer-events: none; }

/* Connexion / création de compte / paiement : bureau d'étude en fond, très voilé */
.auth-page::before { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw;
  background: url("../assets/img/bg/etude.jpg") center / cover no-repeat; }
.auth-page::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw;
  background: linear-gradient(180deg, color-mix(in srgb, var(--veil) 70%, transparent) 0%, color-mix(in srgb, var(--veil) 82%, transparent) 60%, var(--veil) 100%); }
.auth-page .auth-card { box-shadow: var(--shadow-lg); }

@media (max-width: 800px) {
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--veil) 90%, transparent) 0%, color-mix(in srgb, var(--veil) 95%, transparent) 60%, var(--veil) 100%); }
  .page-head:not(.auth-page)::after { width: 150px; opacity: .06; }
}

/* =============================================================
   Fonds plus visibles + une photo par page (en-têtes)
   ============================================================= */
/* Accueil : Toronto plus présent */
.hero::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--veil) 92%, transparent) 0%, color-mix(in srgb, var(--veil) 78%, transparent) 36%, color-mix(in srgb, var(--veil) 28%, transparent) 68%, transparent 100%),
    linear-gradient(0deg, var(--veil) 0%, transparent 18%);
}
/* Rocheuses : moins voilées */
.bg-rockies::after {
  background: linear-gradient(180deg, var(--veil) 0%, color-mix(in srgb, var(--veil) 62%, transparent) 22%, color-mix(in srgb, var(--veil) 55%, transparent) 78%, var(--veil) 100%);
}
/* Bandeau final : on voit mieux les érables */
.cta-band::after { background: linear-gradient(120deg, rgba(15, 39, 68, .86) 0%, rgba(15, 39, 68, .62) 55%, rgba(140, 24, 18, .50) 100%); }
/* Connexion : Québec plus visible */
.auth-page::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--veil) 35%, transparent) 0%, color-mix(in srgb, var(--veil) 50%, transparent) 65%, var(--veil) 100%);
}

/* En-têtes des pages : photo à droite, texte lisible à gauche */
.page-head:not(.auth-page)::before {
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--veil) 94%, transparent) 0%, color-mix(in srgb, var(--veil) 82%, transparent) 38%, color-mix(in srgb, var(--veil) 30%, transparent) 72%, color-mix(in srgb, var(--veil) 8%, transparent) 100%),
    linear-gradient(0deg, var(--veil) 0%, transparent 35%),
    var(--head-photo, url("../assets/img/bg/bureau.jpg"));
  background-size: cover; background-position: center 45%; background-repeat: no-repeat;
}
.page-head:not(.auth-page)::after { opacity: .0; }
.page-head:not(.auth-page) { padding-bottom: 44px; }
main[data-route="lecons"]    { --head-photo: url("../assets/img/bg/livre.jpg"); }
main[data-route="exercices"] { --head-photo: url("../assets/img/bg/cahier.jpg"); }
main[data-route="videos"]    { --head-photo: url("../assets/img/bg/ordinateur.jpg"); }
main[data-route="examens"]   { --head-photo: url("../assets/img/bg/bibliotheque.jpg"); }
main[data-route="direct"]    { --head-photo: url("../assets/img/bg/ecriture.jpg"); }
main[data-route="contact"]   { --head-photo: url("../assets/img/bg/cafe.jpg"); }
main[data-route="confidentialite"] { --head-photo: url("../assets/img/bg/bibliotheque.jpg"); }
@media (max-width: 800px) {
  .page-head:not(.auth-page)::before { background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--veil) 80%, transparent) 0%, color-mix(in srgb, var(--veil) 90%, transparent) 100%),
    var(--head-photo, url("../assets/img/bg/bureau.jpg")); }
}

/* =============================================================
   Photos « vraiment en fond » : toute la zone, voile uniforme léger (pas d'effacement)
   ============================================================= */
:root { --photo-veil: color-mix(in srgb, var(--veil) 60%, transparent); }
.hero::after { background: var(--photo-veil); }
.bg-rockies::after { background: color-mix(in srgb, var(--veil) 55%, transparent); }
.auth-page::after { background: color-mix(in srgb, var(--veil) 30%, transparent); }
.page-head:not(.auth-page)::before,
.page-head:not(.auth-page)::before {
  background-image: linear-gradient(var(--photo-veil), var(--photo-veil)), var(--head-photo, url("../assets/img/bg/bureau.jpg"));
}
@media (max-width: 800px) {
  .hero::after { background: color-mix(in srgb, var(--veil) 70%, transparent); }
  .page-head:not(.auth-page)::before { background-image: linear-gradient(color-mix(in srgb, var(--veil) 68%, transparent), color-mix(in srgb, var(--veil) 68%, transparent)), var(--head-photo, url("../assets/img/bg/bureau.jpg")); }
}
/* Petit relief sur les textes posés sur une photo */
.hero h1, .page-head:not(.auth-page) h1 { text-shadow: 0 1px 12px color-mix(in srgb, var(--veil) 70%, transparent); }
.hero .lead, .page-head:not(.auth-page) p { color: var(--ink); }
.sched-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sched-actions { display: flex; gap: 8px; }
.sched-dirty { color: var(--accent); }
/* Petits textes posés sur une photo : pastille claire pour rester lisibles */
.hero .checks li { background: color-mix(in srgb, var(--veil) 82%, transparent); border-radius: 6px; padding: 2px 8px; color: var(--ink); }
.bg-rockies .section-head p, .bg-rockies .eyebrow { display: inline-block; background: color-mix(in srgb, var(--veil) 82%, transparent); border-radius: 6px; padding: 2px 8px; color: var(--ink); }
.bg-rockies .section-head h2 { text-shadow: 0 1px 14px color-mix(in srgb, var(--veil) 80%, transparent); }

/* =============================================================
   Photo en fond de TOUTE la page (fixe pendant le défilement), sauf l'accueil
   ============================================================= */
main:not([data-route="accueil"])::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--page-veil, color-mix(in srgb, var(--veil) 70%, transparent)), var(--page-veil, color-mix(in srgb, var(--veil) 70%, transparent))),
    var(--head-photo, url("../assets/img/bg/bureau.jpg"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* l'en-tête ne porte plus sa propre photo : c'est la page entière qui l'a */
.page-head:not(.auth-page)::before, .page-head:not(.auth-page)::after,
.auth-page::before, .auth-page::after { content: none; }
/* pages de lecture longue : voile un peu plus fort pour le confort */
main[data-route="lecons"][data-reading], main[data-route="exercices"][data-reading], main[data-route="examens"][data-reading] { --page-veil: color-mix(in srgb, var(--veil) 86%, transparent); }
/* connexion, création de compte, inscription, paiement : Québec */
main[data-route="connexion"], main[data-route="inscription"], main[data-route="inscription-cours"] { --head-photo: url("../assets/img/bg/etude.jpg"); }
main[data-route="mon-espace"], main[data-route="securite"] { --head-photo: url("../assets/img/bg/bureau.jpg"); }
main[data-route="prof"], main[data-route="enseignant"] { --head-photo: url("../assets/img/bg/bibliotheque.jpg"); --page-veil: color-mix(in srgb, var(--veil) 82%, transparent); }
/* textes posés directement sur la photo */
main:not([data-route="accueil"]) .page-head p, main:not([data-route="accueil"]) .muted { color: var(--ink-soft); }
main:not([data-route="accueil"]) .tabs { background: color-mix(in srgb, var(--veil) 80%, transparent); border-radius: 10px 10px 0 0; }
.footer { position: relative; }
@media (max-width: 800px) { main:not([data-route="accueil"])::before { --page-veil: color-mix(in srgb, var(--veil) 78%, transparent); } }

/* ============ Vocabulaire en images ============ */
.vocab-theme { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vocab-theme .vocab-cover { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.vocab-theme .vocab-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vocab-theme h3 { margin: 16px 20px 0; }
.vocab-theme .meta { display: flex; justify-content: space-between; align-items: center; margin: auto 20px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.vocab-theme.locked img { filter: grayscale(1); }
.vocab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vocab-card { padding: 0; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.vocab-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vocab-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vocab-card .vocab-word { display: flex; align-items: center; gap: 6px; padding: 12px 14px 2px; font-size: 1.08rem; }
.vocab-card .vocab-word .speak svg { width: 16px; height: 16px; color: var(--navy); }
.vocab-card > .muted { padding: 0 14px 14px; }
.vocab-card.playing { box-shadow: 0 0 0 3px var(--navy); }
.vocab-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Exercices avec images */
.pr-pic { display: block; width: min(320px, 100%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 0 0 14px; border: 1px solid var(--line); }
.pr-mini { float: right; width: 72px; height: 54px; object-fit: cover; border-radius: 6px; margin-left: 10px; }
.pic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pic-opt { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface); }
.pic-opt img, .pic-match img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pic-opt:hover { border-color: var(--line); }
.pic-opt.chosen { border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.pic-match { display: flex; flex-direction: column; gap: 6px; }
.pic-match img { border-radius: 8px; }
.pic-match select { font: .9rem var(--font); padding: .45em .5em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
@media (max-width: 800px) { .vocab-grid, .pic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
main[data-route="vocabulaire"] { --head-photo: url("../assets/img/bg/livre.jpg"); }
.pr-listen.big { font-size: 1rem; padding: .7em 1.3em; margin-bottom: 12px; }

/* ============ Nos profs : cartes de présentation ============ */
.teacher-list { display: grid; gap: 18px; }
.teacher-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: left; }
.teacher-photo { width: 150px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.teacher-photo span { font-size: 3rem; font-weight: 800; color: var(--navy); }
.teacher-body h3 { margin: 4px 0 2px; font-size: 1.35rem; }
.teacher-headline { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.teacher-body p { margin: 0 0 10px; color: var(--ink-soft); white-space: pre-line; }
/* dans l'inscription : la carte entière est un bouton */
.wiz-teachers { display: grid; gap: 14px; margin-bottom: 18px; }
.wiz-teacher { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; border-radius: var(--radius); }
.wiz-teacher .teacher-card { grid-template-columns: 110px 1fr; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wiz-teacher .teacher-photo { width: 110px; }
.wiz-teacher:hover .teacher-card { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.wiz-teacher-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 640px) {
  .teacher-card, .wiz-teacher .teacher-card { grid-template-columns: 1fr; }
  .teacher-photo, .wiz-teacher .teacher-photo { width: 120px; }
}

/* Offre de bienvenue (groupe, 2 premiers mois) */
.price .amount s { font-size: 1.2rem; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.price .intro-offer { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 8px; font-size: .88rem; color: var(--ink); background: var(--bg); }
.price .intro-offer b { color: var(--accent); }
.wiz-choice s { font-weight: 500; font-size: .85em; }

/* Accès payé : date de fin + renouvellement */
.access-card { margin: 16px 0 0; border-left: 4px solid var(--ok); }
.access-card h3 { margin: 0 0 6px; }
.access-card.soon { border-left-color: #d98e04; }
.access-card.expired { border-left-color: var(--accent); }
.access-card .renew-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.auth-card-wrap { max-width: 640px; margin: 0 auto; }
.access-tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15em .55em; border-radius: 6px; background: var(--tint); }
.access-tag.ok { color: var(--ok); }
.access-tag.soon { color: #b06f00; }
.access-tag.off { color: var(--accent); }

/* « My class » (espace élève) et formulaire du lien (Espace enseignant) */
.live-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; border-left: 4px solid var(--navy); }
.live-card h3 { margin: 4px 0 6px; display: flex; align-items: center; gap: 8px; }
.live-card p { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.live-card p svg { width: 16px; height: 16px; }
.live-form { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 8px; background: var(--bg-alt); }
.live-form label { display: grid; gap: 4px; }
.live-form input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.live-form .btn { justify-self: start; }

/* FAQ (accueil) */
details.faq summary { list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ink-soft); }
details.faq[open] summary::after { content: "–"; }
details.faq > p { color: var(--ink-soft); }

/* Test de niveau */
.level-test { display: grid; gap: 14px; }
.lt-q { margin: 0; border: 1px solid var(--line); }
.lt-q legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; display: flex; gap: 10px; align-items: baseline; }
.lt-q legend + * { clear: both; }
.lt-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--tint); font-size: .8rem; font-weight: 700; }
.lt-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; clear: both; }
.lt-opts label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); }
.lt-opts label:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.level-test > .btn { justify-self: start; }
.lt-result h2 { margin: 6px 0 8px; }
.lt-scores { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.lt-scores div { flex: 1; min-width: 110px; padding: 12px; border-radius: 8px; background: var(--bg-alt); text-align: center; }
.lt-scores b { display: block; font-size: 1.4rem; }
.lt-scores span { font-size: .85rem; color: var(--ink-soft); }
.lt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Devoirs (élève et prof) */
.hw-card { margin: 16px 0 0; border-left: 4px solid var(--accent); }
.hw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hw-head h3 { margin: 0; }
.hw-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.hw-list li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.hw-card .hw-list li { justify-content: flex-start; }
.hw-list li.done { background: var(--ok-bg); }
.hw-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: var(--ok); }
.hw-list li.done .hw-check { border-color: var(--ok); }
.hw-check svg { width: 14px; height: 14px; }
.hw-late { color: var(--accent); font-weight: 600; }
.hw-box { margin: 12px 0; padding: 12px; border-radius: 8px; background: var(--bg-alt); }
.hw-form { display: grid; gap: 6px; margin-top: 10px; }
.hw-form select, .hw-form input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.hw-form .btn { justify-self: start; }

/* Certificat (espace élève) */
.cert-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; border-left: 4px solid #b8860b; }
.cert-card > div:nth-child(2) { flex: 1; min-width: 220px; }
.cert-card h3 { margin: 0 0 4px; }
.cert-card .icon { margin: 0; }

/* WhatsApp (contact) */
.contact-card .icon.wa { background: #e7f7ee; color: #128c4a; }

/* Application installable (Mon espace) */
.app-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; border-left: 4px solid var(--navy); }
.app-card > div:nth-child(2) { flex: 1; min-width: 220px; }
.app-card h3 { margin: 0 0 4px; }
.app-card .icon { margin: 0; }
.app-card .app-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Cartes de vocabulaire (révision espacée) */
.fc { max-width: 560px; margin: 0 auto; }
.fc-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fc-progress span { display: block; height: 100%; background: var(--navy); transition: width .3s; }
.fc-count { text-align: right; margin: 6px 0 12px; }
.fc-card { width: 100%; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; font: inherit; color: inherit; border: 1px solid var(--line); }
.fc-card.back { border-color: var(--navy); background: var(--tint); }
.fc-card.playing .speak { color: var(--accent); }
.fc-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.fc-word { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; line-height: 1.2; display: inline-flex; align-items: center; gap: 10px; }
.fc-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.fc-btns .btn { min-width: 160px; justify-content: center; }
.fc-link { margin: 16px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fc-home { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0; border-left: 4px solid var(--accent); }
.fc-home > div:nth-child(2) { flex: 1; min-width: 220px; }
.fc-home h3 { margin: 0 0 4px; }
.fc-home .icon { margin: 0; }
.fc .empty { background: var(--surface); border: 1px solid var(--line); border-style: solid; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Parloo : plus de feuille d'érable en filigrane (site ouvert à tous, pas seulement au Canada) */
.maple-mark::before, .bg-flag::before, .page-head:not(.auth-page)::after { content: none; }

/* Documents des enseignants (espace enseignant + My space) */
.doc-card { display: flex; flex-direction: column; gap: 6px; }
.doc-card h3 { margin: 4px 0 0; }
.doc-card p { margin: 0; }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doc-kind { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-soft); }
.doc-state { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.doc-state.shared { background: var(--ok-bg); color: var(--ok); }
.doc-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.doc-share { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); }
.doc-share .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.doc-share p { margin: 0; }
.doc-list-card .hw-list li { align-items: center; }
.doc-li-text { flex: 1; min-width: 0; }
.doc-list-card .doc-kind { min-width: 96px; text-align: center; }

/* =============================================================
   Écran d'ouverture (js/splash.js) — le P, puis le point rouge
   ============================================================= */
.splash { position: fixed; inset: 0; z-index: 9999; overflow: hidden; display: grid; place-items: center; background: var(--bg);
  animation: splash-safety 0s linear 4s forwards; } /* filet de sécurité si le script ne se lance pas */
.splash-mark { position: relative; width: 96px; height: 96px; color: var(--navy); }
.splash-mark > div { position: absolute; inset: 0; opacity: 0; }
.splash-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.splash-dot { transform-origin: 72.8% 65%; } /* le point grossit depuis son centre */
:root[data-theme="dark"] .splash-p text { fill: #0c1424; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .splash-p text { fill: #0c1424; } }
@keyframes splash-safety { to { opacity: 0; visibility: hidden; } }


/* =============================================================
   Devenir prof (#/devenir-prof)
   ============================================================= */
.join-perks { margin-bottom: 36px; }
.join-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 36px; align-items: start; }
.join-side h2 { font-size: 1.35rem; margin-top: 0; }
.join-checks { display: grid; gap: 10px; margin-bottom: 28px; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join-levels { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.join-levels legend { font-weight: 500; font-size: .88rem; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.form label.check a { color: inherit; }
.form label.check { align-items: flex-start; font-size: .85rem; }
.form label.check input { margin-top: 3px; }
.join-levels label.check { align-items: center; font-size: .95rem; }
.join-levels label.check input { margin-top: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.join-form .btn { justify-content: center; }
.join-done { text-align: center; padding: 20px 6px; }
.join-done .icon { margin: 0 auto 14px; background: var(--ok-bg); color: var(--ok); }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .join-perks { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; } .join-perks .card { padding: 14px 16px; } .join-perks .icon { width: 36px; height: 36px; margin-bottom: 8px; } .join-perks h3 { font-size: 1rem; } .join-perks p { font-size: .85rem; margin: 0; } }

/* =============================================================
   TÉLÉPHONE — allure « application » (≤ 640 px)
   Barre d'onglets en bas, en-têtes compacts, photos plus présentes.
   ============================================================= */
.tabbar, .m-hero, .links a.m-only { display: none; }
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.6; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .container { width: calc(100% - 28px); }
  section { padding: 44px 0; }
  .grid { gap: 12px; }
  .card { padding: 16px; border-radius: 14px; }
  .eyebrow { font-size: .7rem; margin-bottom: .5em; }

  /* en-tête du haut plus fin */
  .nav-inner { height: 56px; }
  .links { top: 56px; }
  .logo-mark { width: 26px; height: 26px; }

  /* titres de page compacts */
  .page-head { padding: 18px 0 16px; }
  .page-head:not(.auth-page) { padding-bottom: 18px; }
  .page-head p { font-size: .92rem; line-height: 1.5; margin: .2em 0 0; }
  .page-head .crumbs { font-size: .8rem; margin-bottom: 4px; }

  /* filtres de niveau : pastilles qui défilent */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
  .filter { border-radius: 999px; white-space: nowrap; padding: .4em .95em; font-size: .85rem; }

  /* cartes de leçon : la photo prend toute la carte, le texte par-dessus */
  .lesson-card:not(.bg-card) { position: relative; isolation: isolate; overflow: hidden; min-height: 176px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; border: 0; color: #fff; }
  .lesson-card:not(.bg-card) .lesson-photo { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; z-index: -2; border-radius: 0; }
  .lesson-card:not(.bg-card)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,18,36,.05) 0%, rgba(8,18,36,.35) 45%, rgba(8,18,36,.88) 100%); }
  .lesson-card:not(.bg-card) .top { position: absolute; top: 12px; left: 14px; right: 14px; margin: 0; }
  .lesson-card:not(.bg-card) .num { color: #fff; font-size: .8rem; background: rgba(8,18,36,.55); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
  .lesson-card:not(.bg-card) .lvl { background: rgba(255,255,255,.92); color: #0f2744; }
  .lesson-card:not(.bg-card) h3 { color: #fff; font-size: 1.08rem; margin: 0; }
  .lesson-card:not(.bg-card) .en { color: rgba(255,255,255,.85); font-size: .85rem; }
  .lesson-card:not(.bg-card) .meta { color: rgba(255,255,255,.85); border-top: 0; margin-top: 6px; padding-top: 0; font-size: .78rem; }
  .lesson-card:not(.bg-card) .done-badge { background: rgba(255,255,255,.92); }


  /* cartes d exercices (photo de fond) : même style que les leçons */
  .bg-card { min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; border: 0; color: #fff; padding: 14px 16px; }
  .bg-card::after { background: linear-gradient(180deg, rgba(8,18,36,.05) 0%, rgba(8,18,36,.35) 45%, rgba(8,18,36,.88) 100%); }
  .bg-card .top { position: absolute; top: 12px; left: 14px; right: 14px; margin: 0; }
  .bg-card .num { color: #fff; opacity: 1; font-size: .8rem; background: rgba(8,18,36,.55); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
  .bg-card .lvl { background: rgba(255,255,255,.92); color: #0f2744; }
  .bg-card h3 { color: #fff; font-size: 1.08rem; margin: 0; }
  .bg-card .en { color: rgba(255,255,255,.85); font-size: .85rem; }
  .bg-card .meta { color: rgba(255,255,255,.85); border-top: 0; margin-top: 6px; padding-top: 0; font-size: .78rem; }
  .bg-card .done-badge { background: rgba(255,255,255,.92); }

  /* leçon : sous-titre plus petit, sommaire en pastilles qui défilent */
  .page-head p.en[style] { font-size: 1rem !important; }
  .lesson-layout > * { min-width: 0; } /* sinon la rangée de pastilles élargit toute la page */
  .lesson-aside { padding: 0; background: none; border: 0; box-shadow: none; margin-bottom: 4px; }
  .lesson-aside > b { display: none; }
  .lesson-aside ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; list-style: none; padding: 0 0 4px; margin: 0; counter-reset: toc; }
  .lesson-aside li { margin: 0; flex: none; }
  .lesson-aside a { display: block; white-space: nowrap; padding: .4em .9em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; }

  /* leçon : grande photo en haut */
  .m-hero { display: block; height: 180px; margin: 0 0 14px; border-radius: 16px; background: var(--bg-alt) center / cover no-repeat; }

  /* ACCUEIL compact */
  .hero { padding: 22px 0 28px; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: 2.05rem; }
  .hero .lead { font-size: .95rem; line-height: 1.55; }
  .hero-cta { margin: 16px 0 14px; gap: 8px; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1; justify-content: center; padding-inline: .5em; font-size: .85rem; white-space: nowrap; }
  .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .76rem; }
  .checks li { align-items: flex-start; line-height: 1.3; }
  .checks svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
  .hero-media { min-height: 260px; border-radius: 18px; }
  .hero-media .fallback { padding: 14px; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 1.3rem; }
  .section-head p { font-size: .9rem; }
  /* le programme : tuiles 2 par ligne */
  .g5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g5 > .card { padding: 14px; }
  .g5 > .card:last-child:nth-child(odd) { grid-column: span 2; }
  .g5 .icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .g5 h3 { font-size: .98rem; margin-bottom: .25em; }
  .g5 p { font-size: .8rem; line-height: 1.45; margin: 0; }
  /* comment ça marche : numéro dans une pastille à gauche du titre */
  .step-num { float: left; width: 34px; height: 34px; margin: 0 12px 0 0; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-size: .78rem; }
  .card:has(> .step-num) h3 { font-size: 1rem; margin: 6px 0 .3em; }
  .card:has(> .step-num) p { font-size: .85rem; margin: 0; clear: both; }
  /* parcours : les 3 niveaux sur une ligne */
  .path { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .level { padding: 12px 10px; }
  .level .tag { font-size: 1.35rem; margin-bottom: 2px; }
  .level h3 { font-size: .82rem; margin: 0; }
  .level p { font-size: .72rem; line-height: 1.35; }
  .level .soon { position: static; display: inline-block; margin-bottom: 4px; font-size: .62rem; }
  /* tarifs et bandeau final */
  .price .amount { font-size: 1.9rem; }
  .price ul { margin: 12px 0 16px; }
  .price li { font-size: .88rem; }
  .cta-band { padding: 30px 18px; border-radius: 18px; }

  /* MON ESPACE : classes et résultats d'abord, profil compact */
  .dash-grid { gap: 16px; }
  .my-grid > div:last-child { order: -1; }
  .profile-head { margin-bottom: 6px; }
  .avatar.big { width: 40px; height: 40px; font-size: 1rem; }
  .prow { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
  .prow > span { flex: none; max-width: 62%; font-size: .78rem; }
  .my-grid form.card { padding: 14px 16px; }
  .my-grid form.card h3 { font-size: 1rem; }
  .my-grid [data-logout], .my-grid a[href="#/securite"] { flex: 1; justify-content: center; font-size: .82rem; text-align: center; }
  .prow b { text-align: right; font-size: .88rem; }
  .access-card { margin-top: 12px; }
  [data-class-line] { font-size: .88rem; margin: 10px 0 0; }

  /* barre d'onglets */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 500; }
  .tabbar svg { width: 24px; height: 24px; padding: 3px 14px; box-sizing: content-box; border-radius: 999px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background .2s; }
  .tabbar a.active { color: var(--navy); font-weight: 700; }
  .tabbar a.active svg { background: var(--tint); }
  body[data-page="examen"] .tabbar { display: none; }
  body[data-page="examen"] { padding-bottom: 0; }

  /* éléments collés en bas / en haut : au-dessus de la barre */
  .scorebar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .voice-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .exam-bar { top: 64px; }
  /* pas de pied de page sur téléphone : Conditions et Confidentialité sont dans le menu ☰ */
  .footer { display: none; }
  .links a.m-only { display: flex; }
}
.join-cta { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
/* Devenir prof : documents */
.join-docs { display: grid; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg-alt); }
.join-docs input[type=file] { padding: .5em; background: var(--surface); }
.req { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 .5em; margin-left: 4px; }
.join-tip { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--tint); font-size: .85rem; color: var(--ink); }
.join-tip svg { width: 18px; height: 18px; flex: none; color: var(--navy); margin-top: 1px; }
.join-tip p, .join-docs p { margin: 0; }
/* Tableau de bord : candidatures */
.cand-card { display: grid; gap: 12px; align-content: start; }
.cand-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cand-top h3 { margin: 0; }
.cand-levels { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cand-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: .9rem; }
.cand-facts > div { display: grid; min-width: 0; overflow-wrap: anywhere; }
.cand-bio { margin: 0; white-space: pre-line; font-size: .92rem; color: var(--ink-soft); }
.cand-files { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.doc-chip { display: inline-flex; gap: 6px; align-items: center; padding: .35em .75em; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; color: var(--ink); background: var(--surface); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip b { color: var(--navy); }
.cand-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .cand-facts { grid-template-columns: 1fr; } }
/* Devenir prof : formulaire en 5 étapes */
.join-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.join-step[hidden] { display: none; }
.join-step h2 { margin-bottom: 4px; }
.join-q { margin: 4px 0 -4px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.join-form .wiz-grid { margin-bottom: 0; }
.wiz-grid.g3c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label.wiz-choice { font-weight: 400; display: flex; color: var(--ink); padding: 14px 16px; }
label.wiz-choice input { position: absolute; opacity: 0; pointer-events: none; }
label.wiz-choice:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
label.wiz-choice:has(input:checked)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
label.wiz-choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.lvl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lvl-chip { cursor: pointer; }
.lvl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.lvl-chip span { display: inline-block; min-width: 56px; text-align: center; padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--surface); color: var(--ink-soft); transition: all .15s; }
.lvl-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--bg); }
.lvl-chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.join-form .wiz-nav { margin-top: 4px; }
.join-form .wiz-nav [hidden] { display: none; }
.join-form [data-join-next], .join-form [data-join-send] { margin-left: auto; }
@media (max-width: 640px) {
  .join-form .wiz-grid.g2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wiz-grid.g3c { gap: 8px; }
  .join-form label.wiz-choice { padding: 10px 10px; }
  .join-form label.wiz-choice b { font-size: .88rem; line-height: 1.25; padding-right: 14px; }
  .join-form label.wiz-choice span { font-size: .74rem; line-height: 1.3; }
  .join-form label.wiz-choice:has(input:checked)::after { top: 8px; right: 8px; width: 15px; height: 15px; background-size: 10px; }
  .join-form { padding: 18px 16px; }
  .join-form .wiz-steps li:not(.on) { display: none; }
  .join-form .wiz-nav .btn { flex: 1; justify-content: center; }
}
/* Espace enseignant : grande photo du prof en haut */
.t-head { align-items: center; }
.t-id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.t-id-text { min-width: 0; }
.t-id-text h1 { margin-bottom: .15em; }
.t-id-text p { margin: 0; }
.t-photo { position: relative; flex: none; width: 128px; height: 128px; padding: 0; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line), var(--shadow-lg); background: var(--tint); cursor: pointer; overflow: visible; }
.t-photo-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.t-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-photo-empty { display: grid; justify-items: center; gap: 4px; color: var(--navy); font: 600 .72rem/1.2 var(--font); text-align: center; padding: 0 14px; }
.t-photo-empty svg { width: 30px; height: 30px; }
.t-photo:not(.has) { border: 2px dashed var(--accent); box-shadow: none; animation: t-photo-pulse 2.4s ease-in-out infinite; }
@keyframes t-photo-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent); } }
.t-photo-cam { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--bg); display: grid; place-items: center; border: 3px solid var(--surface); }
.t-photo-cam svg { width: 16px; height: 16px; }
.t-photo:not(.has) .t-photo-cam { display: none; }
.t-photo.busy { opacity: .55; pointer-events: none; }
.t-photo:hover .t-photo-img img { filter: brightness(.9); }
.t-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.t-nag { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.t-nag > svg { width: 22px; height: 22px; flex: none; }
.t-nag > span { flex: 1; min-width: 220px; }
@media (prefers-reduced-motion: reduce) { .t-photo:not(.has) { animation: none; } }
@media (max-width: 640px) {
  .t-id { gap: 14px; }
  .t-photo { width: 88px; height: 88px; }
  .t-photo-empty { font-size: .62rem; padding: 0 8px; }
  .t-photo-empty svg { width: 22px; height: 22px; }
  .t-photo-cam { width: 28px; height: 28px; right: -2px; bottom: -2px; }
  .t-id-text h1 { font-size: 1.45rem; }
  .t-id-text p { font-size: .85rem; }
  .t-head-btns .btn { font-size: .8rem; }
}
/* Mot de passe oublié */
.forgot-link { justify-self: center; font-size: .85rem; color: var(--ink-soft); }
.forgot-link .fr-hint { font-size: .78rem; }
.code-input { font-size: 1.4rem !important; letter-spacing: .35em; text-align: center; font-weight: 700; }
.forgot-again { text-align: center; margin: 0; }
.forgot-again .link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.forgot-again .link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.forgot-back { margin-top: 16px; }
/* Correction : les champs « Devoirs » et « Cours en direct » ne dépassent plus de la carte de classe */
.hw-form > *, .live-form > *, .live-form input, .hw-form select, .hw-form input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.hw-form select, .hw-form input, .live-form input { width: 100%; }
.hw-form .btn, .live-form .btn { width: auto; }
.hw-list li > div { min-width: 0; overflow-wrap: anywhere; }
/* Espace enseignant : Accueil */
.t-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.t-stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.t-stat:hover { border-color: var(--navy); transform: translateY(-2px); }
.t-stat b { font-size: 1.8rem; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); }
.t-stat span { font-size: .85rem; color: var(--muted); }
.t-home { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.t-home-main { display: grid; gap: 16px; min-width: 0; }
.t-home h3 { margin: 0 0 12px; font-size: 1.05rem; }
.t-live, .t-waiting, .t-todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-live li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.t-live li > div, .t-waiting li > div, .t-todo li > div { min-width: 0; }
.t-waiting li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.t-waiting + .btn { margin-top: 10px; }
.t-todo-head { display: flex; justify-content: space-between; align-items: baseline; }
.t-todo .wiz-bar { margin: 0 0 14px; }
.t-todo li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.t-todo li b { font-size: .92rem; font-weight: 600; }
.t-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; border: 1.5px solid var(--line); color: var(--muted); }
.t-todo li.ok .t-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.t-check svg { width: 14px; height: 14px; }
.t-todo li.ok b { color: var(--muted); text-decoration: line-through; }
.t-links { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.t-links a { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--navy); text-decoration: none; font-weight: 500; }
.t-links svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .t-home { grid-template-columns: 1fr; } .t-todo { order: -1; } }
@media (max-width: 640px) {
  .t-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .t-stat { padding: 10px 12px; }
  .t-stat b { font-size: 1.4rem; }
  .t-live li { grid-template-columns: auto 1fr; }
  .t-live li .btn { grid-column: 1 / -1; justify-content: center; }
}
/* Espace enseignant : liste des classes (résumés) + page d'une classe */
.t-class-list { margin-bottom: 16px; }
.t-class-card { display: grid; gap: 4px; align-content: start; }
.t-class-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.t-class-card .kind, .t-class-head .kind { font-size: .78rem; color: var(--muted); }
.t-class-card h3 { margin: 0; font-size: 1.1rem; }
.t-class-card p { margin: 0; }
.t-class-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.t-class-facts span { font-size: .78rem; padding: .25em .65em; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.t-class-facts b { color: var(--ink); }
.t-class-facts .ok { background: var(--ok-bg); color: var(--ok); }
.t-class-facts .warn { background: #fff4e0; color: #9a5b00; }
.t-open { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.t-new-class summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 10px; list-style: none; }
.t-new-class summary::-webkit-details-marker { display: none; }
.t-plus { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--bg); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.t-new-class[open] summary { margin-bottom: 14px; }
.t-new-class .form { max-width: 520px; }
.t-back { display: inline-block; margin-bottom: 12px; font-size: .9rem; color: var(--navy); font-weight: 500; text-decoration: none; }
.t-class-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.t-class-head .top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.t-class-head h2 { margin: 0; font-size: 1.45rem; }
.t-class-head p { margin: 4px 0 0; }
.t-class-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.t-class-side { display: grid; gap: 16px; min-width: 0; }
.t-section { min-width: 0; }
.t-section h3 { margin: 0 0 12px; font-size: 1.05rem; }
.t-section .live-form, .t-section .hw-box { margin: 0; padding: 0; background: none; }
.t-section .add-student { width: 100%; max-width: 100%; }
.t-danger { margin-top: 18px; text-align: right; }
@media (max-width: 860px) { .t-class-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .t-class-head .btn { width: 100%; justify-content: center; } .t-danger { text-align: center; } }
/* Espace enseignant : guide de bienvenue */
.tg-modal { place-items: center; z-index: 200; }
.tg-box { position: relative; width: min(520px, 100%); padding: 34px 30px 22px; text-align: center; }
.tg-close { position: absolute; top: 12px; right: 12px; }
.tg-step { min-height: 300px; display: grid; align-content: start; justify-items: center; gap: 10px; }
.tg-step h2 { font-size: 1.4rem; margin: 6px 0 0; }
.tg-step p { margin: 0; color: var(--ink-soft); line-height: 1.6; max-width: 42ch; }
.tg-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.tg-ic svg { width: 34px; height: 34px; }
.tg-logo { position: relative; width: 72px; height: 72px; border-radius: 18px; background: #0f2744; color: #fff; display: grid; place-items: center; font: 800 2.4rem/1 var(--font); padding-right: 8px; }
.tg-logo i { position: absolute; right: 14px; bottom: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tg-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; text-align: left; font-size: .92rem; }
.tg-list li { display: flex; gap: 8px; align-items: flex-start; }
.tg-list svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
.tg-step .btn svg { width: 18px; height: 18px; }
.tg-step .notice { margin: 4px 0 0; }
.tg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tg-dots { display: flex; gap: 6px; }
.tg-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
.tg-dots span.done { background: var(--navy-2); }
.tg-dots span.on { width: 24px; background: var(--navy); }
.tg-btns { display: flex; gap: 8px; }
.tg-btns [hidden] { display: none; }
.t-guide-again { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: 500 .9rem var(--font); color: var(--navy); cursor: pointer; text-align: left; }
.t-guide-again svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .tg-box { padding: 28px 18px 18px; } .tg-step { min-height: 340px; } .tg-step h2 { font-size: 1.2rem; } }
/* Expression écrite : côté élève */
.wr-level { flex: none; font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--tint); border-radius: 6px; padding: .2em .5em; margin-top: 2px; }
.wr-card .hw-list li { align-items: center; }
.wr-card .hw-list li > div { flex: 1; }
.wr-st { font-weight: 600; }
.wr-todo { color: var(--accent); }
.wr-sent { color: #9a5b00; }
.wr-corrected { color: var(--ok); }
.wr-prompt { padding: 16px 18px; border-radius: 12px; background: var(--tint); }
.wr-prompt p { margin: 0 0 8px; }
.wr-fr { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.wr-en { color: var(--ink-soft); font-style: italic; }
.wr-gloss ul { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.wr-gloss li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .2em .7em; font-size: .85rem; }
.wr-rule { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.wr-rule svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--navy); }
.wr-area { width: 100%; box-sizing: border-box; min-height: 260px; font: 1.05rem/1.7 var(--font); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; }
.wr-area:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.wr-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.wr-bar .notice { margin: 0; padding: 6px 10px; }
.wr-low { color: var(--muted); } .wr-ok { color: var(--ok); } .wr-high { color: var(--bad); }
.wr-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px max(24px, calc((100% - 860px) / 2)); border-top: 1px solid var(--line); }
.wr-text-read { white-space: pre-wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.7; }
.wr-feedback { padding: 14px 16px; border-radius: 12px; background: var(--ok-bg); border-left: 4px solid var(--ok); }
.wr-feedback > div { white-space: pre-wrap; margin-top: 6px; }
/* Expression écrite : côté prof */
.wr-t-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.wr-t-list details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.wr-t-list summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.wr-t-list summary::-webkit-details-marker { display: none; }
.wr-t-open { font-size: .8rem; font-weight: 600; color: var(--navy); flex: none; }
.wr-t-list details[open] .wr-t-open { visibility: hidden; }
.wr-t-sujet { margin: 10px 0; padding: 8px 10px; background: var(--bg-alt); border-radius: 8px; }
.wr-t-text { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.wr-t-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.wr-t-meta b { color: var(--ink); font-size: .9rem; }
.wr-flag { color: #9a5b00; background: #fff4e0; padding: .1em .5em; border-radius: 999px; font-weight: 600; }
.wr-done { color: var(--ok); background: var(--ok-bg); padding: .1em .5em; border-radius: 999px; font-weight: 600; }
.wr-t-body { white-space: pre-wrap; font-size: .92rem; line-height: 1.6; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.wr-t-fb { display: grid; gap: 6px; }
.wr-t-fb textarea, .wr-t-custom input, .wr-t-custom textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.wr-t-fb .btn { justify-self: start; }
.wr-t-custom { display: grid; gap: 6px; }
.wr-t-words { display: flex; gap: 10px; }
.wr-t-words label { display: grid; gap: 2px; }
.wr-t-words input { width: 90px; }
.wr-t-preview { padding: 8px 10px; background: var(--tint); border-radius: 8px; line-height: 1.5; }
/* Entente de collaboration (espace enseignant) */
.agree-card { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.agree-card h2 { margin: 0; }
.agree-card > p { margin: 0; }
.agree-text { max-height: 52vh; overflow-y: auto; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: .92rem; line-height: 1.6; }
.agree-text h4 { margin: 16px 0 6px; font-size: .98rem; color: var(--navy); }
.agree-text h4:first-of-type { margin-top: 6px; }
.agree-text ul { margin: 0; padding-left: 1.2em; }
.agree-text p { margin: 0 0 6px; }
.agree-check { font-weight: 600; }
.agree-card .btn { justify-self: start; }
.agree-check { display: flex; gap: 8px; align-items: flex-start; } .agree-check input { margin-top: 4px; }
/* Devenir prof : rémunération */
.join-pay { display: grid; gap: 8px; margin-bottom: 8px; }
.join-pay p { margin: 0; }
.join-pay-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.join-pay-row > b { color: var(--navy); }
/* Cours donnés (espace prof) */
.held-form { display: grid; gap: 10px; }
.held-row { display: flex; gap: 10px; flex-wrap: wrap; }
.held-row label { display: grid; gap: 3px; }
.held-row input, .held-row select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.held-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.held-chip { cursor: pointer; }
.held-chip input { position: absolute; opacity: 0; pointer-events: none; }
.held-chip span { display: inline-block; padding: .3em .8em; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.held-chip input:checked + span { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); text-decoration: none; font-weight: 600; }
.held-chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.held-form .btn { justify-self: start; }
.held-form p { margin: 0; }
.held-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.held-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
/* Paie des profs (tableau de bord) */
.pay-period { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.pay-period label { display: grid; gap: 3px; }
.pay-period input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.pay-period .muted { flex-basis: 100%; }
.pay-table .pay-detail td { padding-top: 0; border-top: 0; }
.pay-table .pay-detail ul { margin: 6px 0 0; padding-left: 1.2em; font-size: .85rem; }
.pay-table tfoot td { border-top: 2px solid var(--line); }
.att-line { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin: 6px 0 0; } .att-line svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
/* Espace enseignant : élèves en fin d'accès */
.ren-ok { color: var(--ok); font-weight: 600; }
.ren-warn { color: #9a5b00; font-weight: 600; }
.ren-off { color: var(--bad); font-weight: 600; }
.ren-notice { border-left: 4px solid #d98e04; background: #fff8ea; margin-bottom: 16px; }
/* Inscription : « Quand êtes-vous libre ? » */
.free-box { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); }
.free-box summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.free-box[open] summary { margin-bottom: 10px; }
.free-grid .slot span { font-size: .7rem; font-weight: 700; color: var(--navy); }
.free-grid .slot.on span { color: var(--bg); }
.free-box p { margin: 8px 0 0; }
.wiz-teacher.dim { opacity: .55; }
.free-ok { color: var(--ok); font-weight: 700; }
/* Bandeau « votre accès se termine » */
.renew-bar { background: #fff4e0; border-bottom: 1px solid #f0d9a8; color: #6b4300; font-size: .9rem; position: relative; z-index: 40; }
.renew-bar.urgent { background: var(--accent); border-color: var(--accent); color: #fff; }
.renew-bar.urgent .fr-hint { color: rgba(255,255,255,.8); }
.renew-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
@media (max-width: 640px) { .renew-bar-in { font-size: .82rem; } .renew-bar-in .btn { flex: 1; justify-content: center; } }
/* Invitation des profs */
.t-invite h3 { margin: 0 0 6px; }
.invite-link { display: flex; gap: 8px; margin: 10px 0; }
.invite-link input { flex: 1; min-width: 0; font: .85rem var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-alt); color: var(--ink); }
.t-invite p { margin: 0; }
.ref-tag { color: var(--navy); font-weight: 600; }
.invited { margin-bottom: 14px; }
/* Vidéos des leçons (espace prof) */
.vid-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.vid-list li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; }
.vid-list img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; display: block; }
.vid-list li > div { min-width: 0; }
/* Bannière « Installer Parloo sur iPhone » */
.ios-install { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70; padding: 0 12px; pointer-events: none; }
.ios-in { pointer-events: auto; max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: grid; gap: 10px; }
.ios-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.ios-logo { position: relative; width: 42px; height: 42px; border-radius: 11px; background: #0f2744; color: #fff; display: grid; place-items: center; font: 800 1.35rem/1 var(--font); padding-right: 5px; }
.ios-logo i { position: absolute; right: 8px; bottom: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ios-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.ios-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ios-steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.ios-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--tint); color: #0a84ff; display: grid; place-items: center; }
.ios-ic svg { width: 18px; height: 18px; }
.ios-ic-p { color: #fff; background: #0f2744; font-weight: 800; }
.ios-warn { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff4e0; color: #6b4300; }
.ios-btns { display: flex; justify-content: flex-end; gap: 8px; }
@media (min-width: 641px) { .ios-install { bottom: 20px; } }

/* Document audio (préparation TEF / TCF : compréhension orale) */
.audio-doc { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.audio-doc-btn { display: inline-flex; align-items: center; gap: 8px; }
.audio-doc-btn svg { width: 18px; height: 18px; }
.audio-doc-btn.playing-doc { background: var(--accent); border-color: var(--accent); }
.audio-doc-btn .when-playing { display: none; }
.audio-doc-btn.playing-doc .when-playing { display: inline; }
.audio-doc-btn.playing-doc .when-idle { display: none; }
.audio-doc details { margin-top: 12px; }
.audio-doc .tr-line { margin: 6px 0; padding: 0 14px; }
.audio-doc details .tr-line:last-child { padding-bottom: 12px; }
.audio-doc .tr-line b { color: var(--navy); }

/* ---------- Tarif étudiant et parrainage (supabase/34) ---------- */
.wiz-student { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.wiz-student input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.wiz-student small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.wiz-school { margin: 0 0 14px; }
.wiz-school input, .wiz-friend input { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.wiz-friend { display: block; margin: 14px 0 6px; font-weight: 600; }
.wiz-friend input { margin-top: 6px; font-weight: 400; max-width: 240px; text-transform: uppercase; }
.invite-card { margin: 16px 0; }
.invite-card h3 { margin: 0 0 6px; }

/* ---------- Badge « Diplôme vérifié » (supabase/35) ---------- */
.teacher-diploma { display: block; margin: 4px 0; font-size: .85rem; line-height: 1.4; color: #1b7a43; }
.teacher-diploma svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.teacher-diploma b { font-weight: 700; white-space: nowrap; }
.diploma-state .teacher-diploma, td .teacher-diploma { display: inline; margin: 0 6px 0 0; }
