/* ==========================================================================
   Valtis — feuille de style unique · direction « Le Cabinet », aux couleurs Valtis
   Papier, encre, bleu marine et cyan du logo. Aplats, filets tracés, aucun halo.
   Aucune dépendance. Polices auto-hébergées. Compatible CSP stricte.
   ========================================================================== */

@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  /* Papier : ivoire chaud et sable */
  --paper: #f8f2e7;
  --paper-2: #f0e5d2;
  --sheet: #fdf9f1;
  --sheet-2: #fffcf6;
  /* Encre chaude (noir brun plutôt que noir bleuté) */
  --ink: #1f1c18;
  --ink-2: #4e463b;
  --ink-3: #72685a;
  --line: #e3d7c2;
  --line-2: #cdbd9f;
  /* Couleurs Valtis (relevées sur le logo officiel) : la signature */
  --navy: #162f4e;
  --navy-2: #0f2239;
  --navy-tint: rgba(22, 47, 78, 0.06);
  --cyan: #16b0cc;          /* formes, filets, bouclier : jamais en texte sur fond clair */
  --cyan-tint: rgba(22, 176, 204, 0.12);
  --teal: #007285;          /* cyan assombri, lisible en texte sur le papier (contraste 5:1) */
  /* Touche chaude : ambre, complémentaire du bleu */
  --ambre: #b5701c;         /* grands chiffres et formes */
  --ambre-texte: #8a5716;   /* lisible en petit texte sur le papier */
  --ambre-tint: rgba(181, 112, 28, 0.12);
  --bronze: #7d5f36;
  --ok: #2f6b45;
  --warn: #94600a;
  --crit: #a3322b;
  --chart: #162f4e;
  --chart-hover: #b5701c;
  /* Pied de page */
  --night: #162f4e;
  --night-text: #f3ede2;
  --night-text-2: #c9bfae;
  /* Formes adoucies */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 12px 30px -16px rgba(60, 40, 20, 0.22);
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
h3, h4 { font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: var(--navy); color: var(--paper); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
strong { color: var(--ink); font-weight: 650; }

.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-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: var(--paper); font-weight: 700; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ── Icônes ───────────────────────────────────────────────────────────────── */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6em; height: 1.6em; }

/* ── Typographie ──────────────────────────────────────────────────────────── */
.display { font-size: clamp(2.3rem, 4.4vw, 3.8rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; }
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.012em; line-height: 1.1; }
.h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.65; max-width: 62ch; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.small { font-size: .9rem; }
.xsmall { font-size: .8rem; }
.mono { font-family: var(--font-mono); font-size: .8em; letter-spacing: 0.01em; }
/* Ancien texte en dégradé : un italique cyan, souligné d'un trait qui se trace */
.grad-text { color: var(--navy); font-style: italic; }
.stat__num.grad-text, .case__stat .grad-text { font-style: normal; }
.center { text-align: center; }
.center .lead, .lead.center { margin-inline: auto; }

/* Surtitre : petites capitales cyan précédées d'un filet cyan */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bronze);
  justify-self: start; width: fit-content;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cyan); flex: none; transform-origin: left; }

/* ── Boutons ──────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 650; font-size: 1rem; line-height: 1.2;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
/* Bouton principal : au survol, un filet cyan se trace sous le libellé */
.btn--primary { background: var(--navy) linear-gradient(var(--cyan), var(--cyan)) no-repeat 0 100% / 0% 3px; color: var(--paper); border-color: var(--navy); transition: background-size .45s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn--primary:hover { background-color: var(--navy-2); background-size: 100% 3px; border-color: var(--navy-2); color: var(--paper); }
.btn--ghost { border-color: transparent; padding-inline: 10px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.btn--ghost:hover { background: transparent; color: var(--navy); text-decoration-color: currentColor; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.link { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(31, 58, 95, 0.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(31, 58, 95, 0.35); transition: text-decoration-color .2s; }
.link-arrow:hover { text-decoration-color: var(--navy); }

/* ── En-tête ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-family: "Sora", var(--font-body); font-weight: 600; font-size: 1.28rem; letter-spacing: .1em; }
.logo__mark { width: 48px; height: auto; overflow: visible; }
.logo__eye, .logo__hex { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linejoin: round; }
.logo__eye--in { stroke-width: 1.7; }
.logo__hex { stroke-width: 2; }
.logo__shield { fill: transparent; stroke: var(--cyan); stroke-width: 2.4; stroke-linejoin: round; transition: fill .3s; }
.logo:hover .logo__shield { fill: var(--cyan-tint); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; padding: 8px 12px; font-size: .98rem; font-weight: 550; color: var(--ink-2); transition: color .2s; }
.nav__link:hover { color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); align-items: center; justify-content: center; color: var(--ink); }
.burger .icon { width: 22px; height: 22px; }
.burger .icon--close { display: none; }
.menu-open .burger .icon--menu { display: none; }
.menu-open .burger .icon--close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper);
  padding: 24px var(--gutter) 40px; overflow-y: auto;
  display: none; flex-direction: column; gap: 6px;
}
.menu-open .mobile-nav { display: flex; }
.menu-open { overflow: hidden; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--navy); }
.mobile-nav .btn { margin-top: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 420px) {
  .header-actions .btn--primary { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { position: relative; padding-block: clamp(72px, 10vw, 120px); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }
.section__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head.center { margin-inline: auto; justify-items: center; }
.section__head--split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 32px; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }

.divider-glow { height: 1px; background: var(--line); border: 0; }

/* ── Cartes ───────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: border-color .2s;
}
.card--link:hover, .card--hover:hover { border-color: var(--navy); }
.spotlight::before { content: none; }
.card__icon { display: block; width: fit-content; margin-bottom: 18px; color: var(--navy); }
.card__icon .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 1rem; }
.card__foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: .74rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding: 4px 10px; border-radius: var(--radius-xs); border: 1px solid var(--line-2); background: transparent; }
.tag--cyan { color: var(--navy); border-color: rgba(31, 58, 95, 0.4); }
.tag--ok { color: var(--ok); border-color: rgba(47, 107, 69, 0.4); }

.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.hero__bg, .hero__glow-2 { display: none; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__content { display: grid; gap: 26px; justify-items: start; }
.hero__title em { font-style: italic; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 18px 0 0; color: var(--ink-2); font-size: .95rem; margin-top: 4px; border-top: 1px solid var(--line); }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .icon { color: var(--teal); width: 18px; height: 18px; stroke-width: 2; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.page-hero { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero:has(+ .section--flush-top:not([hidden])) { border-bottom: 0; }
.page-hero__inner { display: grid; gap: 22px; justify-items: start; }
.page-hero__inner > * { max-width: 860px; }
.page-hero--center .page-hero__inner { text-align: center; justify-items: center; }
.page-hero--center .page-hero__inner > * { margin-inline: auto; }
.page-hero--center .eyebrow, .section__head.center .eyebrow { justify-self: center; }

/* ── Main courante (visuel hero) : un document, pas une console ───────────── */
.hero__visual { position: relative; isolation: isolate; }
.registre {
  position: relative; background: var(--sheet-2); border: 1px solid var(--line-2);
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 34px) 26px;
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -28px rgba(60, 40, 20, 0.4);
}
/* La feuille d'en dessous : on devine la pile du mois */
.registre::before { content: ""; position: absolute; inset: 8px -8px -8px 8px; z-index: -1; background: #efe5d3; border: 1px solid var(--line); transform: rotate(1.4deg); }
.registre__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.registre__brand { font-family: var(--font-display); font-weight: 600; letter-spacing: .18em; font-size: .95rem; }
.registre__ref { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.registre__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.55rem); margin-top: 16px; line-height: 1.2; }
.registre__sub { color: var(--ink-3); font-size: .9rem; margin-top: 4px; }
.registre__rows { list-style: none; padding: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.registre__rows li { display: grid; grid-template-columns: 3.4em 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dotted var(--line-2); font-size: .95rem; }
.registre__rows time { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.registre__state { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.registre__state--warn { color: var(--warn); }
.registre__state--info { color: var(--navy); }
.registre__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; min-height: 64px; }
.registre__note { color: var(--ink-3); font-size: .85rem; max-width: 26ch; line-height: 1.45; }
.tampon {
  display: grid; justify-items: center; gap: 2px; padding: 8px 14px; flex: none;
  color: var(--teal); border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 3px; border-radius: 3px;
  font-weight: 750; text-transform: uppercase; letter-spacing: .1em; line-height: 1.15; text-align: center;
  transform: rotate(-7deg); opacity: .88; mix-blend-mode: multiply;
}
.tampon b { font-size: .95rem; font-weight: 800; }
.tampon small { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em; }
.hero__caption { margin-top: 22px; color: var(--ink-3); font-size: .88rem; font-style: italic; text-align: right; }
@media (max-width: 480px) { .registre__rows li { grid-template-columns: 3em 1fr; } .registre__state { grid-column: 2; } }

/* Chargement du test de domaine : un cadran sobre */
.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 210px; margin: 6px auto 4px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(31, 58, 95, 0.22), rgba(31, 58, 95, 0) 25%); animation: sweep 2.4s linear infinite; border-radius: 50%; }
.radar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.radar__cross { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.radar__blip { display: none; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ── Bandeau technologies (statique) ──────────────────────────────────────── */
.stack-strip { border-bottom: 1px solid var(--line); background: var(--paper-2); padding-block: 22px; }
.stack-strip__inner { display: flex; align-items: center; gap: 28px; }
.stack-strip__label { flex: none; color: var(--ink-2); font-family: var(--font-display); font-style: italic; font-size: 1rem; max-width: 190px; line-height: 1.35; }
.marquee { flex: 1; }
.marquee__track { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.marquee__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; color: var(--ink); white-space: nowrap; }
.marquee__item[aria-hidden="true"] { display: none; }
.marquee__item .icon { color: var(--bronze); width: 18px; height: 18px; }
@media (max-width: 700px) { .stack-strip__inner { flex-direction: column; align-items: start; gap: 12px; } .stack-strip__label { max-width: none; } }

/* ── Chiffres : présentés comme dans un rapport ───────────────────────────── */
.stat { display: grid; gap: 10px; align-content: start; }
.card.stat { background: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 22px 0 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--navy); }
.stat__num small { font-family: var(--font-body); font-size: .32em; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-left: 8px; color: var(--bronze); }
.stat__label { color: var(--ink-2); font-size: 1rem; }
.stat__src { color: var(--ink-3); font-size: .8rem; margin-top: auto; padding-top: 8px; }
.stat__src a { text-decoration: underline; text-underline-offset: 2px; }
.stat__src a:hover { color: var(--ink); }

/* ── Problème ─────────────────────────────────────────────────────────────── */
.pain-list { display: grid; gap: 14px; }
.pain { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.pain .card__icon { margin: 2px 0 0; }
.pain h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pain p { color: var(--ink-2); font-size: 1rem; }
.quote { position: relative; padding: 4px 0 4px 26px; border-left: 3px solid var(--ambre); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); }
.quote cite { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-size: .76rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }

/* ── Étapes ───────────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; position: relative; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--ambre); }
.step::after { content: ""; position: absolute; top: 52px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan) 0 56px, var(--line-2) 56px); transform-origin: left; }
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step__meta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; color: var(--bronze); }
@media (max-width: 900px) { .steps, .steps--4 { grid-template-columns: 1fr; gap: 8px; } .step { padding: 0 0 28px 72px; } .step::after { top: 0; bottom: 12px; left: 56px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan) 0 48px, var(--line-2) 48px); transform-origin: top; } }

/* ── Modules ──────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento .card { display: flex; flex-direction: column; }
.bento .card p { flex: 1; }
.bento__wide { grid-column: span 2; }
.bento__wide .card__visual { margin-top: 20px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento__wide { grid-column: auto; } }
.mini-log { font-family: var(--font-mono); font-size: .74rem; display: grid; gap: 0; color: var(--ink-2); border-top: 1px solid var(--line); }
.mini-log div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line-2); }
.mini-log b { font-weight: 500; min-width: 4.5em; }
.mini-log .ok { color: var(--ok); } .mini-log .warn { color: var(--warn); } .mini-log .info { color: var(--navy); }

/* ── Rapport (résumé du matin) ────────────────────────────────────────────── */
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ink-2); }
.check-list li > .icon { margin-top: 4px; color: var(--teal); width: 18px; height: 18px; stroke-width: 2; }
.check-list b { color: var(--ink); font-weight: 650; }
.check-list--no li > .icon { color: var(--ink-3); }
.mail { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--sheet-2); color: var(--ink); box-shadow: var(--shadow); }
.mail__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.mail__avatar { width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--navy); color: var(--paper); }
.mail__avatar .icon { width: 18px; height: 18px; }
.mail__from b { display: block; color: var(--ink); font-size: .92rem; }
.mail__body { padding: 22px; display: grid; gap: 16px; }
.mail__subject { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.mail__meta { font-size: .82rem; color: var(--ink-3); margin-top: -10px; }
.mail__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.mail__kpi { padding: 12px; border-left: 1px solid var(--line); }
.mail__kpi:first-child { border-left: 0; }
.mail__kpi b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.mail__kpi span { font-size: .78rem; color: var(--ink-3); }
.mail__kpi--ok b { color: var(--ok); }
.mail__row { display: flex; gap: 10px; align-items: center; font-size: .9rem; padding: 9px 0; border-bottom: 1px dotted var(--line-2); }
.mail__row i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); }
.mail__row--warn i { background: var(--warn); }
.mail__foot { font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); padding: 12px 22px; }

/* ── Encadré (test de domaine, cas client) ────────────────────────────────── */
.case { position: relative; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--cyan); }
.case__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.case__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case__stat { background: var(--sheet-2); padding: 22px; display: grid; gap: 6px; }
.case__stat b { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--navy); }
.case__stat > span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 900px) { .case__grid { grid-template-columns: 1fr; } }

/* ── Tarifs ───────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 22px; }
.plan--featured { background: var(--sheet-2); border-color: var(--navy); border-top: 4px solid var(--cyan); }
.plan__badge { position: absolute; top: -14px; left: 28px; padding: 4px 10px; border-radius: var(--radius-xs); background: var(--ambre-texte); color: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan__name { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.plan__period { color: var(--ink-2); }
.plan__setup { color: var(--ink-2); font-size: .94rem; margin-top: -10px; }
.plan__desc { color: var(--ink-2); font-size: 1rem; }
.plan .check-list { gap: 11px; font-size: .98rem; flex: 1; }
.plan .check-list li > .icon { width: 16px; height: 16px; }
.plan-note { margin-top: 24px; color: var(--ink-3); font-size: .9rem; text-align: center; }
.plan-note a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--sheet); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--font-display); font-weight: 600; font-size: 1rem; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.table tbody th { font-weight: 600; color: var(--ink-2); }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table .yes { color: var(--ok); }
.table .no { color: var(--ink-3); }
.table .icon { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-right: 4px; }

/* ── Fondateur / certifications ───────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.founder__avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; letter-spacing: .04em; color: var(--paper); background: var(--navy); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4px var(--navy); }
.founder__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.cert { display: grid; gap: 8px; }
.cert__issuer { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.cert h3 { font-size: 1.12rem; margin: 0; }
.cert p { font-size: .94rem; }


/* ── FAQ : un registre, pas des boîtes ────────────────────────────────────── */
.faq { display: grid; max-width: 860px; border-bottom: 1px solid var(--line-2); }
.faq--center, .faq-wrap .faq { margin-inline: auto; }
.faq__item { border-top: 1px solid var(--line-2); }
.faq__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.faq__q:hover { color: var(--navy); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { width: 20px; height: 20px; color: var(--navy); transition: transform .25s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 2px 24px; color: var(--ink-2); max-width: 70ch; }
.faq__a p + p { margin-top: 10px; }
.faq__a a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA final ────────────────────────────────────────────────────────────── */
.cta-panel { position: relative; border-radius: var(--radius); padding: clamp(32px, 6vw, 72px); text-align: center; background: var(--navy); color: var(--paper); }
.cta-panel .eyebrow { color: #e6cfa3; }
.cta-panel .eyebrow::before { background: var(--cyan); }
.cta-panel .grad-text { color: #5fd0e3; }
.cta-panel .lead { margin: 18px auto 30px; color: #e6ded0; }
.cta-panel .btn-row { justify-content: center; }
.cta-panel .btn { color: var(--paper); border-color: rgba(245, 241, 232, 0.6); }
.cta-panel .btn:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.cta-panel .btn--primary { background-color: var(--paper); color: var(--navy); border-color: var(--paper); }
.cta-panel .btn--primary:hover { background-color: #fff; color: var(--navy); border-color: #fff; }
.cta-panel__note { margin-top: 18px; color: #c9bfae; font-size: .9rem; }

/* ── Formulaires ──────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field__label { font-size: .92rem; font-weight: 650; color: var(--ink); }
.field__label .opt { color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--radius-sm);
  background: var(--sheet-2); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; font-size: 1.02rem;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4740' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.select option { background: var(--sheet-2); color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #a09481; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.16); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--crit); box-shadow: 0 0 0 3px rgba(158, 43, 37, 0.12); }
.field__error { color: var(--crit); font-size: .88rem; min-height: 0; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; margin-top: 2px; border-radius: var(--radius-xs); border: 1px solid var(--ink-3); background: var(--sheet-2); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { opacity: 1; }
.check input[aria-invalid="true"] { border-color: var(--crit); }
.check a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 12px; }
.form__legal { font-size: .82rem; color: var(--ink-3); }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.alert { display: none; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .96rem; border: 1px solid; }
.alert.is-visible { display: flex; animation: fadeIn .3s var(--ease); }
.alert .icon { margin-top: 3px; }
.alert--ok { color: #24543a; background: #e6ede4; border-color: #b9cdb9; }
.alert--err { color: #7e221d; background: #f3e3de; border-color: #ddb3ab; }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.is-visible { display: grid; gap: 14px; justify-items: center; animation: fadeIn .4s var(--ease); }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); }
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.is-sent .form { display: none; }

.contact-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.contact-list .card__icon { margin: 0; }
.contact-list .card__icon .icon { width: 24px; height: 24px; }
.contact-list small { display: block; color: var(--ink-3); font-size: .84rem; }
.contact-list a { font-weight: 650; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(31, 58, 95, 0.35); }
.contact-list a:hover { text-decoration-color: var(--navy); }

/* ── Prise de rendez-vous ─────────────────────────────────────────────────── */
.booking { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--sheet); }
.booking__side { padding: clamp(24px, 4vw, 40px); background: var(--paper-2); border-right: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.booking__main { padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; align-content: start; }
.booking__facts { list-style: none; padding: 0; display: grid; gap: 12px; color: var(--ink-2); font-size: .98rem; }
.booking__facts li { display: flex; gap: 12px; align-items: center; }
.booking__facts .icon { color: var(--navy); }
.booking__side, .booking__main { min-width: 0; }
@media (max-width: 900px) { .booking { grid-template-columns: minmax(0, 1fr); } .booking__side { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .booking__side, .booking__main { padding: 22px 16px; } .stepper li:not(.is-active) span { display: none; } .cal__grid { gap: 4px; } }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: .86rem; color: var(--ink-3); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }
.stepper b { width: 24px; height: 24px; border-radius: var(--radius-xs); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: .74rem; border: 1px solid var(--line-2); }
.stepper .is-active { color: var(--ink); }
.stepper .is-active b { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.stepper .is-done b { border-color: var(--navy); color: var(--navy); }
.cal { display: grid; gap: 12px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; }
.cal__month { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: capitalize; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.cal__nav button:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); }
.cal__nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 4px; }
.cal__day { height: clamp(40px, 5.2vw, 50px); border-radius: var(--radius-sm); display: grid; place-items: center; font-weight: 650; font-size: .96rem; border: 1px solid transparent; color: var(--ink-3); position: relative; }
.cal__day:disabled { cursor: default; opacity: .4; }
.cal__day.is-available { color: var(--ink); background: var(--sheet-2); border-color: var(--line-2); cursor: pointer; }
.cal__day.is-available::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--navy); }
.cal__day.is-available:hover { border-color: var(--navy); }
.cal__day[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.cal__day[aria-pressed="true"]::after { background: var(--paper); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--ink-3); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--sheet-2); font-family: var(--font-mono); font-size: .88rem; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.slot:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.slot[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.slots__empty { color: var(--ink-3); font-size: .95rem; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); text-align: center; }
.booking__summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--navy-tint); border: 1px solid rgba(31, 58, 95, 0.25); font-size: .96rem; }
.booking__summary .icon { color: var(--navy); }
.booking__summary button { margin-left: auto; color: var(--navy); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.skeleton { background: linear-gradient(90deg, #f0e5d2, #f8f2e7, #f0e5d2); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); min-height: 44px; }
@keyframes shimmer { to { background-position: -200% 0; } }
[hidden] { display: none !important; }

/* ── Fil d'Ariane ─────────────────────────────────────────────────────────── */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: .88rem; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ── Contenu éditorial (guides, pages légales) ────────────────────────────── */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.toc__title { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.toc ol { list-style: none; padding: 0; display: grid; gap: 4px; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .92rem; color: var(--ink-3); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--navy); border-left-color: var(--cyan); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ink-3); font-size: .92rem; }
.author-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.author-chip__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--paper); background: var(--navy); }

.prose { font-size: 1.1rem; line-height: 1.75; color: #2f2a24; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--ink); font-size: clamp(1.55rem, 2.4vw, 1.95rem); margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { color: var(--ink); font-size: 1.3rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(31, 58, 95, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--cyan); padding: 4px 0 4px 22px; color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: 1.15em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); color: var(--ink); font-weight: 650; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin-block: 2.4em; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--radius-xs); background: #f3ecdf; border: 1px solid var(--line); border-left: 3px solid var(--cyan); color: var(--ink); font-size: 1.02rem; line-height: 1.65; }
.callout .icon { color: var(--teal); margin-top: 3px; }
.callout--warn { background: #f3ebd9; border-left-color: var(--warn); }
.callout--warn .icon { color: var(--warn); }
.callout p + p { margin-top: .5em; }
.key-points { padding: 22px 24px; background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--cyan); }
.key-points h2 { margin: 0 0 10px !important; font-size: .8rem !important; font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze) !important; }
.legal .info-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; padding: 20px 22px; border: 1px solid var(--line); background: var(--sheet); font-size: 1rem; }
.legal .info-grid dt { color: var(--ink-3); }
.legal .info-grid dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .legal .info-grid { grid-template-columns: 1fr; gap: 2px; } .legal .info-grid dd { margin-bottom: 10px; } }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 12px; }
.guide-card__tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.guide-card__title { font-size: 1.3rem; }
.guide-card__desc { color: var(--ink-2); font-size: 1rem; flex: 1; }
.guide-card__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .9rem; }
.guide-card:hover .guide-card__meta { color: var(--navy); }

/* ── Pied de page ─────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--night); color: var(--night-text); padding-top: clamp(56px, 8vw, 88px); }
.site-footer .logo { color: var(--night-text); }
.site-footer .logo__shield { stroke: var(--cyan); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer__brand p { color: var(--night-text-2); font-size: .98rem; margin-top: 16px; max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e6cfa3; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--night-text); font-size: .98rem; transition: color .2s; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.site-footer__social a { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid rgba(243, 237, 226, 0.3); display: grid; place-items: center; color: var(--night-text); transition: border-color .2s, color .2s; }
.site-footer__social a:hover { color: #fff; border-color: var(--night-text); }
.site-footer__bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(243, 237, 226, 0.16); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--night-text-2); font-size: .86rem; }
.site-footer__giant { display: none; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found__code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 12rem); font-weight: 500; line-height: 1; color: var(--navy); }

/* ── Animations : le mouvement raconte le métier ──────────────────────────────
   Une main courante qui se remplit, un tampon qui tombe, des filets cyan qui se
   tracent comme à la plume. Rien ne flotte, rien ne brille, rien ne clignote.
   Tout est désactivé si le visiteur demande moins d'animations. */

@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes souligne { from { background-size: 0% var(--u); } to { background-size: 100% var(--u); } }

/* Apparition au défilement (le script ajoute .is-visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.d1 { --d: .1s; } .d2 { --d: .2s; } .d3 { --d: .3s; } .d4 { --d: .4s; }

/* Accroche de l'accueil et en-têtes de page : entrée en cascade au chargement */
.hero__content > *, .page-hero__inner > * { animation: monte .9s var(--ease) both; }
.hero__content > :nth-child(2), .page-hero__inner > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3), .page-hero__inner > :nth-child(3) { animation-delay: .22s; }
.hero__content > :nth-child(4), .page-hero__inner > :nth-child(4) { animation-delay: .34s; }
.hero__content > :nth-child(5), .page-hero__inner > :nth-child(5) { animation-delay: .44s; }
.hero__content > :nth-child(6), .page-hero__inner > :nth-child(6) { animation-delay: .54s; }
.hero__content > :nth-child(n+7), .page-hero__inner > :nth-child(n+7) { animation-delay: .64s; }
.hero .eyebrow::before, .page-hero .eyebrow::before { animation: trace 1s var(--ease) .25s both; }

/* Le bouclier du logo se trace à chaque page : chaque clic dans le menu (SOC managé, Portail client, Tarifs…)
   ou sur un lien du site l'anime de nouveau (retour par « Précédent » : relancé dans site.js). */
.site-header .logo__shield { stroke-dasharray: 100; animation: bouclier 1.6s var(--ease) .2s both; }
@keyframes bouclier { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Les filets se tracent quand on arrive dessus */
.js .eyebrow::before { transform: scaleX(0); transition: transform 1s var(--ease) .1s; }
.js .eyebrow.is-visible::before { transform: scaleX(1); }

/* L'italique cyan des titres reçoit un trait, comme souligné au stylo */
.grad-text { --u: 2px; background: linear-gradient(var(--cyan), var(--cyan)) no-repeat 0 100% / 0% var(--u); -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.2s var(--ease) .35s; }
.display .grad-text, .h1 .grad-text { --u: 3px; }
h1 .grad-text { animation: souligne 1.2s var(--ease) .9s both; }
.is-visible .grad-text, html:not(.js) .grad-text { background-size: 100% var(--u); }
.stat__num.grad-text, .case__stat .grad-text { background: none; }

/* Chiffres clés : le filet du haut se trace, le début en cyan */
.card.stat { border-top: 0; padding-top: 24px; }
.card.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--ambre) 0 48px, var(--ink) 48px); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .15s); }
.js .card.stat:not(.is-visible)::before { transform: scaleX(0); }

/* Étapes : le trait de liaison se dessine */
.step::after { transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .25s); }
.js .step:not(.is-visible)::after { transform: scaleX(0); }
@media (max-width: 900px) { .js .step:not(.is-visible)::after { transform: scaleY(0); } }

/* Citation : le filet descend */
.js .quote { border-left-color: transparent; }
.js .quote::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: var(--ambre); transform-origin: top; transition: transform 1s var(--ease) .2s; }
.js .quote:not(.is-visible)::before { transform: scaleY(0); }

/* Encadrés : le filet cyan du haut se trace */
.js .case { border-top-color: var(--line); }
.js .case::before { content: ""; position: absolute; left: -1px; right: -1px; top: -3px; height: 3px; background: var(--cyan); transform-origin: left; transition: transform 1.3s var(--ease) .2s; }
.js .case:not(.is-visible)::before { transform: scaleX(0); }

/* Main courante : les lignes s'inscrivent une à une, puis le tampon tombe */
@keyframes ligne { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes surligne { 0%, 100% { background-color: transparent; } 30%, 60% { background-color: var(--cyan-tint); } }
@keyframes tampon { 0% { opacity: 0; transform: rotate(-7deg) scale(2.3); } 65% { opacity: .9; transform: rotate(-7deg) scale(.94); } 100% { opacity: .88; transform: rotate(-7deg) scale(1); } }
@keyframes choc { 0%, 100% { transform: none; } 45% { transform: translateY(2px) rotate(.12deg); } }
.registre__rows li { animation: ligne .55s var(--ease) both; animation-delay: var(--t); }
.registre__rows li:nth-child(1) { --t: .8s; }
.registre__rows li:nth-child(2) { --t: 1.25s; }
.registre__rows li:nth-child(3) { --t: 1.7s; }
.registre__rows li:nth-child(4) { --t: 2.15s; animation: ligne .55s var(--ease) var(--t) both, surligne 2.2s ease calc(var(--t) + .5s) both; }
.registre__rows li:nth-child(5) { --t: 2.6s; }
.registre__state { animation: apparait .35s ease both; animation-delay: calc(var(--t) + .4s); }
.registre__note { animation: apparait .6s ease 3.1s both; }
.tampon { animation: tampon .5s cubic-bezier(.3, 1.4, .5, 1) 3.35s both; }
/* Le choc du tampon secoue le bloc entier : animer .registre lui-même ferait passer
   sa feuille de dessous (::before, z-index -1) au-dessus de son fond pendant l'attente. */
.hero__visual { animation: choc .3s ease-out 3.7s; }

/* Résumé du matin : les lignes arrivent à la suite */
.js .mail .mail__row { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .mail.is-visible .mail__row { opacity: 1; transform: none; }
.js .mail.is-visible .mail__row:nth-child(4) { transition-delay: .5s; }
.js .mail.is-visible .mail__row:nth-child(5) { transition-delay: .8s; }
.js .mail.is-visible .mail__row:nth-child(6) { transition-delay: 1.1s; }

/* Survol : un filet cyan se trace en haut de la carte, la flèche avance */
.card:not(.stat):not(.form-card)::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); pointer-events: none; }
.btn .icon, .link-arrow .icon { transition: transform .3s var(--ease); }
@media (hover: hover) {
  .card:not(.stat):not(.form-card):hover::after { transform: scaleX(1); }
  .card:hover .card__icon { color: var(--teal); }
  .btn:hover .icon, .link-arrow:hover .icon { transform: translateX(4px); }
}

/* FAQ : la réponse se déplie en douceur (navigateurs récents) */
:root { interpolate-size: allow-keywords; }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

/* En-tête : une ombre discrète apparaît dès qu'on fait défiler */
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 20px -18px rgba(60, 40, 20, 0.45); }

/* Test de domaine : la note est tamponnée, les rubriques suivent */
@keyframes note { 0% { opacity: 0; transform: scale(1.8) rotate(-5deg); } 70% { opacity: 1; transform: scale(.95); } 100% { opacity: 1; transform: none; } }
.dc-grade { animation: note .55s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
.dc-sections > * { animation: monte .7s var(--ease) both; }
.dc-sections > :nth-child(2) { animation-delay: .12s; }
.dc-sections > :nth-child(3) { animation-delay: .24s; }
.dc-sections > :nth-child(n+4) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .mail .mail__row { opacity: 1; transform: none; }
  .js .eyebrow::before, .js .card.stat::before, .js .step::after, .js .quote::before, .js .case::before { transform: none !important; }
  .grad-text { background-size: 100% var(--u); }
}

/* ── Outil de test de domaine ─────────────────────────────────────────────── */
.domain-form { display: flex; gap: 8px; width: 100%; max-width: 640px; padding: 6px; border-radius: var(--radius); background: var(--sheet-2); border: 1px solid var(--line-2); }
.domain-form__input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.15rem; min-height: 56px; }
.domain-form__input:focus { box-shadow: none; }
.domain-form:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.16); }
@media (max-width: 560px) { .domain-form { flex-direction: column; } .domain-form .btn { width: 100%; } }
.dc-loading { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 24px; }
.dc-loading__radar { width: 120px; max-width: 120px; }
.dc-summary { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 36px); align-items: center; }
@media (max-width: 900px) { .dc-summary { grid-template-columns: auto 1fr; } .dc-summary__cta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .dc-summary { grid-template-columns: 1fr; justify-items: start; } }
.dc-summary__text { display: grid; gap: 8px; }
.dc-summary__domain { word-break: break-word; }
.dc-summary__cta { display: grid; gap: 10px; }
.dc-grade { width: 112px; height: 112px; border-radius: var(--radius); display: grid; place-items: center; font-family: var(--font-display); font-size: 3.8rem; font-weight: 600; color: #fff; }
.dc-grade--A, .grade-pill--A { background: #2f6b45; }
.dc-grade--B, .grade-pill--B { background: #5d7334; }
.dc-grade--C, .grade-pill--C { background: #94600a; }
.dc-grade--D, .grade-pill--D { background: #a8501f; }
.dc-grade--E, .dc-grade--F, .grade-pill--E, .grade-pill--F { background: var(--crit); }
.dc-counts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .96rem; color: var(--ink-2); }
.dc-count { display: inline-flex; align-items: center; gap: 6px; }
.dc-count .icon, .dc-check__icon .icon { width: 18px; height: 18px; }
.dc-count--ok .icon, .dc-check--ok .dc-check__icon { color: var(--ok); }
.dc-count--warn .icon, .dc-check--warn .dc-check__icon { color: var(--warn); }
.dc-count--fail .icon, .dc-check--fail .dc-check__icon { color: var(--crit); }
.dc-check--info .dc-check__icon { color: var(--ink-3); }
.dc-sections { display: grid; gap: 16px; margin-top: 16px; }
.dc-section__title { margin-bottom: 8px; }
.dc-checks { list-style: none; padding: 0; display: grid; }
.dc-check { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.dc-check:first-child { border-top: 0; }
.dc-check__icon { width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--paper-2); }
.dc-check__body { display: grid; gap: 4px; min-width: 0; }
.dc-check__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dc-check__detail { color: var(--ink-2); font-size: 1rem; }
.dc-check__advice { font-size: .96rem; color: var(--ink); padding: 8px 12px; border-left: 3px solid var(--cyan); background: var(--navy-tint); }
.dc-check__value { display: block; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); overflow-wrap: anywhere; }
.dc-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-xs); border: 1px solid; }
.dc-tag--ok { color: var(--ok); border-color: rgba(47, 107, 69, 0.4); }
.dc-tag--warn { color: var(--warn); border-color: rgba(148, 96, 10, 0.4); }
.dc-tag--fail { color: var(--crit); border-color: rgba(158, 43, 37, 0.4); }
.dc-tag--info { color: var(--ink-3); border-color: var(--line-2); }
.home-test { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .home-test { grid-template-columns: 1fr; } }

/* ── Administration ───────────────────────────────────────────────────────── */
.admin { min-height: 70vh; padding-top: clamp(32px, 5vw, 56px); }
.admin-login { max-width: 460px; margin: 0 auto; display: grid; gap: 10px; }
.admin-app { display: grid; gap: 20px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.admin-bar__actions { display: flex; align-items: center; gap: 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line-2); }
.admin-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-2); font-weight: 650; }
.admin-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cyan); }
.admin-tab:hover { color: var(--ink); }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.admin-list__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.booking-card { display: grid; gap: 8px; padding: 20px 22px; }
.booking-card--past { opacity: .6; }
.booking-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.booking-card__when { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.booking-card__when::first-letter { text-transform: uppercase; }
.booking-card__who { color: var(--ink); }
.booking-card__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .94rem; }
.booking-card__msg { color: var(--ink-2); font-size: .94rem; white-space: pre-line; padding: 10px 12px; background: var(--paper-2); }
.admin-filters { display: flex; gap: 8px; }
.chip { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .92rem; font-weight: 650; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stats-body { display: grid; gap: 16px; transition: opacity .2s; }
.stats-body.is-loading { opacity: .55; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px 18px; border: 1px solid var(--line); background: var(--sheet); }
.kpi__label { color: var(--ink-3); font-size: .86rem; }
.kpi__value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; color: var(--ink); }
.chart-card { display: grid; gap: 12px; }
.chart-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.chart { position: relative; min-height: 240px; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: rgba(60, 40, 20, 0.08); stroke-width: 1; }
.chart__base { stroke: rgba(60, 40, 20, 0.3); stroke-width: 1; }
.chart__tick { fill: var(--ink-3); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart__mark { fill: var(--chart); transition: fill .15s; }
.chart__hit { fill: transparent; cursor: crosshair; }
.chart__bar.is-active .chart__mark { fill: var(--chart-hover); }
.chart__bar.is-active .chart__hit { fill: rgba(60, 40, 20, 0.04); }
.chart__tip { position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sheet-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .86rem; min-width: 160px; z-index: 2; }
.chart__tip-date { color: var(--ink-3); margin-bottom: 4px; }
.chart__tip-row { color: var(--ink-2); }
.chart__tip-row strong { color: var(--ink); font-size: 1rem; }
.chart__empty { position: absolute; inset: 40% 0 auto; text-align: center; color: var(--ink-3); font-size: .94rem; }
.chart-table summary { cursor: pointer; color: var(--ink-2); font-size: .92rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hbars { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 12px; }
.hbars__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .94rem; }
.hbars__label { color: var(--ink); overflow-wrap: anywhere; }
.hbars__value { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hbars__bar { grid-column: 1 / -1; height: 6px; background: rgba(60, 40, 20, 0.07); overflow: hidden; }
.hbars__fill { display: block; height: 100%; background: var(--chart); }
.grade-pill { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-xs); font-family: var(--font-display); font-weight: 600; color: #fff; }

/* ── Utilitaires d'espacement ─────────────────────────────────────────────── */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.stack { display: grid; gap: 16px; } .stack--lg { gap: 28px; } .stack--sm { gap: 10px; }
.maxw-sm { max-width: 560px; }

@media print {
  .site-header, .site-footer, .cta-panel, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; }
}

/* Accueil : précision technique sous l'accroche (pour l'informaticien) */
.hero__tech { color: var(--ink-3); font-family: var(--font-mono); font-size: .8rem; line-height: 1.6; max-width: 560px; margin-top: -6px; padding-left: 14px; border-left: 2px solid var(--line-2); }
/* Tarifs : parrainage */
.parrainage { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; margin-top: 28px; padding: 22px 24px; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--cyan); }
.parrainage .card__icon { margin: 0; }
.parrainage h3 { margin-bottom: 6px; }
.parrainage p { color: var(--ink-2); }
@media (max-width: 760px) { .parrainage { grid-template-columns: 1fr; } }
/* FAQ : listes dans les réponses */
.faq-wrap ul { margin: .6em 0 .6em 1.2em; display: grid; gap: .45em; }
/* Portail client : captures présentées à plat, sans faux navigateur */
.capture { margin: 0; overflow: hidden; border: 1px solid var(--line-2); background: var(--sheet); box-shadow: var(--shadow); }
.capture img { display: block; width: 100%; height: auto; }
.capture__bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.capture__bar i { display: none; }
.capture__bar span { font: 500 .76rem var(--font-mono); color: var(--ink-3); }
.capture--doc { background: #fff; width: 100%; max-width: 520px; justify-self: center; }
.capture__note { margin-top: 12px; text-align: center; color: var(--ink-3); font-size: .9rem; font-style: italic; }
.split--media { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 900px) { .split--media { grid-template-columns: 1fr; } }

/* ══ Une nuit chez vous (accueil) : la scène reste à l'écran, les étapes défilent ══ */
.nuit__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.nuit__scene {
  --fond: var(--navy); --trait: rgba(238, 240, 242, 0.85); --intrus: #e8a33d;
  position: sticky; top: calc(var(--header-h) + 28px); z-index: 2;
  padding: 22px 22px 108px; border-radius: var(--radius); overflow: hidden;
  background: var(--fond); color: var(--trait);
  transition: background-color 1.2s ease, color 1.2s ease;
}
.nuit__scene[data-step="6"] { --fond: #f4e9d5; --trait: var(--navy); }
.nuit__heure { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.nuit__horloge { font-family: var(--font-mono); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: currentColor; letter-spacing: .02em; }
.nuit__horloge.is-change { animation: tic .45s var(--ease); }
@keyframes tic { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nuit__moment { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.nuit__plan { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.nuit__plan * { transition: fill 1.2s ease, stroke .6s ease, stroke-opacity .6s ease, opacity .6s ease; }
.plan__bureaux { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1.2; }
.plan__titre { fill: currentColor; opacity: .65; font: 700 10.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.plan__label { fill: currentColor; opacity: .8; font: 500 11.5px var(--font-body); text-anchor: middle; }
.plan__globe circle, .plan__globe ellipse, .plan__globe path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-opacity: .8; }
.plan__box rect, .plan__poste rect, .plan__serveur rect, .plan__oeil path { fill: var(--fond); stroke: currentColor; stroke-width: 1.5; }
.plan__box circle, .plan__serveur circle { fill: currentColor; opacity: .7; }
.plan__poste path, .plan__serveur path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.plan__oeil path { stroke-width: 2.2; stroke-linejoin: round; }
.plan__oeil .plan__bouclier { stroke: var(--cyan); stroke-width: 2.4; }
.plan__bus path { fill: none; stroke: currentColor; stroke-opacity: .3; stroke-width: 1.3; stroke-dasharray: 3 4; }
.plan__intrus { fill: none; stroke: var(--intrus); stroke-width: 2.2; stroke-dasharray: 7 5; opacity: 0; }
.plan__signaux circle { fill: var(--cyan); stroke: var(--cyan); stroke-width: 0; opacity: 0; }
.plan__coupure { fill: none; stroke: var(--cyan); stroke-width: 3.2; stroke-linecap: round; opacity: 0; }
.plan__verrou rect, .plan__verrou path { fill: var(--fond); stroke: var(--cyan); stroke-width: 2; opacity: 0; }
.plan__verrou path { fill: none; }
.plan__ok path { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
@keyframes fourmis { to { stroke-dashoffset: -24; } }
@keyframes signal { 0% { stroke-width: 0; stroke-opacity: .7; } 100% { stroke-width: 18; stroke-opacity: 0; } }
/* 1 : l'intrus entre */
.nuit__scene[data-step="1"] .plan__intrus:not(.plan__intrus--2) { opacity: 1; animation: fourmis 1s linear infinite; }
.nuit__scene[data-step="1"] .plan__poste--cible rect { stroke: var(--intrus); }
/* 2 et 3 : Valtis relie les signaux, l'alerte part */
.nuit__scene:is([data-step="2"], [data-step="3"]) .plan__intrus { opacity: 1; animation: fourmis 1s linear infinite; }
.nuit__scene:is([data-step="2"], [data-step="3"]) .plan__poste--cible rect,
.nuit__scene:is([data-step="2"], [data-step="3"]) .plan__serveur rect { stroke: var(--intrus); }
.nuit__scene:is([data-step="2"], [data-step="3"], [data-step="4"]) .plan__bus path { stroke: var(--cyan); stroke-opacity: .95; stroke-dasharray: none; }
.nuit__scene:is([data-step="2"], [data-step="3"]) .plan__signaux circle { opacity: 1; animation: signal 1.6s ease-out infinite; }
.nuit__scene:is([data-step="2"], [data-step="3"], [data-step="4"]) .plan__bouclier { fill: rgba(22, 176, 204, 0.35); }
/* 4 et 5 : coupé, compte verrouillé */
.nuit__scene:is([data-step="4"], [data-step="5"]) .plan__intrus { opacity: .22; stroke: currentColor; }
.nuit__scene:is([data-step="4"], [data-step="5"]) .plan__coupure,
.nuit__scene:is([data-step="4"], [data-step="5"]) .plan__verrou rect,
.nuit__scene:is([data-step="4"], [data-step="5"]) .plan__verrou path { opacity: 1; }
/* 6 : le jour, tout est au vert */
.nuit__scene[data-step="6"] .plan__ok path { opacity: 1; }
.nuit__carte {
  position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 3px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sheet-2); color: var(--ink);
  border-left: 3px solid var(--cyan); font-size: .9rem; line-height: 1.45;
  opacity: 0; transform: translateY(14px); transition: opacity .18s ease, transform .18s ease;
}
.nuit__carte b { font-weight: 700; }
.nuit__carte--alerte { border-left-color: var(--intrus, #e8a33d); }
/* La carte sortante s'efface vite, l'entrante attend qu'elle soit partie : jamais deux textes superposés */
.nuit__scene[data-step="3"] [data-carte="3"], .nuit__scene[data-step="4"] [data-carte="4"], .nuit__scene[data-step="5"] [data-carte="5"] { opacity: 1; transform: none; transition: opacity .45s var(--ease) .2s, transform .45s var(--ease) .2s; }
.nuit__etapes { list-style: none; padding: 0; }
.nuit__etape { min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-start; padding-block: 28px; border-top: 1px solid var(--line); }
.nuit__etape:first-child { border-top: 0; min-height: 48vh; justify-content: flex-start; padding-top: 8px; }
.js .nuit__etape { opacity: .32; transition: opacity .5s ease; }
.js .nuit__etape.is-active { opacity: 1; }
.nuit__etape time { font-family: var(--font-mono); font-size: .95rem; color: var(--teal); }
.nuit__etape h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 500; margin: 6px 0 12px; }
.nuit__etape p { color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.nuit__note { margin-top: 24px; color: var(--ink-3); font-size: .88rem; font-style: italic; }
@media (max-width: 900px) {
  .nuit__grid { grid-template-columns: 1fr; gap: 0; }
  .nuit__scene { top: calc(var(--header-h) + 8px); padding: 14px 14px 12px; }
  .nuit__carte { display: none; }
  .nuit__etape { min-height: 55vh; }
  .nuit__etape:first-child { min-height: 40vh; padding-top: 28px; }
}

/* ══ Simulateur de prix (tarifs) ══ */
.simu { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 960px) { .simu { grid-template-columns: 1fr; } }
.simu__reglages { display: grid; gap: 26px; }
.simu__bloc { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.simu__titre { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding: 0; }
.simu__titre .opt { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-3); }
.simu__aide { color: var(--ink-3); font-size: .9rem; }
.simu__postes { display: flex; align-items: center; gap: 18px; }
.simu__postes output { min-width: 4.2ch; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.simu__postes small { color: var(--ink-3); font-size: .9rem; }
.simu input[type="range"] { flex: 1; appearance: none; height: 28px; background: transparent; cursor: pointer; --p: 20%; }
.simu input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan) var(--p), var(--line-2) var(--p)); }
.simu input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.simu input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--cyan); }
.simu input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--navy); border: 3px solid var(--sheet-2); box-shadow: 0 0 0 1px var(--navy); transition: transform .2s var(--ease); }
.simu input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 3px solid var(--sheet-2); box-shadow: 0 0 0 1px var(--navy); }
.simu input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.simu__formules { display: grid; gap: 10px; }
.simu__formule { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--sheet-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.simu__formule input { appearance: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.simu__formule input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .2s var(--ease); }
.simu__formule input:checked { border-color: var(--navy); }
.simu__formule input:checked::after { transform: scale(1); }
.simu__formule:has(input:checked) { border-color: var(--navy); background: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.simu__formule:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.simu__formule span { display: grid; gap: 2px; color: var(--ink-2); font-size: .95rem; }
.simu__formule b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.simu__modules { display: grid; gap: 10px; }
.simu__modules .check { font-size: .98rem; color: var(--ink); }
.simu__modules .check small { display: block; color: var(--ink-3); font-size: .86rem; }
.simu__bloc[disabled] .simu__modules { opacity: .45; }
.simu__devis { position: sticky; top: calc(var(--header-h) + 20px); }
.simu__table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.simu__table th, .simu__table td { padding: 9px 0; text-align: left; border-bottom: 1px dotted var(--line-2); vertical-align: top; }
.simu__table td { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.simu__table thead th { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.simu__table thead th + th { text-align: right; padding-left: 14px; }
.simu__table tbody th { font-weight: 500; }
.simu__table tbody th small { display: block; color: var(--ink-3); font-size: .82rem; font-weight: 400; }
.simu__table tbody tr { animation: apparait .35s ease both; }
.simu__table tfoot th, .simu__table tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 12px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.simu__table tfoot td small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.simu__resume { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.simu__resume div { background: var(--sheet-2); padding: 12px 14px; }
.simu__resume dt { font-size: .82rem; color: var(--ink-3); }
.simu__resume dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.simu__conseil { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--cyan); background: var(--cyan-tint); font-size: .95rem; animation: monte .45s var(--ease) both; }
.simu__conseil button { margin-left: 4px; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.simu__devis-sur-mesure { margin-top: 16px; color: var(--ink-2); }
.simu__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.simu__mention { margin-top: 14px; color: var(--ink-3); font-size: .82rem; }
.simu__tampon { position: absolute; right: 24px; top: 64px; }
@media (max-width: 960px) { .simu__devis { position: static; } }
@media (max-width: 520px) { .simu__resume { grid-template-columns: 1fr; } .simu__tampon { display: none; } }

/* ══ Test de domaine : repère du 93 ══ */
.dc-repere { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: center; margin-top: 16px; border-top: 3px solid var(--cyan); }
@media (max-width: 860px) { .dc-repere { grid-template-columns: 1fr; } }
.dc-repere__titre { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin-top: 8px; }
.dc-repere__texte { color: var(--ink-2); margin-top: 10px; }
.dc-repere__source { color: var(--ink-3); font-size: .82rem; margin-top: 10px; }
.dc-repere__grille { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 5px; }
.dc-repere__case { aspect-ratio: 1; border-radius: 2px; border: 1.5px solid var(--warn); background: transparent; animation: apparait .3s ease both; animation-delay: calc(var(--i) * 25ms + .2s); }
.dc-repere__case--observation { border-color: #c79a3e; background: rgba(199, 154, 62, 0.18); }
.dc-repere__case--protege { border-color: var(--ok); background: var(--ok); }
.dc-repere__case.is-vous { outline: 2px solid var(--navy); outline-offset: 2px; }
.dc-repere__legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding: 0; list-style: none; font-size: .85rem; color: var(--ink-2); }
.dc-repere__legende li { display: inline-flex; align-items: center; gap: 6px; }
.dc-repere__legende i { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--warn); }
.dc-repere__legende i.observation { border-color: #c79a3e; background: rgba(199, 154, 62, 0.18); }
.dc-repere__legende i.protege { border-color: var(--ok); background: var(--ok); }
.dc-repere__legende i.vous { border-color: var(--line-2); outline: 2px solid var(--navy); outline-offset: 1px; }
.dc-repere__vous { font-weight: 700; color: var(--navy); }
.dc-print-head, .dc-print-foot { display: none; }

/* ══ Page 404 : une main courante ══ */
.not-found__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; text-align: left; }
@media (max-width: 900px) { .not-found__grid { grid-template-columns: 1fr; } }
.registre__sub code { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); overflow-wrap: anywhere; }

/* ══ Impression : devis du simulateur et rapport du test de domaine ══ */
@media print {
  @page { margin: 14mm; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  html.impression-devis main > :not(#simulateur), html.impression-devis .simu__reglages, html.impression-devis #simulateur .section__head,
  html.impression-devis .simu__actions { display: none !important; }
  html.impression-devis #simulateur { padding: 0; background: none; border: 0; }
  html.impression-devis .simu { display: block; }
  html.impression-devis .simu__devis { position: static; box-shadow: none; border: 1px solid #999; }
  html.impression-devis .registre::before, html.impression-devis .simu__conseil button { display: none; }
  body.page-outil main > :not([data-dc-results]), body.page-outil .dc-summary__cta, body.page-outil .dc-loading { display: none !important; }
  body.page-outil [data-dc-results] { padding: 0; }
  body.page-outil .dc-print-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #162f4e; font-family: "Sora", sans-serif; font-weight: 600; letter-spacing: .1em; color: #162f4e; }
  body.page-outil .dc-print-head .logo__mark { width: 44px; }
  body.page-outil .dc-print-head span { margin-left: auto; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; font-size: 10pt; color: #555; }
  body.page-outil .dc-print-foot { display: block; margin-top: 18px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 9pt; color: #555; }
  body.page-outil .card, body.page-outil .dc-check { break-inside: avoid; }
  body.page-outil .dc-summary, body.page-outil .dc-section, body.page-outil .dc-repere { border: 1px solid #ccc; box-shadow: none; }
  body.page-outil .dc-grade { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .dc-repere__case { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* La feuille de dessous des documents : absente du devis (collant), isolée sur la 404 */
.simu__devis::before { content: none; }
.not-found__grid { isolation: isolate; }
/* 404 : trois lignes seulement, le tampon tombe plus tôt */
.not-found .tampon { animation-delay: 2.3s; }

/* ══ Le mot du fondateur (accueil) : une lettre signée, la signature s'écrit à l'arrivée ══ */
.lettre { position: relative; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 34px); background: var(--sheet-2); border: 1px solid var(--line); border-top: 3px solid var(--ambre); border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--font-display); font-size: 1.12rem; line-height: 1.65; color: var(--ink); }
.lettre p + p { margin-top: .9em; }
.lettre__pied { display: grid; gap: 4px; margin-top: 22px; padding-top: 16px; border-top: 1px dotted var(--line-2); }
.lettre__signature { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.95rem; line-height: 1.15; color: var(--navy); width: fit-content; padding-right: 6px; }
.lettre__qualite { font-family: var(--font-body); font-size: .84rem; line-height: 1.5; color: var(--ink-3); }
.js .lettre__signature { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease) .6s; }
.js .lettre.is-visible .lettre__signature { clip-path: inset(0 -10px 0 0); }
@media (prefers-reduced-motion: reduce) { .js .lettre__signature { clip-path: none !important; } }

/* ══ Section fondateur (accueil) : la lettre et les titres alignés en haut et en bas ══ */
.fondateur { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 2.5vw, 28px); align-items: stretch; }
.fondateur__titres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(14px, 2vw, 18px); }
.fondateur__titres .card { display: flex; flex-direction: column; }
.cert--titre { grid-column: 1 / -1; border-top: 3px solid var(--navy); }
.cert--titre .cert__issuer { color: var(--ambre-texte); }
.cert--titre h3 { font-size: 1.5rem; }
@media (max-width: 960px) { .fondateur { grid-template-columns: 1fr; } .fondateur__titres { grid-auto-rows: auto; } }
@media (max-width: 520px) { .fondateur__titres { grid-template-columns: 1fr; } }

/* Accueil : la signature descend en bas de la feuille, face au bas des cartes ; À propos : lettre alignée à gauche, largeur de lecture */
.fondateur .lettre { display: flex; flex-direction: column; }
.fondateur .lettre__pied { margin-top: auto; }
.fondateur .lettre p:last-of-type { margin-bottom: 22px; }
.apropos-mot .lettre { max-width: 860px; }
.fondateur .lettre { font-size: 1.2rem; line-height: 1.7; }
.fondateur__titres .card { padding: 22px 26px; }
@media (max-width: 960px) { .fondateur .lettre { font-size: 1.12rem; line-height: 1.65; } }
