/* animations.css — MOT-3 Stagger marqué + reveal scroll */

/* MOT-3 — éléments individuels */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px); /* jamais translateX — piège prod #13 */
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* MOT-3 — Stagger en cascade sur grilles */
.stagger > * {
  opacity: 0;
  transform: translateY(20px); /* jamais translateX — piège prod #13 */
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.54s; }

/* Reduced motion — couper toutes les animations */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hover galerie */
.gal-slide { overflow: hidden; }

/* Animation FAB pulse (discret) */
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px oklch(45% 0.12 145 / 0.35); }
  50% { box-shadow: 0 4px 24px oklch(45% 0.12 145 / 0.52); }
}

.fab-call { animation: fab-pulse 3s ease-in-out infinite; }
.fab-call:hover { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .fab-call { animation: none; }
}

/* Stat counter — chiffre qui monte */
.stat-number.animating { transition: none; }
