/* AllenVoice, aperçu E-ameliore-Impeccable-v1.3 : « Comptoir de jour ».
   v1.2 (t277) : en clair, les parties basses passent sur une feuille blanche (--sheet).
   v1.3 (t278) : en clair seulement, les gris restants deviennent une petite gamme beige clair (teinte ~80°,
   chroma très faible) : surface (haut de page), surface-2 (fiche, essai, pied), filet. Les grandes zones
   blanches de v1.2 restent blanches. Encre marine. Le bleu est réservé à l'action principale et à la voix
   de l'assistant ; la sauge est réservée à l'approbation. Une seule famille (Archivo), une seule élévation
   (la bordure), aucun halo. Le thème sombre remappe les mêmes rôles (assets/css/theme.css). */
:root {
  --stone: #F3EFE8;      /* v1.3 beige « surface » : haut de page (en-tête, héros) */
  --counter: #E9E2D6;    /* v1.3 beige « comptoir » : bande sous les rendus du héros */
  --edge: #C8BBA6;       /* v1.3 beige « arête » : arête du comptoir, cadre de la fiche */
  --paper: #FBF9F5;      /* v1.3 beige « papier » : fiche, panneaux, tuiles */
  --field-bg: #FFFFFF;
  --sheet: #FFFFFF;      /* v1.2 : feuille des parties basses (clair) */
  --sheet-2: #FAF7F1;    /* v1.3 beige « surface-2 » : comptoir, essai, pied */
  --well: #F4EFE6;       /* v1.3 beige « creux » : transcription */
  --seam: #E3DACB;       /* v1.3 beige « filet » explicite : couture entre deux fonds */
  --ink: #0E1A2B; --ink-2: #384456; --ink-3: #4F5B6B;
  --blue: #2446D9; --blue-hover: #1C38B8; --on-blue: #FFFFFF; --link: #1C38B8; --focus: #2446D9;
  --sage-2: #DCE7DE; --sage-ink: #24452F; --sage-line: rgba(36, 69, 47, .28);
  --line: rgba(84, 62, 30, .16); --line-2: rgba(84, 62, 30, .09); /* v1.3 : filets beige (brun chaud translucide) */
  --line-strong: #6B7686;
  --error: #B42318;
  --bubble: #FFFFFF;
  --band-bg: #0E1A2B; --band-ink: #F2F4F6; --band-ink-2: #C3CBD6; --band-line: rgba(242, 244, 246, .16);
  --scrim: rgba(14, 26, 43, .36);
  --r-lg: 16px; --r-md: 14px; --r-sm: 12px;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1200px; --pad: clamp(20px, 5vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  accent-color: var(--blue);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--line-strong) var(--sheet); }
body {
  margin: 0; background: var(--sheet); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font); font-stretch: 100%; font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip; caret-color: var(--blue);
}
::selection { background: var(--blue); color: var(--on-blue); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font); font-weight: 620; font-stretch: 110%; letter-spacing: -.024em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.5rem + 3.1vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem); line-height: 1.08; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.2; font-weight: 600; font-stretch: 104%; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
dd, li { text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
h1, h2, h3, p, li, dd, dt, summary, label, a, .btn, .bubble, .ui-row span, .tag, .chip-ok { overflow-wrap: anywhere; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--stone); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: var(--stone); }

/* En-tête : plein, sans flou décoratif */
.header { position: sticky; top: 0; z-index: 50; background: var(--stone); transition: box-shadow .2s, background-color .2s; }
.header.is-scrolled { background: var(--sheet); box-shadow: 0 1px 0 var(--line); } /* v1.2 : au défilement, l'en-tête prend la feuille */
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 520; padding: 10px 12px; border-radius: 10px; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--line-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 620; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 .95rem var(--font); cursor: pointer; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, top .2s; }
.menu-btn .bars::before { top: 2px; } .menu-btn .bars::after { top: 8px; }
.menu-open .menu-btn .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 5px; transform: rotate(-45deg); }

/* Boutons : un seul principal par écran */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); font: 620 1rem/1.2 var(--font); font-stretch: 104%; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); color: var(--on-blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .95rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); text-decoration: none; /* v1.4 : lien éditorial à flèche, sans soulignement au repos */ }
.link-more:hover, .link-more:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.link-more .arrow { transition: transform .15s; }
.link-more:hover .arrow, .link-more:focus-visible .arrow { transform: translateX(3px); }

/* Étiquettes d'honnêteté et pastille d'approbation */
.tag { display: inline-flex; align-items: center; font: 600 .8rem/1.2 var(--font); color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 5px 9px; white-space: nowrap; }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; font: 620 .8rem/1.2 var(--font); color: var(--sage-ink); background: var(--sage-2); border: 1px solid var(--sage-line); border-radius: 999px; padding: 5px 10px 5px 8px; white-space: nowrap; }
.chip-ok svg { width: 14px; height: 14px; flex-shrink: 0; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 36em; }

/* Sections et rythme : 24 / 48 / 96 */
section { position: relative; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }

/* Héros posé sur le comptoir : l'objet 3D repose sur l'arête */
.hero, .page-hero { --counter-h: clamp(72px, 9vw, 132px); background: linear-gradient(to bottom, var(--stone) 0, var(--stone) calc(100% - var(--counter-h)), var(--edge) calc(100% - var(--counter-h)), var(--edge) calc(100% - var(--counter-h) + 1px), var(--counter) calc(100% - var(--counter-h) + 1px)); }
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(40px, 5vw, 64px); }
.hero .wrap, .page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { display: grid; gap: 24px; align-content: center; padding-bottom: calc(var(--counter-h) + 8px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--ink-3); }
.hero-meta span + span::before { content: "·"; margin-right: 18px; color: var(--ink-3); }
@media (max-width: 600px) { .hero-meta { flex-direction: column; } .hero-meta span + span::before { content: none; } }
.page-hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(36px, 4vw, 56px); }
.page-hero h1, .contact-hero h1 { font-size: clamp(2.2rem, 1.45rem + 2.8vw, 3.6rem); } /* v1.1 : titre de page intérieure, contact inclus */
.page-hero .hero-copy { gap: 20px; }

/* Scène 3D : le rendu, sans lueur ni ombre ajoutées (la lumière est dans le rendu) */
.stage { position: relative; isolation: isolate; }
.stage .frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--counter); border: 1px solid var(--line); }
.stage .frame img { width: 100%; height: 100%; object-fit: cover; }
.ui-card { position: absolute; z-index: 2; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; font-size: .9rem; line-height: 1.45; }
.ui-card .ui-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; font-size: .85rem; color: var(--ink); margin-bottom: 8px; }
.ui-card .ui-title > span { font-weight: 550; color: var(--ink-3); font-size: .78rem; }
.ui-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: .86rem; }
.ui-row b { font-weight: 620; color: var(--ink-3); font-size: .8rem; padding-top: 1px; }
.hero .ui-fiche { left: -5%; bottom: 7%; width: min(300px, 62%); }
.hero .ui-say { right: -3%; top: 6%; width: min(270px, 58%); }
.say { display: grid; gap: 6px; }
.say .who { font-size: .78rem; font-weight: 620; color: var(--ink-3); }
.say .bubble { background: var(--bubble); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; color: var(--ink); }
.say .bubble.ai { background: var(--blue); color: var(--on-blue); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.page-hero .ui-q { left: -5%; bottom: 7%; width: min(290px, 60%); display: grid; gap: 8px; }
.ui-q .bubble { justify-self: start; font-size: .86rem; padding: 7px 11px; }
.caption { font-size: .82rem; color: var(--ink-3); margin-top: 12px; }

/* Le comptoir : la fiche d'exemple y est posée (accueil) */
.counter { background: var(--sheet-2); padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); }
.counter .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

/* Fiche d'entreprise interactive (démonstration) */
.fiche { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--paper); overflow: clip; }
.fiche > .panel { border: 0; border-radius: 0; }
.fiche > .transcript { border-left: 1px solid var(--line); }
.panel { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.3rem; }
.fields { display: grid; gap: 0; margin: 0; }
.field { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); transition: background-color .3s; }
.field:last-child { border-bottom: 1px solid var(--line); }
.field dt { font-weight: 620; font-size: .88rem; color: var(--ink-3); padding-top: 2px; }
.field dd { margin: 0; min-height: 1.6em; color: var(--ink); }
.field .empty { display: inline-block; color: var(--ink-3); font-size: .95rem; }
.field .empty::before { content: ""; display: inline-block; width: 42px; height: 1px; margin-right: 10px; border-top: 2px dotted var(--line-strong); vertical-align: 4px; }
.field .full { display: none; }
.field .full .chip-ok { margin-top: 8px; }
.is-filled .field .empty { display: none; }
.is-filled .field .full { display: block; }
.js .is-filling .field .full { animation: fieldIn .45s var(--ease) both; animation-delay: calc(var(--i) * .26s); }
@keyframes fieldIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.fiche-status { font-size: .9rem; color: var(--ink-3); min-height: 1.4em; margin-top: 8px; }
.transcript { display: flex; flex-direction: column; gap: 14px; background: var(--well); }
.transcript .lines { display: grid; gap: 14px; }
.transcript .say.client .bubble { justify-self: start; max-width: 85%; }
.transcript .say.ai { justify-items: end; text-align: right; }
.transcript .say.ai .bubble { text-align: left; max-width: 85%; }
.pending { justify-self: end; font-size: .92rem; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: 14px 14px 4px 14px; padding: 9px 12px; max-width: 85%; text-align: left; }
.transcript .after { display: none; }
.fiche.is-filled .after { display: grid; }
.fiche.is-filled .pending, .fiche.is-filled .sans-fiche { display: none; }
.transcript .sans-fiche .bubble.pending { justify-self: end; max-width: 85%; } /* v1.5 : réponse sans fiche, bulle en pointillés */
.js .fiche.is-filling .after { animation: fieldIn .45s var(--ease) both; animation-delay: calc(var(--i) * .26s); }

/* Registre (v1.2) : le titre tient la colonne de gauche, quatre rangées légères à droite ; le lien suit le texte */
.ledger-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ledger-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger > li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ledger .copy { display: grid; gap: 8px; justify-items: start; }
.ledger h3 { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.32rem); }
.ledger p { color: var(--ink-2); max-width: 34em; }
.ledger .link-more { margin-top: 6px; font-size: .95rem; }
.ledger .thumb img { border-radius: var(--r-sm); width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border: 1px solid var(--line); }
.say-tile { display: grid; align-content: center; gap: 8px; aspect-ratio: 6 / 5; padding: 14px 12px; /* v1.3 : sans renvoi, marges égales */ border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }
.ledger .say-tile .bubble.ai { font-size: .8rem; line-height: 1.38; padding: 8px 10px; }
.say-tile .who { font-size: .74rem; }

/* Note de bas de page « À propos des exemples » (v1.4 : renvois « Exemple* » retirés) */
.note-exemples { max-width: 72ch; font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.note-exemples b { color: var(--ink); font-weight: 620; }
.note-exemples:focus { outline: none; }
.note-exemples:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

/* Bande : pour qui (seul aplat marine du clair, sans lueur) */
.band { background: var(--band-bg); color: var(--band-ink); --focus: #AEBFFF; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.band h2 { color: var(--band-ink); margin: 0 0 18px; }
.band p { color: var(--band-ink-2); font-size: 1.08rem; max-width: 34em; }
.band-logo { height: 26px; width: auto; margin-bottom: 26px; }
.sectors { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--band-line); }
.sectors li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--band-line); color: var(--band-ink); font-weight: 600; }
.sectors li span { font-weight: 450; font-size: .88rem; color: var(--band-ink-2); white-space: nowrap; }
.sectors li.first { color: #FFFFFF; }
.sectors li.first span { color: var(--band-ink); font-weight: 600; }
.band .fine { font-size: .88rem; color: var(--band-ink-2); margin-top: 16px; }

/* Fins de page : une par page, chacune liée à son contenu */
.ending { padding: clamp(56px, 7vw, 96px) 0; }
.slip { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--ink); }
.slip .copy { display: grid; gap: 18px; }
.slip .copy p { color: var(--ink-2); max-width: 34em; }
.slip img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(24px, 3vw, 32px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.next h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 2rem); max-width: 26ch; }
.next .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* Pages intérieures */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .copy { display: grid; gap: 18px; }
.split .copy > p { color: var(--ink-2); }
.plates { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plates li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plates .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--blue); border: 1px solid var(--line); }
.plates .ico svg { width: 22px; height: 22px; }
.plates b { display: block; font-size: 1rem; font-weight: 620; }
.plates span { color: var(--ink-2); font-size: .97rem; }
.verifs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); border-top: 1px solid var(--ink); counter-reset: v; }
.verifs li { display: grid; gap: 8px; align-content: start; padding: 22px 0 4px; counter-increment: v; }
.verifs li::before { content: counter(v); font: 620 1rem/1 var(--font); color: var(--blue); }
.verifs p { color: var(--ink-2); font-size: .98rem; }
.limits { margin-top: clamp(24px, 3vw, 36px); padding: 16px 20px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: .98rem; }
.limits b { color: var(--ink); }

/* Interface stylisée du portail (sur le rendu E4) */
.portal-stage { margin-bottom: 72px; }
.portal-ui { position: absolute; z-index: 2; right: -4%; bottom: -20%; width: min(350px, 64%); padding: 0; overflow: hidden; }
.portal-ui .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: .82rem; }
.portal-ui .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.portal-ui .bar b { margin-left: 8px; }
.portal-ui ul { list-style: none; margin: 0; padding: 6px; }
.portal-ui li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 10px; font-size: .86rem; }
.portal-ui li + li { border-top: 1px solid var(--line-2); }
.portal-ui li.on { background: var(--stone); }
.portal-ui li small { grid-column: 1 / -1; color: var(--ink-3); font-size: .8rem; }

/* Cas d'usage : rangées dépliables (P1-01 : aucun overflow ne coupe l'anneau de focus) */
.cases { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.case { border-bottom: 1px solid var(--line); }
.case h2 { font-size: inherit; letter-spacing: 0; font-stretch: 100%; }
.case-btn { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 40px; gap: 16px; align-items: center; text-align: left; padding: clamp(18px, 2vw, 24px) 6px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; border-radius: var(--r-sm); }
.case-btn:hover { background: var(--line-2); }
.case-btn:focus-visible { outline-offset: 2px; }
.case-btn .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--blue); border: 1px solid var(--line); }
.case-btn .ico svg { width: 24px; height: 24px; }
.case-btn .t { font: 620 clamp(1.2rem, 1.05rem + .6vw, 1.55rem)/1.15 var(--font); font-stretch: 108%; letter-spacing: -.016em; }
.case-btn .pm { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s; }
.case-btn .pm svg { width: 16px; height: 16px; }
.case.is-open .case-btn .pm { transform: rotate(45deg); background: var(--ink); color: var(--stone); border-color: var(--ink); }
.case-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(18px, 3vw, 40px); padding: 0 6px clamp(22px, 2.6vw, 32px) 66px; }
.case-body p { color: var(--ink-2); }
.case-body .say { align-content: start; }
.case-body .say .bubble { justify-self: start; }

/* Frise du pilote */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--edge); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 64px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 620 1.1rem/1 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); }
.steps li:last-child::before { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-2); font-size: .98rem; }
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.scope > div { display: grid; gap: 8px; align-content: start; padding-top: 20px; }
.scope h3 { font-size: 1.1rem; }
.scope p { color: var(--ink-2); font-size: .98rem; }
.scope .out { padding: 20px 18px 18px; border: 1px dashed var(--line-strong); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 4px; font: 600 1.15rem/1.35 var(--font); font-stretch: 104%; border-radius: var(--r-sm); }
.faq summary:hover { background: var(--line-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); background: linear-gradient(currentColor, currentColor) center / 12px 1.7px no-repeat, linear-gradient(currentColor, currentColor) center / 1.7px 12px no-repeat; transition: transform .2s var(--ease); } /* v1.1 : signe tracé comme l'icône .pm des cas d'usage, centré */
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 20px; color: var(--ink-2); max-width: 46em; }

/* Contact : le formulaire est dans le premier écran (P1-03) */
.contact-hero { background: var(--stone); padding: clamp(24px, 3.5vw, 48px) 0 clamp(56px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-side .art img { border-radius: var(--r-lg); border: 1px solid var(--line); max-width: 360px; }
.info-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.info-list b { font-size: .88rem; font-weight: 600; color: var(--ink-3); }
.info-list a { font-weight: 620; word-break: break-word; }
.tips { display: grid; gap: 10px; }
.tips h2 { font-size: 1.15rem; font-stretch: 104%; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: .98rem; }
.tips li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.tips li svg { width: 18px; height: 18px; color: var(--sage-ink); margin-top: 3px; }
form.panel { display: grid; gap: 16px; border-color: var(--edge); }
form.panel h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
form.panel h2:focus { outline: none; }
form.panel h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.form-note { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: .93rem; color: var(--ink-2); }
.form-note b { color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } /* v1.1 : pas d'étirement des champs voisins */
.champ { display: grid; gap: 7px; } /* v1.1 : même rythme que label */
.aide-champ { font-size: .86rem; }
label { display: grid; gap: 7px; font-weight: 620; font-size: .93rem; color: var(--ink); }
label .opt { font-weight: 450; color: var(--ink-3); }
input, textarea, select { width: 100%; font: 400 1rem/1.45 var(--font); color: var(--ink); background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 132px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus); }
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; padding: 11px 13px; }
.field-error { font-weight: 550; font-size: .9rem; color: var(--error); }
.field-error:empty { display: none; }
.form-status { font-size: .93rem; color: var(--ink-2); min-height: 1.4em; }

/* Essai par téléphone (section conservée telle quelle, présentée sur le comptoir) */
.demo-section { background: var(--sheet-2); border-top: 1px solid var(--seam); }

/* Pied de page */
.footer { background: var(--sheet-2); border-top: 1px solid var(--seam); padding: clamp(48px, 6vw, 72px) 0 32px; color: var(--ink-2); font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer img { height: 26px; width: auto; margin-bottom: 16px; }
.footer h2 { font: 620 .9rem/1.2 var(--font); color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink); text-decoration: none; display: inline-block; padding: 3px 0; }
.footer a:hover { text-decoration: underline; }
.footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }

/* Menu mobile */
.menu-scrim { display: none; }
.menu { display: none; }
@media (min-width: 961px) and (max-width: 1180px) {
  .hero .ui-fiche { left: -3%; bottom: 4%; width: 56%; }
  .hero .ui-say { right: -2%; top: -4%; width: 54%; }
  .page-hero .ui-q { bottom: 4%; width: 56%; }
  .ui-card { font-size: .9em; }
  .ledger > li { grid-template-columns: 176px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu { display: block; position: fixed; z-index: 45; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); max-height: calc(100dvh - var(--header-h) - 16px); overflow: auto; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--edge); padding: 8px; opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .menu-open .menu { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
  .menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
  .menu-open .header { box-shadow: 0 1px 0 var(--line); }
  .menu ul { list-style: none; margin: 0; padding: 0; }
  .menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font: 600 1.2rem/1.2 var(--font); font-stretch: 106%; }
  .menu li a::after { content: "\2192"; font-size: 1rem; color: var(--ink-3); }
  .menu li a[aria-current="page"] { background: var(--stone); }
  .menu li + li a { box-shadow: 0 -1px 0 var(--line-2); }
  .menu .menu-foot { display: grid; gap: 8px; padding: 10px 8px 8px; border-top: 1px solid var(--line); margin-top: 6px; }
  .menu .menu-foot .btn { width: 100%; }
  .menu .menu-foot .small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 6px 8px 2px; font-size: .93rem; }
  .menu .menu-foot .small a { font-weight: 600; padding: 6px 0; }
  .menu-open { overflow: hidden; }

  .hero, .page-hero { --counter-h: 96px; }
  .hero .wrap, .page-hero .wrap, .band .wrap, .split, .contact-grid, .slip { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .split.rev > :first-child { order: 0; }
  .hero .stage, .page-hero .stage { max-width: 640px; margin: 0 auto; width: 100%; }
  .hero .ui-fiche { left: 3%; } .hero .ui-say { right: 3%; }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche > .transcript { border-left: 0; border-top: 1px solid var(--line); }
  .ledger-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ledger-layout .section-head { position: static; margin-bottom: clamp(28px, 4vw, 40px); }
  .verifs, .scope { grid-template-columns: minmax(0, 1fr); }
  .scope .out { border-top: 1px dashed var(--line-strong); border-radius: var(--r-md); margin-top: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .case-body { grid-template-columns: minmax(0, 1fr); padding-left: 6px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > :first-child { grid-column: 1 / -1; }
  .portal-ui { right: 3%; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .section-head { position: static; }
  .page-hero .ui-q { left: 3%; }
  .slip .art { max-width: 420px; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand img { height: 24px; }
  .hero, .page-hero { --counter-h: 64px; }
  .hero-actions .btn { width: 100%; }
  .hero .stage, .page-hero .stage { display: flex; flex-direction: column; }
  .page-hero .ui-q { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 14px 0 26px; }
  .portal-stage { margin-bottom: 0; }
  .hero .ui-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .hero .ui-fiche { width: auto; margin: -44px 14px 0 26px; }
  .hero .ui-say { width: auto; margin: 12px 26px 0 14px; }
  .ui-card { padding: 12px 14px; font-size: .86rem; }
  .field { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ledger > li { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; }
  .ledger > li.is-say { grid-template-columns: minmax(0, 1fr); }
  .say-tile { aspect-ratio: auto; max-width: 320px; }
  .case-btn { grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 12px; }
  .case-btn .tag { grid-column: 2; grid-row: 2; justify-self: start; }
  .case-btn .pm { grid-column: 3; grid-row: 1 / span 2; width: 36px; height: 36px; }
  .case-btn .ico { width: 40px; height: 40px; grid-row: 1 / span 2; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .portal-ui { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 12px 0; }
  .sectors li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer .cols { grid-template-columns: minmax(0, 1fr); }
  .ending .btn, .next .btn { width: 100%; }
  .faq summary { font-size: 1.06rem; gap: 12px; }
}
@media (max-width: 360px) {
  .ledger > li { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .ledger > li.is-say { grid-template-columns: minmax(0, 1fr); }
  .hero .ui-fiche { margin-left: 14px; }
  .hero .ui-say { margin-right: 14px; }
}

/* Mouvement réduit : la fiche s'affiche remplie, aucune animation spatiale ; les changements d'état restent visibles */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .menu, .menu-open .menu { transition: none !important; }
}
@media print { .header, .menu, .menu-scrim { display: none; } }
