/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-reveal) var(--ease),
    transform var(--duration-reveal) var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Stagger helper — délais appliqués via nth-child */
.reveal.stagger:nth-child(2) { transition-delay: 0.08s; }
.reveal.stagger:nth-child(3) { transition-delay: 0.16s; }
.reveal.stagger:nth-child(4) { transition-delay: 0.24s; }
.reveal.stagger:nth-child(5) { transition-delay: 0.32s; }

@keyframes pulse-hint {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Nav ombre au scroll */
.nav.is-scrolled {
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0;
}

.nav.is-scrolled .brand-logo {
  width: 60px;
  height: 60px;
}

/* Respect des préférences utilisateur (sans !important : on cible explicitement
   les éléments qui portent des animations/transitions dans le site) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dest-card,
  .dest-card img,
  .conseil,
  .avis-card,
  .pourqui-item,
  .contact-card,
  .nav,
  .nav-links,
  .btn,
  .btn-primary,
  .btn-ghost,
  .contact-btn,
  .form-submit,
  .nav-cta,
  .formule-card {
    transition: none;
    animation: none;
  }
}
