/* Gestes iPhone communs à toutes les pages (prototype du 25/10/2026).
   - navigation iOS : la page qui arrive glisse de la droite, celle qui part
     recule à gauche ; « Retour » fait l'inverse ;
   - appui iOS : ce qu'on touche s'enfonce un peu puis rebondit.
   Tout s'éteint si le téléphone demande de réduire les animations. */

:root{--ressort:cubic-bezier(.34,1.56,.64,1);--ios-nav:cubic-bezier(.32,.72,0,1)}
html{background:#000}

/* --- navigation : transition native, la nouvelle page glisse de la droite
   et l'ancienne recule à gauche ; « Retour » fait l'inverse */
@view-transition{navigation:auto}
::view-transition-old(root){animation:sort-push .42s var(--ios-nav) both}
::view-transition-new(root){animation:entre-push .42s var(--ios-nav) both}
html:active-view-transition-type(pop)::view-transition-old(root){animation:sort-pop .42s var(--ios-nav) both;z-index:2}
html:active-view-transition-type(pop)::view-transition-new(root){animation:entre-pop .42s var(--ios-nav) both}
@keyframes entre-push{from{transform:translateX(100%)}to{transform:none}}
@keyframes sort-push{to{transform:translateX(-28%);opacity:.5}}
@keyframes entre-pop{from{transform:translateX(-28%);opacity:.5}to{transform:none;opacity:1}}
@keyframes sort-pop{to{transform:translateX(100%)}}

/* --- appui */
.pilule,.porte,.article,.carte,.une,.profils button,.opt,.creneau,.cal-jour,.choix-contact a,.choix-contact button{
  transition:transform .35s var(--ressort)}
.pilule:active,.porte:active,.article:active,.carte:active,.une:active,.profils button:active,
.opt:active,.creneau:active,.cal-jour:active,.choix-contact a:active,.choix-contact button:active{
  transform:scale(.96);transition-duration:.12s}

@media (prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none}
}
