/* Apparition au défilement (VALIDÉ juin 2026). État final par défaut ; l'effet s'ajoute.
   1) CSS native view() quand le navigateur la gère ; 2) sinon apparition.js (IntersectionObserver). */
@keyframes ds-apparition{from{opacity:0;transform:translateY(var(--ds-shift-reveal));}}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    html:not([data-motion="off"]) .ds-rv{animation:ds-apparition linear both;animation-timeline:view();animation-range:entry 0% entry 70%;}
  }
  html:not([data-motion="off"]) .ds-rv.is-fige{animation:none;}
  html:not([data-motion="off"]) .ds-rv.is-attente{opacity:0;transform:translateY(var(--ds-shift-reveal));}
  html:not([data-motion="off"]) .ds-rv.is-vu{transition:opacity var(--ds-dur-reveal) var(--ds-ease-out),transform var(--ds-dur-reveal) var(--ds-ease-out);}
}
/* Cascade d'une grille de cartes (2.3) : chaque colonne entre un peu plus tard que la précédente. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    html:not([data-motion="off"]) .ds-cascade-grille>.ds-rv:nth-child(3n+2){animation-range:entry 8% entry 78%;}
    html:not([data-motion="off"]) .ds-cascade-grille>.ds-rv:nth-child(3n+3){animation-range:entry 16% entry 86%;}
  }
  html:not([data-motion="off"]) .ds-cascade-grille>.ds-rv.is-vu:nth-child(3n+2){transition-delay:70ms;}
  html:not([data-motion="off"]) .ds-cascade-grille>.ds-rv.is-vu:nth-child(3n+3){transition-delay:140ms;}
}
