/* 04/12 (ERES) : ce qui est sélectionné est TOUJOURS orange vif et lisible, quel que soit l'état du bouton.
   Cause du défaut : sur iPhone, le survol reste « collé » après le toucher ; la règle :hover de v22-esthe (fond orange à 10 %)
   passait devant la sélection → contour orange et texte sombre presque invisible. Ici la sélection gagne dans tous les états. */
html body .rppills button.on,
html body .rppills button.on:hover,
html body .rppills button.on:focus,
html body .rppills button.on:focus-visible,
html body .rppills button.on:active { background:var(--orange,#FA8228)!important; border-color:var(--orange,#FA8228)!important; color:#1a0e00!important; opacity:1!important; filter:none!important; }
html body .lvtabs button.on:hover,
html body .lvtabs button.on:focus,
html body .lvtabs button.on:active { background:var(--e-grad-orange,var(--orange,#FA8228))!important; color:var(--e-orange-ink,#1a0e00)!important; opacity:1!important; }
html body .v24-pill[aria-pressed="true"],
html body .v24-pill[aria-pressed="true"]:hover,
html body .v24-pill[aria-pressed="true"]:focus,
html body .v24-pill[aria-pressed="true"]:active { background:linear-gradient(180deg,var(--v24-orange-hi,#FFA24C),var(--v24-orange,#FA8228))!important; color:var(--v24-orange-ink,#1a0e00)!important; border-color:var(--v24-orange,#FA8228)!important; opacity:1!important; }
html body .level-pills23 button[aria-pressed="true"],
html body .level-pills23 button[aria-pressed="true"]:hover,
html body .level-pills23 button[aria-pressed="true"]:focus,
html body .level-pills23 button[aria-pressed="true"]:active { background:#FA8228!important; color:#0B1437!important; border-color:#FA8228!important; opacity:1!important; }
/* 04/12 soir (ERES, M3) : BRZINA — la pastille orange GLISSE d'une vitesse à l'autre avec un léger dépassement.
   Un seul fond orange (::before) placé sous la vitesse choisie ; les boutons deviennent transparents par-dessus. */
@supports selector(:has(a)) {
  html body .rppills { position:relative; isolation:isolate; --rp-i:0; }
  html body .rppills:has(> button:nth-of-type(2).on) { --rp-i:1; }
  html body .rppills:has(> button:nth-of-type(3).on) { --rp-i:2; }
  html body .rppills:has(> button:nth-of-type(4).on) { --rp-i:3; }
  html body .rppills:has(> button.on)::before { content:""; position:absolute; z-index:-1; top:0; bottom:0; left:0; width:calc((100% - 18px) / 4); border-radius:10px; background:var(--orange,#FA8228); transform:translateX(calc(var(--rp-i) * (100% + 6px))); transition:transform .45s cubic-bezier(.34,1.56,.64,1); }
  html body .rppills:has(> button.on):has(> button:nth-of-type(5))::before { display:none; }
  html body .rppills:has(> button.on):not(:has(> button:nth-of-type(5))) > button.on,
  html body .rppills:has(> button.on):not(:has(> button:nth-of-type(5))) > button.on:hover,
  html body .rppills:has(> button.on):not(:has(> button:nth-of-type(5))) > button.on:focus,
  html body .rppills:has(> button.on):not(:has(> button:nth-of-type(5))) > button.on:active { background:transparent!important; }
}
/* M6 : toucher un bouton — partout le même geste : il s'enfonce (96 %) sous le doigt et revient avec un rebond (0,23 s, courbe ressort).
   Propriété « scale » à part : elle s'ajoute aux positions déjà faites par transform (rien ne se décale). */
@media (prefers-reduced-motion:no-preference){
  html body button:not([disabled]), html body .btn { transition-property:transform, scale, translate, background-color, border-color, box-shadow, color, opacity, filter; transition-duration:.23s; transition-timing-function:cubic-bezier(.34,1.56,.64,1); }
  html body button:not([disabled]):active, html body .btn:active { scale:.96; }
}
