/* ==========================================================================
   FARIDEEJAY — animations.css
   Keyframes et classes déclenchées par Intersection Observer (main.js).
   Toutes les animations respectent prefers-reduced-motion (voir style.css).
   ========================================================================== */

/* ---------- Rotation de l'anneau vinyle (signature) ---------- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.vinyl-ring { animation: spin-slow 9s linear infinite; }
.page-loader .vinyl-ring { animation-duration: 2.2s; }

/* ---------- Pulsation douce (glow or) ---------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
}
.pulse-glow { animation: pulse-glow 2.6s ease-out infinite; }

/* ---------- Flottement discret (hero eyebrow, badges) ---------- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.float { animation: float-y 5s ease-in-out infinite; }

/* ---------- Reveal au scroll : fade + slide ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variante zoom léger (cartes, images) */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}
.reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

/* Variante slide latérale */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* Décalage en cascade pour les grilles (appliqué via style inline nth-child en JS-free CSS) */
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Hero : apparition orchestrée au chargement ---------- */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo       { animation: hero-in 0.9s var(--ease-premium) 0.15s both; }
.hero-eyebrow    { animation: hero-in 0.9s var(--ease-premium) 0.32s both; }
.hero-title      { animation: hero-in 1s var(--ease-premium) 0.46s both; }
.hero-subtitle   { animation: hero-in 1s var(--ease-premium) 0.62s both; }
.hero-actions    { animation: hero-in 1s var(--ease-premium) 0.78s both; }
.hero-scroll     { animation: hero-in 1s var(--ease-premium) 1s both; }

/* ---------- Parallax discret (hero media) ---------- */
.hero-media { transition: transform 0.2s linear; }

/* ---------- Micro-interaction boutons ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
  pointer-events: none;
}
.btn:active::after { opacity: 1; transform: scale(1.4); transition: none; }

/* ---------- Compteur / chiffres (prix) ---------- */
@keyframes number-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pricing-amount.is-visible { animation: number-in 0.7s var(--ease-premium); }

/* ---------- FAQ accordéon ---------- */
.faq-item[data-open="true"] .faq-answer { }

/* ---------- Loader sortie ---------- */
@keyframes loader-fade {
  to { opacity: 0; visibility: hidden; }
}
