/* ==========================================================================
   Bornes+ — styles.css
   « Le tableau de bord d'atelier. » Instrumentation industrielle honnête.
   Tokens issus de design-system.md — hex exacts, ne pas altérer.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Marque */
  --blue-borne:   #1D5FD8;  /* Primaire — le seul bleu qui clique */
  --blue-presse:  #1848A6;  /* Hover/active du primaire */
  --ardoise-nuit: #141B2B;  /* Fonds panneau, footer, héros sombre */
  --ambre-signal: #F5A524;  /* DEL témoin — une fois par écran max */

  /* Neutres — échelle ardoise */
  --ink-900:    #0F1420;
  --ink-700:    #2B3547;
  --ink-500:    #556174;
  --ink-400:    #8A94A6;
  --line-200:   #DDE3EC;
  --surface-100:#EFF2F7;
  --surface-50: #F7F9FC;
  --paper:      #FFFFFF;

  /* Sémantiques — voyants */
  --ok:       #12996B;
  --attention:#F5A524;
  --incident: #D8434B;
  --info:     #1D5FD8;

  /* Typo */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Rayons */
  --r-sm: 4px;
  --r:    8px;

  /* Ombres — parcimonie, on préfère la ligne */
  --shadow-plate: 0 1px 2px rgba(20,27,43,.06), 0 2px 8px rgba(20,27,43,.04);
  --shadow-hover: 0 4px 16px rgba(20,27,43,.08);

  /* Espacement base 8 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 180ms;

  --container: 1200px;
}

/* --- 2. Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-500);
  background: var(--surface-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--blue-borne); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink-700); line-height: 1.2; }

:focus-visible {
  outline: 2px solid var(--blue-borne);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-borne);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- 3. Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* Gouttières confortables + respect des encoches (notch iPhone) */
  padding-left: calc(24px + env(safe-area-inset-left));
  padding-right: calc(24px + env(safe-area-inset-right));
}
@media (min-width: 900px) {
  .container {
    padding-left: calc(48px + env(safe-area-inset-left));
    padding-right: calc(48px + env(safe-area-inset-right));
  }
}

/* Verrou de défilement du body quand le menu mobile est ouvert */
body.no-scroll { overflow: hidden; }

.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 96px; } }

.section--tint { background: var(--surface-50); }
.section--paper { background: var(--paper); }

/* Trame papier millimétré très discrète */
.grid-paper {
  background-image:
    linear-gradient(var(--line-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-200) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  opacity: 1;
}
.grid-paper--soft { position: relative; }
.grid-paper--soft::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-200) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.grid-paper--soft > * { position: relative; z-index: 1; }

.section-head { max-width: 60ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head > * + * { margin-top: var(--sp-4); }
.section-head + * { margin-top: var(--sp-8); }

/* --- 4. Typographie ----------------------------------------------------- */
.display {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: clamp(1.6rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-900);
}
.h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-700);
}
.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-500);
}
.small { font-size: .875rem; line-height: 1.5; }
.muted { color: var(--ink-400); }

/* Kicker / label Mono */
.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.kicker--ambre { color: #A66B00; }
.kicker .dot { --dot: var(--ambre-signal); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Prix */
.price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
  line-height: 1;
}
.price small {
  font-size: 1rem;
  color: var(--ink-400);
  font-weight: 400;
}

/* --- 5. Voyants / badges ------------------------------------------------ */
.dot {
  --dot: var(--ok);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
  flex: none;
}
.dot--ok      { --dot: var(--ok); }
.dot--ambre   { --dot: var(--ambre-signal); }
.dot--incident{ --dot: var(--incident); }
.dot--blue    { --dot: var(--blue-borne); }

/* Voyant qui respire — seul mouvement continu autorisé */
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-200);
  background: var(--paper);
  color: var(--ink-700);
  white-space: nowrap;
}
.badge--ambre {
  border-color: rgba(245,165,36,.4);
  background: rgba(245,165,36,.10);
  color: #8A5600;
}
.badge--ok {
  border-color: rgba(18,153,107,.35);
  background: rgba(18,153,107,.08);
  color: #0B6B4B;
}
.badge--dark {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: #E9EDF4;
}

/* --- 6. Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--blue-borne); color: #fff; }
.btn--primary:hover { background: var(--blue-presse); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  border-color: var(--line-200);
  color: var(--ink-700);
}
.btn--secondary:hover { background: var(--surface-100); transform: translateY(-1px); }

/* Sur fond ardoise */
.btn--secondary-dark {
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: #EEF2F8;
}
.btn--secondary-dark:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--blue-borne);
  padding-inline: 4px;
}
.btn--ghost:hover { text-decoration: underline; }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* --- 7. Cartes ---------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  box-shadow: var(--shadow-plate);
  padding: var(--sp-6);
}
.card--feature { position: relative; }
.card--feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue-borne);
  border-radius: var(--r) var(--r) 0 0;
}
.card__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
}
.card__icon {
  width: 40px; height: 40px;
  color: var(--blue-borne);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-500); }

/* Grilles de cartes */
.grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 720px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Filet séparateur */
.rule { border: 0; border-top: 1px solid var(--line-200); margin-block: var(--sp-6); }

/* --- 8. Header / Nav ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line-200);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-plate); }

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
@media (min-width: 960px) { .nav { height: 72px; } }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
}
.brand__word {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  line-height: 1;
}
.brand .plus { color: var(--blue-borne); }

.nav__links {
  display: none;
  list-style: none;
  padding: 0;
  gap: var(--sp-6);
  margin-inline: auto;
}
.nav__links a {
  color: var(--ink-500);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink-900); }
.nav__links a[aria-current="page"] { font-weight: 600; }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
}
/* Séparation visuelle nette entre nav et CTA (desktop) */
@media (min-width: 960px) {
  .nav__right {
    padding-left: var(--sp-6);
    border-left: 1px solid var(--line-200);
    margin-left: 0;
  }
}
.nav__status { display: none; }

/* CTA du header : dimensionné pour la hauteur de barre (72px), ni écrasé ni géant */
.btn--nav {
  padding: 10px 18px;
  font-size: .9375rem;
}
/* Sous 960px la nav bascule en burger : le CTA pill du header disparaît
   (il reste accessible dans le menu mobile via .btn--block) pour éviter
   l'écrasement / le débordement horizontal marque + CTA + burger. */
@media (max-width: 959.98px) {
  .btn--nav { display: none; }
  .nav__right { gap: var(--sp-2); }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--ink-700);
  position: relative;
  z-index: 60; /* reste cliquable au-dessus du panneau */
}
.nav__toggle svg { width: 22px; height: 22px; }
/* Bascule burger <-> croix selon l'état ouvert */
.nav__toggle-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: block; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__status { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* --- Menu mobile : panneau off-canvas plein écran --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
  overflow: hidden; /* le panneau hors-écran ne crée jamais de scroll horizontal */
  background: rgba(15, 20, 32, .45); /* voile pour le clic hors-menu */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__panel {
  width: min(88vw, 380px);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line-200);
  box-shadow: -8px 0 32px rgba(20, 27, 43, .18);
  display: flex;
  flex-direction: column;
  padding: 0
           calc(24px + env(safe-area-inset-right))
           calc(var(--sp-8) + env(safe-area-inset-bottom))
           24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-200);
}
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px; /* aligne visuellement la croix sur la gouttière */
  background: transparent;
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--ink-700);
}
.mobile-menu__close svg { width: 22px; height: 22px; }

.mobile-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-1); }
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-3);
  color: var(--ink-900);
  font-weight: 500;
  font-size: 1.0625rem;
  border-radius: var(--r);
}
.mobile-menu a:hover { background: var(--surface-100); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--blue-borne); font-weight: 600; }
/* CTA principal : bien visible, poussé en bas du panneau, pleine largeur */
.mobile-menu .btn--block {
  margin-top: auto;
  min-height: 52px;
  font-size: 1.0625rem;
}
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* --- 9. Héros ----------------------------------------------------------- */
.hero {
  background: var(--surface-50);
  border-bottom: 1px solid var(--line-200);
}
.hero__grid {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
  padding-block: 56px;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    padding-block: 88px;
  }
}
.hero__copy > * + * { margin-top: var(--sp-6); }
.hero__copy .display { margin-top: var(--sp-4); }
.hero__note { color: var(--ink-400); }

/* Panneau tableau de bord (composant signature) */
.panel {
  background: var(--paper);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  box-shadow: var(--shadow-plate);
  overflow: hidden;
}
.panel--feature { position: relative; }
.panel--feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--blue-borne);
}
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line-200);
  background: var(--surface-50);
}
.panel__title {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}
.panel__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-900);
}
.panel__body { padding: var(--sp-2) var(--sp-6) var(--sp-6); }

.post-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-200);
}
.post-row:last-child { border-bottom: 0; }
.post-row__name { color: var(--ink-700); font-weight: 500; }
.post-row__status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ink-500);
}
.post-row__status.is-ok { color: var(--ok); }
.post-row__status.is-attention { color: #A66B00; }

.panel__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-200);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.panel__foot .label { color: var(--ink-500); }
.panel__foot .val { color: var(--ink-900); font-weight: 500; }

/* --- 10. Constat / promesse -------------------------------------------- */
.transition-line {
  text-align: center;
  max-width: 52ch;
  margin: var(--sp-8) auto 0;
  color: var(--ink-700);
  font-size: 1.125rem;
}

.step {
  padding: var(--sp-6);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-plate);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--blue-borne);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: var(--sp-3);
}
.step h3 { margin-bottom: var(--sp-2); }

/* --- 11. Bloc prix ------------------------------------------------------ */
.pricing {
  max-width: 560px;
  margin-inline: auto;
}
.pricing__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.pricing .price-line { display: flex; align-items: baseline; gap: var(--sp-2); }
.check-list { list-style: none; padding: 0; margin: var(--sp-6) 0; display: grid; gap: var(--sp-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--ink-700);
  line-height: 1.5;
}
.check-list li .dot { margin-top: 7px; }

/* --- 12. Stats (data-viz plate) ---------------------------------------- */
.stat {
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  padding: var(--sp-6);
  text-align: left;
}
.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-top: var(--sp-3);
  display: block;
}

/* Jauge plate */
.gauge {
  margin-top: var(--sp-8);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  padding: var(--sp-6);
}
.gauge__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ink-500);
  margin-bottom: var(--sp-3);
}
.gauge__head .val { color: var(--ink-900); font-weight: 500; }
.gauge__track {
  height: 12px;
  border-radius: 3px;
  background: var(--surface-100);
  border: 1px solid var(--line-200);
  overflow: hidden;
}
.gauge__fill { height: 100%; width: 99.9%; background: var(--ok); }

/* --- 13. Témoignages ---------------------------------------------------- */
.quote {
  border: 1px solid var(--line-200);
  border-left: 3px solid var(--blue-borne);
  border-radius: var(--r);
  background: var(--paper);
  padding: var(--sp-6);
}
.quote p { color: var(--ink-700); font-size: 1.125rem; line-height: 1.55; }
.quote p { margin-bottom: 0; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-200);
}
.quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--ink-500);
}
.quote cite b { color: var(--ink-700); font-weight: 500; }
/* Avatar monogramme (CSS, aucune image) */
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--surface-100);
  border: 1px solid var(--line-200);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue-borne);
}
.section-note {
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  text-align: center;
}

/* --- 13b. Bande de réassurance (sous héros) ---------------------------- */
.reassure-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line-200);
}
.reassure-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-8);
}
@media (min-width: 640px) { .reassure-band__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reassure-band__grid { grid-template-columns: repeat(4, 1fr); } }
.trust {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.trust + .trust { padding-left: var(--sp-4); }
@media (min-width: 960px) {
  .trust + .trust { border-left: 1px solid var(--line-200); }
}
.trust__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1;
}
.trust__label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-500);
  line-height: 1.35;
  display: block;
  margin-top: 3px;
}
.reassure-band__note {
  padding-bottom: var(--sp-6);
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
}

/* --- 14. Bandes ardoise (héros sombre / CTA) ---------------------------- */
.slab {
  background: var(--ardoise-nuit);
  color: #C9D2E0;
  position: relative;
  overflow: hidden;
}
.slab::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.slab > .container { position: relative; }
.slab h1, .slab h2 { color: #F4F7FB; }
.slab .lead, .slab p { color: #A6B1C4; }
.slab .kicker { color: var(--ambre-signal); }
.slab-cta { text-align: center; max-width: 60ch; margin-inline: auto; }
.slab-cta > * + * { margin-top: var(--sp-6); }

/* --- 15. Tableau inclus / jamais --------------------------------------- */
.included-grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 820px) { .included-grid { grid-template-columns: 1.4fr 1fr; } }
.included-col {
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  padding: var(--sp-6);
  box-shadow: var(--shadow-plate);
}
.included-col--feature { position: relative; }
.included-col--feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--blue-borne);
}
.included-col h3 { margin-bottom: var(--sp-4); }
.included-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.included-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--ink-700); }
.included-list li .dot { margin-top: 7px; }
.included-list li b { color: var(--ink-900); font-weight: 600; }
.included-list li span { color: var(--ink-500); }

/* --- 16. Calculateur ---------------------------------------------------- */
.calc {
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-plate);
  overflow: hidden;
}
.calc__grid {
  display: grid;
  gap: 0;
}
@media (min-width: 760px) { .calc__grid { grid-template-columns: 1fr 1.1fr; } }
.calc__input {
  padding: var(--sp-8);
  border-bottom: 1px solid var(--line-200);
}
@media (min-width: 760px) {
  .calc__input { border-bottom: 0; border-right: 1px solid var(--line-200); }
}
.calc__output {
  padding: var(--sp-8);
  background: var(--surface-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  overflow: hidden;
  width: fit-content;
  background: var(--surface-100);
  margin-top: var(--sp-3);
}
.stepper button {
  width: 48px;
  border: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.stepper button:hover { background: var(--surface-100); }
.stepper input {
  width: 88px;
  border: 0;
  border-inline: 1px solid var(--line-200);
  background: var(--paper);
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  color: var(--ink-900);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__result {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.15;
}
.calc__result .em { color: var(--blue-borne); }
.calc__sub {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
  margin-top: var(--sp-3);
}
.calc__compare {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-200);
  color: var(--ink-500);
  font-size: .9375rem;
}

/* --- 17. FAQ accordéon -------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line-200); }
.faq__item:first-child { border-top: 1px solid var(--line-200); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.3;
}
.faq__q:hover { color: var(--ink-900); }
.faq__icon {
  flex: none;
  width: 24px; height: 24px;
  color: var(--blue-borne);
  transition: transform var(--dur) var(--ease);
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 0 0 var(--sp-6);
  color: var(--ink-500);
  max-width: 65ch;
}
.faq__a.is-open { display: block; }

/* --- 18. Profils -------------------------------------------------------- */
.profile { text-align: left; }

/* --- 19. Formulaire ----------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }

.form-panel {
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-plate);
  padding: var(--sp-8);
}
.field { margin-bottom: var(--sp-4); }
.field > label {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: var(--sp-2);
}
.field .req { color: var(--incident); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--surface-100);
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  padding: 12px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-borne);
  box-shadow: 0 0 0 3px rgba(29,95,216,.25);
  background: var(--paper);
}
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-block: var(--sp-6) var(--sp-4);
  font-size: .9375rem;
  color: var(--ink-500);
}
.checkbox input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-borne);
  flex: none;
}

.form-note { color: var(--ink-400); margin-top: var(--sp-3); }

.form-success {
  display: none;
  border: 1px solid rgba(18,153,107,.4);
  background: rgba(18,153,107,.07);
  border-radius: var(--r);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
  color: #0B6B4B;
  font-weight: 500;
  align-items: center;
  gap: var(--sp-3);
}
.form-success.is-visible { display: flex; }

/* Panneau réassurance ardoise */
.reassure {
  background: var(--ardoise-nuit);
  border-radius: var(--r);
  padding: var(--sp-8);
  color: #C9D2E0;
  position: relative;
  overflow: hidden;
}
.reassure::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.reassure > * { position: relative; }
.reassure h3 { color: #F4F7FB; margin-bottom: var(--sp-6); }
.reassure-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.reassure-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.reassure-list .dot { margin-top: 7px; }
.reassure-list b { color: #F4F7FB; font-weight: 600; }
.reassure-list span { color: #A6B1C4; }
.reassure-micro {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A6B1C4;
}
.reassure-micro span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.reassure__price {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #F4F7FB;
  font-size: 1.0625rem;
}

/* --- 20. Bloc téléphone ------------------------------------------------- */
.phone-block {
  border: 1px solid var(--line-200);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-plate);
  padding: var(--sp-8);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.phone-block .tel {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 500;
  color: var(--ink-900);
  margin-block: var(--sp-4) var(--sp-2);
  display: inline-block;
}
.phone-block .tel:hover { color: var(--blue-borne); text-decoration: none; }

/* Micro-réassurance en ligne */
.micro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  justify-content: center;
  align-items: center;
  color: var(--ink-500);
}
.micro-strip span { display: inline-flex; align-items: center; gap: var(--sp-2); }

/* --- 21. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ardoise-nuit);
  color: #A6B1C4;
  padding-block: var(--sp-16) 0;
}
.footer-grid {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer-brand .brand__word { color: #F4F7FB; }
.footer-brand p { color: #8A94A6; margin-top: var(--sp-3); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8A94A6;
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer-col a { color: #C9D2E0; font-size: .9375rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--sp-12);
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: 0.06em;
  color: #8A94A6;
}
.footer-bottom .status { display: inline-flex; align-items: center; gap: var(--sp-2); text-transform: uppercase; }

/* --- 21b. Pages légales ------------------------------------------------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal > * + * { margin-top: var(--sp-6); }
.legal h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-200);
}
.legal h2:first-of-type { margin-top: var(--sp-8); }
.legal h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-top: var(--sp-6);
}
.legal p, .legal li { color: var(--ink-500); }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--sp-2); }
.legal ul li { padding-left: var(--sp-1); }
.legal dl { display: grid; gap: var(--sp-2); }
.legal dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-200);
}
@media (min-width: 640px) { .legal dl div { grid-template-columns: 240px 1fr; gap: var(--sp-4); align-items: baseline; } }
.legal dt {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}
.legal dd { color: var(--ink-900); margin: 0; }
.legal__note {
  border: 1px solid rgba(245,165,36,.4);
  background: rgba(245,165,36,.08);
  border-radius: var(--r);
  padding: var(--sp-4) var(--sp-6);
  color: #8A5600;
  font-size: .9375rem;
}
.legal__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-200);
}

/* --- 22. Apparition au scroll ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- 23. Utilitaires ---------------------------------------------------- */
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- 23b. Responsive / mobile ------------------------------------------ */
/* Garde-fou global anti-débordement horizontal + coupe des mots longs
   (emails, « l'informatique », URLs) sans casser le rendu desktop. */
html, body { overflow-x: hidden; }
.container { overflow-x: clip; }
h1, h2, h3, p, li, a, cite, .display, .price, .calc__result {
  overflow-wrap: break-word;
}
/* Médias et SVG toujours fluides */
svg, img, video { max-width: 100%; }

/* ---- Tablette et en dessous (<= 768px) ---- */
@media (max-width: 768px) {
  /* Sections un peu plus resserrées, respiration confortable */
  .section { padding-block: 56px; }

  /* Hero : on descend le plancher typo pour éviter les débordements
     sur les longs mots type « l'informatique » à 360/390px. */
  .display { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .hero__grid { gap: var(--sp-8); padding-block: 44px; }

  /* Titres de sections : plancher réduit */
  .h1 { font-size: clamp(1.7rem, 6.5vw, 2.1rem); }
  .h2 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }
  .h3 { font-size: 1.25rem; }
  .lead { font-size: 1.0625rem; }

  /* Illustrations / textures décoratives lourdes : masquées sur mobile.
     La trame « papier millimétré » et les grilles des bandes ardoise
     n'apportent rien en petit écran et chargent inutilement le rendu. */
  .grid-paper--soft::before,
  .slab::before,
  .reassure::before { display: none; }

  /* Bloc prix : head empilé proprement (prix au-dessus du badge) */
  .pricing__head { align-items: flex-start; }

  /* Bande de réassurance : puces empilées, pas d'indent parasite ni de
     filet vertical hérité du desktop quand tout passe en colonne. */
  .trust + .trust { padding-left: 0; border-left: 0; }

  /* Hero : la maquette « tableau de bord » passe sous le discours et le CTA
     (ordre DOM déjà bon), on la borne pour qu'elle respire sans dominer. */
  .panel { max-width: 460px; margin-inline: auto; width: 100%; }

  /* FAQ : question un peu plus compacte, cible tactile confortable */
  .faq__q { font-size: 1.125rem; padding-block: var(--sp-4); }

  /* Calculateur : padding réduit pour ne pas déborder à 360px */
  .calc__input, .calc__output { padding: var(--sp-6); }
  .stepper input { width: 72px; }
  .stepper button { width: 44px; }

  /* Footer : alignement à gauche, pas de justification étirée */
  .footer-bottom { justify-content: flex-start; gap: var(--sp-2); }
}

/* ---- Téléphones (<= 480px) ---- */
@media (max-width: 480px) {
  /* Padding latéral resserré mais confortable au pouce (encoches respectées) */
  .container {
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
  }

  /* Boutons pleine largeur dans les rangées : empilés, cibles >= 48px */
  .btn-row { gap: var(--sp-3); }
  .btn-row .btn { width: 100%; }
  .btn-row .btn--ghost { width: auto; }

  /* Le panneau tableau de bord (maquette signature) reste, mais on allège
     ses paddings pour éviter l'étroitesse du contenu. */
  .panel__head { padding: var(--sp-3) var(--sp-4); }
  .panel__body { padding: var(--sp-2) var(--sp-4) var(--sp-4); }

  /* Prix : légèrement réduit pour tenir avec le badge */
  .price { font-size: 2.25rem; }

  /* Cartes / étapes : padding un cran plus serré */
  .card, .step, .quote, .stat, .gauge,
  .form-panel, .reassure, .phone-block { padding: var(--sp-4); }

  /* Formulaire : champs confortables au pouce, min 44px de hauteur */
  .field input, .field textarea { padding: 14px; font-size: 1rem; }
  .field textarea { min-height: 120px; }

  /* Micro-réassurances : pas de justification centrée qui casse */
  .micro-strip { justify-content: flex-start; }

  /* Légal : dt/dd déjà empilés < 640px, on garde lisible */
  .legal h2 { font-size: 1.25rem; }
}

/* ---- Très petits écrans (<= 360px) ---- */
@media (max-width: 360px) {
  .container {
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
  .display { font-size: 1.75rem; }
  /* Le CTA pill nav a disparu ; on garde marque + burger sans écrasement */
  .brand__word { font-size: 1.125rem; }
  /* Badge « Tout compris » : autorise le retour à la ligne si besoin */
  .badge { white-space: normal; }
}

/* --- 24. Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .dot--pulse { opacity: 1; }
}
