/* Animations liées au défilement (amélioration progressive, chargée après l'affichage). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .devoile img { animation: devoile linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes devoile { from { clip-path: inset(14% 0 0 0); transform: scale(1.07); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
  }
}
@supports (animation-timeline: scroll()) {
  .barre-mobile { animation: barre linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
  @keyframes barre { 0%, 60% { opacity: 0; transform: translateY(130%); visibility: hidden; } 100% { opacity: 1; transform: none; visibility: visible; } }
}
/* 05/11 19 h 45 — apparitions lentes et sobres au défilement : photos qui montent, titres qui se posent. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .instantanes .photo, .mosaique-villa li, .deux-vues .photo, .avis-unique, .chapo-centre { animation: monte linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes monte { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
    .titre-xl, .titre-l { animation: pose linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    @keyframes pose { from { opacity: 0; letter-spacing: 0.04em; filter: blur(3px); } to { opacity: 1; letter-spacing: normal; filter: none; } }
    .filet { animation: trace linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    @keyframes trace { from { width: 0; opacity: 0; } to { width: 120px; opacity: 1; } }
    .pleine-photo > img, .bandeau-photo img { animation: lent linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes lent { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1) translateY(3%); } }
  }
}
/* 05/11 20 h 15 — panache sobre : filet doré de progression de lecture sous l'en-tête, zoom lent des photos d'accueil. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .entete::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; z-index: 1; transform-origin: 0 50%; background: linear-gradient(90deg, #9a7a45, #dcc493, #b8955a); animation: lecture linear both; animation-timeline: scroll(root); }
    @keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .diapo:first-child img { animation: zoom-lent 14s ease-out both; }
  @keyframes zoom-lent { from { transform: scale(1.08); } to { transform: scale(1); } }
}
