/* Une ligne par étape : horizontale sur ordinateur, verticale sur téléphone. */
.begin-steps::before,
.begin-steps li:not(:last-child)::after { content: none; }
.motion-step-line {
  position: absolute; left: 18px; top: 20px; bottom: -30px; width: 5px;
  background: linear-gradient(var(--nuit), var(--nuit-2));
  transform-origin: center top; pointer-events: none;
}
.begin-steps li:nth-last-child(2) .motion-step-line { background: linear-gradient(var(--nuit-2), var(--soleil)); }
@media (min-width: 901px) {
  .motion-step-line { left: 20px; top: 17px; bottom: auto; width: calc(100% + 28px); height: 6px; transform-origin: left center; background: linear-gradient(90deg, var(--nuit), var(--nuit-2)); }
  .begin-steps li:nth-last-child(2) .motion-step-line { background: linear-gradient(90deg, var(--nuit-2), var(--soleil)); }
}
@media (max-width: 640px) {
  .motion-step-line { left: 15px; top: 17px; bottom: -25px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-step-line { transform: none; }
}

/* Téléphone : lecture verticale, sans flèches dessinées ni glissement latéral de la page.
   Les rangées qui défilent (cartes et avis de l’accueil, accueil-mobile.css) restent glissables :
   un élément qui défile n’hérite pas du touch-action de ses parents. */
@media (max-width: 760px) {
  html, body { overflow-x: clip; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
  .section-scroll:not(.scene-scroll), .section-scroll svg { display: none; }
  .site-shortcuts:not([hidden]) { gap: 0; overflow-x: clip; }
  .avis-defile { margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .avis-defile .avis-liste { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; animation: none; }
  .avis-defile .avis-liste li { width: auto; min-width: 0; scroll-snap-align: none; }
}
