/* ==========================================================================
   NACELIA — Feuille de style du site vitrine
   Grammaire : reproduction de brand/maquette-reference.png
   1. Tokens (copie de brand/tokens.css ; police auto-hébergée, aucun @import)
   2. Base
   3. Composants
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Marque (identiques en clair et sombre sauf mention) */
  --blue:        #3b76f4;   /* primaire Iziscar — liens, accents, marque "ia" */
  --blue-deep:   #254fb0;   /* primaire foncé Iziscar — survol, boutons */
  --navy:        #0c1b33;   /* bleu nuit — blocs pleins, boutons principaux */
  --sun:         #ffe262;   /* jaune Iziscar — usage RARISSIME (pastille "gratuit") */

  /* Neutres teintés bleu */
  --bg:          #f6f9fc;   /* fond de page */
  --bg-alt:      #f1f6fa;   /* fond de section alterné (bg Iziscar) */
  --surface:     #ffffff;   /* cartes, champs */
  --ink:         #0f1d33;   /* texte principal */
  --ink-2:       #4b5675;   /* texte secondaire */
  --ink-3:       #8e97ba;   /* texte tertiaire, légendes (Iziscar) */
  --line:        #dbe5f5;   /* bordures Iziscar */
  --line-strong: #c3d2ec;
  --tint:        #e8f0fe;   /* fond bleu très clair (badges, survol) */

  /* Surfaces "nuit" (blocs pleins) */
  --night:       #0c1b33;
  --night-ink:   #f1f6fa;
  --night-ink-2: #a9b6d3;

  /* Sémantique */
  --ok:          #1f8a5b;
  --warn:        #b7791f;
  --risk:        #c53030;

  /* Typo */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* UNE seule police (pas de chasse fixe, refusée par le client). Chiffres = Plus Jakarta Sans 700-800 en bleu, tabular-nums. */

  /* Échelle typo (ratio ~1.25) */
  --fs-xs: .78rem;  --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.4rem;  --fs-2xl: 1.85rem; --fs-3xl: 2.4rem; --fs-4xl: clamp(2.2rem, 4.6vw, 3.5rem);

  /* Espacements, rayons, ombres */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;
  --radius-sm: 4px;   /* boutons, champs : angles quasi droits, rendu "cabinet" */
  --radius:    6px;
  --shadow:    0 1px 2px rgba(12,27,51,.06), 0 8px 24px -12px rgba(12,27,51,.18);
  --maxw:      1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424; --bg-alt: #0e1a2e; --surface: #12203a;
    --ink: #eef3fb; --ink-2: #b4c0da; --ink-3: #7f8bab;
    --line: #22324f; --line-strong: #2f4266; --tint: #16284a;
    --blue: #6b9bff; --blue-deep: #8fb3ff; --navy: #e8effc;
    --night: #13284b; --night-ink: #eef3fb; --night-ink-2: #a9b6d3;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1424; --bg-alt: #0e1a2e; --surface: #12203a;
  --ink: #eef3fb; --ink-2: #b4c0da; --ink-3: #7f8bab;
  --line: #22324f; --line-strong: #2f4266; --tint: #16284a;
  --blue: #6b9bff; --blue-deep: #8fb3ff; --navy: #e8effc;
  --night: #13284b; --night-ink: #eef3fb; --night-ink-2: #a9b6d3;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
/* NB dark : --navy devient clair → un bouton "navy" doit utiliser color: var(--bg) pour son texte. */

/* Variables de mise en page propres au site */
:root {
  --gutter: clamp(16px, 5.5vw, 56px);
  --header-h: 66px;
  --sec-y: clamp(48px, 5.2vw, 80px);
  --blue-soft: color-mix(in srgb, var(--blue) 38%, transparent);
  --disc: var(--line);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-4xl); line-height: 1.05; }
h2, .h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.15rem); line-height: 1.12; }
h3, .h3 { font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }

a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--tint); color: var(--ink); }

.num { font-variant-numeric: tabular-nums; font-weight: 700; }

.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: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus { top: var(--sp-3); color: var(--bg); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 3. COMPOSANTS ------------------------------------------------------------ */

/* Conteneur */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* Sections */
.section { padding-block: var(--sec-y); }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }

.night { background: var(--night); color: var(--night-ink); }
.night h2, .night h3, .night strong { color: var(--night-ink); }
.night p { color: var(--night-ink-2); }

/* Sur-titre : capitales espacées, petite taille, gris */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.night .eyebrow { color: var(--night-ink-2); }

.lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 50ch;
}

.muted { color: var(--ink-2); }

/* En-tête de section : titre à gauche, chapeau à droite sur la même ligne */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-8);
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.section-head p { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-2); max-width: 44ch; padding-bottom: 4px; }
.section-head--stack { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.section-head--stack p { font-size: var(--fs-md); max-width: 60ch; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
}

/* Boutons rectangulaires bleu nuit avec flèche */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--bg);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: 2px;
  font: 600 .84rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { --btn-bg: var(--blue-deep); color: var(--btn-fg); }
.btn .icon { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--lg { min-height: 48px; padding: 13px 22px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-bg: transparent; --btn-border: var(--ink); color: var(--ink); }
.btn--light { --btn-bg: var(--night-ink); --btn-fg: var(--night); }
.btn--light:hover { --btn-bg: transparent; --btn-fg: var(--night-ink); --btn-border: var(--night-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-u {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.link-u:hover { color: var(--blue-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { color: var(--ink); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.night .link-arrow { color: var(--night-ink); }
.night .link-arrow:hover { color: var(--night-ink-2); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) 26px;
}

/* ---------- En-tête du site ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.is-scrolled .site-header { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__word { display: inline-flex; align-items: flex-end; }
.brand__ia { color: var(--blue); }
.brand__word::after {
  content: "";
  width: 20px;
  height: 3px;
  margin: 0 0 3px 6px;
  background: var(--blue);
}
.logo-mark { width: 28px; height: 28px; }
.logo-mark .lm-env  { fill: var(--blue); }
.logo-mark .lm-rope { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linecap: round; }
.logo-mark .lm-bas  { fill: var(--navy); }

.site-nav { margin-left: clamp(16px, 4vw, 52px); }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  list-style: none;
  padding: 0;
}
.site-nav ul a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.site-nav__cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--menu { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

@media (max-width: 1120px) {
  /* Sans JS : la navigation reste visible, en ligne sous le logo */
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: var(--sp-3); }
  html:not(.js) .site-nav { order: 3; width: 100%; margin-left: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-7);
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js.nav-open .site-nav { display: block; }
  .js.nav-open body { overflow: hidden; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav ul a {
    display: block;
    padding: var(--sp-4) 0;
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav ul a[aria-current="page"] { color: var(--blue-deep); border-bottom-color: var(--line); }
  .js .site-nav__cta { display: flex; margin-top: var(--sp-6); width: 100%; min-height: 52px; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
}

/* ---------- Aplats géométriques (grammaire commune) ---------- */
.ap { position: absolute; display: block; pointer-events: none; }
.ap--outline { border: 1.5px solid var(--blue); }
.ap--blue { background: var(--blue); }
.ap--soft { background: var(--blue-soft); }
.ap--navy { background: var(--night); }
.ap--disc { border-radius: 50%; background: var(--disc); }

/* Carte blanche en bas à droite (« L'IA, à votre service. » dans la maquette) */
.card-note {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 49%;
  min-height: 28%;
  padding: clamp(20px, 3cqw, 34px) clamp(20px, 3.2cqw, 34px);
  background: var(--surface);
}
.card-note p {
  font-size: clamp(1.05rem, .8rem + .9vw, 1.3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.card-note::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 18px;
  background: var(--blue);
}
.card-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--blue-deep);
}
.card-note span { display: block; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }

/* ---------- Hero accueil (photo pleine hauteur au bord droit) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  min-height: clamp(460px, 44vw, 640px);
  background: var(--bg-alt);
  container-type: inline-size;
}
.hero__text {
  align-self: center;
  padding: clamp(24px, 2.6vw, 40px) clamp(32px, 6cqw, 96px) clamp(40px, 4vw, 56px) max(var(--gutter), calc((100cqw - var(--maxw)) / 2));
}
.hero h1 { margin-bottom: 14px; max-width: 13.5ch; }
.hero__kicker {
  margin-bottom: 18px;
  font-size: clamp(1.1rem, .9rem + .7vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--blue-deep);
  max-width: 30ch;
}
.hero .lead { max-width: 46ch; }
.hero .actions { margin-top: 28px; }

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 52px);
  padding: 0;
  list-style: none;
}
.assurance { display: flex; align-items: center; gap: 12px; font-size: .78rem; line-height: 1.4; color: var(--ink); }
.assurance .icon { width: 28px; height: 28px; color: var(--ink); }
.assurance b { font-weight: 700; }

.hero__visual { position: relative; isolation: isolate; min-height: 100%; }
.hero__photo {
  position: absolute;
  z-index: 1;
  inset: 0 0 10% 0;
  width: 100%;
  height: 90%;
  object-fit: cover;
}
.hero__visual .ap--disc    { z-index: 0; left: -64px; top: 50%; width: 150px; aspect-ratio: 1; }
.hero__visual .ap--blue    { z-index: 2; left: -70px; top: 17%; width: clamp(64px, 21%, 120px); aspect-ratio: 1; }
.hero__visual .ap--outline { z-index: 3; left: -22px; top: 6%; width: clamp(34px, 9.5%, 54px); aspect-ratio: 1; }
.hero__visual .ap--navy.band { z-index: 2; right: 0; top: 40%; width: 12%; height: 32%; }
.hero__visual .ap--navy.foot { z-index: 2; left: 25%; bottom: 0; width: 26%; height: 21%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { padding: var(--sp-6) var(--gutter) var(--sp-7); }
  .hero__visual { min-height: 0; height: clamp(300px, 72vw, 520px); margin-left: var(--gutter); }
  .hero__visual .ap--blue { left: -12px; top: -22px; width: 72px; }
  .hero__visual .ap--outline { left: 30px; top: -38px; width: 36px; }
  .hero__visual .ap--disc { left: -60px; width: 110px; }
  .hero__visual .ap--navy.foot { left: 12%; }
}
@media (max-width: 480px) {
  .assurances { flex-direction: column; }
  .card-note { width: 62%; }
}

/* ---------- Méthode : 4 colonnes avec photo et numéro en onglet ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(20px, 4vw, 42px);
  list-style: none;
  padding: 0;
}
.step__media { position: relative; margin-bottom: 26px; }
.step__media img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
  background: var(--line);
}
.step__num {
  position: absolute;
  left: 0;
  bottom: -13px;
  padding: 6px 7px 1px 0;
  background: var(--bg);
  color: var(--blue);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.section--alt .step__num { background: var(--bg-alt); }
.step h3 { margin-bottom: 8px; font-size: 1.06rem; }
.step p { font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.step p + p { margin-top: 8px; }
.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  background: var(--tint);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.6;
  border-radius: 2px;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bande impact : nuit | zone centrale | citation ----------
   Grille « breakout » : les colonnes de contenu sont bornées (nuit >= 360 px, citation >= 280 px)
   et alignées sur le conteneur ; les colonnes latérales extensibles prolongent les fonds jusqu'aux bords.
   Le fond de la section (dégradé net à 50 %) peint le débord gauche en bleu nuit et le droit en clair. */
.impact {
  --impact-night: minmax(360px, 400px);
  --impact-center: minmax(0, 500px);
  --impact-side: minmax(280px, 300px);
  display: grid;
  grid-template-columns:
    [bleed-start] minmax(var(--gutter), 1fr)
    [night] var(--impact-night)
    [center] var(--impact-center)
    [side] var(--impact-side)
    minmax(var(--gutter), 1fr) [bleed-end];
  background: linear-gradient(90deg, var(--night) 0 50%, var(--bg-alt) 50% 100%);
}
.impact > * { min-width: 0; }
.impact__night {
  grid-column: night;
  align-self: stretch;
  padding: clamp(44px, 4.4vw, 64px) clamp(28px, 3vw, 48px) clamp(44px, 4.4vw, 64px) 0;
  background: var(--night);
  color: var(--night-ink);
}
.impact__night h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 1.25rem + 1.2vw, 2.2rem);
  color: var(--night-ink);
}
.impact__night p { font-size: .92rem; line-height: 1.6; color: var(--night-ink-2); }
.impact__night p + p { margin-top: 12px; }
.impact__night .rule { display: block; width: 38px; height: 1.5px; margin-top: 20px; background: var(--night-ink-2); }
.impact__night .link-arrow { margin-top: 20px; }
.impact__night .times3 {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(3.4rem, 2.6rem + 2.4vw, 5.2rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--blue);
}

.benefits, .impact__table {
  grid-column: center;
  align-self: center;
  background: var(--bg-alt);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 36px);
  list-style: none;
}
.benefit { padding: 26px 24px 26px 0; }
.benefit:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.benefit:nth-child(even) { padding-left: 26px; padding-right: 0; }
.benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
.benefit .icon { width: 27px; height: 27px; margin-bottom: 14px; color: var(--ink); }
.benefit h3 { font-size: .94rem; font-weight: 700; margin-bottom: 4px; }
.benefit p { font-size: .84rem; line-height: 1.5; color: var(--ink-2); }
.benefit p b { color: var(--blue-deep); font-weight: 700; }

.impact__table { padding: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 36px); }
.impact__table h3 { margin-bottom: 14px; }
.impact__table p { margin-top: 12px; font-size: .82rem; color: var(--ink-2); }

.quote {
  grid-column: side;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 52px) 0 clamp(32px, 4vw, 52px) clamp(22px, 2.4vw, 32px);
  background: var(--bg-alt);
  border-left: 1px solid var(--line-strong);
}
.quote__mark { width: 34px; height: 26px; margin-bottom: 14px; color: var(--line-strong); }
.quote__mark path { fill: currentColor; }
.quote figure { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: .95rem; font-style: italic; line-height: 1.6; color: var(--ink-2); }
.quote figcaption { margin-top: 18px; font-size: .8rem; color: var(--ink); }
.quote__dots { display: none; justify-content: center; gap: 4px; margin-top: 22px; }
.js .quote__dots { display: flex; }
.quote__dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.quote__dots button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color .2s ease;
}
.quote__dots button[aria-current="true"]::before { background: var(--ink); }

/* Variante deux zones : bloc nuit + grille des 5 leviers */
.impact--levers {
  grid-template-columns:
    [bleed-start] minmax(var(--gutter), 1fr)
    [night] minmax(340px, 380px)
    [center] minmax(0, 800px)
    minmax(var(--gutter), 1fr) [bleed-end];
}
.levers-wrap {
  grid-column: center;
  align-self: center;
  padding: clamp(32px, 4vw, 52px) 0 clamp(32px, 4vw, 52px) clamp(24px, 3vw, 44px);
  background: var(--bg-alt);
}
.levers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-strong);
}
.lever { display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; background: var(--bg-alt); }
.lever > .icon { width: 27px; height: 27px; margin-bottom: 10px; color: var(--ink); }
.lever__n { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); }
.lever h3 { font-size: .98rem; font-weight: 700; margin-bottom: 2px; }
.lever p { font-size: .82rem; line-height: 1.5; color: var(--ink-2); }
.lever .lever__ex { margin-top: auto; padding-top: 8px; color: var(--ink); }
.lever .lever__ex b { color: var(--blue-deep); font-weight: 700; }
.lever--vigilance { background: var(--tint); }
.section .lever { background: var(--bg); }
.section--alt .lever { background: var(--bg-alt); }
.section .lever--vigilance, .section--alt .lever--vigilance { background: var(--tint); }

/* Sous 1180 px, les trois zones ne tiennent plus : bloc nuit en pleine largeur, puis 2 colonnes, puis pile. */
@media (max-width: 1180px) {
  .impact, .impact--levers {
    grid-template-columns: [bleed-start] var(--gutter) [night center] minmax(0, 1fr) [side] minmax(0, 1fr) var(--gutter) [bleed-end];
    background: var(--bg-alt);
  }
  .impact__night {
    grid-column: bleed-start / bleed-end;
    padding: var(--sp-7) var(--gutter);
  }
  .impact__night > * { max-width: 680px; }
  .benefits, .impact__table { grid-column: center; padding: var(--sp-6) var(--sp-5) var(--sp-6) 0; }
  .quote { grid-column: side; padding: var(--sp-6) 0 var(--sp-6) var(--sp-5); }
  .levers-wrap { grid-column: center / bleed-end; padding: var(--sp-6) var(--gutter) var(--sp-7) 0; }
  /* Le tableau a besoin de toute la largeur : la citation passe dessous */
  .impact__table { grid-column: center / span 2; padding-right: 0; }
  .impact__table ~ .quote { grid-column: center / span 2; padding: var(--sp-6) 0 var(--sp-7); border-left: 0; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 760px) {
  .impact, .impact--levers { grid-template-columns: [bleed-start] var(--gutter) [night center side] minmax(0, 1fr) var(--gutter) [bleed-end]; }
  .benefits, .impact__table, .quote { grid-column: center; padding: var(--sp-6) 0; }
  .quote { border-left: 0; border-top: 1px solid var(--line-strong); padding-bottom: var(--sp-7); }
  .impact__table ~ .quote { grid-column: center; }
  .levers-wrap { grid-column: center; padding: var(--sp-6) 0 var(--sp-7); }
  .levers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit, .benefit:nth-child(odd), .benefit:nth-child(even) { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .benefit:last-child { border-bottom: 0; }
  .levers { grid-template-columns: minmax(0, 1fr); }
  .lever { padding: 20px 4px; }
}

/* ---------- Rangée de 4 chiffres honnêtes ---------- */
.figures-band { padding-block: clamp(24px, 2.6vw, 34px); background: var(--bg); border-bottom: 1px solid var(--line); }
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}
.figure { padding: 4px 16px; text-align: center; }
.figure + .figure { border-left: 1px solid var(--line-strong); }
.figure strong {
  display: block;
  font-size: clamp(1.45rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.figure span { display: block; margin: 4px auto 0; max-width: 22ch; font-size: .8rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 720px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .figure:nth-child(3) { border-left: 0; }
}

/* ---------- Bande CTA : photo | zone claire | aplats qui sortent à droite ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  background: var(--bg-alt);
  overflow: hidden;
  container-type: inline-size;
}
.cta-band__photo { position: relative; min-height: 190px; }
.cta-band__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__body {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 3vw, 44px) max(calc(var(--gutter) + 9cqw), 32px) clamp(28px, 3vw, 44px) clamp(28px, 13.5cqw, 150px);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { font-size: .9rem; line-height: 1.6; color: var(--ink-2); max-width: 50ch; }
.cta-band .actions { margin-top: 22px; }
.cta-band .contact-inline { font-size: .84rem; }
.cta-band .ap--soft { right: 0; top: 43%; bottom: 0; width: 7.7cqw; }
.cta-band .ap--blue { right: 0; top: 22%; bottom: 0; width: 3.2cqw; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band__photo { min-height: 200px; }
  .cta-band__body { padding: var(--sp-6) calc(var(--gutter) + 28px) var(--sp-7) var(--gutter); }
  .cta-band .ap--soft { width: 34px; top: auto; height: 40%; }
  .cta-band .ap--blue { width: 14px; top: auto; height: 62%; }
}

.contact-inline { color: var(--ink-2); }
.contact-inline a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- En-tête des pages internes ---------- */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  min-height: clamp(360px, 32vw, 460px);
  background: var(--bg-alt);
  container-type: inline-size;
}
.page-head__text {
  align-self: center;
  padding: clamp(20px, 2vw, 28px) clamp(28px, 5cqw, 80px) clamp(40px, 4vw, 60px) max(var(--gutter), calc((100cqw - var(--maxw)) / 2));
}
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 18px; max-width: 54ch; }
.page-head .actions { margin-top: 26px; }
.page-head__visual { position: relative; isolation: isolate; container-type: inline-size; }
.page-head__panel {
  position: absolute;
  z-index: 1;
  inset: 0 0 12% 0;
  background-color: var(--tint);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-head__visual .ap--disc    { z-index: 0; left: -56px; top: 46%; width: 130px; aspect-ratio: 1; }
.page-head__visual .ap--blue    { z-index: 2; left: -54px; top: 16%; width: clamp(56px, 22%, 104px); aspect-ratio: 1; }
.page-head__visual .ap--outline { z-index: 3; left: -16px; top: 6%; width: clamp(30px, 10%, 48px); aspect-ratio: 1; }
.page-head__visual .ap--navy.band { z-index: 2; right: 0; top: 30%; width: 13%; height: 34%; }
.page-head__visual .ap--navy.foot { z-index: 2; left: 22%; bottom: 0; width: 26%; height: 22%; }
.page-head__visual .card-note { width: 56%; min-height: 34%; }
.page-head--simple { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.page-head--simple .page-head__text { padding-block: var(--sp-5) var(--sp-7); }
@media (max-width: 900px) {
  .page-head { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .page-head__text { padding: var(--sp-5) var(--gutter) var(--sp-7); }
  .page-head__visual { height: 240px; margin-left: var(--gutter); }
  .page-head__visual .ap--blue { left: -12px; top: -20px; width: 64px; }
  .page-head__visual .ap--outline { left: 26px; top: -34px; width: 32px; }
  .page-head__visual .ap--disc { left: -50px; width: 100px; }
  .page-head__visual .card-note { width: 64%; }
}

.breadcrumb { margin-bottom: clamp(24px, 3vw, 40px); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  padding: 0;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-2);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 26px; }
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  transition: border-color .2s ease;
}
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips .icon { width: 17px; height: 17px; color: var(--ink); }

/* ---------- Grilles et contenus génériques ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) clamp(32px, 6vw, 80px); align-items: start; }
.grid-2--center { align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); } }

.stack > * + * { margin-top: var(--sp-4); }
.stack p { color: var(--ink-2); }
.stack h2 + p { margin-top: var(--sp-5); }

/* Grille à filets (secteurs, engagements) : filets fins entre les cellules, sans cadre extérieur */
.tiles {
  --cols: 4;
  --tiles-bg: var(--bg);
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding: 0;
  background: var(--line-strong);
  border-block: 1px solid var(--line-strong);
}
.section--alt .tiles { --tiles-bg: var(--bg-alt); }
.tiles--3 { --cols: 3; }
.tiles--2 { --cols: 2; }
.tiles > li { background: var(--tiles-bg); }
.tile, .tiles a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 28px 24px 26px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease;
}
.tiles a:hover { background: var(--surface); color: var(--ink); }
.tile > .icon, .tiles a > .icon { width: 27px; height: 27px; margin-bottom: 12px; color: var(--ink); }
.tiles h3 { font-size: 1rem; }
.tiles p { font-size: .84rem; line-height: 1.55; color: var(--ink-2); }
.tile__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.tile__go .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.tiles a:hover .tile__go .icon { transform: translateX(3px); }
@media (max-width: 960px) { .tiles, .tiles--3 { --cols: 2; } }
@media (max-width: 540px) {
  .tiles, .tiles--3, .tiles--2 { --cols: 1; }
  .tile, .tiles a { padding: 22px 4px; }
}

.checks { list-style: none; padding: 0; }
.checks li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .86rem;
}
.checks li:first-child { border-top: 1px solid var(--line); }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.checks strong { color: var(--ink); }
.checks--spaced { margin-top: 28px; }

.bullets { list-style: none; padding: 0; }
.bullets li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .9rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--blue);
}

/* Encadré */
.callout { padding: 24px 28px; background: var(--surface); border-left: 3px solid var(--blue); }
.callout h3 { margin-bottom: 8px; }
.callout p { font-size: .88rem; color: var(--ink-2); }
.callout p + p { margin-top: 10px; }
.callout + .callout { margin-top: var(--sp-5); }
.callout__label { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* Calcul chiffré */
.calc { margin: 12px 0; border-top: 1px solid var(--line-strong); }
.calc div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-5);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.calc dt { color: var(--ink-2); font-size: .86rem; }
.calc dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc .calc__total dt { color: var(--ink); font-weight: 700; }
.calc .calc__total dd { color: var(--blue-deep); font-size: 1.1rem; font-weight: 800; }
@media (max-width: 420px) {
  .calc div { flex-direction: column; gap: 2px; }
  .calc dd { text-align: left; white-space: normal; }
}

/* ---------- Ancrage local (histoire + pilote) ---------- */
.anchor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7) clamp(32px, 6vw, 80px); align-items: stretch; }
.history__date {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--blue-deep);
}
.history h2 { margin-bottom: 16px; }
.history p { color: var(--ink-2); max-width: 52ch; }
.history p + p { margin-top: 12px; }
.history p strong { color: var(--ink); font-weight: 600; }
.pilot-wrap, .report-wrap { position: relative; isolation: isolate; }
.pilot-wrap { display: flex; }
.pilot-wrap > .pilot { flex: 1; }
.pilot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
}
.pilot-wrap > .ap--blue { z-index: 0; top: -14px; right: -14px; width: 70px; height: 70px; }
.pilot h3 { font-size: var(--fs-xl); margin-bottom: 12px; letter-spacing: -.02em; }
.pilot p { font-size: .9rem; color: var(--ink-2); }
.pilot p + p { margin-top: 10px; }
.pilot::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 22px; background: var(--blue); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent);
}
@media (max-width: 860px) { .anchor { grid-template-columns: minmax(0, 1fr); } .pilot-wrap > .ap--blue { right: -8px; } }

/* ---------- Page diagnostic ---------- */
.timeline { margin-top: 8px; }
.timeline__bar { display: flex; height: 46px; background: var(--surface); }
.timeline__bar span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-inline: 12px;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--bg);
  border-right: 2px solid var(--bg);
}
.timeline__bar span:last-child { border-right: 0; }
.timeline__bar .t1 { flex: 20 1 0; background: var(--night); color: var(--night-ink); }
.timeline__bar .t2 { flex: 60 1 0; background: var(--blue-deep); }
.timeline__bar .t3 { flex: 30 1 0; background: var(--blue-soft); color: var(--ink); }
.timeline__bar .t4 { flex: 10 1 0; background: var(--line-strong); color: var(--ink); justify-content: center; padding-inline: 2px; }
.timeline__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5) clamp(20px, 3vw, 36px); margin-top: 36px; list-style: none; padding: 0; }
.slot { padding-top: 16px; border-top: 3px solid var(--line-strong); }
.slot:nth-child(1) { border-top-color: var(--night); }
.slot:nth-child(2) { border-top-color: var(--blue-deep); }
.slot:nth-child(3) { border-top-color: var(--blue-soft); }
.slot__time { display: block; font-size: .8rem; font-weight: 700; color: var(--blue-deep); }
.slot h3 { margin: 6px 0; font-size: 1rem; }
.slot p { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 960px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .slots { grid-template-columns: minmax(0, 1fr); }
  .timeline__bar span { font-size: 0; padding: 0; }
}

.phases { border-top: 1px solid var(--line-strong); }
.phase {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-7);
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}
.phase__label .eyebrow { margin-bottom: 6px; }
.phase__label strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: var(--blue-deep); }
.phase h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.02em; }
.phase__body > p { color: var(--ink-2); max-width: 64ch; }
.phase__body > p + p { margin-top: 10px; }
.phase .bullets { margin-top: 14px; max-width: 64ch; }
@media (max-width: 760px) { .phase { grid-template-columns: minmax(0, 1fr); } }

/* Aperçu du rapport */
.report {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
}
.report-wrap > .ap--blue { z-index: 0; top: -18px; right: -18px; width: 38%; height: 40%; }
.report-wrap > .ap--outline { z-index: 0; bottom: -26px; left: -26px; width: 64px; height: 64px; }
.report__head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.report ol { list-style: none; padding: 0; counter-reset: rep; }
.report li {
  counter-increment: rep;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  color: var(--ink-2);
}
.report li:last-child { border-bottom: 0; }
.report li::before {
  content: counter(rep, decimal-leading-zero);
  font-size: .9rem;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.report li strong { display: block; color: var(--ink); font-size: .95rem; }
@media (max-width: 600px) { .report-wrap > .ap--blue { top: -10px; right: -8px; } .report-wrap > .ap--outline { display: none; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-deep); }
.faq__answer { padding: 0 var(--sp-7) 22px 0; color: var(--ink-2); max-width: 72ch; }
.faq__answer p + p { margin-top: 10px; }
@media (max-width: 600px) { .faq__answer { padding-right: 0; } .faq summary { font-size: .98rem; } }

/* ---------- Offres (accompagnement) ---------- */
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding: 0;
  background: var(--line-strong);
  border-block: 1px solid var(--line-strong);
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px clamp(18px, 2.2vw, 30px);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.offer__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 24px; }
.offer__n { color: var(--blue); font-size: 1.22rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.offer__lever { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.offer h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.offer .offer__price {
  font-size: clamp(1.45rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--blue-deep);
}
.offer__price small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.offer > p { font-size: .86rem; color: var(--ink-2); }
.offer .checks { margin-top: 4px; }
.offer .offer__meta { margin-top: auto; padding-top: 10px; font-size: .78rem; font-weight: 600; color: var(--ink); }
.pill-sun {
  display: inline-block;
  padding: 3px 8px;
  background: var(--sun);
  color: var(--night);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
}
@media (max-width: 1060px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .offers { grid-template-columns: minmax(0, 1fr); } .offer { padding-inline: 4px; } }

/* Tableau chiffré */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-alt);
  border-bottom-color: var(--line-strong);
}
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td.n { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.table td.n--b { color: var(--blue-deep); font-weight: 800; }
.table thead th.n { text-align: right; }
@media (max-width: 520px) { .table th, .table td { padding: 10px; } }

/* ---------- Page secteurs ---------- */
.sector-block { scroll-margin-top: var(--header-h); }
.sector-block__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--sp-7) clamp(32px, 6vw, 80px); align-items: start; }
.sector-block__aside { position: static; }
.sector-block__id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sector-block__id .icon { width: 30px; height: 30px; color: var(--ink); }
.sector-block__id .n { color: var(--blue); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.sector-block h2 { margin-bottom: 14px; }
.sector-block__intro { color: var(--ink-2); }
.sub { margin: 28px 0 10px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.usecases { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.usecases li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.usecase__lever { display: block; margin-bottom: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.usecases h4 { margin-bottom: 6px; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.3; }
.sub--first { margin-top: 0; }
.usecases p { font-size: .88rem; color: var(--ink-2); }
.sector-block .callout { margin-top: 28px; }
.section:not(.section--alt) .callout { background: var(--bg-alt); }
.section--alt .callout { background: var(--surface); }
.sector-note { margin-top: 20px; padding: 16px 20px; background: var(--tint); font-size: .88rem; color: var(--ink); }
@media (max-width: 960px) {
  .sector-block__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .sector-block__aside { position: static; }
}

/* ---------- Zone d'intervention ---------- */
.hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.hub { padding: 26px 22px 26px 0; }
.hub + .hub { padding-left: 26px; border-left: 1px solid var(--line-strong); }
.hub strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--blue-deep); }
.hub h3 { margin: 4px 0 8px; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; }
.hub p { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .hubs { grid-template-columns: minmax(0, 1fr); }
  .hub + .hub { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
}

.communes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-6) clamp(28px, 4vw, 48px); }
.communes h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.commune-list { list-style: none; padding: 0; }
.commune-list--2 { columns: 2; column-gap: clamp(28px, 4vw, 48px); }
.commune-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; break-inside: avoid; }
.commune-list .cp { font-weight: 700; color: var(--blue-deep); }
@media (max-width: 960px) { .communes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .communes > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .communes { grid-template-columns: minmax(0, 1fr); } .commune-list--2 { columns: 1; } }

/* ---------- À propos ---------- */
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-7) clamp(32px, 6vw, 80px); align-items: center; }
.portrait { position: relative; isolation: isolate; aspect-ratio: 4 / 5; width: 100%; max-width: 400px; }
.portrait__ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-color: var(--tint);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.portrait__ph svg { position: absolute; left: 50%; top: 44%; width: 46%; transform: translate(-50%, -50%); color: var(--line-strong); }
.portrait__ph svg * { fill: none; stroke: currentColor; stroke-width: 1.5; }
.portrait__caption { position: relative; padding: 6px 10px; background: var(--surface); font-size: .75rem; color: var(--ink-2); }
.portrait .ap--blue { z-index: 2; left: -22px; top: 12%; width: 22%; aspect-ratio: 1; }
.portrait .ap--navy { z-index: 2; right: -18px; bottom: 16%; width: 14%; height: 30%; }
.person__name { font-size: var(--fs-2xl); margin-bottom: 4px; }
.person__role { font-size: .86rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 20px; }
.person p { color: var(--ink-2); }
.person p + p { margin-top: 12px; }
@media (max-width: 860px) {
  .person { grid-template-columns: minmax(0, 1fr); }
  .portrait { aspect-ratio: 4 / 3.4; max-width: none; }
  .portrait .ap--blue { left: -10px; }
  .portrait .ap--navy { right: -8px; }
}

/* ---------- Contact & formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: var(--sp-7) clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.req { color: var(--blue-deep); }
.field__hint { display: block; margin-top: 6px; font-size: .75rem; color: var(--ink-2); }
.input, .select select, .textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: 400 16px/1.4 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color .2s ease;
}
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .select select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select select:focus, .textarea:focus { border-color: var(--blue); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
[aria-invalid="true"] { border-color: var(--risk) !important; }
.field__error { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--risk); }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-deep); }
.consent label { font-size: .86rem; font-weight: 400; color: var(--ink-2); margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.form__footer p { font-size: .78rem; color: var(--ink-2); }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } .form .btn { width: 100%; } }

.form-status { padding: 32px; background: var(--surface); border-left: 3px solid var(--ok); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.form-status h2 { font-size: var(--fs-2xl); margin-bottom: 12px; }
.form-status p { color: var(--ink-2); }
.form-status p + p { margin-top: 10px; }
.form-alert { grid-column: 1 / -1; padding: 14px 18px; border-left: 3px solid var(--risk); background: var(--surface); font-size: .88rem; color: var(--ink); }
.form-alert:empty { display: none; }
[hidden] { display: none !important; }

.aside-card { padding: 28px; background: var(--surface); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h2 { font-size: var(--fs-xl); margin-bottom: 14px; }
.coords { list-style: none; padding: 0; }
.coords li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.coords li:last-child { border-bottom: 0; }
.coords .icon { color: var(--ink); margin-top: 2px; }
.coords a, .coords .val { display: block; font-weight: 600; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.coords small { display: block; font-size: .75rem; color: var(--ink-2); }
.next-steps { list-style: none; padding: 0; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.next-steps li:last-child { border-bottom: 0; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); font-weight: 800; color: var(--blue); }

/* ---------- Pages légales ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--fs-xl); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.prose dl { margin: 12px 0 0; border-top: 1px solid var(--line); }
.prose dl div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose dt { font-weight: 600; color: var(--ink); font-size: .9rem; }
.prose dd { margin: 0; color: var(--ink-2); font-size: .9rem; }
@media (max-width: 600px) { .prose dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.todo--block { display: inline-block; margin-top: 16px; }
.todo { padding: 1px 6px; background: var(--tint); color: var(--ink); font-weight: 600; border-radius: 2px; }

/* ---------- Pied de page fin ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(20px, 3vw, 32px);
  padding-block: 30px 22px;
}
.footer-main .brand { font-size: 1.3rem; }
.footer-tagline { font-size: .78rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-left: auto; list-style: none; padding: 0; }
.footer-links a { color: var(--ink); font-size: .8rem; text-decoration: none; }
.footer-links a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-links .footer-social { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--ink); }
.footer-social svg { width: 20px; height: 20px; }
.footer-social svg path { fill: currentColor; stroke: none; }
.footer-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px 26px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--ink-2);
}
.footer-sub a { color: var(--ink-2); }
.footer-sub a:hover { color: var(--ink); }
.footer-sectors a { text-decoration: none; }
.footer-sectors a:hover { text-decoration: underline; }
.footer-sectors { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; }
@media (max-width: 760px) { .footer-links { margin-left: 0; width: 100%; } }

/* ---------- Itération PHP : images, en-tête, formulaires ---------- */
picture { display: block; }
.hero__visual picture, .cta-band__photo picture { position: absolute; inset: 0; }
.cta-band__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Téléphone dans l'en-tête (grand écran) et dans le menu mobile */
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--blue-deep); }
.header-phone:hover { color: var(--blue-deep); }
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }
.site-nav__phone { display: none; }
@media (max-width: 1120px) {
  .js .site-nav__phone { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-5); font-size: var(--fs-md); color: var(--ink-2); }
  .js .site-nav__phone a { color: var(--ink); font-weight: 700; }
  .js .site-nav__phone .icon { color: var(--blue-deep); }
}

/* Cartes secteurs avec photo (accueil) */
.tiles a.tile--photo { padding-top: 0; }
.tile__media { display: block; margin: 0 -24px 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--line); }
.tile__media picture { height: 100%; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tiles a.tile--photo:hover .tile__media img { transform: scale(1.03); }
@media (max-width: 540px) { .tile__media { margin-inline: -4px; } }

/* Photo de secteur (page secteurs) avec numéro en onglet */
.sector-block__media { position: relative; margin-bottom: 30px; }
.sector-block__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.sector-block__media .step__num { bottom: -13px; }
.section:not(.section--alt) .sector-block__media .step__num { background: var(--bg); }
.sector-block__id { margin-bottom: 8px; }
.sector-block__id .eyebrow { margin: 0; }
.sector-block__cta { margin-top: 24px; }
.sector-block__cta .btn { white-space: normal; text-align: left; }

/* Formulaires : groupes de cases, version compacte, succès inline */
.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.field__hint-inline { font-weight: 400; color: var(--ink-2); }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}
.fieldset .check { display: flex; margin: 0; font-weight: 500; }
.check:hover { border-color: var(--ink-3); }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue-deep); }
.check:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.check:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-success { grid-column: 1 / -1; padding: 22px 24px; background: var(--surface); border-left: 3px solid var(--ok); color: var(--ink); }
.form-success:focus { outline: none; }
.form-success strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sending [type="submit"] { opacity: .6; cursor: progress; }

.form--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.form--compact .field label { font-size: .78rem; margin-bottom: 4px; }
.form--compact .input { min-height: 44px; padding: 10px 12px; }
.form--compact .consent label { font-size: .78rem; }
.form--compact .form__footer { justify-content: flex-start; }
@media (max-width: 1000px) { .form--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .form--compact { grid-template-columns: minmax(0, 1fr); } }

.cta-callback { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-strong); max-width: 720px; }
.cta-callback__title { margin-bottom: 12px; font-size: .9rem; font-weight: 700; color: var(--ink) !important; }

/* Page contact */
.contact-intro { margin: 10px 0 26px; max-width: 62ch; }
.contact-main h2 { font-size: var(--fs-2xl); }
.contact-aside .aside-card { background: var(--bg-alt); }
.contact-aside .aside-card > .muted { margin-bottom: 16px; font-size: .88rem; }
.contact-aside .form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.contact-aside .form .btn { width: 100%; }
.aside-links { margin-top: 14px; line-height: 2; }
.coords a { font-size: .95rem; }

/* Crédits photos */
.prose dl.credits div { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 600px) { .prose dl.credits div { grid-template-columns: minmax(0, 1fr); } }
.prose code { padding: 1px 5px; background: var(--tint); border-radius: 2px; font-family: inherit; font-weight: 600; }

/* Maillage « À lire aussi » */
.related { padding-block: clamp(36px, 4vw, 56px); }
.related .eyebrow { margin-bottom: 18px; font-size: .75rem; letter-spacing: .14em; }
.related__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; padding: 0; list-style: none; background: var(--line-strong); border-block: 1px solid var(--line-strong); }
.related__list a { position: relative; display: block; height: 100%; padding: 22px 48px 22px 0; background: var(--bg); color: var(--ink); text-decoration: none; }
.related__list li + li a { padding-left: 24px; }
.related__list strong { display: block; font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.related__list span { display: block; margin-top: 4px; font-size: .84rem; color: var(--ink-2); }
.related__list .icon { position: absolute; right: 18px; top: 24px; width: 18px; height: 18px; color: var(--blue-deep); transition: transform .2s ease; }
.related__list a:hover strong { color: var(--blue-deep); }
.related__list a:hover .icon { transform: translateX(3px); }
@media (max-width: 760px) { .related__list li + li a { padding-left: 0; } }

/* Impression */
@media print {
  .site-header, .site-footer, .cta-band, .ap, .hero__visual, .page-head__visual { display: none !important; }
  body { background: none; }
}
