/* ============================================================
   ROBHERB — design system
   Palette : noir profond / vert prairie / accents techniques
   ============================================================ */

:root {
  --bg: #0a0d0a;
  --bg-soft: #0f130f;
  --bg-card: #141a14;
  --line: rgba(168, 213, 168, 0.14);
  --text: #e8efe6;
  --text-dim: #9aab98;
  --accent: #7ee787;
  --accent-deep: #3fb950;
  --accent-glow: rgba(126, 231, 135, 0.35);
  --amber: #e3b341;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1240px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #08210d; }

.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* height:auto est indispensable : les <img> portent des attributs width/height
   (réservation de place, anti-CLS). Sans lui, dès que la CSS réduit la largeur,
   la hauteur reste celle de l'attribut et l'image est étirée verticalement. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* Mode capture (tests visuels automatisés) */
.capture .hero { min-height: 900px; }

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
/* Le fond flouté est porté par un calque interne, jamais par .nav elle-même.
   Un backdrop-filter fait de l'élément le bloc conteneur de ses descendants
   en position:fixed : l'overlay plein écran du menu burger (.nav-links, fixed
   inset:0) se retrouvait enfermé dans la barre de navigation dès qu'on avait
   scrollé — décalé et sans son fond noir. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 13, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.4s ease;
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled {
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.22em; text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 10px; height: 10px; background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a {
  font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--text-dim);
  transition: color 0.25s ease; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  color: #08210d !important; background: var(--accent);
  padding: 8px 16px; border-radius: var(--radius); font-weight: 600 !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
}
.nav-cta:hover { background: #99f0a0; transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 950;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--text); display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 231, 135, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 231, 135, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container); width: 100%;
  margin: 0 auto; padding: clamp(96px, 12vh, 116px) clamp(20px, 4vw, 48px) 6px;
}
.hero-kicker {
  font-size: clamp(10px, 1.3vw, 12.5px); color: var(--accent);
  margin-bottom: clamp(18px, 3vh, 30px); display: flex; align-items: center; gap: 10px;
}
.blink-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: blink 1.6s ease infinite; flex-shrink: 0;
}
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-glow); } 50% { opacity: 0.25; box-shadow: none; } }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 8.2vw, 108px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: clamp(18px, 3vh, 28px);
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; }
.hero-title em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 36px var(--accent-glow);
}
.hero-sub {
  max-width: 560px; color: var(--text-dim); font-size: clamp(15px, 1.6vw, 18px);
  margin-bottom: clamp(22px, 3.4vh, 32px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 24px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  font-size: 11px; color: var(--text-dim);
}
.hero-scroll { animation: bob 2.2s ease-in-out infinite; }

/* Bandeau partenaires du hero.
   Chaque logo est posé sur sa propre pastille claire plutôt que blanchi au
   filtre : trois des six fichiers ont un fond blanc opaque et se réduiraient à
   un pavé uni. La pastille rend aussi les couleurs officielles — le SPW, qui
   finance le projet, ouvre la ligne, plus grand et pleinement contrasté. */
.hero-partners {
  position: relative; z-index: 2;
  max-width: var(--container); width: 100%;
  margin: 0 auto; padding: 18px clamp(20px, 4vw, 48px) 52px;
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); flex-wrap: wrap;
}
.hero-partners::before {
  content: ""; position: absolute; top: 0;
  left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 72%);
}
.hero-partners-label { font-size: 10px; color: var(--accent); white-space: nowrap; }
.hero-partners-label + ul + .hero-partners-label { color: var(--text-dim); }
.hero-logos {
  list-style: none; display: flex; align-items: center;
  gap: clamp(8px, 1.1vw, 14px); flex-wrap: wrap;
}
.hero-logos li {
  background: #fff; border-radius: 4px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.hero-logos li:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }
.hero-logos a { display: flex; align-items: center; padding: 7px 11px; }
.hero-logos img { height: 24px; width: auto; max-width: 116px; object-fit: contain; }
.hero-logo-spw a { padding: 8px 13px; }
.hero-logo-spw img { height: 34px; max-width: 132px; }

@media (max-width: 860px) {
  .hero-partners { padding-bottom: 46px; }
  .hero-logos img { height: 16px; }
  .hero-logo-spw img { height: 24px; }
  .hero-logos a { padding: 6px 9px; }
}
/* Sur mobile les libellés disparaissent et la ligne se scinde en deux blocs :
   le SPW seul à gauche, les cinq autres pastilles repliées à sa droite. Sans
   ce nowrap, le bandeau s'étale sur trois rangées et vient buter sur la
   ligne de méta en bas du hero. */
@media (max-width: 600px) {
  .hero-partners-label { display: none; }
  .hero-partners { flex-wrap: nowrap; gap: 10px; padding-top: 14px; padding-bottom: 50px; }
  .hero-logo-spw { flex: 0 0 auto; }
  .hero-logos { gap: 6px; }
  .hero-logos a { padding: 5px 7px; }
  .hero-logos img { height: 13px; max-width: 76px; }
  .hero-logo-spw a { padding: 6px 9px; }
  .hero-logo-spw img { height: 22px; max-width: 84px; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius); text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--accent); color: #08210d;
  box-shadow: 0 0 0 rgba(126, 231, 135, 0);
}
.btn-primary:hover { background: #99f0a0; transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(20, 26, 20, 0.5); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; background: var(--bg-soft); padding: 16px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  color: var(--text-dim);
  animation: marquee 36s linear infinite;
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: clamp(80px, 12vh, 150px) 0; position: relative; }
.section-dark { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: baseline; gap: 22px;
  margin-bottom: clamp(40px, 6vh, 70px);
}
.section-num {
  color: var(--accent); font-size: clamp(13px, 1.5vw, 16px);
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px;
  background: var(--bg-card);
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.5vw, 64px); letter-spacing: -0.02em; line-height: 1.05;
}
.lead { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; font-weight: 500; }
.lead.narrow { max-width: 760px; margin-bottom: clamp(36px, 5vh, 56px); }
.lead strong { color: var(--accent); font-weight: 600; }

/* ============ 01 Projet ============ */
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.col-text p { color: var(--text-dim); margin-top: 20px; }
.col-text p.lead { color: var(--text); margin-top: 0; }
.col-text em { color: var(--accent); font-style: italic; }
.col-cards { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.obj-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; position: relative; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.obj-card:hover { border-color: var(--accent-deep); transform: translateY(-4px); }
.obj-card::before {
  content: attr(data-idx);
  position: absolute; top: 10px; right: 14px;
  font-family: var(--font-mono); font-size: 38px; font-weight: 500;
  color: rgba(126, 231, 135, 0.1); line-height: 1;
}
.obj-card h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 10px; }
.obj-card p { font-size: 14px; color: var(--text-dim); }

/* ============ 02 Plateforme ============ */
.platform-grid {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(36px, 5vw, 72px);
  align-items: start; margin-bottom: clamp(50px, 8vh, 90px);
}
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo-frame img { width: 100%; }
.photo-corner {
  position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); z-index: 2;
}
.photo-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.photo-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.photo-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.photo-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.photo-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8, 11, 8, 0.92));
  color: var(--accent); font-size: 10.5px; padding: 36px 16px 12px;
}
.photo-tag.dark { color: var(--text-dim); }
.platform-photo figcaption { margin-top: 12px; font-size: 11px; color: var(--text-dim); }
.platform-specs { display: flex; flex-direction: column; }
.spec-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.spec-row:first-child { padding-top: 0; }
.spec-key { font-size: 11px; color: var(--accent); padding-top: 5px; }
.spec-row h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.spec-row p { font-size: 14.5px; color: var(--text-dim); }

.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px;
  border-top: 1px solid var(--line); padding-top: clamp(36px, 5vh, 56px);
}
.stat-value {
  font-size: clamp(34px, 4.5vw, 56px); font-weight: 500; color: var(--accent);
  display: block; line-height: 1.1;
}
.stat-value small { font-size: 0.42em; color: var(--text-dim); }
.stat-label { font-size: 13.5px; color: var(--text-dim); display: block; margin-top: 8px; max-width: 220px; }

/* ============ Bande photo pleine largeur ============ */
/* Respiration claire entre deux sections sombres. La photo est recadrée par
   object-fit plutôt que déformée : la hauteur est imposée, le cadrage suit. */
.photo-band { position: relative; margin: 0; overflow: hidden; }
.photo-band img {
  width: 100%; height: clamp(230px, 34vw, 440px); object-fit: cover; object-position: center 58%;
}
.photo-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%, rgba(10, 13, 10, 0) 9%,
    rgba(10, 13, 10, 0) 48%, rgba(10, 13, 10, 0.88) 100%);
}
.photo-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  font-size: 10.5px; color: var(--accent);
}

/* ============ 03 Données — acquisition ============ */
.acq-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin-bottom: clamp(44px, 7vh, 72px);
}
.acq-item { margin: 0; }
.acq-item .photo-frame { border: 1px solid var(--line); }
.acq-item .photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.acq-item .photo-tag { font-size: 10px; padding: 30px 14px 10px; }
.acq-item figcaption { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); }
.acq-item figcaption strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.acq-measures { display: block; margin-bottom: 8px; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* ============ 03 Données — comparateur ============ */
/* Volontairement plus étroit que les photos d'acquisition : le comparateur est
   une démonstration, pas la pièce maîtresse de la section. */
.compare {
  position: relative; max-width: 680px; margin: 0 auto clamp(60px, 9vh, 100px);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: col-resize;
}
.compare img { width: 100%; pointer-events: none; }
.compare-base { display: block; }
.compare-top {
  position: absolute; inset: 0; width: 50%; overflow: hidden;
  border-right: 2px solid var(--accent);
}
.compare-top img { position: absolute; top: 0; left: 0; width: auto; height: 100%; max-width: none; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px;
  transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
  cursor: col-resize; z-index: 3; outline-offset: 4px;
}
.compare-grip {
  background: var(--accent); color: #08210d; font-size: 12px; font-weight: 500;
  padding: 8px 6px; border-radius: 4px; box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.compare-label {
  position: absolute; top: 14px; font-size: 11px; padding: 5px 10px;
  background: rgba(8, 11, 8, 0.75); border: 1px solid var(--line); border-radius: 4px;
  z-index: 2; pointer-events: none;
}
.compare-label.left { left: 14px; color: var(--accent); }
.compare-label.right { right: 14px; color: var(--text); }

/* ============ 03 Pipeline ============ */
.pipeline-title {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px);
  margin-bottom: clamp(28px, 4vh, 44px);
}
.pipeline-steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px;
  counter-reset: step;
}
.pipeline-step {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.pipeline-step:hover { border-color: var(--accent-deep); transform: translateY(-4px); }
.step-num { font-size: 11px; color: var(--accent); display: block; margin-bottom: 14px; }
.pipeline-step h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.pipeline-step p { font-size: 13px; color: var(--text-dim); }
.pipeline-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -15px; top: 24px;
  color: var(--accent); font-size: 14px; z-index: 2;
}

/* ============ 04 Résultats ============ */
.results-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.result-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 40px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.result-card:hover { border-color: var(--accent-deep); transform: translateY(-4px); }
.result-tag {
  font-size: 11px; color: var(--accent); border: 1px solid rgba(126, 231, 135, 0.3);
  border-radius: 4px; padding: 4px 10px; display: inline-block; margin-bottom: 18px;
  background: rgba(126, 231, 135, 0.06);
}
.result-card h3 { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 12px; line-height: 1.25; }
.result-card p { font-size: 15px; color: var(--text-dim); }
.result-metrics { display: flex; gap: 36px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.metric-value { font-size: clamp(28px, 3.5vw, 42px); color: var(--accent); display: block; line-height: 1.1; }
.metric-label { font-size: 12.5px; color: var(--text-dim); }

/* ============ 05 Architecture ============ */
.arch-figure { max-width: 1000px; margin: 0 auto clamp(40px, 6vh, 64px); }
.arch-figure .photo-frame { background: #fff; padding: 18px; }
.arch-figure .photo-tag { background: linear-gradient(transparent, rgba(255,255,255,0.95)); color: #3a4a3a; }
/* légende de figure : même traitement que sous la photo du robot */
.arch-figure figcaption {
  margin-top: 14px; font-size: 11.5px; line-height: 1.75;
  color: var(--text-dim); max-width: 760px;
}
/* graphique dont le bas porte des axes : l'étiquette ne doit pas les recouvrir */
.arch-figure.figure-graphique .photo-frame { padding-bottom: 38px; }
.arch-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 60px); margin-bottom: clamp(32px, 5vh, 48px); }
.arch-col h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }
.arch-col h3 .mono { color: var(--accent); margin-right: 6px; }
.arch-col p { color: var(--text-dim); font-size: 15px; }
.tech-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chips li {
  font-size: 12px; color: var(--text-dim); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 100px; background: var(--bg-card);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.tech-chips li:hover { color: var(--accent); border-color: var(--accent-deep); }

/* ============ 06 Partenaires ============ */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.partner-card {
  background: #f4f6f3; border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-decoration: none; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.partner-card img { max-height: 76px; width: auto; max-width: 85%; object-fit: contain; }
.partner-card span { font-size: 13px; color: #3a4a3a; font-weight: 500; line-height: 1.45; }
.funding-note {
  text-align: center; font-size: 11.5px; color: var(--text-dim);
  margin-top: clamp(30px, 4vh, 44px); letter-spacing: 0.1em;
}

/* ============ 07 Équipe ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
/* L'équipe compte neuf personnes : trois colonnes donnent 3 + 3 + 3, là où
   l'ajustement automatique laissait une carte orpheline en fin de grille. */
@media (min-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.6s ease;
}
.team-card:hover { border-color: var(--accent-deep); transform: translateY(-4px); }
.team-initials {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 15px; color: var(--accent);
  border: 1px solid rgba(126, 231, 135, 0.35); background: rgba(126, 231, 135, 0.07);
  margin-bottom: 18px;
}
.team-card h3 { font-family: var(--font-display); font-size: 17px; }
.team-role { font-size: 13px; color: var(--text-dim); margin: 6px 0 14px; }
.team-mail { font-size: 11.5px; color: var(--accent); text-decoration: none; word-break: break-all; }
/* Ligne de contact en clair : pas une adresse, donc pas de coupure brutale.
   Le display explicite battrait [hidden] : on le neutralise nous-mêmes. */
.team-note { font-size: 11.5px; color: var(--accent-deep); display: block; }
.team-note[hidden] { display: none; }

/* La dinde d'Hélène (js/dinde.js) : canevas plein écran sans clic (les clics sur
   la dinde sont lus par le script), carte roussie par l'explosion d'où elle sort,
   section secouée une demi-seconde. */
.dinde-canvas, .mouton-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1150; }
/* la dinde se laisse déranger ; le mouton aussi, et l'herbe accepte qu'on y plante une fleur */
html.dinde-survol, html.dinde-survol *, html.mouton-survol, html.mouton-survol * { cursor: pointer !important; }
.team-card.dinde-roussie {
  border-color: #e3803a;
  box-shadow: 0 0 0 1px rgba(227, 128, 58, 0.35), 0 0 48px rgba(227, 128, 58, 0.28);
}
.dinde-secousse { animation: dindeSecousse 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes dindeSecousse {
  10% { transform: translate(-9px, 5px); }
  20% { transform: translate(8px, -6px); }
  30% { transform: translate(-7px, 4px); }
  45% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: none; }
}
.team-mail:hover { text-decoration: underline; }

/* ============ Newsletter ============ */
.newsletter {
  padding: clamp(80px, 12vh, 150px) 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(126, 231, 135, 0.07), transparent),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.newsletter-inner {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px, 5vw, 80px);
  align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(32px, 5vw, 64px);
}
.newsletter-kicker { color: var(--accent); font-size: 12px; display: block; margin-bottom: 16px; }
.newsletter-text h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px;
}
.newsletter-text p { color: var(--text-dim); font-size: 15.5px; max-width: 440px; }
.newsletter-form label { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 10px; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); font-family: var(--font-mono);
  font-size: 14px; padding: 14px 16px; outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.newsletter-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.15); }
.newsletter-row input::placeholder { color: #5a6a58; }
#nl-website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-feedback { font-size: 12px; margin-top: 12px; min-height: 18px; color: var(--accent); }
.newsletter-feedback.error { color: #ff7b72; }
.newsletter-privacy { font-size: 11.5px; color: #5a6a58; margin-top: 14px; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none !important; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vh, 64px) 0; background: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.2fr); gap: 32px; align-items: start;
}
.footer-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.22em;
  display: block; margin-bottom: 10px;
}
.footer-brand p { font-size: 10.5px; color: var(--text-dim); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-dim); text-decoration: none; transition: color 0.25s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { text-align: right; font-size: 11px; color: var(--text-dim); display: flex; flex-direction: column; gap: 6px; }

/* ============ Reveal helpers (GSAP cibles) ============ */
.reveal, .reveal-hero { will-change: transform, opacity; }
.no-js .reveal, .no-js .reveal-hero { opacity: 1 !important; transform: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pipeline-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pipeline-step:nth-child(3n)::after { display: none; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-band { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 18px; }
}

@media (max-width: 860px) {
  .two-col, .platform-grid, .results-grid, .arch-cols, .newsletter-inner { grid-template-columns: minmax(0,1fr); }
  .acq-grid { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .footer-meta { text-align: left; }
  .nav-links {
    position: fixed; inset: 0; z-index: 940;
    background: rgba(10, 13, 10, 0.97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 22px; font-family: var(--font-display); }
  .nav-burger { display: flex; }
  .hero-meta span:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
  .pipeline-steps { grid-template-columns: minmax(0,1fr); }
  .pipeline-step::after { display: none !important; }
  .col-cards { grid-template-columns: minmax(0,1fr); }
  .stat-band { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .partner-grid { grid-template-columns: minmax(0,1fr); }
  .newsletter-row { flex-direction: column; }
  .newsletter-row .btn { width: 100%; }
  .spec-row { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .section-head { flex-direction: column; gap: 12px; }
  .hero-title { font-size: clamp(40px, 12vw, 64px); }
  .result-metrics { gap: 24px; }
}

/* ============================================================
   Easter egg — « ROBHERB RUNNER »
   3 clics sur le cadre de Martin Houry (ou taper « moo »).
   ============================================================ */

/* Indice discret au 2e clic : la carte frémit */
.team-card.egg-nudge { border-color: var(--accent); }
.team-card.egg-nudge { animation: eggNudge 0.4s ease; }
@keyframes eggNudge {
  0%, 100% { transform: translateY(-4px) rotate(0deg); }
  30% { transform: translateY(-4px) rotate(-1.4deg); }
  70% { transform: translateY(-4px) rotate(1.4deg); }
}

body.egg-open { overflow: hidden; }

.egg-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(4, 6, 4, 0.86);
  backdrop-filter: blur(10px);
  animation: eggIn 0.25s ease;
}
.egg-overlay[hidden] { display: none; }
@keyframes eggIn { from { opacity: 0; } to { opacity: 1; } }

.egg-panel {
  width: min(960px, 100%);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(126, 231, 135, 0.06);
  max-height: 100%;
  overflow: hidden auto;
}

.egg-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(14px, 2.5vw, 24px);
  border-bottom: 1px solid var(--line);
}
.egg-tag { font-size: 10.5px; color: var(--accent); }
.egg-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 2.4vw, 20px); letter-spacing: 0.12em;
  margin-right: auto;
}
.egg-close {
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-dim); font-family: var(--font-mono); font-size: 13px;
  width: 32px; height: 32px; cursor: pointer; flex-shrink: 0;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.egg-close:hover { color: var(--accent); border-color: var(--accent-deep); }

.egg-stage {
  padding: clamp(10px, 2vw, 18px);
  background:
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(126, 231, 135, 0.08), transparent),
    var(--bg);
}
#cowrun-canvas {
  display: block; width: 100%; height: auto;
  border-radius: 4px;
  image-rendering: pixelated;
  touch-action: none;
  outline: none;
}
#cowrun-canvas:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Classement partagé (api/scores.php) */
.egg-board {
  padding: 12px clamp(14px, 2.5vw, 24px) 14px;
  border-top: 1px solid var(--line);
}
.egg-save {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 8px;
}
.egg-save[hidden] { display: none; }
.egg-save strong { color: var(--amber); font-weight: 600; }
.egg-save input {
  flex: 1 1 140px; min-width: 0; max-width: 220px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 13px var(--font-mono); padding: 6px 10px;
}
.egg-save input:focus { outline: none; border-color: var(--accent-deep); }
.egg-btn {
  background: var(--accent); color: var(--bg);
  border: 0; border-radius: var(--radius);
  font: 600 12px var(--font-mono); padding: 7px 14px; cursor: pointer;
}
.egg-btn:hover { background: var(--accent-deep); }
.egg-btn:disabled { opacity: 0.5; cursor: wait; }
.egg-status { font-size: 11px; color: var(--accent); min-height: 1em; margin: 0 0 8px; }
.egg-status:empty { display: none; }
.egg-status.is-error { color: var(--amber); }
.egg-status button {
  background: none; border: 0; padding: 0; color: var(--text-dim);
  font: inherit; text-decoration: underline; cursor: pointer;
}
.egg-board-title {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 6px;
}
.egg-top {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column;
  grid-template-rows: repeat(5, auto); gap: 2px 28px;
  font-size: 12px; counter-reset: rank;
}
.egg-top li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 2px 0; border-bottom: 1px dashed var(--line);
  counter-increment: rank;
}
.egg-top li::before { content: counter(rank, decimal-leading-zero); color: var(--text-dim); width: 1.6em; }
.egg-top li.egg-top-empty { grid-column: 1 / -1; border: 0; color: var(--text-dim); }
.egg-top li.egg-top-empty::before { content: none; }
.egg-top .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.egg-top .pts { color: var(--accent); font-variant-numeric: tabular-nums; }
.egg-top li.is-me .who, .egg-top li.is-me .pts { color: var(--amber); }

.egg-foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  padding: 12px clamp(14px, 2.5vw, 24px);
  border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-dim);
}
.egg-foot kbd {
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 5px; color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.egg-credit { color: var(--accent-deep); }

/* ---- Dinde vs mouton (js/combat.js) : même fenêtre, arène plus large ----
   L'arène garde ses proportions et ne dépasse jamais la hauteur de l'écran :
   les commandes restent visibles dessous pendant le combat. */
.combat-panel { width: min(1100px, 100%); }
.combat-canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 960 / 440;
  max-width: max(320px, calc((100vh - 410px) * 960 / 440)); margin: 0 auto;
  border-radius: 4px; outline: none;
}
.combat-fiches {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.combat-fiche { padding: 10px clamp(14px, 2.5vw, 24px); font-size: 11px; color: var(--text-dim); min-width: 0; }
.combat-fiche + .combat-fiche { border-left: 1px solid var(--line); }
.combat-fiche h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; margin-bottom: 6px; }
.combat-touches { margin-bottom: 6px; }
.combat-fiche ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.combat-fiche li[title] { cursor: help; }
.combat-fiche li { line-height: 1.5; }
.combat-fiche b { color: var(--text); font-weight: 500; }
.combat-fiche i { font-style: normal; opacity: 0.75; }
.combat-fiche li.combat-super b { color: var(--amber); }
.combat-in { white-space: nowrap; color: var(--text); }
.combat-fiche kbd {
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid var(--line); border-radius: 3px;
  padding: 0 4px; color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.combat-statut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
@media (max-width: 900px) {
  .combat-fiche ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .combat-fiches { grid-template-columns: minmax(0, 1fr); }
  .combat-fiche + .combat-fiche { border-left: 0; border-top: 1px solid var(--line); }
}

/* Indices : clavier par défaut, tactile sur les pointeurs grossiers */
.egg-touch { display: none; }
@media (pointer: coarse) {
  .egg-keys { display: none; }
  .egg-touch { display: inline; }
}

@media (max-width: 600px) {
  .egg-tag { display: none; }
  .egg-foot { justify-content: center; text-align: center; font-size: 10px; }
  .egg-credit { display: none; }
  .egg-top { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
}
