/* Profondeur au défilement (accueil). CSS seul, animations liées au scroll :
   rien ne bouge sans défilement, rien en mouvement réduit, rien sur les navigateurs sans animation-timeline. */
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {

  /* Le grand film des réalisations s'ouvre comme une fenêtre, l'image recule derrière. */
  .work-feature-reel{animation:ds-window linear both;animation-timeline:view();animation-range:entry 10% cover 42%}
  .work-feature-reel video{animation:ds-recede linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  @keyframes ds-window{from{clip-path:inset(9% 12% round 32px)}to{clip-path:inset(0 round 14px)}}
  @keyframes ds-recede{from{scale:1.18;translate:0 -4%}to{scale:1.02;translate:0 4%}}

  /* Titres de section : montent en sortant du flou à l'entrée dans l'écran. */
  :is(.work-feature-head,.studio-section-head,.studio-pricing-intro,.brand-intro,.contact-section,.faq-section) h2{
    animation:ds-head linear both;animation-timeline:view();animation-range:entry 5% entry 85%}
  @keyframes ds-head{from{opacity:0;translate:0 .5em;filter:blur(12px)}to{opacity:1;translate:none;filter:none}}

  /* Cartes services et forfaits : montent en perspective, décalées ; la photo glisse à l'intérieur. */
  :is(.studio-service-grid,.studio-offer-grid,.brand-distinction){perspective:1400px}
  :is(.studio-service,.studio-offer,.brand-distinction>div){transform-origin:50% 100%;animation:ds-card linear both;animation-timeline:view();animation-range:entry 0px entry 340px}
  :is(.studio-service,.studio-offer,.brand-distinction>div):nth-child(2){animation-range:entry 50px entry 390px}
  :is(.studio-service,.studio-offer):nth-child(3){animation-range:entry 100px entry 440px}
  .studio-service:nth-child(4){animation-range:entry 150px entry 490px}
  @keyframes ds-card{from{opacity:0;translate:0 90px;rotate:x 14deg}to{opacity:1;translate:none;rotate:none}}
  :is(.studio-service>img,.studio-offer-proof img,.brand-distinction-media){animation:ds-inner linear both;animation-timeline:view();animation-range:cover}
  @keyframes ds-inner{from{translate:0 -6%;scale:1.14}to{translate:0 6%;scale:1.14}}

  /* Grand écran : les services restent en place et reculent pendant que les forfaits glissent par-dessus. */
  @media (min-width:1100px) and (min-height:860px){
    .studio-site{timeline-scope:--ds-cover}
    #services{position:sticky;top:0;transform-origin:50% 30%;animation:ds-behind linear both;animation-timeline:--ds-cover;animation-range:entry 0% entry 100%}
    #services~section{position:relative;z-index:1}
    #collections{view-timeline:--ds-cover;border-radius:28px 28px 0 0;box-shadow:0 -40px 80px rgba(0,0,0,.35)}
    @keyframes ds-behind{to{scale:.92;filter:brightness(.45);border-radius:28px}}
  }
}
}
