/* Polices : un fichier léger pour les caractères du français, le fichier complet en secours pour les autres signes. */
@font-face { font-family: "Carlito"; src: url("/static/fonts/Carlito-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("/static/fonts/Carlito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2013, U+2018-2019, U+201C-201D, U+2022, U+2026, U+202F, U+20AC; }
@font-face { font-family: "Carlito"; src: url("/static/fonts/Carlito-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("/static/fonts/Carlito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2013, U+2018-2019, U+201C-201D, U+2022, U+2026, U+202F, U+20AC; }
@font-face { font-family: "NotoSerif"; src: url("/static/fonts/NotoSerif-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NotoSerif"; src: url("/static/fonts/NotoSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2013, U+2018-2019, U+201C-201D, U+2022, U+2026, U+202F, U+20AC; }
@font-face { font-family: "Cormorant"; src: url("/static/fonts/Cormorant-Latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --navy: #0E2C3B; --navy-2: #173F53; --gold: #B8975A; --gold-texte: #7E6128; --soft: #F4F1EA; --fond: #FBFAF7;
  --surface: #FFFFFF; --encre: #1F2A30; --discret: #56646C; --trait: rgba(14, 44, 59, .13); --trait-fort: rgba(14, 44, 59, .26);
  --critique: #8A2B1D; --critique-fond: #FBEFEC; --attention: #6A5016; --attention-fond: #FAF3E2;
  --ok: #1E5B45; --ok-fond: #EAF4EF;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --ombre: 0 1px 2px rgba(14, 44, 59, .05), 0 6px 20px rgba(14, 44, 59, .06);
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body { margin: 0; font-family: "Carlito", "Segoe UI", system-ui, sans-serif; font-size: 16.5px; line-height: 1.55;
  color: var(--encre); background: var(--fond); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "NotoSerif", Georgia, serif; font-weight: 400; color: var(--navy); margin: 0; letter-spacing: .1px; }
h1 { font-size: 22px; line-height: 1.3; }
h2 { font-size: 18px; line-height: 1.35; }
h3 { font-size: 15.5px; line-height: 1.4; }
.section > h3 { margin: 24px 0 2px; }
.section > h3 + .discret { margin-bottom: 12px; }
p { margin: 0 0 10px; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.evitement:focus { left: 8px; }
.sans-js { padding: 40px; text-align: center; }
.discret { color: var(--discret); font-size: 14.5px; }
.cache { display: none !important; }
[hidden] { display: none !important; }
svg.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px;
  border-radius: var(--r-s); border: 1px solid var(--trait-fort); background: var(--surface); color: var(--navy);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn.principal { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.principal:hover { background: var(--navy-2); }
.btn.danger { color: var(--critique); border-color: rgba(138, 43, 29, .35); }
.btn.lien { border-color: transparent; background: none; padding: 6px 8px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.btn.petit { min-height: 36px; padding: 5px 12px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.icone { width: 44px; min-height: 44px; padding: 0; }

/* Champs */
label.champ { display: block; margin-bottom: 14px; }
label.champ > span { display: block; font-size: 14.5px; color: var(--discret); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface); min-height: 44px; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #7b878d; }
.aide { font-size: 14px; color: var(--discret); margin: -8px 0 14px; }
.message { padding: 10px 14px; border-radius: var(--r-s); margin: 0 0 14px; font-size: 15.5px; }
.message.erreur { background: var(--critique-fond); color: var(--critique); }
.message.ok { background: var(--ok-fond); color: var(--ok); }
.message.info { background: var(--soft); color: var(--encre); }

/* Écrans d'accès */
.acces { min-height: 100%; display: grid; place-items: center; padding: 28px 18px; background: var(--soft); }
.acces .carte { width: 100%; max-width: 430px; background: var(--surface); border-radius: var(--r-l); padding: 34px 32px 28px; box-shadow: var(--ombre); }
.marque { display: flex; align-items: center; gap: 10px; font-family: "Cormorant", "NotoSerif", Georgia, serif; font-weight: 600; color: var(--navy); font-size: 24px; line-height: 1; letter-spacing: .1px; margin: 0; }
.marque img { width: 30px; height: 30px; flex: none; }
.marque small { font-size: inherit; font-weight: 500; color: var(--gold-texte); }
.acces .retour { display: flex; margin: 10px auto 0; }
.acces h1 { margin: 22px 0 6px; }
.acces .btn.principal { width: 100%; margin-top: 6px; }

/* Structure */
.cadre { display: grid; grid-template-columns: 296px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.lateral { background: var(--soft); border-right: 1px solid var(--trait); display: flex; flex-direction: column; min-height: 0; }
.lateral .tete { padding: 20px 20px 14px; }
.lateral .btn.principal { width: 100%; margin-top: 16px; }
.lateral .recherche { padding: 0 20px 10px; }
.lateral .recherche input { background: rgba(255, 255, 255, .7); min-height: 40px; padding: 7px 12px; }
.liste { flex: 1; overflow-y: auto; padding: 2px 10px 12px; margin: 0; list-style: none; }
.liste button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--r-s); padding: 9px 10px; cursor: pointer; min-height: 44px; }
.liste button:hover { background: rgba(14, 44, 59, .06); }
.liste button[aria-current=true] { background: rgba(14, 44, 59, .1); }
.liste .l1 { display: flex; justify-content: space-between; gap: 8px; color: var(--navy); }
.liste .l1 span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .l2 { font-size: 13.5px; color: var(--discret); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .vide { padding: 14px 10px; color: var(--discret); font-size: 14.5px; }
.etat { font-size: 12.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; align-self: center; }
.etat.brouillon { background: var(--attention-fond); color: var(--attention); }
.etat.valide { background: var(--ok-fond); color: var(--ok); }
.etat.generation { background: rgba(14, 44, 59, .1); color: var(--navy); }
.etat.erreur { background: var(--critique-fond); color: var(--critique); }
.pied { border-top: 1px solid var(--trait); padding: 12px 14px 14px; }
.pied .qui { padding: 0 6px 6px; font-size: 14.5px; line-height: 1.35; }
.pied .qui strong { display: block; font-weight: 400; color: var(--navy); }
.pied .rappel { display: block; width: 100%; margin: 0 0 8px; padding: 8px 10px; min-height: 40px; text-align: left; font-size: 14px; line-height: 1.35; color: var(--navy); background: #F4EFE3; border: 1px solid var(--gold); border-radius: 8px; cursor: pointer; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 2px; }
.pied nav button { background: none; border: 0; padding: 6px; min-height: 36px; cursor: pointer; color: var(--navy); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait-fort); }
.pied nav button[aria-current=true] { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.principal-zone { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.barre { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--trait); background: var(--fond); min-height: 64px; }
.barre .titre { flex: 1; min-width: 0; }
.barre .titre h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre .titre p { margin: 0; font-size: 14px; color: var(--discret); }
.barre .actions { display: flex; gap: 8px; align-items: center; }
.btn.menu { display: none; }
.defile { flex: 1; overflow-y: auto; min-height: 0; }
.colonne { max-width: 800px; margin: 0 auto; padding: 28px 28px 36px; }
.colonne.large { max-width: 940px; }

/* Nouveau document */
.accueil h2 { font-size: 24px; margin: 6vh 0 6px; }
.accueil > p { color: var(--discret); margin-bottom: 22px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.trame { margin: 0 0 16px; border: 1px solid var(--trait-fort); border-radius: var(--r-m); background: var(--surface); }
.trame summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 14px; cursor: pointer; font-size: 15.5px; color: var(--navy); list-style: none; }
.trame summary::-webkit-details-marker { display: none; }
.trame summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--discret); border-bottom: 1.5px solid var(--discret); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.trame[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.trame summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-m); }
.trame-corps { padding: 4px 14px 14px; border-top: 1px solid var(--trait); }
.trame-corps .champ { margin: 12px 0 4px; }
.trame-corps select { width: 100%; }
.trame-liste { max-height: min(46vh, 400px); overflow: auto; overscroll-behavior: contain; }
.trame-liste:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.trame-corps h3 { font-size: 15.5px; margin: 14px 0 4px; color: var(--navy); }
.trame-corps ul { margin: 0; padding-left: 20px; color: var(--discret); font-size: 15px; line-height: 1.5; }
.trame-corps .discret { margin: 12px 0 0; font-size: 14px; }
.puces legend { font-size: 14.5px; color: var(--discret); padding: 0; margin-bottom: 8px; }
.puces label { position: relative; }
.puces input { position: absolute; opacity: 0; inset: 0; }
.puces span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 15px; border: 1px solid var(--trait-fort); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 15.5px; }
.puces input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.puces input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Zone de saisie */
.saisie { background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-l); box-shadow: var(--ombre); padding: 6px 8px 8px; }
.saisie:focus-within { border-color: var(--navy); }
.saisie textarea { border: 0; min-height: 96px; padding: 10px 10px 6px; background: none; display: block; }
.saisie textarea:focus { outline: none; }
.saisie .bas { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.saisie .bas .info { flex: 1; font-size: 14px; color: var(--discret); min-width: 0; }
/* Dictée : la barre d'enregistrement remplace le bas de la zone le temps de la prise */
.saisie.dicte .bas, .saisie.dicte textarea { display: none; }
/* Texte dicté en direct : le texte acquis, puis l'aperçu du passage en cours, en gris */
.direct { padding: 10px 10px 6px; min-height: 96px; max-height: min(46vh, 420px); overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.direct.haute { min-height: 180px; }
.direct.tres-haute { min-height: 320px; }
.direct .apercu { color: #7b878d; }
.direct .curseur { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--gold); animation: pouls 1.2s ease-in-out infinite; }
.bas-fixe .direct { min-height: 54px; max-height: 30vh; }
.prise { display: flex; align-items: center; gap: 12px; padding: 0 4px; min-height: 44px; }
.prise .btn.icone { flex: none; }
.prise .onde { flex: 1; min-width: 0; width: 100%; height: 34px; display: block; }
.prise .duree { flex: none; min-width: 2.6em; text-align: right; font-size: 15px; color: var(--discret); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prise.attend { justify-content: center; }
.prise.attend .attente { padding: 0; font-size: 15px; }
.bas-fixe { border-top: 1px solid var(--trait); background: var(--fond); padding: 12px 28px 16px; }
.bas-fixe .saisie { max-width: 800px; margin: 0 auto; }
.bas-fixe .saisie textarea { min-height: 54px; }

/* Fil */
.fil { display: flex; flex-direction: column; gap: 18px; }
.bulle { align-self: flex-end; max-width: 86%; background: var(--soft); border-radius: var(--r-l) var(--r-l) 4px var(--r-l); padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle .qui { display: block; font-size: 13px; color: var(--discret); margin-bottom: 2px; }
.bulle .outils { margin-top: 6px; text-align: right; }
.attente { display: flex; align-items: center; gap: 12px; color: var(--discret); padding: 6px 2px; }
.attente i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pouls 1.2s ease-in-out infinite; }
@keyframes pouls { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .attente i, .direct .curseur, .suivi progress:not([value]) { animation: none; } * { transition: none !important; } }

.feuille { scroll-margin-top: 10px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); box-shadow: var(--ombre); overflow: hidden; }
.feuille .entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--trait); font-size: 14px; color: var(--discret); }
.feuille .corps { padding: 24px 30px 26px; }
.rendu .doc-titre { font-family: "NotoSerif", serif; font-size: 20px; color: var(--navy); margin: 0 0 4px; }
.rendu .identite { color: var(--gold-texte); margin-bottom: 14px; }
.rendu .objet { font-weight: 700; color: var(--navy); }
.rendu h3 { margin: 20px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--trait); font-size: 16.5px; }
.rendu p { margin: 0 0 9px; }
.rendu ul { margin: 0 0 10px; padding-left: 20px; }
.rendu li { margin-bottom: 3px; }
.rendu .libelle { background: var(--soft); border-radius: var(--r-s); padding: 10px 14px; margin: 8px 0; }
.rendu .libelle strong { display: block; font-size: 13.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--gold-texte); font-weight: 400; }
.feuille textarea.edition { min-height: 420px; font-size: 15.5px; border-radius: var(--r-s); }
.feuille .pied-feuille { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--trait); background: #FDFCFA; }
.feuille .pied-feuille .pousse { flex: 1; }

/* Contrôles */
.bloc { margin-top: 18px; }
.bloc > h2 { margin-bottom: 10px; }
.alerte { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r-m); margin-bottom: 8px; }
.alerte.critique { background: var(--critique-fond); color: var(--critique); }
.alerte.attention { background: var(--attention-fond); color: var(--attention); }
.alerte .ico { margin-top: 3px; }
.alerte p { margin: 0; color: var(--encre); }
.alerte .niveau { font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; }
.alerte .extrait { font-size: 14.5px; color: var(--discret); font-style: italic; }
.alerte label { grid-column: 2; display: flex; gap: 8px; align-items: center; min-height: 36px; color: var(--encre); font-size: 15px; cursor: pointer; }
.alerte input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); }
.reperes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; font-size: 15px; }
.reperes h3 { font-family: "Carlito", sans-serif; font-size: 13px; letter-spacing: .7px; text-transform: uppercase; color: var(--gold-texte); margin-bottom: 4px; }
.reperes ul { margin: 0; padding-left: 18px; color: var(--encre); }
.reperes p { margin: 0; }
.bandeau-valide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--ok-fond); color: var(--ok); border-radius: var(--r-m); padding: 12px 16px; }
.bandeau-valide .pousse { flex: 1; }
.bandeau-valide .fait { display: flex; gap: 8px; align-items: flex-start; }
.bandeau-valide .fait .ico { flex: none; margin-top: 3px; }
.bandeau-valide label { display: flex; gap: 8px; align-items: center; color: var(--encre); font-size: 15px; min-height: 36px; }

/* Fiche */
.fiche h3 { margin: 22px 0 10px; padding-bottom: 5px; border-bottom: 1px solid var(--trait); }
.fiche .ligne { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 110px; gap: 10px; align-items: center; margin-bottom: 8px; }
.fiche .ligne.long { grid-template-columns: 1fr; gap: 4px; margin-bottom: 12px; }
.fiche .ligne > span { font-size: 15px; }
.fiche .ligne small { color: var(--discret); }
.fiche input[type=text], .fiche select { min-height: 40px; padding: 6px 10px; }
.fiche .confirme { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 13.5px; color: var(--gold-texte); }
.fiche .dictee input[type=text], .fiche .dictee textarea, .fiche .dictee select[data-cle] { border-color: var(--gold); background: #FFFDF8; }

/* Réglages */
.section { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: 22px 24px; margin-bottom: 18px; }
.section > h2 { margin-bottom: 4px; }
.section > p.discret { margin-bottom: 16px; }
.section .rang { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Clé du relais : 36 caractères, à lire en entier sur un téléphone. */
@media (max-width: 480px) { .champ input.cle-relais { font-size: 13.5px; letter-spacing: 0; padding-left: 10px; padding-right: 10px; } }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 400; color: var(--discret); font-size: 13.5px; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--trait-fort); }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--trait); vertical-align: middle; }
td.actions { text-align: right; white-space: nowrap; }
.conditions { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--trait); }
.conditions li { display: grid; grid-template-columns: 20px 1fr; gap: 1px 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--trait); font-size: 15.5px; }
.conditions li svg.ico { margin-top: 3px; }
.conditions li.ok svg.ico { color: var(--ok); }
.conditions li.manque svg.ico { color: var(--critique); }
.conditions li small { grid-column: 2; color: var(--discret); font-size: 14px; }
.evitement-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.suivi { background: var(--soft); border-radius: var(--r-m); padding: 16px 18px; margin: 0 0 6px; }
.suivi .phase { margin: 0 0 10px; color: var(--navy); }
.suivi progress { display: block; width: 100%; height: 8px; margin: 0 0 10px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; -webkit-appearance: none; background: rgba(14, 44, 59, .12); }
.suivi progress::-webkit-progress-bar { background: transparent; }
.suivi progress::-webkit-progress-value { background: var(--navy); border-radius: 999px; }
.suivi progress::-moz-progress-bar { background: var(--navy); border-radius: 999px; }
.suivi progress:not([value]) { background: linear-gradient(90deg, rgba(14, 44, 59, .12) 0 35%, var(--navy) 35% 65%, rgba(14, 44, 59, .12) 65%) 0 0 / 300% 100%; animation: va-et-vient 1.8s ease-in-out infinite alternate; }
@keyframes va-et-vient { from { background-position: 100% 0; } to { background-position: 0 0; } }
.colonne.large > .message { position: sticky; top: 0; z-index: 5; box-shadow: var(--ombre); }
.passages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait-fort); }
.passages li { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--trait); font-size: 15px; }
.passages .tete { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.passages .numero { color: var(--navy); }
.passages p { grid-column: 1; margin: 0; }
.passages .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.table-zone { overflow-x: auto; }
code.cle { font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: var(--soft); padding: 3px 8px; border-radius: 4px; overflow-wrap: anywhere; }
dialog { border: 0; border-radius: var(--r-l); padding: 26px 26px 22px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(14, 44, 59, .28); color: var(--encre); }
dialog::backdrop { background: rgba(14, 44, 59, .38); }
dialog h2 { margin-bottom: 10px; }
dialog .rang { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
dialog.large { max-width: 860px; }
.scan { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: start; }
.scan-page { position: relative; border: 1px solid var(--trait-fort); border-radius: var(--r-s); overflow: hidden; background: #fff; line-height: 0; }
.scan-page img { display: block; width: 100%; height: auto; }
.scan-zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-fond { fill: rgba(184, 151, 90, .26); }
.scan-bord { stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.scan-bord.vide { display: none; }
.scan-legende { margin: 8px 0 0; font-size: 13.5px; color: var(--discret); text-align: center; }
.scan-reglages p { margin: 0 0 12px; }
.scan-reglages .champ input[type=range] { display: block; width: 100%; accent-color: var(--navy); margin: 6px 0 2px; min-height: 28px; }
.scan-reglages .champ output { font-size: 14px; color: var(--discret); }
.scan-reglages .champ.couleur input { display: block; width: 64px; height: 38px; padding: 2px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: #fff; margin-top: 6px; }
.scan-garde { background: var(--soft); border-left: 2px solid var(--gold); border-radius: 0 var(--r-m) var(--r-m) 0; padding: 12px 14px; font-size: 14.5px; }
.scan-etat { margin: 14px 0 0; min-height: 1.4em; color: var(--critique); font-size: 14.5px; }
.entete-vu { margin: 0 0 16px; display: grid; gap: 10px; max-width: 560px; }
.entete-vu img { display: block; width: 100%; height: auto; border: 1px solid var(--trait); border-radius: var(--r-s); background: #fff; }
.entete-vu p { margin: 0; display: flex; align-items: center; gap: 8px; }
.visites-figure { margin: 18px 0 20px; }
.visites-courbe { display: block; width: 100%; height: 84px; border-bottom: 1px solid var(--trait-fort); }
.visites-courbe .plein { fill: var(--navy); }
.visites-courbe .vide { fill: var(--trait-fort); }
.visites-jours { margin-top: 22px; }
.visites-deux { gap: 20px 24px; }
.visites-figure figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13.5px; color: var(--discret); }
.pastille { display: inline-block; width: 16px; height: 16px; flex: none; stroke: var(--trait-fort); stroke-width: 1; }
.section .entete-aide { margin: 14px 0 6px; }
@media (max-width: 720px) { .scan { grid-template-columns: minmax(0, 1fr); } .scan-page { max-width: 240px; margin: 0 auto; } }

.voile { display: none; }
@media (max-width: 860px) {
  .cadre { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; inset: 0 auto 0 0; width: min(310px, 86vw); z-index: 30; transform: translateX(-102%); transition: transform .2s; }
  .cadre.ouvert .lateral { transform: none; box-shadow: 0 0 40px rgba(14, 44, 59, .25); }
  .barre .titre p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bandeau-valide .pousse { display: none; }
  .fiche .ligne.sans-cote > :nth-child(2) { grid-column: 1 / -1; }
  .cadre.ouvert .voile { display: block; position: fixed; inset: 0; background: rgba(14, 44, 59, .38); z-index: 20; border: 0; width: 100%; }
  .btn.menu { display: inline-flex; }
  .barre { padding: 10px 14px; gap: 8px; }
  .barre .actions .btn { padding: 6px 12px; }
  .colonne { padding: 18px 14px 26px; }
  .bas-fixe { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
  .feuille .corps { padding: 18px 16px 20px; }
  .deux, .reperes { grid-template-columns: 1fr; }
  .accueil h2 { font-size: 21px; margin-top: 2vh; }
  .bulle { max-width: 94%; }
  .fiche .ligne { grid-template-columns: 1fr 96px; }
  .fiche .ligne > span { grid-column: 1 / -1; }
  .section { padding: 18px 16px; }
  .passages li { grid-template-columns: 1fr; }
  .passages .btn { grid-column: 1; grid-row: auto; justify-self: start; padding-left: 0; }
  h1 { font-size: 19px; }
}

/* ---------- page d'accueil publique ---------- */
html.page, html.page body, html.page #app { height: auto; }
html.page { scroll-behavior: smooth; scroll-padding-top: 84px; }
.vitrine { --v-display: "Cormorant", "NotoSerif", Georgia, serif; --v-creme: #F4F1EA; --v-or: #C9A86A; --v-nuit: #0B2531; --v-bleu: #16485A;
  background: var(--fond); color: var(--encre); font-size: 17px; line-height: 1.62; overflow-x: clip; }
.v-large { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.vitrine h1, .vitrine h2, .vitrine h3 { font-family: var(--v-display); font-weight: 500; letter-spacing: -.005em; color: var(--navy); text-wrap: balance; }
.vitrine h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3rem); line-height: 1.1; margin: 0 0 22px; max-width: 20ch; }
.vitrine h3 { font-size: 1.56rem; line-height: 1.2; font-weight: 600; margin: 0 0 8px; }
.vitrine p { margin: 0 0 14px; max-width: 62ch; }
.v-sur { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-texte); margin: 0 0 18px; }

.v-tete { position: sticky; top: 0; z-index: 20; background: rgba(11, 37, 49, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 241, 234, .1); }
.v-barre { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.v-marque { display: inline-flex; align-items: center; gap: 11px; font-family: var(--v-display); font-size: 25px; font-weight: 600; line-height: 1;
  color: var(--v-creme); text-decoration: none; margin: 0; }
.v-marque i { font-style: normal; font-weight: 500; color: var(--v-or); }
.v-nav { display: flex; gap: 30px; margin-left: auto; }
.v-nav a { color: rgba(244, 241, 234, .82); text-decoration: none; font-size: 15.5px; padding: 8px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.v-nav a:hover { color: #fff; border-bottom-color: var(--v-or); }
.v-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 24px; border-radius: var(--r-s);
  border: 1px solid transparent; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.v-btn.clair { color: var(--v-creme); border-color: rgba(244, 241, 234, .42); }
.v-btn.clair:hover { background: rgba(244, 241, 234, .1); border-color: rgba(244, 241, 234, .75); }
.v-btn.or { background: var(--v-or); color: var(--v-nuit); border-color: var(--v-or); }
.v-btn.or:hover { background: #D7BA82; border-color: #D7BA82; }
.v-btn.marine { background: var(--navy); color: #fff; border-color: var(--navy); padding-inline: 34px; }
.v-btn.marine:hover { background: var(--navy-2); }
.v-tete .v-btn { min-height: 40px; padding: 6px 20px; font-size: 15.5px; }

.v-hero { background: radial-gradient(120% 90% at 85% 0%, rgba(201, 168, 106, .13), transparent 55%), linear-gradient(165deg, var(--v-nuit) 0%, var(--navy) 46%, var(--v-bleu) 100%);
  color: var(--v-creme); padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 6vw, 84px); }
.v-hero .v-sur { color: var(--v-or); }
.vitrine h1 { color: #fff; font-size: clamp(2.7rem, 1.25rem + 5.6vw, 5.1rem); line-height: 1.02; letter-spacing: -.012em; margin: 0 0 26px; }
.v-chapo { font-size: clamp(17px, 15px + .45vw, 20px); line-height: 1.6; color: rgba(244, 241, 234, .86); max-width: 56ch !important; margin-bottom: 32px !important; }
.v-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(48px, 7vw, 84px) !important; max-width: none !important; }
.v-actions .v-btn { min-height: 48px; padding-inline: 30px; }

.v-section { padding: clamp(64px, 9vw, 124px) 0; }
.v-blanc { background: var(--surface); }
.v-num { display: block; font-family: var(--v-display); font-size: 2.6rem; line-height: 1; font-weight: 500; color: var(--gold); margin-bottom: 18px; font-variant-numeric: lining-nums; }
.v-texte h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.35rem); font-weight: 500; line-height: 1.14; margin-bottom: 16px; }
.v-note { border-left: 2px solid var(--gold); padding: 2px 0 2px 18px; color: var(--discret); margin-top: 26px !important; }

.v-garanties strong, .v-essai strong { font-weight: 700; color: var(--navy); }
.v-docs { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.v-docs li { counter-increment: doc; display: flex; gap: 18px; align-items: baseline; padding: 17px 0; border-top: 1px solid var(--trait-fort);
  font-family: var(--v-display); font-size: 1.5rem; line-height: 1.2; font-weight: 500; color: var(--navy); }
.v-docs li:last-child { border-bottom: 1px solid var(--trait-fort); }
.v-docs li::before { content: counter(doc, decimal-leading-zero); font-family: "Carlito", sans-serif; font-size: 13px; letter-spacing: .08em; color: var(--gold-texte); flex: none; }

.v-nuit { background: linear-gradient(170deg, var(--v-nuit) 0%, var(--navy) 60%, #123C4C 100%); color: rgba(244, 241, 234, .86); }
.v-nuit h2, .v-nuit h3 { color: #fff; }
.v-nuit .v-sur { color: var(--v-or); }
.v-intro { font-size: 18px; }
.v-boucle { list-style: none; margin: 54px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 26px; counter-reset: etape; }
.v-boucle li { position: relative; padding-top: 44px; counter-increment: etape; }
.v-boucle li::before { content: ""; position: absolute; top: 9px; left: 0; right: -26px; height: 1px; background: rgba(244, 241, 234, .24); }
.v-boucle li:last-child::before { right: 0; }
.v-boucle li::after { content: ""; position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; border: 2.5px solid var(--v-or); background: var(--navy); box-sizing: border-box; }
.v-boucle h3 { font-size: 1.5rem; }
.v-boucle p { font-size: 16px; color: rgba(244, 241, 234, .78); }
.v-garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 6vw, 80px); margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(244, 241, 234, .2); }
.v-garanties strong { color: #fff; display: block; font-family: var(--v-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }

.v-grille { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); }
.v-grille li { border-top: 1px solid var(--trait-fort); padding: 26px 0 22px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start; }
.v-grille svg { grid-row: span 2; width: 30px; height: 30px; margin-top: 2px; stroke: var(--gold-texte); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v-grille p { color: var(--discret); font-size: 16.5px; grid-column: 2; }
.v-essai { margin: 40px 0 0 !important; max-width: none !important; background: var(--soft); border-left: 2px solid var(--gold); border-radius: 0 var(--r-m) var(--r-m) 0; padding: 20px 24px; color: var(--encre); }

.v-pied { background: var(--v-nuit); color: rgba(244, 241, 234, .7); padding: 44px 0 48px; font-size: 15px; }
.v-pied .v-marque { font-size: 22px; margin-bottom: 18px; }
.v-pied p { margin-bottom: 4px; max-width: none; }

/* page d'accueil : en-tête, confiance, film */
.v-nav + .v-btn-demo { margin-left: 6px; }
.v-badge { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 26px !important; padding: 7px 16px 7px 12px; border: 1px solid rgba(201, 168, 106, .5);
  border-radius: 999px; font-size: 14.5px; letter-spacing: .04em; color: var(--v-or); background: rgba(201, 168, 106, .08); }
.v-badge svg, .v-confiance svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.v-hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.vitrine .v-hero h1 { max-width: 17ch; font-size: clamp(2.35rem, 1.3rem + 3.5vw, 4rem); line-height: 1.05; margin-bottom: 14px; text-wrap: balance; }
.v-plus { font-family: var(--v-display); font-weight: 500; font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.7rem); line-height: 1.1; color: var(--v-or); margin: 0 0 26px !important; }
.v-tel { margin: 0 0 0 auto; width: min(100%, max(236px, calc((100vh - 215px) * 9 / 19.5))); }
@supports (height: 100svh) { .v-tel { width: min(100%, max(236px, calc((100svh - 215px) * 9 / 19.5))); } }
.v-tel-cadre { position: relative; width: 100%; aspect-ratio: 9 / 19.5; padding: 11px; background: #06161E; border-radius: 46px;
  box-shadow: 0 2px 0 rgba(244, 241, 234, .16) inset, 0 0 0 1px rgba(244, 241, 234, .1), 0 40px 70px -28px rgba(0, 0, 0, .7), 0 14px 26px -12px rgba(0, 0, 0, .45); }
.v-tel-cadre video, .v-tel-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--fond); }
.v-tel-cadre [hidden] { display: none; }
.v-tel-pause { display: block; margin: 16px auto 0; padding: 6px 14px; min-height: 36px; border: 0; background: none; color: rgba(244, 241, 234, .72); font-size: 14.5px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244, 241, 234, .34); }
.v-tel-pause:hover { color: #fff; }
.v-tel-pause:focus-visible { outline: 2px solid var(--v-or); outline-offset: 2px; border-radius: var(--r-s); }

/* page d'accueil : les scènes du film, sous le haut de page */
.v-action { background: var(--surface); border-bottom: 1px solid var(--trait); padding: clamp(36px, 5vw, 60px) 0 clamp(30px, 4vw, 46px); }
.vitrine .v-action h2 { font-size: 13px; font-family: "Carlito", sans-serif; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-texte); margin: 0 0 20px; max-width: none; }
.v-scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 30px; }
.v-scenes li { border-top: 2px solid var(--trait-fort); padding: 16px 0 4px; transition: border-color .25s; }
.v-scenes li.actif { border-top-color: var(--gold); }
.v-scenes button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.v-scenes button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--r-s); }
.v-scenes .t { display: block; font-size: 14px; letter-spacing: .08em; color: var(--gold-texte); font-variant-numeric: tabular-nums lining-nums; margin-bottom: 6px; }
.v-scenes h3 { font-size: 1.5rem; margin-bottom: 4px; }
.v-scenes p { color: var(--discret); font-size: 16px; margin: 0; }
.v-action-note { margin: 22px 0 0 !important; max-width: none !important; color: var(--discret); font-size: 14.5px; }
.v-hero .v-actions { margin-bottom: 26px !important; }
.v-confiance { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 15.5px; color: rgba(244, 241, 234, .84); }
.v-confiance li { display: inline-flex; align-items: center; gap: 9px; }
.v-confiance svg { color: var(--v-or); stroke-width: 2; }

/* page d'accueil : trois raisons */
.v-cartes { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v-cartes li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: 30px 30px 22px; box-shadow: var(--ombre); }
.v-cartes p { color: var(--discret); font-size: 16.5px; }
.v-cartes .v-num { font-size: 2.3rem; margin-bottom: 20px; }
.v-cartes a { color: var(--navy); text-underline-offset: 3px; white-space: nowrap; }

/* Section MDR : durées de la démonstration, quatre exigences, trame par pathologie. */
#mdr h2 { max-width: 24ch; }
#mdr .v-sur { max-width: none; }
.v-temps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--trait-fort); }
.v-temps div { margin: 0; }
.v-temps dt { font-family: var(--v-display); font-size: clamp(2.3rem, 1.7rem + 1.9vw, 3.3rem); line-height: 1; font-weight: 500; color: var(--navy); font-variant-numeric: lining-nums; margin: 0 0 8px; }
.v-temps dd { margin: 0; color: var(--discret); font-size: 16.5px; max-width: 30ch; }
.v-temps-note { margin: 18px 0 0 !important; color: var(--discret); font-size: 14.5px; max-width: none !important; }
.v-mdr { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 36px); }
.v-mdr li { border-top: 2px solid var(--gold); padding: 20px 0 0; }
.v-mdr h3 { font-size: 1.45rem; }
.v-mdr p { color: var(--discret); font-size: 16px; }
.v-ref { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-texte) !important; margin: 0 0 10px !important; }
.v-trame { margin-top: 56px; background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-l); box-shadow: var(--ombre); overflow: hidden; }
.v-trame-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding: clamp(20px, 3vw, 32px) clamp(20px, 3.4vw, 40px); border-bottom: 1px solid var(--trait); background: var(--soft); }
.v-trame-tete h3 { margin: 0; }
.v-trame-tete label { display: grid; gap: 6px; font-size: 14.5px; color: var(--discret); flex: 0 1 430px; min-width: 0; }
.v-trame-tete select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--trait-fort); border-radius: var(--r-s); background: var(--surface); color: var(--encre); font: inherit; font-size: 16px; }
.v-trame-tete select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.v-trame-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.4vw, 40px); }
.v-trame-corps h4 { font-family: var(--v-display); font-size: 1.34rem; font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 10px; }
.v-trame-corps ul { list-style: none; margin: 0; padding: 0; }
.v-trame-corps li { position: relative; padding: 7px 0 7px 22px; font-size: 16px; line-height: 1.42; color: var(--encre); }
.v-trame-corps li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold-texte); }
.v-trame-anamnese { border-left: 2px solid var(--gold); padding-left: clamp(16px, 2vw, 26px); }
.v-trame-anamnese h4 { font-size: 1.7rem; }
.v-trame-anamnese li::before { background: var(--gold); border-color: var(--gold); }
.v-trame-autres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(20px, 3vw, 40px); align-content: start; }
.v-trame-autres li { font-size: 15.5px; color: var(--discret); }
.v-trame-app { grid-column: 1 / -1; margin: 0 !important; color: var(--discret); font-size: 15px; max-width: none !important; }
.v-trame-pied { margin: 0 !important; padding: 18px clamp(20px, 3.4vw, 40px) 22px; border-top: 1px solid var(--trait); color: var(--discret); font-size: 15px; max-width: none !important; }
.v-mdr-note { margin: 30px 0 0 !important; padding: 18px 22px; border-left: 2px solid var(--trait-fort); color: var(--discret); font-size: 15.5px; max-width: 86ch !important; }
.v-mdr-note strong { color: var(--navy); font-weight: 700; }

/* page d'accueil : la plateforme, une fonction par rang */
.v-rang { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(44px, 6vw, 76px) 0; border-top: 1px solid var(--trait); }
.v-rang:first-of-type { border-top: 0; padding-top: clamp(28px, 4vw, 48px); }
.v-rang:last-child { padding-bottom: 0; }
.v-rang.inverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.v-rang.inverse .v-texte { order: 2; }
.v-etape { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-texte); margin: 0 0 12px !important; }
.v-vue { margin: 0; }
.v-vue figcaption { margin-top: 12px; color: var(--discret); font-size: 14.5px; }
.v-vue img { display: block; width: 100%; height: auto; border-radius: var(--r-m); border: 1px solid var(--trait-fort); box-shadow: 0 1px 2px rgba(14, 44, 59, .06), 0 18px 44px rgba(14, 44, 59, .13); background: var(--surface); }
.v-chiffre { margin: 24px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--trait-fort); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; color: var(--discret); font-size: 15.5px; line-height: 1.45; }
.v-chiffre strong { font-family: var(--v-display); font-size: 2.5rem; line-height: 1; font-weight: 500; color: var(--navy); font-variant-numeric: lining-nums; white-space: nowrap; }

/* page d'accueil : démonstration */
.v-demo { margin-top: 40px; background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-l); box-shadow: var(--ombre); overflow: hidden; }
.v-demo-onglets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--trait); background: var(--soft); }
.v-demo-onglets button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 10px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 16px; color: var(--discret); cursor: pointer; }
.v-demo-onglets button span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--trait-fort); font-size: 13.5px; line-height: 1; }
.v-demo-onglets button[aria-selected="true"] { color: var(--navy); background: var(--surface); border-bottom-color: var(--gold); }
.v-demo-onglets button[aria-selected="true"] span { background: var(--navy); border-color: var(--navy); color: #fff; }
.v-demo-onglets button:hover { color: var(--navy); }
.v-demo-scene { padding: clamp(20px, 3.4vw, 40px); max-height: 640px; overflow: auto; overscroll-behavior: contain; }
.v-demo-scene:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.v-demo-scene > .v-demo-legende { margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--trait); color: var(--discret); max-width: none; font-size: 16px; }
.v-demo-ecart { margin: 0 0 18px; display: grid; gap: 10px; }
.v-demo-ecart > div { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 4px 18px; align-items: baseline; }
.v-demo-ecart dt { font-size: 13.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--discret); }
.v-demo-ecart dd { margin: 0; font-size: 17px; color: var(--navy); }
.v-demo-ecart > div:last-child dd { font-weight: 600; }
.v-demo-suite { margin: 0 0 12px; color: var(--discret); font-size: 16px; }
@media (max-width: 720px) { .v-demo-ecart > div { grid-template-columns: minmax(0, 1fr); } }
.v-demo-dictee { white-space: pre-wrap; font-size: 17px; line-height: 1.7; max-width: 78ch !important; }
.v-demo-scene audio { display: block; width: 100%; max-width: 520px; margin: 0 0 22px; }
.v-demo-scene .rendu { max-width: 820px; margin: 0 auto; font-size: 16px; }
.v-demo-scene .rendu h3, .v-demo-scene .bloc h2, .v-demo-scene .reperes h3 { font-family: "NotoSerif", Georgia, serif; font-weight: 400; letter-spacing: .1px; }
.v-demo-scene .rendu h3 { font-size: 16.5px; margin: 20px 0 6px; }
.v-demo-scene .bloc h2 { font-size: 18px; line-height: 1.35; margin: 0 0 12px; max-width: none; }
.v-demo-scene .reperes h3 { font-size: 15.5px; margin: 0 0 6px; }
.v-demo-scene .bloc { margin: 0 0 22px; }
.v-demo-scene .bloc p, .v-demo-scene .rendu p { max-width: none; }
.v-demo-pdf { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.v-demo-pdf img { display: block; width: 100%; height: auto; border: 1px solid var(--trait-fort); box-shadow: 0 10px 30px rgba(14, 44, 59, .14); }
.v-demo-attente { color: var(--discret); }
.v-demo-note { margin: 18px 0 0 !important; max-width: none !important; color: var(--discret); font-size: 15px; }

/* page d'accueil : tarif */
.v-tarif { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.v-prix { background: var(--surface); border: 1px solid var(--trait-fort); border-top: 3px solid var(--gold); border-radius: var(--r-l); padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 1px 2px rgba(14, 44, 59, .05), 0 22px 54px rgba(14, 44, 59, .1); }
.v-prix-nom { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-texte); margin: 0 0 14px !important; }
.v-prix-montant { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 22px !important; color: var(--discret); font-size: 17px; line-height: 1.35; }
.v-prix-montant strong { font-family: var(--v-display); font-size: clamp(3.6rem, 2.6rem + 3vw, 4.8rem); line-height: .9; font-weight: 500; color: var(--navy); font-variant-numeric: lining-nums; }
.v-prix ul { list-style: none; margin: 0 0 28px; padding: 0; }
.v-prix li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--trait); font-size: 16.5px; line-height: 1.4; }
.v-prix li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 12px; height: 6px; border-left: 2px solid var(--gold-texte); border-bottom: 2px solid var(--gold-texte); transform: rotate(-45deg); }
.v-prix .v-btn { width: 100%; min-height: 48px; }
.v-dedie { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: 92px;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--r-l); color: rgba(244, 241, 234, .86); background: linear-gradient(160deg, var(--v-nuit) 0%, var(--navy) 62%, #123C4C 100%); box-shadow: 0 22px 54px rgba(14, 44, 59, .18); }
.v-dedie .v-sur, .v-dedie .v-prix-nom { color: var(--v-or); }
.v-dedie h3 { font-family: var(--v-display); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.12; color: #fff; margin: 0 0 18px; }
.v-dedie-texte p:last-child { margin: 0; max-width: 68ch; font-size: 16.5px; line-height: 1.7; }
.v-dedie-prix { border-left: 1px solid rgba(244, 241, 234, .18); padding-left: clamp(24px, 3.4vw, 44px); }
.v-dedie-montant { font-family: var(--v-display); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.1rem); line-height: 1.15; color: #fff; margin: 0 0 24px !important; }
.v-dedie .v-btn { width: 100%; min-height: 48px; }

/* page d'accueil : questions */
.v-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.v-faq-liste details { border-top: 1px solid var(--trait-fort); }
.v-faq-liste details:last-child { border-bottom: 1px solid var(--trait-fort); }
.v-faq-liste summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; font-family: var(--v-display); font-size: 1.5rem; line-height: 1.22; font-weight: 600; color: var(--navy); }
.v-faq-liste summary::-webkit-details-marker { display: none; }
.v-faq-liste summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 1.5px solid var(--gold-texte); border-bottom: 1.5px solid var(--gold-texte); transform: translateY(-3px) rotate(45deg); transition: transform .18s; }
.v-faq-liste details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.v-faq-liste summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-s); }
.v-faq-liste details p { margin: 0 !important; padding: 0 44px 22px 2px; color: var(--discret); max-width: 68ch; }

/* page d'accueil : demande de démonstration ou d'accès */
.v-acces { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.v-deja { margin-top: 26px !important; color: rgba(244, 241, 234, .78); }
.v-deja a { color: var(--v-creme); }
.v-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; background: rgba(244, 241, 234, .06); border: 1px solid rgba(244, 241, 234, .18); border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); }
.v-form label { display: grid; gap: 6px; font-size: 15px; color: rgba(244, 241, 234, .86); }
.v-form label span { color: rgba(244, 241, 234, .6); }
.v-form input:not([type="checkbox"]), .v-form textarea { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: var(--r-s); border: 1px solid rgba(244, 241, 234, .3); background: rgba(6, 22, 30, .34); color: #fff; font-size: 16.5px; }
.v-form textarea { resize: vertical; min-height: 92px; }
.v-form input:focus-visible, .v-form textarea:focus-visible { outline: 2px solid var(--v-or); outline-offset: 1px; border-color: var(--v-or); }
.v-form-large { grid-column: 1 / -1; }
.v-form .v-case { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.v-form .v-case input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--v-or); flex: none; }
.v-form .v-case span { color: rgba(244, 241, 234, .86); }
.v-form .v-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-form .v-btn { min-height: 48px; cursor: pointer; font-size: 16.5px; }
.v-form .v-btn[disabled] { opacity: .6; cursor: default; }
.v-form-etat { margin: 0 !important; max-width: none !important; font-size: 15.5px; }
.v-form-etat:empty { display: none; }
/* Page d'accueil seule : pendant qu'on regarde si le service répond. */
html.attente, html.attente a { cursor: progress; }
html.attente a[href="#connexion"] { opacity: .6; }
.v-form-etat.erreur { color: #F4C4BA; }
.v-mention { margin: 0 !important; max-width: none !important; font-size: 14px; color: rgba(244, 241, 234, .62); }
.v-form.envoye > :not(.v-form-etat) { display: none; }
.v-form.envoye .v-form-etat { font-size: 18px; color: #fff; padding: 12px 0; }

.v-pied-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(32px, 8vw, 120px); align-items: start; }
.v-pied nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 34px; }
.v-pied nav a { color: rgba(244, 241, 234, .78); text-decoration: none; padding: 3px 0; }
.v-pied nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1020px) {
  .v-cartes { grid-template-columns: 1fr; gap: 16px; max-width: 640px; }
  .v-mdr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 4vw, 44px); }
  .v-nav { gap: 22px; }
  .v-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; }
  .v-btn-demo { display: none; }
  .v-boucle { grid-template-columns: 1fr; gap: 0; max-width: 620px; }
  .v-boucle li { padding: 0 0 26px 44px; }
  .v-boucle li::before { top: 9px; bottom: -9px; left: 9px; right: auto; width: 1px; height: auto; }
  .v-boucle li:last-child::before { display: none; }
  .v-boucle li:last-child { padding-bottom: 0; }
}
@media (max-width: 800px) {
  .v-nav { display: none; }
  .v-hero-grille { grid-template-columns: 1fr; }
  .v-tel { width: min(100%, 290px); margin: 12px auto 0; }
  .v-rang, .v-rang.inverse, .v-tarif, .v-faq, .v-acces, .v-demo-pdf, .v-pied-grille, .v-dedie { grid-template-columns: 1fr; }
  .v-dedie-prix { border-left: 0; padding-left: 0; border-top: 1px solid rgba(244, 241, 234, .18); padding-top: 24px; }
  .v-rang.inverse .v-texte { order: 0; }
  .v-demo-pdf img { max-width: 300px; }
  .v-barre { justify-content: space-between; min-height: 60px; }
  .v-garanties, .v-grille, .v-trame-corps { grid-template-columns: 1fr; }
  .v-garanties { gap: 22px; }
  .v-marque { font-size: 22px; gap: 9px; }
  .v-marque img { width: 30px; height: 30px; }
}
@media (max-width: 560px) {
  .vitrine { font-size: 16.5px; }
  .v-form { grid-template-columns: 1fr; }
  .v-demo-onglets button { flex-direction: column; gap: 4px; font-size: 14px; min-height: 62px; }
  .v-faq-liste summary { font-size: 1.32rem; }
  .v-faq-liste details p { padding-right: 8px; }
  .v-confiance { flex-direction: column; }
  .v-temps, .v-mdr, .v-trame-autres { grid-template-columns: 1fr; }
  .v-temps { gap: 22px; }
  .v-mdr { gap: 26px; }
  .v-trame-tete label { flex-basis: 100%; }
  .v-scenes { grid-template-columns: 1fr; }
  .v-chiffre { grid-template-columns: 1fr; }
  .v-actions .v-btn { flex: 1 1 100%; }
  .v-docs li { font-size: 1.32rem; }
  .v-tete .v-btn { padding: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) { html.page { scroll-behavior: auto; } }
