/* ═══════════════════════════════════════════════
   Eff-IA — Design system
   ═══════════════════════════════════════════════ */
:root {
  --primary: #19c37d;
  --primary-bright: #2ee6a0;
  --primary-dim: rgba(25, 195, 125, 0.12);
  --bg: #070d18;
  --bg-alt: #0b1220;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --radius: 16px;
  --shadow-glow: 0 0 40px rgba(25, 195, 125, 0.25);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  /* délai avant les animations d'entrée « one-shot » : le temps que le
     panneau plein écran ait fini d'apparaître (fondu ~0,85 s) — sinon
     elles se jouent « derrière » le fondu et paraissent déjà finies. */
  --enter: 0.55s;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

img, svg { display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Scrollbar & progress ─────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), #0e7a4e);
  border-radius: 5px;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  z-index: 1000;
  box-shadow: 0 0 12px rgba(25, 195, 125, 0.7);
}

/* ── Texte dégradé ────────────────────────────── */
.gradient-text {
  background: linear-gradient(120deg, var(--primary-bright) 0%, var(--primary) 50%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Boutons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  color: #04120b;
  box-shadow: 0 4px 20px rgba(25, 195, 125, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(25, 195, 125, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  border-color: rgba(25, 195, 125, 0.4);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navbar ───────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.logo-accent { color: var(--primary); }
.logo-mark {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(25, 195, 125, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-copy .hero-subtitle { margin: 0 0 2.5rem; }
.hero-copy .hero-stats { justify-content: flex-start; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 3px rgba(4, 9, 16, 0.9), 0 0 24px rgba(4, 9, 16, 0.75);
}
.hero-mnemonic {
  color: var(--primary);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--primary-bright);
  display: block;
  text-shadow: 0 1px 3px rgba(4, 9, 16, 0.95), 0 0 18px rgba(4, 9, 16, 0.8);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(4, 9, 16, 0.95), 0 0 18px rgba(4, 9, 16, 0.8);
}

/* ── Carte de chat (démo simulée) ─────────────── */
.chat-card {
  text-align: left;
  background: rgba(10, 16, 28, 0.72);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(25, 195, 125, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.35);
  color: var(--primary-bright);
  flex-shrink: 0;
}
.chat-avatar img { width: 24px; height: 24px; object-fit: contain; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.chat-head-text span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--primary-bright);
  white-space: nowrap;
}
.chat-body {
  height: 300px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-body::-webkit-scrollbar { display: none; }
.msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  animation: msgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.4s;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.msg.user {
  align-self: flex-end;
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.3);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.msg.ai {
  align-self: flex-start;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.fade { opacity: 0; }
.msg.typing {
  display: inline-flex;
  gap: 5px;
  padding: 0.85rem 1rem;
}
.msg.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--primary-bright);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caretBlink 0.9s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.chat-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.25rem 1.25rem;
  padding: 0.65rem 0.65rem 0.65rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.chat-input span {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.chat-input button {
  width: 36px; height: 36px;
  border: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  color: #04120b;
  cursor: default;
}
.chat-input button svg { width: 16px; height: 16px; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--primary);
  border-radius: 2px;
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ── Bandeau partenaires ──────────────────────── */
.partners {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.partners-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.partners-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.partner-chip {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.partner-chip:hover {
  color: var(--primary-bright);
  border-color: rgba(25, 195, 125, 0.4);
  transform: translateY(-2px);
}

/* Bandeau « Secteurs » fusionné en tête de la section « Le constat » */
.partners-merged {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Sections ─────────────────────────────────── */
.section { padding: 7rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.3);
  color: var(--primary-bright);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

/* ── Cartes capacités (tilt 3D) ───────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
/* la carte survolée passe au-dessus des autres quand elle zoome */
.tilt:hover { z-index: 20; }

/* ── Zoom « projecteur » d'une carte au survol ─────────────────
   Un aperçu agrandi de la carte s'affiche centré à l'écran, sur un fond
   assombri. Overlay ajouté au <body> (hors du zoom des sections fullpage). */
.card-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;                 /* purement visuel : on continue de survoler la grille */
  transition: opacity 0.3s ease;
  z-index: 1400;
}
.card-zoom-backdrop.open { opacity: 1; pointer-events: auto; cursor: zoom-out; }
.card-zoom {
  position: fixed;
  top: 50%; left: 50%;
  width: min(900px, 92vw);
  max-height: 88vh;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1401;
}
.card-zoom.open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.card-zoom-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background var(--transition), border-color var(--transition);
}
.card-zoom-close:hover { background: var(--surface-hover); border-color: rgba(25, 195, 125, 0.4); }
.card-zoom .card {
  width: 100%;
  margin: 0;
  padding: 3.5rem 3rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  border-color: rgba(25, 195, 125, 0.4);
  background: var(--bg-alt);
  opacity: 1 !important;
  transform: none !important;
}
.card-zoom .card-icon {
  width: 78px; height: 78px;
  border-radius: 20px;
  margin-bottom: 1.75rem;
}
.card-zoom .card-icon svg { width: 40px; height: 40px; }
.card-zoom .card h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1.1rem; }
.card-zoom .card p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.7; }
/* prioritaire sur .reveal : transform rapide (survol) tout en gardant le
   fondu d'apparition à 0.8s */
.reveal.tilt {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 195, 125, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(25, 195, 125, 0.35);
  box-shadow: var(--shadow-glow);
  background: var(--surface-hover);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.3);
  color: var(--primary-bright);
  margin-bottom: 1.5rem;
  transform: translateZ(30px);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transform: translateZ(20px);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  transform: translateZ(10px);
}

/* ── Atelier de flux (nœuds d'automatisation) ─── */
.workflow-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.workflow-tab {
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.workflow-tab:hover { color: var(--text); border-color: rgba(25, 195, 125, 0.35); }
.workflow-tab.active {
  background: var(--primary-dim);
  border-color: rgba(25, 195, 125, 0.45);
  color: var(--primary-bright);
}
.workflow-panel { display: none; }
.workflow-panel.active { display: block; animation: panelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.workflow-board {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
  background-size: 22px 22px;
  overflow: hidden;
}
/* Seul le schéma défile horizontalement (badge et légende restent fixes) */
.workflow-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.workflow-scroll::-webkit-scrollbar { height: 6px; }
.workflow-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}
.workflow-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.35);
  color: var(--primary-bright);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}
.workflow {
  width: 100%;
  min-width: 880px;
  height: auto;
  display: block;
  font-family: var(--font-body);
}
.flow-node rect.node-box {
  fill: #101a2a;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
  transition: stroke 0.3s, filter 0.3s;
}
.flow-node:hover rect.node-box {
  stroke: rgba(46, 230, 160, 0.6);
  filter: drop-shadow(0 0 12px rgba(25, 195, 125, 0.35));
}
.node-title { fill: #e8edf5; font-size: 13px; font-weight: 600; text-anchor: middle; }
.node-sub { fill: #64748b; font-size: 11px; text-anchor: middle; }
.flow-link { stroke: #3b4759; stroke-width: 2; fill: none; }
.flow-link-dashed {
  stroke: rgba(46, 230, 160, 0.55);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 5 7;
  animation: dashFlow 1.4s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -24; } }
.flow-model-label {
  fill: var(--primary);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.06em;
}
.flow-port { fill: #3b4759; }
.flow-pulse { fill: #2ee6a0; filter: drop-shadow(0 0 6px #19c37d); }
.ai-halo {
  fill: rgba(25, 195, 125, 0.10);
  animation: aiPulse 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes aiPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.28); opacity: 0.35; }
}
.ai-body {
  fill: #0c1d17;
  stroke: rgba(46, 230, 160, 0.65);
  stroke-width: 1.5;
  transition: filter 0.3s;
}
.ai-node:hover .ai-body { filter: drop-shadow(0 0 16px rgba(25, 195, 125, 0.5)); }
.ai-node .node-title { fill: var(--primary-bright); }

/* ── Readouts (données de procédé) ────────────── */
.readout {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(25, 195, 125, 0.08);
  border: 1px solid rgba(25, 195, 125, 0.25);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary-bright);
  letter-spacing: 0.02em;
  transform: translateZ(15px);
}

/* ── Le constat ───────────────────────────────── */
.stats-duo {
  max-width: 760px;
  margin: 0 auto;
}
.constat-phrase {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text);
  max-width: 640px;
  margin: 3rem auto 0.75rem;
  font-weight: 500;
}
.source-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Méthode (étapes) ─────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  counter-reset: none;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.steps li:hover {
  border-color: rgba(25, 195, 125, 0.35);
  box-shadow: var(--shadow-glow);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--primary-bright);
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.steps p { color: var(--text-muted); font-size: 0.93rem; }

/* ── Carte à propos ───────────────────────────── */
.about-card {
  max-width: 420px;
  margin: 0 auto;
}
.about-card .readout { margin-top: 1.75rem; }

.proof-note {
  text-align: center;
  max-width: 720px;
  margin: 1.75rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.proof-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ── Split souveraineté ───────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 1rem 0 1.25rem;
}
.split-text > p { color: var(--text-muted); margin-bottom: 1.75rem; }
.split-text .btn { margin-top: 2rem; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
  font-size: 0.98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.2em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6a0' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(25, 195, 125, 0.35);
}

/* ── Scène orbitale 3D en perspective ─────────── */
.split-visual { perspective: 900px; }
.orbit-scene {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.orbit-core {
  width: 110px; height: 110px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(25, 195, 125, 0.25), rgba(25, 195, 125, 0.05));
  border: 1px solid rgba(25, 195, 125, 0.5);
  color: var(--primary-bright);
  box-shadow: 0 0 60px rgba(25, 195, 125, 0.35), inset 0 0 30px rgba(25, 195, 125, 0.15);
  backdrop-filter: blur(4px);
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}
.orbit-core svg { width: 52px; height: 52px; }
@keyframes float {
  0%, 100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(60px) translateY(-12px); }
}

.core-pulse {
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 195, 125, 0.35) 0%, transparent 65%);
  animation: corePulse 3.2s ease-in-out infinite;
  z-index: 1;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.55); opacity: 0.25; }
}

/* Plans orbitaux inclinés dans l'espace (rotation 3D réelle) */
.orbit {
  position: absolute;
  inset: 4%;
  border: 1.5px solid rgba(46, 230, 160, 0.22);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: orbit3d linear infinite;
  box-shadow: 0 0 24px rgba(25, 195, 125, 0.06) inset;
}
.orbit-1 { --ry: 0deg;   --rx: 72deg; animation-duration: 17s; }
.orbit-2 { --ry: 58deg;  --rx: 66deg; animation-duration: 12s; animation-direction: reverse; }
.orbit-3 { --ry: -55deg; --rx: 78deg; inset: 14%; animation-duration: 9s; }
@keyframes orbit3d {
  from { transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(0deg); }
  to   { transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(360deg); }
}
.orbit-dot {
  position: absolute;
  top: -6px; left: 50%;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 14px var(--primary), 0 0 30px rgba(25, 195, 125, 0.5);
}
.orbit-dot.dot-b { top: auto; bottom: -6px; width: 8px; height: 8px; opacity: 0.8; }

/* ── Bande de stats ───────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.stat-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-block:hover {
  border-color: rgba(25, 195, 125, 0.35);
  box-shadow: var(--shadow-glow);
}
.stat-block strong {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  color: var(--primary-bright);
  display: block;
  margin-bottom: 0.5rem;
}
.stat-block span { color: var(--text-muted); font-size: 0.95rem; }

/* ── Tarifs ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  border-color: rgba(25, 195, 125, 0.35);
  box-shadow: var(--shadow-glow);
}
.pricing-featured {
  background: linear-gradient(180deg, rgba(25, 195, 125, 0.10), var(--surface) 45%);
  border-color: rgba(25, 195, 125, 0.45);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  color: #04120b;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.pricing-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.pricing-price { margin-bottom: 1.75rem; }
.pricing-price .amount {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
}
.pricing-price .period { color: var(--text-muted); margin-left: 0.25rem; }
.pricing-card .check-list { flex: 1; margin-bottom: 2rem; }
.pricing-card .check-list li { font-size: 0.92rem; }

/* ── CTA final ────────────────────────────────── */
.cta-final {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(25, 195, 125, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
}
.cta-final p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.cta-final .hero-actions { margin-bottom: 0; }

/* ── Formulaire de contact ─────────────────────── */
.contact-form {
  max-width: 640px;
  margin: 3rem auto 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.field-optional { font-weight: 400; color: var(--text-muted); }
.form-field input,
.form-field select {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(25, 195, 125, 0.5);
  box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.15);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.form-field select option { background: var(--bg-alt); color: var(--text); }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.2s;
}
.form-note-success { color: var(--primary-bright); font-weight: 600; }
.link-secondary { display: inline-flex; }

@media (max-width: 640px) {
  .contact-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1.25rem;
  max-width: 320px;
}
.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.7rem; }
.footer ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--primary-bright); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Animations de révélation ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.cards-grid .reveal:nth-child(2), .pricing-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3), .pricing-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

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

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-copy .hero-actions,
  .hero-copy .hero-stats { justify-content: center; }
  .hero-copy .hero-subtitle { margin: 0 auto 2.5rem; }
  .chat-card { max-width: 520px; margin: 0 auto; width: 100%; }
}

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 13, 24, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 1.5rem; }
  .nav-links a::after { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-actions .btn { display: none; }
  .hero-stats { gap: 2rem; }
  .section { padding: 4.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ══════════ MESSAGE 2026 — nouveaux composants ══════════ */

/* Hero readout */
.hero-readout {
  display: inline-block;
  margin-top: 1.75rem;
  background: rgba(7, 19, 15, 0.82);
  border-color: rgba(25, 195, 125, 0.45);
}

/* Phrase forte centrée (fin de section) */
.section-emphasis {
  text-align: center;
  max-width: 760px;
  margin: 3rem auto 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* Phrase forte en colonne (split) */
.split-emphasis {
  margin: 1.75rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--primary);
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Bloc « une mesure ne suffit pas » */
.context-block {
  max-width: 900px;
  margin: 4.5rem auto 0;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.context-head .section-tag { margin-bottom: 1rem; }
.context-head h3 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em; }
.context-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.context-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.context-temp {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.context-verdict {
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.context-ok {
  background: rgba(25, 195, 125, 0.12);
  border: 1px solid rgba(25, 195, 125, 0.35);
  color: var(--primary-bright);
}
.context-bad {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}
.context-case p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.context-vs {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--text-muted);
}
.context-note {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Pipeline de raisonnement en 4 phases (De la machine au raisonnement) */
.reasoning-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 1120px;
  margin: 0 auto 2.5rem;
}
.rf-phase {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.rf-phase:hover {
  border-color: rgba(25, 195, 125, 0.35);
  box-shadow: var(--shadow-glow);
}
.rf-phase-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.rf-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-bright);
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.3);
  border-radius: 7px;
  padding: 0.12rem 0.45rem;
}
.rf-phase-head h4 { font-size: 1.02rem; letter-spacing: -0.01em; }
.rf-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 0;
  margin: 0;
  flex: 1;
}
.rf-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  position: relative;
  padding-left: 1.05rem;
}
.rf-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.rf-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1.2em;
  bottom: -0.95rem;
  width: 1px;
  background: var(--border);
}
.rf-step { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.rf-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.rf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
}
.rf-arrow::before { content: '→'; }

/* Dialogue assistant opérateur */
.dialogue { display: flex; flex-direction: column; gap: 1rem; }
.dialogue-msg { padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--border); }
.dialogue-op {
  background: rgba(255, 255, 255, 0.03);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  max-width: 85%;
}
.dialogue-ai {
  background: var(--primary-dim);
  border-color: rgba(25, 195, 125, 0.3);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.dialogue-who {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.dialogue-ai .dialogue-who { color: var(--primary-bright); }
.dialogue-who img { border-radius: 5px; }
.dialogue-msg p { margin: 0 0 0.5rem; font-size: 0.95rem; line-height: 1.5; color: var(--text); }
.dialogue-msg p:last-child { margin-bottom: 0; }

/* Note offre (conclusion SPARK) */
.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: -0.25rem 0 1.5rem;
  line-height: 1.45;
}

/* Exemple d'ontologie (moteur M-42) */
.onto-head {
  text-align: center;
  max-width: 720px;
  margin: 4.5rem auto 2.5rem;
}
.onto-head h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.onto-head p { color: var(--text-muted); font-size: 1.05rem; }
.onto-board { margin-bottom: 4.5rem; }

/* Légende interactive des nœuds SVG */
.workflow .flow-node { cursor: pointer; }
.node-legend {
  margin: 1rem auto 0.5rem;
  max-width: 760px;
  /* hauteur fixe : couvre le plus long texte (≈4.9em) pour que la boîte
     ne change jamais de taille au survol → aucun saut de mise en page */
  min-height: 5.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition);
}
.node-legend strong { color: var(--primary-bright); font-weight: 600; }
.node-legend.active { border-color: rgba(25, 195, 125, 0.4); color: var(--text); }
.node-legend.swap { animation: legend-in 0.3s ease; }
@keyframes legend-in { from { opacity: 0.25; } }
.onto-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0.75rem auto 1rem;
}

/* ── Animations des nouveaux blocs ────────────── */

/* Pipeline de raisonnement : apparition sobre, gauche → droite */
.reasoning-flow.reveal { opacity: 1; transform: none; }
.reasoning-flow > * {
  opacity: 0;
  transform: translateY(14px);
}
.reasoning-flow.visible > * {
  animation: chain-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--enter) forwards;
}
.reasoning-flow.visible > *:nth-child(2) { animation-delay: calc(var(--enter) + 0.1s); }
.reasoning-flow.visible > *:nth-child(3) { animation-delay: calc(var(--enter) + 0.2s); }
.reasoning-flow.visible > *:nth-child(4) { animation-delay: calc(var(--enter) + 0.3s); }
.reasoning-flow.visible > *:nth-child(5) { animation-delay: calc(var(--enter) + 0.4s); }
.reasoning-flow.visible > *:nth-child(6) { animation-delay: calc(var(--enter) + 0.5s); }
.reasoning-flow.visible > *:nth-child(7) { animation-delay: calc(var(--enter) + 0.6s); }
@keyframes chain-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Verdicts 80 °C : pop après les compteurs */
.context-verdict {
  opacity: 0;
  transform: scale(0.6);
}
.context-block.visible .context-verdict {
  animation: verdict-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.context-block.visible .context-case:first-child .context-verdict { animation-delay: calc(var(--enter) + 1.15s); }
.context-block.visible .context-case:last-child .context-verdict { animation-delay: calc(var(--enter) + 1.45s); }
@keyframes verdict-pop {
  to { opacity: 1; transform: scale(1); }
}

/* Dialogue assistant : l'opérateur parle, Eff-IA répond */
.dialogue .dialogue-op,
.dialogue .dialogue-ai {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-visual.visible .dialogue-op {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--enter) + 0.25s);
}
.split-visual.visible .dialogue-ai {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--enter) + 0.95s);
}

/* Méthode : les étapes apparaissent une par une (cascade nette,
   montée + léger zoom, ~0,17 s entre chaque). Pilotée par une animation
   (et non une transition) car « .steps li » écrase la transition de
   .reveal ; l'animation ne gêne pas le survol (border/ombre) et se
   rejoue à chaque entrée de section via le basculement de .visible. */
.steps li.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  filter: none;
}
.steps li.reveal.visible {
  animation: stepIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes stepIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.steps li.reveal.visible:nth-child(1) { animation-delay: calc(var(--enter) + 0.05s); }
.steps li.reveal.visible:nth-child(2) { animation-delay: calc(var(--enter) + 0.22s); }
.steps li.reveal.visible:nth-child(3) { animation-delay: calc(var(--enter) + 0.39s); }
.steps li.reveal.visible:nth-child(4) { animation-delay: calc(var(--enter) + 0.56s); }
.steps li.reveal.visible:nth-child(5) { animation-delay: calc(var(--enter) + 0.73s); }
.steps li.reveal.visible:nth-child(6) { animation-delay: calc(var(--enter) + 0.90s); }

/* Responsive nouveaux composants */
@media (max-width: 640px) {
  .context-compare { grid-template-columns: 1fr; }
  .context-vs { transform: rotate(90deg); }
  .reasoning-flow { grid-template-columns: 1fr; }
  .rf-arrow { padding: 0.15rem 0; }
  .rf-arrow::before { content: '↓'; }
}

/* Schémas SVG : scroll horizontal lisible sous 920px */
@media (max-width: 920px) {
  .workflow-board { padding: 2.75rem 1rem 1.25rem; }
  .workflow-board::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 46px;
    background: linear-gradient(to right, transparent, var(--bg-alt));
    pointer-events: none;
    z-index: 1;
  }
  .workflow-board::before {
    content: '↔ glisser';
    position: absolute;
    top: 1.15rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--primary-bright);
    background: var(--primary-dim);
    border: 1px solid rgba(25, 195, 125, 0.3);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
  }
}

/* ── FAQ ──────────────────────────────────────── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.faq-item:hover { background: var(--surface-hover); }
.faq-item[open] { border-color: rgba(25, 195, 125, 0.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-bright);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > p {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Schéma d'architecture en couches (page Technologie) ── */
.arch-stack {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.arch-layer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition), background var(--transition);
}
.arch-layer:hover { border-color: rgba(25, 195, 125, 0.35); background: var(--surface-hover); }
.arch-layer-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}
.arch-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-bright);
  background: var(--primary-dim);
  border: 1px solid rgba(25, 195, 125, 0.3);
  border-radius: 7px;
  padding: 0.15rem 0.5rem;
}
.arch-layer-head h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.arch-layer p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.arch-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
}
.arch-tags li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.arch-down {
  display: flex;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  padding: 0.4rem 0;
  line-height: 1;
}
.arch-down::before { content: '↓'; }
.arch-layer.arch-core { border-color: rgba(25, 195, 125, 0.4); background: var(--primary-dim); }
.arch-layer.arch-core .arch-num { background: var(--primary); color: #04150d; border-color: var(--primary); }

/* ── Page Technologie : nav interne, pastilles, limites ── */
.tech-toc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tech-toc a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.tech-toc a:hover { color: var(--text); border-color: var(--primary); }
.tech-hero {
  padding: 3.5rem 0 1rem;
  text-align: center;
}
.tech-hero .section-tag { margin-bottom: 1rem; }
.tech-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 1.25rem;
}
.tech-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.limits-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  list-style: none;
  padding: 0;
}
.limits-list li {
  position: relative;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.limits-list li::before {
  content: '—';
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--primary-bright);
  font-weight: 700;
}
.tech-cta {
  text-align: center;
  padding: 4rem 0;
}
.tech-cta h2 { margin-bottom: 1rem; }
.tech-cta p { color: var(--text-muted); max-width: 560px; margin: 0 auto 1.75rem; }

@media (max-width: 640px) {
  .tech-toc { gap: 0.4rem 0.65rem; padding: 0.9rem 1.25rem; }
  .arch-layer { padding: 1.25rem 1.35rem; }
}

/* ══════════════════════════════════════════════════════════════
   MODE « FULLPAGE » — présentation section par section
   Activé uniquement sur desktop à pointeur fin (voir script.js).
   Chaque section devient un panneau plein écran. La transition
   évoque l'IA qui « fait le point » sur un signal à la fois :
   la section suivante arrive floue et se met au point (blur → net)
   avec un léger zoom.
   ══════════════════════════════════════════════════════════════ */
body.fullpage { overflow: hidden; height: 100vh; }

/* La navbar et l'indicateur de scroll du hero restent utiles */
body.fullpage .scroll-indicator { animation: none; }

body.fullpage .fp-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 72px;                 /* dégagement sous la navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;      /* centré si ça tient, sinon défile sans rogner */
  background: var(--bg);             /* occlusion nette pendant le fondu croisé */
  opacity: 0;
  visibility: hidden;
  /* état de repos (hors écran) : léger zoom + décalage directionnel.
     Le sens du décalage suit le scroll (voir [data-fp-dir]). */
  transform: translateY(52px) scale(0.97);
  filter: blur(14px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.85s;
  z-index: 1;
}

/* Direction du mouvement (posée par script.js sur <body>).
   Descente : la section entrante monte depuis le bas ; la sortante
   s'échappe vers le haut. Montée : mouvement inversé. */
body.fullpage[data-fp-dir="down"] .fp-panel { transform: translateY(52px) scale(0.97); }
body.fullpage[data-fp-dir="up"]   .fp-panel { transform: translateY(-52px) scale(0.97); }

body.fullpage[data-fp-dir="down"] .fp-panel.is-leaving { transform: translateY(-52px) scale(1.03); }
body.fullpage[data-fp-dir="up"]   .fp-panel.is-leaving { transform: translateY(52px) scale(1.03); }

/* La section qui part reste visible le temps de s'effacer (fondu croisé) */
body.fullpage .fp-panel.is-leaving {
  visibility: visible;
  z-index: 1;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.6, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.4, 0, 0.6, 1),
    visibility 0s linear 0.9s;
}
/* préserve les fonds alternés et spécifiques */
body.fullpage .fp-panel.section-alt { background: var(--bg-alt); }
/* le hero fait déjà 100vh : on neutralise son min-height et on clippe
   son halo décoratif pour éviter un débordement résiduel (cran mort) */
body.fullpage .fp-panel.hero {
  background: var(--bg);
  min-height: 0;
  padding-top: 64px;
  overflow: hidden;
}

body.fullpage .fp-panel.is-active,
body.fullpage[data-fp-dir="down"] .fp-panel.is-active,
body.fullpage[data-fp-dir="up"] .fp-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  z-index: 2;
}

/* En fullpage, on comprime les grands paddings verticaux : le centrage
   flex gère l'espacement, et chaque section doit tenir dans un écran. */
body.fullpage .fp-panel.section,
body.fullpage .fp-panel.cta-final {
  padding-top: 60px;
  padding-bottom: 20px;
}

/* « Offres » : 3 formules côte à côte (sinon elles s'empilent sur 2 rangées
   et la section devient trop haute). Cartes un peu compactées. */
body.fullpage #offres .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
body.fullpage #offres .pricing-card { padding: 1.75rem 1.4rem; }
body.fullpage #offres .pricing-card .check-list { margin-bottom: 1.25rem; }

/* « Ontologie M-42 » : on récupère l'espace autour du schéma (marges du
   titre, du cadre et des notes) pour que le diagramme s'affiche plus grand
   et que l'auto-fit ne le réduise presque plus. */
body.fullpage #flux-onto .onto-head { margin: 0 auto 1.25rem; }
body.fullpage #flux-onto .onto-board { margin-bottom: 0; }
body.fullpage #flux-onto .workflow-board { padding: 1.5rem 1.5rem 1rem; }
body.fullpage #flux-onto .node-legend { margin: 0.75rem auto 0.4rem; padding: 0.6rem 1.1rem; }
body.fullpage #flux-onto .onto-note { margin: 0.4rem auto 0; }

/* Navigation par points (repère de position + saut rapide) */
.fp-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: none;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
body.fullpage .fp-dots { display: flex; }

.fp-dot {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.fp-dot:hover { border-color: var(--primary-bright); transform: scale(1.18); }
.fp-dot.is-active {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 12px rgba(25, 195, 125, 0.7);
}
.fp-dot-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  background: rgba(7, 13, 24, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fp-dot:hover .fp-dot-label,
.fp-dot:focus-visible .fp-dot-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Sous une certaine hauteur, on masque les points pour ne pas gêner */
@media (max-height: 620px) {
  body.fullpage .fp-dots { display: none; }
}

/* ═══════════════════════════════════════════════
   Micro-animations « premium » — vie sur chaque élément
   (le bloc prefers-reduced-motion plus haut, en !important,
    neutralise l'ensemble pour qui le demande)
   ═══════════════════════════════════════════════ */

/* ── Texte dégradé : dégradé qui respire en continu ── */
.gradient-text {
  background-size: 220% 100%;
  animation: gradientShift 7s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Boutons : balayage lumineux au survol ── */
.btn-primary, .btn-ghost { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-ghost::after {
  content: '';
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 1;
}
.btn-ghost::after { background: linear-gradient(120deg, transparent, rgba(46, 230, 160, 0.22), transparent); }
.btn-primary:hover::after, .btn-ghost:hover::after { animation: btnSheen 0.85s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes btnSheen { from { left: -130%; } to { left: 140%; } }
/* la flèche du bouton reste au-dessus du reflet */
.btn span, .btn svg { position: relative; z-index: 2; }
/* pulsation douce et permanente de l'ombre du CTA principal */
.btn-primary { animation: ctaBreath 3.6s ease-in-out infinite; }
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 4px 20px rgba(25, 195, 125, 0.35); }
  50%      { box-shadow: 0 6px 28px rgba(25, 195, 125, 0.55); }
}
.btn-primary:hover { animation: none; }

/* ── Étiquettes de section : reflet lent qui balaie ── */
.section-tag {
  position: relative;
  overflow: hidden;
}
.section-tag::after {
  content: '';
  position: absolute;
  top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(46, 230, 160, 0.28), transparent);
  transform: skewX(-22deg);
  animation: tagSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tagSheen {
  0%, 62%, 100% { left: -140%; }
  80%           { left: 150%; }
}

/* ── Icônes de carte : respiration + réaction au survol ── */
.card-icon {
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.card-icon svg { transition: transform var(--transition); }
.card:hover .card-icon {
  transform: translateZ(30px) scale(1.12) rotate(-6deg);
  background: rgba(25, 195, 125, 0.2);
  box-shadow: 0 0 26px rgba(25, 195, 125, 0.45);
}
.card:hover .card-icon svg { transform: scale(1.08); }

/* ── Carte : reflet diagonal qui traverse au survol ── */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: -160%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.card:hover::after { animation: cardSheen 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes cardSheen { from { left: -160%; } to { left: 160%; } }

/* ── Puces « secteurs » : reflet + halo au survol ── */
.partner-chip { position: relative; overflow: hidden; }
.partner-chip::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(46, 230, 160, 0.25), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}
.partner-chip:hover {
  box-shadow: 0 6px 22px rgba(25, 195, 125, 0.18);
}
.partner-chip:hover::after { animation: cardSheen 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── Chiffres clés : lueur qui pulse discrètement ── */
.stat-block strong { animation: statGlow 3.8s ease-in-out infinite; }
@keyframes statGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(46, 230, 160, 0); }
  50%      { text-shadow: 0 0 20px rgba(46, 230, 160, 0.45); }
}
/* variante hero : on conserve l'ombre de lisibilité sur la scène 3D */
.hero-stat strong { animation: heroStatGlow 3.8s ease-in-out infinite; }
@keyframes heroStatGlow {
  0%, 100% { text-shadow: 0 1px 3px rgba(4, 9, 16, 0.95), 0 0 18px rgba(4, 9, 16, 0.8); }
  50%      { text-shadow: 0 1px 3px rgba(4, 9, 16, 0.95), 0 0 18px rgba(4, 9, 16, 0.8), 0 0 22px rgba(46, 230, 160, 0.5); }
}

/* ── Liste à cocher : la pastille réagit au survol de la ligne ── */
.check-list li::before {
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.check-list li:hover::before {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(25, 195, 125, 0.5);
}

/* ── Révélation cinématique : mise au point (flou → net) ──
   Prolonge l'esprit « projecteur / mise au point » du site :
   le contenu arrive légèrement flou puis se fixe. */
.reveal {
  filter: blur(6px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { filter: blur(0); }
/* Schémas de flux : jamais floutés (lisibilité du SVG) */
.reasoning-flow.reveal,
.workflow-board.reveal,
.partners-merged.reveal { filter: none; }

/* ── Pastille « en ligne » du chat : léger halo qui bat ── */
.chat-status .badge-dot { animation: pulse 2s infinite, dotHalo 2s ease-in-out infinite; }
@keyframes dotHalo {
  0%, 100% { box-shadow: 0 0 8px var(--primary); }
  50%      { box-shadow: 0 0 16px var(--primary-bright); }
}

/* ═══════════════════════════════════════════════
   Animations d'APPARITION (texte, fenêtres, machine à écrire)
   ═══════════════════════════════════════════════ */

/* ── Titres révélés mot à mot (effet masque) ──
   JS enveloppe chaque mot dans .word > .word-i ; le mot glisse depuis
   le bas quand le bloc .reveal parent reçoit .visible (rejoué en fullpage). */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.word-i {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.045s);
}
.reveal.visible .word-i {
  transform: translateY(0);
  opacity: 1;
}

/* ── Machine à écrire : curseur pendant la frappe ── */
.readout.typing::after {
  content: '';
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  background: var(--primary-bright);
  vertical-align: -0.15em;
  animation: caretBlink 0.8s steps(2) infinite;
}

/* ── Fenêtre de chat : glisse depuis la droite ── */
.reveal .chat-card {
  opacity: 0;
  transform: translateX(48px) scale(0.96);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.18s;
}
.reveal.visible .chat-card {
  opacity: 1;
  transform: none;
}

/* ── Blocs de chiffres : montée en cascade ── */
.reveal .stat-block,
.reveal .hero-stat {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible .stat-block,
.reveal.visible .hero-stat {
  opacity: 1;
  transform: none;
}
.reveal.visible .stat-block:nth-child(2),
.reveal.visible .hero-stat:nth-child(2) { transition-delay: 0.12s; }
.reveal.visible .stat-block:nth-child(3),
.reveal.visible .hero-stat:nth-child(3) { transition-delay: 0.24s; }

/* ── Constat : séquence — le 2e bloc (23 %) reste masqué tant que le
   1er (0→83 %) n'a pas fini de défiler. .seq-run est posé par le JS.
   Le sélecteur à base d'#id l'emporte sur la révélation générique. */
#constat .stats-band .stat-block:nth-child(2) {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#constat .stats-band.visible .stat-block:nth-child(2) {
  opacity: 0;
  transform: translateY(26px);
}
#constat .stats-band.seq-run .stat-block:nth-child(2) {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   Passe « vie » par section — une signature par section
   ═══════════════════════════════════════════════ */

/* ── Cartes (Capacités / Applications / Sécurité) : l'icône surgit ──
   Sans fill : l'animation rend la main au CSS, le survol reste intact. */
.reveal.visible .card-icon {
  animation: iconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) var(--enter) backwards;
}
@keyframes iconPop {
  0%   { opacity: 0; transform: translateZ(30px) scale(0.4) rotate(-25deg); }
  100% { opacity: 1; transform: translateZ(30px) scale(1) rotate(0); }
}

/* ── Le contexte 80 °C : le « = » se révèle entre les deux cas ──
   (les compteurs défilent à l'entrée, les verdicts « poppent » ensuite —
    gérés en JS et plus haut ; ici on ne fait que le signe d'égalité) */
#constat-contexte .context-vs { opacity: 0; }
#constat-contexte .context-block.visible .context-vs {
  animation: fadeInSoft 0.5s ease calc(var(--enter) + 0.15s) forwards;
}
@keyframes fadeInSoft { to { opacity: 1; } }

/* ── Offres : la carte « FLOW » respire, son badge pulse, les prix surgissent ── */
.pricing-featured { animation: featuredBreath 3.6s ease-in-out infinite; }
.pricing-featured:hover { animation: none; }
@keyframes featuredBreath {
  0%, 100% { box-shadow: 0 0 0 rgba(25, 195, 125, 0); }
  50%      { box-shadow: 0 0 34px rgba(25, 195, 125, 0.22); }
}
.pricing-badge { animation: badgePulse 3.6s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.06); }
}
.pricing-price .amount { display: inline-block; }
.reveal.visible .pricing-price .amount {
  animation: pricePop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) var(--enter) both;
}
@keyframes pricePop {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── FAQ : les questions arrivent en cascade, la réponse se dévoile ── */
.faq-list .faq-item { opacity: 0; transform: translateY(16px); }
.faq-list.visible .faq-item {
  animation: faqIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--enter) forwards;
}
.faq-list.visible .faq-item:nth-child(2) { animation-delay: calc(var(--enter) + 0.12s); }
.faq-list.visible .faq-item:nth-child(3) { animation-delay: calc(var(--enter) + 0.24s); }
.faq-list.visible .faq-item:nth-child(4) { animation-delay: calc(var(--enter) + 0.36s); }
.faq-list.visible .faq-item:nth-child(5) { animation-delay: calc(var(--enter) + 0.48s); }
@keyframes faqIn { to { opacity: 1; transform: none; } }
.faq-item[open] > p { animation: faqReveal 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } }

/* ── Contact : les champs du formulaire arrivent un par un ── */
.contact-form > * { opacity: 0; transform: translateY(18px); }
.reveal.visible .contact-form > * {
  animation: faqIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--enter) forwards;
}
.reveal.visible .contact-form > *:nth-child(2) { animation-delay: calc(var(--enter) + 0.12s); }
.reveal.visible .contact-form > *:nth-child(3) { animation-delay: calc(var(--enter) + 0.24s); }
.reveal.visible .contact-form > *:nth-child(4) { animation-delay: calc(var(--enter) + 0.36s); }
.reveal.visible .contact-form > *:nth-child(5) { animation-delay: calc(var(--enter) + 0.48s); }

/* ── Listes à cocher : les points se construisent un par un ──
   (Souveraineté, À propos, Offres) — glissent depuis la gauche,
   pilotés par l'apparition du bloc .reveal parent. */
.check-list li { opacity: 0; transform: translateX(-12px); }
.reveal.visible .check-list li {
  animation: listItemIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--enter) forwards;
}
.reveal.visible .check-list li:nth-child(2) { animation-delay: calc(var(--enter) + 0.1s); }
.reveal.visible .check-list li:nth-child(3) { animation-delay: calc(var(--enter) + 0.2s); }
.reveal.visible .check-list li:nth-child(4) { animation-delay: calc(var(--enter) + 0.3s); }
.reveal.visible .check-list li:nth-child(5) { animation-delay: calc(var(--enter) + 0.4s); }
.reveal.visible .check-list li:nth-child(6) { animation-delay: calc(var(--enter) + 0.5s); }
@keyframes listItemIn { to { opacity: 1; transform: none; } }

/* ── Constat · secteurs : les puces arrivent en cascade ── */
.partners-merged .partner-chip { opacity: 0; transform: translateY(12px); }
.partners-merged.visible .partner-chip {
  animation: chipIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--enter) forwards;
}
.partners-merged.visible .partner-chip:nth-child(2) { animation-delay: calc(var(--enter) + 0.08s); }
.partners-merged.visible .partner-chip:nth-child(3) { animation-delay: calc(var(--enter) + 0.16s); }
.partners-merged.visible .partner-chip:nth-child(4) { animation-delay: calc(var(--enter) + 0.24s); }
.partners-merged.visible .partner-chip:nth-child(5) { animation-delay: calc(var(--enter) + 0.32s); }
.partners-merged.visible .partner-chip:nth-child(6) { animation-delay: calc(var(--enter) + 0.4s); }
@keyframes chipIn { to { opacity: 1; transform: none; } }

/* ── Footer : les colonnes se posent en douceur ── */
.footer-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.footer-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.footer-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
