/* ===== ANIMATIONS AU DÉFILEMENT (REVEAL) ===== */
/* Ces classes sont utilisées avec IntersectionObserver (animation.js).
   Quand un élément entre dans la zone visible, la classe 'visible' est ajoutée,
   ce qui déclenche la transition CSS (opacity + transform). */

/* Apparition par le bas */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Apparition par la gauche */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Apparition par la droite */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Apparition avec zoom */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

/* Délais progressifs pour des animations en cascade */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== ANIMATION STAGGER (enfants décalés) ===== */
/* Chaque enfant direct d'un élément .stagger-children apparaît l'un après l'autre */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FLOTTEMENT (FLOAT) ===== */
/* Animation continue de lévitation, utilisée pour des icônes ou décorations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ===== PULSATION ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== GLISSEMENT (SLIDE IN) ===== */
/* Utilisé pour l'entrée des éléments du menu mobile */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== ZOOM AVANT ===== */
@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== FONDU (FADE) ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REBOND (BOUNCE) ===== */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== COMPTEUR ===== */
/* Animation utilisée par counter.js pour les chiffres clés */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.6s ease forwards;
}

/* ===== EFFETS DE SURVOL ===== */
/* Soulèvement au survol (translateY + ombre) */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Lueur dorée au survol */
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(247, 148, 29, 0.4);
}

/* ===== OVERLAY DU MENU MOBILE ===== */
/* Fond semi-transparent qui apparaît derrière le menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== BARRE DE PROGRÈS ===== */
@keyframes progressBar {
  from { width: 0; }
}

/* ===== SPINNER (ROTATION) ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SHIMMER (REFlet scintillant) ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== EFFET MACHINE À ÉCRIRE ===== */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ===== ANIMATION DES LIENS DU MENU MOBILE ===== */
/* Chaque lien apparaît avec un délai progressif (stagger) à l'ouverture */
.nav-list.active a {
  animation: slideInRight 0.4s ease forwards;
}

.nav-list.active a:nth-child(1) { animation-delay: 0.05s; }
.nav-list.active a:nth-child(2) { animation-delay: 0.1s; }
.nav-list.active a:nth-child(3) { animation-delay: 0.15s; }
.nav-list.active a:nth-child(4) { animation-delay: 0.2s; }
.nav-list.active a:nth-child(5) { animation-delay: 0.25s; }
.nav-list.active a:nth-child(6) { animation-delay: 0.3s; }
.nav-list.active a:nth-child(7) { animation-delay: 0.35s; }
.nav-list.active a:nth-child(8) { animation-delay: 0.4s; }
.nav-list.active a:nth-child(9) { animation-delay: 0.45s; }
