/* EKROSS LAB IFAS — layout: app mobile-first, colonne de lecture 720px, barre de navigation basse sur mobile, en-tête sur grand écran */
/* Charte EKROSS LAB (visuels FINAUX v2) : nuit aubergine #160A2E, magenta #CE1FE6, magenta clair #F08BFF, blanc ; Montserrat ; photos réelles en fondu.
   Choix assumé : thème sombre par défaut (identité de marque), variante claire disponible dans Réglages. */
/* Polices hébergées sur le site (aucun appel à Google : confidentialité des élèves, chargement fiable) — licence SIL OFL, voir web/fonts/ */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #160A2E; --surface: #211240; --surface-2: #2D1A52; --ink: #FFFFFF; --muted: #CDBFE3; --line: #3D2966;
  --violet: #BE19D6; --violet-ink: #FFFFFF; --violet-soft: #3B1A60; --accent: #F08BFF;
  --gold: #F08BFF; --gold-bright: #F08BFF; --gold-soft: #2B1650;
  --ok: #7BE0B2; --ok-soft: #133A31; --warn: #FFB86B; --warn-soft: #3D2716; --bad: #FF8E8E; --bad-soft: #43182A;
  --b1: #E79BFF; --b2: #5FD4D9; --b3: #FFB86B; --b4: #8EDC9E; --b5: #8FB8FF;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3);
  --night: #160A2E; --magenta: #CE1FE6; --magenta-2: #F08BFF; --white: #FFFFFF;
  --f-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --fs: 17px; --r: 16px; --r-lg: 26px; color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FBF7FE; --surface: #FFFFFF; --surface-2: #F3E9FB; --ink: #160A2E; --muted: #5C4C78; --line: #E5D8F2;
  --violet: #B514CC; --violet-ink: #FFFFFF; --violet-soft: #F6E2FB; --accent: #9C0FB2;
  --gold: #9C0FB2; --gold-bright: #CE1FE6; --gold-soft: #FBEFFE;
  --ok: #1E7A57; --ok-soft: #E2F4EB; --warn: #A3540E; --warn-soft: #FCEBDA; --bad: #B3343A; --bad-soft: #FBE4E6;
  --b1: #9A2BB8; --b2: #127C82; --b3: #A8620F; --b4: #2F7D45; --b5: #2E5FB0;
  --shadow: 0 1px 2px rgba(40,10,60,.06), 0 10px 28px rgba(40,10,60,.08); color-scheme: light;
}
:root.lisible { --f-body: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif; }
:root.grand { --fs: 20px; }

* { box-sizing: border-box; }
html, body { background: var(--bg); }
html { font-size: var(--fs); } /* tout le texte suit la taille choisie dans Réglages (critère WCAG 1.4.4) */
@media (min-width: 860px) { :root { --fs: 18px; } }
body { color: var(--ink); font-family: var(--f-body); font-size: var(--fs); line-height: 1.62; font-weight: 500; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shell */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top-in, .wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top-in { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 1.05rem; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.top nav { margin-left: auto; display: none; gap: 4px; }
.top nav button, .botnav button { background: none; border: 0; cursor: pointer; color: var(--muted); }
.top nav button { padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.top nav button[aria-current="page"] { background: var(--violet-soft); color: var(--accent); }
.botnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
.botnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .76rem; font-weight: 700; padding: 6px 2px; border-radius: 10px; }
.botnav button svg { width: 24px; height: 24px; }
.botnav button[aria-current="page"] { color: var(--accent); background: var(--violet-soft); }
main { padding-block: 20px 110px; }
@media (min-width: 860px) { .top nav { display: flex; } .botnav { display: none; } main { padding-block: 28px 64px; } }

/* type helpers */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.read { max-width: 760px; }
.read > * { min-width: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 700; cursor: pointer; min-height: 46px; text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-p { background: var(--violet); color: var(--violet-ink); }
.btn-p:hover { filter: brightness(1.08); }
.btn-s { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-s:hover { border-color: var(--accent); }
.btn-g { background: none; color: var(--accent); padding-inline: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: .9rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--accent); color: var(--violet-ink); }
.chip:hover { border-color: var(--accent); }
.back { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; padding: 6px 0; display: inline-flex; gap: 6px; align-items: center; }
.back svg { width: 18px; height: 18px; }

/* home */
.hero { display: grid; gap: 28px; align-items: center; padding-block: 12px 8px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 380px; width: 100%; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; }
.doors { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { position: relative; text-align: left; border: 0; cursor: pointer; border-radius: var(--r-lg); padding: 24px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.door:hover { transform: translateY(-3px); }
.door.a { background: linear-gradient(150deg, var(--gold-soft), var(--surface) 70%); }
.door.b { background: linear-gradient(150deg, var(--violet-soft), var(--surface) 70%); }
.door .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.door .ic svg { width: 30px; height: 30px; }
.door h2 { font-size: 1.5rem; }
.door p { color: var(--muted); max-width: 40ch; }
.door .go { margin-top: auto; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.askbar { display: flex; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); max-width: 640px; }
.askbar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card.click { cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; color: var(--ink); font: inherit; }
.card.click:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .tag { align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.note { border-radius: var(--r); padding: 14px 16px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.note.v { background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 25%, transparent); }
.note.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.note.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* module tiles */
.bloc-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.mod { --c: var(--b1); border-left: 0; position: relative; }
.mod .num { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--c); }
.mod .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c, var(--violet)); border-radius: 99px; width: 0; transition: width .4s; }
.c1 { --c: var(--b1); } .c2 { --c: var(--b2); } .c3 { --c: var(--b3); } .c4 { --c: var(--b4); } .c5 { --c: var(--b5); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

/* tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tabs button { flex: none; }

/* module header */
.mhead { border-radius: var(--r-lg); padding: 22px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 16%, var(--surface)), var(--surface) 75%); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mhead .num { font-family: var(--f-display); font-weight: 800; color: var(--c); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }

/* quiz */
.q { display: flex; flex-direction: column; gap: 10px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt b { font-family: var(--f-display); color: var(--muted); min-width: 1.2em; }
.opt.good { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt:disabled { cursor: default; }
.score { font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.msgs { display: flex; flex-direction: column; gap: 12px; max-height: min(62vh, 640px); overflow-y: auto; padding: 4px; }
.msg { max-width: 92%; border-radius: 16px; padding: 14px 16px; line-height: 1.65; min-width: 0; overflow-wrap: anywhere; }
.msg.u { align-self: flex-end; background: var(--violet); color: var(--violet-ink); border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.a p + p, .msg.a p + ul, .msg.a ul + p, .msg.a p + ol, .msg.a ol + p, .msg.a h4 + p { margin-top: 10px; }
.msg.a li + li { margin-top: 4px; }
.msg.a strong, .msg.a b { font-weight: 700; color: var(--ink); }
.msg ul, .msg ol { margin: 6px 0 0; padding-left: 1.2em; }
.msg h4 { font-size: 1rem; margin: 8px 0 2px; }
.msg .tools { display: flex; gap: 4px; margin-top: 8px; }
.msg .tools button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .84rem; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; padding: 4px 6px; border-radius: 8px; }
.msg .tools button:hover { color: var(--accent); background: var(--surface); }
.msg .tools svg { width: 16px; height: 16px; }
.think { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); }
.think i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: pulse 1.2s infinite ease-in-out; }
.think i:nth-child(2) { animation-delay: .2s; } .think i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; background: var(--bg); min-height: 48px; max-height: 180px; }
.composer textarea:focus { border-color: var(--accent); outline: none; }
.iconbtn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn.p { background: var(--violet); border-color: var(--accent); color: var(--violet-ink); }
.iconbtn.rec { background: var(--bad); border-color: var(--bad); color: #fff; }
.modes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.modes .chip { flex: none; font-size: .82rem; padding: 6px 12px; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg button { font-size: .85rem; }
.fine { font-size: .86rem; line-height: 1.5; color: var(--muted); }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
label.f span.h { font-weight: 500; color: var(--muted); font-size: .9rem; }
.in, textarea.in, select.in { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--surface); width: 100%; }
.in:focus { border-color: var(--accent); outline: none; }
textarea.in { min-height: 110px; resize: vertical; }

/* steps */
.steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.steps button { flex: none; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink); }
.steps button i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-size: .8rem; }
.steps button[aria-current="step"] { border-color: var(--accent); }
.steps button[aria-current="step"] i { background: var(--violet); color: var(--violet-ink); }
.steps button.done i { background: var(--ok); color: #fff; }

/* tri */
.tri { display: flex; flex-direction: column; gap: 10px; }
.tri-item { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.tri-item .row .chip { font-size: .8rem; }

/* stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.stat b { font-family: var(--f-display); font-size: 1.8rem; display: block; font-variant-numeric: tabular-nums; color: var(--accent); }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: min(92vw, 480px); font-weight: 700; box-shadow: var(--shadow); }
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 19; border-radius: 999px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .fab { bottom: 24px; } .toast { bottom: 28px; } }
table.t { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scroll-x { overflow-x: auto; }
details.d { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
details.d summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.d summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details.d[open] summary::after { content: "–"; }
details.d > div { padding: 0 16px 16px; }
.timer { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.3rem; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#view:focus { outline: none; }
.door .go svg, .card svg:not(.ring svg) { width: 18px; height: 18px; }
.door .ic svg { width: 30px; height: 30px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 10px 12px; font-size: .85rem; }
.stat b { font-size: 1.4rem; }
@media (max-width: 859px) { .fab { width: 56px; height: 56px; padding: 0; } .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .fab svg { width: 26px; height: 26px; } }
@media (max-width: 859px) { .hero-art { max-width: 210px; order: -1; } .hero { gap: 16px; } }
@media (max-width: 520px) { .grid.modes-grid { grid-template-columns: 1fr 1fr; } .grid.modes-grid .card { padding: 14px; } .grid.modes-grid p { font-size: .85rem; } }

/* ---- Charte EKROSS LAB ---- */
h1, h2 { font-weight: 800; letter-spacing: -.02em; }
.logo { display: inline-flex; align-items: center; gap: 10px; background: var(--night); color: var(--white); border-radius: 999px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.logo img { width: 44px; height: auto; display: block; }
.logo .wm { font-family: var(--f-display); font-weight: 500; font-size: 1.32rem; letter-spacing: .06em; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.logo .lab { background: var(--magenta); color: var(--white); font-weight: 800; font-size: .76rem; letter-spacing: .06em; border-radius: 6px; padding: 2px 6px; }
.brand .decl { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
.brand .decl span { display: block; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.pill { display: inline-block; align-self: flex-start; background: var(--violet); color: var(--white); font-weight: 800; font-size: .85rem; border-radius: 10px; padding: 6px 14px; transform: rotate(-1.5deg); box-shadow: 0 6px 18px rgba(206,31,230,.35); }
.photo-note { position: absolute; top: 14px; right: 16px; font-size: .74rem; color: rgba(255,255,255,.82); text-shadow: 0 1px 2px rgba(0,0,0,.5); z-index: 2; }
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--night); min-height: 560px; padding: 0; grid-template-columns: none !important; }
.hero .ph { position: absolute; inset: 0 0 auto 0; height: 78%; background: var(--night) center 22% / cover no-repeat; }
.hero .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,10,46,.05) 35%, rgba(22,10,46,.75) 75%, var(--night) 100%); }
.hero .txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 28px clamp(20px, 4vw, 44px) 32px; color: var(--white); max-width: 820px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 6.4vw, 3.6rem); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--magenta-2); }
.hero .lead { color: rgba(255,255,255,.86); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--magenta-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23160A2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hero .askbar { background: var(--white); border-color: transparent; color: var(--night); }
.hero .askbar input { color: var(--night); }
.hero .askbar input::placeholder { color: #6E5C88; }
@media (min-width: 860px) { .hero { min-height: 600px; } .hero .ph { height: 100%; background-position: 70% 25%; } .hero .ph::after { background: linear-gradient(90deg, var(--night) 0%, rgba(22,10,46,.9) 32%, rgba(22,10,46,.2) 62%, rgba(22,10,46,0) 100%), linear-gradient(180deg, rgba(22,10,46,0) 60%, rgba(22,10,46,.6) 100%); } .hero .txt { max-width: 600px; padding-block: 48px; } }
@media (max-width: 859px) { .hero { min-height: 640px; } }
.door { padding: 0; min-height: 0; background: var(--surface) !important; border: 1px solid var(--line); }
.door .dph { position: relative; aspect-ratio: 16 / 8; background: var(--night) center 30% / cover no-repeat; }
.door .dph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,10,46,0) 40%, rgba(22,10,46,.85) 100%); }
.door .dph .pill { position: absolute; left: 18px; bottom: 14px; z-index: 1; }
.door .dtxt { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.door .go { color: var(--accent); }
.btn-p { box-shadow: 0 6px 18px rgba(206,31,230,.28); }
.msg.a { border: 1px solid var(--line); }
.hero { align-items: stretch; }
.hero .txt { min-width: 0; width: 100%; }
/* ---- v1.2 : ergonomie smartphone ---- */
.chip { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.chip svg { width: 18px; height: 18px; }
.btn-g { min-height: 40px; }
.check { gap: 12px; cursor: pointer; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--violet); flex: none; }
.chat-top { justify-content: space-between; }
.chat-top [data-new] { padding-inline: 4px; }
.mdp { flex-wrap: nowrap; gap: 6px; }
.mdp .in { flex: 1; min-width: 0; }
.fc .seg { gap: 6px; }
.fc .err { color: var(--bad); }
.msg .fc { min-width: min(100%, 320px); }
.msg .tools button { min-height: 34px; }
.signal { margin-top: -4px; }
.signal label.row { font-size: .9rem; }
.legal { gap: 4px; }
.tag { display: inline-block; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--accent); }
@media (max-width: 859px) {
  .msgs { max-height: calc(100dvh - 300px); min-height: 220px; }
  .composer textarea { font-size: 16px; } /* évite le zoom automatique sur iPhone */
  .in, select.in { font-size: 16px; }
  .hero { min-height: 560px; }
  .hero .lead { font-size: 1rem; }
}
pre.rep { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; font: .9rem/1.55 var(--f-body); max-height: 360px; overflow: auto; margin: 0; }
a.brand { text-decoration: none; color: inherit; }
.fab[hidden],[hidden]{display:none!important}

/* v1.3 — logo officiel plus présent sur grand écran ; bouton flottant masqué sur smartphone (la barre du bas donne déjà accès au formateur) */
@media (min-width: 860px) {
  .top-in { padding-block: 12px; }
  .logo { padding: 8px 18px 8px 12px; gap: 12px; }
  .logo img { width: 54px; }
  .logo .wm { font-size: 1.6rem; }
  .logo .lab { font-size: .86rem; padding: 3px 8px; }
  .brand .decl { font-size: .86rem; }
}
@media (max-width: 380px) { .logo img { width: 38px; } .logo .wm { font-size: 1.15rem; } .brand .decl span { display: none; } }
@media (max-width: 859px) { .fab { display: none !important; } }
@media (max-width: 859px) {
  .brand .decl { white-space: nowrap; }
  .botnav button { font-size: .72rem; white-space: nowrap; letter-spacing: -.01em; }
  .hero .txt > .pill { font-size: .74rem; white-space: nowrap; padding: 5px 10px; }
}
@media (max-width: 440px) { .brand .decl span { display: none; } }
/* questionnaire du pilote : grandes zones tactiles, choix visible */
.choix { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.choix input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; }
.choix:has(input:checked) { border-color: var(--accent); background: var(--violet-soft); color: var(--ink); }

/* ===== v1.4 (aperçu) — accueil « Ton avenir aide-soignant commence ici », parcours, référentiel ===== */
:root { --hl-a: #F08BFF; --hl-b: #FFD3F8; --ring: rgba(240,139,255,.35); --glow: radial-gradient(60% 80% at 15% 10%, rgba(206,31,230,.28), transparent 70%), radial-gradient(50% 60% at 90% 90%, rgba(95,212,217,.12), transparent 70%); }
:root[data-theme="light"] { --hl-a: #A30FBA; --hl-b: #B514CC; --ring: rgba(181,20,204,.25); --glow: radial-gradient(60% 80% at 15% 10%, rgba(206,31,230,.10), transparent 70%); }
.stack-xl { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 64px); }
.h-sm { font-size: clamp(1.2rem, 3.4vw, 1.45rem); }
.centre { text-align: center; }
button.lien { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* hero */
.h14 { position: relative; display: grid; gap: clamp(20px, 4vw, 40px); align-items: center; padding: clamp(8px, 2vw, 24px) 0; }
.h14::before { content: ""; position: absolute; inset: -40px -16px; background: var(--glow); z-index: -1; pointer-events: none; }
@media (min-width: 900px) { .h14 { grid-template-columns: 1.25fr .75fr; } }
.h14-txt { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 700; font-size: .9rem; color: var(--ink); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; }
.kicker img { width: 28px; height: auto; }
.mega { font-size: clamp(2.5rem, 8.2vw, 4.7rem); line-height: .98; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.mega .hl { display: inline; background: linear-gradient(95deg, var(--hl-a), var(--hl-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promise { font-family: var(--f-display); font-size: clamp(1.1rem, 2.8vw, 1.4rem); font-weight: 600; color: var(--muted); }
.h14-art { position: relative; border-radius: 28px; overflow: hidden; min-height: 280px; aspect-ratio: 4 / 5; max-height: 560px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.h14-art .ph { position: absolute; inset: 0; background: var(--night) 62% 25% / cover no-repeat; }
.h14-art .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,10,46,0) 55%, rgba(22,10,46,.85)); }
.faits { position: absolute; left: 14px; right: 14px; bottom: 14px; list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.faits li { background: rgba(22,10,46,.78); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.faits b { font-family: var(--f-display); font-weight: 800; color: #F08BFF; margin-right: 3px; }
@media (max-width: 899px) { .h14-art { aspect-ratio: 16 / 10; min-height: 0; order: 2; } }

/* « Dis-moi… » */
.dm { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(14px, 3vw, 20px); box-shadow: var(--shadow); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg2 button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .88rem; border-radius: 999px; padding: 9px 10px; cursor: pointer; min-height: 42px; line-height: 1.2; }
.seg2 button[aria-pressed="true"] { background: var(--violet); color: var(--violet-ink); box-shadow: 0 4px 14px rgba(206,31,230,.35); }
.seg2 button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.dm-bar { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 2px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 16px; transition: border-color .15s, box-shadow .15s; }
.dm-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.dm-l { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--accent); white-space: nowrap; }
.dm-bar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; padding: 8px 0; }
.dm-bar .btn { min-height: 44px; padding-inline: 16px; }
@media (max-width: 520px) { .dm-bar .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .dm-bar .btn { width: 46px; padding: 0; } }
.dm-s { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-c { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 8px 14px; min-height: 42px; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.dm-c svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.dm-c:hover { border-color: var(--accent); transform: translateY(-1px); }

/* deux portes */
.portes { display: grid; gap: 18px; }
@media (min-width: 760px) { .portes { grid-template-columns: 1fr 1fr; } }
.porte { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.porte:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.porte.pb { --pc: var(--b2); } .porte.pa { --pc: var(--b1); }
.pph { position: relative; aspect-ratio: 16 / 8; background: var(--night) center 30% / cover no-repeat; }
.pph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,10,46,0) 45%, rgba(22,10,46,.8)); }
.pph .pill { position: absolute; left: 18px; bottom: 14px; z-index: 1; }
.ptx { display: flex; flex-direction: column; gap: 12px; padding: 20px clamp(18px, 3vw, 26px) 24px; flex: 1; }
.ptx h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.03em; }
.ptx > .btn { align-self: flex-start; margin-top: auto; }
.acces { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.acces li { border-bottom: 1px solid var(--line); }
.acces button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); font-weight: 600; text-align: left; padding: 12px 2px; min-height: 48px; cursor: pointer; }
.acces button svg { width: 18px; height: 18px; color: var(--pc, var(--accent)); flex: none; transition: transform .15s; }
.acces button:hover svg { transform: translateX(3px); }
.acces button:hover { color: var(--accent); }

/* aperçu du référentiel */
.teaser { display: grid; gap: 20px; align-items: start; background: linear-gradient(140deg, var(--surface-2), var(--surface) 70%); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 32px); }
@media (min-width: 900px) { .teaser { grid-template-columns: .8fr 1.2fr; } }
.blocs-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.blocs-mini button { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; padding: 10px 14px; color: var(--ink); cursor: pointer; }
.blocs-mini b { grid-row: span 2; font-family: var(--f-display); color: var(--c); font-size: .95rem; white-space: nowrap; }
.blocs-mini span { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.blocs-mini small { color: var(--muted); font-size: .8rem; }
.blocs-mini button:hover { border-color: var(--c); }

/* parcours */
.seance { display: flex; flex-direction: column; gap: 10px; text-align: left; border: 0; cursor: pointer; color: #fff; border-radius: 26px; padding: clamp(20px, 4vw, 30px); background: linear-gradient(125deg, #7A0F9A, #CE1FE6 55%, #F08BFF); box-shadow: 0 14px 34px rgba(206,31,230,.3); transition: transform .2s; font: inherit; }
.seance:hover { transform: translateY(-2px); }
.seance h2 { color: #fff; font-size: clamp(1.35rem, 4vw, 1.9rem); letter-spacing: -.03em; }
.seance p { color: rgba(255,255,255,.92); max-width: 60ch; }
.seance .tag { background: rgba(22,10,46,.35); color: #fff; }
.seance .go { font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.seance .go svg { width: 18px; height: 18px; }
.tag-ok { background: var(--ok-soft) !important; color: var(--ok) !important; }
.stats3 { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats3 .stat b { font-size: 1.35rem; }

/* états réels des contenus */
.etat { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.etat.e-socle-activites { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.etat.e-socle { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.etat.e-complet { color: var(--accent); }

/* étapes des séances */
.etapes { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.etapes li { flex: none; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px 5px 5px; font-weight: 700; font-size: .84rem; color: var(--muted); }
.etapes i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-size: .8rem; }
.etapes li.cours { border-color: var(--accent); color: var(--ink); }
.etapes li.cours i { background: var(--violet); color: var(--violet-ink); }
.etapes li.fait i { background: var(--ok); color: #0b2a1f; }

/* Ma formation */
.bloc, .modc { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 18px; padding: 18px; }
.modc h3 { font-size: 1.12rem; }
.comps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cn { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; background: color-mix(in srgb, var(--c) 20%, var(--surface)); color: var(--c); }
.srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.srcs li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.srcs a { font-weight: 700; overflow-wrap: anywhere; }
h4 { font-size: 1rem; }
[role="tab"][aria-selected="true"] { background: var(--violet); border-color: var(--accent); color: var(--violet-ink); }
@media (prefers-reduced-motion: reduce) { .porte:hover, .seance:hover, .dm-c:hover { transform: none; } }
.top nav button { white-space: nowrap; }
@media (min-width: 860px) and (max-width: 1180px) { .brand .decl span { display: none; } .top nav button { padding-inline: 10px; font-size: .88rem; } }
@media (max-width: 640px) {
  .kicker img { display: none; }
  .kicker { font-size: .82rem; padding: 6px 12px; }
  .dm-s { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px 6px; scroll-snap-type: x proximity; }
  .dm-c { flex: none; max-width: 78vw; white-space: normal; scroll-snap-align: start; }
}
@media (max-width: 640px) { .dm-c { max-width: 64vw; font-size: .86rem; } .etapes li:not(.cours) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .etapes li:not(.cours) { padding-right: 5px; } }
@media (max-width: 899px) { .h14-art { display: none; } }
.brand .decl span { white-space: nowrap; }
@media (min-width: 860px) and (max-width: 1260px) { .brand .decl span { display: none; } }
.apercu-band { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 4px); z-index: 40; background: #FFB86B; color: #160A2E; font: 700 .72rem/1.2 var(--f-body); padding: 3px 10px; border-radius: 999px; pointer-events: none; }

/* ===== v1.4 b — accueil : proposition de valeur visible dès l'arrivée ===== */
.h15 { position: relative; display: grid; gap: 18px; grid-template-areas: "txt" "cards" "dm"; }
.h15::before { content: ""; position: absolute; inset: -30px -16px auto; height: 420px; background: var(--glow); z-index: -1; pointer-events: none; }
@media (min-width: 900px) { .h15 { grid-template-columns: 1.05fr .95fr; grid-template-areas: "txt dm" "cards cards"; column-gap: 28px; row-gap: 22px; align-items: center; } }
.h15-txt { grid-area: txt; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cartes15 { grid-area: cards; display: grid; gap: 14px; }
@media (min-width: 700px) { .cartes15 { grid-template-columns: 1fr 1fr; } }
.h15-dm { grid-area: dm; min-width: 0; }
.titre15 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.titre15 .hl { background: linear-gradient(95deg, var(--hl-a), var(--hl-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.explic { font-size: clamp(1.02rem, 1.6vw, 1.12rem); color: var(--ink); max-width: 56ch; line-height: 1.5; }
.signature { font-family: var(--f-display); font-weight: 600; font-style: italic; color: var(--muted); font-size: .95rem; }
.c15 { --cc: var(--b1); display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cc); border-radius: 22px; padding: 18px clamp(16px, 2.4vw, 22px); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.c15.cb { --cc: var(--b2); }
.c15:hover { transform: translateY(-2px); }
.c15-h { display: flex; align-items: center; gap: 14px; }
.c15-ph { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--night) center 30% / cover no-repeat; border: 2px solid var(--cc); }
.c15 h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -.02em; }
.c15 p { color: var(--muted); line-height: 1.55; }
.c15-a { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: auto; }
.c15-a .btn-g { text-decoration: underline; text-underline-offset: 3px; }
.dm-h h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -.02em; }
.dm-h h2 span { color: var(--accent); }
.h15 .dm { gap: 12px; }
.reperes { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.reperes li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.reperes b { font-family: var(--f-display); color: var(--accent); }
.porte .pph { aspect-ratio: 16 / 5; }
@media (max-width: 640px) {
  .h15 .kicker { font-size: .78rem; }
  .c15 { padding: 16px; }
  .c15-a .btn-p { width: 100%; }
  .dm-s { flex-wrap: wrap; overflow: visible; }
  .dm-c { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .c15:hover { transform: none; } }
@media (min-width: 900px) {
  .h15 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); grid-template-areas: "txt txt" "cards dm"; align-items: stretch; row-gap: 20px; }
  .h15-txt { gap: 10px; }
  .titre15 { font-size: clamp(2rem, 3.1vw, 2.6rem); }
  .h15-dm .dm { height: 100%; }
  .h15-dm .dm-bar .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .h15-dm .dm-bar .btn { width: 46px; padding: 0; }
  .h15-dm .dm-c { font-size: .86rem; }
}
@media (min-width: 900px) {
  .h15 { grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1.15fr); align-items: start; }
  .h15-dm .dm { height: auto; }
  .cartes15 { align-items: start; }
  .c15 p { font-size: .95rem; }
  .dm-h h2 { font-size: 1.2rem; }
  .h15-dm .seg2 button { font-size: .82rem; padding: 7px 8px; min-height: 40px; }
}
@media (min-width: 900px) {
  .wrap:has(.h15) { max-width: 1240px; }
  .h15 { grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr); grid-template-areas: "txt dm" "cards dm"; row-gap: 18px; }
  .h15-txt { align-self: end; }
  .h15-dm { align-self: stretch; }
  .h15-dm .dm { height: 100%; }
  .titre15 { font-size: clamp(1.9rem, 2.7vw, 2.45rem); }
  .h15 .kicker { font-size: .82rem; padding-block: 4px; }
}
@media (min-width: 900px) {
  .top-in { max-width: 1240px; }
  .c15 { gap: 10px; padding-block: 16px; }
  .c15 .btn-p { font-size: .92rem; min-height: 44px; padding-inline: 18px; }
  .c15-a .btn-g { font-size: .92rem; min-height: 40px; }
  .c15 h2 { font-size: 1.45rem; }
}
@media (max-width: 640px) { .dm-c { flex: 0 1 auto; min-width: 0; } }
@media (max-width: 640px) {
  .h15 { gap: 14px; }
  .h15 .kicker { font-size: .72rem; padding: 4px 10px; }
  .titre15 { font-size: 1.6rem; }
  .explic { font-size: .97rem; }
  .signature { font-size: .88rem; }
  .c15 { gap: 8px; padding: 14px; }
  .c15-h { gap: 10px; }
  .c15-ph { width: 44px; height: 44px; }
  .c15 h2 { font-size: 1.2rem; }
  .c15 p { font-size: .93rem; line-height: 1.45; }
  .c15 .btn-p { min-height: 44px; font-size: .92rem; padding-block: 8px; }
}
/* v1.4 c — élève en premier */
.titre15 .t2 { display: inline-block; margin-top: 4px; font-size: .72em; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.explic b { color: var(--accent); font-weight: 700; }
.dm-st { color: var(--accent); font-family: var(--f-display); font-weight: 700; font-size: .98rem; margin-top: 2px; }
.c15-a { gap: 4px 6px; }
.c15-a .btn-p { margin-right: 6px; }
@media (max-width: 640px) { .c15-a .btn-p { margin-right: 0; } .c15-a .btn-g { padding-inline: 4px; } }
@media (min-width: 900px) {
  .h15-txt { gap: 8px; }
  .titre15 { font-size: clamp(1.8rem, 2.5vw, 2.25rem); }
  .explic { font-size: .95rem; line-height: 1.5; max-width: 72ch; }
  .signature { font-size: .9rem; }
  .c15 { gap: 8px; padding: 14px 18px 12px; }
  .c15 p { font-size: .92rem; line-height: 1.5; }
  .c15-ph { width: 48px; height: 48px; }
  .c15 h2 { font-size: 1.35rem; }
  .c15-a .btn-p { min-height: 42px; }
  .c15-a .btn-g { font-size: .85rem; min-height: 36px; padding-inline: 6px; }
  .dm-h h2 { font-size: 1.15rem; }
  .dm-st { font-size: .9rem; }
}
.c15-a .btn-g { min-height: 34px; padding-block: 2px; }
@media (min-width: 900px) { .cartes15 { align-items: stretch; } .c15-a { row-gap: 0; } .c15-a .btn-p { margin-bottom: 4px; } }
.c15-a .btn-g { justify-content: flex-start; text-align: left; }
@media (max-width: 400px) {
  .botnav button { font-size: 12px; white-space: normal; line-height: 1.1; text-align: center; padding-inline: 1px; }
  .titre15 { font-size: 1.45rem; }
  .dm-l { font-size: 1rem; }
  .dm-bar { padding-left: 12px; gap: 6px; }
  .h15 .kicker { font-size: 12px; }
}
