/*
 * Parcours fauteuil roulant : feuille de style de l'outil (refonte de novembre 2026), identité VPH Pro « La Rampe » (docs/identite).
 * Une seule famille de caractères (Geist, police du logotype, licence OFL, hébergée par le site : /outil/fonts), fond brume, cartes blanches,
 * champs à bordure nette. Couleurs reprises de la palette (docs/identite/palette.mjs) : outremer de la marque, azur de la roue en accent.
 * Une couleur par espace (Parcours = outremer, Dossier = azur, Aide = violet) : repère « Vous êtes ici », onglet actif, pictogrammes.
 * Thèmes clair et sombre ; du téléphone de 320 px au très grand écran (contenu limité à 1520 px, colonnes et sommaires collants).
 * La page appelle ce fichier avec l'empreinte de son contenu (« vph.css?v=… », posée par le serveur) : elle ne s'affiche jamais avec un ancien style.
 */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/outil/fonts/geist-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/outil/fonts/geist-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; }

/* ---------- Couleurs et mesures (valeurs de la palette, docs/identite/palette.mjs) ---------- */
:root {
  --brand: #3B2BEF; --brand-600: #2C1DC9; --brand-fill: #3B2BEF; --brand-soft: #ECEBFF;
  --ink: #0E0C2E; --muted: #4C4A6B; --line: #E2E1F5; --line-strong: #77749E; --bg: #F5F5FF; --card: #FFFFFF; --soft: #EFEEFA; --field: #FFFFFF;
  --mint: #0A9BE8; --sun: #F6B250; --coral: #FF8FB8; --coral-600: #9A2259;
  --ok: #1D7A35; --ok-soft: #E3F3E6; --warn: #8A5300; --warn-soft: #FFF0D4; --err: #B42318; --err-soft: #FDE8E6;
  --space: #3B2BEF; --space-soft: #ECEBFF; --space-ink: #FFFFFF;
  --grad: linear-gradient(135deg, #3B2BEF 0%, #2C1DC9 62%, #0868A6 135%);
  --r: 20px; --r-sm: 14px;
  --shadow: 0 1px 2px rgb(14 12 46 / 5%), 0 10px 30px -18px rgb(14 12 46 / 28%);
  --shadow-lg: 0 2px 4px rgb(14 12 46 / 5%), 0 28px 60px -28px rgb(59 43 239 / 45%);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(1rem, 3.2vw, 3rem); --pad: clamp(1.1rem, 2.2vw, 1.6rem);
  color-scheme: light;
}
body[data-view="dossier"] { --space: #0868A6; --space-soft: #E1F3FD; }
body[data-view="aide"] { --space: #6B3FA0; --space-soft: #F1EAFA; }
html[data-theme="dark"] {
  --brand: #A9A3FF; --brand-600: #5A4FF5; --brand-fill: #5A4FF5; --brand-soft: #25216A;
  --ink: #F4F3FF; --muted: #B8B5DB; --line: #302D63; --line-strong: #8784B8; --bg: #0D0B26; --card: #18163D; --soft: #201D4C; --field: #120F31;
  --mint: #5CD0FF; --sun: #F6B250; --coral: #FF9CC8; --coral-600: #FF9CC8;
  --ok: #6FD98C; --ok-soft: #123320; --warn: #FFC65C; --warn-soft: #3A2A0A; --err: #FF8F85; --err-soft: #3F1816;
  --grad: linear-gradient(135deg, #2C1DC9 0%, #3B2BEF 60%, #0868A6 135%);
  --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 12px 32px -18px rgb(0 0 0 / 70%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 35%), 0 28px 60px -28px rgb(0 0 0 / 80%);
  color-scheme: dark;
}
html[data-theme="dark"] body { --space: #A9A3FF; --space-soft: #25216A; --space-ink: #0D0B26; }
html[data-theme="dark"] body[data-view="dossier"] { --space: #5CD0FF; --space-soft: #0E2B45; }
html[data-theme="dark"] body[data-view="aide"] { --space: #CDB0F5; --space-soft: #2C1F43; }
html[data-contrast="high"] { --muted: #2E2C4D; --line: #77749E; --line-strong: #4C4A6B; }
html[data-contrast="high"][data-theme="dark"] { --muted: #DCDAF5; --line: #5E5A99; --line-strong: #A3A0D0; }
html[data-size="1"] { font-size: 112.5%; } html[data-size="2"] { font-size: 125%; }
/* Très grand écran : tout grandit d'un cran (les mesures sont en rem), le contenu occupe mieux la largeur. */
@media (min-width: 2200px) { html:not([data-size]) { font-size: 112.5%; } html[data-size="1"] { font-size: 125%; } html[data-size="2"] { font-size: 137.5%; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h, 7rem) + var(--sub-h, 0px) + .75rem); }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
:where(svg:not([width="0"])) { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
#q-result:focus { outline: 0; }
::selection { background: var(--brand-fill); color: #fff; }
.wrap, .top__in { width: min(95rem, 100% - 2 * var(--gut)); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .92rem; }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--card); padding: .6rem 1rem; border-radius: 10px; }
/* Texte réservé aux lecteurs d'écran (annonce du changement d'espace) : présent, jamais visible. */
.vh, .sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack > *, .grid3 > *, .form > *, .steps7 > *, .types > * { min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--r-sm); font: 700 1rem/1.2 var(--font); border: 0; cursor: pointer; text-align: center; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s, color .2s; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--brand-fill); color: #fff; box-shadow: 0 10px 22px -12px var(--brand-fill); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.btn--ghost[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.btn--quiet { background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding-inline: .8rem; }
.btn--quiet:hover { color: var(--err); }
.btn--sm { padding: .55rem 1.05rem; font-size: .95rem; }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.tag { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.4; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: var(--ok); } .tag--warn { background: var(--warn-soft); color: var(--warn); } .tag--no { background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); white-space: normal; }
.tag--auto { background: var(--ok-soft); color: var(--ok); margin-left: .5rem; font-size: .72rem; vertical-align: middle; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 1.4rem; height: 2px; background: currentColor; border-radius: 2px; }
.note { padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--brand-soft); border-left: 4px solid var(--brand); font-size: .95rem; }
.note--warn { background: var(--warn-soft); color: var(--warn); border-left-color: currentColor; }
.note--no { background: var(--err-soft); color: var(--err); border-left-color: currentColor; }
.saved { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--ok); }
.saved svg { width: 1rem; height: 1rem; }
ul.dots { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
ul.dots li { position: relative; padding-left: 1.5rem; }
ul.dots li::before { content: ''; position: absolute; left: .1rem; top: .58em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--space); }

/* ---------- Cartes ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: var(--pad); border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.card--soft { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.card__t { display: flex; align-items: center; gap: .7rem; }
.card__ic, .acc__ic { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--space-soft); color: var(--space); }
.card__ic svg, .acc__ic svg { width: 1.3rem; height: 1.3rem; }
#d-pieces:empty { display: none; }

/* ---------- Champs : fond blanc, bordure nette, étiquette au-dessus ---------- */
.f { display: block; font-weight: 700; margin: 0 0 .35rem; font-size: .95rem; line-height: 1.35; }
.field { min-width: 0; }
label.chk { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; margin: .5rem 0; cursor: pointer; line-height: 1.45; }
label.chk input { margin-top: .05rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--field); transition: border-color .15s, box-shadow .15s; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
/* Champ en erreur (formulaire de contact) : bordure rouge, gardée au focus. */
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); }
select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737b94' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; text-overflow: ellipsis; }
textarea { min-height: 5.4rem; max-height: 28rem; resize: vertical; field-sizing: content; }
/* Cases à cocher : carrées, de la même taille partout dans l'outil (mode professionnel, identité, contact). */
input[type=checkbox] { appearance: none; flex: none; width: 1.4rem; height: 1.4rem; margin: 0; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--field) center / 82% no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
input[type=checkbox]:hover { border-color: var(--brand); }
input[type=checkbox]:checked { border-color: var(--brand-fill); background-color: var(--brand-fill); background-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
input[type=checkbox]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
input[type=radio] { flex: none; width: 1.4rem; height: 1.4rem; margin: 0; accent-color: var(--brand-fill); cursor: pointer; }
/*
 * Grammaire des champs du dossier (19 novembre 2026, la même que celle du dossier partagé) : une question par ligne.
 * Dès que la rubrique a la place (44rem), le libellé est à gauche et la saisie à droite, toutes sur le même axe ; en colonne étroite
 * (téléphone, texte agrandi), le libellé passe au-dessus. Les zones de texte commencent petites et grandissent avec ce qu'on écrit.
 * Les sous-titres des fiches (« Facteurs personnels »…) sont des bandeaux d'un bord à l'autre de l'encart.
 */
.fields, .idgrid, .prepgrid { container: champs / inline-size; min-width: 0; }
.fields > .field, .idgrid > .field, .prepgrid > .field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem 2rem; align-items: start; padding: .75rem 0; border-top: 1px solid var(--line); }
.fields > .field:first-child, .idgrid > .field:first-child, .prepgrid > .field:first-child, .subq + .field { border-top: 0; }
.fields > .field:first-child, .idgrid > .field:first-child, .prepgrid > .field:first-child { padding-top: .2rem; }
.fields > .field:last-child, .idgrid > .field:last-child, .prepgrid > .field:last-child { padding-bottom: .2rem; }
:is(.fields, .idgrid, .prepgrid) > .field > .f { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
:is(.fields, .idgrid, .prepgrid) > .field > textarea { min-height: 4.2rem; }
@supports (field-sizing: content) { :is(.fields, .idgrid, .prepgrid) > .field > textarea { min-height: 3rem; } }
.idgrid > .field > input, .field--line > input, .field--id input, #d-me { max-width: 26rem; }
/*
 * Contrôle à la mesure de la donnée (19 novembre 2026) : un nombre tient dans une case courte avec son unité à côté ; oui / non et cases
 * à la suite, sur une ligne quand elles tiennent ; aide et message d'erreur sous le contrôle, reliés par aria-describedby.
 */
.field__c { min-width: 0; display: grid; gap: .3rem; justify-items: start; }
.field__c > input, .field__c > textarea, .field__c > .choix { width: 100%; }
.num { display: inline-flex; align-items: center; gap: .55rem; }
.num input { width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.num__u { color: var(--muted); font-weight: 600; } .num--libre input { width: min(18rem, 60vw); text-align: left; } /* ancienne saisie libre plus longue que le nombre attendu : lisible en entier */
.field--naiss input { max-width: 11rem; } .field--nir input { max-width: 17rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; } .field--tel input { max-width: 15rem; }
.aide { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.4; max-width: 46rem; }
.err { margin: 0; color: var(--err); font-size: .9rem; font-weight: 600; line-height: 1.4; }
.err:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--err); }
.choix { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.5rem; min-width: 0; }
.choix--liste { flex-direction: column; align-items: flex-start; gap: 0; }
.choix__o { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; margin: 0; cursor: pointer; line-height: 1.35; }
.lien { appearance: none; min-height: 44px; padding: 0 .3rem; border: 0; background: none; font: 600 .9rem var(--font); color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien:hover { color: var(--err); }
.ancien { width: 100%; display: grid; gap: .3rem; margin-top: .3rem; padding: .6rem .75rem; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.f--ancien { margin: 0; font-size: .88rem; font-weight: 600; color: var(--muted); }
@container champs (min-width: 44rem) {
  .fields > .field, .idgrid > .field, .prepgrid > .field { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); }
  :is(.fields, .idgrid, .prepgrid) > .field > .f { padding-top: .75rem; }
  :is(.fields, .idgrid, .prepgrid) > .field--choix > .f { padding-top: .55rem; }
}
.subq { margin: 1.1rem calc(-1 * var(--pad)) .5rem; padding: .6rem var(--pad); background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--space); font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.fields > .subq:first-child { margin-top: .2rem; }
#d-ida { margin-top: .4rem; }

/* ---------- En-tête, onglets, repère « Vous êtes ici » ---------- */
body.app { background: var(--bg); }
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; gap: 1rem; padding: .55rem 0; }
.top__logo { flex: none; display: block; border-radius: 10px; }
/* Logo horizontal de la plateforme (public/logo.svg et logo-sombre.svg, copies de docs/identite/svg) : la version claire en thème clair, la sombre
   (symbole outremer clair et glacier, nom en blanc lavande) en thème sombre. 24 px de haut, 20 au plus petit : au-dessus de la taille minimale (16). */
.top .logo { display: block; height: 24px; width: auto; }
.top .logo--sombre, html[data-theme="dark"] .top .logo--clair { display: none; } html[data-theme="dark"] .top .logo--sombre { display: block; }
.top__title { flex: 1; min-width: 0; display: grid; }
.top__title h1 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.01em; }
.top__sub { font-size: .84rem; line-height: 1.3; color: var(--muted); }
.themebtn { flex: none; display: inline-grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.themebtn svg { width: 1.35rem; height: 1.35rem; }
.themebtn:hover { color: var(--brand); background: var(--brand-soft); }
.tabs { display: flex; gap: .25rem; }
.tabs--top { padding: .25rem; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.05rem; border-radius: 12px; font-weight: 700; font-size: .98rem; color: var(--ink); transition: background .2s, color .2s, box-shadow .2s; }
.tab svg { width: 1.2rem; height: 1.2rem; }
.tab:hover { background: color-mix(in srgb, var(--space) 12%, transparent); }
/* Onglet actif : plein, de la couleur de l'espace. */
.tab[aria-current="page"] { background: var(--space); color: var(--space-ink); font-weight: 800; box-shadow: 0 6px 14px -8px var(--space); }
.tabs--bar { display: none; }

.here { background: var(--space-soft); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--space) 22%, transparent); transition: background .3s; }
.here__in { padding: .3rem 0; gap: .55rem; align-items: center; }
.here__ic { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--space); color: var(--space-ink); }
.here__ic svg { width: .95rem; height: .95rem; }
.here__txt { margin: 0; min-width: 0; font-size: .9rem; line-height: 1.35; color: var(--ink); }
.here__lbl { color: var(--muted); font-weight: 500; }
.here__txt b { font-weight: 800; }
.here__sep { margin: 0 .45rem; color: var(--muted); font-weight: 700; }
#here-sub { font-weight: 600; }
.here--flash { animation: hereflash 1.2s ease-out 1; }
@keyframes hereflash { 0% { background: color-mix(in srgb, var(--space) 32%, var(--space-soft)); } 100% { background: var(--space-soft); } }

.resume { background: var(--card); box-shadow: inset 0 -1px 0 var(--line); }
.resume__in { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; padding: .4rem 0; }
.resume__tx { min-width: 0; flex: 1 1 14rem; font-size: .92rem; line-height: 1.35; }
.resume b { display: block; } .resume span.s { color: var(--muted); }
.resume .btn { min-height: 44px; }
/* La bande « Reprendre » ne s'affiche pas dans la vue où elle mène : elle n'y servirait à rien et prendrait la place du contenu. */
body[data-view="dossier"] #resume[data-to="dossier"], body[data-view="categorie"] #resume[data-to="categorie"] { display: none; }

/* ---------- Vues ---------- */
.view { display: none; }
body[data-view="categorie"] #categorie, body[data-view="dossier"] #dossier, body[data-view="aide"] #aide { display: block; animation: viewin .28s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
.view__in { padding: clamp(1.1rem, 2.4vw, 2.2rem) 0 3.5rem; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.view__title { font-size: clamp(1.45rem, 2vw, 1.9rem); scroll-margin-top: .5rem; } /* le décalage sous l'en-tête collant est porté par scroll-padding-top (html) */
.view__lead { max-width: 46rem; margin-top: -.6rem; }

/* ---------- Vue 1 : accueil du parcours (aucun véhicule choisi) puis une question à la fois ---------- */
.pview { align-items: start; }
.pcol { display: contents; }
.intro { order: 1; display: grid; gap: .8rem; }
#wiz { order: 2; } #q-result { order: 3; } .how { order: 4; } .trustline { order: 5; }
.kicker { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.kicker li { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .82rem; font-weight: 700; }
.kicker svg { width: .95rem; height: .95rem; }
.intro__title { font-size: clamp(1.75rem, 3.3vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.intro__lead { font-size: clamp(1.02rem, 1.2vw, 1.2rem); color: var(--muted); max-width: 38rem; }
.presc { font-size: .92rem; color: var(--muted); }
.presc a { display: inline-flex; align-items: center; gap: .3rem; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; } .presc a svg { width: 1rem; height: 1rem; }
.how { display: grid; gap: 1.2rem; align-items: center; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: how; }
.how__steps li { display: grid; grid-template-columns: auto 1fr; gap: 0 .9rem; align-items: center; counter-increment: how; }
.how__steps li > span:last-child { grid-column: 2; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.how__steps b { font-size: 1.05rem; }
.how__steps b::before { content: counter(how) '. '; color: var(--brand); }
.how__ic { grid-row: span 2; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 16px; background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.how__ic svg { width: 1.5rem; height: 1.5rem; }
.art { width: min(100%, 24rem); height: auto; margin-inline: auto; }
.art__blob { fill: var(--brand-soft); } .art__sun { fill: var(--sun); opacity: .45; }
.art__sheet { fill: var(--card); stroke: var(--line); stroke-width: 1.5; } .art__ink { fill: var(--brand-fill); } .art__line { fill: var(--line); }
.art__ok { fill: var(--mint); } .art__tick { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.art__wheel { fill: none; stroke: var(--brand-fill); stroke-width: 9; } .art__hub { fill: var(--brand-fill); } .art__spoke { fill: none; stroke: var(--brand-fill); stroke-width: 2.5; opacity: .3; }
.art__frame { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; } .art__caster { fill: var(--card); stroke: var(--ink); stroke-width: 7; }
.art__body { fill: none; stroke: var(--coral); stroke-width: 28; stroke-linecap: round; } .art__leg { fill: none; stroke: var(--coral); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.art__arm { fill: none; stroke: var(--coral-600); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; } .art__head { fill: var(--sun); }
.art__ground { fill: var(--ink); opacity: .1; } .art__wheelbg { fill: var(--card); opacity: .55; } .art__spark { fill: var(--mint); } .art__spark--2 { fill: var(--coral); }
.trustline { display: flex; align-items: flex-start; gap: .5rem; max-width: 52rem; } .trustline svg { width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--ok); }

.wiz { gap: 1.1rem; padding: clamp(1.15rem, 2.6vw, 2.2rem); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.wiz__top { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; min-height: 2rem; }
.wiz__top .saved { margin-left: auto; }
.wiz__step { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.wiz__back { appearance: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; margin: -.5rem 0 -.5rem -.7rem; padding: 0 .9rem 0 .7rem; border: 0; border-radius: 12px; background: transparent; font: 700 .95rem var(--font); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.wiz__back:hover { background: var(--brand-soft); color: var(--brand); }
.wiz__back svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; } .wiz__back:hover svg { transform: translateX(-3px); }
.wiz__bar { height: 8px; border-radius: 99px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.wiz__bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-fill), var(--mint)); border-radius: 99px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.wiz h3.q { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.wiz h3.q:focus { outline: 0; }
.help { color: var(--muted); font-size: .98rem; max-width: 42rem; }
body:not([data-wiz="pro"]) .wiz h3.q, body:not([data-wiz="pro"]) .wiz .opts, body:not([data-wiz="pro"]) .wiz .chips, body:not([data-wiz="pro"]) .wiz .types, body:not([data-wiz="pro"]) .wiz .log { animation: qin .3s cubic-bezier(.2,.8,.2,1); }
@keyframes qin { from { opacity: 0; transform: translateX(14px); } }

/* Réponses : grandes cartes, une par ligne ; zone tactile généreuse. */
.opts { display: grid; gap: .7rem; }
.opt, .type, .chipbtn { appearance: none; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 64px; padding: .9rem 1.1rem .9rem 1.25rem; border-radius: 16px; font: 700 1.06rem/1.35 var(--font); }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.opt > svg { width: 2.2rem; height: 2.2rem; padding: .5rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); transition: transform .2s, background .15s, color .15s; }
.opt:hover, .type:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); box-shadow: 0 12px 24px -18px var(--brand-fill); }
.opt:hover > svg { background: var(--brand-fill); color: #fff; transform: translateX(3px); }
.opt:active, .type:active { transform: scale(.99); }
.opts--yn { grid-template-columns: 1fr 1fr; }
.chips { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.chipbtn { display: flex; align-items: flex-start; gap: .75rem; min-height: 56px; padding: .85rem 1rem; border-radius: 14px; font: 600 1rem/1.35 var(--font); }
.chipbtn::before { content: ''; flex: none; width: 1.4rem; height: 1.4rem; margin-top: .05rem; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--field); }
.chipbtn small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.chipbtn:hover { border-color: var(--brand); }
.chipbtn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.chipbtn[aria-pressed="true"]::before { border-color: var(--brand-fill); background: var(--brand-fill) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; }
/* Choix du véhicule : lignes sur téléphone, tuiles illustrées dès qu'il y a la place. */
.types { display: grid; gap: .7rem; }
.type { display: flex; align-items: center; gap: .9rem; min-height: 68px; padding: .6rem .9rem .6rem .7rem; border-radius: 18px; font: 700 1.05rem/1.25 var(--font); }
.type__ic { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); transition: background .15s, color .15s; }
.type__ic svg { width: 1.9rem; height: 1.9rem; }
.type__t { flex: 1; min-width: 0; }
.type__go { width: 1.2rem; height: 1.2rem; color: var(--brand); transition: transform .2s; }
.type:hover .type__ic { background: var(--brand-fill); color: #fff; } .type:hover .type__go { transform: translateX(3px); }
/* Selon la largeur de la carte (et non de l'écran) : trois tuiles puis deux, ou cinq tuiles en ligne. */
.wiz { container: wiz / inline-size; }
@container wiz (min-width: 24rem) {
  .types { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .type { grid-column: span 2; flex-direction: column; justify-content: center; text-align: center; gap: .7rem; padding: 1.2rem .5rem 1.1rem; }
  .type:nth-child(n+4) { grid-column: span 3; }
  .type__ic { width: 4rem; height: 4rem; border-radius: 20px; } .type__ic svg { width: 2.4rem; height: 2.4rem; }
  .type__t { flex: none; } .type__go { display: none; }
}
@container wiz (min-width: 38rem) {
  .types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .type, .type:nth-child(n+4) { grid-column: auto; }
}
.wiz__nav { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
body[data-wiz="done"] .wiz__nav .btn { flex: 1 1 auto; }
.wiz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin-top: .3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wiz__who { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wiz__who label { margin: 0; font-weight: 600; color: var(--muted); }
.wiz__who select { width: auto; min-width: 11.5rem; }
.wiz__mode { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.log { display: grid; gap: 0; border-radius: var(--r-sm); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .93rem; padding: .3rem 1rem; }
.log > div { display: grid; gap: .05rem; padding: .55rem 0; } .log > div + div { border-top: 1px solid var(--line); }
.log b { font-weight: 600; color: var(--muted); } .log span { color: var(--ink); font-weight: 700; }

/* « Ce que vous obtiendrez » */
.gain { gap: 1rem; }
.gain__l { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.gain__l li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; }
.gain__ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.gain__ic svg { width: 1.35rem; height: 1.35rem; }

/* Résultat */
.result { overflow: hidden; padding: 0; gap: 0; scroll-margin-top: .5rem; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); animation: qin .35s cubic-bezier(.2,.8,.2,1); }
.result__top { position: relative; overflow: hidden; padding: clamp(1.3rem, 2.6vw, 2rem); background: var(--grad); color: #fff; display: grid; gap: .5rem; justify-items: start; }
.result__top::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -90px; top: -120px; background: radial-gradient(circle, rgb(255 255 255 / 22%), transparent 65%); }
.result__top > * { position: relative; }
.result__ic { position: absolute !important; right: clamp(1rem, 2.6vw, 2rem); top: clamp(1rem, 2.6vw, 1.8rem); display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 22px; background: rgb(255 255 255 / 16%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 30%); }
.result__ic svg { width: 2.5rem; height: 2.5rem; }
.result__code { font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--font); letter-spacing: -.035em; margin-top: .3rem; padding-right: 5rem; }
.result__code--txt { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; }
.result__top p:not(.result__code) { max-width: 40rem; font-size: 1.05rem; }
.result__top .tag { background: rgb(255 255 255 / 20%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%); }
.result__body { padding: clamp(1.2rem, 2.6vw, 2rem); display: grid; gap: 1.1rem; }
.result__t { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.result__h { font-size: 1.02rem; margin-bottom: .6rem; }
.result__cta .btn { flex: 1 1 14rem; }
/* Points d'attention du résultat : regroupés et serrés, ils se lisent comme une seule liste. */
.notes { display: grid; gap: .5rem; }
.notes .note { padding: .7rem 1rem; }
dl.kv { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; margin: 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
dl.kv dt, dl.kv dd { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--line); }
dl.kv dt:first-of-type, dl.kv dt:first-of-type + dd { border-top: 0; }
dl.kv dt { color: var(--muted); font-weight: 600; font-size: .92rem; background: var(--soft); }

/* Dispositions de la vue Parcours selon l'état et la largeur */
body:not([data-wiz="start"]) .how, body:not([data-wiz="start"]) .kicker, body:not([data-wiz="start"]) .intro__lead { display: none; }
body:not([data-wiz="start"]) .intro { grid-template-columns: 1fr; gap: .2rem; }
body:not([data-wiz="start"]) .intro__title { font-size: 1rem; line-height: 1.4; letter-spacing: 0; font-weight: 600; color: var(--muted); }
body[data-wiz="q"] .gain { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 700px) {
  .how { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  body:not([data-wiz="start"]) .intro { grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; }
}
@media (min-width: 901px) {
  body:not([data-wiz="start"]) .pcol--b { order: 2; display: grid; gap: 1.5rem; align-items: start; width: 100%; margin-inline: auto; }
  body[data-wiz="q"] .pcol--b { grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .8fr); max-width: 76rem; }
  body[data-wiz="q"] .intro, body[data-wiz="q"] .trustline { width: 100%; max-width: 76rem; margin-inline: auto; }
  body[data-wiz="q"] #q-result { position: sticky; top: calc(var(--hdr-h, 7rem) + 1rem); }
  body[data-wiz="done"] .pcol--b { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); }
  body[data-wiz="pro"] .pcol--b { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  body[data-wiz="pro"] #q-result { position: sticky; top: calc(var(--hdr-h, 7rem) + 1rem); max-height: calc(100vh - var(--hdr-h, 7rem) - 2rem); overflow: auto; border-radius: var(--r); }
}
@media (min-width: 1100px) {
  body[data-wiz="start"] .pview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 4.5rem); padding-top: clamp(1.6rem, 3.4vw, 3.6rem); }
  body[data-wiz="start"] .pcol { display: grid; gap: 1.6rem; align-content: start; }
  body[data-wiz="start"] .intro { gap: 1.1rem; }
}
/* Halo de couleur derrière l'accueil du parcours */
#categorie { background: radial-gradient(60rem 26rem at 12% -6rem, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%), radial-gradient(44rem 22rem at 96% 4rem, color-mix(in srgb, var(--mint) 14%, transparent), transparent 70%); }

/* Mode professionnel : toutes les questions sur une page. Une question par ligne : l'intitulé et son aide à gauche, les réponses à côté
   (au-dessus des réponses quand la carte est étroite) ; les réponses d'une même ligne ont la même taille. */
.pro { display: grid; gap: 0; }
.pro__q { margin: 0; min-width: 0; padding: 1rem 0; border: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem 1.75rem; align-items: start; }
.pro__q:first-child { border-top: 0; padding-top: .2rem; }
.pro__q legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.pro__q legend + * { clear: both; }
.pro__q > .help { margin: 0; }
.pro__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .45rem; min-width: 0; align-self: start; }
.pro__opt { display: flex; align-items: flex-start; gap: .6rem; min-height: 48px; padding: .65rem .8rem; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line-strong); font-size: .97rem; line-height: 1.35; cursor: pointer; transition: border-color .15s, background .15s; }
.pro__opt:hover { border-color: var(--brand); }
.pro__opt input { margin-top: -.02rem; }
.pro__opt small { display: block; color: var(--muted); font-size: .85rem; }
.pro__opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); font-weight: 600; }
.pro__opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.pro__opt input:focus-visible { outline: 0; }
@container wiz (min-width: 40rem) {
  .pro__q { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
  .pro__q > legend, .pro__q > .help { grid-column: 1; }
  .pro__q > .pro__opts { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr); } /* à côté de l'intitulé : les réponses l'une sous l'autre, sur toute la largeur restante */
}
@container wiz (min-width: 56rem) { .pro__q > .pro__opts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); } }

/* ---------- Vue 2 : dossier ---------- */
.dtop { gap: 1.1rem; overflow: hidden; background: linear-gradient(180deg, var(--space-soft), var(--card) 9rem); }
.dtop__head { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.dtop__ic { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 18px; background: var(--space); color: var(--space-ink); box-shadow: 0 10px 20px -12px var(--space); }
.dtop__ic svg { width: 1.8rem; height: 1.8rem; }
.dtop__tt { display: grid; gap: .1rem; min-width: 0; }
.dtop__fields { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dtop__prog { display: grid; gap: .5rem; }
.dtop__meter { display: flex; align-items: center; gap: .8rem; }
.bar { flex: 1; height: 10px; border-radius: 99px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; } .bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--space), var(--mint)); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.dtop__n { flex: none; font-size: .88rem; font-weight: 700; color: var(--space); } .dtop__n:empty { display: none; }
.dtop--empty .dtop__meter { display: none; }
.dtop__info { font-size: .95rem; color: var(--muted); max-width: 70rem; } .dtop__info b { color: var(--ink); }
.dtop--empty .dtop__info { padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.todo:empty { display: none; }
.todo__t { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: 1.05rem; }
.todo__l { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: todo; }
.todo__l li { counter-increment: todo; min-width: 0; }
.todo__l a { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-height: 48px; padding: .45rem .9rem .45rem .5rem; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); transition: box-shadow .15s, background .15s; }
.todo__l a::before { content: counter(todo); flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; font-weight: 700; color: var(--muted); }
.todo__l a strong { font-weight: 600; }
.todo__l a:hover { box-shadow: inset 0 0 0 2px var(--space); }
.todo__l li.next a { box-shadow: inset 0 0 0 2px var(--space); background: var(--space-soft); }
.todo__l li.next a::before { background: var(--space); color: var(--space-ink); box-shadow: none; }
.todo__l li.next a strong { font-weight: 700; }
.todo__ok { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 700; color: var(--ok); } .todo__ok svg { width: 1.3rem; height: 1.3rem; }
@media (min-width: 760px) {
  .dtop { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 1.1rem 2rem; }
  .dtop__prog, .dtop .todo { grid-column: 1 / -1; }
  .dtop__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .todo__l { display: flex; flex-wrap: wrap; gap: .5rem; }
}

/* Sommaire du dossier : barre collante qui défile sur petit écran, colonne collante sur grand écran. */
.dlay { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.subnav, .toc { display: flex; gap: .5rem; }
.subnav a, .toc a { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .97rem; font-weight: 600; color: var(--ink); transition: box-shadow .15s, background .15s, color .15s; }
.subnav a svg, .toc a svg { width: 1.1rem; height: 1.1rem; color: var(--space); }
.subnav a:hover, .toc a:hover { box-shadow: inset 0 0 0 2px var(--space); }
/* Rubrique active : pleine, de la couleur de l'espace, en gras ; aria-current="location" porté par le lien. */
.subnav a[aria-current="location"] { background: var(--space); color: var(--space-ink); font-weight: 800; box-shadow: 0 8px 16px -10px var(--space); }
.subnav a[aria-current="location"]:hover { box-shadow: 0 8px 16px -10px var(--space); }
.subnav a[aria-current="location"] svg { color: inherit; }
#dossier .subnav { position: sticky; top: var(--hdr-h, 7rem); z-index: 30; margin: -.35rem calc(-1 * var(--gut)); padding: .45rem var(--gut); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; box-shadow: 0 8px 12px -12px rgb(14 12 46 / 45%); }
#dossier .subnav::-webkit-scrollbar, .toc::-webkit-scrollbar { display: none; }
.toc { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut); }
/* Dossier : une seule colonne de lecture, bornée et centrée ; le haut du dossier a la largeur du sommaire et de la colonne réunis. */
#dossier .view__in { max-width: 82rem; }
@media (min-width: 1280px) {
  .dlay { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 1.4rem; }
  #dossier .subnav, .toc { position: sticky; top: calc(var(--hdr-h, 7rem) + 1.25rem); flex-direction: column; gap: .3rem; margin: 0; padding: .6rem; overflow: visible; border-radius: var(--r); background: var(--card); backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
  .subnav a, .toc a { border-radius: 12px; box-shadow: none; background: transparent; padding: .5rem .8rem; line-height: 1.3; }
  .subnav a:hover, .toc a:hover { background: var(--space-soft); box-shadow: none; }
  .subnav a[aria-current="location"], .subnav a[aria-current="location"]:hover { background: var(--space); color: var(--space-ink); }
  .alay { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 1.4rem 2rem; align-items: start; }
}

/* Encart de la rubrique en cours : liseré de la couleur de l'espace. */
#dossier .is-here { box-shadow: inset 0 0 0 2px var(--space), 0 14px 30px -20px var(--space); }
#dossier .is-here .subq { margin-inline: calc(2px - var(--pad)); padding-inline: calc(var(--pad) - 2px); } /* le bandeau ne recouvre pas le liseré */

/* Sections repliables */
details.acc { border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
details.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: clamp(.9rem, 2vw, 1.2rem) clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; border-radius: var(--r); }
details.acc > summary::-webkit-details-marker, .faq summary::-webkit-details-marker, .iosprint > summary::-webkit-details-marker { display: none; }
details.acc > summary::after, .faq summary::after { content: ''; flex: none; margin-left: auto; width: .65rem; height: .65rem; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
details.acc[open] > summary::after, .faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details.acc > summary:hover .acc__ic { background: var(--space); color: var(--space-ink); }
details.acc > .in { padding: 0 var(--pad) var(--pad); display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
details.acc > .in > p, #dossier .card > p.muted { max-width: 48rem; }

/* Étapes : frise avec case à cocher, note et dates */
.tracker { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tracker > li { display: grid; gap: .45rem; padding: .95rem 1.1rem; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); transition: background .2s, border-color .2s; }
.tracker > li.done { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.tracker > li.na { background: var(--soft); border-style: dashed; }
.tracker > li.na strong { color: var(--muted); }
.tracker .head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; min-height: 1.65rem; }
/* Case d'une étape : dessinée à la taille des autres cases, au centre d'une zone tactile de 44 px (la case est le fond de la zone). */
.tracker .head input[type=checkbox] { width: 2.75rem; height: 2.75rem; margin: -.55rem -.4rem -.55rem -.65rem; border: 0; border-radius: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.2' y='1.2' width='21.6' height='21.6' rx='5.5' fill='white' stroke='%238a90a3' stroke-width='2.2'/%3E%3C/svg%3E") center / 1.5rem no-repeat; }
.tracker .head input[type=checkbox]:checked { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.2' y='1.2' width='21.6' height='21.6' rx='5.5' fill='%230b6b59' stroke='%230b6b59' stroke-width='2.2'/%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.4-8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .tracker .head input[type=checkbox]:not(:checked) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.2' y='1.2' width='21.6' height='21.6' rx='5.5' fill='%230f1526' stroke='%235d6a94' stroke-width='2.2'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .tracker .head input[type=checkbox]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.2' y='1.2' width='21.6' height='21.6' rx='5.5' fill='%235fe0bd' stroke='%235fe0bd' stroke-width='2.2'/%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.4-8' fill='none' stroke='%230c111e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tracker__na { flex: none; width: 1.5rem; height: 1.5rem; margin-right: .2rem; border-radius: 6px; border: 2px dashed var(--line-strong); }
.tracker .head strong { font-size: 1.05rem; }
.tracker > li > input[type=text] { margin-top: .2rem; }
.dateline { display: grid; gap: .45rem; margin-top: .3rem; padding: .8rem .9rem; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.tracker > li.done .dateline { background: color-mix(in srgb, var(--card) 70%, transparent); }
.dateline label { font-weight: 700; font-size: .9rem; }
.dateline input[type=date] { max-width: 14rem; }
.dateline .out { font-size: .92rem; color: var(--ok); font-weight: 600; } .dateline .out:empty { display: none; }
ul.pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
ul.pieces li { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: 10px; background: var(--soft); } ul.pieces li.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.pieces__m { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--line-strong); }
ul.pieces li.ok .pieces__m { border-color: var(--ok); background: var(--ok) 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 78% no-repeat; }
html[data-theme="dark"] ul.pieces li.ok .pieces__m { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c111e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (min-width: 700px) { ul.pieces { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); } }

/* Documents et formulaires officiels : cartes d'action avec pictogramme, état et flèche */
.docs { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.docbtn--all { grid-column: 1 / -1; }
.docbtn { appearance: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .9rem; width: 100%; text-align: left; padding: .8rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--card); font: 400 1rem/1.4 var(--font); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.docbtn__ic { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--space-soft); color: var(--space); transition: background .15s, color .15s; }
.docbtn__ic svg { width: 1.45rem; height: 1.45rem; }
.docbtn__tx { display: grid; gap: .1rem; min-width: 0; }
.docbtn__tx b { font-size: 1rem; }
.docbtn__tx small { color: var(--muted); font-size: .88rem; }
.docbtn__st { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.docbtn__st:empty { display: none; }
.docbtn__st[data-st="ok"] { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.docbtn__st[data-st="ok"]::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.docbtn__st[data-st="todo"] { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.docbtn:not(:disabled):hover { border-color: var(--space); transform: translateY(-2px); box-shadow: 0 12px 24px -18px var(--space); }
.docbtn:not(:disabled):hover .docbtn__ic { background: var(--space); color: var(--space-ink); }
.docbtn:disabled { cursor: default; border-style: dashed; border-color: var(--line-strong); background: var(--soft); }
.docbtn:disabled .docbtn__ic { background: var(--card); color: var(--muted); }
.docbtn:disabled .docbtn__tx b { color: var(--muted); }
.docbtn--all:not(:disabled) { background: var(--space-soft); border-color: var(--space); }
/* Téléphone : l'état se pose à cheval sur le bord supérieur de la carte, sans prendre de hauteur. */
@media (max-width: 520px) {
  .docs { gap: .85rem; padding-top: .3rem; }
  .docbtn { position: relative; grid-template-columns: auto minmax(0, 1fr); padding: .85rem .8rem .7rem; }
  .docbtn__ic { align-self: start; width: 2.5rem; height: 2.5rem; }
  .docbtn__tx small { font-size: .85rem; line-height: 1.35; }
  .docbtn__st { position: absolute; top: -.7rem; right: .7rem; box-shadow: 0 0 0 3px var(--card); }
  .docbtn__st[data-st="ok"], .docbtn__st[data-st="todo"] { box-shadow: 0 0 0 3px var(--card); }
}
.iosprint { border-radius: 12px; background: var(--soft); padding: 0 .9rem; }
.iosprint > summary { list-style: none; min-height: 48px; display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--brand); }
.iosprint > summary::before { content: '?'; flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--brand-soft); font-size: .85rem; }
.iosprint p { margin: 0 0 .8rem; }
.install .install__in { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; } .install .install__in > div { flex: 1; min-width: 12rem; display: grid; }

/* ---------- Vue 3 : droits et aide ---------- */
.alay { align-items: start; }
.abody { display: grid; gap: 1.25rem; min-width: 0; }
.abody > .view__title:not(:first-child) { margin-top: 1.6rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.1rem; }
.steps7 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.s7 { position: relative; padding: 1.2rem 1.2rem 1.3rem; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); display: grid; gap: .45rem; align-content: start; grid-template-columns: auto 1fr; }
.s7__n { grid-row: span 2; align-self: center; margin-right: .8rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--space); color: var(--space-ink); font-weight: 800; font-size: 1.15rem; }
.s7 .who { align-self: end; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--space); line-height: 1.3; }
.s7 h3 { font-size: 1.08rem; align-self: start; } .s7 p { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.lexique { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.1rem 2rem; margin: 0; }
.lexique > div { padding-left: .9rem; border-left: 3px solid var(--space-soft); }
.lexique dt { font-weight: 800; color: var(--ink); }
.lexique dd { margin: .1rem 0 0; color: var(--muted); font-size: .97rem; }
.faq { display: grid; gap: .7rem; align-items: start; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: .8rem 1.2rem; font-weight: 700; border-radius: 16px; }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--muted); max-width: 46rem; }
.mentions details p { font-size: .95rem; }
@media (min-width: 1100px) { .faq { grid-template-columns: 1fr 1fr; } }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.6rem 2.4rem; }
.contact > div > p { color: var(--muted); }
.contact .phone { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; margin-top: 1rem; padding: 0 1.1rem; border-radius: var(--r-sm); background: var(--space-soft); font-weight: 800; font-size: 1.15rem; color: var(--ink); } .contact .phone svg { width: 1.3rem; height: 1.3rem; color: var(--space); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; } .form .full { grid-column: 1 / -1; }
.form textarea { min-height: 7.5rem; }
.status { padding: .9rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; margin-top: .8rem; }
.status--ok { background: var(--ok-soft); color: var(--ok); } .status--err { background: var(--err-soft); color: var(--err); box-shadow: inset 4px 0 0 var(--err); }
.rgpd { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding: .2rem 0 .2rem 1rem; display: grid; gap: .45rem; } .rgpd p { margin: 0; } .rgpd a, .about a, .faq p a { text-decoration: underline; text-underline-offset: 2px; }
.about { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); display: grid; gap: .6rem; max-width: 70rem; }

/* ---------- Téléphone et tablette : barre d'onglets en bas, une colonne ---------- */
@media (max-width: 900px) {
  .top__in { gap: .6rem; padding: .3rem 0; } .top .logo { height: 20px; } .top__sub { display: none; } .top__title h1 { font-size: 1.02rem; }
  .tabs--top { display: none; }
  .tabs--bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; position: fixed; inset: auto 0 0 0; z-index: 40; padding: .4rem .6rem calc(.4rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -22px rgb(14 12 46 / 60%); }
  .tabs--bar .tab { flex-direction: column; gap: .1rem; min-height: 56px; padding: .3rem 0; font-size: .84rem; border-radius: 14px; color: var(--muted); }
  .tabs--bar .tab svg { width: 1.4rem; height: 1.4rem; }
  .tabs--bar .tab[aria-current="page"] { background: var(--space); color: var(--space-ink); }
  body.app main { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .here__in { padding: .25rem 0; } .here__txt { font-size: .86rem; line-height: 1.3; }
  .contact { grid-template-columns: 1fr; }
  .result__ic { width: 3.2rem; height: 3.2rem; border-radius: 16px; } .result__ic svg { width: 1.9rem; height: 1.9rem; }
  /* Parcours terminé, sur une colonne : le résultat d'abord, le rappel des réponses ensuite. */
  body[data-wiz="done"] #q-result { order: 2; } body[data-wiz="done"] #wiz { order: 3; }
}
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dd { border-top: 0; padding-top: .5rem; } dl.kv dt { padding-bottom: .35rem; }
  .wiz__foot { align-items: stretch; flex-direction: column; } .wiz__who select { flex: 1; }
  .art { width: min(100%, 17rem); }
}
@media (max-width: 699px) { body:not([data-wiz="start"]) .presc { display: none; } .intro__lead { font-size: 1rem; } }
@media (max-width: 380px) { body[data-wiz="start"] .pview { padding-top: .8rem; gap: 1rem; } .intro { gap: .55rem; } .intro__title { font-size: 1.5rem; } .intro__lead { font-size: .95rem; line-height: 1.5; } .kicker li { padding: .15rem .55rem; font-size: .78rem; } }
@media (max-width: 420px) { .opts--yn { grid-template-columns: 1fr; } .wiz__top .saved { display: none; } .dtop__ic { width: 2.8rem; height: 2.8rem; border-radius: 14px; } }

/* ---------- Indicateur de chargement : le fauteuil qui roule, pendant l'envoi d'une demande ----------
   Même dessin et même animation que sur le site et dans l'administration (src/styles.css) et dans le dossier partagé. Animation en transform
   et opacity seulement, à la couleur de l'espace courant. */
.status--wait { display: flex; align-items: center; gap: .8rem; background: var(--space-soft); color: var(--ink); }
.charge { display: inline-flex; flex: none; }
.charge .fr { display: block; flex: none; width: 2.9rem; height: auto; aspect-ratio: 7 / 5; overflow: hidden; color: var(--space); fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.charge .fr .f { stroke-width: 5; } .charge .fr .b { fill: none; } .charge .fr .p { fill: currentColor; stroke: none; } .charge .fr .k { stroke-width: 10; } .charge .fr-fin, .charge .fr-vent { display: none; }
.fr-sol { opacity: .4; animation: fr-defile .416s linear infinite; }
.fr-corps { animation: fr-rebond .4s ease-in-out infinite alternate; }
.fr-rayons { transform-origin: 52px 56px; animation: fr-tourne 1.6s linear infinite; }
@keyframes fr-tourne { to { transform: rotate(360deg); } }
@keyframes fr-defile { to { transform: translateX(-49px); } }
@keyframes fr-rebond { to { transform: translateY(-1.8px); } }
@keyframes fr-pouls { to { opacity: .55; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }
/* (le fauteuil de chargement reste à l'arrêt ; seule une pulsation douce, qui ne déplace rien, est gardée) */
@media (prefers-reduced-motion: reduce) { .charge .fr .fr-corps { animation: fr-pouls 1.4s ease-in-out infinite alternate !important; } }
html[data-motion="reduced"] .charge .fr .fr-corps { animation: fr-pouls 1.4s ease-in-out infinite alternate !important; }

/* ---------- Impression de la page ---------- */
@media print {
  .top, .tabs, #aide, .trustline, .subnav, .toc, .resume, .here, #here-live, .noprint, #categorie, #parcours, #droits { display: none !important; }
  body { background: #fff; color: #000; } body.app main { padding-bottom: 0; }
  /* Seuls les petits blocs restent d'un seul tenant : une rubrique entière qu'on interdit de couper laissait des pages presque vides. */
  .card, .tracker > li, details.acc { box-shadow: none; border: 1px solid #999; } .tracker > li, .field, ul.pieces li { break-inside: avoid; } details.acc > .in { display: grid !important; }
  .dtop { background: none; } .dtop__ic, details.acc > summary::after { display: none; } .view__in { padding: 0; }
  #dossier .is-here { box-shadow: none; } .dlay { display: block; } .dlay > * { margin-bottom: 1rem; }
}

/* ---------- Documents imprimables (synthèse, lettre) ---------- */
#printdoc { display: none; }
#printdoc h1 { font-size: 1.6rem; margin-bottom: .4rem; } #printdoc h2 { font-size: 1.15rem; margin: 1.2rem 0 .4rem; }
#printdoc table { border-collapse: collapse; width: 100%; font-size: .95rem; } #printdoc td, #printdoc th { border: 1px solid #999; padding: .35rem .6rem; text-align: left; vertical-align: top; }
#printdoc .note { background: none; border: 1px solid #999; border-radius: 6px; font-size: .85rem; padding: .5rem .8rem; }
#printdoc ul { margin: .3rem 0; padding-left: 1.2rem; } #printdoc p { margin: .5rem 0; }
@media print { body.printing > *:not(#printdoc):not(#printwm) { display: none !important; } body.printing #printdoc { position: relative; z-index: 1; display: block !important; color: #000; background: transparent; font: 11pt/1.5 var(--font); } body.printing { background: #fff; } }
/* Filigrane des impressions : couche fixe (répétée sur chaque page), texte gris clair incliné, derrière le document ; invisible à l'écran. */
#printwm { display: none; }
@media print {
  body.printing #printwm { display: block; position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printwm .wm { position: absolute; left: -45%; top: -45%; width: 190%; height: 190%; transform: rotate(-35deg); display: flex; flex-direction: column; justify-content: space-around; }
  #printwm .wm__row { display: flex; justify-content: space-around; }
  #printwm .wm__row--odd { padding-left: 9rem; }
  #printwm .wm span { font: 700 21pt/1 var(--font); letter-spacing: .02em; color: rgba(0, 0, 0, .24); white-space: nowrap; }
}
/* Formulaires officiels préremplis (#printdoc .off) : mise en page sobre, proche des modèles du ministère. */
.off { font-size: 10pt; line-height: 1.4; }
.off h1 { font-size: 15pt; margin: 0 0 .4rem; } .off h2 { font-size: 12pt; margin: .9rem 0 .3rem; }
.off .src { font-size: 8.5pt; color: #333; border: 1px solid #999; padding: .4rem .6rem; margin: .4rem 0 .8rem; } .off .src a { color: inherit; }
.off .small { font-size: 9pt; color: #222; }
.off .box { border: 1px solid #000; padding: .4rem .7rem; margin: .5rem 0; break-inside: avoid; } .off .bt { font-weight: 700; margin: 0 0 .3rem; }
.off p { margin: .2rem 0; } .off ul { margin: .2rem 0 .2rem 1.2rem; }
.off .cb { font-size: 1.2em; line-height: 1; } .off .v { font-weight: 600; font-style: italic; } /* italique = déclarations de la personne, annoncé dans l'en-tête */
.off__foot { font-size: 8pt; text-align: center; letter-spacing: .04em; color: #333; margin: .8rem 0 0; }
@media print { .off__foot { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; background: #fff; } .off { padding-bottom: 1.2rem; } }
.off .bl { display: inline-block; min-width: 10rem; height: 1em; border-bottom: 1px dotted #000; vertical-align: baseline; }
.off table { border-collapse: collapse; width: 100%; font-size: 9pt; margin: .3rem 0; } .off td, .off th { border: 1px solid #999; padding: .15rem .35rem; text-align: left; vertical-align: top; }
.pb { break-after: page; }

/* Zones tactiles sur téléphone : 44 px au moins (WCAG 2.5.5), vérifié à 320 et 375 px par le contrôle de mise en page (e2e/mise-en-page.spec.ts). */
@media (max-width: 700px) {
  .top__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .presc a { min-height: 44px; }
}

/* ---------- Densité ordinateur (19 novembre 2026, la même règle que le dossier partagé) ----------
   « Tous les champs sont énormes sur ordi » : jusque-là, l'ordinateur gardait la densité du téléphone (texte de 16 px, champs et boutons
   de 48 px, grandes marges). Avec une souris (pointeur fin) et à partir de 761 px de large : texte de 15 px, champs et boutons d'environ
   40 px, onglets de 42 px, marges resserrées. Les choix du parcours (réponses, véhicules, cases) restent un peu plus généreux que les champs.
   Téléphone, tablette et tout écran tactile gardent la densité tactile (48 px), inchangée. Les tailles du panneau Accessibilité
   (data-size) et le cran supplémentaire au-delà de 2200 px gardent les mêmes rapports qu'avant (texte 15/16 de la taille tactile).
   Cible minimale d'une commande avec une souris : 24 px (WCAG 2.2, critère 2.5.8) ; aucune ne descend sous 32 px. */
@media (min-width: 761px) and (pointer: fine) {
  html:not([data-size]) { font-size: 93.75%; } html[data-size="1"] { font-size: 105.47%; } html[data-size="2"] { font-size: 117.19%; }
  :root { --pad: clamp(.95rem, 1.5vw, 1.25rem); --r: 16px; --r-sm: 12px; }
  body { line-height: 1.55; }
  /* Commandes et champs */
  .btn { min-height: 40px; padding: .5rem 1.1rem; font-size: .97rem; gap: .45rem; }
  .btn--sm { min-height: 36px; padding: .4rem .9rem; font-size: .93rem; }
  .resume .btn { min-height: 34px; }
  input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea { min-height: 40px; padding: .45rem .7rem; border-radius: 10px; }
  select { padding-right: 2.3rem; background-position: right .65rem center; background-size: 1rem; }
  textarea { min-height: 4rem; }
  :is(.fields, .idgrid, .prepgrid) > .field > textarea { min-height: 2.6rem; }
  input[type=checkbox], input[type=radio] { width: 1.2rem; height: 1.2rem; }
  input[type=checkbox] { border-radius: 5px; }
  .f { font-size: .93rem; margin-bottom: .25rem; } .wiz__who label.f, .field > .f { margin: 0; }
  .tab { min-height: 42px; padding: 0 .9rem; font-size: .95rem; }
  .choix__o { min-height: 34px; } .lien { min-height: 32px; } .num input { width: 5.5rem; }
  .tabs--top { padding: .2rem; border-radius: 14px; }
  .themebtn { width: 2.5rem; height: 2.5rem; }
  .wiz__back { min-height: 36px; }
  .subnav a, .toc a { min-height: 38px; font-size: .93rem; }
  .iosprint > summary { min-height: 40px; }
  .contact .phone { min-height: 42px; font-size: 1.05rem; }
  .faq summary { min-height: 46px; padding: .6rem 1.1rem; }
  .faq details p { padding: 0 1.1rem 1rem; }
  /* Grammaire des champs : lignes moins hautes */
  .fields > .field, .idgrid > .field, .prepgrid > .field { padding: .5rem 0; gap: .25rem 1.75rem; }
  .subq { margin: .8rem calc(-1 * var(--pad)) .3rem; padding: .45rem var(--pad); font-size: .95rem; }
  @container champs (min-width: 44rem) { :is(.fields, .idgrid, .prepgrid) > .field > .f { padding-top: .5rem; } :is(.fields, .idgrid, .prepgrid) > .field--choix > .f { padding-top: .35rem; } }
  /* Titres proportionnés */
  h3 { font-size: 1.05rem; }
  .view__title { font-size: clamp(1.3rem, 1.5vw, 1.6rem); }
  .wiz h3.q { font-size: clamp(1.3rem, 1.7vw, 1.65rem); }
  .intro__title { font-size: clamp(1.7rem, 2.7vw, 2.6rem); }
  .result__code { font-size: clamp(2.3rem, 3.6vw, 3.2rem); }
  /* Cartes et rubriques */
  .card { gap: .7rem; }
  .card__ic, .acc__ic { width: 2rem; height: 2rem; border-radius: 10px; } .card__ic svg, .acc__ic svg { width: 1.1rem; height: 1.1rem; }
  details.acc > summary { min-height: 44px; padding: .7rem var(--pad); font-size: 1.05rem; }
  details.acc > .in { gap: .7rem; }
  .dtop { gap: .8rem 1.6rem; } .dtop__ic { width: 2.7rem; height: 2.7rem; border-radius: 14px; } .dtop__ic svg { width: 1.45rem; height: 1.45rem; }
  .todo__l a { min-height: 38px; padding: .3rem .8rem .3rem .4rem; } .todo__l a::before { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
  /* Étapes : cartes moins hautes ; la case garde une zone de 32 px autour du carré */
  .tracker { gap: .5rem; }
  .tracker > li { gap: .3rem; padding: .7rem .9rem; border-radius: 12px; }
  .tracker .head strong { font-size: 1rem; }
  .tracker .head input[type=checkbox] { width: 2rem; height: 2rem; margin: -.3rem -.2rem -.3rem -.4rem; background-size: 1.25rem; }
  .tracker > li > .muted.small { line-height: 1.45; }
  .dateline { gap: .3rem; padding: .55rem .75rem; border-radius: 10px; }
  ul.pieces li { padding: .4rem .7rem; }
  .docs { gap: .5rem; }
  .docbtn { gap: .2rem .75rem; padding: .6rem .75rem; border-radius: 12px; } .docbtn__ic { width: 2.3rem; height: 2.3rem; border-radius: 10px; } .docbtn__ic svg { width: 1.25rem; height: 1.25rem; }
  /* Parcours : les choix restent un peu plus généreux que les champs */
  .wiz { gap: .9rem; padding: clamp(1.1rem, 2vw, 1.75rem); border-radius: 20px; }
  .opts { gap: .55rem; }
  .opt { min-height: 52px; padding: .7rem 1rem .7rem 1.1rem; border-radius: 14px; font-size: 1rem; }
  .opt > svg { width: 1.9rem; height: 1.9rem; padding: .42rem; }
  .chips { gap: .5rem; }
  .chipbtn { min-height: 46px; padding: .65rem .85rem; border-radius: 12px; font-size: .97rem; }
  .chipbtn::before { width: 1.2rem; height: 1.2rem; border-radius: 5px; }
  .type { min-height: 56px; border-radius: 16px; }
  .pro__q { padding: .75rem 0; }
  .pro__opts { gap: .35rem; }
  .pro__opt { min-height: 38px; padding: .45rem .7rem; border-radius: 10px; font-size: .95rem; }
  .log > div { padding: .45rem 0; }
  .result__top { padding: clamp(1.1rem, 2vw, 1.6rem); }
  .result__body { padding: clamp(1.1rem, 2vw, 1.6rem); gap: .9rem; }
  .result__ic { width: 3.4rem; height: 3.4rem; border-radius: 18px; } .result__ic svg { width: 2rem; height: 2rem; }
  dl.kv dt, dl.kv dd { padding: .5rem .85rem; }
  .gain__ic { width: 2.2rem; height: 2.2rem; } .gain__ic svg { width: 1.2rem; height: 1.2rem; }
  .how__ic { width: 2.8rem; height: 2.8rem; border-radius: 14px; }
  .s7 { padding: 1rem 1rem 1.1rem; } .s7__n { width: 2.2rem; height: 2.2rem; font-size: 1rem; }
}
@media (min-width: 2200px) and (pointer: fine) { html:not([data-size]) { font-size: 105.47%; } html[data-size="1"] { font-size: 117.19%; } html[data-size="2"] { font-size: 128.91%; } }
