/* =============================================================
   STYLE DE LA PAGE BUNDLE POPÉO'S
   Les couleurs de la marque sont regroupées juste en dessous :
   change une valeur ici, elle change partout.
   ============================================================= */
:root {
  --purple: #36186B;       /* violet profond du logo */
  --purple-2: #5B3FA8;     /* violet plus clair (survol, détails) */
  --lavender: #B4A7EE;     /* lavande des paquets */
  --lavender-soft: #ECE7FC;
  --cream: #FCF3E3;        /* crème du logo */
  --beige: #F1E9DE;        /* fond de page, comme tes photos */
  --butter: #F7DE95;       /* beurre (bouton) */
  --butter-soft: #FBEFCB;
  --caramel: #D9963A;      /* caramel (accents) */
  --white: #FFFDF8;
  --ink: #2A1650;          /* texte */
  --muted: #6B5C86;        /* texte secondaire */
  --success: #2F8A57;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(54, 24, 107, .28);
  --shadow-sm: 0 4px 14px -6px rgba(54, 24, 107, .25);

  --font-title: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fun: "Fredoka", "Outfit", system-ui, sans-serif;
  --dock-h: 136px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-title);
  color: var(--ink);
  background: var(--beige);
  line-height: 1.45;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- Bandeau + en-tête ---------- */
.announce {
  margin: 0;
  padding: 9px 16px;
  text-align: center;
  font-size: .9rem;
  background: var(--lavender);
  color: var(--purple);
}
/* En-tête : retour à gauche, logo au centre, pack à droite */
.topbar {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 8px 12px;
  background: var(--white);
  border-bottom: 1px solid rgba(54, 24, 107, .08);
}
.topbar__logo { justify-self: center; }
.topbar__logo img { height: 34px; width: auto; mix-blend-mode: multiply; }
.topbar__icon {
  position: relative;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--purple); cursor: pointer;
}
.topbar__icon:hover { background: var(--lavender-soft); }
.topbar__badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--purple); color: var(--cream);
  font-family: var(--font-fun); font-size: .7rem; font-weight: 700;
  border: 2px solid var(--white);
}
.topbar__badge[hidden] { display: none; }
.topbar__badge.is-bump { animation: badge-bump .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes badge-bump { 40% { transform: scale(1.35); } }

/* ---------- Mise en page ---------- */
.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "products" "summary";
}
.intro { grid-area: intro; }
.products { grid-area: products; }
.summary { grid-area: summary; }

/* ---------- Introduction ---------- */
.eyebrow {
  margin: 0 0 6px;
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple-2);
}
h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--purple);
}
.pop-word {
  font-family: var(--font-fun);
  display: inline-block;
  color: var(--caramel);
  transform: rotate(-4deg);
}
.lead { margin: 12px 0 0; font-size: 1.08rem; color: var(--muted); max-width: 34ch; }

/* Paliers : une barre blanche, remise en gros, quantité en dessous */
.tiers {
  list-style: none; margin: 14px 0 6px; padding: 14px 6px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -12px rgba(54, 24, 107, .3), 0 0 0 1px rgba(54, 24, 107, .05);
}
.tier {
  position: relative;
  padding: 0 4px;
  text-align: center;
  color: var(--muted);
  transition: color .3s, transform .3s;
}
.tier__gain {
  display: block;
  font-weight: 800; letter-spacing: -.02em;
  font-size: 1.45rem; line-height: 1.1;
  color: var(--ink); opacity: .45;
  transition: opacity .3s, color .3s;
}
.tier__qty { display: block; margin-top: 2px; font-size: .85rem; }
.tier__extra { display: block; font-size: .7rem; font-weight: 600; color: var(--purple-2); }
.tier.is-reached .tier__gain { opacity: 1; color: var(--purple); }
.tier.is-reached .tier__qty { color: var(--ink); font-weight: 600; }
.tier.is-reached { transform: translateY(-1px); }

/* ---------- Produits : une ligne claire par saveur ---------- */
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px 10px 10px;
  border-radius: var(--radius);
  /* Dégradé de la couleur de la saveur vers le blanc */
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 38%, var(--white)) 0%, var(--white) 75%);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color .25s;
}
.product.has-qty { border-color: color-mix(in srgb, var(--accent) 55%, var(--white)); }
.product__media {
  position: relative;
  width: 72px; aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 12px -6px rgba(54, 24, 107, .3);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__info { min-width: 0; }
.product__name {
  margin: 0;
  font-size: 1.15rem; font-weight: 800; line-height: 1.15; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product__sub { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.product__buy { display: flex; align-items: center; gap: 12px; }
.product__price { margin: 0; font-weight: 800; font-size: 1rem; white-space: nowrap; }

/* Bouton rond + (et − quand le produit est dans le seau) */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.5rem; font-weight: 500; line-height: 1;
  background: var(--purple); color: var(--cream);
  transition: transform .15s, opacity .2s;
  touch-action: manipulation;
}
.stepper button[data-action="remove"] {
  width: 34px; height: 34px; font-size: 1.2rem;
  background: var(--white); color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--lavender);
}
.stepper output {
  min-width: 20px; text-align: center;
  font-family: var(--font-fun); font-weight: 700; font-size: 1.1rem; color: var(--purple);
}
.stepper button:hover:not(:disabled) { transform: scale(1.07); }
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }

.product.is-soldout .product__media img { filter: grayscale(.9) opacity(.6); }
.soldout-tag {
  position: absolute; inset: auto 3px 3px 3px;
  padding: 2px 4px; border-radius: 999px; text-align: center;
  background: var(--purple); color: var(--cream); font-size: .58rem; font-weight: 700;
}
.products__note { margin: 14px 4px 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Récap / seau ---------- */
.summary__card {
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
}
.summary__head { display: flex; align-items: baseline; justify-content: space-between; }
.summary__head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--purple); }
.summary__count { margin: 0; font-family: var(--font-fun); font-weight: 700; color: var(--purple-2); }

.bucket { position: relative; }
.bucket svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bucket--big { width: min(230px, 66%); margin: 0 auto 4px; aspect-ratio: 240 / 236; }
.bucket.is-bump { animation: bucket-bump .4s ease; }
@keyframes bucket-bump {
  30% { transform: scale(1.06, .95); }
  60% { transform: scale(.97, 1.04); }
}
.bucket .k { transform-box: fill-box; transform-origin: center; }
.bucket .k.is-in { animation: kernel-in .55s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.bucket .k.is-out { animation: kernel-out .5s ease-in forwards; }
@keyframes kernel-in {
  0% { transform: translateY(-40px) scale(.4); opacity: 0; }
  60% { opacity: 1; }
}
@keyframes kernel-out {
  to { transform: translate(var(--dx, 0px), -70px) rotate(160deg) scale(.6); opacity: 0; }
}
.bucket__mark-label { font-family: var(--font-fun); font-weight: 700; font-size: 13px; fill: var(--muted); }
.bucket__mark-line { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.bucket__mark.is-reached .bucket__mark-label { fill: var(--purple); }
.bucket__mark.is-reached .bucket__mark-line { stroke: var(--caramel); opacity: 1; }

.progress-msg {
  margin: 8px 0 10px; min-height: 2.9em;
  text-align: center; font-weight: 600; color: var(--purple);
}
.progress { position: relative; margin: 0 4px 22px; }
.progress__track { height: 12px; border-radius: 999px; background: var(--lavender-soft); overflow: hidden; }
.progress__fill {
  height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--butter), var(--caramel));
  transition: width .6s cubic-bezier(.34, 1.3, .64, 1);
}
.progress__marks { position: absolute; inset: 0; }
.progress__mark {
  position: absolute; top: -3px;
  width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--lavender);
  transition: background .3s, border-color .3s;
}
.progress__mark span {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.progress__mark.is-reached { background: var(--purple); border-color: var(--purple); }

.lines { list-style: none; margin: 0 0 10px; padding: 0; }
.lines li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed rgba(54, 24, 107, .15);
  font-size: .95rem;
}
.lines li.is-empty { justify-content: center; color: var(--muted); border: 0; }

.totals { margin: 0 0 14px; }
.totals > div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals__discount dd { color: var(--success); }
.totals__total { margin-top: 6px; padding-top: 10px !important; border-top: 2px solid var(--lavender-soft); }
.totals__total dt, .totals__total dd { color: var(--purple); font-weight: 800; font-size: 1.3rem; }
#shipping.is-free { color: var(--success); font-weight: 700; }

/* ---------- Bouton « Je commande » ---------- */
.cta {
  position: relative;
  width: 100%;
  min-height: 58px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, var(--butter-soft), var(--butter));
  color: var(--purple);
  font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 6px 0 -1px var(--caramel), var(--shadow);
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.cta:hover:not(:disabled) { transform: translateY(-2px); }
.cta:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 -1px var(--caramel), var(--shadow-sm); }
.cta:disabled { cursor: not-allowed; filter: grayscale(.7) opacity(.65); box-shadow: var(--shadow-sm); }
.cta.is-loading .cta__label::after { content: "…"; }
.cta__pops { position: absolute; inset: 0; pointer-events: none; }
.cta__pops i {
  position: absolute; top: 8px; width: 18px; height: 18px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-14 -14 28 28'%3E%3Cg fill='%23FFF8E6' stroke='%23D9A54A' stroke-width='1.3'%3E%3Ccircle cx='-5.5' cy='-3' r='6.2'/%3E%3Ccircle cx='4' cy='-5.5' r='6.6'/%3E%3Ccircle cx='6.5' cy='4' r='5.8'/%3E%3Ccircle cx='-3' cy='6' r='5.8'/%3E%3Ccircle cx='0' cy='0' r='5.4'/%3E%3C/g%3E%3Ccircle cx='1.5' cy='1.5' r='2.8' fill='%23F3C35A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta__pops i:nth-child(1) { left: 14%; }
.cta__pops i:nth-child(2) { left: 50%; animation-delay: .12s !important; }
.cta__pops i:nth-child(3) { right: 14%; animation-delay: .24s !important; }
.cta:hover:not(:disabled) .cta__pops i,
.cta:focus-visible:not(:disabled) .cta__pops i { animation: cta-pop .9s ease-out infinite; }
@keyframes cta-pop {
  0% { transform: translateY(6px) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  60% { transform: translateY(-26px) scale(1) rotate(40deg); opacity: 1; }
  100% { transform: translateY(-8px) scale(.8) rotate(90deg); opacity: 0; }
}
.cta-hint { margin: 8px 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
.cta-hint:empty { display: none; }
.secure {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px;
  margin: 14px 0 0; color: var(--muted); font-size: .88rem;
}
.secure__label { display: inline-flex; align-items: center; gap: 6px; }
.secure__sep { width: 1px; height: 22px; background: rgba(54, 24, 107, .18); }
.secure__cards { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.secure__cards svg { display: block; width: 38px; height: 24px; }

/* ---------- Panneau fixe en bas (mobile) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 30px -14px rgba(54, 24, 107, .35);
}
.dock__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dock__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.dock__thumb {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--lavender)) 30%, var(--white));
  animation: thumb-in .35s cubic-bezier(.34, 1.56, .64, 1);
}
.dock__thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dock__thumb b {
  position: absolute; top: -4px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--purple); color: var(--cream);
  font-family: var(--font-fun); font-size: .72rem;
}
.dock__thumb.is-empty { background: var(--beige); border: 2px dashed rgba(54, 24, 107, .2); animation: none; }
@keyframes thumb-in { from { transform: scale(.4); } }
.dock__prices { margin: 0; text-align: right; line-height: 1.1; }
.dock__prices s { display: block; font-size: .8rem; color: var(--muted); }
.dock__prices strong { font-size: 1.3rem; font-weight: 800; color: var(--purple); font-variant-numeric: tabular-nums; }
.dock__cta {
  width: 100%; min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 8px 0 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--purple); color: var(--cream);
  font-weight: 700; font-size: 1.02rem;
  transition: background .25s, transform .15s;
}
.dock__cta:active:not(:disabled) { transform: scale(.98); }
.dock__arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--butter); color: var(--purple); font-size: 1.2rem;
}
.dock__cta:disabled { cursor: not-allowed; background: #E9E3DA; color: var(--muted); justify-content: center; padding: 0 16px; }
.dock__cta:disabled .dock__arrow { display: none; }

/* ---------- Barre de remise collée en haut (mobile) ---------- */
.mbar {
  position: sticky; top: 30px; z-index: 15;
  margin: 26px 0 14px;
  padding: 12px 16px 10px;
  border-radius: var(--radius);
  background: var(--purple); color: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(54, 24, 107, .6);
}
.mbar__top { display: flex; align-items: center; gap: 10px; }
.bucket--bar {
  width: 64px; height: 66px; flex: none;
  margin: -46px 0 -6px -2px; /* dépasse au-dessus de la barre */
  /* Ombre violette autour du seau : le popcorn ressort sur le fond beige */
  filter: drop-shadow(0 0 5px rgba(54, 24, 107, .55)) drop-shadow(0 8px 10px rgba(20, 8, 45, .35));
}
/* Dans la barre : fond du seau lavande pour que le popcorn crème ressorte */
.bucket--bar polygon[fill="#F3EEFD"] { fill: var(--lavender); }
.bucket--bar polygon[stroke] { stroke: var(--cream); }
.bucket--bar svg > rect:first-of-type { fill: var(--cream); }
.mbar__now { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.mbar__now strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.mbar__now span { font-size: .74rem; line-height: 1.15; opacity: .8; max-width: 9em; }
.mbar__next { margin: 0; max-width: 42%; font-size: .78rem; line-height: 1.2; font-weight: 600; text-align: right; }
.mbar.is-flash .mbar__next { color: var(--butter); animation: flash-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes flash-pop { 0% { transform: scale(.7); opacity: 0; } }
.mbar__track { position: relative; height: 8px; margin: 10px 0 0; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.mbar__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--butter), var(--caramel));
  transition: width .6s cubic-bezier(.34, 1.3, .64, 1);
}
.mbar__knob {
  position: absolute; top: 50%; left: 0;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--butter); opacity: 0;
  box-shadow: 0 0 0 4px rgba(247, 222, 149, .25), 0 0 14px 2px rgba(247, 222, 149, .7);
  transition: left .6s cubic-bezier(.34, 1.3, .64, 1), opacity .3s;
}
.mbar__knob.is-on { opacity: 1; }
.mbar__labels { position: relative; height: 16px; margin-top: 5px; }
.mbar__label {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: .7rem; opacity: .55; white-space: nowrap; transition: opacity .3s, color .3s;
}
.mbar__label.is-last { transform: translateX(-100%); }
.mbar__label.is-reached { opacity: 1; color: var(--butter); font-weight: 700; }

.fx svg.is-small { width: 16px; height: 16px; }
.secure--mobile { margin: 18px 0 0; }

/* ---------- Message (toast) ---------- */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 40;
  max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px;
  background: var(--purple); color: var(--cream);
  font-weight: 700; text-align: center;
  box-shadow: var(--shadow);
  transform: translate(-50%, -150%);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Calque d'animation ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.fx svg { position: absolute; left: 0; top: 0; width: 26px; height: 26px; will-change: transform; }

/* ---------- Grand écran (ordinateur) ---------- */
@media (min-width: 720px) {
  .product { grid-template-columns: 88px minmax(0, 1fr) auto; padding: 12px 16px 12px 12px; }
  .product__media { width: 88px; }
  .product__name { font-size: 1.3rem; }
  .product__price { font-size: 1.1rem; }
  .stepper button { width: 50px; height: 50px; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "intro summary" "products summary";
    grid-template-rows: auto 1fr; /* les saveurs collent sous le titre */
    align-items: start;
    gap: 20px 32px;
    padding-top: 28px;
  }
  .summary { position: sticky; top: 16px; }
  .summary__card { padding: 16px 16px 14px; }
  .bucket--big { width: 150px; }
  .summary__head h2 { font-size: 1.2rem; }
  .tiers { margin: 10px 0 2px; padding: 10px 4px; }
  .tier__gain { font-size: 1.25rem; }
  .lines li { padding: 5px 0; font-size: .9rem; }
  .totals { margin-bottom: 10px; }
  .totals__total dt, .totals__total dd { font-size: 1.15rem; }
  .cta { min-height: 52px; font-size: 1rem; }
  .secure { margin-top: 10px; font-size: .8rem; gap: 6px 8px; }
  .secure__cards svg { width: 32px; height: 20px; }
  .progress-msg { min-height: 0; margin: 4px 0 8px; }
  h1 { font-size: 3.5rem; }
  .lead { margin-top: 8px; }
  .dock, .mbar, .secure--mobile { display: none; }
}

/* ---------- Animations réduites si la personne l'a demandé ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cta__pops { display: none; }
}

/* ---------- Petit téléphone : le prix passe sous le nom ---------- */
@media (max-width: 479px) {
  .product {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "media info stepper" "media price stepper";
    column-gap: 12px; row-gap: 2px;
  }
  .product__media { grid-area: media; width: 64px; border-radius: 14px; }
  .product__info { grid-area: info; align-self: end; }
  .product__buy { display: contents; }
  .product__price { grid-area: price; align-self: start; font-size: .95rem; }
  .product .stepper { grid-area: stepper; }
  .product__name { white-space: normal; font-size: 1.05rem; }
  .product__sub { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product { column-gap: 10px; }
  .stepper { gap: 4px; }
  .stepper button { width: 40px; height: 40px; }
  .stepper button[data-action="remove"] { width: 30px; height: 30px; }
  .stepper output { min-width: 18px; }
  .products__note { display: none; }
}

/* ---------- Mobile : le récap complet laisse la place à la barre et au panneau ---------- */
@media (max-width: 979px) {
  .summary { display: none; }
  .layout { padding-bottom: 24px; }
}

/* ---------- Fenêtre « Ton pack » (s'ouvre depuis le bas) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 14, 60, .45);
  opacity: 0; transition: opacity .3s ease;
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; overflow-y: auto;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--white);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 40px -20px rgba(30, 14, 60, .5);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__handle { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 999px; background: rgba(54, 24, 107, .18); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.sheet__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sheet__close:hover { background: var(--lavender-soft); }

.sheet__lines { list-style: none; margin: 0 0 14px; padding: 0 0 14px; display: grid; gap: 8px; border-bottom: 1px solid rgba(54, 24, 107, .1); }
.sheet__line {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 8px; border-radius: 18px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 38%, var(--white)) 0%, var(--white) 80%);
}
.sheet__line img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--white); }
.sheet__line-info { flex: 1; min-width: 0; display: grid; }
.sheet__line-info strong { font-size: 1rem; font-weight: 800; }
.sheet__line-info span { font-size: .78rem; color: var(--muted); }
.sheet__stepper {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.sheet__stepper button {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer;
}
.sheet__stepper button:disabled { opacity: .3; }
.sheet__stepper output { min-width: 20px; text-align: center; font-weight: 700; }

.sheet__discount {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 18px;
  background: linear-gradient(90deg, var(--lavender-soft), var(--butter-soft));
}
.sheet__badge {
  flex: none; padding: 6px 12px; border-radius: 999px;
  background: var(--purple); color: var(--cream); font-weight: 800; font-size: .95rem;
}
.sheet__discount-text { margin: 0; flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sheet__discount-text strong { font-size: .98rem; color: var(--ink); }
.sheet__discount-text span { font-size: .8rem; color: var(--muted); }
.sheet__amount { font-size: 1.1rem; font-weight: 800; color: var(--purple); white-space: nowrap; }

.sheet__total { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.sheet__total p { margin: 0; display: grid; line-height: 1.2; }
.sheet__total strong { font-size: 1.1rem; }
.sheet__total span { font-size: .82rem; color: var(--muted); }
.sheet__total b { font-size: 1.9rem; font-weight: 800; color: var(--purple); letter-spacing: -.02em; line-height: 1; }
.sheet .secure { margin-top: 12px; }
.sheet__empty { padding: 18px 8px; text-align: center; color: var(--muted); }
@media (min-width: 980px) {
  .sheet__panel { left: 50%; right: auto; width: 480px; margin-left: -240px; }
}
