/* ═══════════════════════════════════════════════════════════════
   ABI NEXUS — Animations & effets cinématographiques
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--shadow-glow-gold); }
  50%      { box-shadow: 0 0 40px rgba(200,168,75,.65); }
}
@keyframes scanlineMove {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes mapPing {
  0%   { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes biohazardRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}
@keyframes barGrow {
  from { width: 0; }
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Révélation au scroll (Intersection Observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--left.visible, .reveal--right.visible { transform: translateX(0); }

/* Délais en cascade (stagger) */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* ── Hero ── */
.hero-bg { animation: heroZoom 14s ease-out forwards; }
.hero-content > * { animation: fadeInUp .9s cubic-bezier(.22,.61,.36,1) both; }
.hero-content > *:nth-child(1) { animation-delay: .10s; }
.hero-content > *:nth-child(2) { animation-delay: .22s; }
.hero-content > *:nth-child(3) { animation-delay: .34s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }
.hero-content > *:nth-child(5) { animation-delay: .58s; }

.hero-scanlines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(200,168,75,.06), transparent);
  animation: scanlineMove 7s linear infinite;
}

/* Particules flottantes (générées en JS) */
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  opacity: 0;
  animation: particleFloat linear infinite;
  pointer-events: none;
}
.particle--bio { background: var(--color-accent-orange); }

/* ── Badges & pulsations ── */
.badge-new { animation: pulseBadge 1.8s ease-in-out infinite; }
.btn--primary { animation: glowPulse 3.2s ease-in-out infinite; }
.btn--primary:hover { animation: none; }

/* ── Barres de stats ── */
.stat-bar-fill { animation: barGrow 1.2s cubic-bezier(.22,.61,.36,1) both; }

/* ── Hotspots carte ── */
.map-hotspot .ping {
  animation: mapPing 1.6s cubic-bezier(0,0,.2,1) infinite;
}

/* ── Icône biohazard rotative ── */
.bio-icon { animation: biohazardRotate 14s linear infinite; }

/* ── Texte shimmer (titres premium) ── */
.shimmer-text {
  background: linear-gradient(90deg, var(--color-accent-gold) 25%, #FFF3C4 50%, var(--color-accent-gold) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ── Curseur clignotant (terminal HUD) ── */
.cursor-blink { animation: blinkCursor 1.1s step-end infinite; }

/* ── Flottement doux ── */
.float-y { animation: floatY 5s ease-in-out infinite; }

/* ── Accessibilité : réduire les animations ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
