/* LEGIO — tiroir du panier (#cart-root > .cart) et toasts (#toast-root.cart-toasts).
   Sélecteurs sous .cart / .cart-toast(s), plus des crochets précis : html.lg-cart-open (verrou du
   défilement), #cart-count.cart-bump (la pastille qui saute), #cart-open.has-items #cart-count (la
   pastille pleine, braise immobile) et html.mx-flying (un vol au panier est en l'air, MOTION).
   Jetons SPEC §5 et jetons de mouvement de css/motion.css (--m-*, --e-*, --heat-*), avec repli. */

html.lg-cart-open { overflow: hidden; padding-right: var(--lg-scrollbar, 0px); }

.cart {
  position: fixed; inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  transition: visibility 0s linear .4s;
}
.cart *, .cart *::before, .cart *::after { box-sizing: border-box; }
.cart [hidden] { display: none !important; }
.cart button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cart :focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; }
.cart[data-open="true"] { visibility: visible; pointer-events: auto; transition: none; }

.cart__sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.cart__ico { width: 20px; height: 20px; flex: none; }
.cart__ico--sm { width: 16px; height: 16px; }

.cart__scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--steel-950) 72%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cart[data-open="true"] .cart__scrim { opacity: 1; }

.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--steel-900);
  border-left: 1px solid var(--steel-700);
  box-shadow: -30px 0 80px -30px var(--steel-950);
  transform: translateX(104%);
  transition: transform .4s var(--ease);
  outline: none;
}
.cart[data-open="true"] .cart__panel { transform: none; }

/* En-tête */
.cart__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px max(20px, env(safe-area-inset-right, 0px)) 14px 20px;
  border-bottom: 1px solid var(--steel-700);
}
.cart__eyebrow {
  display: flex; align-items: center; gap: 6px;
  margin: 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember-hot);
}
.cart__title {
  margin: 2px 0 2px;
  font-family: var(--f-display); font-size: 34px; font-weight: 900; line-height: 1.24;
  letter-spacing: .01em; text-transform: uppercase;
  color: var(--bone);
}
.cart__meta { margin: 0; font-size: 13px; color: var(--ash); }
.cart__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: transparent;
  border: 1px solid var(--steel-700);
  border-radius: var(--r-sm);
}
.cart__x:hover { background: var(--steel-800); border-color: var(--steel-500); }

/* Corps */
.cart__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-500) transparent;
}
.cart__sec { padding-top: 14px; }
.cart__sec-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ash);
}
.cart__sec-title span {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  font-size: 10px; color: var(--bone);
  background: var(--steel-700); border-radius: 2px;
}
.cart__code {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em;
  color: var(--blueprint); white-space: nowrap;
}

/* Légions */
.cart__builds, .cart__extras, .cart__lines { list-style: none; margin: 0; padding: 0; }
.cart__build {
  margin-bottom: 10px;
  background: var(--steel-800);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-md);
  overflow: hidden;
}
/* La légion qui arrive est chaude (S3) : bordure et lueur intérieure passent de la braise vive à
   l'acier en 2,4 s (la chaleur refroidit lentement) ; ses lignes répondent à l'appel une à une, et
   chaque ×N jette une lueur. */
.cart__build.is-new { animation: cart-arrive var(--m-cool-long, 2.4s) var(--e-cool, var(--ease)); }
@keyframes cart-arrive {
  0% { border-color: var(--heat-4, var(--ember-hot)); box-shadow: inset 0 0 0 1px var(--heat-4, var(--ember-hot)), inset 0 0 22px -6px var(--glow), 0 0 18px -6px var(--glow); }
  100% { border-color: var(--steel-700); box-shadow: none; }
}
.cart__build.is-new .cart__line {
  animation: cart-rollcall 420ms var(--e-arrive, var(--ease)) backwards;
  animation-delay: calc(180ms + var(--n, 0) * 28ms);
}
@keyframes cart-rollcall { from { opacity: .28; transform: translateX(-10px); } }
.cart__build.is-new .cart__lqty {
  animation: cart-qty-heat 1200ms var(--e-cool, var(--ease)) backwards;
  animation-delay: calc(180ms + var(--n, 0) * 28ms);
}
@keyframes cart-qty-heat { from { color: var(--heat-4, var(--ember-hot)); } }
.cart__toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 0;
}
.cart__toggle:hover { background: color-mix(in srgb, var(--steel-700) 40%, transparent); }
.cart__build-badge {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--blueprint);
  background: var(--steel-950);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-sm);
}
.cart__build-badge .cart__ico { width: 22px; height: 22px; }
.cart__build-badge b {
  position: absolute; right: -6px; bottom: -6px;
  padding: 0 4px;
  font-family: var(--f-mono); font-size: 9px; font-weight: 700; line-height: 15px;
  color: var(--steel-950); background: var(--blueprint);
  border-radius: 3px;
}
.cart__build-txt { display: grid; min-width: 0; }
.cart__build-name {
  font-family: var(--f-display); font-size: 21px; font-weight: 800; line-height: 1.22;
  letter-spacing: .01em; text-transform: uppercase;
  /* « CONTUBERNIUM PERSONNALISÉE » ne tient pas sur une ligne à 360 px : on plie, on ne coupe pas. */
  overflow-wrap: break-word; text-wrap: balance;
}
.cart__build-sub { font-size: 12.5px; color: var(--ash); }
/* Ce qui distingue deux légions de même taille : fini, comptoir, texte gravé. */
.cart__build-opts { font-size: 12px; line-height: 1.35; color: var(--blueprint); }
.cart__build-twin {
  justify-self: start;
  margin-top: 4px; padding: 1px 6px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: 3px;
}
.cart__build-price { font-family: var(--f-mono); font-size: 13px; font-weight: 500; white-space: nowrap; }
.cart__chev { color: var(--ash); transition: transform .25s var(--ease); }
.cart__toggle[aria-expanded="true"] .cart__chev { transform: rotate(180deg); }
.cart__build-body { padding: 0 12px 10px; border-top: 1px solid var(--steel-700); }
.cart__line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 36px 64px;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--steel-700);
}
/* Le nom se plie au lieu d'être coupé (« Chaudron de fonte suspendu » à 390 px) : la rangée grandit. */
.cart__lname { min-width: 0; overflow-wrap: break-word; line-height: 1.3; padding: 4px 0; }
.cart__lqty { text-align: right; font-family: var(--f-mono); }
.cart__lsub { text-align: right; font-family: var(--f-mono); font-size: 11.5px; color: var(--ash); }
.cart__build-acts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 6px; }

/* Pièces à l'unité */
.cart__extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 44px;
  grid-template-areas: "txt qty sub rm";
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--steel-800);
}
.cart__extra-txt { grid-area: txt; display: grid; min-width: 0; line-height: 1.3; }
.cart__ename { font-size: 14px; font-weight: 600; overflow-wrap: break-word; text-wrap: balance; }
.cart__eunit { font-size: 11.5px; color: var(--ash); }
.cart__qty {
  grid-area: qty;
  display: inline-flex; align-items: center;
  background: var(--steel-950);
  border: 1px solid var(--steel-700);
  border-radius: var(--r-sm);
}
.cart__qbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 44px;
  background: transparent; border: 0;
}
.cart__qbtn:hover:not(:disabled) { background: var(--steel-800); }
.cart__qbtn:disabled { color: var(--steel-500); }
.cart__qbtn .cart__ico { width: 16px; height: 16px; }
.cart__qval { min-width: 28px; text-align: center; font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.cart__esub { grid-area: sub; font-family: var(--f-mono); font-size: 12.5px; text-align: right; white-space: nowrap; min-width: 78px; }
.cart__rm {
  grid-area: rm;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--ash);
  background: transparent; border: 0; border-radius: var(--r-sm);
}
.cart__rm:hover { color: var(--bad); background: var(--steel-800); }
.cart__rm .cart__ico { width: 16px; height: 16px; }

/* Stockage bloqué : le panier ne survivra pas au rechargement, on le dit. */
.cart__store-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 14px 0 0; padding: 10px 12px;
  font-size: 13px; line-height: 1.4; color: var(--bone);
  background: color-mix(in srgb, var(--warn) 8%, var(--steel-950));
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--r-sm);
}
.cart__store-note .cart__ico { color: var(--warn); margin-top: 1px; }

/* Vide */
.cart__empty { display: grid; justify-items: center; gap: 10px; padding: 48px 8px 24px; text-align: center; }
.cart__empty-ico { width: 52px; height: 52px; color: var(--blueprint); stroke-width: 1.2; }
.cart__empty-t {
  margin: 4px 0 0;
  font-family: var(--f-display); font-size: 28px; font-weight: 800; line-height: 1.22; text-transform: uppercase;
}
.cart__empty-p { margin: 0 0 8px; max-width: 34ch; font-size: 14px; color: var(--ash); }

/* Pied */
.cart__foot {
  flex: none;
  display: grid; gap: 8px;
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
  background: var(--steel-950);
  border-top: 1px solid var(--steel-700);
}
.cart__foot:empty { display: none; }
.cart__subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart__subtotal span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.cart__subtotal strong {
  font-family: var(--f-display); font-size: 32px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cart__note { margin: 0; font-size: 12px; color: var(--ash); }
.cart__foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }

/* Toasts quand le tiroir est ouvert : dans le tiroir, au-dessus du pied, jamais par-dessus. */
.cart__toasts { flex: none; display: grid; gap: 6px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 10px 20px; }
.cart__toasts:empty { display: none; }
.cart__toasts .cart-toast { box-shadow: none; backdrop-filter: none; background: var(--steel-800); }

a.cart__cta, button.cart__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 700 15.5px/1.2 var(--f-body);
  color: var(--steel-950);
  text-decoration: none;
  background: var(--ember);
  /* Bordure transparente : invisible ici, mais dessinée en mode contraste élevé (forced-colors). */
  border: 2px solid transparent;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--ember-deep) inset, 0 12px 28px -12px var(--glow);
  transition: background-color .15s var(--ease), transform .1s var(--ease);
}
a.cart__cta:hover, button.cart__cta:hover { background: var(--ember-hot); }
a.cart__cta:active, button.cart__cta:active { transform: translateY(1px); }
a.cart__cta:focus-visible, button.cart__cta:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; }
.cart__cta--block { width: 100%; }
button.cart__cta.is-done { background: var(--ok); box-shadow: none; }

a.cart__textbtn, button.cart__textbtn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 2px;
  font-size: 13.5px; font-weight: 500;
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--steel-500);
  text-underline-offset: 4px;
  background: transparent;
  border: 0;
}
a.cart__textbtn:hover, button.cart__textbtn:hover { text-decoration-color: var(--blueprint); color: var(--bone); }
.cart__textbtn--danger { color: var(--ash) !important; }
.cart__textbtn--danger:hover { color: var(--bad) !important; text-decoration-color: var(--bad) !important; }
.cart__textbtn--center { justify-content: center; width: 100%; }
.cart__back { margin: 6px 0 4px; text-decoration: none !important; color: var(--ash) !important; }
.cart__back:hover { color: var(--bone) !important; }

/* Récapitulatif — un billet de papier technique dans l'acier */
.cart__notice {
  position: relative;
  margin: 8px 0 4px;
  padding: 16px 18px 18px;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 22px,
    var(--paper);
  background-blend-mode: soft-light, normal;
  border-radius: var(--r-sm);
}
.cart__notice::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px) 0 0 / 12px 6px repeat-x;
}
.cart__notice-k {
  margin: 0 0 4px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember-deep);
}
.cart__notice-t {
  margin: 0 0 8px;
  font-family: var(--f-display); font-size: 25px; font-weight: 800; line-height: 1.22; text-transform: uppercase;
  color: var(--ink);
}
.cart__notice-p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.cart__recap { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cart__recap th, .cart__recap td { padding: 6px 4px; border-bottom: 1px dashed var(--steel-700); text-align: left; vertical-align: middle; }
.cart__recap thead th { font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); border-bottom: 1px solid var(--steel-700); }
.cart__recap tfoot th, .cart__recap tfoot td { padding-top: 10px; font-weight: 700; border-bottom: 0; }
.cart__num { text-align: right !important; font-family: var(--f-mono); white-space: nowrap; }
.cart__recap-builds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cart__recap-builds li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--steel-700); }
.cart__recap-builds strong { font-weight: 700; }
.cart__recap-opts { display: block; font-size: 12px; color: var(--blueprint); }
.cart__raw { margin-top: 14px; border: 1px solid var(--steel-700); border-radius: var(--r-sm); }
.cart__raw summary {
  display: flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  font-size: 13px; color: var(--ash);
  cursor: pointer;
}
.cart__raw summary:hover { color: var(--bone); }
.cart__pre {
  margin: 0;
  max-height: 260px;
  padding: 12px;
  overflow: auto;
  font-family: var(--f-mono); font-size: 11px; line-height: 1.55;
  color: var(--bone);
  background: var(--steel-950);
  border-top: 1px solid var(--steel-700);
  white-space: pre;
}

/* ─── Toasts ─────────────────────────────────────────────────────────────── */
.cart-toasts {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  width: min(460px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.cart-toast {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px;
  min-height: 48px;
  font-family: var(--f-body); font-size: 14px; line-height: 1.35;
  color: var(--bone);
  background: color-mix(in srgb, var(--steel-800) 96%, transparent);
  border: 1px solid var(--steel-700);
  border-left: 3px solid var(--blueprint);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px var(--steel-950);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  /* Entrée : 12 → 0 px et fondu, 260 ms, posé (--e-seat). Sortie : 160 ms (--e-leave). */
  transition: opacity var(--m-base, 260ms) var(--e-seat, var(--ease)), transform var(--m-base, 260ms) var(--e-seat, var(--ease));
}
.cart-toast.is-in { opacity: 1; transform: none; }
.cart-toast.is-out {
  opacity: 0; transform: translateY(6px);
  transition-duration: var(--m-fast, 160ms); transition-timing-function: var(--e-leave, var(--ease));
}
/* Le temps qui reste : un filet de 2 px qui se vide (cart-ui l'anime, linéaire, sur la vie du
   toast ; figé tant que la souris ou le focus est sur le toast ; plein et immobile en mouvement réduit). */
.cart-toast__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; opacity: .32;
  transform-origin: 0 50%;
  pointer-events: none;
}
.cart-toast--ok .cart-toast__bar { color: var(--ok); }
.cart-toast--warn .cart-toast__bar { color: var(--warn); }
.cart-toast--bad .cart-toast__bar { color: var(--bad); }
.cart-toast--info .cart-toast__bar { color: var(--blueprint); }
.cart-toast__ico { width: 18px; height: 18px; flex: none; color: var(--blueprint); }
.cart-toast__msg { flex: 1; min-width: 0; }
.cart-toast--ok { border-left-color: var(--ok); }
.cart-toast--ok .cart-toast__ico { color: var(--ok); }
.cart-toast--warn { border-left-color: var(--warn); }
.cart-toast--warn .cart-toast__ico { color: var(--warn); }
.cart-toast--bad { border-left-color: var(--bad); }
.cart-toast--bad .cart-toast__ico { color: var(--bad); }
.cart-toast__act {
  flex: none;
  min-height: 44px; padding: 0 12px;
  font: 600 13px/1 var(--f-body);
  color: var(--blueprint);
  background: transparent;
  border: 1px solid var(--blueprint-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.cart-toast__act:hover { background: color-mix(in srgb, var(--blueprint) 12%, transparent); }
.cart-toast__act:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; }

/* La pastille du panier saute quand le compte change (deux noms : cart-ui alterne a/b). Pendant
   un vol (html.mx-flying), rien : MOTION l'allume à l'atterrissage. */
#cart-count.cart-bump[data-bump="a"] { animation: cart-bump-a .55s var(--ease); }
#cart-count.cart-bump[data-bump="b"] { animation: cart-bump-b .55s var(--ease); }
html.mx-flying #cart-count.cart-bump { animation: none; }
@keyframes cart-bump-a {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); filter: drop-shadow(0 0 6px var(--glow)); }
  60% { transform: scale(.92); }
  100% { transform: scale(1); }
}
@keyframes cart-bump-b {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); filter: drop-shadow(0 0 6px var(--glow)); }
  60% { transform: scale(.92); }
  100% { transform: scale(1); }
}
/* Panier plein : une braise immobile (jamais en boucle). Sans css/motion.css, la teinte de
   legio.css (fond braise uni) reste. */
#cart-open.has-items #cart-count {
  background-image: radial-gradient(120% 120% at 50% 28%, var(--heat-4) 0%, var(--heat-3) 52%, var(--heat-2) 100%);
  box-shadow: 0 0 14px var(--glow);
}

@media (max-width: 1023.98px) {
  .cart-toasts { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
/* Bureau : la carte collante du configurateur est en bas à droite ; les toasts passent au-dessus. */
@media (min-width: 1024px) {
  html.lg-cfg-sticky .cart-toasts { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 479.98px) {
  .cart__panel { width: 100%; border-left: 0; }
  .cart__title { font-size: 30px; }
  .cart__extra {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-areas: "txt txt rm" "qty sub sub";
    row-gap: 4px;
  }
  .cart__esub { min-width: 0; }
  .cart__qty { justify-self: start; }
  .cart__toggle { grid-template-columns: 44px minmax(0, 1fr) 20px; grid-template-areas: "badge txt chev" "badge price chev"; row-gap: 0; }
  .cart__build-badge { grid-area: badge; }
  .cart__build-txt { grid-area: txt; }
  .cart__build-price { grid-area: price; font-size: 12px; color: var(--ash); }
  .cart__chev { grid-area: chev; }
  .cart__line { grid-template-columns: 64px minmax(0, 1fr) 32px 58px; }
}

/* Écran bas (téléphone couché, zoom 200 %) : on rend de la place à la liste. */
@media (max-height: 520px) {
  .cart__head { padding-top: 10px; padding-bottom: 8px; }
  .cart__title { font-size: 24px; }
  .cart__meta { font-size: 12px; }
  .cart__foot { gap: 4px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .cart__subtotal strong { font-size: 24px; }
  a.cart__cta, button.cart__cta { min-height: 44px; }
}

/* Contraste élevé (forced-colors) : les états restent lisibles. */
@media (forced-colors: active) {
  .cart__toggle[aria-expanded="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .cart-toast { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  .cart, .cart *, #cart-count.cart-bump, .cart-toast__bar { animation: none !important; transition: none !important; }
  /* Toasts : un fondu de 160 ms, sans glissé ; le filet reste plein. */
  .cart-toast, .cart-toast.is-out { transform: none; transition: opacity var(--m-fast, 160ms) linear; animation: none !important; }
}
html.mx-pref-reduced .cart, html.mx-pref-reduced .cart *, html.mx-pref-reduced #cart-count.cart-bump,
html.mx-pref-reduced .cart-toast__bar { animation: none !important; transition: none !important; }
html.mx-pref-reduced .cart-toast, html.mx-pref-reduced .cart-toast.is-out { transform: none; }
