/* SYSTUDIO — style site
   Le layout desktop est un canvas 1440 (positions validées du proto).
   Responsive : mise à l'échelle proportionnelle 768–1439 (zoom piloté en JS),
   reflow empilé < 768 (mobile-first, majorité du trafic). */

/* ── Base ── */
html, body { margin: 0; padding: 0; background: var(--papier); overflow-x: clip; }
body { font-family: var(--font-corps); color: var(--encre); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--encre); text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--bleu); color: var(--papier); }

/* Grain léger (repris du proto) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
}

@keyframes sysArcDraw { to { stroke-dashoffset: 0; } }
@keyframes sysFadeIn { to { opacity: 1; } }
@keyframes sysRing { 0% { transform: scale(0.35); opacity: 0.9; } 75% { transform: scale(2.1); opacity: 0; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes syDraw { to { stroke-dashoffset: 0; } }
@keyframes syFlow { to { stroke-dashoffset: -18; } }

/* ── Monogramme hero « en construction » : S encre tracé, arcs bleus pointillés ── */
.hero-mono .s-ink { stroke-dasharray: 100; stroke-dashoffset: 100; animation: syDraw 1.05s cubic-bezier(0.6, 0, 0.2, 1) 0.15s forwards; }
.hero-mono .s-ink2 { animation-delay: 0.4s; }
.hero-mono .s-arc { stroke-dasharray: 5 5; animation: syFlow 1.3s linear infinite; }
.hero-mono .s-arc2 { animation-direction: reverse; }
.hero-mono .s-node { opacity: 0; animation: sysFadeIn 0.4s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-mono .s-ink { stroke-dashoffset: 0; animation: none; }
  .hero-mono .s-arc { stroke-dasharray: none; animation: none; }
  .hero-mono .s-node { opacity: 1; animation: none; }
}

/* ── Canvas desktop ── */
#root {
  position: relative;
  width: 1440px;
  margin: 0 auto;
  background: var(--papier);
  color: var(--encre);
}

/* Perf : les sections hors écran ne sont ni peintes ni layoutées avant approche
   (contain-intrinsic-size = hauteur réelle ⇒ positions ScrollTrigger exactes,
   zéro CLS). Coupe drastiquement le coût de premier rendu de ce canvas très haut. */
#sec4, #sec5 { content-visibility: auto; }
#sec4 { contain-intrinsic-size: 1440px 1500px; }
#sec5 { contain-intrinsic-size: 1440px 1000px; }
/* #sec2, #sec3 : pas de content-visibility (stage sticky à l'intérieur — le skip
   de rendu fausse la géométrie sticky au premier refresh ScrollTrigger) */

/* ── SEC.03 — stage sticky (scrollytelling 4 actes) ──
   height = 100vh corrigé du zoom tablette (--vhpx posé par main.js) */
.s3stage {
  position: sticky; top: 0;
  height: var(--vhpx, 100vh); min-height: 820px;
  display: flex; align-items: center;
  overflow: visible;
}
.s3board { position: relative; width: 1440px; height: 780px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  #sec3 { height: auto !important; }
  .s3stage { position: static; height: auto; min-height: 0; display: block; }
  .s3board { margin: 60px 0; }
  /* Kicker + titre repassent dans le flux : plus de chevauchement avec les
     textes empilés (.s3big relatifs) — page lisible sans animation. */
  .s3board > .anno { position: static !important; margin: 0 0 14px 64px; }
  .s3board > h2 { position: static !important; width: auto !important; max-width: 640px; margin: 0 0 34px 64px !important; }
}
/* Détection : le goulot se remplit d'un voile bleu (tokens, pas de couleur en dur) */
.cq-goulot-fill { background: rgba(var(--bleu-rgb), 0.05); }

/* ── SEC.03 — textes géants à révélation flux (balayage) ──
   3 phrases display superposées, révélées L→R par un nœud bleu + un fin trait de
   flux à la pointe ; dissolution à la sortie. Une par acte de la cartographie. */
.s3big { position: absolute; left: 64px; top: 322px; width: 700px; z-index: 5; }
.s3big:not(.is-on) { visibility: hidden; opacity: 0; }
.s3big-num { display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--bleu); margin-bottom: 16px; }
.s3big-clip { overflow: hidden; }
.s3big-txt { display: block; font-size: 32px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 610; font-stretch: 106%; color: var(--encre); text-wrap: balance; }
.s3big-edge { position: absolute; left: 0; top: 42px; width: 2px; height: 132px; background: var(--bleu); opacity: 0; }
.s3big-node { position: absolute; left: 0; top: 36px; width: 12px; height: 12px; margin-left: -5px; border-radius: 50%; background: var(--bleu); opacity: 0; box-shadow: 0 0 0 4px rgba(var(--bleu-rgb), 0.18); }
html.no-js .s3big, html.no-js .s3big:not(.is-on) { position: relative; left: 0; top: 0; visibility: visible; opacity: 1; margin: 0 0 26px; }
@media (prefers-reduced-motion: reduce) {
  .s3big { position: relative; left: 0; top: 0; margin: 0 0 26px 64px; }
  .s3big, .s3big:not(.is-on) { visibility: visible; opacity: 1; }
  .s3big-clip { overflow: visible; }
  .s3big-txt { clip-path: none !important; }
  .s3big-edge, .s3big-node { display: none; }
}

/* ── SEC.04 — cartes garanties (bénéfice d'abord : titre + sous-texte) ── */
.s4gar-t { margin: 0; font-size: 21px; font-weight: 630; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.05; }
.s4gar-d { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; font-weight: 430; color: rgba(var(--encre-rgb), 0.72); }

/* ── Logo monogramme (nav) : micro-interaction hover = rotation douce des arcs bleus ── */
.sy-mono { display: block; }
.sy-mono-arcs { transform-box: view-box; transform-origin: 50% 50%; transition: transform .55s cubic-bezier(0.34, 0.02, 0.2, 1); }
.sy-logo:hover .sy-mono-arcs, .sy-logo:focus-visible .sy-mono-arcs { transform: rotate(11deg); }
@media (prefers-reduced-motion: reduce) {
  .sy-mono-arcs { transition: none; }
  .sy-logo:hover .sy-mono-arcs, .sy-logo:focus-visible .sy-mono-arcs { transform: none; }
}

/* ── CTA & liens (hover : le style-hover inline a été retiré au build) ── */
.cta-primary { transition: background .22s ease; }
.cta-primary:hover { background: var(--bleu-fonce) !important; }
.cta-nav { transition: background .22s ease, color .22s ease; }
.cta-nav:hover { background: var(--encre) !important; color: var(--papier) !important; }
#root a:not(.cta-primary):not(.cta-nav):hover { color: var(--bleu); }
/* Focus clavier visible (a11y) */
a:focus-visible, [data-tile]:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

/* ── Mot rotatif : fallback SEO / no-JS (retiré quand le JS construit) ── */
.word-fallback {
  position: absolute; left: 0; bottom: 0; white-space: nowrap;
  font-size: 46px; line-height: 1; font-weight: 630; font-stretch: 110%;
  color: var(--encre); letter-spacing: -0.01em;
}

/* ── Badge DÉMO sur les wireframes (honnêteté) ── */
.demo-badge {
  position: absolute; top: -16px; right: 0; z-index: 6;
  font-family: var(--font-mono); font-size: 8px; font-weight: 500;
  letter-spacing: 0.12em; color: rgba(var(--encre-rgb), 0.74);
  border: 1px solid rgba(var(--encre-rgb), 0.4); border-radius: 2px;
  padding: 1px 5px; background: var(--papier);
}

/* ── Compteur de section S2 (avance avec le scroll) ── */
.sec2-counter {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--bleu); margin-top: 10px;
}

/* ── SEC.02 — désormais bloc empilé « Le problème » (plus de scrollytelling
   pinné ; l'ancienne hauteur de scrub 4200px causait un écran vide). ── */
#sec2 { height: auto; }
/* Courant bleu qui file sur la ligne reliant les 3 constats (langage flux du site) */
@keyframes pbFlow { to { stroke-dashoffset: -174; } }
.pb-flux-cur { animation: pbFlow 2.6s linear infinite; }
@keyframes pbWave { 0%,100% { opacity: 0.9; } 50% { opacity: 0.35; } }
.pb-signal .pb-wave-1 { animation: pbWave 2.8s ease-in-out infinite; }
.pb-signal .pb-wave-2 { animation: pbWave 2.8s ease-in-out 0.3s infinite; }
.pb-signal .pb-wave-3 { animation: pbWave 2.8s ease-in-out 0.6s infinite; }
@media (prefers-reduced-motion: reduce) {
  .pb-flux-cur, .pb-signal .pb-wave-1, .pb-signal .pb-wave-2, .pb-signal .pb-wave-3 { animation: none; }
}
.s2stage {
  position: sticky; top: 0;
  height: var(--vhpx, 100vh); min-height: 760px;
  display: flex; align-items: flex-start; overflow: visible;
}
.s2board { position: relative; width: 1440px; height: 720px; flex: none; }

/* Colonne gauche : 5 états texte superposés (crossfade en place) */
.s2states-abs { position: absolute; left: 64px; top: 250px; width: 440px; z-index: 6; }
.s2state { position: absolute; left: 0; top: 0; width: 440px; }
.s2state:not(.is-on) { opacity: 0; visibility: hidden; }
.s2k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--bleu); }
.s2t { margin: 10px 0 0; font-size: 40px; line-height: 1.04; letter-spacing: -0.025em; font-weight: 630; font-stretch: 108%; }
.s2d { margin: 12px 0 0; max-width: 420px; font-size: 16px; line-height: 1.5; font-weight: 430; color: rgba(var(--encre-rgb), 0.74); }

/* Zone droite : slot wireframe (overlap + profondeur, un seul niveau) */
.s2slot { position: absolute; left: 884px; top: 196px; width: 432px; height: 320px; z-index: 4; pointer-events: none; }
.s2slot-label { position: absolute; left: 8px; top: -28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(var(--encre-rgb), 0.5); }
.s2wire { position: absolute; left: 8px; top: 24px; width: 416px; height: 246px; background: var(--papier); border: 2px solid var(--encre); transform-origin: 50% 50%; }
.s2wire:not(.is-on) { opacity: 0; }

/* Rail de progression immersif (bord droit) */
.s2prog { position: absolute; right: 64px; top: 150px; z-index: 6; display: flex; flex-direction: column; align-items: center; }
.s2pd { position: relative; width: 9px; height: 9px; border: 1.5px solid rgba(var(--encre-rgb), 0.3); border-radius: 50%; background: var(--papier); margin-bottom: 111px; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.s2pd:last-child { margin-bottom: 0; }
.s2pd::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 111px; margin-left: -0.75px; background: rgba(var(--encre-rgb), 0.15); }
.s2pd:last-child::before { display: none; }
.s2pd.on { border-color: var(--bleu); background: var(--bleu); box-shadow: 0 0 0 3px rgba(var(--bleu-rgb), 0.16); }
.s2pd.done { border-color: var(--bleu); background: var(--bleu); }
.s2pd.done::before, .s2pd.on::before { background: var(--bleu); }

/* Fallback no-JS / reduced-motion : pas de pin, pile verticale lisible (SEO + a11y) */
html.no-js #sec2 { height: auto; }
html.no-js .s2stage { position: static; height: auto; min-height: 0; display: block; }
html.no-js .s2board { height: auto; padding: 40px 0 20px; }
html.no-js .s2states-abs { position: relative; left: 0; top: 0; margin: 0 0 36px; }
html.no-js .s2state, html.no-js .s2state:not(.is-on) { position: relative; opacity: 1; visibility: visible; margin-bottom: 32px; }
html.no-js .s2slot { position: relative; left: 0; top: 0; width: 440px; height: auto; margin-top: 8px; }
html.no-js .s2slot-label { position: relative; left: 0; top: 0; display: block; margin-bottom: 14px; }
html.no-js .s2wire, html.no-js .s2wire:not(.is-on) { position: relative; left: 0; top: 0; opacity: 1; margin-bottom: 18px; }
html.no-js .s2flux, html.no-js .s2prog { display: none; }
@media (prefers-reduced-motion: reduce) {
  #sec2 { height: auto !important; }
  .s2stage { position: static; height: auto; min-height: 0; display: block; }
  .s2board { height: auto; padding: 40px 0 20px; }
  .s2states-abs { position: relative; left: 0; top: 0; margin: 0 0 36px; }
  .s2state { position: relative !important; opacity: 1 !important; visibility: visible !important; margin-bottom: 32px; }
  .s2slot { position: relative; left: 0; top: 0; width: 440px; height: auto; margin-top: 8px; }
  .s2slot-label { position: relative; left: 0; top: 0; display: block; margin-bottom: 14px; }
  .s2wire { position: relative !important; left: 0; top: 0; opacity: 1 !important; margin-bottom: 18px; transform: none !important; }
  .s2flux, .s2prog { display: none; }
}

/* ── SEC.03 — grille cartographie (processus scannés) ── */
.cq {
  position: absolute; width: 100px; height: 100px; box-sizing: border-box;
  background: var(--papier); border: 1.5px solid rgba(var(--encre-rgb), 0.28);
}
.cq-lab {
  position: absolute; left: 7px; top: 7px; font-family: var(--font-mono);
  font-size: 7.5px; letter-spacing: 0.08em; color: rgba(var(--encre-rgb), 0.5);
}
.cq-goulot { border-color: var(--bleu) !important; }
.cq-goulot::after {
  content: ""; position: absolute; inset: 0; border: 1.5px solid var(--bleu);
  animation: cqPulse 1.9s ease-out infinite;
}
@keyframes cqPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--bleu-rgb), 0.35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--bleu-rgb), 0); } }

/* Le grain se fige en reduced-motion (les autres anims sont déjà gérées en JS) */
@media (prefers-reduced-motion: reduce) {
  [style*="animation"] { animation: none !important; }
  .cq-goulot::after, .m-cq-goulot.m-goulot-on::after { animation: none !important; }
}

/* ── Mise à l'échelle mi-large (768–1439) : le zoom est appliqué en JS
   (#root.zoomed), ce bloc ne fait que documenter l'intention et retirer les
   marges auto pendant le zoom pour éviter un décalage horizontal. ── */
#root.zoomed { margin: 0; }

/* ── Nav sticky desktop (hide on scroll down / show on scroll up) ── */
#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 64px; box-sizing: border-box;
  background: rgba(var(--papier-rgb), 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--encre-rgb), 0.1);
  transform: translateY(-100%); transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
}
#topnav.tn-show { transform: translateY(0); }
.tn-cta {
  border: 1px solid var(--encre); border-radius: 2px; padding: 9px 18px;
  font-size: 13px; font-weight: 560; font-stretch: 110%; letter-spacing: 0.01em;
  color: var(--encre); transition: background .2s ease, color .2s ease;
}
.tn-cta:hover { background: var(--encre); color: var(--papier); }
@media (max-width: 767px) { #topnav { display: none; } }
@media (prefers-reduced-motion: reduce) { #topnav { transition: none; } }

/* ══════════ FOOTER (desktop, canvas 1440) ══════════ */
#sitefoot {
  position: relative; z-index: 2; width: 1440px;
  border-top: 1px solid rgba(var(--encre-rgb), 0.1);
  padding: 56px 64px 0; background: var(--papier);
}
.ft-in {
  display: grid; grid-template-columns: 437px 219px 219px 1fr;
  gap: 24px; align-items: start;
}
.ft-brand .ft-base {
  margin: 18px 0 0; max-width: 300px;
  font-size: 15px; line-height: 1.5; font-weight: 480; font-stretch: 106%;
  color: rgba(var(--encre-rgb), 0.7);
}
.ft-h { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.5); margin-bottom: 16px; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-col > a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--encre); }
.ft-socs { display: flex; gap: 14px; }
.ft-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid rgba(var(--encre-rgb), 0.25); border-radius: 2px;
  color: var(--encre); transition: border-color .2s, color .2s;
}
.ft-soc .ft-node { opacity: 0; transition: opacity .2s; }
.ft-soc:hover, .ft-soc:focus-visible { border-color: var(--bleu); color: var(--bleu); }
.ft-soc:hover .ft-node, .ft-soc:focus-visible .ft-node { opacity: 1; }
.ft-soc-off { opacity: 0.4; cursor: default; }
.ft-cta-col { justify-self: end; }
.ft-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border: 1px solid var(--encre); border-radius: 2px;
  font-size: 13.5px; font-weight: 560; font-stretch: 110%; letter-spacing: 0.01em;
  color: var(--encre); transition: background .2s, color .2s;
}
.ft-cta:hover, .ft-cta:focus-visible { background: var(--encre); color: var(--papier) !important; }
.ft-legal {
  display: flex; align-items: center; gap: 16px;
  margin-top: 48px; padding: 20px 0 24px;
  border-top: 1px solid rgba(var(--encre-rgb), 0.08);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(var(--encre-rgb), 0.55);
}
.ft-dot { width: 5px; height: 5px; border: 1px solid rgba(var(--encre-rgb), 0.35); border-radius: 50%; }

/* ══════════ PAGE DIAGNOSTIC — overlay plein écran ══════════
   Hors #root (jamais zoomée) : layout fluide, mobile-first. */
#diag {
  position: fixed; inset: 0; z-index: 80;
  background: var(--papier); color: var(--encre);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: clip; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#diag[hidden] { display: none; }
.dg-grid { position: fixed; inset: 0; pointer-events: none; }
.dg-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(var(--encre-rgb), 0.07); }
.dg-grid i:nth-child(1) { left: max(20px, calc(50% - 330px)); }
.dg-grid i:nth-child(2) { right: max(20px, calc(50% - 330px)); }

.dg-top {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; gap: 18px;
  padding: 18px max(20px, calc(50% - 330px)) 0;
}
.dg-anno { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.55); }
.dg-close {
  margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(var(--encre-rgb), 0.3);
  border-radius: 2px; background: transparent; color: var(--encre);
  font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.dg-close:hover, .dg-close:focus-visible { background: var(--encre); color: var(--papier); }

.dg-progress {
  position: relative; z-index: 2; flex: none; list-style: none;
  display: flex; align-items: center; gap: 0;
  margin: 26px auto 0; padding: 0;
}
.dg-progress li { position: relative; width: 10px; height: 10px; border: 1.5px solid rgba(var(--encre-rgb), 0.35); border-radius: 50%; background: var(--papier); }
.dg-progress li + li { margin-left: 26px; }
.dg-progress li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 1.5px; margin-top: -0.75px; background: rgba(var(--encre-rgb), 0.18); }
.dg-progress li.done { background: var(--bleu); border-color: var(--bleu); }
.dg-progress li.done + li::before, .dg-progress li.on + li::before { background: var(--bleu); }
.dg-progress li.on { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(var(--bleu-rgb), 0.18); background: var(--bleu); }

.dg-steps { position: relative; z-index: 1; flex: 1 0 auto; display: grid; width: 100%; max-width: 660px; margin: 0 auto; padding: 34px 20px 20px; }
.dg-step { grid-area: 1 / 1; align-self: start; visibility: hidden; opacity: 0; pointer-events: none; }
.dg-step.is-on { visibility: visible; opacity: 1; pointer-events: auto; }
.dg-q { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--bleu); }
.dg-h { margin: 0; font-size: clamp(30px, 5.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 630; font-stretch: 110%; text-wrap: balance; }
.dg-sub { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(var(--encre-rgb), 0.75); }
.dg-hint { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(var(--encre-rgb), 0.55); }

.dg-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px; margin-top: 30px;
  background: var(--bleu); color: var(--papier); border: 0; border-radius: 2px;
  font-family: var(--font-corps); font-size: 15.5px; font-weight: 600; font-stretch: 110%;
  letter-spacing: 0.01em; cursor: pointer; transition: background .22s ease;
}
.dg-cta:hover, .dg-cta:focus-visible { background: var(--bleu-fonce); }

.dg-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.dg-opts button {
  min-height: 56px; padding: 12px 20px; text-align: left;
  background: var(--papier); border: 1.5px solid rgba(var(--encre-rgb), 0.45); border-radius: 2px;
  font-family: var(--font-corps); font-size: 16px; font-weight: 520; color: var(--encre);
  cursor: pointer; transition: border-color .18s, background .18s;
  position: relative;
}
.dg-opts button::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  margin-top: -4.5px; border-radius: 50%; border: 1.5px solid rgba(var(--encre-rgb), 0.3);
  transition: background .18s, border-color .18s;
}
.dg-opts button:hover, .dg-opts button:focus-visible { border-color: var(--encre); }
.dg-opts button.sel { border-color: var(--bleu); background: rgba(var(--bleu-rgb), 0.05); }
.dg-opts button.sel::after { background: var(--bleu); border-color: var(--bleu); }

.dg-field { margin-top: 26px; }
.dg-lab { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--encre-rgb), 0.6); margin-bottom: 8px; }
.dg-opt-lab { text-transform: none; letter-spacing: 0.02em; color: rgba(var(--encre-rgb), 0.45); }
#diag input {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: var(--papier); border: 1.5px solid rgba(var(--encre-rgb), 0.45); border-radius: 2px;
  font-family: var(--font-corps); font-size: 16px; color: var(--encre);
}
#diag input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(var(--bleu-rgb), 0.14); }
#diag input.dg-bad { border-color: var(--bleu); }
.dg-err { margin: 8px 0 0; font-size: 13.5px; color: var(--bleu); }
.dg-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: rgba(var(--encre-rgb), 0.5); }

.dg-recap { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.dg-recap li {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em;
  border: 1px solid rgba(var(--encre-rgb), 0.3); border-radius: 2px; padding: 5px 10px;
  color: rgba(var(--encre-rgb), 0.75);
}
.dg-cal { margin-top: 22px; }
/* Embed Cal.com officiel (inline) + bouton de secours */
.dg-cal-embed { width: 100%; min-height: min(60vh, 560px); border: 1.5px solid rgba(var(--encre-rgb), 0.18); border-radius: 2px; background: var(--papier); overflow: hidden; }
.dg-cal-embed:empty { display: none; }
.dg-cal-btn { margin-top: 16px; text-decoration: none; }
.dg-cal-btn--sub { background: transparent; color: var(--encre); border: 1px solid var(--encre); }
.dg-cal-btn--sub:hover, .dg-cal-btn--sub:focus-visible { background: var(--encre); color: var(--papier); }
/* Honeypot : totalement hors écran, jamais visible ni focusable */
.dg-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Message d'erreur réseau (doux, avec retry via le bouton) */
.dg-form-error { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--bleu); }

.dg-foot { flex: none; margin: 26px 0 18px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.45); }

@media (max-width: 480px) {
  .dg-top { padding-top: 14px; }
  .dg-mono { width: 40px; height: 40px; }
  .dg-anno { font-size: 10px; }
  .dg-progress li + li { margin-left: 18px; }
  .dg-progress li + li::before { width: 18px; }
  .dg-cta { width: 100%; }
  .dg-cal-embed { min-height: 66vh; }
}
/* Clavier mobile : l'overlay fixe ne rétrécit pas → marge de défilement le
   temps de la saisie pour que le dernier champ + le CTA passent au-dessus. */
@media (max-width: 767px) {
  #diag.dg-typing .dg-steps { padding-bottom: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-cta, .dg-opts button, .dg-close { transition: none; }
}

/* ── MOBILE : la version empilée est masquée par défaut ── */
#mobile { display: none; }

/* ── MOBILE < 768 : reflow empilé, flux continu unique, sans pin scrub ── */
@media (max-width: 767px) {
  #root { display: none; }
  /* GOUTTIÈRE FLUX : le padding-left réserve une colonne (~44px) au bord gauche
     dans laquelle vit le trait ; TOUT le contenu texte commence après (x≥44). */
  #mobile { display: block; position: relative; max-width: 480px; margin: 0 auto; padding: 0 20px 60px 44px;
    font-family: var(--font-corps); color: var(--encre); }

  /* Contenu au-dessus des couches grille + flux */
  #mobile > header, #mobile > section, #mobile > footer { position: relative; z-index: 1; scroll-margin-top: 74px; }

  /* Grille visible : rails verticaux subtils (alignés hors gouttière) */
  .m-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .m-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(var(--encre-rgb), 0.06); }
  .m-grid i:nth-child(1) { left: 44px; }
  .m-grid i:nth-child(2) { left: 50%; }
  .m-grid i:nth-child(3) { right: 20px; }

  /* Flux continu : un seul trait SVG dans la gouttière (ink + courant bleu) */
  .m-flux { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
  /* Quand le flux JS est actif : plus de rails/puces CSS, et le texte des modules
     s'aligne sur la colonne de contenu (la spine + nœuds vivent dans la gouttière). */
  #mobile.flux-on .m-rail .m-stack::before,
  #mobile.flux-on .m-rail .m-steps::before,
  #mobile.flux-on .m-node::before { display: none; }
  #mobile.flux-on .m-stack, #mobile.flux-on .m-steps { padding-left: 0; }

  /* Nav sticky : fond qui se pose quand on quitte le hero (opaque = coupe nette) */
  #mobile .m-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
    justify-content: space-between; height: 60px; margin: 0 -20px 0 -44px; padding: 0 20px 0 44px;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease; }
  #mobile .m-nav--solid { background: rgba(var(--papier-rgb), 0.97); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(var(--encre-rgb), 0.1); }
  .m-nav-cta { border: 1px solid var(--encre); border-radius: 2px; padding: 9px 16px;
    font-size: 13px; font-weight: 560; transition: background .2s, color .2s; }
  .m-nav-cta:hover, .m-nav-cta:active { background: var(--encre); color: var(--papier); }

  .m-hero { padding: 22px 0 8px; }
  .m-h1 { margin: 0; font-size: 40px; line-height: 1.15; letter-spacing: -0.03em;
    font-weight: 630; font-stretch: 110%; text-wrap: balance; }
  .m-accent { color: var(--bleu); }
  /* Mot rotatif « lettres-flux » (largeur figée sur « demandes », le plus long → zéro CLS) */
  .m-word { position: relative; display: inline-block; width: 215px; height: 34px;
    vertical-align: -4px; }
  .m-word #mWordSlot { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
  .m-word-fb { position: absolute; left: 0; bottom: -2px; white-space: nowrap;
    font-size: 34px; line-height: 1; font-weight: 630; font-stretch: 110%;
    letter-spacing: -0.01em; color: var(--encre); }
  .m-sub { margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: rgba(var(--encre-rgb), 0.78); }
  .m-cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
  .m-cta { display: flex; align-items: center; justify-content: center; height: 54px;
    background: var(--bleu); color: var(--papier); border-radius: 2px; font-size: 16px; font-weight: 600; }
  .m-cta:active { background: var(--bleu-fonce); }
  .m-cta-wide { width: 100%; }
  .m-ghost { display: flex; align-items: center; justify-content: center; height: 44px;
    font-family: var(--font-mono); font-size: 13px; color: rgba(var(--encre-rgb), 0.62); }
  /* Bandeau garanties : pile verticale propre avec nœuds séparateurs */
  .m-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
  .m-trust li { position: relative; padding-left: 17px; font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 480; color: rgba(var(--encre-rgb), 0.66); }
  .m-trust li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px;
    margin-top: -3px; border-radius: 50%; background: var(--bleu); }

  .m-sec { padding: 46px 0 0; }
  .m-label { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    color: var(--bleu); text-transform: uppercase; }
  .m-h2 { margin: 0 0 24px; font-size: 28px; line-height: 1.12; letter-spacing: -0.02em;
    font-weight: 620; text-wrap: pretty; }

  .m-stack, .m-steps { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; }
  .m-rail .m-stack::before, .m-rail .m-steps::before { content: ""; position: absolute; left: 5px;
    top: 8px; bottom: 30px; width: 2px; background: rgba(var(--encre-rgb), 0.15); }
  .m-node { position: relative; padding: 0 0 26px; }
  .m-node::before { content: ""; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--bleu); box-shadow: 0 0 0 4px var(--papier); }
  .m-node b { display: block; font-size: 19px; font-weight: 630; letter-spacing: -0.01em; margin: 2px 0 4px; }
  .m-node p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(var(--encre-rgb), 0.72); }
  .m-sys, .m-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(var(--encre-rgb), 0.55); }

  /* ── Wireframes de démo mobile (silhouette desktop, intérieur simplifié) ── */
  .m-wire { position: relative; width: 100%; aspect-ratio: 1.62; margin-top: 16px;
    background: var(--papier); overflow: hidden; }
  .m-wire .m-demo { position: absolute; top: 8px; right: 8px; z-index: 3; font-family: var(--font-mono);
    font-size: 8px; letter-spacing: 0.12em; color: rgba(var(--encre-rgb), 0.5);
    border: 1px solid rgba(var(--encre-rgb), 0.28); border-radius: 2px; padding: 1px 5px; background: var(--papier); }
  .m-wire-brd { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
  .m-wire-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; box-sizing: border-box; }
  .m-we { flex: none; }

  /* SYS.01 — site vitrine */
  .m-w-site { padding: 0; }
  .m-wsite-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
    border-bottom: 1.6px solid var(--encre); }
  .m-wsite-bar i { width: 6px; height: 6px; border: 1.4px solid var(--encre); border-radius: 50%; }
  .m-wsite-bar span { flex: 1; margin-left: 4px; border: 1px solid rgba(var(--encre-rgb), 0.3); border-radius: 2px;
    padding: 2px 8px; font-family: var(--font-mono); font-size: 9px; color: rgba(var(--encre-rgb), 0.55); }
  .m-wsite-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 0;
    font-size: 10px; color: rgba(var(--encre-rgb), 0.62); }
  .m-wsite-nav b { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--encre); }
  .m-wsite-h { padding: 10px 14px 0; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 640; font-stretch: 108%; }
  .m-wsite-cta { align-self: flex-start; margin: 12px 0 0 14px; background: var(--bleu); color: var(--papier);
    font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 2px; }

  /* En-têtes internes : réserver la place du badge DÉMO (top-right) */
  .m-wdash-top, .m-wtable-top, .m-wflow-top, .m-wai-top { padding-right: 40px; }

  /* SYS.02 — dashboard */
  .m-w-dash { padding: 12px 14px; gap: 9px; }
  .m-wdash-top { display: flex; justify-content: space-between; align-items: baseline; }
  .m-wdash-top b { font-size: 13px; font-weight: 620; }
  .m-wdash-top span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; color: rgba(var(--encre-rgb), 0.5); }
  .m-wcard { border: 1.5px solid var(--encre); border-radius: 2px; padding: 9px 11px; }
  .m-wcard-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 600; }
  .m-wcard-h em { font-family: var(--font-mono); font-size: 10px; font-style: normal; color: var(--bleu); }
  .m-wbar { height: 5px; background: rgba(var(--encre-rgb), 0.12); margin-top: 8px; }
  .m-wbar i { display: block; height: 5px; background: var(--bleu); }
  .m-wfill { width: 38%; }

  /* SYS.03 — table back-office */
  .m-w-table { padding: 12px 14px; gap: 0; }
  .m-wtable-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
  .m-wtable-top b { font-size: 13px; font-weight: 620; }
  .m-wtable-top span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; color: rgba(var(--encre-rgb), 0.5); }
  .m-wrow { display: grid; grid-template-columns: 16px 60px 1fr auto; gap: 8px; align-items: center;
    padding: 7px 0; border-bottom: 1px solid rgba(var(--encre-rgb), 0.12); font-size: 10px; }
  .m-wrow > span:nth-child(2) { font-family: var(--font-mono); font-size: 9px; }
  .m-whead { border-bottom: 1.5px solid var(--encre); font-family: var(--font-mono); font-size: 8.5px;
    letter-spacing: 0.08em; color: rgba(var(--encre-rgb), 0.5); }
  .m-whead span:first-child { grid-column: 1 / 3; }
  .m-wchk { width: 13px; height: 13px; border: 1.5px solid var(--encre); box-sizing: border-box; position: relative; }
  .m-wchk-on { background: var(--bleu); border-color: var(--bleu); }
  .m-wchk-on::after, .m-wchk.m-chk-tick::after { content: "✓"; position: absolute; inset: 0; color: var(--papier);
    font-size: 9px; line-height: 12px; text-align: center; }
  .m-wbadge { justify-self: start; border: 1.4px solid var(--encre); border-radius: 2px; font-size: 8.5px;
    font-weight: 560; padding: 1px 7px; }
  .m-wbadge-bl { border-color: var(--bleu); color: var(--bleu); }
  .m-wbadge-mut { border-color: rgba(var(--encre-rgb), 0.35); color: rgba(var(--encre-rgb), 0.55); }

  /* SYS.04 — workflow */
  .m-w-flow { padding: 12px 14px; gap: 0; }
  .m-wflow-top { display: flex; justify-content: space-between; align-items: center; }
  .m-wflow-top b { font-size: 12.5px; font-weight: 620; }
  .m-wactif { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--bleu); position: relative; padding-left: 12px; }
  .m-wactif::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--bleu); }
  .m-wflow-chain { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 20px 0; }
  .m-wstep { border: 1.5px solid var(--encre); border-radius: 2px; padding: 7px 8px; width: 30%; box-sizing: border-box; }
  .m-wstep em { display: block; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.06em; font-style: normal; color: rgba(var(--encre-rgb), 0.5); }
  .m-wstep span { display: block; font-size: 9.5px; font-weight: 600; margin-top: 3px; }
  .m-wflow-chain::before { content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 1.5px; background: var(--encre); z-index: 0; }
  .m-wstep { position: relative; z-index: 1; background: var(--papier); }
  .m-wtravel { position: absolute; top: 50%; left: 30%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
    border-radius: 50%; background: var(--bleu); z-index: 2; }
  .m-wflow-foot { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; color: rgba(var(--encre-rgb), 0.5); }

  /* SYS.05 — assistant IA */
  .m-w-ai { padding: 12px 14px; gap: 9px; }
  .m-wai-top { display: flex; align-items: center; gap: 7px; }
  .m-wai-top b { font-size: 12.5px; font-weight: 620; }
  .m-wai-hub { width: 9px; height: 9px; border-radius: 50%; background: var(--bleu); flex: none; }
  .m-wai-cx { margin-left: auto; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; color: rgba(var(--encre-rgb), 0.5); }
  .m-wai-q { align-self: flex-end; max-width: 80%; border: 1.5px solid var(--encre); border-radius: 2px; padding: 6px 10px; font-size: 10px; }
  .m-wai-a { display: flex; gap: 7px; max-width: 92%; font-size: 10px; line-height: 1.5; color: rgba(var(--encre-rgb), 0.85); }
  .m-wai-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--bleu); margin-top: 5px; }
  .m-wai-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    border: 1.5px solid var(--encre); border-radius: 2px; padding: 6px 6px 6px 10px; }
  .m-wai-input span { font-family: var(--font-mono); font-size: 9px; color: rgba(var(--encre-rgb), 0.45); }
  .m-wai-input i { width: 18px; height: 18px; background: var(--bleu); color: var(--papier); font-style: normal;
    font-size: 11px; line-height: 18px; text-align: center; border-radius: 2px; }

  /* Micro-détails vivants (CSS, démarrés au tracé via .m-wire-live) — ≤ 2 boucles
     visibles à la fois car les wireframes sont empilés/hors écran. */
  .m-wchk-anim::after { content: "✓"; position: absolute; inset: 0; color: var(--papier);
    font-size: 9px; line-height: 12px; text-align: center; opacity: 0; }
  @keyframes mwPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
  @keyframes mwBar { 0%, 100% { width: 38%; } 50% { width: 56%; } }
  @keyframes mwTravel { 0% { left: 30%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 70%; opacity: 0; } }
  @keyframes mwHub { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: 0.55; } }
  @keyframes mwChkBg { 0%, 45% { background: var(--papier); border-color: var(--encre); } 55%, 100% { background: var(--bleu); border-color: var(--bleu); } }
  @keyframes mwChkTick { 0%, 45% { opacity: 0; } 55%, 100% { opacity: 1; } }
  /* Les boucles ne tournent que quand le wireframe est visible (.m-wire-play,
     posé par IntersectionObserver) → jamais plus de ~2 boucles actives à la fois. */
  .m-wire-live.m-wire-play .m-wsite-cta { animation: mwPulse 1.9s ease-in-out infinite; transform-origin: left center; }
  .m-wire-live.m-wire-play .m-wfill { animation: mwBar 2.6s ease-in-out infinite; }
  .m-wire-live.m-wire-play .m-wtravel { animation: mwTravel 2.8s ease-in-out infinite; }
  .m-wire-live.m-wire-play .m-wai-hub { animation: mwHub 1.7s ease-in-out infinite; transform-origin: center; }
  .m-wire-live.m-wire-play .m-wchk-anim { animation: mwChkBg 2.6s ease-in-out infinite; }
  .m-wire-live.m-wire-play .m-wchk-anim::after { animation: mwChkTick 2.6s ease-in-out infinite; }

  .m-tiles { display: flex; flex-direction: column; gap: 14px; }
  .m-tile { border: 2px solid var(--encre); background: var(--papier); padding: 20px; }
  .m-cmp { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.5); }
  .m-tile h3 { margin: 8px 0 6px; font-size: 26px; font-weight: 630; letter-spacing: -0.02em; }
  .m-tile > p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: rgba(var(--encre-rgb), 0.75); }
  .m-tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
  .m-tile li { position: relative; padding-left: 16px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(var(--encre-rgb), 0.72); }
  .m-tile li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--bleu); }
  .m-closing { margin: 28px 0 0; font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }

  .m-why { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(var(--encre-rgb), 0.14); }
  .m-why p:last-child { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 520; }
  .m-gars { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .m-gar { position: relative; border: 2px solid var(--encre); padding: 20px; }
  .m-gar b { display: block; font-size: 19px; font-weight: 630; letter-spacing: -0.015em; line-height: 1.05; }
  .m-gar span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; font-weight: 430; color: rgba(var(--encre-rgb), 0.72); }
  .m-gar::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bleu); }

  /* SEC.03 mobile — diagnostic */
  .m-beats { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 26px; }
  .m-beat { position: relative; }
  .m-bn { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--bleu); margin-bottom: 8px; }
  .m-beat-clip { overflow: hidden; }
  .m-beat-clip p { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; color: var(--encre); text-wrap: balance; }
  .m-beat-node { position: absolute; left: 0; top: 26px; width: 10px; height: 10px; margin-left: -4px; border-radius: 50%;
    background: var(--bleu); opacity: 0; box-shadow: 0 0 0 3px rgba(var(--bleu-rgb), 0.18); }
  @media (prefers-reduced-motion: reduce) { .m-beat-clip p { clip-path: none !important; } .m-beat-node { display: none; } }

  /* Compteur de scan + annotation goulot */
  .m-scan { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(var(--encre-rgb), 0.55); }
  .m-goulot-lab { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-family: var(--font-mono);
    font-size: 9.5px; letter-spacing: 0.1em; color: var(--bleu); opacity: 0; }
  .m-carto { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .m-carto-net { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
  .m-cq { position: relative; aspect-ratio: 1; border: 1.5px solid rgba(var(--encre-rgb), 0.28); background: var(--papier); }
  .m-cq span { position: absolute; left: 6px; top: 6px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; color: rgba(var(--encre-rgb), 0.5); }
  .m-cq-goulot span { color: var(--bleu); }
  .m-cq-goulot { transition: border-color .5s ease; }
  .m-cq-goulot.m-goulot-on { border-color: var(--bleu); }
  .m-cq-goulot.m-goulot-on::after { content: ""; position: absolute; inset: -1px; border: 1.5px solid var(--bleu);
    animation: cqPulse 1.9s ease-out infinite; }

  .m-final { padding-top: 72px; }
  .m-mono { display: block; margin-bottom: 24px; }
  .m-final-h { margin: 0 0 18px; font-size: 34px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 630; text-wrap: balance; }
  .m-final-risk { margin: 0 0 26px; font-size: 15px; line-height: 1.5; font-weight: 450; color: rgba(var(--encre-rgb), 0.72); }

  .m-foot { display: flex; flex-direction: column; gap: 18px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(var(--encre-rgb), 0.14); }
  .m-foot div { display: flex; flex-wrap: wrap; gap: 20px; }
  .m-foot a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
  .m-foot-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; font-weight: 480; color: rgba(var(--encre-rgb), 0.7); }
  .m-foot-socs { gap: 12px; }
  .m-foot-socs .ft-soc { width: 48px; height: 48px; }
  .m-foot-legal { margin: 4px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: rgba(var(--encre-rgb), 0.55); }
}

/* ── 2A — Probleme / Offre (mobile, scope #mobile) ── */
#mobile .m-lead2 { margin: 14px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--encre); }
#mobile #construit .m-stack { margin: 30px 0 0; }
#mobile .m-alert { margin: 32px 0 0; border: 2px solid var(--encre); border-left: 5px solid var(--bleu); background: var(--papier); box-sizing: border-box; padding: 22px 20px 24px; }
#mobile .m-alert-k { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--bleu); }
#mobile .m-alert p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.55; font-weight: 460; color: var(--encre); }
#mobile .m-alert-punch { font-weight: 640; font-size: 16.5px; letter-spacing: -0.01em; }
#mobile .m-volet { position: relative; border: 2px solid var(--encre); background: var(--papier); box-sizing: border-box; padding: 22px 20px 24px; margin-top: 18px; }
#mobile .m-volet-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--bleu); }
#mobile .m-volet p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; font-weight: 460; color: var(--encre); }

/* ── 2B — Prix / Secteurs / Autorité / FAQ ── */
/* Lignes de prix (partagé desktop + mobile) */
.prix-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 15px 0; border-bottom: 1px solid rgba(var(--encre-rgb), 0.14); }
.prix-row b { font-weight: 540; font-size: 17px; color: var(--encre); }
.prix-sub { display: block; font-style: normal; font-weight: 430; font-size: 13px; line-height: 1.45; color: rgba(var(--encre-rgb), 0.6); margin-top: 4px; }
#mobile .prix-sub { font-size: 11.5px; }
.prix-row span { font-family: var(--font-mono); font-size: 15px; color: var(--bleu); white-space: nowrap; }
/* FAQ accordéon natif <details> — contenu dans le DOM, lisible sans JS */
.faq-item { border-top: 1px solid rgba(var(--encre-rgb), 0.16); }
.faq-item:last-child { border-bottom: 1px solid rgba(var(--encre-rgb), 0.16); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 560; letter-spacing: -0.01em; color: var(--encre); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-family: var(--font-mono); font-size: 24px; font-weight: 400; color: var(--bleu); line-height: 1; flex: none; transition: transform .32s cubic-bezier(0.34, 0.02, 0.2, 1); }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; max-width: 860px; font-size: 16.5px; line-height: 1.62; font-weight: 440; color: rgba(var(--encre-rgb), 0.8); }
/* Mobile — ajustements + sections 2B */
#mobile .prix-row b { font-size: 15px; }
#mobile .prix-row span { font-size: 13px; }
#mobile .faq-item > summary { font-size: 16.5px; padding: 18px 0; }
#mobile .faq-a { font-size: 14.5px; padding-bottom: 20px; }
#mobile .m-socle-n { display: block; font-size: 40px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 640; font-stretch: 110%; color: var(--encre); }
#mobile .m-socle p { margin: 12px 0 0; font-size: 15px; line-height: 1.45; font-weight: 470; color: rgba(var(--encre-rgb), 0.78); }
#mobile .m-modules { margin: 30px 0 0; }
#mobile .m-modules-k { margin: 0 0 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.5); border-top: 2px solid var(--encre); padding-top: 12px; }
#mobile .m-modules-note { margin: 22px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(var(--encre-rgb), 0.66); }
#mobile .m-sects { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 0; }
#mobile .m-sect { border: 1.5px solid rgba(var(--encre-rgb), 0.25); background: var(--papier); padding: 20px 18px 22px; }
#mobile .m-sect-h { display: flex; align-items: baseline; gap: 10px; }
#mobile .m-sect-h span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--bleu); }
#mobile .m-sect-h b { font-size: 17px; font-weight: 640; letter-spacing: -0.01em; }
#mobile .m-sect p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(var(--encre-rgb), 0.78); }
#mobile .m-faq { margin: 26px 0 0; }

/* ══════════ 2C — POLISH VISUEL (flux continu, border-draw, interactions) ══════════ */

/* Calques de flux 2C (midflux hero→diagnostic, endflux CTA→footer) — injectés par polish.js */
.flux2c { position: absolute; left: 0; width: 1440px; z-index: 1; pointer-events: none; overflow: visible; }

/* Ligne autorité (CTA final) — annotation discrète, pas un bloc */
.s5auth {
  margin: 26px 0 0; max-width: 470px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; letter-spacing: 0.03em;
  color: rgba(var(--encre-rgb), 0.62);
  border-left: 2px solid var(--bleu); padding-left: 14px;
}

/* ── Border-draw (pattern Codrops SVG border animation, réécrit vanilla+GSAP) ──
   Le SVG périmètre est injecté par polish.js sur [data-draw] ; au moment du tracé,
   la classe .bd-live rend le border CSS transparent (fallback no-JS : border intact). */
[data-draw] { transition: border-color .2s ease; }
[data-draw].bd-live { border-color: transparent !important; }
.bd-svg { position: absolute; pointer-events: none; overflow: visible; z-index: 1; }
.bd-svg path { transition: stroke .3s ease; }

/* ── Encadré IA (Problème) — annotation technique ── */
.pb-inv { position: absolute; right: 36px; bottom: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--bleu); }

/* ── Volets offre — hover : trait bleu + annotation + nœud ── */
.volet .volet-dot { transition: transform .3s ease; }
.volet:hover .volet-dot, .volet:focus-within .volet-dot { transform: scale(1.5); }
.volet:not(.bd-live):hover { border-color: var(--bleu) !important; }
.volet.bd-live:hover .bd-svg path { stroke: var(--bleu); }
.volet-anno {
  position: absolute; right: 16px; bottom: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--bleu);
  opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease;
}
.volet:hover .volet-anno, .volet:focus-within .volet-anno { opacity: 1; transform: none; }

/* ── Prix — lignes du tableau : annotation technique + accent au survol ── */
.prix-row { position: relative; }
.prix-row b { transition: color .25s ease; }
.prix-row:hover b { color: var(--bleu); }
.prix-row::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; border-radius: 50%; background: var(--bleu);
  opacity: 0; transition: opacity .25s ease;
}
.prix-row:hover::before { opacity: 1; }
.prix-row::after {
  content: attr(data-anno); position: absolute; right: 190px; top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--bleu);
  opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.prix-row:hover::after { opacity: 1; transform: translateY(-50%); }
#mobile .prix-row::before, #mobile .prix-row::after { display: none; }

/* ── Secteurs — cartes à état actif (pattern « reveal on hover », vanilla) ── */
.sect-card { transition: border-color .3s ease; }
.sect-card .sect-dot { transition: transform .3s ease; }
.sect-num { transition: background .25s ease, color .25s ease; padding: 1px 4px; margin: -1px -4px; }
.sect-hint {
  position: absolute; right: 14px; top: 12px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  color: rgba(var(--encre-rgb), 0.4); transition: opacity .3s ease;
}
.sect-card::after { /* marqueur blueprint coin bas-droit */
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px;
  border-right: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu);
  opacity: 0; transition: opacity .3s ease;
}
.sect-card:hover, .sect-card:focus, .sect-card:focus-within {
  border-color: var(--encre) !important; outline: none;
}
.sect-card:hover::after, .sect-card:focus::after, .sect-card:focus-within::after { opacity: 1; }
.sect-card:hover .sect-dot, .sect-card:focus .sect-dot { transform: scale(1.5); }
.sect-card:hover .sect-num, .sect-card:focus .sect-num, .sect-card:focus-within .sect-num { background: var(--bleu); color: var(--papier) !important; }
.sect-card:hover .sect-hint, .sect-card:focus .sect-hint, .sect-card:focus-within .sect-hint { opacity: 0; }
.sect-card:focus-visible { outline: 2px solid var(--bleu); outline-offset: 4px; }
/* Le scénario ne se replie qu'en environnement hover réel (desktop souris) ;
   tactile / no-JS / reduced-motion : visible par défaut (contenu jamais piégé) */
@media (hover: hover) and (pointer: fine) {
  html.js #root .sect-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(0.3, 0.7, 0.2, 1); }
  html.js #root .sect-clip { overflow: hidden; }
  html.js #root .sect-card:hover .sect-body,
  html.js #root .sect-card:focus .sect-body,
  html.js #root .sect-card:focus-within .sect-body { grid-template-rows: 1fr; }
}
@media (hover: none) { .sect-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #root .sect-body { grid-template-rows: 1fr !important; }
  .sect-card, .sect-card .sect-dot, .sect-num, .volet .volet-dot, .volet-anno,
  .prix-row b, .prix-row::before, .prix-row::after, .faq-item, .faq-item > summary::after { transition: none !important; }
  .sect-hint { display: none; }
}

/* ── CTA primaire — micro-interaction : cadre qui se trace au survol (pas de glow) ── */
#root .cta-primary { position: relative; }
.cta-primary::before, .cta-primary::after {
  content: ""; position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;
}
.cta-primary::before {
  left: -6px; top: -6px;
  border-top: 1.5px solid var(--bleu); border-right: 1.5px solid var(--bleu);
  transition: width .12s ease, height .12s ease .12s, opacity 0s;
}
.cta-primary::after {
  right: -6px; bottom: -6px;
  border-bottom: 1.5px solid var(--bleu); border-left: 1.5px solid var(--bleu);
  transition: width .12s ease .24s, height .12s ease .36s, opacity 0s .24s;
}
.cta-primary:hover::before, .cta-primary:focus-visible::before,
.cta-primary:hover::after, .cta-primary:focus-visible::after {
  width: calc(100% + 12px); height: calc(100% + 12px); opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .cta-primary::before, .cta-primary::after { display: none; }
}

/* ── FAQ — filet bleu sur l'item ouvert + corps animable ── */
.faq-item { border-left: 2px solid transparent; transition: border-color .35s ease, padding-left .35s ease; }
.faq-item[open] { border-left-color: var(--bleu); padding-left: 18px; }
.faq-a { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .faq-item { transition: none; }
  .faq-item[open] { padding-left: 14px; }
}

/* ══════════ 2D — MOMENTS PINNÉS (boîte mail + encadré IA) ══════════
   Desktop : sticky+scrub (jamais pin:true — zoom tablette). Contenu complet dans
   le DOM ; reduce / no-JS : wrappers auto, stages statiques, tout visible. */
.s2mailwrap { position: relative; height: 2300px; margin-top: 60px; }
.s2mailstage {
  position: sticky; top: 0; height: var(--vhpx, 100vh); min-height: 700px;
  display: flex; align-items: center; justify-content: center;
}
.mailbox { position: relative; width: 880px; border: 2px solid var(--encre); background: var(--papier); }
.mailbox .demo-badge { top: 10px; right: 10px; z-index: 5; }
.mb-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 2px solid var(--encre); }
.mb-bar i { width: 9px; height: 9px; border: 1.5px solid var(--encre); border-radius: 50%; flex: none; }
.mb-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(var(--encre-rgb), 0.72); }
.mb-list { list-style: none; margin: 0; padding: 6px 0 10px; }
.mb-list li {
  display: grid; grid-template-columns: 150px 1fr 58px; gap: 14px; align-items: baseline;
  padding: 12px 20px; border-bottom: 1px solid rgba(var(--encre-rgb), 0.1); font-size: 13.5px;
}
.mb-list li:last-child { border-bottom: 0; }
.mb-from { font-weight: 600; color: var(--encre); }
.mb-req .mb-from { position: relative; padding-left: 15px; }
.mb-req .mb-from::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bleu); }
.mb-sub { color: rgba(var(--encre-rgb), 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-time { font-family: var(--font-mono); font-size: 10.5px; color: rgba(var(--encre-rgb), 0.5); text-align: right; }
.mb-junk { opacity: 0.5; }
.mb-anno { position: absolute; right: 0; bottom: -36px; margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--bleu); }

.s2iawrap { position: relative; height: 1500px; }
.s2iastage {
  position: sticky; top: 0; height: var(--vhpx, 100vh); min-height: 620px;
  display: flex; align-items: center;
}

/* Fallbacks : no-JS + reduced-motion → flux normal, tout visible, perdues grisées */
html.no-js .s2mailwrap, html.no-js .s2iawrap { height: auto; }
html.no-js .s2mailstage, html.no-js .s2iastage { position: static; height: auto; min-height: 0; display: block; }
html.no-js .mailbox { margin: 0 auto; }
html.no-js .mb-lost, html.no-js #mobile .mb-lost { opacity: 0.25; }
@media (prefers-reduced-motion: reduce) {
  .s2mailwrap, .s2iawrap { height: auto !important; }
  .s2mailstage, .s2iastage { position: static; height: auto; min-height: 0; display: block; }
  .mailbox { margin: 0 auto; }
  .mb-lost { opacity: 0.25 !important; }
}

/* ══════════ 2D — DÉMO JOUABLE (société fictive, badge DÉMO permanent) ══════════ */
.sy-demo { position: relative; display: grid; grid-template-columns: 580px 1fr; gap: 28px; margin-top: 44px; max-width: 1180px; align-items: start; }
.demo-browser, .demo-ops { position: relative; border: 2px solid var(--encre); background: var(--papier); }
.sy-demo .demo-badge { top: 10px; right: 10px; z-index: 5; }
.db-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 2px solid var(--encre); }
.db-bar i { width: 9px; height: 9px; border: 1.5px solid var(--encre); border-radius: 50%; flex: none; }
.db-bar span { flex: 1; margin-left: 8px; margin-right: 64px; border: 1px solid rgba(var(--encre-rgb), 0.3); border-radius: 2px; padding: 4px 10px; font-family: var(--font-mono); font-size: 11px; color: rgba(var(--encre-rgb), 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-page { padding: 26px 28px 30px; }
.db-brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 20px; font-weight: 680; font-stretch: 110%; letter-spacing: 0.02em; }
.db-brand-a { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.72); }
.db-step { margin-top: 22px; opacity: 0.38; pointer-events: none; transition: opacity .3s ease; }
.db-step.is-on { opacity: 1; pointer-events: auto; }
.db-lab { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--encre-rgb), 0.74); margin-bottom: 10px; }
.db-lab b { color: var(--bleu); font-weight: 500; margin-right: 6px; }
.db-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.db-chips button {
  min-height: 44px; padding: 8px 16px; border: 1.5px solid rgba(var(--encre-rgb), 0.45); border-radius: 2px;
  background: var(--papier); font-family: var(--font-corps); font-size: 14.5px; font-weight: 520; color: var(--encre);
  cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.db-chips button:hover { border-color: var(--encre); }
.db-chips button.sel { background: var(--bleu); border-color: var(--bleu); color: var(--papier); }
.db-chips button:focus-visible, .db-send:focus-visible, .demo-replay:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
.db-send {
  margin-top: 28px; min-height: 52px; padding: 0 30px; border: 0; border-radius: 2px;
  background: var(--bleu); color: var(--papier); font-family: var(--font-corps); font-size: 15px; font-weight: 600; font-stretch: 110%;
  cursor: pointer; transition: background .2s ease;
}
.db-send:disabled { background: rgba(var(--encre-rgb), 0.16); color: rgba(var(--encre-rgb), 0.45); cursor: default; }
.db-send:not(:disabled):hover { background: var(--bleu-fonce); }
.db-sent .db-step { opacity: 0.42; pointer-events: none; }

.do-head { padding: 14px 16px; border-bottom: 2px solid var(--encre); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: rgba(var(--encre-rgb), 0.74); }
.do-table { padding: 14px 16px 10px; }
.do-rows { position: relative; display: flex; flex-direction: column; gap: 8px; }
.do-row {
  display: grid; grid-template-columns: 64px 1fr 84px 146px; gap: 8px; align-items: center;
  padding: 10px; border: 1.5px solid rgba(var(--encre-rgb), 0.25); border-radius: 2px; background: var(--papier); font-size: 12.5px;
}
.do-row-head { border: 0; padding: 0 10px 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: rgba(var(--encre-rgb), 0.5); }
.do-old { opacity: 0.55; }
.do-new { border-color: var(--bleu); }
.do-pr i { display: inline-block; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; }
.do-pr .do-pr-h { background: var(--bleu); color: var(--papier); padding: 2px 7px; border-radius: 2px; }
.do-pr .do-pr-m { border: 1.5px solid var(--bleu); color: var(--bleu); padding: 1px 6px; border-radius: 2px; }
.do-tr { font-weight: 560; }
.do-de, .do-ct { font-family: var(--font-mono); font-size: 11px; color: rgba(var(--encre-rgb), 0.7); }
.do-notif { padding: 8px 16px; min-height: 92px; }
.wa-toast { border: 1.5px solid var(--encre); border-left: 4px solid var(--bleu); border-radius: 2px; background: var(--papier); padding: 12px 14px; }
.wa-k { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--bleu); margin-bottom: 6px; }
.wa-toast p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--encre); }
.demo-actions { padding: 0 16px 16px; }
.demo-replay {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--encre); border-radius: 2px; background: transparent;
  font-family: var(--font-corps); font-size: 13.5px; font-weight: 560; color: var(--encre); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.demo-replay:hover { background: var(--encre); color: var(--papier); }
.demo-close { margin: 34px 0 0; max-width: 780px; font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; color: var(--encre); }
.demo-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; max-width: 1180px; }
.demo-steps li { font-size: 14.5px; line-height: 1.55; color: rgba(var(--encre-rgb), 0.78); border-left: 2px solid var(--bleu); padding-left: 14px; }
.demo-steps b { color: var(--encre); }
/* le fallback statique s'efface quand la démo interactive est armée (JS, non-reduce) */
.demo-live .demo-steps { display: none; }
@media (prefers-reduced-motion: reduce) {
  .db-step, .db-chips button, .db-send, .demo-replay { transition: none; }
}

/* ── Mobile 2C ── */
@media (max-width: 767px) {
  .m-final-auth {
    margin: -4px 0 24px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.65;
    letter-spacing: 0.03em; color: rgba(var(--encre-rgb), 0.62);
    border-left: 2px solid var(--bleu); padding-left: 12px;
  }
  #mobile .m-alert { position: relative; }
  .m-alert-inv { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--bleu); }
  #mobile .m-sect { position: relative; }
  #mobile .m-sect::after {
    content: ""; position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px;
    border-right: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu); opacity: 0.55;
  }
  /* 2D — démo jouable mobile : empilée, table compacte 2 lignes */
  #mobile .sy-demo { display: block; margin-top: 26px; }
  #mobile .demo-ops { margin-top: 18px; }
  #mobile .db-page { padding: 18px 16px 22px; }
  #mobile .db-brand { font-size: 17px; }
  #mobile .db-bar span { margin-right: 56px; }
  #mobile .db-chips button { font-size: 13.5px; padding: 8px 12px; }
  #mobile .db-send { width: 100%; }
  #mobile .do-row-head { display: none; }
  #mobile .do-row {
    grid-template-columns: 72px 1fr; grid-template-areas: "pr tr" "de ct"; row-gap: 5px;
  }
  #mobile .do-pr { grid-area: pr; }
  #mobile .do-tr { grid-area: tr; }
  #mobile .do-de { grid-area: de; }
  #mobile .do-ct { grid-area: ct; text-align: right; }
  #mobile .demo-close { font-size: 17px; }
  #mobile .demo-steps { grid-template-columns: 1fr; margin-top: 26px; }
  /* 2D — boîte mail mobile (flux normal, scrub sans pin) */
  #mobile .m-mailbox { width: auto; margin: 26px 0 40px; }
  #mobile .mb-list li { grid-template-columns: 1fr 52px; grid-template-areas: "from time" "sub sub"; row-gap: 3px; padding: 10px 14px; font-size: 12.5px; }
  #mobile .mb-from { grid-area: from; }
  #mobile .mb-time { grid-area: time; }
  #mobile .mb-sub { grid-area: sub; white-space: normal; }
  #mobile .mb-anno { position: static; display: block; margin: 10px 14px 14px; text-align: right; font-size: 10px; }
}
