/* ============================================================
   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); }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* Mode capture (tests visuels automatisés) */
.capture .hero { min-height: 900px; }
.capture .preloader { display: none; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; width: min(320px, 80vw); }
.preloader-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: 0.25em; display: block; margin-bottom: 18px;
}
.preloader-status { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 14px; }
.preloader-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }

/* ============ 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;
}
.nav.scrolled {
  background: rgba(10, 13, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  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: 120px clamp(20px, 4vw, 48px) 40px;
}
.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(20px, 3.5vh, 34px);
}
.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(26px, 4vh, 40px);
}
.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; }
@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; }

/* ============ 03 Données — comparateur ============ */
.compare {
  position: relative; max-width: 920px; 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 sept personnes : quatre colonnes donnent 4 + 3, là où
   l'ajustement automatique laissait une carte orpheline en fin de grille. */
@media (min-width: 1000px) {
  .team-grid { grid-template-columns: repeat(4, 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;
}
.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; }

/* Rôle officieux révélé (trois clics sur la carte) : l'ambre du design system
   signale que ce qui est affiché n'est plus la version officielle. */
.team-card.egg-revealed { border-color: var(--amber); }
.team-card.egg-revealed .team-role { color: var(--amber); }
.team-card.egg-revealed .team-note { color: rgba(227, 179, 65, 0.75); }
.team-card.egg-revealed .team-initials {
  color: var(--amber);
  border-color: rgba(227, 179, 65, 0.45);
  background: rgba(227, 179, 65, 0.09);
}
.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); }
  .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);
  overflow: hidden;
}

.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; }

.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); }

/* 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; }
}
