/* ==========================================================================
   BIG MOH'S — gabarit v4 repris de yumisu — couche finale (après bm-v3.css). Templates front réécrits (préfixe b4-), page produit et checkout
   restylés sur leur balisage d'origine. Une seule famille : Poppins (400/500/600/700).
   Bleu logo = actions ; rose poudré + crème + beige bois = ambiances ; fonds studio « crochet du Y » en signature.
   ========================================================================== */
:root {
  --b4-cream: #fbf5ec;
  --b4-cream-2: #f6ecdf;
  --b4-beige: #efdfcb;
  --b4-wood: #e6cba8;
  --b4-rose: #f6dcd4;
  --b4-rose-2: #fcefea;
  --b4-sky: #e0313f;
  --b4-sky-2: #f9e1de;
  --b4-sky-3: #fdf1ef;
  --b4-blue: #c00717;
  --b4-blue-d: #9e0512;
  --b4-ink: #1e1714;
  --b4-ink-2: #625b5d;
  --b4-ink-3: #8d8587;
  --b4-line: rgba(30, 23, 20, 0.09);
  --b4-line-2: rgba(30, 23, 20, 0.16);
  --b4-ok: #2f9e63;
  --b4-r1: 14px;
  --b4-r2: 20px;
  --b4-r3: 28px;
  --b4-s1: 0 1px 2px rgba(30, 23, 20, 0.05), 0 10px 26px -18px rgba(30, 23, 20, 0.42);
  --b4-s2: 0 2px 6px rgba(30, 23, 20, 0.06), 0 22px 44px -22px rgba(30, 23, 20, 0.5);
  --b4-sb: 0 12px 24px -12px rgba(192, 7, 23, 0.75);
  --b4-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --b4-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --b4-head-h: 64px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--b4-head-h) + 64px); }
html.b4-noscroll { overflow: hidden; }
body.b4 {
  margin: 0; padding: 0 !important;
  font-family: var(--b4-font) !important; font-size: 15px; line-height: 1.5; color: var(--b4-ink);
  background: var(--b4-cream) !important;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.b4 h1, body.b4 h2, body.b4 h3, body.b4 h4, body.b4 legend, body.b4 button, body.b4 input, body.b4 select, body.b4 textarea {
  font-family: var(--b4-font) !important; font-style: normal; text-transform: none; letter-spacing: normal;
}
body.b4 .main { padding: 0 !important; margin: 0 !important; min-height: 50vh; }
body.b4 a { color: inherit; }
body.b4 :focus-visible { outline: 3px solid rgba(192, 7, 23, 0.45); outline-offset: 2px; border-radius: 10px; }
.b4-nowrap { white-space: nowrap; }
.b4-kicker { margin: 0 0 0.35rem; color: var(--b4-blue); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.b4-h2 { margin: 0; font-size: clamp(1.4rem, 5.8vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--b4-ink); }
.b4-h2 span { color: var(--b4-blue); }
.b4-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--b4-blue) !important; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.b4-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--b4-ease); }
.b4-link:hover svg { transform: translateX(3px); }
.b4-linkbtn { padding: 0; border: 0; background: none; color: var(--b4-blue); font: 600 0.88rem var(--b4-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.b4-linkbtn--muted { color: var(--b4-ink-3); font-weight: 500; }

/* ---------- Boutons ---------- */
.b4-btn, body.b4 .b4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 54px; padding: 0 1.7rem; border: 0; border-radius: 999px;
  background: var(--b4-blue); color: #fff !important; box-shadow: var(--b4-sb);
  font: 600 1rem/1 var(--b4-font); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.22s var(--b4-ease), background 0.2s, box-shadow 0.22s;
}
.b4-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--b4-ease); }
.b4-btn:hover { background: var(--b4-blue-d); transform: translateY(-1px); }
.b4-btn:hover svg { transform: translateX(3px); }
.b4-btn:active { transform: scale(0.98); }
.b4-btn:disabled { opacity: 0.6; cursor: progress; }
.b4-btn--block { display: flex; width: 100%; }
.b4-btn--hero { min-height: 58px; padding: 0 2.2rem; font-size: 1.06rem; }

.b4-add {
  position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--b4-blue) !important; color: #fff !important; box-shadow: 0 8px 16px -8px rgba(192, 7, 23, 0.85); cursor: pointer;
  transition: transform 0.22s var(--b4-ease), background 0.2s;
}
.b4-add svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.b4-add:hover { background: var(--b4-blue-d) !important; transform: scale(1.07); }
.b4-add:active { transform: scale(0.9); }
.b4-add.is-added { background: var(--b4-ok) !important; animation: b4-pop 0.4s var(--b4-ease); }
.b4-add.is-added svg { display: none; }
.b4-add.is-added::after { content: "✓"; font: 700 1.05rem/1 var(--b4-font); }
.add-form { margin: 0; }

/* ---------- Pastille d'état ---------- */
.b4-status {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.36rem 0.75rem 0.36rem 0.6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); box-shadow: 0 0 0 1px var(--b4-line); color: var(--b4-ink-2);
  font-size: 0.8rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.b4-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #c7b9ad; flex: none; }
.b4-status.is-open .b4-status__dot { background: var(--b4-ok); animation: b4-pulse 2.4s infinite; }
.b4-status--header { display: none; }

/* ---------- En-tête ---------- */
.b4-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 245, 236, 0.86); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  transition: box-shadow 0.25s;
}
.b4-header.is-scrolled { box-shadow: 0 1px 0 var(--b4-line), 0 8px 20px -18px rgba(30, 23, 20, 0.5); }
.b4-header__inner { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 0.6rem; width: min(1180px, 100%); height: var(--b4-head-h); margin: 0 auto; padding: 0 14px; }
.b4-header__logo { justify-self: center; display: block; line-height: 0; }
.b4-header__logo img { width: 104px; height: auto; }
.b4-header__nav { display: none; }
.b4-header__right { display: flex; justify-content: flex-end; align-items: center; gap: 0.6rem; }
.b4-iconbtn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--b4-line); color: var(--b4-ink); cursor: pointer; text-decoration: none;
  transition: transform 0.2s var(--b4-ease), box-shadow 0.2s;
}
.b4-iconbtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.b4-iconbtn:hover { box-shadow: 0 0 0 1px var(--b4-line-2), var(--b4-s1); }
body.b4 .cart-count-badge {
  position: absolute; top: -3px; right: -3px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--b4-blue) !important; color: #fff !important; box-shadow: 0 0 0 2px var(--b4-cream); font: 600 0.7rem/1 var(--b4-font);
}

/* Tiroir de navigation */
body.b4 .nav-overlay { background: rgba(30, 23, 20, 0.35) !important; backdrop-filter: blur(3px); }
body.b4 .nav-drawer { background: var(--b4-cream) !important; color: var(--b4-ink) !important; border: 0 !important; }
body.b4 .nav-drawer__title { font: 700 1.3rem var(--b4-font) !important; color: var(--b4-sky) !important; }
body.b4 .nav-item { font: 500 1.08rem var(--b4-font) !important; color: var(--b4-ink) !important; border-color: var(--b4-line) !important; text-transform: none !important; }
body.b4 .nav-item span { color: var(--b4-ink-3) !important; font-size: 0.8rem !important; }
body.b4 .nav-item--highlight { background: var(--b4-blue) !important; color: #fff !important; box-shadow: var(--b4-sb) !important; }
body.b4 .nav-item--highlight span { color: rgba(255, 255, 255, 0.7) !important; }
body.b4 .nav-drawer__brand, body.b4 .nav-drawer__sub { color: var(--b4-ink-2) !important; font-family: var(--b4-font) !important; }

/* Messages flash */
body.b4 .flash-messages { width: min(720px, calc(100% - 32px)); margin: 10px auto 0; padding: 0; }
body.b4 .flash { padding: 0.8rem 1rem; border: 0 !important; border-radius: var(--b4-r1) !important; background: #fff !important; color: var(--b4-ink) !important; box-shadow: var(--b4-s1); font-size: 0.9rem; }
body.b4 .flash-warning, body.b4 .flash-error { background: var(--b4-rose-2) !important; }
body.b4 .flash-success { background: #eaf6ef !important; }

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
.b4-hero { position: relative; overflow: hidden; background: url("/static/img/bm/bg-creme-sm.webp") center top / cover no-repeat, var(--b4-beige); }
.b4-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(180deg, rgba(251, 245, 236, 0), var(--b4-cream)); pointer-events: none; }
.b4-hero__inner { position: relative; z-index: 1; display: grid; grid-template-areas: "top" "art" "act"; width: min(1180px, 100%); margin: 0 auto; padding: 14px 16px 26px; }
.b4-hero__top { grid-area: top; }
.b4-hero__title { margin: 0.7rem 0 0; font-size: clamp(1.85rem, 8.4vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; color: var(--b4-ink); }
.b4-hero__title span { color: var(--b4-sky); }
.b4-hero__art { grid-area: art; margin: -4px -16px 0; }
.b4-hero__art img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 50% 78%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 86%, transparent 100%);
}
.b4-hero__act { grid-area: act; margin-top: -48px; position: relative; text-align: center; }
.b4-hero__lead { max-width: 30ch; margin: 0 auto 0.9rem; color: var(--b4-ink-2); font-size: 0.95rem; }
.b4-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; margin: 0.95rem 0 0; padding: 0; list-style: none; color: var(--b4-ink-2); font-size: 0.8rem; font-weight: 500; }
.b4-trust li { display: inline-flex; align-items: center; gap: 0.3rem; }
.b4-trust svg { width: 16px; height: 16px; fill: none; stroke: var(--b4-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.b4-home-sec { position: relative; width: min(1180px, 100%); margin: 0 auto; padding: 1.8rem 16px; }
.b4-home-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.b4-home-cats .b4-h2 { margin-bottom: 1rem; }
.b4-bubbles { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 12px; margin: 0 -16px; padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b4-bubbles::-webkit-scrollbar { display: none; }
.b4-bubble { scroll-snap-align: start; display: grid; justify-items: center; gap: 0.1rem; color: var(--b4-ink) !important; text-align: center; text-decoration: none; }
.b4-bubble__ph { width: 84px; height: 84px; margin-bottom: 0.4rem; border-radius: 50%; overflow: hidden; background: var(--b4-sky-2); box-shadow: 0 0 0 3px #fff, 0 10px 20px -12px rgba(30, 23, 20, 0.5); transition: transform 0.3s var(--b4-ease); }
.b4-bubble__ph picture, .b4-bubble__ph img { display: block; width: 100%; height: 100%; }
.b4-bubble__ph img { object-fit: cover; transform: scale(1.5); transform-origin: 50% 56%; transition: transform 0.4s var(--b4-ease); }
.b4-bubble strong { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.b4-bubble small { color: var(--b4-ink-3); font-size: 0.74rem; }
.b4-bubble:hover .b4-bubble__ph { transform: translateY(-3px); }
.b4-bubble:hover .b4-bubble__ph img { transform: scale(1.62); }

.b4-home-best { padding-top: 2.4rem; padding-bottom: 2.6rem; isolation: isolate; }
.b4-home-best__studio { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; background: url("/static/img/bm/bg-rouge-sm.webp") center 80% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.b4-home-info { padding-bottom: 6.5rem; }
.b4-infocard { position: relative; overflow: hidden; padding: 1.4rem 1.3rem; border-radius: var(--b4-r3); background: #fff; box-shadow: var(--b4-s1); }
.b4-infocard__mono { position: absolute; right: -18px; bottom: -34px; width: 118px; height: auto; opacity: 0.14; pointer-events: none; }
.b4-infocard__list { position: relative; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.b4-infocard__list div { display: grid; gap: 0.1rem; }
.b4-infocard__list dt { color: var(--b4-ink-3); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.b4-infocard__list dd { margin: 0; color: var(--b4-ink); font-size: 0.95rem; }
.b4-infocard__list a { color: var(--b4-blue) !important; font-weight: 600; }

/* Barre collante de l'accueil */
body.b4 .b4-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(251, 245, 236, 0), rgba(251, 245, 236, 0.95) 45%) !important; border: 0 !important; box-shadow: none !important; transform: translateY(110%); transition: transform 0.35s var(--b4-ease); pointer-events: none; }
body.b4 .b4-sticky.is-visible { transform: none; pointer-events: auto; }

/* Bloc SEO discret + FAQ repliée */
.b4-seo { width: min(1180px, 100%); margin: 0 auto; padding: 0.5rem 16px 1.6rem; color: var(--b4-ink-3); font-size: 0.8rem; line-height: 1.55; }
.b4-seo h2 { margin: 0 0 0.3rem; color: var(--b4-ink-2); font-size: 0.86rem; font-weight: 600; }
.b4-seo p { margin: 0 0 0.5rem; max-width: 80ch; }
.b4-seo a { color: var(--b4-ink-2) !important; }
.b4-seo__faq summary { cursor: pointer; color: var(--b4-ink-2); font-weight: 600; }
.b4-seo__faq h3 { margin: 0.7rem 0 0.1rem; color: var(--b4-ink-2); font-size: 0.82rem; font-weight: 600; }

/* ==========================================================================
   CARTE
   ========================================================================== */
.b4-carte { width: min(1180px, 100%); margin: 0 auto; padding-bottom: 7rem; }
.b4-carte__head { position: relative; padding: 18px 16px 10px; overflow: hidden; }
.b4-carte__mono { position: absolute; right: 14px; top: 10px; width: 62px; height: auto; opacity: 0.95; }
.b4-carte__title { margin: 0; font-size: clamp(1.6rem, 7vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.b4-carte__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.b4-modechip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.36rem 0.5rem 0.36rem 0.7rem; border: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px var(--b4-line); color: var(--b4-ink); font: 500 0.8rem/1.2 var(--b4-font); cursor: pointer;
}
.b4-modechip svg { width: 16px; height: 16px; fill: none; stroke: var(--b4-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.b4-modechip__edit { padding: 0.16rem 0.5rem; border-radius: 999px; background: var(--b4-sky-3); color: var(--b4-blue); font-weight: 600; font-size: 0.72rem; }

.b4-catnav { position: sticky; top: var(--b4-head-h); z-index: 80; margin: 0 0 4px; background: rgba(251, 245, 236, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.b4-catnav__track { display: flex; gap: 4px; padding: 8px 12px 10px; overflow-x: auto; scrollbar-width: none; }
.b4-catnav__track::-webkit-scrollbar { display: none; }
.b4-catnav a { flex: none; padding: 0.5rem 0.95rem; border-radius: 999px; color: var(--b4-ink-2) !important; font-size: 0.86rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.b4-catnav a:hover { color: var(--b4-ink) !important; }
.b4-catnav a.is-on { background: #fff; color: var(--b4-blue) !important; font-weight: 600; box-shadow: 0 0 0 1px rgba(192, 7, 23, 0.18), 0 6px 14px -10px rgba(192, 7, 23, 0.7); }

.b4-sec { padding: 0 12px; margin-top: 18px; scroll-margin-top: calc(var(--b4-head-h) + 56px); }
.b4-band {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem;
  min-height: 112px; margin-bottom: 12px; padding: 18px 18px 16px; border-radius: 26px; overflow: hidden;
  background-size: cover; background-position: center 82%; background-repeat: no-repeat;
}
.b4-band--rouge { background-image: url("/static/img/bm/bg-rouge-sm.webp"); background-color: var(--b4-rose); }
.b4-band--kraft { background-image: url("/static/img/bm/bg-kraft-sm.webp"); background-color: var(--b4-sky-2); }
.b4-band--creme { background-image: url("/static/img/bm/bg-creme-sm.webp"); background-color: var(--b4-beige); }
.b4-band h2 { margin: 0; font-size: clamp(1.45rem, 6.4vw, 2.2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--b4-ink); }
.b4-band p { margin: 0.25rem 0 0; color: var(--b4-ink-2); font-size: 0.84rem; }
.b4-band__from { flex: none; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: var(--b4-ink-2); font-size: 0.76rem; white-space: nowrap; }
.b4-band__from strong { color: var(--b4-ink); font-weight: 600; }

.b4-grid { display: grid; gap: 12px; }
.b4-grid--cups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b4-grid--plates { grid-template-columns: 1fr; }

body.b4 .b4-item { position: relative; display: flex; background: #fff; border-radius: 22px; box-shadow: var(--b4-s1); transition: transform 0.3s var(--b4-ease), box-shadow 0.3s var(--b4-ease); }
body.b4 .b4-item:hover { transform: translateY(-3px); box-shadow: var(--b4-s2); }
.b4-item__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.b4-item__ph { position: relative; overflow: hidden; background: var(--b4-sky-2); }
.b4-item__ph picture, .b4-item__ph img { display: block; width: 100%; height: 100%; }
.b4-item__ph img { object-fit: cover; transition: transform 0.5s var(--b4-ease); }
body.b4 .b4-item:hover .b4-item__ph img { transform: scale(1.06); }
.b4-item__tag { position: absolute; left: 8px; top: 8px; padding: 0.22rem 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--b4-ink); font-size: 0.68rem; font-weight: 600; }
.b4-item__body { display: flex; flex-direction: column; min-width: 0; }
.b4-item__name { margin: 0; color: var(--b4-ink) !important; font-size: 0.92rem !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -0.01em; }
.b4-item__desc { margin: 0.25rem 0 0; color: var(--b4-ink-2); font-size: 0.8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b4-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.55rem; }
.b4-price { color: var(--b4-ink) !important; font-size: 0.98rem !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b4-price small { color: var(--b4-ink-3); font-size: 0.7rem; font-weight: 500; }

/* Gobelets / pots : photo portrait */
.b4-item--cups { flex-direction: column; padding: 6px; }
.b4-item--cups .b4-item__ph { aspect-ratio: 4 / 4.6; border-radius: 17px; }
.b4-item--cups .b4-item__ph img { transform: scale(1.12); transform-origin: 50% 60%; }
body.b4 .b4-item--cups:hover .b4-item__ph img { transform: scale(1.18); }
.b4-item--cups .b4-item__body { flex: 1; padding: 0.6rem 0.45rem 0.25rem; }

/* Crêpes / gaufres : carte horizontale */
.b4-item--plates { align-items: stretch; gap: 12px; padding: 7px; }
.b4-item--plates .b4-item__ph { flex: none; width: 128px; aspect-ratio: 1; border-radius: 16px; }
.b4-item--plates .b4-item__ph img { transform: scale(1.32); transform-origin: 50% 58%; }
body.b4 .b4-item--plates:hover .b4-item__ph img { transform: scale(1.4); }
.b4-item--plates .b4-item__body { flex: 1; padding: 0.35rem 0.35rem 0.1rem 0; }
.b4-item--plates .b4-item__name { font-size: 0.98rem !important; }

/* Panier flottant */
body.b4 .b4-cartbar, body.b4 .bm-cartbar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(520px, calc(100% - 24px)); min-height: 58px; padding: 0 0.55rem 0 1.1rem;
  border-radius: 999px; background: var(--b4-blue) !important; color: #fff !important; box-shadow: 0 18px 38px -14px rgba(192, 7, 23, 0.85) !important;
  font: 600 0.98rem/1 var(--b4-font) !important; letter-spacing: 0 !important; text-decoration: none; text-transform: none !important;
}
body.b4 .bm-cartbar[hidden] { display: none !important; }
.b4-cartbar__l { display: inline-flex; align-items: center; }
body.b4 .bm-cartbar__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 0.55rem; border-radius: 999px; background: #fff; color: var(--b4-blue); font-size: 0.82rem; }
body.b4 .bm-cartbar__total { padding: 0.6rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18) !important; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   FEUILLE « À EMPORTER / LIVRAISON »
   ========================================================================== */
.b4-sheet { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.b4-sheet[hidden] { display: none; }
.b4-sheet__backdrop { position: absolute; inset: 0; background: rgba(30, 23, 20, 0.38); opacity: 0; transition: opacity 0.25s; backdrop-filter: blur(2px); }
.b4-sheet__panel {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto; padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: var(--b4-cream); box-shadow: 0 -20px 50px -20px rgba(30, 23, 20, 0.45);
  transform: translateY(100%); transition: transform 0.32s var(--b4-ease);
}
.b4-sheet__panel::before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--b4-line-2); }
.b4-sheet.is-open .b4-sheet__backdrop { opacity: 1; }
.b4-sheet.is-open .b4-sheet__panel { transform: none; }
.b4-sheet__close { position: absolute; z-index: 3; right: 12px; top: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--b4-line); cursor: pointer; }
.b4-sheet__close svg { width: 18px; height: 18px; fill: none; stroke: var(--b4-ink); stroke-width: 2; stroke-linecap: round; }
.b4-sheet__title { margin: 0 0 1rem; padding-right: 40px; font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.b4-modes { display: grid; gap: 10px; margin-bottom: 14px; }
.b4-mode {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--b4-r2);
  background: #fff; box-shadow: 0 0 0 1.5px var(--b4-line); color: var(--b4-ink); text-align: left; cursor: pointer; transition: box-shadow 0.2s, background 0.2s;
}
.b4-mode__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--b4-sky-3); }
.b4-mode__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--b4-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b4-mode__txt { flex: 1; display: grid; gap: 0.1rem; }
.b4-mode__txt strong { font-size: 1rem; font-weight: 600; }
.b4-mode__txt small { color: var(--b4-ink-2); font-size: 0.8rem; }
.b4-mode__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--b4-line-2); transition: background 0.2s, box-shadow 0.2s; }
.b4-mode.is-on { box-shadow: 0 0 0 2px var(--b4-blue); background: #fff; }
.b4-mode.is-on .b4-mode__tick { background: var(--b4-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.b4-mode.is-off { opacity: 0.5; cursor: not-allowed; }
.b4-address { margin: 0 0 14px; }
.b4-address[hidden] { display: none; }
.b4-address label { display: block; margin: 0 0 0.35rem; font-size: 0.85rem; font-weight: 600; }
.b4-address__field { position: relative; }
.b4-address input { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--b4-r1); background: #fff; box-shadow: 0 0 0 1.5px var(--b4-line-2); color: var(--b4-ink); font: 500 16px var(--b4-font); }
.b4-address input:focus { outline: 0; box-shadow: 0 0 0 2px var(--b4-blue); }
.b4-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 2; display: none; overflow: hidden; border-radius: var(--b4-r1); background: #fff; box-shadow: var(--b4-s2); }
.b4-suggest.is-on { display: block; }
.b4-suggest__item { display: grid; width: 100%; padding: 0.65rem 0.9rem; border: 0; border-bottom: 1px solid var(--b4-line); background: #fff; text-align: left; cursor: pointer; font-family: var(--b4-font); }
.b4-suggest__item:hover { background: var(--b4-sky-3); }
.b4-suggest__item strong { font-size: 0.9rem; font-weight: 500; color: var(--b4-ink); }
.b4-suggest__item small { font-size: 0.74rem; color: var(--b4-ink-3); }
.b4-address__msg { margin: 0.55rem 0 0; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--b4-sky-3); color: var(--b4-ink-2); font-size: 0.84rem; }
.b4-address__msg[data-kind="ok"] { background: #eaf6ef; color: #23704a; }
.b4-address__msg[data-kind="err"] { background: var(--b4-rose-2); color: #8a0410; }

/* ==========================================================================
   PAGES PANIER / CHECKOUT (cadre commun)
   ========================================================================== */
.b4-page { width: min(1080px, 100%); margin: 0 auto; padding: 18px 16px 2.5rem; }
.b4-page__head { margin-bottom: 1rem; }
.b4-page__title { margin: 0; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.b4-card { position: relative; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--b4-s1); }
.b4-card + .b4-card { margin-top: 12px; }
.b4-card__title { margin: 0 0 0.8rem; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.b4-cart__layout { display: grid; gap: 14px; }
.b4-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b4-seg__form { margin: 0; display: contents; }
.b4-seg__opt {
  display: flex; align-items: center; gap: 0.55rem; width: 100%; padding: 11px 12px; border: 0; border-radius: 16px; background: var(--b4-cream);
  box-shadow: 0 0 0 1.5px transparent; color: var(--b4-ink); text-align: left; cursor: pointer; font-family: var(--b4-font); transition: box-shadow 0.2s, background 0.2s;
}
.b4-seg__opt svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--b4-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.b4-seg__opt span { display: grid; min-width: 0; }
.b4-seg__opt strong { font-size: 0.9rem; font-weight: 600; }
.b4-seg__opt small { overflow: hidden; color: var(--b4-ink-2); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.b4-seg__opt.is-on { background: var(--b4-sky-3); box-shadow: 0 0 0 2px var(--b4-blue); }
.b4-cart__modeinfo { margin: 0.75rem 0 0; color: var(--b4-ink-2); font-size: 0.82rem; }
.b4-line { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--b4-line); }
.b4-line:first-child { padding-top: 0; }
.b4-line__ph { width: 74px; height: 74px; border-radius: 16px; overflow: hidden; background: var(--b4-sky-2); }
.b4-line__ph picture, .b4-line__ph img { display: block; width: 100%; height: 100%; }
.b4-line__ph img { object-fit: cover; transform: scale(1.4); transform-origin: 50% 58%; }
.b4-line__top { display: flex; justify-content: space-between; gap: 0.6rem; }
.b4-line__top h3 { margin: 0; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.b4-line__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b4-line__opts { display: flex; flex-wrap: wrap; gap: 4px; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.b4-line__opts li { padding: 0.18rem 0.55rem; border-radius: 999px; background: var(--b4-cream-2); color: var(--b4-ink-2); font-size: 0.74rem; }
.b4-line__opts em { color: var(--b4-blue); font-style: normal; font-weight: 600; }
.b4-line__note { margin: 0.35rem 0 0; color: var(--b4-ink-3); font-size: 0.78rem; }
.b4-line__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.b4-line__actions form { margin: 0; }
.b4-qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--b4-cream-2); }
.b4-qty button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--b4-ink); font: 500 1.1rem/1 var(--b4-font); cursor: pointer; box-shadow: 0 1px 2px rgba(30, 23, 20, 0.1); }
.b4-qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.b4-cart__more { margin-top: 0.9rem; }
.b4-summary { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.6), var(--b4-s2); }
.b4-summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.18rem 0; color: var(--b4-ink-2); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.b4-summary__row--muted span:last-child { color: var(--b4-ink-3); font-size: 0.8rem; }
.b4-summary__total { margin: 0.35rem 0 0.8rem; padding-top: 0.55rem; border-top: 1px dashed var(--b4-line-2); color: var(--b4-ink); font-size: 1.08rem; font-weight: 700; }
.b4-summary__warn { margin: 0 0 0.7rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--b4-rose-2); color: #8a0410; font-size: 0.82rem; }
.b4-summary__safe { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0.65rem 0 0; color: var(--b4-ink-3); font-size: 0.76rem; }
.b4-summary__safe svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.b4-empty { display: grid; justify-items: center; padding: 2.4rem 1.4rem; text-align: center; }
.b4-empty img { width: 64px; height: auto; margin-bottom: 0.8rem; }
.b4-empty h2 { margin: 0 0 0.3rem; font-size: 1.2rem; font-weight: 700; }
.b4-empty p { max-width: 34ch; margin: 0 0 1.2rem; color: var(--b4-ink-2); }

/* Checkout : balisage d'origine, présentation v4 */
body.b4.page-checkout .checkout-page { width: min(720px, 100%) !important; max-width: none !important; margin: 0 auto !important; padding: 18px 16px 2.5rem !important; }
body.b4.page-checkout .page-intro { margin: 0 0 1rem !important; padding: 0 !important; text-align: left !important; background: none !important; }
body.b4.page-checkout .page-intro h1 { margin: 0 !important; font-size: clamp(1.7rem, 7vw, 2.4rem) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; color: var(--b4-ink) !important; line-height: 1.1 !important; }
body.b4.page-checkout .page-intro p { color: var(--b4-ink-2) !important; font-size: 0.92rem !important; margin: 0.3rem 0 0 !important; }
body.b4.page-checkout .page-eyebrow { margin: 0 0 0.35rem !important; color: var(--b4-blue) !important; font: 600 0.72rem var(--b4-font) !important; letter-spacing: 0.22em !important; text-transform: uppercase !important; }
body.b4.page-checkout .checkout-content, body.b4.page-checkout .checkout-form { display: block !important; max-width: none !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.b4.page-checkout .form-section { margin: 0 0 12px !important; padding: 18px !important; border: 0 !important; border-radius: 24px !important; background: #fff !important; box-shadow: var(--b4-s1) !important; }
body.b4.page-checkout .form-section h2 { margin: 0 0 0.9rem !important; color: var(--b4-ink) !important; font-size: 1.02rem !important; font-weight: 600 !important; letter-spacing: -0.01em !important; text-transform: none !important; }
body.b4.page-checkout .form-group { margin: 0 0 0.8rem !important; }
body.b4.page-checkout .form-group label { display: block; margin: 0 0 0.3rem !important; color: var(--b4-ink) !important; font: 500 0.84rem var(--b4-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.b4.page-checkout input[type=text], body.b4.page-checkout input[type=tel], body.b4.page-checkout input[type=email], body.b4.page-checkout textarea, body.b4.page-checkout select {
  width: 100%; min-height: 50px; padding: 0 14px !important; border: 0 !important; border-radius: var(--b4-r1) !important; background: var(--b4-cream) !important;
  box-shadow: inset 0 0 0 1.5px var(--b4-line) !important; color: var(--b4-ink) !important; font: 500 16px var(--b4-font) !important;
}
body.b4.page-checkout textarea { min-height: 84px; padding: 12px 14px !important; }
body.b4.page-checkout input:focus, body.b4.page-checkout textarea:focus, body.b4.page-checkout select:focus { outline: 0 !important; box-shadow: inset 0 0 0 2px var(--b4-blue) !important; background: #fff !important; }
body.b4.page-checkout .order-summary { background: none !important; border: 0 !important; padding: 0 !important; }
body.b4.page-checkout .summary-item, body.b4.page-checkout .summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0 !important; border: 0 !important; color: var(--b4-ink-2) !important; font-size: 0.9rem !important; font-variant-numeric: tabular-nums; }
body.b4.page-checkout .summary-item span:first-child { color: var(--b4-ink) !important; }
body.b4.page-checkout .summary-row.total { margin-top: 0.4rem; padding-top: 0.6rem !important; border-top: 1px dashed var(--b4-line-2) !important; color: var(--b4-ink) !important; font-size: 1.1rem !important; font-weight: 700 !important; }
body.b4.page-checkout #payButton {
  position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex !important; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100% !important; min-height: 60px !important; margin: 6px 0 0 !important; border: 0 !important; border-radius: 999px !important;
  background: var(--b4-blue) !important; color: #fff !important; box-shadow: 0 18px 34px -14px rgba(192, 7, 23, 0.9) !important;
  font: 600 1.06rem/1 var(--b4-font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.b4.page-checkout #payButton:hover { background: var(--b4-blue-d) !important; }
.b4-co-mode { display: flex; align-items: center; gap: 0.75rem; }
.b4-co-mode__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--b4-sky-3); }
.b4-co-mode__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--b4-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b4-co-mode div { flex: 1; display: grid; }
.b4-co-mode strong { font-size: 0.95rem; font-weight: 600; }
.b4-co-mode small { color: var(--b4-ink-2); font-size: 0.8rem; }
.b4-co-safe { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0.7rem 0 0; color: var(--b4-ink-3); font-size: 0.78rem; }
.b4-co-safe svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
body.b4.page-checkout .delivery-providers, body.b4.page-checkout .provider-option { border-radius: 16px !important; }

/* ==========================================================================
   FICHE PRODUIT (balisage d'origine, JS de l'assistant inchangé)
   ========================================================================== */
body.b4.page-product .product-page { width: min(1080px, 100%) !important; max-width: none !important; margin: 0 auto !important; padding: 10px 16px 2rem !important; }
body.b4.page-product .product-nav { margin: 0 0 10px !important; padding: 0 !important; }
body.b4.page-product .back-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 38px; padding: 0 0.9rem !important; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--b4-line); color: var(--b4-ink) !important; font: 500 0.84rem var(--b4-font) !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none; }
body.b4.page-product .product-detail { display: grid !important; gap: 18px !important; grid-template-columns: 1fr !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.b4.page-product .product-media { position: relative !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.b4.page-product .product-media figure { margin: 0 !important; aspect-ratio: 4 / 3.3 !important; height: auto !important; border-radius: 26px !important; overflow: hidden !important; background: var(--b4-sky-2) !important; box-shadow: var(--b4-s2) !important; }
body.b4.page-product .product-media picture, body.b4.page-product .product-media img { display: block; width: 100% !important; height: 100% !important; }
body.b4.page-product .product-detail-image { object-fit: cover !important; transform: scale(1.12); transform-origin: 50% 60%; border-radius: 0 !important; max-height: none !important; }
body.b4.page-product .product-content { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.b4.page-product .product-header { margin: 0 0 0.4rem !important; padding: 0 !important; border: 0 !important; }
body.b4.page-product .product-eyebrow { margin: 0 0 0.3rem !important; color: var(--b4-blue) !important; font: 600 0.72rem var(--b4-font) !important; letter-spacing: 0.22em !important; text-transform: uppercase !important; }
body.b4.page-product .product-title { margin: 0 !important; color: var(--b4-ink) !important; font-size: clamp(1.6rem, 7vw, 2.5rem) !important; font-weight: 700 !important; line-height: 1.1 !important; letter-spacing: -0.03em !important; text-transform: none !important; }
body.b4.page-product .price.large { margin: 0.35rem 0 0 !important; color: var(--b4-ink) !important; font: 600 1.2rem var(--b4-font) !important; }
body.b4.page-product .description { margin: 0.5rem 0 0.9rem !important; padding: 0 0 1rem !important; border: 0 !important; border-bottom: 1px solid var(--b4-line) !important; }
body.b4.page-product .description p { margin: 0 !important; color: var(--b4-ink-2) !important; font-size: 0.95rem !important; line-height: 1.55 !important; }
body.b4.page-product .wiz-progress { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.9rem !important; }
body.b4.page-product .wiz-progress-label { flex: none; color: var(--b4-ink-3) !important; font: 500 0.78rem var(--b4-font) !important; letter-spacing: 0 !important; text-transform: none !important; }
body.b4.page-product .wiz-progress-bar { flex: 1; height: 5px !important; border-radius: 5px !important; background: var(--b4-sky-2) !important; overflow: hidden; }
body.b4.page-product #wiz-progress-fill { display: block; height: 100%; border-radius: 5px; background: var(--b4-blue) !important; transition: width 0.35s var(--b4-ease); }
body.b4.page-product .step-fieldset { margin: 0 0 0.6rem !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.b4.page-product .step-legend { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0.45rem !important; width: 100%; margin: 0 0 0.85rem !important; padding: 0 !important; border: 0 !important; }
body.b4.page-product .step-number { display: none !important; }
body.b4.page-product .step-name { color: var(--b4-ink) !important; font: 700 1.15rem var(--b4-font) !important; letter-spacing: -0.015em !important; text-transform: none !important; }
body.b4.page-product .badge { padding: 0.2rem 0.55rem !important; border: 0 !important; border-radius: 999px !important; font: 600 0.68rem var(--b4-font) !important; letter-spacing: 0.02em !important; text-transform: none !important; }
body.b4.page-product .badge-required { background: var(--b4-rose) !important; color: #7c3446 !important; }
body.b4.page-product .badge-optional { background: var(--b4-cream-2) !important; color: var(--b4-ink-2) !important; }
body.b4.page-product .step-instruction, body.b4.page-product .step-note { width: 100%; margin: 0 !important; color: var(--b4-ink-3) !important; font: 400 0.8rem var(--b4-font) !important; }
body.b4.page-product .choices-grid { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; grid-template-columns: none !important; }
body.b4.page-product label.choice-card {
  flex: 1 1 calc(33.333% - 8px); min-width: 0; min-height: 50px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 16px !important;
  background: #fff !important; box-shadow: 0 0 0 1.5px var(--b4-line) !important; cursor: pointer; transition: box-shadow 0.18s, background 0.18s, transform 0.12s;
}
body.b4.page-product label.choice-card:hover { box-shadow: 0 0 0 1.5px rgba(192, 7, 23, 0.45) !important; }
body.b4.page-product label.choice-card:active { transform: scale(0.97); }
body.b4.page-product .choice-content-wrapper { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center !important; gap: 0.1rem !important; height: 100%; min-height: 50px; padding: 0.55rem 0.4rem !important; text-align: center; }
body.b4.page-product .choice-details { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; }
body.b4.page-product .choice-name { color: var(--b4-ink) !important; font: 500 0.88rem/1.2 var(--b4-font) !important; letter-spacing: 0 !important; text-transform: none !important; }
body.b4.page-product .choice-price { color: var(--b4-blue) !important; font: 600 0.74rem var(--b4-font) !important; }
body.b4.page-product .choice-indicator { display: none !important; }
body.b4.page-product label.choice-card:has(input:checked) { background: var(--b4-blue) !important; box-shadow: 0 10px 20px -12px rgba(192, 7, 23, 0.9) !important; }
body.b4.page-product label.choice-card:has(input:checked) .choice-name, body.b4.page-product label.choice-card:has(input:checked) .choice-price { color: #fff !important; }
body.b4.page-product label.choice-card:has(input:focus-visible) { outline: 3px solid rgba(192, 7, 23, 0.4); outline-offset: 2px; }
body.b4.page-product .product-note textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 0 !important; border-radius: var(--b4-r1) !important; background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--b4-line) !important; font: 400 16px var(--b4-font) !important; color: var(--b4-ink) !important; }
body.b4.page-product .wiz-error { margin: 0.6rem 0 0 !important; padding: 0.5rem 0.8rem !important; border-radius: 12px !important; background: var(--b4-rose-2) !important; color: #8a0410 !important; font: 500 0.84rem var(--b4-font) !important; }
body.b4.page-product .wiz-nav {
  position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: flex !important; align-items: center; gap: 8px !important;
  margin: 1rem 0 0 !important; padding: 8px !important; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--b4-s2); backdrop-filter: blur(8px);
}
body.b4.page-product .wiz-nav[hidden], body.b4.page-product .wiz-btn[hidden] { display: none !important; }
body.b4.page-product .wiz-btn { min-height: 48px !important; border-radius: 999px !important; font: 600 0.95rem var(--b4-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.b4.page-product #wiz-next { flex: 1; border: 0 !important; background: var(--b4-blue) !important; color: #fff !important; box-shadow: none !important; }
body.b4.page-product #wiz-prev { flex: none; padding: 0 1rem !important; border: 0 !important; background: var(--b4-cream-2) !important; color: var(--b4-ink) !important; }
.b4-wiztotal { flex: none; padding: 0 0.6rem 0 0.8rem; color: var(--b4-ink-2); font-size: 0.78rem; line-height: 1.15; }
.b4-wiztotal strong { display: block; color: var(--b4-ink); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
body.b4.page-product .quantity-section { display: flex !important; align-items: center; justify-content: space-between; margin: 0.4rem 0 0.8rem !important; padding: 12px 14px !important; border: 0 !important; border-radius: 18px !important; background: #fff !important; box-shadow: 0 0 0 1px var(--b4-line) !important; }
body.b4.page-product .quantity-label { margin: 0 !important; color: var(--b4-ink) !important; font: 600 0.92rem var(--b4-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.b4.page-product .quantity-control { display: inline-flex !important; align-items: center; gap: 2px; padding: 3px !important; border: 0 !important; border-radius: 999px !important; background: var(--b4-cream-2) !important; }
body.b4.page-product .btn-quantity { width: 36px !important; height: 36px !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; color: var(--b4-ink) !important; font: 500 1.15rem var(--b4-font) !important; box-shadow: 0 1px 2px rgba(30, 23, 20, 0.1) !important; }
body.b4.page-product .quantity-input { width: 34px !important; border: 0 !important; background: none !important; color: var(--b4-ink) !important; font: 600 0.95rem var(--b4-font) !important; text-align: center; }
body.b4.page-product .product-actions.sticky-bottom {
  position: sticky !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; left: auto !important; right: auto !important; z-index: 30;
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
body.b4.page-product .product-actions.sticky-bottom button[type=submit] {
  display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 60px !important; padding: 0 0.6rem 0 1.4rem !important;
  border: 0 !important; border-radius: 999px !important; background: var(--b4-blue) !important; color: #fff !important; box-shadow: 0 18px 34px -14px rgba(192, 7, 23, 0.9) !important;
  font: 600 1.02rem/1 var(--b4-font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.b4.page-product #total-price { padding: 0.65rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-weight: 600; font-variant-numeric: tabular-nums; }
body.b4.page-product #total-price:empty { display: none; }

/* ==========================================================================
   PIED DE PAGE CLAIR
   ========================================================================== */
.b4-footer { position: relative; margin-top: 0; padding: 2.2rem 16px calc(1.2rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, var(--b4-cream) 0%, var(--b4-rose-2) 100%); color: var(--b4-ink-2); font-size: 0.86rem; }
.b4-footer__inner { display: grid; gap: 1.4rem; width: min(1180px, 100%); margin: 0 auto; }
.b4-footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.b4-footer__mono { width: 46px; height: auto; flex: none; }
.b4-footer__logo { display: block; width: 92px; height: auto; margin-bottom: 0.15rem; }
.b4-footer__brand p { margin: 0; }
.b4-footer__col { display: grid; gap: 0.3rem; align-content: start; }
.b4-footer__col p { margin: 0; }
.b4-footer__col a { color: var(--b4-ink-2) !important; text-decoration: none; }
.b4-footer__col a:hover { color: var(--b4-blue) !important; }
.b4-footer__label { margin: 0 0 0.25rem !important; color: var(--b4-ink) !important; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.b4-footer__hours span { white-space: nowrap; }
.b4-footer__bottom { width: min(1180px, 100%); margin: 1.6rem auto 0; padding-top: 1rem; border-top: 1px solid var(--b4-line); color: var(--b4-ink-3); font-size: 0.74rem; }
.b4-footer__bottom p { margin: 0.4rem 0 0; }
.b4-footer__bottom a { color: var(--b4-ink-2) !important; }
body.b4 .seoext-footer { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--b4-ink-3) !important; font: 400 0.74rem var(--b4-font) !important; text-align: left !important; justify-content: flex-start !important; }
body.b4 .seoext-footer a { color: var(--b4-ink-2) !important; text-decoration: none; }

/* Pages légales / locales / suivi : typo et fond cohérents */
body.b4 .seoext:not(.b4-seo), body.b4 .track-page, body.b4 .container { font-family: var(--b4-font); }

/* ---------- Animations ---------- */
@keyframes b4-pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes b4-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 99, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(47, 158, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 99, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 640px) {
  .b4-grid--cups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .b4-grid--plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .b4-sheet { align-items: center; padding: 20px; }
  .b4-sheet__panel { width: min(460px, 100%); border-radius: 28px; transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 0.3s var(--b4-ease), opacity 0.25s; }
  .b4-sheet__panel::before { display: none; }
  .b4-sheet.is-open .b4-sheet__panel { opacity: 1; }
}
@media (min-width: 900px) {
  :root { --b4-head-h: 72px; }
  .b4-header__inner { grid-template-columns: auto 1fr auto; padding: 0 24px; gap: 1.6rem; }
  #nav-toggle { display: none; }
  .b4-header__logo { justify-self: start; }
  .b4-header__logo img { width: 116px; }
  .b4-header__nav { display: flex; gap: 0.3rem; }
  .b4-header__nav a { padding: 0.5rem 0.85rem; border-radius: 999px; color: var(--b4-ink-2) !important; font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s, color 0.2s; }
  .b4-header__nav a:hover { background: #fff; color: var(--b4-ink) !important; }
  .b4-status--header { display: inline-flex; }
  .b4-status--hero { display: none; }

  .b4-hero { background-image: url("/static/img/bm/bg-creme.webp"); background-position: center bottom; }
  .b4-hero__inner { grid-template-columns: 1fr 1.05fr; grid-template-areas: "top art" "act art"; align-items: end; min-height: min(640px, calc(100vh - 72px)); padding: 24px 24px 0; column-gap: 2rem; }
  .b4-hero__top { align-self: end; }
  .b4-hero__title { font-size: clamp(2.8rem, 4.6vw, 4rem); margin-top: 0; }
  .b4-hero__art { margin: 0; align-self: stretch; display: flex; align-items: flex-end; }
  .b4-hero__art picture { width: 100%; }
  .b4-hero__art img { aspect-ratio: auto; max-height: 640px; object-fit: contain; object-position: bottom center;
    -webkit-mask-image: radial-gradient(closest-side at 50% 56%, #000 64%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 56%, #000 64%, transparent 100%); }
  .b4-hero__act { align-self: start; margin: 1.1rem 0 4rem; text-align: left; }
  .b4-hero__lead { margin: 0 0 1.3rem; font-size: 1.05rem; }
  .b4-trust { justify-content: flex-start; }

  .b4-home-sec { padding: 3rem 24px; }
  .b4-bubbles { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0; padding: 4px 0 8px; overflow: visible; }
  .b4-bubble__ph { width: 112px; height: 112px; }
  .b4-bubble strong { font-size: 0.9rem; }
  .b4-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .b4-infocard { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 2rem; padding: 2.2rem 2.4rem; }
  .b4-infocard__list { margin: 0; }
  .b4-infocard__mono { width: 200px; right: -30px; bottom: -60px; }

  .b4-carte { padding-left: 12px; padding-right: 12px; }
  .b4-carte__head { padding: 30px 12px 14px; }
  .b4-carte__mono { width: 84px; right: 24px; top: 22px; }
  .b4-catnav__track { padding: 10px 12px 12px; }
  .b4-sec { margin-top: 26px; }
  .b4-band { min-height: 150px; padding: 26px 30px 22px; background-image: none; }
  .b4-band--rouge { background-image: url("/static/img/bm/bg-rouge.webp"); }
  .b4-band--kraft { background-image: url("/static/img/bm/bg-kraft.webp"); }
  .b4-band--creme { background-image: url("/static/img/bm/bg-creme.webp"); }
  .b4-grid--cups { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .b4-grid--plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .b4-item--plates .b4-item__ph { width: 120px; }

  .b4-page { padding: 30px 24px 3rem; }
  .b4-cart__layout { grid-template-columns: 1fr 360px; align-items: start; gap: 22px; }
  .b4-summary { top: calc(var(--b4-head-h) + 16px); bottom: auto; }
  .b4-card + .b4-card { margin-top: 14px; }

  body.b4.page-product .product-page { padding: 24px 24px 3rem !important; }
  body.b4.page-product .product-detail { grid-template-columns: 1fr 1fr !important; gap: 40px !important; align-items: start; }
  body.b4.page-product .product-media { position: sticky !important; top: calc(var(--b4-head-h) + 20px); }
  body.b4.page-product .product-media figure { aspect-ratio: 1 / 1 !important; }
  body.b4.page-product label.choice-card { flex-basis: calc(33.333% - 8px); }

  .b4-footer { padding: 3rem 24px 1.5rem; }
  .b4-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
  .b4-footer__mono { width: 60px; }
  .b4-footer__logo { width: 110px; }
}

/* Sécurité : neutralise les règles héritées qui visent les cartes de la carte */
body.b4 .b4-item--plates { flex-direction: row !important; }
body.b4 .b4-item--cups { flex-direction: column !important; }

/* Fiche produit : neutralise la grille héritée (zones nommées qui faisaient chevaucher photo et titre) */
body.b4.page-product .product-detail { grid-template-areas: none !important; grid-template-rows: auto !important; }
body.b4.page-product .product-detail > * { grid-area: auto !important; grid-row: auto !important; grid-column: auto !important; margin-top: 0 !important; transform: none !important; }
body.b4.page-product .product-header { display: block !important; }
/* Titres des pages panier / checkout : encre, pas le bleu hérité */
body.b4 .b4-page__title, body.b4 .b4-card__title, body.b4 .b4-line__top h3, body.b4 .b4-empty h2, body.b4 .b4-band h2, body.b4 .b4-carte__title,
body.b4 .b4-hero__title, body.b4 .b4-h2, body.b4 .b4-sheet__title { color: var(--b4-ink) !important; }
body.b4 .b4-h2 span, body.b4 .b4-hero__title span { color: var(--b4-sky) !important; }
body.b4 .b4-h2 span { color: var(--b4-blue) !important; }
body.b4.page-product .product-media { top: 0 !important; }
@media (min-width: 900px) { body.b4.page-product .product-media { position: sticky !important; top: calc(var(--b4-head-h) + 20px) !important; } }
body.b4.page-product label.choice-card { display: flex !important; }
body.b4.page-product label.choice-card > .choice-content-wrapper { flex: 1; }
@media (max-width: 899px) { body.b4.page-product .product-media figure { aspect-ratio: 4 / 2.85 !important; } }

html, body.b4 { overflow-x: clip; }
@media (min-width: 900px) { .b4-carte__chips .b4-status { display: none; } }
@media (min-width: 900px) { .b4-grid.b4-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } .b4-grid--home .b4-item--cups .b4-item__ph { aspect-ratio: 4 / 3.4; } }
body.b4 .b4-page__title, body.b4 .b4-carte__title, body.b4 .b4-hero__title, body.b4 .b4-band h2, body.b4 .b4-h2, body.b4 .b4-sheet__title, body.b4 .b4-empty h2 { font-weight: 700 !important; letter-spacing: -0.03em !important; }
body.b4 .b4-card__title, body.b4 .b4-line__top h3 { font-weight: 600 !important; }

/* ==========================================================================
   BIG MOH'S — ajustements du gabarit v4 (logo empilé, produits détourés, section « fait maison »)
   ========================================================================== */
/* Logo empilé (mascotte + « Big Moh's ») : tenu dans la hauteur de l'en-tête */
body.b4 .b4-header__logo img { width: auto !important; height: 50px !important; }
@media (min-width: 900px) { body.b4 .b4-header__logo img { height: 56px !important; } }
body.b4 .b4-footer__logo { width: auto !important; height: 84px !important; }

/* Héros : produits détourés sur podium rouge, sans masque (le détourage se fond déjà dans le studio crème) */
.b4-hero__art img {
  aspect-ratio: auto !important; object-fit: contain !important;
  -webkit-mask-image: none !important; mask-image: none !important;
  filter: drop-shadow(0 26px 30px rgba(90, 30, 10, 0.18));
}
@media (max-width: 899px) {
  .b4-hero__art { margin: 0.6rem -16px 0 6%; }          /* déborde à droite : la coupe nette des wings tombe au bord de l'écran */
  .b4-hero__act { margin-top: 0.4rem; }
}
@media (min-width: 900px) {
  .b4-hero__inner { grid-template-columns: 0.9fr 1.1fr; }
  .b4-hero__art { margin-right: calc((min(1180px, 100vw) - 100vw) / 2 - 24px); align-items: center; }
  .b4-hero__art picture { width: 112%; }
  .b4-hero__art img { max-height: none !important; width: 100%; }
}

/* Feuille de mode : la mascotte en scooter / avec son sac */
.b4-mode__icon--img { width: 58px !important; height: 58px !important; background: var(--b4-cream-2) !important; overflow: hidden; }
.b4-mode__icon--img img { width: 52px; height: 52px; object-fit: contain; }

/* Fait maison : carte douce, vidéo de la cuisine du client */
.b4-maison__card {
  display: grid; gap: 1.2rem; align-items: center; padding: 14px; border-radius: var(--b4-r3);
  background: #fff; box-shadow: var(--b4-s1);
}
.b4-maison__video { margin: 0; justify-self: center; width: min(62vw, 250px); }
.b4-maison__video video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: var(--b4-cream-2);
}
.b4-maison__txt { padding: 0 6px 8px; }
.b4-maison__txt p:not(.b4-kicker) { margin: 0.7rem 0 0.9rem; color: var(--b4-ink-2); font-size: 0.95rem; line-height: 1.6; max-width: 46ch; }
@media (min-width: 800px) {
  .b4-maison__card { grid-template-columns: 260px 1fr; gap: 2.6rem; padding: 18px 40px 18px 18px; }
  .b4-maison__video { width: 260px; }
}

/* Photos produit (podium rouge en bas du cadre) : on resserre sur le produit, le podium ne garde qu'un liseré */
.b4-item--cups .b4-item__ph img { transform: scale(1.3) !important; transform-origin: 50% 30% !important; }
body.b4 .b4-item--cups:hover .b4-item__ph img { transform: scale(1.36) !important; }
.b4-item--plates .b4-item__ph img { transform: scale(1.45) !important; transform-origin: 50% 34% !important; }
body.b4 .b4-item--plates:hover .b4-item__ph img { transform: scale(1.52) !important; }
.b4-item__ph { background: #f7ebdd; }

/* Choix à quantité (viandes des tacos, sauces offertes, boissons du duo) : grille régulière comme les cartes simples */
body.b4.page-product .choices-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
@media (min-width: 1100px) { body.b4.page-product .choices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
body.b4.page-product .qty-card { width: auto !important; min-width: 0 !important; }
/* Pied de page : le logo empilé ne doit pas se faire écraser par le flex */
.b4-footer__brand picture { flex: none; line-height: 0; }
body.b4 .b4-footer__logo { width: auto !important; height: 84px !important; max-width: none !important; object-fit: contain; }

/* Commande en ligne en pause (paiement pas encore branché) : renvoi vers le téléphone */
.b4-pause { display: grid; gap: 0.45rem; padding: 16px; border-radius: var(--b4-r2); background: var(--b4-rose-2); color: var(--b4-ink); }
.b4-pause strong { font-size: 1rem; }
.b4-pause span { color: var(--b4-ink-2); font-size: 0.9rem; }
.b4-pause .b4-btn { margin-top: 0.4rem; }
