/* ==========================================================================
   NOWVE — « Feu vert » · papier d'étude & voyants
   Le site est la planche du bureau d'études où l'on conçoit votre équipe :
   papier millimétré, cotations, tampons, fiches épinglées, cartouche.
   Le vert est un état (ça tourne), le rouge une panne (ça bloque).
   ========================================================================== */

:root {
  /* — les matières — */
  --papier: #F7FAF4;
  --papier-creux: #EEF4EA;
  --vert-eau: #DCF1DE;
  --vert: #93E29F;
  --sapin: #0C2C1D;
  --sapin-nuit: #071A11;
  --encre: #10150F;

  /* — déclinaisons — */
  --vert-appuye: #6FCE81;
  --vert-franc: #1E7A46;
  --rouge-voyant: #E0453A;

  /* — encres translucides — */
  --trait: rgba(16, 21, 15, 0.16);
  --encre-douce: rgba(16, 21, 15, 0.62);
  --papier-doux: rgba(247, 250, 244, 0.66);
  --craie-verte: rgba(147, 226, 159, 0.30);
  --lueur-verte: rgba(147, 226, 159, 0.35);
  --quadrille: rgba(30, 122, 70, 0.07);
  --quadrille-fort: rgba(30, 122, 70, 0.13);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --font-body: 'Nunito', 'Helvetica Neue', sans-serif;
  --font-mono: 'Fragment Mono', 'Courier New', monospace;

  /* — mouvement — */
  --vif: 160ms;
  --net: 320ms;
  --pose: 640ms;
  --ease-machine: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-tampon: cubic-bezier(0.2, 1.4, 0.3, 1);
  --ease-frein: cubic-bezier(0.6, 0, 0.2, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* pas de scroll-padding-top : le header se masque au scroll (is-hidden), donc
     chaque saut d'ancre doit poser la section pile en haut de l'écran */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--papier);
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--vert); color: var(--encre); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--vert-franc);
  outline-offset: 3px;
}
.plaque--sapin :focus-visible,
.plaque--sapin-nuit :focus-visible,
.menu-mobile :focus-visible { outline-color: var(--vert); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; }

img, svg { max-width: 100%; }

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

.lead { font-size: 1.15rem; font-weight: 500; }

/* Cartes : le survol du texte garde la flèche, jamais le curseur de saisie */
.bristol,
.fiche-int,
.station,
.agent-card { cursor: default; }

.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;
}

/* ---------- marquage : le label stencil ---------- */

.marquage {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.marquage::before,
.marquage::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  vertical-align: baseline;
}
.marquage::before {
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  margin-right: 0.6em;
  transform: translateY(-0.18em);
}
.marquage::after {
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  margin-left: 0.6em;
  transform: translateY(0.18em);
}

/* ---------- voyant : la ponctuation lumineuse ---------- */

.voyant {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 10px var(--lueur-verte);
}
.voyant--off {
  background: transparent;
  border: 1px solid var(--trait);
  box-shadow: none;
}
.voyant--rouge {
  background: var(--rouge-voyant);
  box-shadow: 0 0 8px rgba(224, 69, 58, 0.4);
}

/* ---------- accentuation (remplace l'italique) ---------- */

/* niveau 1 — le coup de surligneur */
mark.surligne {
  background: transparent;
  color: inherit;
  position: relative;
}
mark.surligne::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0.14em -0.16em 0.02em -0.2em;
  background: var(--vert);
  opacity: 0.85;
  clip-path: polygon(1% 9%, 52% 3%, 99% 0%, 100% 58%, 97% 95%, 48% 100%, 2% 94%, 0% 52%);
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease-frein) 1.05s;
}
body.is-loaded mark.surligne::before { transform: rotate(-1.2deg) scaleX(1); }

/* niveau 2 — les crochets de repérage (4 équerres, façon plan coté) */
.repere {
  position: relative;
  display: inline-block;
  padding: 0.06em 0.18em;
}
.repere::before, .repere::after,
.repere > b::before, .repere > b::after {
  content: '';
  position: absolute;
  width: 0.3em;
  height: 0.3em;
  border: 0 solid var(--vert-franc);
  transition: transform 0.24s var(--ease-machine), opacity 0.24s ease;
}
.repere::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.repere::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; transition-delay: 0.12s; }
.repere > b::before { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; transition-delay: 0.04s; }
.repere > b::after { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; transition-delay: 0.08s; }

.js [data-pose]:not(.is-in) .repere::before { opacity: 0; transform: translate(-5px, -5px); }
.js [data-pose]:not(.is-in) .repere::after { opacity: 0; transform: translate(5px, 5px); }
.js [data-pose]:not(.is-in) .repere > b::before { opacity: 0; transform: translate(5px, -5px); }
.js [data-pose]:not(.is-in) .repere > b::after { opacity: 0; transform: translate(-5px, 5px); }

/* niveau 3 — le double trait comptable */
.total {
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 0.045em, 100% 0.045em;
  background-position: 0 calc(100% - 0.1em), 0 100%;
  padding-bottom: 0.14em;
  transition: background-size 0.32s var(--ease-machine) 0.45s;
}
.js [data-pose]:not(.is-in) .total {
  background-size: 0% 0.045em, 0% 0.045em;
}

/* la panne — biffure rouge (le texte reste encre, seul le trait est rouge) */
.biffe { position: relative; white-space: nowrap; }
.biffe svg {
  position: absolute;
  left: -3%;
  top: 52%;
  width: 106%;
  height: 0.3em;
  transform: translateY(-50%) rotate(-2deg);
  overflow: visible;
  pointer-events: none;
}
.biffe path {
  fill: none;
  stroke: var(--rouge-voyant);
  stroke-width: 2.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.7, 0, 0.3, 1) 1.3s;
}
body.is-loaded .biffe path { stroke-dashoffset: 0; }

/* ---------- grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9600;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- fil d'avancement : la page se coud en vert ---------- */

.fil-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9000;
  background: transparent;
  pointer-events: none;
}
#fil-plein {
  display: block;
  height: 100%;
  background: var(--vert-franc);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- boutons pilules ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
}
.btn-int {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre);
  background: var(--vert);
  box-shadow: 0 10px 24px -8px rgba(30, 122, 70, 0.55), 0 2px 5px -2px rgba(16, 21, 15, 0.15);
  transition: background var(--net) var(--ease-machine), box-shadow var(--net) var(--ease-machine), transform var(--net) var(--ease-machine);
}
.btn:hover .btn-int {
  background: var(--vert-appuye);
  box-shadow: 0 16px 32px -8px rgba(30, 122, 70, 0.6), 0 3px 7px -2px rgba(16, 21, 15, 0.18);
  transform: translateY(-2px);
}
.btn:active .btn-int {
  transform: translateY(0);
  box-shadow: 0 6px 16px -8px rgba(30, 122, 70, 0.5);
}
.btn:focus-visible { outline-offset: 4px; }

.btn--small .btn-int { padding: 0.62rem 1.35rem; font-size: 0.68rem; }

/* contact du bandeau : l'interrupteur principal du pupitre */
.btn--pupitre .btn-int {
  gap: 0.7rem;
  background: var(--sapin-nuit);
  color: var(--papier);
  box-shadow: 0 14px 30px -12px rgba(7, 26, 17, 0.6);
}
.btn--pupitre:hover .btn-int {
  background: var(--sapin);
  box-shadow: 0 18px 36px -12px rgba(7, 26, 17, 0.65), 0 0 0 1px rgba(147, 226, 159, 0.25);
}
.btn--pupitre:active .btn-int { box-shadow: 0 6px 16px -8px rgba(7, 26, 17, 0.5); }
.btn-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 10px var(--lueur-verte);
  animation: respiration 4s ease-in-out infinite;
}
.btn--pupitre:hover .btn-led { animation: none; box-shadow: 0 0 14px var(--vert); }

.btn--big .btn-int {
  padding: 1.15rem 2.7rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ---------- header « réglet » ---------- */

.site-head {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 8600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, transform 0.45s var(--ease-machine);
}
.site-head.is-scrolled {
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}
.site-head.is-hidden { transform: translateY(-120%); }

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic; /* seule italique autorisée : le logotype */
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.brand-voyant {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 8px var(--lueur-verte);
  animation: respiration 4s ease-in-out infinite;
}
@keyframes respiration {
  50% { opacity: 0.45; box-shadow: 0 0 3px var(--lueur-verte); }
}

.site-nav { display: flex; gap: 2.1rem; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--encre-douce);
  transition: color 0.2s ease;
}
.site-nav a::before {
  content: '\203A\00a0';
  color: var(--vert-franc);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.site-nav a::after {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 0.22em;
  background: var(--vert-franc);
  vertical-align: text-bottom;
  opacity: 0;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.actif { color: var(--encre); }
.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a.actif::before { opacity: 1; }
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  animation: curseur-clignote 1.1s steps(1, end) infinite;
}
@keyframes curseur-clignote { 50% { opacity: 0; } }

/* burger + menu mobile « mise sous tension » */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--trait);
  cursor: pointer;
}
.burger-trait {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--encre);
  transition: transform 0.3s var(--ease-machine), opacity 0.3s;
}
body.menu-ouvert .burger { border-color: var(--craie-verte); z-index: 8700; }
body.menu-ouvert .burger-trait { background: var(--papier); }
body.menu-ouvert .burger-trait:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-ouvert .burger-trait:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: var(--sapin);
  color: var(--papier);
  display: flex;
  align-items: center;
  padding: 2rem clamp(1.5rem, 6vw, 3rem);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .menu-mobile {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.menu-mobile ol {
  list-style: none;
  display: grid;
  gap: 1.4rem;
  width: 100%;
}
.menu-mobile li {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-machine);
}
.menu-mobile li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--craie-verte);
  transition: background 0.2s ease 0.3s, box-shadow 0.2s ease 0.3s, border-color 0.2s ease 0.3s;
}
body.menu-ouvert .menu-mobile li {
  opacity: 1;
  transform: none;
}
body.menu-ouvert .menu-mobile li::before {
  background: var(--vert);
  border-color: var(--vert);
  box-shadow: 0 0 10px var(--lueur-verte);
}
.menu-mobile li:nth-child(1) { transition-delay: 0.06s; }
.menu-mobile li:nth-child(2) { transition-delay: 0.14s; }
.menu-mobile li:nth-child(3) { transition-delay: 0.22s; }
.menu-mobile li:nth-child(4) { transition-delay: 0.30s; }
.menu-mobile li:nth-child(5) { transition-delay: 0.38s; }
.menu-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
}
.menu-mobile a .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--vert);
}

/* ---------- plaques & jonctions ---------- */

.plaque {
  position: relative;
  padding-block: clamp(6.5rem, 13vw, 11rem);
  border-top: 1px dashed var(--trait);
}
.plaque--papier { background: var(--papier); }
.plaque--vert-eau { background: var(--vert-eau); }
.plaque--verte { background: var(--vert); }
.plaque--sapin { background: var(--sapin); color: var(--papier); }
.plaque--sapin-nuit { background: var(--sapin-nuit); color: var(--papier); }
.plaque--sapin, .plaque--sapin-nuit { border-top-color: rgba(16, 21, 15, 0.35); }

.plaque--sapin .marquage,
.plaque--sapin-nuit .marquage { color: var(--papier-doux); }

/* ---------- cartes SaaS + liseré lumineux au survol ---------- */

.bristol,
.fiche-int,
.station {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--trait);
  border-radius: 18px;
  box-shadow:
    0 14px 34px -18px rgba(16, 21, 15, 0.30),
    0 2px 6px -2px rgba(16, 21, 15, 0.07);
  transition: transform 0.35s var(--ease-machine), box-shadow 0.35s var(--ease-machine);
}
.bristol:hover,
.fiche-int:hover,
.station:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 48px -20px rgba(16, 21, 15, 0.34),
    0 4px 10px -2px rgba(16, 21, 15, 0.10);
}
/* le liseré s'illumine près du curseur (position mise à jour en JS) */
[data-glow] { position: relative; }
[data-glow]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), var(--vert), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
[data-glow]:hover::before { opacity: 1; }

/* ---------- héros : la planche du bureau d'études ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 4.8rem;
  padding-bottom: 3.2rem;
  border-top: 0;
  overflow: hidden;
  background-color: #ffffff;
}
/* blanc de blanc + un très léger bruit vert */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.118 0 0 0 0 0.478 0 0 0 0 0.275 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23v)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.hero-recrue {
  margin-top: 0;
  margin-bottom: clamp(0.5rem, 1.4vh, 0.95rem);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-franc);
  opacity: 0;
  transition: opacity 1s ease 0.6s;
}
body.is-loaded .hero-recrue { opacity: 1; }

/* — la scène : robot en fig. 01 — */

.hero-scene {
  position: relative;
  width: min(680px, 92vw);
  height: clamp(266px, 42vh, 476px); /* robot +40% : la scène (donc le robot qui la remplit) grandit d'autant */
  /* on remonte le bloc robot + « recrue » + sous-texte + bouton : l'antenne peut
     affleurer le sous-titre, c'est assumé */
  margin-top: clamp(-2.8rem, -3vh, -1.4rem);
  margin-bottom: 0.1rem;
}

.hero-halo {
  position: absolute;
  inset: -10% -16%;
  background: radial-gradient(46% 56% at 50% 54%, var(--vert-eau) 0%, rgba(220, 241, 222, 0) 70%);
  pointer-events: none;
}

#robot-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s ease 0.25s, transform 1.8s var(--ease-machine) 0.25s;
}
body.is-loaded #robot-stage { opacity: 1; transform: none; }
#robot-stage canvas { display: block; width: 100%; height: 100%; }

#robot-ombre {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 266px;
  height: 32px;
  margin-left: -133px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 21, 15, 0.16), transparent 70%);
  animation: ombre-respire 5.464s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1.4s ease 0.6s;
  pointer-events: none;
}
body.is-loaded #robot-ombre { opacity: 1; }
@keyframes ombre-respire {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.86); }
}

/* — voile d'arrivée : le robot se pose avant que la planche n'apparaisse — */

.intro-veil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: #ffffff;
  transition: opacity 1.15s ease;
}
.intro-veil.is-active { display: block; }
.intro-veil.is-fin { opacity: 0; pointer-events: none; }

/* le sol : tiers inférieur, même vert que le halo, plus intense vers le bas */
.intro-sol {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(to bottom, rgba(220, 241, 222, 0) 0%, var(--vert-eau) 58%, #C7E8CE 100%);
}

/* l'ombre du robot en lévitation (pilotée par robot.js) */
.intro-ombre {
  position: absolute;
  left: 50%;
  top: 80%;
  width: 220px;
  height: 26px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 21, 15, 0.22), transparent 70%);
  opacity: 0;
}

/* pendant l'arrivée, la scène du robot couvre tout l'écran, au-dessus du voile */
#robot-stage.is-intro {
  position: fixed;
  inset: 0;
  z-index: 9110;
  opacity: 1;
  transform: none;
  transition: none;
}

/* après l'arrivée : le robot reste dans le MÊME canvas plein écran (aucun
   changement de contexte de rendu -> aucune variation de taille possible), calé
   sur la boîte .hero-scene et défilant avec elle. Sous le header/menu mobile. */
#robot-stage.is-hero-fixe {
  position: fixed;
  inset: 0;
  z-index: 8400;
  opacity: 1;
  transform: none;
  transition: none;
}

/* — titre, appui, CTA — */

.hero-title {
  position: relative;
  z-index: 1;
  /* le titre tient sur une seule ligne et remplit la largeur du conteneur */
  font-size: clamp(1.5rem, 7.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: clamp(0.5rem, 1.3vh, 1rem);
  white-space: nowrap;
  transform: translateY(10px);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.07em;
  margin-bottom: -0.07em;
}
.hero-title .line-inner {
  display: inline-block;
  transform: translateY(114%);
  transition: transform 1s var(--ease-machine);
}
.hero-title .line:nth-child(1) .line-inner { transition-delay: 0.42s; }
.hero-title .line:nth-child(2) .line-inner { transition-delay: 0.54s; }
.hero-title .line:nth-child(3) .line-inner { transition-delay: 0.7s; }
body.is-loaded .hero-title .line-inner { transform: translateY(0); }

.line--contre {
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0.85em;
  color: var(--encre-douce);
}

.hero-sub {
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--encre-douce);
  margin-bottom: clamp(0.7rem, 1.7vh, 1.2rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease 0.8s, transform 0.9s var(--ease-machine) 0.8s;
}
body.is-loaded .hero-sub { opacity: 1; transform: translateY(8px); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease 0.9s, transform 0.9s var(--ease-machine) 0.9s;
}
body.is-loaded .hero-cta { opacity: 1; transform: none; }

/* — budget LCP : pendant l'arrivée, le héros est peint tout de suite SOUS le
   voile (opaque) pour ne pas retarder le LCP ; script.js le re-masque sans
   transition (is-lcp-off) juste avant la vraie révélation, qui rejoue alors
   à l'identique — */
body.is-lcp .hero-title .line-inner,
body.is-lcp .hero-sub,
body.is-lcp .hero-cta,
body.is-lcp-off .hero-title .line-inner,
body.is-lcp-off .hero-sub,
body.is-lcp-off .hero-cta { transition: none; }
body.is-lcp .hero-title .line-inner { transform: translateY(0); }
body.is-lcp .hero-sub { opacity: 1; transform: translateY(8px); }
body.is-lcp .hero-cta { opacity: 1; transform: none; }

/* — la pointeuse : relevés de l'équipe de nuit — */

.pointeuse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  background: var(--papier);
  border-top: 1px dashed var(--trait);
  padding-block: 0.75rem;
  transform: translateY(102%);
  transition: transform 0.8s var(--ease-machine) 1.2s;
}
body.is-loaded .pointeuse { transform: none; }

.pointeuse-piste {
  display: flex;
  width: max-content;
  animation: pointeuse-defile 60s linear infinite;
}
.pointeuse:hover .pointeuse-piste { animation-play-state: paused; }
@keyframes pointeuse-defile { to { transform: translateX(-50%); } }

.pointeuse ul {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  padding-right: 2.8rem;
  list-style: none;
  flex: none;
}
.pointeuse li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
  white-space: nowrap;
}
.pointeuse .ok { color: var(--vert-franc); }
.pointeuse .alerte { color: var(--rouge-voyant); }

/* ---------- manifeste ---------- */

.manifeste-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: start;
}
.manifeste-grid h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.manifeste-copy { padding-top: 0.6rem; }
.manifeste-copy p { color: var(--encre-douce); max-width: 52ch; }
.manifeste-copy .lead {
  margin-bottom: 1.4rem;
  color: var(--encre);
}

/* — les trois fiches bristol épinglées — */

.bristols-band {
  position: relative;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px dashed var(--trait);
}
.bristols-eyebrow {
  position: absolute;
  top: -0.66em;
  left: 0;
  background: var(--papier);
  padding-right: 1rem;
}

.bristols {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.bristol { padding: 2rem 1.7rem 1.8rem; }
.bristol h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.bristol-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--vert-franc);
  margin: 0.45rem 0 1rem;
}
.bristol-body { color: var(--encre-douce); font-size: 0.96rem; max-width: 34ch; }

/* — grain d'atelier : les bristols en matière papier, ombre teintée sapin — */
.bristol {
  background: linear-gradient(178deg, #ffffff 0%, #F3F8F0 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 18px 40px -18px rgba(12, 44, 29, 0.35),
    0 2px 6px -2px rgba(12, 44, 29, 0.10);
}
.bristol:hover {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 28px 52px -20px rgba(12, 44, 29, 0.42),
    0 4px 10px -2px rgba(12, 44, 29, 0.12);
}
.bristol::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.118 0 0 0 0 0.478 0 0 0 0 0.275 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- postes : fiches de recrutement (cartes SaaS) ---------- */

.postes-title {
  max-width: 22ch;
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}

.fiches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
}
.fiche--phare { grid-column: 1 / -1; }

.fiche-int { height: 100%; }
.fiche-corps {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.7rem, 3.4vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem);
}
.fiche-corps > .fiche-outils { margin-top: auto; }

.fiche h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.8rem;
}
.fiche-corps > p {
  max-width: 56ch;
  color: var(--encre-douce);
  margin-bottom: 1.3rem;
}

.fiche-outils {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.fiche-outils li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px dashed var(--trait);
}

/* — fiche phare : le système agentique, offre la plus complète — */
.fiche--phare .fiche-corps {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.fiche--phare h3 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 0.9rem;
}
.fiche-phare-body {
  color: var(--encre-douce);
  max-width: 52ch;
}
.fiche-phare-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
}
.fiche-renvoi {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-franc);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-machine);
}
.fiche-renvoi:hover,
.fiche-renvoi:focus-visible { border-bottom-color: currentColor; }

/* — balayage de contrôle : la fiche Workflows est scannée puis tamponnée au survol — */
.fiche--controle .fiche-int { overflow: hidden; }
.fiche-scan {
  position: absolute;
  left: -4%; right: -4%; top: -12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--vert) 30%, var(--vert-appuye) 50%, var(--vert) 70%, transparent);
  box-shadow: 0 0 18px 3px var(--lueur-verte);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.fiche--controle .fiche-int:hover .fiche-scan { animation: fiche-balayage 0.85s ease-in-out forwards; }
@keyframes fiche-balayage {
  0% { top: -6%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 106%; opacity: 0; }
}
/* — grain d'atelier : les fiches agents en matière papier, ombre teintée sapin — */
.fiche--grain .fiche-int {
  background: linear-gradient(178deg, #ffffff 0%, #F3F8F0 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 18px 40px -18px rgba(12, 44, 29, 0.35),
    0 2px 6px -2px rgba(12, 44, 29, 0.10);
}
.fiche--grain .fiche-int:hover {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 28px 52px -20px rgba(12, 44, 29, 0.42),
    0 4px 10px -2px rgba(12, 44, 29, 0.12);
}
.fiche--grain .fiche-int::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.118 0 0 0 0 0.478 0 0 0 0 0.275 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}
.fiche--grain .fiche-corps { position: relative; z-index: 1; }

/* ---------- plaque RÈGLE Nº 1 ---------- */

.regle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(6rem, 12vw, 10rem);
  color: var(--encre);
}
/* halo de voyant : l'aplat vert devient une grande LED allumée (ton sur ton,
   plus clair sous les mots, à peine creusé vers les bords) — respire lentement */
.regle::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(125% 96% at 50% 45%,
      #E8F6EB 0%,
      #C8EED0 25%,
      var(--vert) 58%,
      #7CD68C 100%);
  animation: regle-souffle 7.5s ease-in-out infinite;
}
@keyframes regle-souffle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.regle-marquage {
  position: relative;
  z-index: 1;
  color: rgba(16, 21, 15, 0.55);
  display: block;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.regle-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.2vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.rq-line { display: block; }

/* ---------- système : la salle des machines ---------- */

/* Fond « encre nuit » (plus sombre que le sapin) : les voyants verts de la
   planche orbitale ressortent — la salle des machines vue de nuit. Halo vert
   diffus derrière le diagramme. Le Contact garde le sapin classique. */
#architecture.plaque--sapin {
  background:
    radial-gradient(55% 52% at 72% 44%, rgba(147, 226, 159, 0.09), rgba(147, 226, 159, 0) 62%),
    #0A1310;
}

.systeme-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.systeme-intro h2 { max-width: 15ch; margin-bottom: 2rem; }
.systeme-intro p { color: var(--papier-doux); max-width: 46ch; }
.systeme-intro .lead { color: var(--papier); margin-bottom: 1.4rem; }

/* — cadrage : sur desktop, la planche doit tenir dans un écran sans défiler
   (on y renvoie depuis la fiche « système agentique ») — */
@media (min-width: 961px) {
  #architecture.plaque {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: clamp(1.6rem, 4.5vh, 3.6rem);
  }
  /* colonne texte resserrée à gauche, la planche prend tout le reste à droite */
  #architecture .systeme-grid {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(1.6rem, 3vw, 3rem);
    align-items: center;
  }
  #architecture .systeme-intro h2 {
    font-size: clamp(1.75rem, 3vw, 2.9rem);
    max-width: 16ch;
    margin-bottom: 0.9rem;
  }
  #architecture .systeme-intro .lead,
  #architecture .systeme-intro p {
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 40ch;
  }
  #architecture .systeme-intro .lead { margin-bottom: 0.8rem; }
  #architecture .systeme-intro p:not(.lead) { margin-bottom: 0; }
  #architecture .journal {
    margin-top: 1.1rem;
    padding: 0.7rem 0.85rem 0.8rem;
  }
  #architecture .journal-titre { margin-bottom: 0.5rem; }
  /* cadre figé à sa taille maximale (6 lignes, fenêtre la plus haute mesurée) :
     il ne grandit ni ne rétrécit quand les relevés défilent */
  #architecture .journal-lignes { height: 12rem; gap: 0.4rem; overflow: hidden; }
  #architecture .journal-lignes li { line-height: 1.3; }
  /* la planche ~2× plus grande ; bornée par la hauteur d'écran pour tenir en un seul écran */
  #architecture .plate-wrap { max-width: min(820px, 84vh); margin-left: auto; }
}

/* — le journal de nuit — */

.journal {
  margin-top: 2.4rem;
  border: 1px dashed var(--craie-verte);
  padding: 1.05rem 1.15rem 1.15rem;
}
.journal-titre {
  font-size: 0.62rem;
  display: block;
  margin-bottom: 0.85rem;
}
.journal-lignes {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  min-height: 9.2em;
  align-content: start;
}
.journal-lignes li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--vert);
  animation: journal-in 0.3s var(--ease-machine);
}
.journal-lignes li .voyant { flex: none; width: 6px; height: 6px; transform: translateY(-1px); }
.journal-lignes li .journal-h { color: var(--papier-doux); }
@keyframes journal-in {
  from { opacity: 0; transform: translateX(-6px); }
}

/* — la planche orbitale (re-skin sapin/voyants) — */

.plate-wrap { width: 100%; max-width: 680px; margin-left: auto; }

/* conteneur de requête : toutes les tailles internes s'expriment en cqw
   (% de la largeur de la planche) → le diagramme scale d'un bloc, à toute taille */
.plate { position: relative; aspect-ratio: 1; container-type: inline-size; }

.plate-rings,
.plate-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pr-orbit { fill: none; stroke: var(--vert); opacity: 0.2; vector-effect: non-scaling-stroke; }

.plate-net .spoke {
  stroke: var(--papier);
  opacity: 0.22;
  stroke-dasharray: 3 7;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s, opacity 0.3s;
}
.plate-net .spoke.is-hot { stroke: var(--vert); opacity: 0.95; }
.plate-net .chord {
  stroke: var(--vert);
  opacity: 0.14;
  stroke-dasharray: 2 7;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.3s;
}
.plate-net .chord.is-hot { opacity: 0.85; }

.agent {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
}

.agent-tools {
  position: absolute;
  left: 0;
  top: 0;
  width: 108px;
  width: 15cqw;
  height: 108px;
  height: 15cqw;
  margin: -54px 0 0 -54px;
  margin: -7.5cqw 0 0 -7.5cqw;
  border: 1px dashed rgba(247, 250, 244, 0.22);
  border-radius: 50%;
  pointer-events: none;
  animation: toolspin 16s linear infinite;
}
.agent--core .agent-tools {
  width: 136px;
  width: 18.89cqw;
  height: 136px;
  height: 18.89cqw;
  margin: -68px 0 0 -68px;
  margin: -9.44cqw 0 0 -9.44cqw;
}
@keyframes toolspin { to { transform: rotate(360deg); } }

.agent-tool {
  position: absolute;
  width: 7px;
  width: 0.97cqw;
  height: 7px;
  height: 0.97cqw;
  background: var(--sapin);
  border: 1px solid rgba(247, 250, 244, 0.45);
  transform: rotate(45deg);
  transition: border-color 0.3s, background 0.3s;
}
.agent:hover .agent-tool,
.agent.is-open .agent-tool {
  border-color: var(--vert);
  background: rgba(147, 226, 159, 0.18);
}

.agent-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  width: 7.78cqw;
  height: 56px;
  height: 7.78cqw;
  margin: -28px 0 0 -28px;
  margin: -3.89cqw 0 0 -3.89cqw;
  border-radius: 50%;
  border: 1px solid rgba(147, 226, 159, 0.45);
  background: rgba(147, 226, 159, 0.09);
  box-shadow:
    0 0 16px rgba(147, 226, 159, 0.12),
    inset 0 0 10px rgba(147, 226, 159, 0.1);
  box-shadow:
    0 0 2.22cqw rgba(147, 226, 159, 0.12),
    inset 0 0 1.39cqw rgba(147, 226, 159, 0.1);
  color: var(--papier);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease-machine), color 0.3s var(--ease-machine), border-color 0.3s, box-shadow 0.3s;
}
.agent-node svg { width: 22px; height: 22px; }
.agent-node svg { width: 3.06cqw; height: 3.06cqw; }

.agent-node::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--vert);
  opacity: 0;
  pointer-events: none;
}
.agent.is-flash .agent-node::after { animation: agentflash 1s var(--ease-machine); }
@keyframes agentflash {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}

.agent.is-kin .agent-node { border-color: var(--vert); }
.agent.is-flash .agent-node { border-color: var(--vert); }
.agent:hover .agent-node,
.agent.is-open .agent-node {
  background: var(--vert);
  color: var(--encre);
  border-color: var(--vert);
  box-shadow:
    0 0 24px var(--lueur-verte),
    0 0 0 7px rgba(147, 226, 159, 0.12);
  box-shadow:
    0 0 3.33cqw var(--lueur-verte),
    0 0 0 0.97cqw rgba(147, 226, 159, 0.12);
}

.agent--core .agent-node {
  width: 78px;
  width: 10.83cqw;
  height: 78px;
  height: 10.83cqw;
  margin: -39px 0 0 -39px;
  margin: -5.42cqw 0 0 -5.42cqw;
  background: var(--vert);
  color: var(--encre);
  box-shadow: 0 0 26px var(--lueur-verte);
  box-shadow: 0 0 3.61cqw var(--lueur-verte);
}
.agent--core .agent-node svg { width: 30px; height: 30px; }
.agent--core .agent-node svg { width: 4.17cqw; height: 4.17cqw; }
.agent--core:hover .agent-node,
.agent--core.is-open .agent-node { background: var(--vert-appuye); }
.agent--core .agent-node::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--vert);
  opacity: 0;
  pointer-events: none;
  animation: agentflash 3.2s ease-out infinite;
}

.agent-label {
  position: absolute;
  top: 58px;
  top: 8.06cqw;
  left: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-size: 1.33cqw;
  letter-spacing: 0.14em;
  color: var(--papier-doux);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.3s;
}
.agent--core .agent-label { top: 74px; top: 10.28cqw; }
.agent:hover .agent-label,
.agent.is-open .agent-label { color: var(--vert); }

.plate-pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  width: 0.97cqw;
  height: 7px;
  height: 0.97cqw;
  margin: -3.5px 0 0 -3.5px;
  margin: -0.49cqw 0 0 -0.49cqw;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 10px var(--lueur-verte);
  box-shadow: 0 0 1.39cqw var(--lueur-verte);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

/* signal échangé entre deux sous-agents : plus menu que la délégation */
.plate-pulse--chord {
  width: 0.78cqw;
  height: 0.78cqw;
  margin: -0.39cqw 0 0 -0.39cqw;
  background: var(--vert-appuye);
  box-shadow: 0 0 1cqw var(--lueur-verte);
}

/* — fiche agent : papier épinglé sur le tableau sombre — */

.agent-card {
  position: absolute;
  width: 272px;
  background: var(--papier);
  color: var(--encre);
  border: 1px solid var(--encre);
  box-shadow: 6px 6px 0 rgba(147, 226, 159, 0.2);
  padding: 1.1rem 1.15rem 1.05rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease-machine);
  pointer-events: none;
  z-index: 40;
}
.agent-card.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.agent-card--sheet {
  left: 0.8rem !important;
  right: 0.8rem;
  bottom: 0.8rem;
  top: auto !important;
  width: auto;
}

.agent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
}
.agent-card-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.agent-card-live {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-franc);
}
.agent-card-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vert-franc);
  box-shadow: 0 0 6px var(--lueur-verte);
  margin-right: 0.45em;
  animation: livepulse 2.2s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.agent-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.agent-card-role {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--encre-douce);
  margin-bottom: 0.9rem;
}

.agent-spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.9rem;
  border-top: 1px dashed var(--trait);
  padding-top: 0.8rem;
}
.agent-spec dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
  padding-top: 0.15rem;
}
.agent-spec dd { font-family: var(--font-mono); font-size: 0.72rem; }
.agent-spec .spec-model { color: var(--vert-franc); }
.agent-spec .spec-flux { font-size: 0.64rem; color: var(--encre-douce); letter-spacing: 0.04em; }

.agent-card-tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.agent-card-tools li {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.26rem 0.5rem;
  border: 1px dashed var(--trait);
}

/* — entrée en scène de la planche, mise en scène en quatre temps —
   (a) l'orchestrateur « pop », (b) les sous-agents apparaissent un à un,
   (c) le grand cercle (« l'astre ») se trace au stylo, (d) le réseau se dessine
   et le tout se met à tourner (rotation lancée par agents-orbital.js). */

.js .plate .agent { opacity: 0; }
.js .plate-net { opacity: 0; }
.js .plate-rings { opacity: 1; }

/* (a) le noyau — l'orchestrateur — pop en premier */
.js .plate .agent--core {
  transform: scale(0.2);
  transition: opacity 0.4s ease 0.15s, transform 0.5s var(--ease-tampon) 0.15s;
}
.plate.is-live .agent--core { opacity: 1; transform: scale(1); }

/* (b) les sous-agents entrent l'un après l'autre (var(--d) = 1…6) */
.js .plate .agent:not(.agent--core) {
  transition: opacity 0.45s ease;
  transition-delay: calc(0.55s + (var(--d, 1) - 1) * 0.16s);
}
.plate.is-live .agent { opacity: 1; }

/* (c) le grand cercle se trace petit à petit, juste après les satellites */
.pr-orbit { stroke-dasharray: 1; stroke-dashoffset: 1; }
.plate.is-live .pr-orbit { animation: orbit-trace 1s var(--ease-machine) 1.85s forwards; }
@keyframes orbit-trace { to { stroke-dashoffset: 0; } }

/* (d) rayons + cordes se dessinent ensemble, puis la planche entre en action */
.js .plate-net { transition: opacity 0.7s ease; transition-delay: 2.85s; }
.plate.is-live .plate-net { opacity: 1; }

/* ---------- méthode : les étapes en cartes ---------- */

/* hologramme d'atelier : la section passe côté nuit, une sphère géodésique
   filaire tourne derrière le titre — voir methode-holo.js */
/* la section occupe exactement l'écran (même logique que la planche #architecture) */
.methode {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 5vh, 5rem);
  background: radial-gradient(130% 100% at 50% 0%, #0A2418 0%, #04110B 62%);
  color: var(--papier);
  border-top-color: rgba(16, 21, 15, 0.35);
}
.methode > .container { position: relative; z-index: 1; }

.methode-holo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* les cartes : des dalles de verre gravé émeraude posées sur la nuit —
   profondeur interne (ombres en creux), titre rétroéclairé, et une caustique
   qui fait lentement le tour de l'arête (la « bague de lumière » sur le chant) */
.methode .station {
  background: linear-gradient(172deg, rgba(13, 45, 30, 0.88), rgba(6, 22, 14, 0.92));
  border-color: rgba(147, 226, 159, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.30),
    inset 0 10px 30px rgba(3, 12, 8, 0.55),
    inset 0 -14px 30px -18px rgba(147, 226, 159, 0.28),
    0 30px 60px -26px rgba(0, 0, 0, 0.9);
}
.methode .station:hover {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.30),
    inset 0 10px 30px rgba(3, 12, 8, 0.50),
    inset 0 -14px 34px -16px rgba(147, 226, 159, 0.40),
    0 34px 64px -26px rgba(0, 0, 0, 0.95),
    0 0 44px -8px rgba(147, 226, 159, 0.3);
}

/* encres claires sur le verre sombre — le titre semble gravé puis rétroéclairé */
.methode .station h3 {
  color: #DFFAE3;
  text-shadow: 0 0 14px rgba(147, 226, 159, 0.55), 0 1px 0 rgba(0, 0, 0, 0.6);
}
.methode .station p { color: rgba(242, 248, 240, 0.78); }
.methode .station h3 .voyant--off { border-color: rgba(147, 226, 159, 0.32); }

/* les pistes gravées passent en clair pour accrocher sur le fond sombre */
.methode .station-trace .trace-fond,
.methode .station-coin .trace-fond { stroke: rgba(147, 226, 159, 0.26); }
.methode .station-trace circle,
.methode .station-coin circle { fill: rgba(147, 226, 159, 0.26); }

/* la bague de lumière : un secteur clair de conic tourne dans un masque en anneau */
.methode .station-bague {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.6px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  overflow: hidden;
  pointer-events: none;
}
.methode .station-bague::before {
  content: '';
  position: absolute;
  inset: -46%;
  background: conic-gradient(
    transparent 0turn, transparent 0.68turn,
    rgba(147, 226, 159, 0.5) 0.76turn,
    #E9FFEC 0.795turn,
    rgba(147, 226, 159, 0.5) 0.83turn,
    transparent 0.91turn);
  animation: bague-ronde 6.5s linear infinite;
}
@keyframes bague-ronde { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .methode .station-bague::before { animation: none; transform: rotate(0.55turn); }
}

.methode-title {
  position: relative;
  z-index: 1;
  margin: 0 auto clamp(2.6rem, 5vw, 4rem);
  max-width: none;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
}

.stations {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-top: clamp(0.6rem, 2.4vw, 1.8rem); /* les cartes descendent un peu sous le titre */
}

.station { padding: clamp(1.7rem, 2.4vw, 2.1rem); }

.station h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  margin-bottom: 0.7rem;
  color: var(--encre);
}
.station p { color: var(--encre-douce); font-size: 0.95rem; }

.station h3 .voyant {
  flex: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.station.is-in h3 .voyant {
  background: var(--vert-franc);
  border-color: var(--vert-franc);
  box-shadow: 0 0 12px var(--lueur-verte);
  animation: voyant-pop 0.32s var(--ease-tampon);
}

/* — traces de circuit : des pistes gravées courent du bord des cartes vers le
   voyant et dans les coins (motif propre à chaque carte) ; au survol, des
   impulsions parcourent toutes les pistes en même temps et allument le voyant — */
.station { overflow: hidden; }
.station h3 { position: relative; }
.station-trace {
  position: absolute;
  left: -44px;
  top: 50%;
  width: 44px;
  height: 60px;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: visible;
}
.station-coin {
  position: absolute;
  width: 84px;
  height: 64px;
  pointer-events: none;
  overflow: visible;
}
.coin--tr { top: 10px; right: 0; }
.coin--br { bottom: 10px; right: 0; }
.coin--bl { bottom: 12px; left: 0; }
.station-trace path,
.station-coin path { fill: none; stroke-width: 1.5; }
.station-trace .trace-fond,
.station-coin .trace-fond { stroke: var(--quadrille-fort); }
.station-trace circle,
.station-coin circle { fill: var(--quadrille-fort); }
.station .trace-pulse {
  stroke: var(--vert);
  stroke-dasharray: 35 165;
  stroke-dashoffset: 35;
  opacity: 0;
}
.station:hover .trace-pulse { animation: trace-course 0.9s var(--ease-machine) forwards; }
@keyframes trace-course {
  0% { stroke-dashoffset: 35; opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: -65; opacity: 0; }
}
.station:hover h3 .voyant {
  background: var(--vert-franc);
  border-color: var(--vert-franc);
  box-shadow: 0 0 12px var(--lueur-verte);
  transition-delay: 0.6s;
}
@keyframes voyant-pop {
  0% { transform: scale(0.4); }
  100% { transform: scale(1); }
}

/* ---------- contact : le pointage ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* chambre de lumière : la lueur de l'horloge déborde dans les flancs sombres
   (deux nappes vertes très diffuses, dérive ambiante très lente) */
.contact::before,
.contact::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.contact::before {
  width: 64vw; height: 64vw;
  max-width: 880px; max-height: 880px;
  left: -9vw; top: -8%;
  background: radial-gradient(closest-side, rgba(147, 226, 159, 0.20), rgba(147, 226, 159, 0.06) 55%, transparent 72%);
  animation: contact-derive-a 27s ease-in-out infinite alternate;
}
.contact::after {
  width: 58vw; height: 58vw;
  max-width: 800px; max-height: 800px;
  right: -11vw; bottom: -14%;
  background: radial-gradient(closest-side, rgba(147, 226, 159, 0.15), rgba(147, 226, 159, 0.05) 55%, transparent 72%);
  animation: contact-derive-b 34s ease-in-out infinite alternate;
}
@keyframes contact-derive-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3%, 2%) scale(1.08); }
}
@keyframes contact-derive-b {
  from { transform: translate(0, 0) scale(1.06); }
  to   { transform: translate(-3%, -2%) scale(1); }
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.contact-ilest { display: inline-flex; align-items: center; gap: 0.7rem; }
.contact-ilest .voyant { width: 8px; height: 8px; }

.horloge {
  font-family: var(--font-mono);
  font-size: clamp(4.2rem, 16vw, 11.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--vert);
  text-shadow: 0 0 28px var(--lueur-verte);
}
.horloge-sep { animation: clignote 1s infinite; }
@keyframes clignote {
  0%, 55% { opacity: 1; }
  55.01%, 100% { opacity: 0.18; }
}

.contact-phrase {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  letter-spacing: -0.015em;
  max-width: 26ch;
  line-height: 1.25;
}

.contact-corps {
  max-width: 54ch;
  color: var(--papier-doux);
  font-size: 1.05rem;
}

.contact .btn { margin-top: 0.4rem; }
.contact-note { font-size: 0.66rem; }
.contact-note.marquage::before,
.contact-note.marquage::after { content: none; }

/* ---------- footer : le cartouche (2 étages) ---------- */

.footer {
  position: relative;
  background: var(--sapin-nuit);
  color: var(--papier);
  padding: clamp(3.6rem, 7vw, 5.6rem) 0 2rem;
  border-top: 1px dashed rgba(16, 21, 15, 0.4);
}

/* étage haut : marque + navigation + contact */
.footer-haut {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--papier);
  text-decoration: none;
}
.footer-voyant {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 10px var(--lueur-verte);
  animation: respiration 3.4s ease-in-out infinite;
}
.footer-signature {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--papier);
  max-width: 26ch;
}

.footer-col-titre {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--papier-doux);
}
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }

.footer-nav a,
.footer-mail,
.footer-social {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--papier-doux);
  transition: color 0.3s;
}
.footer-mail { text-transform: none; letter-spacing: 0.03em; font-size: 0.9rem; }
.footer-nav a:hover,
.footer-mail:hover,
.footer-social:hover { color: var(--vert); }

/* étage bas : la bande fine copyright + liens légaux */
.footer-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(147, 226, 159, 0.18);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--papier-doux);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--papier-doux);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--vert); }
.footer-legal a[aria-current="page"] { color: var(--vert); }

/* ---------- poses (reveals au scroll) ---------- */

.js [data-pose] {
  transition:
    opacity 0.7s ease calc(var(--d, 0) * 90ms),
    transform 0.7s var(--ease-machine) calc(var(--d, 0) * 90ms);
}
.js [data-pose]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}
.js [data-pose].is-in { opacity: 1; }

/* après le reveal, les cartes retrouvent leur transition de survol */
.js .bristol[data-pose].is-in {
  transition: transform 0.35s var(--ease-machine), box-shadow 0.35s var(--ease-machine);
}

/* méthode : les quatre cartes se déroulent l'une après l'autre sur l'écran
   (chaîne gauche → droite). Déclenché par script.js quand tout le bloc des
   cartes est visible : chaque .station reçoit .is-dealt à tour de rôle. */
.js .stations .station {
  transition: opacity 0.55s ease, transform 0.6s var(--ease-machine), box-shadow 0.35s var(--ease-machine);
}
.js .stations .station:not(.is-dealt) {
  opacity: 0;
  transform: translateX(-38px);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .manifeste-grid { grid-template-columns: 1fr; }
  .systeme-grid { grid-template-columns: 1fr; }
  .plate-wrap { max-width: 640px; margin-left: 0; }
  .stations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-head > .btn { display: none; }
  .burger { display: flex; }

  .hero { padding-top: 5.4rem; padding-bottom: 4.6rem; }
  .hero-scene { height: clamp(258px, 36vh, 392px); margin-bottom: 0.6rem; }
  .hero-cta { flex-direction: column; align-items: stretch; width: min(320px, 100%); }
  .hero-cta .btn { text-align: center; }
  .hero-cta .btn-int { width: 100%; }
  .pointeuse li { font-size: 0.62rem; }
  .pointeuse-piste { animation-duration: 80s; }

  .bristols { grid-template-columns: 1fr; }
  .stations { grid-template-columns: 1fr; }

  .fiches { grid-template-columns: 1fr; }
  .fiche--phare .fiche-corps { grid-template-columns: 1fr; gap: clamp(1.3rem, 5vw, 1.8rem); }
  .fiche-phare-aside { gap: 1rem; }

  .footer-haut { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-bas { flex-direction: column; align-items: flex-start; gap: 0.9rem; }

  /* (les tailles des nœuds/labels ne sont plus fixées ici : elles scalent
     désormais avec la planche via cqw, cf. .plate { container-type }) */
}

/* ---------- accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }

  .js [data-pose],
  .hero-title .line-inner,
  .hero-sub,
  .hero-cta,
  .hero-recrue,
  .pointeuse,
  #robot-stage,
  #robot-ombre {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  mark.surligne::before { transform: rotate(-1.2deg) scaleX(1) !important; }
  .biffe path { stroke-dashoffset: 0 !important; }
  .pr-orbit { stroke-dashoffset: 0 !important; }
  .plate .agent--core { transform: scale(1) !important; }
  .js [data-pose]:not(.is-in) .repere::before,
  .js [data-pose]:not(.is-in) .repere::after,
  .js [data-pose]:not(.is-in) .repere > b::before,
  .js [data-pose]:not(.is-in) .repere > b::after { opacity: 1; transform: none; }
  .js [data-pose]:not(.is-in) .total { background-size: 100% 0.045em, 100% 0.045em; }

  .pointeuse-piste { animation: none; }
  .horloge-sep { animation: none; }
  .brand-voyant { animation: none; }
  .btn-led { animation: none; }
  .site-nav a:hover::after,
  .site-nav a:focus-visible::after { animation: none; opacity: 1; }
  .agent-tools { animation: none; }
}
