/* ============================================================
   AGENTIC.GURU — identité "l'œil" (la machine qui voit le viral)
   Palette verrouillée (doc 11) : noir + bleu #3B82F6 + vert preuve.
   Type (WQ-0089, master prompt V2 §2) : Geist Variable (tout) ·
   Geist Mono Variable (labels, numéros, metadata). 2 familles max.
   Fonts auto-hébergées : assets/fonts/*.woff2 (subset latin, variable),
   provenance Vercel Geist via Fontsource 5.3.0, licence OFL-1.1
   (assets/fonts/LICENSE-geist-OFL.txt). Zéro Google Fonts.
   ============================================================ */

/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* geist-mono-latin-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* WQ-0089 — familles (V2 §2) + échelle typographique fluide (V2 §3) */
  --font-sans: 'Geist Variable', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono Variable', 'SFMono-Regular', Consolas, monospace;
  --text-xs: clamp(0.72rem, 0.68rem + 0.12vw, 0.79rem);
  --text-sm: clamp(0.84rem, 0.80rem + 0.14vw, 0.93rem);
  --text-base: clamp(1rem, 0.96rem + 0.15vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1.07rem + 0.28vw, 1.32rem);
  --text-xl: clamp(1.45rem, 1.30rem + 0.55vw, 1.85rem);
  --text-2xl: clamp(2rem, 1.65rem + 1.25vw, 3rem);
  --text-hero: clamp(3.4rem, 2.6rem + 3vw, 6.4rem);
  --bg: #06070c;
  --bg-2: #0a0c14;
  --surface: #0e1018;
  --surface-2: #14171f;
  --line: rgba(96, 165, 250, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f4f4f5;
  --gray: #a1a1aa;
  --muted: #6b7280;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-deep: #2563eb;
  --green: #22c55e;
  --glow: 0 0 40px rgba(59, 130, 246, 0.45);
  --maxw: 1080px;
  /* WQ-0089 — Space Grotesk / Inter / JetBrains Mono remplacées (V2 §2).
     Les COULEURS ci-dessus restent strictement inchangées. */
  --display: var(--font-sans);
  --body: var(--font-sans);
  --mono: var(--font-mono);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.blue { color: var(--blue-light); }
.green { color: var(--green); }

/* faint technical grid wash */
.grid-bg::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
}

/* ============ HUB (WQ-0089 — composition V2 §6) ============ */
.page-shell {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}
.hub {
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 0 30px; text-align: center;
}
.hub-top { font-family: var(--mono); font-size: var(--text-xs); letter-spacing: 0.28em; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }

/* hero grid : rythme contrôlé, pas de height:100vh, pas de flex:1 qui
   crée des vides — le contenu scrolle toujours */
.hero {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

/* The eye = signe compact, plus un déclencheur de menu (V2 §5/§6) */
.eye-wrap { position: relative; width: min(200px, 56vw); aspect-ratio: 1/1; margin-top: 4px; }
.eye-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.35);
  box-shadow: var(--glow), inset 0 0 60px rgba(0,0,0,0.6);
  animation: breathe 6s ease-in-out infinite;
}
.eye-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.25);
  animation: spin 26s linear infinite;
}
.eye-ring::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px;
  background: var(--blue-light); border-radius: 50%; box-shadow: 0 0 12px var(--blue-light);
  transform: translateX(-50%);
}
@keyframes breathe { 0%,100% { box-shadow: 0 0 32px rgba(59,130,246,0.35), inset 0 0 60px rgba(0,0,0,0.6); } 50% { box-shadow: 0 0 60px rgba(59,130,246,0.6), inset 0 0 60px rgba(0,0,0,0.55); } }
@keyframes spin { to { transform: rotate(360deg); } }

.brandline {
  font-family: var(--display);
  font-size: var(--text-hero);
  font-weight: 720;
  letter-spacing: 0.03em;
  line-height: 0.98;
}
.tagline { color: var(--gray); font-size: var(--text-lg); line-height: 1.5; max-width: 520px; }
.tagline b { color: var(--ink); font-weight: 620; }

/* ============ WQ-0089 — ROUTE CARDS = VRAIS CONTRÔLES (V2 §5) ============
   <a> complet : index mono, contenu (titre + outcome max 2 lignes),
   action SVG dans un cercle 38px. Hover / focus-visible / active.
   Desktop : 3 colonnes · mobile : empilées. Aucun clic dépendant du hover. */
.routes {
  width: min(920px, 100%);
  display: grid;
  /* 2x2 depuis l'ajout de la carte 04 : a 4 cartes, trois colonnes laissaient
     une carte orpheline sur une seconde ligne. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.route-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 18px 18px 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 160ms ease, background-color 160ms ease,
              box-shadow 160ms ease;
}
.route-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.06);
}
.route-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(96, 165, 250, 0.55);
}
.route-card:active { transform: translateY(1px); }
/* WQ-0090 — index premium : plaque monogramme, plus de chiffre nu générique */
.route-card__index {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-light);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0.02));
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.route-card__index::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  pointer-events: none;
}
.route-card__index::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.55), transparent);
}
.route-card:hover .route-card__index,
.route-card:focus-visible .route-card__index {
  color: var(--ink);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(37, 99, 235, 0.28);
}
.route-card__action {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue-light);
  transition: border-color 160ms ease, background-color 160ms ease,
              transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.route-card__action svg { width: 17px; height: 17px; display: block; }
.route-card:hover .route-card__action {
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateX(2px);
}
.route-card__content {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.route-card__content strong { font-weight: 650; font-size: var(--text-base); color: var(--ink); line-height: 1.25; }
.route-card__content span {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 860px) {
  .routes { width: min(480px, 100%); grid-template-columns: 1fr; gap: 10px; }
  .route-card {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 16px;
    min-height: 72px;
  }
  .route-card:hover { transform: none; }
  .route-card__index { grid-row: 1; grid-column: 1; padding-top: 0; }
  .route-card__content { grid-row: 1; grid-column: 2; }
  .route-card__action { grid-row: 1; grid-column: 3; width: 36px; height: 36px; }
}

.hub-foot { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }

/* ============ WQ-0087-G3 — fond « signal » hero (background-lines,
   port Aceternity en SVG + CSS pur, 0 KB JS, tokens existants) ============ */
/* le fond signal vit dans .hero (position:relative définie plus haut) */
.hub-lines {
  position: absolute; inset: -6% -4%; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.hub-lines svg { width: 100%; height: 100%; display: block; }
.hub-lines path {
  stroke-dasharray: 20 800;
  stroke-dashoffset: 800;
  opacity: 0;
  animation: hub-line-flow 12s linear infinite;
}
/* couleurs : uniquement les tokens bleus existants, cyclés */
.hub-lines path:nth-child(3n + 1) { stroke: var(--blue-light); }
.hub-lines path:nth-child(3n + 2) { stroke: var(--blue); }
.hub-lines path:nth-child(3n)     { stroke: var(--blue-deep); }
/* délais échelonnés (cycle 12 s, MOTION_INTENSITY_MAP) */
.hub-lines path:nth-child(1) { animation-delay: 0s; }
.hub-lines path:nth-child(2) { animation-delay: 1.7s; }
.hub-lines path:nth-child(3) { animation-delay: 3.4s; }
.hub-lines path:nth-child(4) { animation-delay: 5.1s; }
.hub-lines path:nth-child(5) { animation-delay: 6.8s; }
.hub-lines path:nth-child(6) { animation-delay: 8.5s; }
.hub-lines path:nth-child(7) { animation-delay: 1.2s; }
.hub-lines path:nth-child(8) { animation-delay: 2.9s; }
@keyframes hub-line-flow {
  0% { stroke-dashoffset: 800; opacity: 0; }
  8% { opacity: 0.5; }
  70% { opacity: 0.5; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
/* mobile : variante calm, 4 tracés seulement */
@media (max-width: 560px) {
  .hub-lines path:nth-child(n + 5) { display: none; }
  .hub-lines path { animation-duration: 18s; stroke-width: 1.6; }
}

/* ============ WQ-0087-G3 — section preuve produit (pattern feature
   section Aceternity porté statique, 3 blocs max, aucune image) ============ */
.proof { width: min(920px, 92vw); margin: 0 auto; padding: 10px 0 34px; flex-shrink: 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proof-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; text-align: left;
  transition: border-color .25s ease, transform .25s ease;
}
.proof-card:hover { border-color: rgba(96,165,250,0.5); transform: translateY(-3px); }
.proof-icon { color: var(--blue-light); margin-bottom: 12px; display: block; }
.proof-title { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); margin: 0 0 6px; }
.proof-body { color: var(--gray); font-size: 13.5px; line-height: 1.55; margin: 0; }
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; gap: 10px; }
  .proof-card:hover { transform: none; }
}

@media (max-width: 560px) {
  .eye-wrap { width: min(160px, 46vw); }
  .eye-img { box-shadow: 0 0 26px rgba(59,130,246,0.4), inset 0 0 40px rgba(0,0,0,0.6); }
  .brandline { position: relative; z-index: 2; }
  .tagline { position: relative; z-index: 2; }
  .hero { padding-block: 2rem 2.25rem; gap: 1.1rem; }
  .hub { padding: 22px 0 26px; }
  /* cours : texte justifié sur mobile */
  .lesson p, .course-head .sub { text-align: justify; }
}

/* ============ Shared page chrome ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 26px 22px 90px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 30px; }
.topbar .home { display: flex; align-items: center; gap: 10px; }
.topbar .home img { width: 26px; height: 26px; }
.topbar .home span { font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; }
.back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.back:hover { color: var(--ink); }

/* ============ Course head ============ */
.course-head { text-align: center; padding: 16px 0 38px; border-bottom: 1px solid var(--line); }
.course-head h1 { font-family: var(--display); font-size: clamp(38px, 8vw, 80px); line-height: 0.92; letter-spacing: 0.01em; margin: 14px 0 18px; text-transform: uppercase; }
.course-head .sub { color: var(--gray); max-width: 620px; margin: 0 auto; font-size: 16px; }

.progress { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gray); }
.pill.done { color: var(--green); border-color: rgba(34,197,94,0.4); }
.pill.date { color: var(--blue-light); border-color: rgba(96,165,250,0.4); }

/* ============ Lessons ============ */
.lesson { padding: 42px 0; border-bottom: 1px solid var(--line-soft); }
.lesson .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--blue-light); text-transform: uppercase; }
.lesson h2 { font-family: var(--display); font-size: clamp(24px, 4.5vw, 40px); margin: 10px 0 18px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.lesson p { color: #d4d4d8; margin-bottom: 14px; max-width: 760px; }
.lesson ul { color: #d4d4d8; margin: 0 0 16px 22px; max-width: 760px; }
.lesson li { margin-bottom: 9px; }
.lesson strong { color: var(--ink); }
.lesson em { color: var(--blue-light); font-style: normal; }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 18px 20px; margin: 20px 0; max-width: 760px; }
.callout .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-light); }
.callout.proof { border-left-color: var(--green); }
.callout.proof .lab { color: var(--green); }
.callout p { margin: 6px 0 0; color: #e4e4e7; }

/* score chip — VIRA-1 signature */
.score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; color: var(--blue-light); font-size: 13px; }
.score b { color: var(--ink); font-size: 15px; }

/* ============ Locked / next part ============ */
.locked { text-align: center; padding: 56px 24px; margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.locked .eyemini { width: 46px; height: 46px; opacity: .9; margin-bottom: 6px; }
.locked h3 { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin: 8px 0 6px; }
.locked .when { font-family: var(--mono); color: var(--blue-light); letter-spacing: 0.06em; margin-bottom: 16px; }
.locked .soon-list { color: #d4d4d8; display: inline-block; text-align: left; margin: 0 auto 24px; }
.locked .soon-list li { margin-bottom: 7px; }

/* WQ-0089 — BUTTON SYSTEM V2 §4 : primary violet en dégradé profond
   (valeurs fournies par le master prompt humain, réservées aux boutons
   publics). Plus de gros pill, vrais états hover/focus/active. */
.cta, .btn-primary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding-inline: 1.6rem;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(196, 181, 253, 0.30);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, #7c3aed 0%, #6d28d9 48%, #581c87 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(91, 33, 182, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 160ms ease, background-color 160ms ease,
              box-shadow 160ms ease, color 160ms ease;
}
.cta:hover, .btn-primary:hover {
  transform: translateY(-1px);
  border-color: rgba(221, 214, 254, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(91, 33, 182, 0.32),
    0 3px 8px rgba(0, 0, 0, 0.40);
}
.cta:focus-visible, .btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(139, 92, 246, 0.5);
}
.cta:active, .btn-primary:active { transform: translateY(1px) scale(0.985); }

.foot { text-align: center; font-family: var(--mono); color: var(--muted); font-size: 12px; padding: 44px 0 0; letter-spacing: 0.12em; }

/* ============ Courses grid ============ */
.courses-head { text-align: center; padding: 12px 0 6px; }
.courses-head h1 { font-family: var(--display); font-size: clamp(40px, 9vw, 86px); text-transform: uppercase; line-height: 0.9; }
.courses-head .sub { color: var(--gray); max-width: 560px; margin: 16px auto 0; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 38px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px; display: flex; flex-direction: column; min-height: 240px; transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.card:hover { transform: translateY(-5px); border-color: rgba(96,165,250,0.5); box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.card.locked-card { opacity: .6; }
.card.locked-card:hover { transform: none; box-shadow: none; }
.card .c-idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.card h3 { font-family: var(--display); font-size: 26px; margin: 12px 0 12px; line-height: 1.04; text-transform: uppercase; }
.card p { color: var(--gray); font-size: 14.5px; flex: 1; }
.card .c-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.card .c-go { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.card .c-go.go { color: var(--green); }
.card .c-go.soon { color: var(--blue-light); }

@media (prefers-reduced-motion: reduce) {
  .eye-img, .eye-ring { animation: none !important; }
  * { scroll-behavior: auto; }
  /* WQ-0087-G3 : lignes hero figées, faibles et statiques ; cartes sans lift */
  .hub-lines path {
    animation: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.12;
  }
  .route-card, .route-card__action, .proof-card, .cta, .btn-primary { transition: none; }
  .route-card:hover, .proof-card:hover, .cta:hover, .btn-primary:hover { transform: none; }
}

/* ============ Gate connexion Google ============ */
.gate-ov {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,5,10,0.86); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.gate-ov.show { opacity: 1; pointer-events: auto; }
.gate-card {
  width: min(420px, 94vw); background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 26px 28px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.gate-card .eyemini { width: 54px; height: 54px; margin-bottom: 10px; }
.gate-card h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1; margin-bottom: 10px; }
.gate-card p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.gate-consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 12.5px; color: var(--gray); margin: 16px 4px 4px; }
.gate-consent input { margin-top: 3px; accent-color: var(--blue); }
.gate-consent a { color: var(--blue-light); text-decoration: underline; }
.gate-btn-wrap { display: flex; justify-content: center; margin-top: 18px; min-height: 44px; }
.gate-btn-wrap.disabled { opacity: .4; pointer-events: none; }
.gate-close { position: absolute; }
.gate-card .skip { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); cursor: pointer; }
.gate-card .skip:hover { color: var(--ink); }
.gate-fine { font-size: 11.5px !important; color: var(--muted) !important; margin: 14px 4px 0 !important; }
.gate-fine a { color: var(--blue-light); text-decoration: underline; }

/* ============ Landing client + Formation ============ */
/* Bloc conserve : systeme.html a ete supprime (lot 0), mais ces regles
   servent toujours les pages Formation. Ne pas retirer. */
.lp { max-width: 920px; margin: 0 auto; padding: 26px 22px 100px; }
.lp-hero { text-align: center; padding: 30px 0 36px; }
.lp-hero .eyemini { width: 64px; height: 64px; margin-bottom: 16px; }
.lp-hero h1 { font-family: var(--display); font-size: clamp(34px, 7vw, 68px); line-height: 0.96; text-transform: uppercase; letter-spacing: 0.01em; }
.lp-hero h1 .blue { color: var(--blue-light); }
.lp-hero .lead { color: var(--gray); font-size: clamp(15px, 2.4vw, 19px); max-width: 640px; margin: 18px auto 0; }

.lp-section { padding: 40px 0; border-top: 1px solid var(--line-soft); }
.lp-section h2 { font-family: var(--display); font-size: clamp(24px, 4.5vw, 38px); text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.lp-section .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 10px; }
.lp-section > p { color: #d4d4d8; max-width: 720px; margin-bottom: 12px; }

.bullets { list-style: none; margin: 16px 0 0; display: grid; gap: 12px; }
.bullets li { position: relative; padding: 14px 16px 14px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: #e4e4e7; }
.bullets li::before { content: "→"; position: absolute; left: 16px; top: 13px; color: var(--blue-light); font-weight: 700; }
.bullets li b { color: #fff; }

.flow { display: grid; gap: 14px; margin-top: 18px; counter-reset: step; }
.flow .fstep { position: relative; padding: 18px 18px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.flow .fstep::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(59,130,246,.15); border: 1px solid rgba(96,165,250,.45); color: var(--blue-light); font-family: var(--mono); font-weight: 600; }
.flow .fstep h3 { font-size: 18px; margin-bottom: 4px; }
.flow .fstep p { color: var(--gray); font-size: 14.5px; }

.headline-num { font-family: var(--display); font-size: clamp(40px, 9vw, 84px); color: var(--green); line-height: 1; }
.proj-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }

.lp-cta { text-align: center; padding: 50px 24px; margin-top: 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.lp-cta h2 { font-family: var(--display); font-size: clamp(26px,5vw,44px); text-transform: uppercase; margin-bottom: 10px; }
.lp-cta p { color: var(--gray); max-width: 520px; margin: 0 auto 22px; }
/* .btn-primary : voir le button system V2 §4 (mutualisé avec .cta plus haut) */
.price-ph { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Formation steps + faux terminal */
.fsteps { counter-reset: lstep; display: grid; gap: 30px; margin-top: 24px; }
.lstep { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); }
.lstep .lstep-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lstep .lstep-h .b { counter-increment: lstep; content: counter(lstep); width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(59,130,246,.15); border: 1px solid rgba(96,165,250,.45); color: var(--blue-light); font-family: var(--mono); font-weight: 600; }
.lstep h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.lstep p { color: #d4d4d8; margin-bottom: 10px; }
.lstep ul { color: #d4d4d8; margin: 0 0 10px 20px; }
.lstep li { margin-bottom: 6px; }

.terminal { background: #04060c; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.terminal .bar { display: flex; gap: 7px; padding: 10px 14px; background: #0a0e18; border-bottom: 1px solid var(--line-soft); }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal .bar .r { background: #ff5f56; } .terminal .bar .y { background: #ffbd2e; } .terminal .bar .g { background: #27c93f; }
.terminal pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #cfe3ff; overflow-x: auto; white-space: pre; }
.terminal .cmt { color: #6b7a90; }
.terminal .ok { color: var(--green); }

.shot-ph { border: 1px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; margin: 14px 0; background: rgba(255,255,255,.015); }

.callout-tip { border-left: 3px solid var(--green); background: var(--surface); border-radius: 10px; padding: 14px 18px; margin: 14px 0; color: #e4e4e7; font-size: 14.5px; }
.callout-tip b { color: var(--green); }

/* ============ Expert notes + captures formation ============ */
.expert { border-left: 3px solid var(--blue); background: rgba(59,130,246,.06); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.expert .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-light); display:block; margin-bottom: 6px; }
.expert p { color: #dbe4f0; font-size: 14.5px; margin: 0; }
.step-img { width: 100%; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; display: block; }
.spec { font-family: var(--mono); font-size: 12.5px; color: var(--blue-light); }
.kv { display:grid; gap:10px; margin-top:16px; }
.kv .row { display:flex; gap:14px; padding:13px 16px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.kv .k { font-family:var(--mono); font-size:12px; color:var(--blue-light); min-width:130px; text-transform:uppercase; letter-spacing:.08em; }
.kv .v { color:#e4e4e7; font-size:14.5px; }

/* ============ Lisibilité titres (Space Grotesk, casse normale) ============ */
.brandline, .course-head h1, .lesson h2, .lp-hero h1, .lp-section h2,
.lp-cta h2, .card h3, .locked h3, .courses-head h1, .lstep h3 {
  text-transform: none;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.08;
}
.lp-hero h1, .course-head h1, .courses-head h1 { line-height: 1.05; }

/* ============ Pipeline live (content-factory · pipeline.run) ============ */
.pipe { background: #04060c; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.pipe-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #0a0e18; border-bottom: 1px solid var(--line-soft); }
.pipe-head .dots { display: flex; gap: 7px; }
.pipe-head .dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.pipe-head .dots .r { background: #ff5f56; } .pipe-head .dots .y { background: #ffbd2e; } .pipe-head .dots .g { background: #27c93f; }
.pipe-head .title { font-family: var(--mono); font-size: 13px; color: #aab6c8; }
.pipe-head .title b { color: var(--blue-light); font-weight: 500; }
.pipe-head .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--green); }
.pipe-head .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)} 70%{box-shadow:0 0 0 9px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.pipe-tabs { display: flex; gap: 8px; padding: 12px 16px 0; flex-wrap: wrap; }
.pipe-tabs span { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--gray); }
.pipe-tabs span.on { color: var(--blue-light); border-color: rgba(96,165,250,.5); background: rgba(59,130,246,.08); }
.pipe-log { font-family: var(--mono); font-size: 13px; line-height: 1.85; padding: 14px 18px 6px; min-height: 196px; color: #cfe3ff; }
.pipe-log .ln { white-space: pre-wrap; }
.pipe-log .ar { color: var(--blue-light); }
.pipe-log .ok { color: var(--green); }
.pipe-log .mut { color: #6b7a90; }
.pipe-log .pub { color: #fff; }
.pipe-log .cur { display:inline-block; width:8px; height:15px; background:var(--blue-light); vertical-align:-2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pipe-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-soft); }
.pipe-stats .st { padding: 16px; text-align: center; }
.pipe-stats .st + .st { border-left: 1px solid var(--line-soft); }
.pipe-stats .n { font-family: var(--display); font-weight: 700; font-size: 30px; color: #fff; line-height: 1; }
.pipe-stats .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px){ .pipe-stats .n { font-size: 23px; } .pipe-log { font-size: 12px; } }

/* ══ WQ-0091 : l'œil = bouton magique replier/déplier + preuve centrée ══ */

/* Le bouton reprend exactement l'apparence actuelle de l'œil (rien d'ajouté) */
.eye-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.eye-btn:hover { transform: scale(1.035); }
.eye-btn:active { transform: scale(0.96); }
.eye-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(96, 165, 250, 0.55);
}
.eye-btn .eye-img { display: block; width: 100%; height: 100%; }

/* Pulse magique au clic (relancé par JS) */
@keyframes eyePulse {
  0%   { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.45); }
  100% { box-shadow: 0 0 0 26px rgba(96, 165, 250, 0); }
}
.eye-btn--pulse { animation: eyePulse 520ms ease-out; }

/* Repli du menu : cartes aspirées vers l'œil, staggerées */
.routes {
  transition: max-height 460ms cubic-bezier(.2,.8,.2,1), margin 460ms ease;
  max-height: 900px;
  overflow: visible;
}
.route-card {
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease,
              border-color 160ms ease, box-shadow 160ms ease, visibility 0s 0s;
}
.routes .route-card:nth-child(1) { transition-delay: 0ms; }
.routes .route-card:nth-child(2) { transition-delay: 55ms; }
.routes .route-card:nth-child(3) { transition-delay: 110ms; }
.routes .route-card:nth-child(4) { transition-delay: 165ms; }
.routes--folded {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}
.routes--folded .route-card {
  opacity: 0;
  transform: translateY(-42px) scale(0.6);
  visibility: hidden;
  transition-delay: 0ms, 0ms, 0s, 0s, 380ms;
}
.routes--folded .route-card:nth-child(2) { transition-delay: 55ms, 55ms, 0s, 0s, 420ms; }
.routes--folded .route-card:nth-child(3) { transition-delay: 110ms, 110ms, 0s, 0s, 460ms; }

/* Blocs preuve : liens centrés, même apparence qu'avant */
a.proof-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
}
a.proof-card .proof-icon { margin-inline: auto; }
a.proof-card:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px rgba(96, 165, 250, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .eye-btn, .route-card, .routes { transition: none; }
  .eye-btn--pulse { animation: none; }
  .eye-btn:hover, .eye-btn:active { transform: none; }
}

/* WQ-0091 FIX : l'anneau décoratif interceptait les clics de l'œil-bouton */
.eye-ring { pointer-events: none; }
.eye-btn { position: relative; z-index: 2; }
