/* ==========================================================================
   ALPHA NEWS — mise en page condensée (prix en haut) + animations
   Chargé après style.css : ne surcharge que ce qui change.
   ========================================================================== */

/* ---------- Hero + tarifs ---------- */
.hero-pricing {
  position: relative;
  padding: 44px 0 72px;
}

.hero-pricing-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.hero-pricing .hero-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 16px;
}

.hero-pricing .hero-lead {
  margin: 0 auto;
  font-size: 1.1rem;
}

.hero-pricing .pricing-grid {
  perspective: 1200px;
}

.hero-pricing .tier-desc {
  min-height: 0;
  margin-bottom: 18px;
}

.hero-pricing .tier-price-row {
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.hero-pricing .tier-name {
  font-size: 1.3rem;
}

.hero-pricing .tier-features {
  flex: 1;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 40px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trust-row strong {
  color: var(--text-primary);
}

/* Bordure lumineuse qui tourne autour de l'offre VIP */
@property --spin {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin), transparent 0deg, #00e5ff 60deg, #229ed9 120deg, transparent 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 5s linear infinite;
  pointer-events: none;
}

@keyframes spin-border {
  to { --spin: 360deg; }
}

/* Reflet qui balaie le bouton principal */
.btn-tier-primary,
.btn-hero-primary {
  position: relative;
  overflow: hidden;
}

.btn-tier-primary::after,
.btn-hero-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 44px;
}

.section-tinted {
  background: rgba(10, 14, 23, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Chiffres clés */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00e5ff, #229ed9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefits-grid .feature-card {
  padding: 26px 22px;
}

/* Barre d'achat collante sur mobile */
.sticky-buy {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--sab));
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(34, 158, 217, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  transform: translateY(140%);
  transition: transform var(--transition-smooth);
}

.sticky-buy.show {
  transform: translateY(0);
}

.sticky-buy-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sticky-buy-text strong {
  color: #fff;
  font-family: var(--font-mono);
}

.sticky-buy button {
  border: 0;
  border-radius: var(--radius-full);
  padding: 11px 18px;
  font: 700 0.88rem var(--font-main);
  color: #07090e;
  background: linear-gradient(90deg, #229ed9, #00e5ff);
  cursor: pointer;
  min-height: 44px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .benefits-grid,
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sur mobile, l'offre VIP passe en premier */
  .hero-pricing .pricing-card.featured {
    order: -1;
  }

  .hero-pricing .pricing-grid {
    gap: 32px;
  }

  .sticky-buy {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-pricing {
    padding: 28px 0 56px;
  }

  .hero-pricing-head {
    margin-bottom: 34px;
  }

  .section {
    padding: 60px 0;
  }

  .stat-num {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .trust-row {
    gap: 8px 16px;
    font-size: 0.82rem;
  }
}

/* ---------- États de départ des animations (seulement si GSAP est actif) ---------- */
.js-motion [data-hero],
.js-motion [data-price-card],
.js-motion [data-reveal],
.js-motion [data-reveal-item] {
  opacity: 0;
}

/* GSAP gère le transform des cartes de prix : on coupe les transforms CSS */
.js-motion .pricing-card,
.js-motion .pricing-card:hover,
.js-motion .pricing-card.featured,
.js-motion .pricing-card.featured:hover {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card.featured::before,
  .btn-tier-primary::after,
  .btn-hero-primary::after {
    animation: none;
  }
}

/* ==========================================================================
   CINÉMA : intro, taureau & ours, scène épinglée, grain de film
   ========================================================================== */
/* Photos sur fond noir : fondu des bords pour qu'elles se mêlent à la page */
.beast-img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
  filter: drop-shadow(0 0 40px rgba(255, 170, 60, 0.12));
  user-select: none;
  pointer-events: none;
}

/* ---------- Intro ---------- */
.intro { display: none; }

.js-motion .intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0b1220 0%, #04060a 70%);
  overflow: hidden;
  cursor: pointer;
}

.intro-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 11vh;
  background: #000;
  z-index: 3;
}
.intro-bar-top { top: 0; }
.intro-bar-bottom { bottom: 0; }

.intro-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  width: min(1100px, 94vw);
  height: min(46vh, 380px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.intro-candles {
  position: absolute;
  inset: 5% 4% 10%;
  opacity: 0.3;
}

.intro-candle {
  position: absolute;
  border-radius: 2px;
  transform-origin: bottom;
}
.intro-candle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -14%;
  bottom: -14%;
  width: 1px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.6;
}
.intro-candle.up { background: #00e676; color: #00e676; }
.intro-candle.down { background: #ff3366; color: #ff3366; }

.intro-beast {
  position: relative;
  z-index: 1;
}
.intro-bull { width: 52%; }
.intro-bear { width: 34%; }

.intro-text {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 3vh;
}

.intro-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4.6rem);
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.intro-title .ch { display: inline-block; }

.intro-sub {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.04em;
}

.intro-skip {
  position: absolute;
  right: 20px;
  bottom: calc(11vh + 16px);
  z-index: 4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  min-height: 44px;
  font: 600 0.85rem var(--font-main);
  cursor: pointer;
}

/* ---------- Taureau & ours du hero ---------- */
.hero-pricing { overflow: hidden; }

.hero-beasts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-pricing > .container { position: relative; z-index: 1; }

.hero-beast {
  position: absolute;
  top: 20px;
  opacity: 0.55;
}
.hero-bull { left: -4%; width: clamp(300px, 32vw, 560px); top: 60px; }
.hero-bear { right: -3%; width: clamp(220px, 22vw, 380px); }

@media (max-width: 992px) {
  .hero-beast { top: 60px; opacity: 0.22; }
  .hero-bull { left: -16vw; width: 62vw; top: 90px; }
  .hero-bear { right: -12vw; width: 42vw; }
}

/* ---------- Scène épinglée ---------- */
.arena {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(14, 22, 38, 0.9) 0%, rgba(5, 7, 12, 0.95) 75%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Avec animations : la section est haute et la scène reste collée en haut */
.js-motion .arena {
  height: 320vh;
  overflow: visible;
  overflow-x: clip;
}

.js-motion .arena-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.arena-pin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.arena-chart {
  position: absolute;
  inset: 18% 0 22%;
  width: 100%;
  height: 60%;
  opacity: 0.5;
}

.arena-chart-line {
  fill: none;
  stroke: url(#arenaChartGrad);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.arena-beast {
  position: absolute;
  bottom: 4%;
}
.arena-bull { left: 0; width: clamp(300px, 44vw, 720px); }
.arena-bear { right: 2%; width: clamp(220px, 28vw, 460px); }

.arena-lines {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 22vh;
}

.arena-line {
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 14px;
}
.arena-line span { display: block; }
.arena-line.is-bull span { color: #00e676; text-shadow: 0 0 30px rgba(0, 230, 118, 0.45); }
.arena-line.is-bear span { color: #ff3366; text-shadow: 0 0 30px rgba(255, 51, 102, 0.45); }
.arena-line.is-alpha span {
  background: linear-gradient(135deg, #00e5ff, #229ed9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Avec animations : les 3 phrases se superposent et se succèdent */
.js-motion .arena-lines { display: grid; }
.js-motion .arena-line { grid-area: 1 / 1; opacity: 0; margin: 0; }

@media (max-width: 768px) {
  .arena-beast { bottom: 11%; }
  .arena-bull { left: -10vw; width: 78vw; }
  .arena-bear { right: -6vw; width: 50vw; }
  .arena-lines { margin-bottom: 30vh; }
}

/* ---------- Titres révélés mot par mot ---------- */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.split-word > span { display: inline-block; }

/* ---------- Grain, vignette, halo souris ---------- */
.film-grain {
  position: fixed;
  inset: -50%;
  z-index: 2500;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}

.film-vignette {
  position: fixed;
  inset: 0;
  z-index: 2400;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .film-grain { animation: none; }
}

/* overflow-x: hidden sur html/body empêche position: sticky ; clip coupe pareil sans casser le sticky */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* ---------- Choc taureau / ours dans le haut de page ---------- */
.hero-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 38% 45% at 50% 30%, rgba(255, 196, 110, 0.55), rgba(255, 140, 40, 0.15) 45%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}

.hero-sparks {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 0;
  height: 0;
}

.hero-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd08a;
  box-shadow: 0 0 10px 2px rgba(255, 170, 40, 0.8);
  opacity: 0;
}

/* Téléphones et tablettes : on retire ce qui oblige à tout recalculer à chaque image */
@media (max-width: 992px), (hover: none) {
  .film-grain { display: none; }
  .beast-img { mix-blend-mode: normal; filter: none; }
  .arena-beast .beast-img { will-change: transform; }
  .arena-beast { will-change: transform, opacity; }
  .arena-chart { z-index: 1; }
  .arena-chart-line { filter: none; }
  .ambient-glow::before,
  .ambient-glow::after,
  .ambient-glow-bottom { filter: none; }
  .sticky-buy { backdrop-filter: none; }
  .site-header {
    background: rgba(7, 9, 14, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 2 packs : cartes centrées */
@media (min-width: 993px) {
  .hero-pricing .pricing-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
  }
}
