/**
 * Keyframes et classes d'animation DjallaTech
 */

/* --- Hero au chargement --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Pulsation bouton CTA --- */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.40);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(30, 144, 255, 0);
  }
}

/* --- Fleche de scroll --- */
@keyframes bounceArrow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.60;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

/* --- Rotation douce (icones en attente) --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Ligne de connexion timeline --- */
@keyframes drawLine {
  from { width: 0; }
  to   { width: 90%; }
}

/* --- Apparition globale --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Classes utilitaires d'animation --- */

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-in-up--delay-1 { animation-delay: 0.15s; }
.animate-fade-in-up--delay-2 { animation-delay: 0.30s; }
.animate-fade-in-up--delay-3 { animation-delay: 0.45s; }
.animate-fade-in-up--delay-4 { animation-delay: 0.60s; }

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

/* Reduction des animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
