/* Polices hébergées sur le site (27/10/2026) : plus aucun appel à Google Fonts, donc aucune adresse IP de visiteur
   transmise à Google. Fraunces et Figtree, licence SIL Open Font License 1.1 (voir fonts/LISEZMOI.txt). Polices variables :
   un fichier couvre toutes les graisses. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Préconsultation — feuille de style unique.
   Principes : une carte par question (comme le questionnaire de pré-consultation),
   grands boutons tactiles, thème clair/sombre automatique, animations coupées si
   l'utilisateur les refuse (prefers-reduced-motion). Aucune dépendance. */

:root {
  --bg: #f4f1ea;
  --bg-glow-1: rgba(14, 107, 104, .13);
  --bg-glow-2: rgba(232, 132, 90, .12);
  --surface: #ffffff;
  --surface-2: #f6f8f7;
  --ink: #132a2b;
  --ink-2: #53696b;
  --ink-3: #8a9b9c;
  --line: #e1e8e6;
  --pri: #0e6b68;
  --pri-d: #0a4f4d;
  --pri-l: #e1f2f0;
  --pri-ink: #ffffff;
  --accent: #e8845a;
  --red: #b3261e;
  --red-bg: #fdeceb;
  --red-line: #f2b8b4;
  --warn: #8a4f00;
  --warn-bg: #fff3dc;
  --warn-line: #f0d29a;
  --ok: #1c6b3a;
  --ok-bg: #e4f4ea;
  --body-fill: #e9efed;
  --body-line: #b9c9c6;
  --shadow: 0 1px 2px rgba(19, 42, 43, .05), 0 12px 40px -12px rgba(19, 42, 43, .18);
  --shadow-sm: 0 1px 2px rgba(19, 42, 43, .06), 0 4px 14px -6px rgba(19, 42, 43, .14);
  --radius: 22px;
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1516; --bg-glow-1: rgba(76, 194, 187, .10); --bg-glow-2: rgba(232, 132, 90, .07);
    --surface: #122122; --surface-2: #172b2c; --ink: #e5efee; --ink-2: #a2b8b9; --ink-3: #6f8788;
    --line: #243e40; --pri: #4cc2bb; --pri-d: #7fd8d2; --pri-l: #163a3a; --pri-ink: #062321;
    --red: #ff958c; --red-bg: #3b1916; --red-line: #6d2b27;
    --warn: #f0b35a; --warn-bg: #36280f; --warn-line: #67491a;
    --ok: #7bd69a; --ok-bg: #12301d; --body-fill: #1c3132; --body-line: #35595b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 40px -12px rgba(0,0,0,.6);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px -6px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  background:
    radial-gradient(900px 500px at 8% -8%, var(--bg-glow-1), transparent 60%),
    radial-gradient(800px 480px at 100% 8%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding: 0 max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left));
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
h1:focus, h2:focus, h1:focus-visible, h2:focus-visible { outline: none; }   /* le titre reçoit le focus pour les lecteurs d'écran, sans cadre visible */

.shell { max-width: 560px; margin: 0 auto; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 12px; padding: 22px 2px 14px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 18px; line-height: 1.15; letter-spacing: -.01em; }
.brand-sub { font-size: 12.5px; color: var(--ink-2); }
.topbar .spacer { flex: 1; }
.pill { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 3px 9px; border-radius: 999px; }
.link-btn { background: none; border: 0; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }

/* ── Carte ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px 24px; position: relative; overflow: hidden;
}
.enter { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
.enter.back { animation-name: riseBack; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes riseBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.progress { margin-bottom: 22px; }
.progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.progress-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--pri), color-mix(in srgb, var(--pri) 55%, var(--accent))); transition: width .5s cubic-bezier(.2,.7,.2,1); }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pri); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; opacity: .6; }
.q-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 5.6vw, 27px); line-height: 1.22; letter-spacing: -.012em; margin: 0 0 8px; text-wrap: balance; }
.q-aide { margin: 0 0 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.q-title + .q-body { margin-top: 20px; }

/* ── Choix ───────────────────────────────────────────────────────────────── */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices.grid { display: grid; grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; padding: 15px 16px;
  font-size: 15.5px; line-height: 1.35; transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.choices.grid .choice { justify-content: center; text-align: center; padding: 18px 10px; font-weight: 600; font-size: 17px; }
.choice:hover { border-color: color-mix(in srgb, var(--pri) 45%, transparent); background: color-mix(in srgb, var(--pri-l) 55%, var(--surface-2)); }
.choice:active { transform: scale(.985); }
.choice .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; transition: all .15s; }
.choice.check .dot { border-radius: 7px; }
.choices.grid .choice .dot { display: none; }
.choice .dot svg { width: 12px; height: 12px; stroke: var(--pri-ink); opacity: 0; transform: scale(.4); transition: all .18s; }
.choice .sub { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; font-weight: 400; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { background: var(--pri-l); border-color: var(--pri); color: var(--pri-d); font-weight: 600; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri) 14%, transparent); }
.choice[aria-pressed="true"] .dot, .choice[aria-checked="true"] .dot { background: var(--pri); border-color: var(--pri); }
.choice[aria-pressed="true"] .dot svg, .choice[aria-checked="true"] .dot svg { opacity: 1; transform: none; }
.choice.danger[aria-pressed="true"] { background: var(--red-bg); border-color: var(--red); color: var(--red); box-shadow: none; }
.choice.danger[aria-pressed="true"] .dot { background: var(--red); border-color: var(--red); }

/* Pastilles à choix multiples (comme les « chips » du questionnaire d'origine) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14.5px; transition: all .15s; }
.chip:hover { border-color: var(--pri); }
.chip[aria-pressed="true"] { background: var(--pri-l); border-color: var(--pri); color: var(--pri-d); font-weight: 600; }
.chip[aria-pressed="true"]::before { content: '✓ '; }

/* ── Curseur de douleur ──────────────────────────────────────────────────── */
.scale { text-align: center; }
.scale-val { font-family: var(--font-serif); font-size: 64px; line-height: 1; font-weight: 600; transition: color .25s; }
.scale-val small { font-family: var(--font); font-size: 20px; color: var(--ink-3); font-weight: 400; }
.scale-word { min-height: 24px; color: var(--ink-2); font-size: 14.5px; margin: 4px 0 14px; }
.range { width: 100%; height: 34px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; background: var(--track); }
.range::-moz-range-track { height: 10px; border-radius: 6px; background: var(--track); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 3px solid var(--thumb, var(--pri)); margin-top: -10px; box-shadow: var(--shadow-sm); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--thumb, var(--pri)); box-shadow: var(--shadow-sm); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.range.pain { --track: linear-gradient(90deg, #4cae6b, #e8c84a 45%, #e8845a 70%, #cf3b30); }
.range.qual { --track: linear-gradient(90deg, #cf3b30, #e8845a 30%, #e8c84a 55%, #4cae6b); }

/* ── Silhouette ──────────────────────────────────────────────────────────── */
.body-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--pri-d); box-shadow: var(--shadow-sm); }
/* Bodychart : l'image sert de fond, le canvas transparent par-dessus reçoit le dessin. */
.bc { position: relative; width: min(100%, 460px); touch-action: none; background: #fff; border-radius: var(--r, 16px); border: 1px solid var(--line); }
.bc img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.bc canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.seg .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.seg .dot.p { background: #e24b4a; } .seg .dot.s { background: #ef9f27; }
.bc-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.zone { fill: var(--body-fill); stroke: var(--body-line); stroke-width: 1.4; cursor: pointer; transition: fill .15s, stroke .15s; outline: none; }
.zone:hover, .zone:focus-visible { fill: color-mix(in srgb, var(--pri) 28%, var(--body-fill)); stroke: var(--pri); }
.zone.on-main { fill: color-mix(in srgb, #e5493f 62%, var(--body-fill)); stroke: #c0322a; animation: pulse 1.8s ease-in-out infinite; }
.zone.on-sec { fill: color-mix(in srgb, #ef9f27 60%, var(--body-fill)); stroke: #b8770a; }
@keyframes pulse { 50% { fill-opacity: .72; } }
.zone.static { cursor: default; pointer-events: none; }
.body-hint { font-size: 13px; color: var(--ink-2); text-align: center; min-height: 20px; }
.zone-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.zone-tag { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center; }
.zone-tag b { font-weight: 600; }
.zone-tag.main { border-color: #c0322a; background: var(--red-bg); color: var(--red); }
.zone-tag.sec { border-color: #b8770a; background: var(--warn-bg); color: var(--warn); }
.zone-tag .x { opacity: .6; font-size: 15px; line-height: 1; }
details.alt { width: 100%; margin-top: 4px; }
details.alt summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); text-align: center; list-style: none; }
details.alt summary::-webkit-details-marker { display: none; }
details.alt[open] summary { margin-bottom: 10px; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav { display: flex; gap: 10px; margin-top: 26px; }
.btn { border: 0; border-radius: 14px; padding: 15px 20px; font-size: 16px; font-weight: 600; transition: all .18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--pri); color: var(--pri-ink); flex: 1; box-shadow: 0 6px 18px -8px var(--pri); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -8px var(--pri); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); padding: 14px 18px; }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.soft { background: var(--pri-l); color: var(--pri-d); }
.btn.block { width: 100%; }
.skip { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

/* ── Écrans d'accueil et de résultat ─────────────────────────────────────── */
.hero-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 7.4vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 12px; text-wrap: balance; }
.hero-title em { font-style: italic; color: var(--pri); }
.moi { border-left: 3px solid var(--pri); padding: 2px 0 2px 14px; margin: 0 0 14px; color: var(--ink-2); }
.passer { margin-top: 10px; }
.lede { color: var(--ink-2); margin: 0 0 20px; font-size: 16px; }
.facts { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.facts .ic { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--pri-l); color: var(--pri-d); display: grid; place-items: center; }
.facts .ic svg { width: 16px; height: 16px; }
.sos { display: flex; gap: 10px; align-items: center; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); border-radius: 14px; padding: 11px 14px; font-size: 14px; margin-bottom: 20px; }
.sos strong { font-weight: 700; }

.alert-card { border-radius: var(--radius); padding: 26px 22px 22px; border: 1.5px solid; box-shadow: var(--shadow); }
.alert-card.red { background: var(--red-bg); border-color: var(--red); color: var(--ink); }
.alert-card.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--ink); }
.alert-card.info { background: var(--pri-l); border-color: var(--pri); color: var(--ink); }
.alert-card.info .badge-ic { background: var(--pri); }
.alert-card.info h2 { color: var(--pri-d); }
.alert-card .badge-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.alert-card.red .badge-ic { background: var(--red); animation: ring 2.4s ease-in-out infinite; }
.alert-card.warn .badge-ic { background: #c27a12; }
@keyframes ring { 0%,100% { box-shadow: 0 0 0 0 rgba(179,38,30,.45); } 60% { box-shadow: 0 0 0 14px rgba(179,38,30,0); } }
.alert-card h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.alert-card.red h2 { color: var(--red); }
.alert-card.warn h2 { color: var(--warn); }
.alert-card p { margin: 0 0 10px; }
.alert-card ul { margin: 0 0 12px; padding-left: 20px; }
.call { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--red); color: #fff; border-radius: 14px; padding: 16px; font-size: 20px; font-weight: 700; text-decoration: none; margin: 16px 0 6px; }

.sect-title { font-family: var(--font-serif); font-weight: 600; font-size: 21px; margin: 30px 0 12px; letter-spacing: -.01em; }
.result-head { padding: 4px 2px 6px; }
.result-head .eyebrow { margin-bottom: 8px; }

.offers { display: grid; gap: 14px; }
.offer { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px 20px 18px; position: relative; box-shadow: var(--shadow-sm); }
.offer:not(.rec) { box-shadow: none; }
.offer.rec { border: 3px solid var(--pri); background: color-mix(in srgb, var(--pri) 7%, var(--surface)); padding-top: 26px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--pri) 16%, transparent), var(--shadow); }
.ribbon { position: absolute; top: -14px; left: 18px; background: var(--pri); color: var(--pri-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
/* Étiquette rouge « plus de dispos » : même rangée que les autres étiquettes, sans rotation ni animation. */
.tag.hot { background: #d92d20; color: #fff; font-weight: 700; border-color: #d92d20; }
.tag.hot::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #fff; vertical-align: 1px; }
.offer .places { color: #b42318; font-weight: 700; font-size: 14.5px; margin: 6px 0 10px; }
.pts { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink); }
.avant-rdv { max-width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.avant-rdv::backdrop { background: rgba(0, 0, 0, .45); }
.avant-rdv h3 { font-family: var(--font-serif); font-size: 21px; margin: 0 0 8px; }
.avant-rdv p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.offer h3 { font-family: var(--font-serif); font-size: 21px; margin: 4px 0 4px; letter-spacing: -.01em; }
.offer .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.offer p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.why { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 7px; }
.why li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink); }
.why li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c6b3a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.evidence { background: var(--pri-l); border-radius: 14px; padding: 13px 15px; font-size: 14px; color: var(--pri-d); margin: 4px 0 14px; }
.evidence .src { display: block; font-size: 12.5px; opacity: .85; margin-top: 4px; }
.how { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.how b { color: var(--ink); }

.tips { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.tips ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; font-size: 15px; }
.tips li .emo { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--pri-l); display: grid; place-items: center; font-size: 17px; }
.tips li b { display: block; }
.tips li span { color: var(--ink-2); font-size: 14px; }
.safety { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; border: 1px solid var(--warn-line); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin-top: 14px; }
.panel h3 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 6px; }
.panel p { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }
.field { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); margin-bottom: 12px; }
.field:focus { outline: none; border-color: var(--pri); background: var(--surface); }
.preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; margin: 4px 0 14px; }
.preview iframe { display: block; width: 100%; height: 420px; border: 0; background: #fff; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 180px; }

details.trace { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
details.trace summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details.trace ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
details.trace code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

.legal { margin: 26px 4px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; text-align: center; }
.legal a { color: inherit; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); z-index: 20; animation: rise .3s both; }

@media (max-width: 380px) { .card { padding: 24px 18px 20px; } .choices.grid .choice { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { body { background: #fff; } .topbar, .nav, .legal { display: none; } }

/* Écran de signes d'alerte : lignes compactes, plusieurs groupes sur la même page. */
.sig-groupe { margin: 0 0 14px; }
.sig-titre { margin: 4px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sig-groupe .choice { padding: 9px 12px; font-size: 14.5px; min-height: 0; }
.sig-groupe .choices { gap: 6px; }
.champ-libre { display: block; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.champ-libre:focus { outline: 2px solid var(--pri); border-color: var(--pri); }
.champ-libre[hidden] { display: none; }
