/* =========================================================================
   Panier et caisse (démo) — styles propres à la page.
   Réutilise les jetons et composants d’app.css.
   ========================================================================= */

:root { --bar-h: 76px; }

.cart-page { padding-bottom: 8px; }
.cart-noscript { padding-block: 32px; font-weight: 650; }
body.has-bar { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--bar-h)); }
body.has-bar:not(.bar-off) .toast-region { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--bar-h) + 10px); }
.toast .btn { min-height: 44px; } /* app.css : 40 px — on garantit 44 px pour « Annuler » sur cette page */

.cart-view.view-in > * { animation: rise 640ms var(--ease-out) both; }
.cart-view.view-in > *:nth-child(2) { animation-delay: 80ms; }
.cart-view.view-in > *:nth-child(3) { animation-delay: 160ms; }

/* ---------- En-tête de page ---------- */
.cart-head { padding-top: 6px; padding-bottom: 14px; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--ink-3); text-decoration: none; }
.crumbs .icon { color: var(--muted-2); }
.cart-head__row { display: flex; align-items: center; gap: 12px; }
.cart-title {
  font-size: clamp(2.05rem, 1.5rem + 2.6vw, 3.1rem); font-weight: 850; font-stretch: 116%;
  letter-spacing: -0.03em; line-height: 1;
}
.cart-title:focus { outline: none; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 11px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 850; font-stretch: 108%; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px rgb(227 25 31 / 0.3);
  transform-origin: 50% 60%;
}
.cart-count:empty { display: none; }
.cart-count.bump { animation: bump 520ms var(--spring); }
.cart-head__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; min-height: 28px; font-size: var(--fs-sm); color: var(--muted); }
.cart-head__meta { line-height: 1.35; }
.cart-head__sub b { color: var(--ink); font-weight: 750; }
.cart-head__sk { display: block; width: 220px; height: 16px; border-radius: 6px; }
.head-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--green-50); color: var(--green); font-weight: 750; font-size: 0.8rem;
}

/* ---------- Grille ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.cart-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

.block { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 18px 16px; }
.block__title { font-size: 1.15rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; margin-bottom: 12px; }

/* ---------- Livraison gratuite ---------- */
.ship { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 14px 16px 12px; }
.ship__top { display: flex; align-items: center; gap: 12px; }
.ship__ico {
  width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--red-50); color: var(--red-600);
  transition: background-color var(--dur-3), color var(--dur-3);
}
.ship__txt { font-size: 0.92rem; font-weight: 650; line-height: 1.3; }
.ship__txt b { font-weight: 850; font-variant-numeric: tabular-nums; }
.ship__track { position: relative; height: 8px; margin: 12px 0 8px; border-radius: 99px; background: var(--well); }
.ship__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #ff6a3d);
  transition: width 900ms var(--ease-out), background 600ms;
}
.ship__fill::after {
  content: ''; position: absolute; right: -6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 99px;
  background: #fff; box-shadow: 0 0 0 3px #ff6a3d, 0 2px 8px rgb(227 25 31 / 0.35);
  transition: box-shadow 600ms;
}
.ship__fine { font-size: 0.75rem; color: var(--muted); }
.ship.is-done .ship__ico { background: var(--green-50); color: var(--green); }
.ship.is-done .ship__fill { background: linear-gradient(90deg, #0b7a3b, #2fb36a); }
.ship.is-done .ship__fill::after { box-shadow: 0 0 0 3px #2fb36a, 0 2px 8px rgb(11 122 59 / 0.35); right: 0; }
.ship.is-done .ship__txt { color: var(--green); }
.ship.celebrate .ship__ico { animation: bump 620ms var(--spring); }

/* ---------- Lignes du panier ---------- */
.lines { display: grid; grid-template-columns: minmax(0, 1fr); }
.line {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px;
  padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.line + .line { margin-top: 10px; }
.line.is-new { animation: line-in 560ms var(--ease-out) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.line__media {
  width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #fbfaf8 0%, var(--well) 100%);
}
.line__media picture { display: contents; }
.line__media img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 8px 10px rgb(20 21 24 / 0.16)); transition: transform var(--dur-3) var(--ease-out); }
a.line__media:hover img { transform: scale(1.05); }
.line__media--svc { background: linear-gradient(150deg, var(--ink-2), var(--ink)); color: #fff; position: relative; }
.line__media--svc::after {
  content: ''; position: absolute; right: 10px; bottom: 10px; width: 14px; height: 12px;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.line__media--svc .icon { width: 34px; height: 34px; }
.line__body { min-width: 0; padding-right: 30px; }
.line__brand { display: block; font-size: 0.7rem; font-weight: 750; font-stretch: 110%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.line__name {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 2px; font-weight: 700; font-size: 0.95rem; line-height: 1.3; text-decoration: none; text-wrap: pretty;
}
a.line__name { position: relative; }
/* Zone tactile ≥ 44 px sans décaler la mise en page */
a.line__name::after { content: ''; position: absolute; inset: -12px 0; }
.line__opt { margin-top: 3px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.line__opt .size { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--well); color: var(--ink-2); font-weight: 750; }
.line__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.line__tags .badge { height: 22px; }
.line__tags .pcard__stock { font-size: 0.78rem; }
.line__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-block: -2px -10px; line-height: 1.2;
  font-size: 0.85rem; font-weight: 750; color: var(--red-600); text-decoration: none;
}
.line__link:hover { text-decoration: underline; }
.line__remove { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.line__remove:hover { color: var(--ink); }
.line__foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
/* Service du Centre auto : 1 par véhicule, pas de sélecteur (retrait par la croix de la ligne) */
.line__per { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.85rem; font-weight: 700; color: var(--ink-3); }
.line__per .icon { color: var(--muted); }
.line .stepper { background: var(--card); }
.line .stepper button { height: 44px; transition: background-color var(--dur-2), color var(--dur-2); }
.line .stepper button:hover { background: var(--well); }
.line .stepper button[aria-disabled='true'] { opacity: 0.3; cursor: not-allowed; }
.line .stepper button[aria-disabled='true']:hover { background: none; }
.line .stepper [data-dec].is-trash { color: var(--red-600); }
.line .stepper output { display: inline-block; min-width: 30px; font-size: 1.02rem; }
.line .stepper output.tick { animation: tick 360ms var(--spring); }
@keyframes tick { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
.line__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1.1; text-align: right; min-width: 0; }
.line__total { font-size: 1.22rem; font-weight: 850; font-stretch: 106%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__total.is-sale { color: var(--red-600); }
.line__deal { display: inline-flex; align-items: center; gap: 6px; }
.line__deal .badge { height: 20px; padding-inline: 6px; font-size: 0.68rem; }
.line__was { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__hint {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--amber-50); color: var(--amber); font-size: 0.8rem; font-weight: 600; line-height: 1.4;
}
.line__hint .icon { margin-top: 2px; }
.line__hint-txt { flex: 1 1 200px; min-width: 0; text-wrap: pretty; }
.line__hint > span:not(.line__hint-txt) { flex: 1; min-width: 0; }
.line__hint sup { font-size: 0.68em; line-height: 0; }
.line__hint-btn {
  position: relative; flex: none; align-self: center; height: 32px; margin-left: 22px; padding: 0 12px; border-radius: 999px;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(163 84 0 / 0.28);
  font-size: 0.78rem; font-weight: 750; white-space: nowrap;
  transition: box-shadow var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.line__hint-btn::after { content: ''; position: absolute; inset: -6px -4px; }
.line__hint-btn:hover { box-shadow: inset 0 0 0 1.5px var(--amber); }
.line__hint-btn:active { transform: scale(0.96); }
.line__hint--max { background: var(--well); color: var(--ink-3); }

/* Squelettes de lignes */
.line--sk { grid-template-columns: 92px 1fr; }
.line__sk-img { width: 92px; height: 92px; border-radius: 16px; }
.line__sk-txt { display: grid; gap: 8px; align-content: start; padding-top: 4px; }
.line__sk-txt .skeleton { height: 12px; border-radius: 6px; }
.line__sk-txt .skeleton:nth-child(1) { width: 40%; }
.line__sk-txt .skeleton:nth-child(2) { width: 90%; height: 16px; }
.line__sk-txt .skeleton:nth-child(3) { width: 60%; }

/* ---------- Suggestion : pose ---------- */
.upsell {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  min-height: 380px; display: flex; align-items: flex-end; background: var(--night); color: #fff;
}
.upsell picture, .upsell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; z-index: -2; }
.upsell::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(10 15 29 / 0.96) 22%, rgb(10 15 29 / 0.55) 56%, rgb(10 15 29 / 0.05) 100%);
}
.upsell__body { width: 100%; padding: 18px 16px 10px; }
.upsell__eyebrow { color: #ff7a7d; }
.upsell__title { margin-top: 6px; font-size: 1.5rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.upsell__list { display: grid; gap: 4px; margin: 10px 0 14px; }
.upsell__list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgb(255 255 255 / 0.82); }
.upsell__list .icon { color: #ff7a7d; }
.upsell__ctas { display: grid; gap: 2px; }
/* Téléphone étroit : « Ajouter le montage — 119,99 $ » passe sur deux lignes plutôt que de sortir de la carte */
.upsell__ctas .btn { white-space: normal; text-align: center; text-wrap: balance; line-height: 1.2; padding-block: 8px; }
.upsell__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
  color: #fff; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
}
.upsell__link:hover { text-decoration: underline; }
.upsell__link .icon { transition: transform var(--dur-2) var(--ease-out); }
.upsell__link:hover .icon { transform: translateX(3px); }

/* ---------- Mode de réception ---------- */
.fopts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; min-width: 0; }
.fopt {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 12px;
  min-height: 72px; padding: 12px 14px; border-radius: 16px; cursor: pointer; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow var(--dur-2), background-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.fopt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.fopt:active { transform: scale(0.985); }
.fopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.fopt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fopt__ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--well); color: var(--ink-2); transition: background-color var(--dur-2), color var(--dur-2);
}
.fopt:has(input:checked) .fopt__ico { background: var(--ink); color: #fff; }
.fopt__txt { min-width: 0; }
.fopt__name { display: block; font-weight: 750; font-size: 0.98rem; line-height: 1.25; }
.fopt__meta { display: block; margin-top: 3px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.fopt__meta .is-soon { color: var(--green); font-weight: 750; }
.fopt__price { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fopt__price.is-free { color: var(--green); }
.fopt__radio { width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow var(--dur-2) var(--ease-out); }
.fopt:has(input:checked) .fopt__radio { box-shadow: inset 0 0 0 7px var(--red); }
.fdetail { margin-top: 12px; }
.fdetail__card { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--well); animation: rise 520ms var(--ease-out) both; }
.fdetail__store {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 4px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.fdetail__pin { grid-row: 1; align-self: start; margin-top: 1px; color: var(--ink-3); }
.fdetail__name { grid-column: 2; min-width: 0; font-size: 0.95rem; font-weight: 750; line-height: 1.25; }
/* Pastille visuelle de 34 px, zone tactile de 44 px (pseudo-élément), sans gonfler la rangée */
.fdetail__change {
  grid-column: 3; grid-row: 1; position: relative; margin-block: -6px;
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-weight: 750; font-size: var(--fs-sm); color: var(--ink);
  transition: box-shadow var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.fdetail__change::after { content: ''; position: absolute; inset: -5px -2px; }
.fdetail__change:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fdetail__change:active { transform: scale(0.96); }
.fdetail__status { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.fdetail__status .status-dot { margin-left: 1px; }
.fdetail__line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-3); line-height: 1.45; }
.fdetail__line .icon { color: var(--ink-3); margin-top: 1px; }
.fdetail__line b { color: var(--ink); font-weight: 750; }

/* ---------- Résumé ---------- */
.summary { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 20px 18px 18px; }
.summary__title { font-size: 1.15rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; }
.save-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--red-50); color: var(--red-700); font-size: 0.86rem; font-weight: 650;
}
.save-banner b { font-weight: 850; font-variant-numeric: tabular-nums; }

.promo { margin-top: 16px; }
.promo__label { display: block; font-size: 0.8rem; font-weight: 750; margin-bottom: 6px; }
.promo__field { display: flex; gap: 8px; }
.promo__field input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color var(--dur-2), background-color var(--dur-2), box-shadow var(--dur-2);
}
.promo__field input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.promo__field input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(26 109 255 / 0.22); }
.promo__field input[aria-invalid='true'] { border-color: var(--red); background: var(--red-50); }
.promo__field input[aria-invalid='true']:focus-visible { border-color: var(--red); box-shadow: 0 0 0 3px rgb(227 25 31 / 0.2); }
.promo:has(.promo__msg.is-warn) input[aria-invalid='true'] { border-color: var(--amber); background: var(--amber-50); }
.promo:has(.promo__msg.is-warn) input[aria-invalid='true']:focus-visible { box-shadow: 0 0 0 3px rgb(163 84 0 / 0.2); }
.promo__field.shake { animation: shake 420ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.promo__btn { min-height: 48px; border-radius: 12px; padding-inline: 18px; }
.promo__msg { margin-top: 6px; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.promo__msg.is-error { color: var(--red-700); font-weight: 650; }
.promo__msg.is-warn { color: var(--amber); font-weight: 650; }
.promo-applied {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 4px 6px 10px; border-radius: 14px;
  background: var(--green-50); color: var(--green);
}
.promo-applied.pop { animation: pop 520ms var(--spring); }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }
.promo-applied__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; flex: none; }
.promo-applied__txt { flex: 1; font-size: 0.86rem; line-height: 1.25; }
.promo-applied__txt b { letter-spacing: 0.04em; }
.promo-applied__txt small { font-size: 0.76rem; font-weight: 600; color: var(--ink-3); }

.sum-rows { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-rows dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-rows dt { color: var(--ink-3); }
.sum-rows dt small { color: var(--muted); font-size: 0.78rem; }
.summary-row--promo dt, .summary-row--promo dd { color: var(--green); font-weight: 700; }
.sum-rows .summary-row--total { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.25rem; }
.sum-rows .summary-row--total dt { color: var(--ink); }
.sum-rows .is-free { color: var(--green); font-weight: 750; }
.sum-rows .flash { animation: flash 700ms var(--ease-out); }
@keyframes flash { 0% { color: var(--red-600); } 100% { color: inherit; } }
.sum-ct {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--red-50);
}
.sum-ct .ctmoney { font-size: 0.82rem; }
.sum-ct b.ctmoney { font-size: 0.95rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.sum-cta { margin-top: 16px; }
.sum-cta .icon { transition: transform var(--dur-2) var(--ease-out); }
.sum-cta:hover .icon { transform: translateX(3px); }
.sum-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 12px; font-size: 0.75rem; font-weight: 650; color: var(--muted); }
.sum-trust li { display: inline-flex; align-items: center; gap: 5px; }
.sum-trust .icon { color: var(--green); }

/* ---------- Incitation Triangle ---------- */
.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* Triangle décoratif remonté : il reste derrière le titre (grand texte), jamais derrière le texte courant */
.nudge::before { top: -76px; right: -52px; }
.nudge__txt { flex: 1 1 320px; min-width: 0; }
.nudge__cta { flex: 1 1 240px; min-width: 0; }
.nudge__title { margin-top: 6px; font-size: 1.45rem; font-weight: 850; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.nudge__amt {
  display: inline-block; padding: 0 8px; border-radius: 10px; background: #fff; color: var(--red-700);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nudge__p { margin-top: 8px; font-size: 0.9rem; line-height: 1.45; color: #fff; text-wrap: pretty; }
.nudge__fine { margin-top: 10px; font-size: 0.8rem; color: #fff; text-align: center; text-wrap: balance; }

/* ---------- Suggestions ---------- */
.reco .section-head { margin-bottom: 10px; }

/* ---------- Panier vide ---------- */
.empty-hero { text-align: center; padding-top: 20px; }
.empty-art { position: relative; width: 240px; height: 210px; margin: 0 auto 6px; }
.empty-art__halo {
  position: absolute; left: 50%; top: 50%; width: 184px; height: 184px; margin: -92px 0 0 -92px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #fbfaf8 46%, var(--well) 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgb(20 21 24 / 0.25);
}
.empty-art__tri {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 130px; margin: -58px 0 0 -75px;
  background: linear-gradient(160deg, var(--red), var(--red-700)); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0.09;
}
.empty-art__cart {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 28px;
  display: grid; place-items: center; background: linear-gradient(150deg, var(--ink-3), var(--ink)); color: #fff;
  box-shadow: 0 20px 40px -12px rgb(20 21 24 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.12);
  animation: cart-roll 5.6s var(--ease-in-out) infinite;
}
.empty-art__cart .icon { width: 44px; height: 44px; }
@keyframes cart-roll { 0%, 100% { transform: translateX(0) rotate(0); } 45% { transform: translateX(6px) rotate(3deg); } 55% { transform: translateX(6px) rotate(3deg); } }
.empty-art__chip {
  position: absolute; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-2); animation: float 5s var(--ease-in-out) infinite;
}
.empty-art__chip--a { left: 4px; top: 40px; color: #2b6fd6; animation-delay: -1.2s; }
.empty-art__chip--b { right: 2px; top: 22px; color: var(--red); animation-delay: -2.6s; }
.empty-art__chip--c { right: 22px; bottom: 6px; color: #c98a12; animation-delay: -0.4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-5deg); } }
.empty-art__spark { position: absolute; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); animation: twinkle 2.8s ease-in-out infinite; }
.empty-art__spark--a { left: 34px; bottom: 34px; }
.empty-art__spark--b { right: 64px; top: 4px; width: 7px; height: 7px; background: var(--red); animation-delay: -1.4s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: rotate(45deg) scale(0.7); } 50% { opacity: 1; transform: rotate(45deg) scale(1.15); } }
.empty-title {
  max-width: 15ch; margin: 8px auto 0;
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); font-weight: 850; font-stretch: 116%; letter-spacing: -0.03em; line-height: 1.02;
  text-wrap: balance;
}
.empty-title:focus { outline: none; }
.empty-lead { max-width: 34ch; margin: 12px auto 0; color: var(--ink-3); font-size: var(--fs-lg); line-height: 1.45; text-wrap: pretty; }
.empty-ctas { display: grid; gap: 10px; margin: 22px auto 0; max-width: 420px; }
.deals-eyebrow { color: var(--red-600); }

/* ---------- Retours ---------- */
.returns { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 20px 16px; }
.returns__head { display: flex; align-items: center; gap: 14px; }
.returns__ico { width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; }
.returns__title { margin-top: 4px; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem); }
.returns__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.returns__grid li { padding: 14px 12px; border-radius: 16px; background: var(--bg); font-size: 0.8rem; line-height: 1.35; color: var(--ink-3); }
.returns__grid b { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--ink); }
.returns__i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--red); box-shadow: var(--shadow-1); }
.returns__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.returns__fine { flex: 1 1 220px; font-size: 0.78rem; color: var(--muted); }
/* Numéro fictif : texte non cliquable (pas de lien tel: en démo) */
.returns__tel { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 750; color: var(--ink); white-space: nowrap; }
.returns__tel .icon { color: var(--muted); }
.returns__tel small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

/* ---------- Barre de caisse collante (mobile) ---------- */
.checkout-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 55;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  height: var(--bar-h); padding: 10px var(--gutter);
  background: rgb(255 255 255 / 0.96);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 -1px 0 var(--line), 0 -14px 30px rgb(20 21 24 / 0.08);
  transition: transform 420ms var(--ease-out), opacity 260ms;
}
.checkout-bar.is-off { transform: translateY(calc(100% + 12px)); opacity: 0; pointer-events: none; }
.checkout-bar__sum { display: grid; text-align: left; line-height: 1.1; min-height: 48px; align-content: center; padding-right: 2px; }
.checkout-bar__lbl { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.checkout-bar__total { margin-top: 2px; font-size: 1.24rem; font-weight: 850; font-stretch: 106%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-bar__meta { margin-top: 2px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.checkout-bar__cta { min-height: 52px; min-width: 0; padding-inline: 16px; }
.checkout-bar__cta .icon { transition: transform var(--dur-2) var(--ease-out); }

@media (max-width: 374px) {
  .checkout-bar { gap: 10px; }
  .checkout-bar__n { display: none; }
  .checkout-bar__cta { padding-inline: 14px; }
  .checkout-bar__cta .icon { display: none; }
}
@media (max-width: 340px) {
  .checkout-bar__meta { display: none; }
  .checkout-bar__total { font-size: 1.14rem; }
  .checkout-bar__cta { font-size: 0.95rem; }
}

/* ---------- Feuille de caisse (démo) ---------- */
.co-sheet .sheet__body { padding-top: 0; }
.co-steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 18px; counter-reset: s; }
.co-step {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--well); color: var(--muted); font-size: 0.82rem; font-weight: 750;
  transition: background-color var(--dur-3), color var(--dur-3);
}
.co-step__n {
  width: 26px; height: 26px; border-radius: 99px; flex: none; display: grid; place-items: center;
  background: var(--card); color: var(--ink-3); font-size: 0.8rem; font-weight: 850;
  transition: background-color var(--dur-3), color var(--dur-3);
}
.co-step[aria-current='step'] { background: var(--ink); color: #fff; }
.co-step[aria-current='step'] .co-step__n { background: var(--red); color: #fff; }
.co-step.is-done { background: var(--green-50); color: var(--green); }
.co-step.is-done .co-step__n { background: var(--green); color: #fff; }
.co-h { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.co-h:focus { outline: none; }
.co-pane { animation: co-in 460ms var(--ease-out) both; }
.co-pane.is-back { animation-name: co-in-back; }
@keyframes co-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes co-in-back { from { opacity: 0; transform: translateX(-24px); } }
.co-items { display: grid; gap: 2px; margin-bottom: 14px; }
.co-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-item__img { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--well); }
.co-item__img img { width: 86%; height: 86%; object-fit: contain; }
.co-item__img--svc { background: var(--ink); color: #fff; }
.co-item__name { font-size: 0.86rem; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-item__q { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.co-item__t { font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--well); margin-bottom: 14px; }
.co-box__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.co-box__txt { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.co-box__txt b { display: block; color: var(--ink); font-size: 0.92rem; }
.co-box__edit {
  position: relative; flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 750; font-size: var(--fs-sm); color: var(--ink);
  transition: box-shadow var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.co-box__edit::after { content: ''; position: absolute; inset: -5px -2px; }
.co-box__edit:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.co-box__edit:active { transform: scale(0.96); }
.co-sum { margin: 0; }
.co-sum dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-sum dt { color: var(--ink-3); }
.co-sum .summary-row--total { border-top: 1px solid var(--line); margin-top: 6px; }
.co-sum .summary-row--total dt { color: var(--ink); }
.co-sum .is-free { color: var(--green); font-weight: 750; }
.co-sum .summary-row--promo dt, .co-sum .summary-row--promo dd { color: var(--green); font-weight: 700; }
.co-ct { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--red-50); }
.co-ct b { font-weight: 850; }

.pay-opts { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.pay-opt {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 12px;
  min-height: 68px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow var(--dur-2), background-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.pay-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.pay-opt:active { transform: scale(0.985); }
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.pay-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pay-opt__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--well); color: var(--ink-2); }
.pay-opt:has(input:checked) .pay-opt__ico { background: var(--ink); color: #fff; }
.pay-opt__txt b { display: block; font-size: 0.95rem; line-height: 1.25; }
.pay-opt__txt small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.pay-opt__radio { width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow var(--dur-2) var(--ease-out); }
.pay-opt:has(input:checked) .pay-opt__radio { box-shadow: inset 0 0 0 7px var(--red); }
.co-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--night); color: rgb(255 255 255 / 0.82); font-size: 0.82rem; line-height: 1.4;
}
.co-note .icon { color: #5fd08e; flex: none; margin-top: 1px; }
.co-note b { color: #fff; }
.co-due { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; font-weight: 850; font-size: 1.15rem; }
.co-due span:first-child { font-size: 0.9rem; font-weight: 700; color: var(--ink-3); }
.co-due span:last-child { font-variant-numeric: tabular-nums; }

.co-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.co-foot--one { grid-template-columns: 1fr; }
.co-foot--done { grid-template-columns: 1fr; gap: 2px; }
.co-foot--done .btn--ghost { box-shadow: none; min-height: 44px; font-size: var(--fs-sm); color: var(--ink-3); }
@media (hover: hover) { .co-foot--done .btn--ghost:hover { text-decoration: underline; box-shadow: none; } }
.co-foot--done .btn--ghost:hover { box-shadow: none; }
.co-foot .btn { min-width: 0; }
.co-back { --btn-bg: var(--card); --btn-fg: var(--ink); width: 56px; min-height: 56px; height: 56px; padding: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.co-back:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: spin 700ms linear infinite;
}
.btn.is-loading .icon { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.co-done { text-align: center; padding: 6px 0 4px; animation: co-in 520ms var(--ease-out) both; }
.co-done__mark { position: relative; width: 96px; height: 96px; margin: 8px auto 22px; }
.co-done__mark svg { width: 96px; height: 96px; }
.co-done__ring { fill: none; stroke: var(--line); stroke-width: 4; }
.co-done__arc { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transform: rotate(-90deg); transform-origin: 50% 50%; animation: draw 900ms var(--ease-out) 120ms forwards; }
.co-done__tick { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 520ms var(--ease-out) 760ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.co-done__mark::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(11 122 59 / 0.35);
  animation: ring 1.4s var(--ease-out) 1s both;
}
@keyframes ring { from { box-shadow: 0 0 0 0 rgb(11 122 59 / 0.3); } to { box-shadow: 0 0 0 18px rgb(11 122 59 / 0); } }
.co-done__title { margin-top: 6px; font-size: 1.55rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.co-done__title:focus { outline: none; }
.co-done__msg { max-width: 34ch; margin: 10px auto 0; font-size: 0.98rem; color: var(--ink-3); line-height: 1.45; text-wrap: pretty; }
.co-done__msg b { color: var(--ink); }
.co-next { margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--well); text-align: left; }
.co-next ul { display: grid; gap: 10px; margin-top: 10px; }
.co-next li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ink-3); line-height: 1.35; }
.co-next li .icon { color: var(--red); flex: none; margin-top: 1px; }
.co-next li b { color: var(--ink); }
.co-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--night); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- ≥ 600 px ---------- */
@media (min-width: 600px) {
  .line { grid-template-columns: 112px minmax(0, 1fr); padding: 16px; }
  .line__media { width: 112px; height: 112px; }
  .line__foot { grid-column: 2; border-top: 0; padding-top: 0; margin-top: 14px; }
  .line__hint { grid-column: 2; }
  .upsell { min-height: 300px; align-items: stretch; }
  .upsell::after { background: linear-gradient(90deg, rgb(10 15 29 / 0.96) 30%, rgb(10 15 29 / 0.55) 64%, rgb(10 15 29 / 0.1) 100%); }
  .upsell picture, .upsell img { left: 40%; width: 60%; object-position: 50% 30%; }
  .upsell__body { max-width: 440px; padding: 24px; align-self: center; }
  .upsell__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
  .upsell__ctas .btn { width: auto; }
  .empty-ctas { grid-template-columns: auto auto; justify-content: center; max-width: none; }
  .checkout-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .checkout-bar__cta { min-width: 300px; }
  .returns { padding: 28px; }
  .returns__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nudge__title { font-size: 1.65rem; }
}

/* ---------- Bureau ---------- */
@media (min-width: 900px) {
  :root { --bar-h: 0px; }
  body.has-bar { padding-bottom: 0; }
  body.has-bar:not(.bar-off) .toast-region { bottom: 24px; }
  .checkout-bar { display: none; }
  .cart-head { padding-top: 14px; padding-bottom: 22px; }
  .cart-grid {
    grid-template-columns: minmax(0, 1fr) 400px; gap: 20px 32px;
    grid-template-areas: 'main summary' 'nudge summary';
  }
  .cart-main { grid-area: main; gap: 16px; }
  .summary { grid-area: summary; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow-2); padding: 24px 22px 20px; }
  .nudge { grid-area: nudge; padding: 28px; }
  .nudge::before { top: -80px; right: -60px; } /* le triangle décoratif reste derrière le bouton, pas derrière le texte */
  .block { padding: 22px; }
  .upsell { min-height: 320px; }
  .empty-hero { padding-top: 36px; }
  .reco { padding-top: 48px; }
}
@media (hover: hover) {
  .line { transition: box-shadow var(--dur-2); }
  .line:hover { box-shadow: var(--shadow-2); }
  .crumbs a:hover, a.line__name:hover { text-decoration: underline; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .empty-art__cart, .empty-art__chip, .empty-art__spark { animation: none !important; }
  .co-done__arc, .co-done__tick { stroke-dashoffset: 0; animation: none !important; }
}
