/* ==========================================================================
   Expert Contrôle Énergie — Design System
   Palette dérivée du logo : #14568A (bleu profond) · #4A7DAB (bleu médian)
   · #93AFCB (bleu clair) → neutres "interface technique" bleu nuit.
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Marque (extraits du logo) */
  --brand-900: #0E3E66;
  --brand-800: #14568A;
  --brand-700: #1A6BA8;
  --brand-600: #2C7FC0;
  --brand-500: #4A7DAB;
  --brand-300: #93AFCB;
  --brand-100: #D6E3EF;

  /* Accent technologique (dérivé du bleu logo, poussé vers le cyan) */
  --accent: #45B4E8;
  --accent-soft: #7FD0F5;
  --accent-glow: rgba(69, 180, 232, .38);

  /* Neutres sombres */
  --ink-900: #04080F;
  --ink-850: #060B14;
  --ink-800: #080F1B;
  --ink-700: #0C1524;
  --ink-600: #111E31;
  --ink-500: #17293F;

  /* Surfaces claires */
  --paper: #F4F7FB;
  --paper-2: #E8EFF7;

  /* Texte (contexte sombre par défaut) */
  --text: #E9F0F8;
  --text-soft: #A9BBCF;
  --text-dim: #7288A2;
  --bg: var(--ink-900);
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .05);
  --line: rgba(147, 175, 203, .14);
  --line-strong: rgba(147, 175, 203, .28);

  /* Typo */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Mesures */
  --wrap: 1240px;
  --wrap-narrow: 900px;
  --header-h: 82px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-lg: 0 32px 80px -28px rgba(0, 0, 0, .85);
}

/* Contexte clair (sections "papier") */
.paper-scope {
  --text: #0B1826;
  --text-soft: #40566E;
  --text-dim: #6B7F96;
  --bg: var(--paper);
  --surface: rgba(20, 86, 138, .04);
  --surface-2: #FFFFFF;
  --line: rgba(20, 86, 138, .14);
  --line-strong: rgba(20, 86, 138, .26);
  --accent: #14568A;
  --accent-soft: #1A6BA8;
  --accent-glow: rgba(20, 86, 138, .18);
  background: var(--bg);
  color: var(--text);
}

/* 2. RESET ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` plutôt que `hidden` : évite de créer un conteneur de défilement,
     ce qui casserait les colonnes en position:sticky. */
  overflow-x: clip;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(69, 180, 232, .28); color: #fff; }

/* 3. TYPOGRAPHIE =========================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.018em; }
h4 { font-size: 1.06rem; letter-spacing: -.01em; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.eyebrow--center::before { display: none; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 62ch;
}
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }
.grad-text {
  background: linear-gradient(104deg, var(--brand-300) 0%, var(--accent) 42%, var(--brand-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: .78rem;
  letter-spacing: .06em;
}

/* 4. LAYOUT ================================================================ */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, var(--wrap-narrow)); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section--tight { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.8rem, 5vw, 4.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.2rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.25fr .75fr; }

/* Séparateur lumineux */
.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent);
}

/* Grille de fond technique */
.tech-bg { position: relative; isolation: isolate; }
.tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(147, 175, 203, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 175, 203, .055) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
/* 5. BOUTONS =============================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .92rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(140deg, var(--brand-700), var(--brand-900));
  color: #fff;
  border-color: rgba(127, 208, 245, .32);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 12px 34px -14px rgba(26, 107, 168, .8);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22), transparent 70%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease-out);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 20px 44px -16px var(--accent-glow);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(69, 180, 232, .09);
}
.btn--sm { padding: .62rem 1.15rem; font-size: .82rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .87rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: .85rem; }

/* 6. HEADER ================================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--ease), background-color .4s var(--ease),
              border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  height: 66px;
  background: rgba(4, 8, 15, .72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 50px -30px rgba(0, 0, 0, .9);
}
.header-inner {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand-mark { width: 40px; height: auto; transition: transform .5s var(--ease-out); }
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.04); }
.brand-mark .t-dark { fill: var(--accent); transition: fill .4s var(--ease); }
.brand-mark .t-mid  { fill: var(--brand-500); }
.brand-mark .t-light{ fill: var(--brand-300); }
.brand-mark .t-arc  { fill: var(--accent); }
.brand-word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: .04em;
}
.brand-word b { font-size: .82rem; font-weight: 600; color: var(--text); }
.brand-word b i { font-style: normal; color: var(--accent); }
.brand-word span {
  font-size: .54rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Navigation */
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  position: relative;
  padding: .55rem .85rem;
  font-size: .87rem;
  font-weight: 450;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .28rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: .75rem; }

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 8, 15, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer a {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.02em;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.drawer.is-open a { opacity: 1; transform: none; }
.drawer.is-open a:nth-child(1) { transition-delay: .08s; }
.drawer.is-open a:nth-child(2) { transition-delay: .13s; }
.drawer.is-open a:nth-child(3) { transition-delay: .18s; }
.drawer.is-open a:nth-child(4) { transition-delay: .23s; }
.drawer.is-open a:nth-child(5) { transition-delay: .28s; }
.drawer .btn { margin-top: 1.6rem; }
.drawer-meta { margin-top: auto; font-size: .8rem; color: var(--text-dim); }

/* Barre de progression scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand-800), var(--accent));
  z-index: 101;
  pointer-events: none;
}

/* 7. HERO ================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .85;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 18% 18%, rgba(20, 86, 138, .3), transparent 62%),
    radial-gradient(ellipse 60% 50% at 88% 74%, rgba(69, 180, 232, .16), transparent 64%),
    linear-gradient(180deg, transparent 55%, var(--ink-900) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.05s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .22s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .32s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero .lead { margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .9s var(--ease-out) forwards;
}
.hero-fade--1 { animation-delay: .45s; }
.hero-fade--2 { animation-delay: .58s; }
.hero-fade--3 { animation-delay: .7s; }
.hero-fade--4 { animation-delay: .84s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .95rem .42rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
}
.chip b { color: var(--text); font-weight: 500; }
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: .3rem;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulseRing 2.4s var(--ease-out) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Panneau flottant "console de contrôle" */
.hero-panel {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 41, 63, .72), rgba(6, 11, 20, .78));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-lg);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(127, 208, 245, .45), transparent 45%, transparent 70%, rgba(20, 86, 138, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.panel-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .22rem .55rem;
  border: 1px solid rgba(69, 180, 232, .35);
  border-radius: 5px;
  background: rgba(69, 180, 232, .08);
}

/* Jauge circulaire */
.gauge-row { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.4rem; }
.gauge { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.gauge svg { transform: rotate(-90deg); overflow: visible; }
.gauge .track { fill: none; stroke: rgba(147, 175, 203, .12); stroke-width: 7; }
.gauge .bar {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: var(--circ, 314);
  stroke-dashoffset: var(--circ, 314);
  transition: stroke-dashoffset 2s var(--ease-out);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.gauge-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-display);
}
.gauge-val b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.gauge-val span { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

.bar-list { display: grid; gap: .85rem; flex: 1; }
.bar-item span {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  color: var(--text-soft);
  margin-bottom: .38rem;
}
.bar-item span i { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.bar-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(147, 175, 203, .1);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-700), var(--accent));
  transition: width 1.6s var(--ease-out);
}

.panel-rows { display: grid; gap: .1rem; }
.panel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .68rem .3rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.panel-row .ref { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; color: var(--text-dim); }
.panel-row .lbl { color: var(--text-soft); }
.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  letter-spacing: .04em;
  padding: .18rem .55rem;
  border-radius: 100px;
  border: 1px solid;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--ok { color: #4ADE94; border-color: rgba(74, 222, 148, .3); background: rgba(74, 222, 148, .07); }
.status--run { color: var(--accent); border-color: rgba(69, 180, 232, .3); background: rgba(69, 180, 232, .07); }
.status--wait { color: #E0B44A; border-color: rgba(224, 180, 74, .3); background: rgba(224, 180, 74, .07); }

/* Indicateur de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .6rem;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  46% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero interne (pages secondaires) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 8vw, 7rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 78% 10%, rgba(20, 86, 138, .3), transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 90%, rgba(69, 180, 232, .1), transparent 65%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }

/* 8. REVEAL ================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* 9. CARTES ================================================================ */
.card {
  position: relative;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease), background-color .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(69, 180, 232, .1), transparent 62%);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .7rem; }
.card p { font-size: .92rem; color: var(--text-soft); }

.card--glass {
  background: linear-gradient(155deg, rgba(147, 175, 203, .07), rgba(255, 255, 255, .015));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card--feature { padding: 2.2rem; }

.card-num {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 1.6rem;
  display: block;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(69, 180, 232, .14), rgba(20, 86, 138, .06));
  color: var(--accent);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.card-icon svg { width: 21px; height: 21px; }
.card:hover .card-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}

/* Liste à puces techniques */
.ticks { display: grid; gap: .75rem; margin-top: 1.4rem; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .9rem;
  color: var(--text-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: rgba(69, 180, 232, .14);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(.52em + 2px);
  width: 3px;
  height: 6px;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

/* 10. COMPTEURS ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(147, 175, 203, .055), rgba(255, 255, 255, .012));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.stat {
  position: relative;
  padding: 2.4rem 1.8rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform .9s var(--ease-out);
}
.stat.is-in::after { transform: scaleX(.65); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--brand-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat b sup { font-size: .45em; vertical-align: super; margin-left: .06em; -webkit-text-fill-color: var(--accent); }
/* `>` indispensable : le compteur est lui aussi un <span>, imbriqué dans le <b>. */
.stat > span {
  display: block;
  margin-top: .85rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* 11. TIMELINE ============================================================= */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: var(--line);
}
.timeline-progress {
  position: absolute;
  left: 23px;
  top: 26px;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--brand-700));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: height .5s linear;
}
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.6rem;
  padding: 1.4rem 0;
  align-items: start;
}
.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--ink-800);
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--text-dim);
  transition: all .55s var(--ease-out);
}
.tl-body h3 { margin-bottom: .5rem; transition: color .5s var(--ease); }
.tl-body p { font-size: .92rem; color: var(--text-soft); max-width: 60ch; }
.tl-meta {
  display: inline-block;
  margin-top: .85rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: .2rem .5rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: all .5s var(--ease);
}
.tl-step.is-active .tl-dot {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(69, 180, 232, .1);
  box-shadow: 0 0 0 5px rgba(69, 180, 232, .07), 0 0 26px -6px var(--accent-glow);
}
.tl-step.is-active .tl-meta { border-color: rgba(69, 180, 232, .35); color: var(--accent); }

/* 12. CARTE DE FRANCE ====================================================== */
.map-shell {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.fr-map { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.fr-outline {
  fill: rgba(20, 86, 138, .07);
  stroke: rgba(147, 175, 203, .42);
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 22px rgba(69, 180, 232, .16));
}
.fr-mesh { stroke: rgba(147, 175, 203, .13); stroke-width: .6; fill: none; }
.fr-link {
  stroke: url(#linkGrad);
  stroke-width: 1.1;
  fill: none;
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
}
.is-in .fr-link { animation: drawLink 1.6s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes drawLink { to { stroke-dashoffset: 0; } }
.fr-node { fill: var(--accent); opacity: 0; }
.is-in .fr-node { animation: nodeIn .6s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes nodeIn { to { opacity: 1; } }
.fr-node-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
}
.is-in .fr-node-ring { animation: nodePulse 3s var(--ease-out) infinite; animation-delay: var(--d, 0ms); }
@keyframes nodePulse {
  0% { transform: scale(.4); opacity: .9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
.fr-hq { fill: #fff; filter: drop-shadow(0 0 8px var(--accent)); }
.fr-label {
  font-family: var(--font-display);
  font-size: 13px;
  fill: var(--text);
  letter-spacing: .04em;
}
.fr-label-sub { font-size: 9.5px; fill: var(--text-dim); letter-spacing: .16em; text-transform: uppercase; }

/* 13. CRM / MOCK UI ======================================================== */
.crm-window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(23, 41, 63, .78), rgba(6, 11, 20, .9));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.crm-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}
.crm-dots { display: flex; gap: .4rem; }
.crm-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(147, 175, 203, .22); }
.crm-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line);
  font-family: ui-monospace, Menlo, monospace;
  font-size: .66rem;
  color: var(--text-dim);
}
.crm-url svg { width: 11px; height: 11px; color: #4ADE94; }
.crm-body { display: grid; grid-template-columns: 176px 1fr; min-height: 340px; }
.crm-side { border-right: 1px solid var(--line); padding: 1rem .8rem; display: grid; gap: .22rem; align-content: start; }
.crm-side i {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: 7px;
  font-style: normal;
  font-size: .76rem;
  color: var(--text-dim);
}
.crm-side i::before { content: ""; width: 13px; height: 13px; border-radius: 3px; border: 1px solid currentColor; opacity: .6; }
.crm-side i.on { background: rgba(69, 180, 232, .1); color: var(--accent); }
.crm-main { padding: 1.3rem; display: grid; gap: 1.1rem; align-content: start; }
.crm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.crm-kpi { padding: .85rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .022); }
.crm-kpi span { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.crm-kpi b { display: block; margin-top: .35rem; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.03em; }
.crm-chart { display: flex; align-items: flex-end; gap: 5px; height: 92px; padding-top: .5rem; }
.crm-chart i {
  flex: 1;
  height: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(20, 86, 138, .35));
  transition: height 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
  opacity: .85;
}
.crm-table { display: grid; gap: 0; }
.crm-tr {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .6rem .2rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--text-soft);
}
.crm-tr .ref { font-family: ui-monospace, Menlo, monospace; font-size: .68rem; color: var(--text-dim); }

/* Bandeau sécurité */
.secure-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.secure-strip div {
  padding: 1.3rem 1.2rem;
  background: var(--ink-850);
  display: grid;
  gap: .4rem;
}
.secure-strip b { font-family: var(--font-display); font-size: .86rem; font-weight: 500; }
.secure-strip span { font-size: .78rem; color: var(--text-dim); }

/* 14. FORMULAIRE =========================================================== */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { position: relative; display: grid; gap: .45rem; }
.field label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: .92rem;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237288A2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 15px;
  padding-right: 2.6rem;
}
.field textarea { resize: vertical; min-height: 138px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); opacity: .65; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(69, 180, 232, .05);
  box-shadow: 0 0 0 3px rgba(69, 180, 232, .1);
}
.field .err {
  font-size: .74rem;
  color: #F98A8A;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: rgba(249, 138, 138, .55); }
.field.has-error .err, .check.has-error .err { opacity: 1; transform: none; }
.check .err { font-size: .74rem; color: #F98A8A; opacity: 0; transition: opacity .3s var(--ease); }
.check.has-error input { outline: 2px solid rgba(249, 138, 138, .5); outline-offset: 2px; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  font-size: .82rem;
  color: var(--text-soft);
  cursor: pointer;
}
.check input { width: 17px; height: 17px; margin-top: .18rem; accent-color: var(--brand-700); }
.form-note { font-size: .76rem; color: var(--text-dim); }
.form-status {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 148, .3);
  background: rgba(74, 222, 148, .07);
  font-size: .86rem;
  color: #A8E9C6;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: .15rem; color: #4ADE94; }

/* Blocs contact */
.info-list { display: grid; gap: .2rem; }
.info-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-item .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  background: rgba(69, 180, 232, .06);
}
.info-item .ic svg { width: 17px; height: 17px; }
.info-item h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-bottom: .3rem; }
.info-item p, .info-item a { font-size: .95rem; color: var(--text); }
.info-item a:hover { color: var(--accent); }

/* Plan de situation stylisé (SVG maison : aucune dépendance, aucun WebGL) */
.map-embed {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 50% 40%, rgba(20, 86, 138, .28), transparent 62%),
    var(--ink-800);
}
.map-plan { width: 100%; height: auto; display: block; }
.mp-street { stroke: rgba(147, 175, 203, .16); stroke-width: 6; fill: none; stroke-linecap: round; }
.mp-block { fill: rgba(147, 175, 203, .045); stroke: rgba(147, 175, 203, .1); stroke-width: 1; }
.mp-axis {
  stroke: var(--accent);
  stroke-width: 11;
  fill: none;
  opacity: .5;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.mp-axis-label {
  fill: var(--accent-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .34em;
  opacity: .95;
}
.mp-dot { fill: #fff; filter: drop-shadow(0 0 9px var(--accent)); }
.mp-pulse { fill: none; stroke: var(--accent); stroke-width: 1.4; transform-origin: center; opacity: 0; }
.mp-lead { stroke: rgba(147, 175, 203, .5); stroke-width: 1; }
.mp-tag { fill: rgba(6, 11, 20, .9); stroke: var(--line-strong); stroke-width: 1; }
.mp-tag-t {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-anchor: middle;
}
.mp-tag-s { fill: var(--text-dim); font-size: 10px; text-anchor: middle; }

.map-embed.is-in .mp-pulse { animation: mpPulse 3.2s var(--ease-out) infinite; }
.map-embed.is-in .mp-pulse--2 { animation-delay: 1.6s; }
@keyframes mpPulse {
  0% { transform: scale(.5); opacity: .85; }
  75%, 100% { transform: scale(3.1); opacity: 0; }
}

.map-actions {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.map-actions .btn { background: rgba(6, 11, 20, .82); }
@media (max-width: 680px) {
  .map-actions {
    position: static;
    padding: 1rem;
    border-top: 1px solid var(--line);
  }
}

/* Accordéon */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .3s var(--ease);
}
.acc-btn:hover { color: var(--accent); }
.acc-btn i {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform .45s var(--ease-out), border-color .3s var(--ease);
}
.acc-btn i::before, .acc-btn i::after {
  content: "";
  position: absolute;
  inset: 50% 30%;
  border-top: 1px solid currentColor;
  transform: translateY(-.5px);
  transition: transform .45s var(--ease-out);
}
.acc-btn i::after { transform: translateY(-.5px) rotate(90deg); }
.acc-btn[aria-expanded="true"] i { border-color: var(--accent); color: var(--accent); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] i::after { transform: translateY(-.5px) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: 1.4rem; font-size: .92rem; color: var(--text-soft); max-width: 72ch; }
.acc-btn[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }

/* 15. CTA ================================================================== */
.cta-band {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(20, 86, 138, .38), transparent 65%),
    linear-gradient(180deg, rgba(23, 41, 63, .6), rgba(6, 11, 20, .8));
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 175, 203, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 175, 203, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band .lead { margin: 0 auto 2.3rem; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* 16. FOOTER =============================================================== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1.3rem; }
.footer-brand p { font-size: .86rem; color: var(--text-dim); max-width: 34ch; line-height: 1.7; }
.footer-col h4 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.15rem;
}
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a {
  font-size: .87rem;
  color: var(--text-soft);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-dim);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom nav a:hover { color: var(--accent); }

/* 17. DIVERS =============================================================== */
.quote {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.02em;
}
.kv { display: grid; gap: 0; }
.kv-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.kv-row:last-child { border-bottom: 1px solid var(--line); }
.kv-row dt { color: var(--text-dim); }
.kv-row dd { color: var(--text); }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: .76rem;
  color: var(--text-soft);
  background: var(--surface);
}
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.aside-note {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: .88rem;
  color: var(--text-soft);
}
.aside-note strong { color: var(--text); font-weight: 500; }

/* 18. RESPONSIVE =========================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .secure-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav, .header-cta .btn { display: none; }
  .burger { display: grid; }
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .crm-body { grid-template-columns: 1fr; }
  .crm-side { display: none; }
}
@media (max-width: 680px) {
  .wrap, .wrap-narrow, .header-inner { width: min(100% - 2.2rem, var(--wrap)); }
  .grid-2, .grid-4, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .secure-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tl-step { grid-template-columns: 38px 1fr; gap: 1.1rem; }
  .tl-dot { width: 37px; height: 37px; font-size: .72rem; }
  .timeline::before, .timeline-progress { left: 18px; }
  .crm-kpis { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: 1fr; gap: .3rem; }
  .hero { min-height: auto; }
  .scroll-cue { display: none; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
}

/* 19. ACCESSIBILITÉ / MOUVEMENT RÉDUIT ===================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none; }
  .hero-fade { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
  .fr-link { stroke-dashoffset: 0; }
  .fr-node { opacity: 1; }
}

.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;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--brand-800);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-size: .85rem;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }
