/* ==========================================================================
   ANIMATIONS.CSS
   Animations sobres et élégantes. Déclenchées au scroll via Intersection
   Observer (voir animations.js) en ajoutant la classe ".is-visible".
   Aucune animation excessive : uniquement fade-in, slide-up, hover, zoom léger.
   ========================================================================== */

/* ---------- Etat initial (avant apparition) ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-in"] {
  transform: translateY(0);
}

[data-animate="slide-up"] {
  transform: translateY(32px);
}

[data-animate="slide-right"] {
  transform: translateX(-32px);
}

[data-animate="slide-left"] {
  transform: translateX(32px);
}

/* ---------- Etat final (visible, déclenché par JS) ---------- */
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Décalage progressif pour les groupes d'éléments (cartes, icônes...) */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* ---------- Zoom léger au survol (cartes biens, services, témoignages) ---------- */
.zoom-hover {
  overflow: hidden;
}

.zoom-hover img {
  transition: transform var(--transition-slow);
}

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

/* ---------- Animation d'apparition douce pour le menu mobile ---------- */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Pulsation douce pour le bouton WhatsApp flottant (discrète) ---------- */
@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: gentlePulse 2.5s infinite;
}
