/* Mouvement et barre d'achat communs aux pages de vente (charte v2). Va avec assets/js/vente.js. */

/* Apparitions : l'état caché n'existe que si le script a posé la classe « mv » sur <html>. */
.mv .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
.mv .rv.vu { opacity: 1; transform: none; }

/* Barre d'achat fixe : seulement sur téléphone, où le bouton d'achat sort vite de l'écran. */
.barre-achat { display: none; }
@media (max-width: 760px) {
  .barre-achat { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
    background: rgba(8,20,40,.92); color: #fff; box-shadow: 0 18px 44px rgba(8,20,40,.4), inset 0 0 0 1px rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .barre-achat.visible { transform: none; }
  .barre-achat span { display: grid; min-width: 0; line-height: 1.2; }
  .barre-achat b { font: 600 14.5px/1.2 'Outfit', 'Segoe UI', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barre-achat i { font-style: normal; font-size: 12.5px; color: #C9D3E3; }
  .barre-achat .btn { padding: 13px 20px; font-size: 14.5px; white-space: nowrap; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .barre-achat { transition: none; } }

/* Programme : le bloc des bases reste visible à côté de la liste du métier, plus longue. */
@media (min-width: 961px) { .blocs .bloc.socle { position: sticky; top: 24px; } }
