/* ============================================================
   Falcon Security — Animations CSS
   Animations d'entrée, transitions, keyframes
   ============================================================ */

/* ── Animation Hero zoom lent ── */
@keyframes heroZoom {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

/* ── Fade Up (apparition depuis le bas) ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Fade In simple ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Slide In depuis la gauche ── */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Slide In depuis la droite ── */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Scale In ── */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Pulse (point vert en ligne) ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Compteur : animation de montée ── */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Shimmer (boutons) ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Ligne de progress process ── */
@keyframes drawLine {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================================================
   Classes utilitaires d'animation (délai en cascade)
   ============================================================ */

/* Animation au chargement de la page — héros */
.anim-fade-up-1 { animation: fadeUp 0.8s 0.1s both ease-out; }
.anim-fade-up-2 { animation: fadeUp 0.8s 0.25s both ease-out; }
.anim-fade-up-3 { animation: fadeUp 0.8s 0.4s both ease-out; }
.anim-fade-up-4 { animation: fadeUp 0.8s 0.55s both ease-out; }
.anim-fade-up-5 { animation: fadeUp 0.8s 0.7s both ease-out; }

/* Fade in simple */
.anim-fade-in   { animation: fadeIn 0.6s ease both; }

/* Scale in pour les cartes */
.anim-scale-in  { animation: scaleIn 0.5s ease both; }

/* ============================================================
   Transitions hover pour les cartes de service
   ============================================================ */

.hover-lift {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.hover-scale img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale:hover img {
  transform: scale(1.06);
}

/* ============================================================
   Parallaxe Hero & Innovation (via JS)
   La classe .parallax-bg est contrôlée par JS
   ============================================================ */

.parallax-bg {
  will-change: transform;
}

/* ============================================================
   Loading spinner (formulaire)
   ============================================================ */

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--dark {
  border-color: rgba(0,0,0,0.2);
  border-top-color: var(--black);
}
