/* ══════════════════════════════════════════════════════════════════════
   HOME.CSS — Academy Germain Homepage
   Design System dédié — zéro conflit avec app.css
   Direction : "CINÉMA FINANCIER" — sections = scènes distinctes
══════════════════════════════════════════════════════════════════════ */

/* ── Palette homepage ── */
:root {
  --ink:   #08060E;
  --deep:  #0D0A1A;
  --navy:  #060412;
  --cream: #F5F0E8;
  --cream2:#EDE8DF;
  --gold:  #C9A84C;
  --gold2: #EAB840;
  --white: rgba(255,255,255,0.88);
  --muted: rgba(255,255,255,0.45);
  --faint: rgba(255,255,255,0.22);
  --gold-faint: rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.22);
}

/* ══════════════════════════════════════════════════════════════════════
   GALAXY-BG — override : la homepage gère ses propres fonds
══════════════════════════════════════════════════════════════════════ */
body:has(.ag-home) .galaxy-bg,
body:has(.ag-home) .galaxy-bg::after { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   TEXTURE MATRIX — fond SVG sur html, visible entre les sections
   Sections à gradient laissent apparaître ce pattern en fondu
══════════════════════════════════════════════════════════════════════ */
html:has(body.ag-home) {
  background-color: #08060E;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ctext x='2' y='14' font-size='10' font-family='monospace' fill='rgba(201%2C168%2C76%2C0.06)' %3E01%3C/text%3E%3Ctext x='20' y='30' font-size='10' font-family='monospace' fill='rgba(201%2C168%2C76%2C0.04)' %3E%25%3C/text%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: 40px 40px;
}

/* canvas global désactivé — hero matrix seul, plus fiable */
#matrixBg { display: none; }

/* Les fondus matrix sont intégrés dans les backgrounds des sections */

/* ══════════════════════════════════════════════════════════════════════
   HERO — SCÈNE 1 · Fond pur + canvas chart
══════════════════════════════════════════════════════════════════════ */
.ag-home .hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(148px, 18vh, 220px);
  padding-left: max(48px, calc((100vw - 1200px) / 2));
  padding-right: max(48px, calc((100vw - 1200px) / 2));
  overflow: hidden;
  background: rgba(8, 6, 14, 0.45);
}

/* Grain film — texture subtile sur tout le hero */
.ag-home .hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.038;
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200%' height='200%' filter='url(%23g)'/></svg>");
  background-size: 180px 180px;
}

/* Gradient mesh ambient — coins dorés très subtils */
.ag-home .hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%,   rgba(201,168,76,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 100%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 0%,  rgba(30,20,60,0.45) 0%, transparent 55%);
}

/* Canvas candlestick */
.ag-home .hero-candles-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  opacity: 0.55;
  pointer-events: none;
}

/* Supprime les slides — plus de photos stock */
.ag-home .hero-slides,
.ag-home .hero-ambient,
.ag-home .hero-bar-bot { display: none; }

/* ── Contenu texte hero ── */
.ag-home .hero-inner {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding: 0;
  margin: 0;
}

/* h1 — commanding mais pas grossier */
.ag-home .hero h1 {
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing:-0.02em;
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
  margin-bottom: 22px;
}
.ag-home .hero h1 em {
  color: var(--gold2);
  font-style: normal;
}

.ag-home .hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.97);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* Tag "Formation — Suisse" */
.ag-home .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Boutons hero */
.ag-home .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }

/* ── Stats strip inline — sous les boutons ── */
.ag-home .hero-proof-strip {
  display: flex;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(201,168,76,0.18);
  max-width: 480px;
}
.ag-home .hps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.ag-home .hps-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold2);
  letter-spacing:-0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ag-home .hps-lbl {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.97);
  white-space: nowrap;
}
.ag-home .hps-sep {
  width: 1px;
  height: 24px;
  background: rgba(201,168,76,0.18);
  flex-shrink: 0;
  margin: 0 4px;
}

.ag-home .btn-gold {
  padding: 13px 28px;
  background: var(--gold2);
  color: #08060E;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(234,184,64,0.2);
}
.ag-home .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(234,184,64,0.35);
  background: #f0c73d;
}

.ag-home .btn-border {
  padding: 13px 28px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,.97);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.ag-home .btn-border:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold2);
  background: rgba(201,168,76,0.08);
}

/* ── Stats card — masquée (remplacée par hero-proof-strip) ── */
.ag-home .hero-stats-card { display: none; }
.ag-home .hsc-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,168,76,.96);
  padding: 10px 14px 9px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(201,168,76,0.03);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ag-home .hsc-label::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold2);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
.ag-home .hsc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background 0.15s;
}
.ag-home .hsc-row:last-child { border-bottom: none; }
.ag-home .hsc-row:hover { background: rgba(201,168,76,0.04); }
.ag-home .hsc-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold2);
  letter-spacing:-0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ag-home .hsc-key {
  font-size: 9.5px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

/* ── Terminal ── */
/* Animation dédiée : termine à translateY(-50%) au lieu de none */
@keyframes heroInCenter {
  from { opacity: 0; transform: translateY(calc(-50% + 22px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

.ag-home .hero-terminal {
  position: absolute;
  right: max(48px, calc((100vw - 1200px) / 2));
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  animation: heroInCenter 0.75s cubic-bezier(0.22,1,0.36,1) both 0.95s;
  z-index: 10;
}

/* ── Dots — barres de progression cinéma ── */
.ag-home .hero-dots {
  position: absolute;
  bottom: 40px;
  left: max(48px, calc((100vw - 1200px) / 2));
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Override les styles globaux de .hdot sur la homepage */
.ag-home .hdot {
  width: 18px !important;
  height: 2px !important;
  border-radius: 1px !important;
  background: rgba(255,255,255,0.18) !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0;
  transition: width 0.45s cubic-bezier(0.22,1,0.36,1) !important;
}

/* Barre de progression gold — fill de gauche à droite */
.ag-home .hdot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold2);
  border-radius: 1px;
  transition: none !important;
}

/* Dot actif — plus large + progress fill sur 7s */
.ag-home .hdot.on {
  width: 38px !important;
  background: rgba(255,255,255,0.10) !important;
}
.ag-home .hdot.on::after {
  width: 100% !important;
  transition: width 7s linear !important;
}

/* ── Scroll indicator ── */
.ag-home .hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ag-home .hero-scroll-indicator:hover { opacity: 0.9; }
.ag-home .hsi-text {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.97);
}
.ag-home .hsi-line {
  width: 1px; height: 32px;
  overflow: hidden;
  position: relative;
}
.ag-home .hsi-line::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}

/* ── Fondu bas hero → transparent (le matrix global prend le relais) ── */
.ag-home .hero-fade-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(8,6,14,0.9) 70%, rgba(8,6,14,1));
  z-index: 5;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════
   STATS PULSE BAR — SCÈNE 2 · Deep dark
══════════════════════════════════════════════════════════════════════ */
.ag-home .spb {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(13,10,26,0.96) 55px,
    rgba(13,10,26,0.96) calc(100% - 55px),
    transparent
  ) !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 56px 48px !important;
  position: relative;
}
.ag-home .spb::after {
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(201,168,76,0.04), transparent 70%) !important;
}
.ag-home .spb-num {
  font-size: clamp(38px, 4.5vw, 54px) !important;
  font-weight: 900 !important;
  letter-spacing:-0.02em !important;
  color: var(--gold2) !important;
  text-shadow: 0 0 32px rgba(234,184,64,0.35) !important;
  font-variant-numeric: tabular-nums;
}
.ag-home .spb-lbl {
  font-size: 9.5px !important;
  letter-spacing: 2px !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin-top: 9px !important;
}
.ag-home .spb-sep {
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.25), transparent) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   PROGRAMME 01-02-03 — SCÈNE 3 · Crème éditorial (LE CONTRASTE)
══════════════════════════════════════════════════════════════════════ */
.ag-home .ag-section {
  background: rgba(8, 6, 14, 0.50) !important;
  padding: 88px 40px !important;
  position: relative !important;
}
/* Fondu entrée — transparent (laisse passer le Vanta) */
.ag-home .ag-section-fade-top {
  position: absolute;
  top: -80px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(8,6,14,0.82));
  pointer-events: none;
  z-index: 0;
}
.ag-home .ag-section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.ag-home .ag-section-label {
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: var(--gold2) !important;
  text-shadow: none !important;
}
.ag-home .ag-section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: rgba(245, 240, 232, 0.93);
  letter-spacing:-0.015em;
  margin-top: 8px;
  line-height: 1.1;
}
.ag-home .ag-section-title .gold { color: var(--gold2); }

/* Grid colonnes */
.ag-home .ag-grid {
  border: 1px solid rgba(234,184,64,0.18) !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.04) !important;
  box-shadow: 0 4px 48px rgba(0,0,0,0.35) !important;
  position: relative;
  z-index: 1;
}
.ag-home .ag-col {
  padding: 44px 40px !important;
  border-right: 1px solid rgba(234,184,64,0.12) !important;
  transition: background 0.25s !important;
}
.ag-home .ag-col:last-child { border-right: none !important; }
.ag-home .ag-col:hover { background: rgba(255,255,255,0.06) !important; }

/* Numéros décoratifs — watermarks */
.ag-home .ag-num {
  font-size: clamp(96px, 11vw, 148px) !important;
  font-weight: 900 !important;
  color: rgba(234,184,64,0.07) !important;
  letter-spacing: -8px !important;
  line-height: 0.85 !important;
  margin-bottom: 4px !important;
  user-select: none;
  pointer-events: none;
}
.ag-home .ag-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: rgba(245,240,232,0.95) !important;
  letter-spacing:-0.01em !important;
  margin-bottom: 22px !important;
  line-height: 1.3 !important;
}
.ag-home .ag-list li {
  color: rgba(255,255,255,.97) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}
.ag-home .ag-list li::before { background: var(--gold2) !important; }
.ag-home .ag-list li strong { color: rgba(245,240,232,0.95) !important; }
.ag-home .ag-badge {
  border-color: rgba(234,184,64,0.3) !important;
  color: var(--gold2) !important;
  background: rgba(234,184,64,0.07) !important;
  font-size: 9px !important;
  letter-spacing: 2.5px !important;
}

/* Fondu sortie — dark transparent */
.ag-home .ag-section-fade-bot {
  position: absolute;
  bottom: -80px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(8,6,14,0.82), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   MÉTHODE — SCÈNE 4 · Navy profond, cards premium
══════════════════════════════════════════════════════════════════════ */
.ag-home .methode-s {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(6,4,18,0.55) 65px,
    rgba(6,4,18,0.55) calc(100% - 65px),
    transparent
  ) !important;
  padding: 104px 48px 96px !important;
  position: relative;
}
.ag-home .methode-s::before {
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.25) 30%, rgba(201,168,76,0.25) 70%, transparent) !important;
}
.ag-home .methode-s::after {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,168,76,0.03), transparent 70%) !important;
}

/* Cards steps */
.ag-home .methode-step {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(201,168,76,0.1) !important;
  border-radius: 6px !important;
  padding: 32px 26px !important;
  transition: border-color 0.3s, background 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1) !important;
}
.ag-home .methode-step:hover {
  border-color: rgba(201,168,76,0.32) !important;
  background: rgba(201,168,76,0.03) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35) !important;
}
.ag-home .ms-num {
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 3.5px !important;
  color: rgba(201,168,76,.96) !important;
  margin-bottom: 18px !important;
  display: block !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(201,168,76,0.08) !important;
}
.ag-home .ms-icon-wrap {
  width: 56px !important; height: 56px !important;
  border-radius: 8px !important;
  background: rgba(201,168,76,0.06) !important;
  border: 1px solid rgba(201,168,76,0.15) !important;
  margin: 0 auto 18px !important;
  font-size: 22px !important;
}
.ag-home .methode-step:hover .ms-icon-wrap {
  background: rgba(201,168,76,0.12) !important;
  border-color: rgba(201,168,76,0.38) !important;
  box-shadow: 0 0 20px rgba(201,168,76,0.15) !important;
}
.ag-home .ms-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing:-0.01em !important;
  margin-bottom: 10px !important;
}
.ag-home .ms-desc {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.75 !important;
}
.ag-home .mc-line {
  background: linear-gradient(to right, rgba(201,168,76,0.1), rgba(201,168,76,0.4), rgba(201,168,76,0.1)) !important;
  width: 36px !important;
}
.ag-home .mc-arrow { color: rgba(201,168,76,.96) !important; }

/* ══════════════════════════════════════════════════════════════════════
   CRYPTO LIVE — SCÈNE 5
══════════════════════════════════════════════════════════════════════ */
.ag-home .crypto-s {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(7,4,15,0.52) 65px,
    rgba(7,4,15,0.52) calc(100% - 65px),
    transparent
  ) !important;
  border-bottom: none !important;
}
.ag-home .crypto-s .s-title {
  font-size: clamp(26px, 3.2vw, 40px) !important;
  letter-spacing:-0.015em !important;
}
.ag-home .cc {
  border-radius: 3px !important;
  border-top: 2px solid rgba(201,168,76,0.35) !important;
  transition: border-top-color 0.2s, background 0.2s !important;
}
.ag-home .cc:hover {
  border-top-color: var(--gold2) !important;
  background: rgba(201,168,76,0.04) !important;
}
.ag-home .crypto-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px;
  transition: all 0.2s;
  font-weight: 700 !important;
}
.ag-home .crypto-cta-link:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  gap: 14px;
  transform: translateX(2px);
}

/* ══════════════════════════════════════════════════════════════════════
   PRICING — SCÈNE 6
══════════════════════════════════════════════════════════════════════ */
.ag-home .ag-pricing {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(4,3,10,0.55) 65px,
    rgba(4,3,10,0.55) calc(100% - 65px),
    transparent
  ) !important;
}
.ag-home .ag-plan {
  border-radius: 6px !important;
  padding: 34px 28px !important;
  transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s !important;
}
.ag-home .ag-plan:hover {
  border-color: rgba(201,168,76,0.35) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5) !important;
}
.ag-home .ag-plan.featured {
  background: rgba(201,168,76,0.05) !important;
  border-color: rgba(201,168,76,0.42) !important;
  box-shadow: 0 0 48px rgba(201,168,76,0.07), 0 8px 32px rgba(0,0,0,0.4) !important;
}
.ag-home .ag-plan-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing:-0.01em !important;
}
.ag-home .ag-price-amount {
  font-size: 48px !important;
  letter-spacing:-0.02em !important;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════
   REVEALS — animations au scroll
══════════════════════════════════════════════════════════════════════ */
.ag-home [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.ag-home [data-reveal].is-revealed { opacity: 1; transform: none; }
.ag-home [data-reveal][data-delay="0"] { transition-delay: 0.05s; }
.ag-home [data-reveal][data-delay="1"] { transition-delay: 0.18s; }
.ag-home [data-reveal][data-delay="2"] { transition-delay: 0.31s; }
.ag-home [data-reveal][data-delay="3"] { transition-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) {
  .ag-home [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   LIGHT MODE — le hero homepage reste toujours sombre (design cinéma)
══════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .ag-home .hero h1 { color: #ffffff !important; text-shadow: 0 2px 40px rgba(0,0,0,0.6) !important; }
[data-theme="light"] .ag-home .hero h1 em { color: var(--gold2) !important; }
/* Spécificité (1,3,0) > app.css (1,2,0) — hero homepage reste sombre même en light mode */
[data-theme="light"] .ag-home .hero .hero-sub { color: rgba(255,255,255,.97) !important; text-shadow: 0 1px 16px rgba(0,0,0,0.8) !important; }
[data-theme="light"] .ag-home .hero-tag { background: rgba(201,168,76,0.08) !important; border-color: rgba(201,168,76,0.2) !important; color: var(--gold) !important; }
[data-theme="light"] .ag-home .hero-inner { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
[data-theme="light"] .ag-home .btn-border { color: rgba(255,255,255,.97) !important; border-color: rgba(255,255,255,0.18) !important; background: rgba(255,255,255,0.05) !important; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ag-home .hero-stats-card,
  .ag-home .hero-terminal { display: none; }
}
@media (max-width: 768px) {
  .ag-home .hero { padding-top: 110px; align-items: flex-start; }
  .ag-home .hero h1 { font-size: 40px; letter-spacing:-0.015em; }
  .ag-home .hero-scroll-indicator { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   BOUTON OUTLINE CTA — "Voir toute la bibliothèque"
══════════════════════════════════════════════════════════════════════ */
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 10px;
  color: #C9A84C;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: rgba(201,168,76,0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-cta-outline:hover {
  background: rgba(201,168,76,0.14);
  border-color: #C9A84C;
  color: #e8c76a;
  transform: translateY(-1px);
}

/* ── Lien "Découvrir →" sur les cartes ressources ── */
.res-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #C9A84C;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, gap 0.2s;
}
.res-card-link:hover { opacity: 1; gap: 8px; }

[data-theme="light"] .btn-cta-outline { border-color: rgba(180,130,30,0.4); color: #b4821e; background: rgba(180,130,30,0.06); }
[data-theme="light"] .btn-cta-outline:hover { background: rgba(180,130,30,0.12); border-color: #b4821e; color: #8a6010; }

/* ══════════════════════════════════════════════════════════════════════
   VANTA NET — fond 3D fixe pleine page
══════════════════════════════════════════════════════════════════════ */
#vanta-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -10;
  pointer-events: none;
}
#vanta-bg canvas { display: block; }

/* SPB semi-transparent pour laisser passer le Vanta */
.ag-home .spb {
  background: rgba(4, 4, 18, 0.45) !important;
}

/* Resources section */
.ag-home .resources-s {
  background: rgba(4, 4, 18, 0.42) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   3D TILT — VanillaTilt sur cartes
══════════════════════════════════════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}
/* Supprime le translateY au hover — tilt s'en charge */
.res-card:hover { transform: none !important; }
.cf-card:hover  { transform: none !important; }

/* Contenu interne : légère profondeur 3D sur les titres des cartes */
.tilt-card .res-card-title,
.tilt-card .cf-card-title,
.tilt-card .ag-title {
  transform: translateZ(14px);
  display: block;
}
.tilt-card .res-card-icon,
.tilt-card .cf-card-icon { transform: translateZ(22px); display: block; }

/* Glare overlay généré par VanillaTilt */
.js-tilt-glare { border-radius: inherit; }

/* ══════════════════════════════════════════════════════════════════════
   CTA section — override pour laisser passer Vanta
══════════════════════════════════════════════════════════════════════ */
.ag-home ~ .cta-s,
.ag-home .cta-s,
body:has(.ag-home) .cta-s {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(4, 4, 18, 0.55) 30%,
    rgba(2, 2, 12, 0.65) 100%
  ) !important;
}

/* res-card background allégé pour laisser passer Vanta */
.ag-home .res-card,
body:has(.ag-home) .res-card {
  background: rgba(4, 4, 18, 0.45) !important;
}


/* ═══ Confort de lecture du hero — thème sombre ══════════════════════════════════════════════
   La pluie de caractères passait DERRIÈRE le titre et le paragraphe et en gênait la lecture :
   elle est atténuée, et un voile sombre doux est posé derrière le bloc de texte. */
html:not([data-theme="light"]) .ag-home .hero-candles-bg { opacity: 0.28; }
html:not([data-theme="light"]) .ag-home .hero-inner::before {
  content: ""; position: absolute; z-index: -1; inset: -48px -64px -48px -80px; pointer-events: none;
  background: radial-gradient(ellipse at 40% 50%, rgba(4,4,12,0.82) 0%, rgba(4,4,12,0.62) 45%, transparent 75%);
}
html:not([data-theme="light"]) .ag-home .hero h1 { color: #ffffff; text-shadow: 0 2px 24px rgba(0,0,0,0.85); }
html:not([data-theme="light"]) .ag-home .hero-sub { color: rgba(255,255,255,.97); text-shadow: 0 1px 12px rgba(0,0,0,0.9); }
