/* ==========================================================================
   styles.css — TheGreenFlux
   Layout, composants, sections, modale, menu mobile, responsive, reduced-motion.
   S'appuie sur les tokens de tokens.css. Fidèle à docs/maquette.html.
   ========================================================================== */

/* ---- reset léger ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* ---- base typo ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.05;
}
p { margin: 0; }

/* ---- utilitaires ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad-inline); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flux-ink);
  font-weight: 500;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

html { scroll-behavior: smooth; }
/* Décalage d'ancre pour le header sticky */
section[id] { scroll-margin-top: 88px; }

:focus-visible { outline: 2px solid var(--flux); outline-offset: 2px; border-radius: 4px; }

/* ---- boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: 11px 18px; border-radius: var(--r-btn);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 79, 65, .7); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--flux); color: var(--flux-ink); }
/* Dark mode : le bouton primaire passe sur vert clair + texte sombre
   (fond forcé en dur pour un contraste garanti, sans ambiguïté d'évaluation). */
:root[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary { background: #39c79b; color: #06120E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #39c79b; color: #06120E; }
}

/* ==========================================================================
   header
   ========================================================================== */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}
header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 6px 24px -18px rgba(11, 79, 65, .5);
}
.bar { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: -.03em; white-space: nowrap;
  text-decoration: none; color: inherit;
  /* Le logotype fourni a un cache blanc opaque (fait pour fond coloré) :
     on l'assume en badge blanc soigné plutôt que de subir un rectangle brut. */
  padding: 5px 11px; border-radius: 11px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: box-shadow .2s ease;
}
.brand:hover { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--forest) 40%, transparent); }
.brand .gf { color: var(--forest); }
.brand svg { display: block; flex: none; }
.brand-logo { display: block; height: 30px; width: auto; }

nav.links { display: flex; gap: 26px; margin-left: auto; }
nav.links a {
  text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500;
  padding-block: 4px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.links a:hover,
nav.links a[aria-current="true"] { color: var(--ink); border-color: var(--flux); }

.langswitch {
  display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  overflow: hidden; font-family: var(--font-mono); font-size: .74rem;
}
.lang-btn {
  background: transparent; border: 0; color: var(--muted);
  padding: 6px 11px; cursor: pointer; font: inherit; letter-spacing: .06em;
}
.lang-btn[aria-pressed="true"] { background: var(--forest); color: #fff; }
:root[data-theme="dark"] .lang-btn[aria-pressed="true"],
:root:not([data-theme="light"]) .lang-btn[aria-pressed="true"] { background: #39c79b; color: #06120E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lang-btn[aria-pressed="true"] { background: #39c79b; color: #06120E; }
}

.bar .btn { padding: 9px 15px; }
.hide-sm { display: inline-flex; }

/* Hamburger (masqué au-dessus de 900px) */
.menu-toggle {
  display: none; position: relative; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; cursor: pointer; flex: none;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span { top: 50%; transform: translate(-50%, -50%); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero { background-image: var(--hero-ground); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px;
  align-items: center; padding-block: 70px 76px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.55rem); font-weight: 800; }
.hero h1 .accent { color: var(--forest); }
.lead { margin-top: 22px; font-size: 1.14rem; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.kpis { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi b {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500;
  color: var(--flux-ink); letter-spacing: -.01em;
}
.kpi span { font-size: .82rem; color: var(--muted); }

/* ---- console mock ---- */
.console {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-card-lg); box-shadow: var(--shadow); overflow: hidden;
}
.console-top {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--flux); position: relative; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--flux); opacity: .6; animation: ring 2s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(.5); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}
.console-top .t { font-family: var(--font-mono); font-size: .78rem; color: var(--ink); font-weight: 500; }
.console-top .ex {
  margin-left: auto; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px;
}
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.bin {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: color-mix(in srgb, var(--signal) 12%, transparent);
}
.row .meta { min-width: 0; }
.row .meta .id { font-family: var(--font-mono); font-size: .86rem; font-weight: 500; display: block; }
.row .meta .loc {
  font-size: .78rem; color: var(--muted); display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row .right { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.dwell { font-family: var(--font-mono); font-size: .9rem; font-variant-numeric: tabular-nums; }
.tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .05em;
  padding: 3px 8px; border-radius: var(--r-pill); text-transform: uppercase; font-weight: 500;
}
.tag.ok { background: color-mix(in srgb, var(--flux) 18%, transparent); color: var(--flux-ink); }
/* --amber-ink : ambre assombri pour garantir le contraste AA du texte du tag */
.tag.warn { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber-ink); }
.console-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--surface-2); }
.console-foot .lab { font-size: .78rem; color: var(--muted); }
.console-foot .val { font-family: var(--font-mono); font-size: 1.15rem; color: var(--forest); font-weight: 500; }

/* ---- dashboard héro enrichi ---- */
.dash-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--line);
}
.dash-kpi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dk-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dk-value { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); }
.dk-value [data-dash="rate"] { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dk-value i { font-style: normal; font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.dk-trend { font-family: var(--font-mono); font-size: .72rem; color: var(--flux-ink); }
.dash-spark { width: 130px; height: 52px; display: block; }
.spark-line { transition: none; }
.spark-dot { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--flux) 60%, transparent)); }

/* liste live : hauteur figée par le JS (3 lignes), overflow masqué → pas de
   variation de hauteur du tableau quand une ligne entre/sort. */
.dash-rows { position: relative; overflow: hidden; }
.dash-rows .row { transition: background .3s ease; }
.dash-rows .row.enter { animation: dash-row-in .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes dash-row-in {
  0% { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--flux) 10%, transparent); }
  100% { opacity: 1; transform: none; }
}
/* petit "flash" de mise à jour de la donnée */
.dash-rows .dwell.bump { animation: dash-bump .4s ease; }
@keyframes dash-bump { 0% { color: var(--flux-ink); transform: scale(1.12); } 100% { transform: none; } }
.dash-foot .val { display: flex; align-items: center; gap: 6px; }
.dash-foot .val [data-dash="tracked"] { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   carte de France — réseau géolocalisé animé (héro)
   ========================================================================== */
.map-head { margin: 56px 0 8px; text-align: center; }
.map-title {
  margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}

.fr-map {
  --c-wh: #004A7F; --c-ag: #FF6A00; --c-shop: #00C292;
  position: relative; width: 100%; max-width: 620px; margin: 0 auto;
  aspect-ratio: 500 / 510;
}
.fr-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* silhouette France */
.fr-land {
  fill: color-mix(in srgb, var(--forest) 14%, var(--surface));
  stroke: color-mix(in srgb, var(--forest) 55%, transparent);
  stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
}

/* routes + traînées */
.fr-routes path { stroke: var(--line-strong); stroke-width: 1.6; stroke-dasharray: 2 7; opacity: .5; stroke-linecap: round; }
.fr-flow { stroke-width: 2.4; stroke-linecap: round; opacity: .9;
  stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
/* trunk (Lyon → agences) : orange agence */
.fr-flow[data-flow^="lyon-"] { stroke: var(--c-ag); }
/* leaf (agence → magasin) : vert magasin */
.fr-flow[data-flow^="paris-"],
.fr-flow[data-flow^="bordeaux-"],
.fr-flow[data-flow^="lille-"],
.fr-flow[data-flow^="marseille-"],
.fr-flow[data-flow^="rennes-"] { stroke: var(--c-shop); }

/* camions */
.fr-trucks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fr-truck { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); will-change: transform; line-height: 1; }
.fr-truck.t-trunk { font-size: .95rem; }
.fr-truck.t-leaf { font-size: .78rem; }
.fr-truck.t-trunk i { color: var(--c-ag); }
.fr-truck.t-leaf i { color: var(--c-shop); }

/* sites géolocalisés */
.fr-sites { position: absolute; inset: 0; }
.fr-site {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 3; border: 0; background: none; padding: 0; cursor: pointer;
}
.fs-dot {
  display: grid; place-items: center; border-radius: 50%;
  width: 34px; height: 34px; font-size: .85rem; color: #fff;
  background: var(--sc, var(--forest));
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--sc, var(--forest)) 70%, transparent),
              0 0 0 4px color-mix(in srgb, var(--sc, var(--forest)) 16%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fr-site.s-wh   { --sc: var(--c-wh); }
.fr-site.s-ag   { --sc: var(--c-ag); }
.fr-site.s-shop { --sc: var(--c-shop); }
.fr-site.s-wh .fs-dot { width: 42px; height: 42px; font-size: 1rem; }
.fr-site.s-shop .fs-dot { width: 28px; height: 28px; font-size: .72rem; }
.fr-site:hover .fs-dot, .fr-site:focus-visible .fs-dot,
.fr-site.active .fs-dot { transform: scale(1.12);
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--sc) 80%, transparent),
              0 0 0 6px color-mix(in srgb, var(--sc) 22%, transparent); }
/* halo « live » sur l'entrepôt */
.fr-site.s-wh .fs-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--c-wh); animation: fr-ping 2.4s ease-out infinite;
}
@keyframes fr-ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.1); opacity: 0; } }

/* popup */
.fr-popup {
  position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 14px));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow); padding: 9px 13px; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px; white-space: nowrap;
  animation: fr-pop .18s ease both;
}
.fr-popup[hidden] { display: none; }
.fr-popup::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--surface);
  filter: drop-shadow(0 1px 0 var(--line-strong));
}
@keyframes fr-pop { from { opacity: 0; transform: translate(-50%, calc(-100% - 8px)); } }
.fr-popup .fp-name { font-family: var(--font-display); font-size: .88rem; font-weight: 600; }
.fr-popup .fp-type { font-size: .74rem; color: var(--muted); }
.fr-popup .fp-stock { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: 3px; }
.fr-popup .fp-count { color: var(--forest); font-weight: 500; }

/* labels permanents sous les sites (mobile : pas de survol) */
.fr-site .fs-label { display: none; }

@media (max-width: 640px) {
  .fr-map { max-width: 420px; }
  .fs-dot { width: 30px; height: 30px; }
  .fr-site.s-wh .fs-dot { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .fr-site.s-wh .fs-dot::after { animation: none; }
  .fr-popup { animation: none; }
  .fr-flow { stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   sections & sec-head
   ========================================================================== */
section { padding-block: 78px; }
.sec-head { max-width: 60ch; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; margin-top: 12px; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }

/* ---- references (préparé, masqué en HTML) ---- */
.refs .sec-head { margin-bottom: 28px; }
.ref-logos {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center;
}
.ref-logos li {
  font-family: var(--font-mono); font-size: .9rem; color: var(--muted);
  opacity: .7; transition: opacity .2s ease, color .2s ease;
}
.ref-logos li:hover { opacity: 1; color: var(--ink); }

/* ---- en-tête piliers : texte à gauche + animation à droite ---- */
.pil-head {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  margin-bottom: 44px;
}

/* animation contextuelle (cycle des 3 piliers) */
.pil-anim {
  --pa: var(--flux); /* couleur d'accent du pilier actif, pilotée par le JS */
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  justify-self: center;
}
.pa-orbit { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
/* anneaux qui pulsent */
.pa-ring {
  position: absolute; inset: 30px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--pa) 40%, transparent);
  animation: pa-pulse 3s ease-out infinite;
}
.pa-ring2 { inset: 12px; animation-delay: 1.5s; opacity: .6; }
@keyframes pa-pulse {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.15); opacity: 0; }
}
/* noyau central : affiche l'icône du pilier actif */
.pa-core {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--pa) 55%, transparent),
              inset 0 0 0 6px color-mix(in srgb, var(--pa) 10%, transparent);
  transition: box-shadow .4s ease;
}
.pa-core i {
  position: absolute; font-size: 2rem; color: var(--pa);
  opacity: 0; transform: scale(.6) rotate(-20deg);
  transition: opacity .4s ease, transform .4s ease, color .4s ease;
}
.pa-core i.on { opacity: 1; transform: none; }
/* satellites : les 3 piliers en orbite */
.pa-sat {
  position: absolute; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(11,79,65,.4); transition: transform .4s ease, filter .4s ease;
}
.pa-sat0 { top: 2px; left: 50%; transform: translateX(-50%); background: var(--flux); }
.pa-sat1 { bottom: 22px; right: 2px; background: var(--forest); }
.pa-sat2 { bottom: 22px; left: 2px; background: var(--signal); }
.pa-sat.active { filter: none; transform: translateX(-50%) scale(1.18); }
.pa-sat1.active, .pa-sat2.active { transform: scale(1.18); }
.pa-sat:not(.active) { filter: saturate(.5) opacity(.55); }
/* label qui change */
.pa-label { position: relative; height: 1.6em; width: 100%; text-align: center; }
.pa-label b {
  position: absolute; inset: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: var(--pa); letter-spacing: -.02em;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
}
.pa-label b.on { opacity: 1; transform: none; }
/* points indicateurs */
.pa-dots { display: flex; gap: 8px; }
.pa-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong); transition: background .3s ease, transform .3s ease;
}
.pa-dot.active { background: var(--pa); transform: scale(1.35); }

@media (max-width: 900px) {
  .pil-head { grid-template-columns: 1fr; gap: 28px; }
  .pil-anim { order: -1; } /* animation au-dessus du texte sur mobile */
}
@media (prefers-reduced-motion: reduce) {
  .pa-ring { animation: none; opacity: .3; }
  .pa-core i, .pa-label b { transition: none; }
}

/* ---- pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Le hover doit battre `[data-reveal].in { transform:none }` (même spécificité,
   déclaré plus loin) : on ajoute [data-reveal] pour passer devant dans la cascade. */
.pillar[data-reveal]:hover,
.pillar:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 1px 2px rgba(11,79,65,.06),
    0 26px 50px -20px color-mix(in srgb, var(--accent) 55%, transparent);
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent, var(--flux)); transition: width .25s ease;
}
.pillar:hover::before { width: 7px; }
/* halo diffus à l'accent, révélé au survol */
.pillar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  transition: opacity .25s ease;
}
.pillar:hover::after { opacity: 1; }
.pillar.p1 { --accent: var(--flux); }
.pillar.p2 { --accent: var(--forest); }
.pillar.p3 { --accent: var(--signal); }
.p-ico {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 18px;
  color: var(--accent); font-size: 1.15rem;
  transition: transform .25s ease, background .25s ease;
}
.pillar:hover .p-ico {
  transform: scale(1.08);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.p-verb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pillar h3 { font-size: 1.32rem; font-weight: 700; margin-top: 6px; }
.pillar .pd { color: var(--muted); margin-top: 12px; font-size: .98rem; }
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.pillar li { position: relative; padding-left: 22px; font-size: .92rem; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* ---- proof / chart ---- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.proof-intro { color: var(--muted); margin-top: 16px; font-size: 1.06rem; max-width: 46ch; }
.proof-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-lg);
  padding: 30px 30px 22px; box-shadow: var(--shadow);
}
.proof-card h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-display); }
.chart-cap { font-size: .78rem; color: var(--muted); margin-top: 4px; }
figure { margin: 0; }
.chart { width: 100%; height: auto; display: block; margin-top: 14px; }
.chart text { font-family: var(--font-mono); fill: var(--muted); }
/* .chart-line : cible du tracé animé (E7) ; par défaut visible tel quel */
.chart-line { }
.flow { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.flow .step { display: flex; gap: 14px; align-items: flex-start; }
.flow .dot {
  font-family: var(--font-mono); font-size: .8rem; color: var(--flux-ink);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; flex: none; font-weight: 500;
}
.flow .step b { font-family: var(--font-display); font-weight: 600; }
.flow .step p { color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   cycle du réutilisable — réseau logistique (largeur = wrap)
   ========================================================================== */
#cycle { padding-block: 78px; }

/* Stage : ratio fixe pour superposer SVG (routes) et sites HTML */
.cycle-net {
  position: relative; margin-top: 28px;
  aspect-ratio: 1120 / 640;
  border: 1px solid var(--line); border-radius: var(--r-card-lg);
  background:
    radial-gradient(90% 120% at 15% 50%, color-mix(in srgb, var(--forest) 6%, transparent), transparent 55%),
    radial-gradient(70% 100% at 85% 50%, color-mix(in srgb, var(--signal) 5%, transparent), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.cycle-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- palette dédiée au réseau (couleurs par site) ---- */
.cycle-net {
  --c-wh: #004A7F;   /* Entrepôt */
  --c-agN: #FF6A00;  /* Agence Nord */
  --c-agS: #01C0C8;  /* Agence Sud */
  --c-shA: #00C292;  /* Magasins A */
  --c-shB: #03A9F3;  /* Magasins B */
}

/* routes (fond) : colorées par branche + flèche assortie (marker par branche) */
.cyc-routes path { stroke-width: 2.5; stroke-dasharray: 3 9; opacity: .55; stroke-linecap: round; }
#r-wa { stroke: var(--c-agN); marker-end: url(#arr-agN); }
#r-wb { stroke: var(--c-agS); marker-end: url(#arr-agS); }
/* magasins : pas de flèche (la route entre sous la tuile, qui EST la destination) */
#r-a1, #r-a2 { stroke: var(--c-shA); }
#r-b1, #r-b2 { stroke: var(--c-shB); }

/* traînées animées (même couleur, plus vive) */
.cyc-flow { stroke-width: 4; stroke-linecap: round; opacity: .95;
  /* la longueur réelle est posée par le JS via --len ; on masque puis on révèle */
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600);
}
.cyc-flow[data-flow="wa"] { stroke: var(--c-agN); }
.cyc-flow[data-flow="wb"] { stroke: var(--c-agS); }
.cyc-flow[data-flow="a1"], .cyc-flow[data-flow="a2"] { stroke: var(--c-shA); }
.cyc-flow[data-flow="b1"], .cyc-flow[data-flow="b2"] { stroke: var(--c-shB); }

/* camions en HTML (icônes FA), positionnés en px par le JS */
.cyc-trucks-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cyc-truck {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: grid; place-items: center; line-height: 1;
  transform: translate(-50%, -50%);
}
.cyc-truck i { display: block; }
.cyc-truck.t-big   { font-size: 1.5rem; }
.cyc-truck.t-small { font-size: 1.15rem; }
/* teinte par branche : trunk = couleur de l'agence, leaf = couleur du magasin */
.cyc-truck[data-truck="wa"] i { color: var(--c-agN); }
.cyc-truck[data-truck="wb"] i { color: var(--c-agS); }
.cyc-truck[data-truck="a1"] i, .cyc-truck[data-truck="a2"] i { color: var(--c-shA); }
.cyc-truck[data-truck="b1"] i, .cyc-truck[data-truck="b2"] i { color: var(--c-shB); }

/* ---- sites HTML positionnés ---- */
.cyc-sites { position: absolute; inset: 0; }
.cyc-site {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 12px;
  box-shadow: 0 6px 20px -14px rgba(11,79,65,.5);
  text-align: center; width: max-content; max-width: 220px;
  box-sizing: border-box;
}
/* Pulse à l'arrivée d'un camion : on anime le BADGE (halo), jamais la carte —
   la carte porte `transform: translate(-50%,-50%)` pour son positionnement, et
   y appliquer une `animation` casse son layout flex. Le badge, lui, est neutre. */
.cyc-site.is-pulse .cs-badge { animation: cyc-pulse .7s ease; }
@keyframes cyc-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flux) 55%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 12px transparent; }
}
/* nom du site (au-dessus de l'icône) */
.cs-name { font-family: var(--font-display); font-size: .9rem; font-weight: 600; line-height: 1.12; white-space: nowrap; }
/* Couleur propre à chaque site (--sc), héritée par le badge et le compteur. */
.cyc-site[data-site="wh"]   { --sc: var(--c-wh); }
.cyc-site[data-site="agA"]  { --sc: var(--c-agN); }
.cyc-site[data-site="agB"]  { --sc: var(--c-agS); }
.cyc-site[data-site="shA1"],
.cyc-site[data-site="shA2"] { --sc: var(--c-shA); }
.cyc-site[data-site="shB1"],
.cyc-site[data-site="shB2"] { --sc: var(--c-shB); }

/* icône du site (au centre) — dimensions garanties, indépendantes du chargement FA */
.cs-badge {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 12px;
  font-size: 1.2rem; line-height: 1;
  color: var(--sc, var(--forest));
  background: color-mix(in srgb, var(--sc, var(--forest)) 14%, transparent);
}
.cs-badge svg { width: 1em; height: 1em; display: block; }
.cs-badge i { display: inline-block; min-width: 1em; min-height: 1em; }
/* compteur (sous l'icône) */
.cs-count { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.cs-count [data-count] { color: var(--sc, var(--forest)); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Entrepôt : badge un peu plus grand */
.s-wh .cs-badge { width: 52px; height: 52px; flex: 0 0 52px; font-size: 1.35rem; }

/* ---- bandeau KPI réseau ---- */
.cyc-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px;
}
.cyc-kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center;
}
.cyc-kpi .ck-ico { grid-row: 1 / span 2; color: var(--flux-ink); font-size: 1.25rem;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  background: color-mix(in srgb, var(--flux) 12%, transparent); }
.cyc-kpi .ck-ico svg, .cyc-kpi .ck-ico i { width: 1em; height: 1em; }
.cyc-kpi b { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; line-height: 1;
  color: var(--forest); font-variant-numeric: tabular-nums; }
.cyc-kpi span { color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .cycle-net { aspect-ratio: 1000 / 620; }
  .cyc-kpis { grid-template-columns: repeat(2, 1fr); }
  .cyc-site { max-width: 52%; padding: 8px 10px; gap: 9px; }
  .cs-badge { width: 36px; height: 36px; font-size: .95rem; }
  .cs-info b { font-size: .86rem; }
  .cs-count { font-size: .74rem; }
}
@media (max-width: 560px) {
  /* Réseau condensé : on masque les libellés de comptage secondaires */
  .cycle-net { aspect-ratio: 3 / 4; }
  .cyc-kpis { grid-template-columns: 1fr 1fr; }
  .cs-count em { display: none; }
}

/* ---- reg band ---- */
.band { background: var(--forest); color: #eafff6; border-radius: var(--r-band); padding: 48px 44px; }
.band h2 { color: inherit; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; max-width: 20ch; }
.band .band-eyebrow { color: inherit; opacity: .85; }
.band p { margin-top: 14px; color: color-mix(in srgb, #eafff6 78%, transparent); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
  font-family: var(--font-mono); font-size: .8rem; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, #eafff6 30%, transparent); color: #eafff6;
}
/* Band en mode sombre : surface au lieu du vert plein */
:root[data-theme="dark"] .band,
:root:not([data-theme="light"]) .band {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); color: var(--ink);
}
:root[data-theme="dark"] .band p,
:root:not([data-theme="light"]) .band p { color: var(--muted); }
:root[data-theme="dark"] .chip,
:root:not([data-theme="light"]) .chip { border-color: var(--line-strong); color: var(--flux-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-strong); color: var(--ink);
  }
  :root:not([data-theme="light"]) .band p { color: var(--muted); }
  :root:not([data-theme="light"]) .chip { border-color: var(--line-strong); color: var(--flux-ink); }
}

/* ---- band : version 2 colonnes (texte + animation conformité) ---- */
.band-split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.band-copy h2 { margin-top: 12px; }

/* Animation conformité : la donnée TGF « prouve » chaque obligation.
   Carte auto-portée (fond clair propre) → lisible que la band soit verte ou claire. */
.cfm-anim {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.cfm-source {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--flux-ink); padding-bottom: 4px;
}
.cfm-src-ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px;
  background: color-mix(in srgb, var(--flux) 16%, transparent); color: var(--flux-ink); font-size: 1.05rem;
  position: relative;
}
/* halo pulsant sur la source de donnée */
.cfm-src-ico::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--flux) 55%, transparent);
  animation: cfm-pulse 2.6s ease-out infinite;
}
@keyframes cfm-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flux) 45%, transparent); }
  70%,100% { box-shadow: 0 0 0 12px transparent; }
}

.cfm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cfm-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
}
.cfm-ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: .95rem;
  transition: transform .35s ease;
}
.cfm-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.2; }
.cfm-body b { font-size: .95rem; color: var(--ink); }
.cfm-body em {
  font-style: normal; font-size: .74rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cfm-check {
  margin-left: auto; flex: none; color: var(--c); font-size: 1.05rem;
  opacity: 0; transform: scale(.6); transition: opacity .35s ease, transform .35s ease;
}
/* état « prouvé » : l'obligation validée par la donnée */
.cfm-item.on {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 8%, var(--surface));
  transform: translateX(3px);
}
.cfm-item.on .cfm-ico { transform: scale(1.08); }
.cfm-item.on .cfm-check { opacity: 1; transform: scale(1); }

.cfm-foot {
  display: flex; align-items: center; gap: 9px; margin-top: 2px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--flux-ink);
}
.cfm-foot i { color: var(--flux); }

@media (max-width: 900px) {
  .band-split { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- cta ---- */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 18ch; margin: 0 auto; }
.cta p:not(.note) { margin: 18px auto 0; color: var(--muted); max-width: 46ch; font-size: 1.06rem; }
.cta .hero-cta { justify-content: center; }
.cta .note { margin-top: 20px; font-size: .82rem; color: var(--muted); }
.cta .note a { color: var(--flux-ink); text-decoration: none; border-bottom: 1px solid transparent; }
.cta .note a:hover { border-color: var(--flux); }

/* ==========================================================================
   footer
   ========================================================================== */
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: .86rem; }
.foot { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; align-items: center; }
.foot .brand { color: var(--ink); }
.foot-base { flex: 1 1 auto; }
/* Réseaux sociaux : boutons ronds, icônes FA (marques) */
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); font-size: .95rem;
  text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.foot-social a:hover {
  color: var(--forest); border-color: color-mix(in srgb, var(--forest) 45%, transparent);
  background: color-mix(in srgb, var(--flux) 10%, transparent); transform: translateY(-2px);
}
.foot-legal { display: flex; gap: 18px; }
.foot-legal a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot-legal a:hover { color: var(--ink); border-color: var(--flux); }

/* ==========================================================================
   pages légales
   ========================================================================== */
.legal { max-width: 760px; padding-block: 56px 78px; }
.legal .back {
  display: inline-block; margin-bottom: 24px; font-family: var(--font-mono);
  font-size: .8rem; color: var(--flux-ink); text-decoration: none;
}
.legal .back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: .86rem; font-family: var(--font-mono); }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 40px; }
.legal h3 { font-size: 1.02rem; font-weight: 600; margin-top: 24px; }
.legal p, .legal li { color: var(--ink); font-size: .98rem; line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--flux-ink); }
.legal .todo {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber);
}

/* ==========================================================================
   menu mobile
   ========================================================================== */
.mobile-menu { position: fixed; inset: 0; z-index: 60; }
.mobile-menu[hidden] { display: none; }
.mobile-menu::before {
  content: ""; position: absolute; inset: 0; background: var(--backdrop);
  backdrop-filter: blur(2px); animation: fade .18s ease both;
}
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 82vw);
  background: var(--surface); border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow); padding: 84px 24px 24px;
  display: flex; flex-direction: column; gap: 8px;
  animation: slide-in .22s ease both;
}
.mobile-menu-panel a {
  text-decoration: none; color: var(--ink); font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu-panel .btn { margin-top: 14px; }
.mobile-menu-panel .langswitch { margin-top: 16px; align-self: flex-start; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   modale de contact
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute; inset: 0; background: var(--backdrop);
  backdrop-filter: blur(2px); animation: fade .18s ease both;
}
.modal-panel {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card-lg);
  box-shadow: var(--shadow); padding: 32px 30px 28px;
  animation: modal-in .2s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  color: var(--muted); font-size: 1rem; line-height: 1;
}
.modal-close:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.modal-panel h2 { font-size: 1.5rem; font-weight: 700; padding-right: 32px; }
.modal-panel > p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---- modale de progression (spinner → succès) ---- */
.modal-progress { z-index: 80; } /* au-dessus de la modale de contact (70) */
.modal-progress-panel {
  width: min(420px, 100%); text-align: center; padding: 40px 32px 34px;
}
.modal-progress-panel h2 { padding-right: 0; }
.cp-state { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-state[hidden] { display: none; } /* l'attribut hidden doit battre display:flex */
.cp-state h2 { margin-top: 20px; }
.cp-state p { margin-top: 8px; color: var(--muted); font-size: .95rem; max-width: 34ch; }

/* Spinner d'attente */
.cp-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--line-strong);
  border-top-color: var(--flux);
  animation: cp-spin .8s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* Coche de succès (cercle + tracé animés) */
.cp-check svg { display: block; }
.cp-check circle { stroke: var(--flux); stroke-width: 3; }
.cp-check path {
  stroke: var(--flux); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: cp-draw .45s .1s ease forwards;
}
.cp-success .cp-check {
  animation: cp-pop .35s ease both;
  color: var(--flux);
}
@keyframes cp-draw { to { stroke-dashoffset: 0; } }
@keyframes cp-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--flux);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--flux) 18%, transparent);
}
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--ink); }
.contact-form .consent input { flex: none; margin-top: 2px; }
.contact-form .btn { margin-top: 6px; }
/* honeypot : invisible pour l'humain, présent pour les bots */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* messages de validation / statut */
.contact-form label.invalid input,
.contact-form label.invalid textarea { border-color: var(--signal); }
.contact-form label .err { color: var(--signal); font-size: .74rem; display: none; }
.contact-form label.invalid .err { display: block; }
.form-status { margin-top: 4px; font-size: .86rem; min-height: 1.2em; }
.form-status.ok { color: var(--flux-ink); }
.form-status.err { color: var(--signal); }

/* états d'envoi */
.contact-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.contact-form.is-sending input,
.contact-form.is-sending textarea { opacity: .7; }

/* ==========================================================================
   états d'animation (activés par le JS en E7 ; sans JS, contenu visible)
   ========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  /* Échelonnement optionnel via --i (index) posé sur l'élément */
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Tracé de la courbe (A5) : la ligne se dessine quand .draw est ajouté par le JS */
.chart-line.draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.1s ease;
}
.chart-line.draw.in { stroke-dashoffset: 0; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 52px 60px; }
  .proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; }
  nav.links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: var(--pad-inline-sm); }
  .hide-sm { display: none; }
  .kpis { gap: 20px; }
  .band { padding: 34px 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .brand-logo { height: 28px; }
}

/* ==========================================================================
   accessibilité : mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
  .btn:hover, .pillar:hover, .pillar[data-reveal]:hover { transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .chart-line.draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; transition: none; }
  .modal-panel, .modal-overlay,
  .mobile-menu::before, .mobile-menu-panel { animation: none; }
  /* modale de progression : spinner figé mais visible, coche affichée sans tracé */
  .cp-spinner { animation: none; border-top-color: var(--flux); }
  .cp-success .cp-check { animation: none; }
  .cp-check path { animation: none; stroke-dashoffset: 0; }
  /* cycle réseau : état statique lisible (camions à mi-parcours, pas d'animation) */
  .cyc-site.is-pulse .cs-badge { animation: none; }
  .cyc-flow { stroke-dashoffset: 0 !important; }
  /* conformité : toutes les obligations affichées « prouvées », sans cycle ni pulse */
  .cfm-src-ico::after { animation: none; }
  .cfm-item { transition: none; }
  .cfm-item .cfm-check { opacity: 1; transform: none; }
  .cfm-item {
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
    background: color-mix(in srgb, var(--c) 8%, var(--surface));
  }
}
