/* =========================================================================
   NOVA · États liés au mouvement
   La classe .motion est posée par le script quand les animations sont actives.
   Sans script, ou en mouvement réduit, la page reste une page classique lisible.
   ========================================================================= */

/* Évite le clignotement du titre avant l'entrée animée (filet de sécurité de 3 s dans le <head>) */
@media (prefers-reduced-motion: no-preference) {
  .js-pending .hero-title,
  .js-pending [data-intro] { opacity: 0; }
}

/* --- Défilement horizontal épinglé -------------------------------------- */
.motion [data-horizontal] .h-pin {
  height: 100svh;
  padding-block: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.motion [data-horizontal] .h-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  margin: 0;
  gap: 4vw;
  padding-inline: 8vw 14vw;
  will-change: transform;
}

.motion [data-horizontal] .services-intro { flex: 0 0 min(30rem, 82vw); }

.motion [data-horizontal] .panel {
  flex: 0 0 min(28rem, 80vw);
  min-height: min(32rem, 70svh);
  will-change: transform, opacity;
}

/* --- Étapes de la méthode : éteintes tant que la ligne ne les a pas atteintes */
.motion .step:not(.is-lit) .step-dot { background: var(--bg-2); box-shadow: none; scale: .9; }
.motion .step:not(.is-lit) .step-body { opacity: .35; }

/* --- Survol : seulement avec une vraie souris --------------------------- */
@media (hover: hover) and (pointer: fine) {
  .logo:hover .logo-mark { transform: rotate(180deg); }
  .nav-list a:hover { opacity: 1; }
  .nav-list a:hover::after { transform: scaleX(1); }

  .button:hover { box-shadow: 0 0 0 6px rgb(85 199 255 / .12), 0 14px 40px rgb(49 87 213 / .5); }
  .button-ghost:hover { border-color: var(--accent); box-shadow: 0 0 0 6px rgb(85 199 255 / .08); }
  .button:hover .icon-arrow { transform: translateX(4px); }

  [data-glow]:hover::before { opacity: 1; }
  .panel:hover .panel-link span { transform: translateX(5px); }

  .faq-item summary:hover { color: var(--accent); }
}

/* --- Mouvement réduit ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #scene { transition: none; }
  .scroll-cue-line span { animation: none; }
  .shake { animation: none; }
  .logo-mark, .icon-arrow, .panel-link span, .cursor-ring span, .menu-toggle-bar, .step-dot {
    transition-property: opacity, color, background-color, border-color, box-shadow;
  }
}
