/* ============================================================
   Bianchi Dessert — site client · design v2 (maquettes 16/09/2026)
   Palette claire : ivoire #F8F3EA · crème #FFFDF9 · sable #F3E9D2 · or #8F6E36 · cacao #201A14 · espresso #14110E
   ============================================================ */
:root {
  --bg: #F8F3EA; --surface: #FFFDF9; --surface-2: #F3E9D2;
  --ink: #201A14; --espresso: #14110E; --gold: #8F6E36; --gold-deep: #6E5326; --gold-tint: #F3E9D2; --gold-soft: #C8A464;
  --line: #E6DCC8; --line-soft: #EFE7DA; --line-btn: #D9CDB5;
  --text: #201A14; --intro: #4E4438; --muted: #6F6355; --faint: #B9AE9C;
  --good: #2F7D4F; --good-bg: #E4F0E8; --good-text: #23623D; --warn: #A33B3B; --warn-bg: #F3E4E4; --warn-text: #8A2E2E; --bad: #A33B3B; --bad-bg: #F3E4E4;
  --on-action: #FFFFFF; --photo: #F3E9D2; --photo-out: #EFE7DA; --photo-icon: #8A7C6C;
  --r-card: 20px; --r-btn: 999px; --shadow-pop: 0 16px 40px rgba(20,17,14,.16);
  --maxw: 1440px; --gutter: 16px; --gutter-desk: 64px;
}
body { background: var(--bg); color: var(--text); font-family: var(--body); }
h1, h2, h3 { font-weight: 600; margin: 0; }
.serif { font-family: var(--display); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Bascule bureau / mobile : on ne fait que cacher, chaque élément garde son propre display */
@media (max-width: 1023px) { .desk { display: none !important; } }
@media (min-width: 1024px) { .mob { display: none !important; } }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.empty { color: var(--muted); font-style: italic; padding: 40px 0; text-align: center; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

/* Prix */
.price { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--text); line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: lining-nums tabular-nums; }
.price small { font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 0; }
.price-old { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--faint); text-decoration: line-through; margin-inline-end: 4px; }

/* Boutons */
.btn { border-radius: var(--r-btn); }
.btn-ink { background: var(--ink); color: var(--on-action); }
.btn-ink:hover { background: #2E2820; }
.btn-ghost { border-color: var(--line-btn); background: var(--surface); color: var(--text); }
.btn-wa { border-radius: var(--r-btn); font-weight: 800; }
.linkish { background: none; border: 0; padding: 6px; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.plus { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-action); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; flex: none; cursor: pointer; }
.plus:hover { background: #2E2820; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 800; font-size: 14px; flex: none; }
.stepper button { width: 40px; height: 42px; background: transparent; border: 0; color: var(--text); font-size: 17px; font-weight: 800; border-radius: 50%; }
.stepper span { min-width: 18px; text-align: center; }
.stepper.lg button { width: 44px; height: 44px; }
.btn-add { height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-action); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.btn-cta { height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--on-action); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.notify { height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-btn); background: transparent; color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-btn); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-btn .ic-sun { display: none; }
html[data-theme="dark"] .theme-btn .ic-sun { display: block; }
html[data-theme="dark"] .theme-btn .ic-moon { display: none; }

/* Badges */
.badge { position: absolute; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.badge .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badges .badge { position: static; }
.badge-promo, .badge-signature { background: var(--gold); color: #FFFFFF; }
.badge-signature { top: 16px; left: 16px; }
.badge-stock { top: 16px; right: 16px; background: var(--good); color: #FFFFFF; }
.badge-stock.warn { background: var(--warn); } .badge-stock.bad { background: var(--ink); } .badge-stock.order { background: var(--gold-deep); }
.badge-out { top: 12px; left: 12px; background: var(--ink); color: #FFFFFF; }
html[dir="rtl"] .badges, html[dir="rtl"] .badge-out, html[dir="rtl"] .badge-signature { left: auto; right: 12px; }
html[dir="rtl"] .badge-stock { right: auto; left: 16px; }

/* Statut de stock (dans le corps) */
.stock-line { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.stock-line .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: none; }
.stock-line.warn { color: var(--warn); } .stock-line.bad { color: var(--muted); } .stock-line.bad .dot { background: var(--faint); } .stock-line.order { color: var(--gold-deep); }

/* ---------- Barre haute ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; height: 60px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .12em; }
.brand small { font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--gold); margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-right .icon-btn.mob { border: 0; background: transparent; }
.lang-switch { position: static; }
.lang-switch select { height: 44px; padding: 0 26px 0 10px; border-radius: 999px; border: 0; background-color: transparent; color: var(--text); font-size: 13px; font-weight: 700; background-repeat: no-repeat; background-position: right 8px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23201A14' stroke-width='1.6'/%3E%3C/svg%3E"); }
.wa-round { width: 44px; height: 44px; border-radius: 999px; background: var(--gold); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.wa-pill { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--gold); color: #FFFFFF; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--good-bg); color: var(--good-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-pill .status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--good); box-shadow: none; }
.status-pill.ferme { background: var(--warn-bg); color: var(--warn-text); } .status-pill.ferme .status-dot { background: var(--warn); }
.cart-top { height: 44px; padding: 0 6px 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-action); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.cart-top.hidden { display: none !important; }
.cart-top .count { width: 22px; height: 22px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; display: grid; place-items: center; }
.cart-top .total { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--text); font-family: var(--display); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; }

/* Recherche + filtre */
.search-wrap { position: relative; }
.search { height: 44px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-btn); background: var(--surface); display: flex; align-items: center; gap: 10px; color: var(--muted); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); padding: 0; font-family: inherit; }
.search input::placeholder { color: var(--muted); }
.filter-btn { height: 32px; padding: 0 8px 0 10px; border-radius: 999px; border: 0; background: var(--gold-tint); color: var(--gold-deep); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; position: static; width: auto; }
.filter-btn .fcount { position: static; width: 20px; height: 20px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; display: grid; place-items: center; min-width: 0; padding: 0; }
.filter-pop { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.search-reveal { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter) 0; }

/* Bandeaux */
.closed-banner, .pending-banner, .offline-banner { margin-top: 12px; border-radius: 16px; }
.closed-banner { padding: 12px 16px; background: var(--espresso); color: #F8F3EA; display: flex; gap: 12px; align-items: flex-start; }
.closed-banner .ic { font-size: 22px; line-height: 1; }
.closed-banner b { display: block; font-size: 14px; color: var(--gold-soft); }
.closed-banner span { font-size: 13px; color: rgba(248,243,234,.75); line-height: 1.45; }
.pending-banner { padding: 12px 16px; background: var(--gold-tint); border: 1px solid var(--gold-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.pending-banner .ic { font-size: 20px; }
.pending-banner > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.pending-banner b { font-size: 13px; } .pending-banner span { font-size: 12px; color: var(--muted); }
.offline-banner { padding: 10px 16px; background: var(--warn-bg); color: var(--warn-text); font-size: 13px; font-weight: 700; display: flex; gap: 10px; align-items: center; }

/* ---------- Héros ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 0; display: flex; flex-direction: column; gap: 14px; }
.hero-text { display: contents; }
.mention-row { order: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mention { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--gold-deep); }
.hero h1 { order: 2; font-family: var(--display); font-size: 52px; line-height: .96; font-weight: 600; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-featured { order: 3; }
.hero .intro { order: 4; margin: 0; font-size: 15px; line-height: 1.55; color: var(--intro); }
.hero .btn-cta { order: 5; width: 100%; }
.hero .micro { order: 6; }
.micro { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.micro > span { display: inline-flex; align-items: center; gap: 8px; }
.micro svg { color: var(--good); }

/* Produit vedette */
.featured { display: flex; flex-direction: column; gap: 10px; }
.featured-photo { position: relative; height: 230px; border-radius: 20px; overflow: hidden; background: var(--photo); cursor: pointer; }
.featured-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-body { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.featured-body .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.featured-body h3 { font-family: var(--body); font-size: 17px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.featured-body .price { font-size: 26px; }
.featured-body p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--intro); }
.featured-body .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.allerg-line { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Photo générique + placeholder */
.photo { position: relative; background: var(--photo); overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.photo .ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--photo-icon); font-family: var(--display); font-style: italic; font-weight: 700; font-size: 16px; }
.photo.soldout { background: var(--photo-out); }
.photo.soldout img { filter: grayscale(.6) brightness(1.05); opacity: .55; }

/* Offre */
.bannieres { display: grid; gap: 10px; margin-top: 20px; }
.bannieres:empty { display: none; margin: 0; }
.banniere { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; gap: 12px; color: var(--text); }
.banniere-icon { width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--gold); color: #fff; font-family: var(--display); font-size: 16px; font-weight: 700; display: grid; place-items: center; }
.banniere h3 { font-family: var(--body); font-size: 15px; font-weight: 700; }
.banniere p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.banniere-noir { background: var(--espresso); color: #F8F3EA; } .banniere-noir p { color: rgba(248,243,234,.7); }

/* Onglets de catégories */
.catnav { position: sticky; top: 60px; z-index: 20; margin: 20px 0 0; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 700; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); transition: top .25s ease; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { flex: none; padding: 12px 0; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.catnav a.active { color: var(--text); border-bottom-color: var(--gold); }

/* Sections et cartes */
main#vitrine { padding-bottom: 120px; }
.section { padding-top: 28px; scroll-margin-top: 110px; display: flex; flex-direction: column; gap: 14px; }
.section.only-featured { display: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2 { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.section-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.section-count { font-size: 13px; font-weight: 700; color: var(--gold-deep); padding-bottom: 4px; white-space: nowrap; }
.section.no-stock h2 { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card .photo { aspect-ratio: 1 / 1; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.25; min-height: 38px; cursor: pointer; }
.card-desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); display: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.card.epuise .card-title, .card.epuise .price { color: var(--muted); }
details.soldout { margin-top: 4px; }
details.soldout summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.soldout summary::before { content: "▸"; color: var(--gold-deep); transition: transform .15s; }
details.soldout[open] summary::before { transform: rotate(90deg); }
details.soldout summary::-webkit-details-marker { display: none; }
details.soldout .grid { margin-top: 10px; }

/* Pied de page espresso */
.site-foot { background: var(--espresso); color: #F8F3EA; margin-top: 8px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px; }
.foot-top { display: flex; flex-direction: column; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; }
.foot-brand b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .12em; line-height: 1; }
.foot-brand .slogan { display: block; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 18px; color: var(--gold-soft); margin-top: 3px; }
.foot-info { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-info > * { display: inline-flex; align-items: flex-start; gap: 8px; color: #F8F3EA; text-decoration: none; }
.foot-info svg { flex: none; margin-top: 2px; }
.foot-wa { height: 44px; padding: 0 18px; border-radius: 999px; background: #F8F3EA; color: var(--espresso) !important; font-weight: 700; align-items: center !important; align-self: flex-start; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 18px; border-top: 1px solid #2E2820; font-size: 12px; color: var(--faint); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-langs button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.foot-langs button.on { color: var(--faint); }
.credit em { font-style: italic; } .credit a { color: var(--gold-soft); text-decoration: none; }
.foot-admin { font-size: 12px; } .foot-admin a { color: var(--muted); }

/* Barre panier flottante (mobile) */
.cart-fab { position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; height: 56px; padding: 0 6px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-action); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 16px 40px rgba(20,17,14,.3); font-size: 15px; font-weight: 700; transition: transform .2s, opacity .2s; cursor: pointer; }
.cart-fab.hidden { transform: translateY(120px); opacity: 0; pointer-events: none; }
.cart-fab .left { display: flex; align-items: center; gap: 12px; }
.cart-fab .count { width: 24px; height: 24px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; display: grid; place-items: center; }
.cart-fab .total { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--text); font-family: var(--display); font-size: 19px; font-weight: 700; display: inline-flex; align-items: center; }

/* ---------- Bureau ---------- */
@media (min-width: 1024px) {
  .topbar-inner { height: 72px; padding: 0 var(--gutter-desk); }
  .brand img { width: 44px; height: 44px; } .brand b { font-size: 22px; } .brand small { letter-spacing: .32em; margin-top: 4px; }
  .topbar-search { width: 440px; }
  .topbar-search .search input { font-size: 14px; }
  .topbar-right { gap: 12px; }
  .lang-switch select { border: 1px solid var(--line-btn); background-color: var(--surface); padding: 0 30px 0 14px; }
  .filter-pop { right: auto; width: 320px; }
  .wrap { padding: 0 var(--gutter-desk); }
  .hero { padding: 64px var(--gutter-desk); display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: center; }
  .hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
  .mention { font-size: 30px; font-weight: 600; }
  .hero h1 { font-size: 84px; line-height: .98; }
  .hero .intro { font-size: 17px; line-height: 1.6; max-width: 520px; }
  .hero .btn-cta { width: auto; align-self: flex-start; margin-top: 6px; }
  .featured-photo { height: 320px; border-radius: 28px; }
  .featured-body { gap: 6px; padding: 0 4px; }
  .featured-body h3 { font-size: 21px; } .featured-body .price { font-size: 30px; } .featured-body p { font-size: 14px; } .allerg-line { font-size: 13px; }
  .bannieres { margin-top: 0; }
  .banniere { height: 60px; padding: 0 20px; border-radius: 16px; gap: 14px; }
  .banniere-icon { width: 36px; height: 36px; font-size: 17px; }
  .banniere h3 { font-size: 15px; } .banniere p { display: inline; margin: 0 0 0 4px; font-size: 14px; }
  .banniere > div { display: flex; align-items: baseline; gap: 4px; }
  .catnav { top: 72px; margin-top: 28px; gap: 28px; font-size: 14px; mask-image: none; -webkit-mask-image: none; overflow: visible; }
  .catnav a { padding: 14px 0; }
  .section { padding-top: 40px; gap: 20px; scroll-margin-top: 130px; }
  .section-head h2 { font-size: 40px; } .section-head p { font-size: 14px; } .section-count { font-size: 14px; padding-bottom: 6px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .card { border-radius: 20px; }
  .card .photo { aspect-ratio: auto; height: 210px; }
  .card-body { gap: 8px; padding: 16px 18px 18px; }
  .card-title { font-size: 17px; min-height: 0; }
  .card-desc { display: block; }
  .card-foot { margin-top: 4px; }
  .price { font-size: 28px; } .price small { font-size: 13px; }
  main#vitrine { padding-bottom: 64px; }
  .foot-inner { padding: 36px var(--gutter-desk) 24px; gap: 24px; }
  .foot-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .foot-info { flex-direction: row; align-items: center; gap: 28px; }
  .foot-info > * { align-items: center; }
  .foot-wa { align-self: auto; }
  .foot-bottom { flex-wrap: nowrap; }
  .foot-admin { display: flex; justify-content: flex-end; }
  .cart-fab { display: none; }
}

/* ---------- Thème sombre : bordeaux profond ---------- */
html[data-theme="dark"] {
  --bg: #2A1214; --surface: #45272A; --surface-2: #45272A; --espresso: #1A0B0D;
  --ink: #D4B378; --on-action: #1A0B0D;
  --gold: #D4B378; --gold-deep: #E6CC92; --gold-tint: #45272A; --gold-soft: #E6CC92;
  --line: #5A3237; --line-soft: #4F2E33; --line-btn: #5A3237;
  --text: #F6ECE5; --intro: #E3D2CB; --muted: #CFB8B1; --faint: #A08A84;
  --good: #9AD9AE; --good-bg: #2B3F32; --good-text: #9AD9AE; --warn: #F2C96E; --warn-bg: #4E2426; --warn-text: #F4A7A7; --bad: #F4A7A7; --bad-bg: #4E2426;
  --photo: #55352C; --photo-out: #4F3236; --photo-icon: #CFB8B1;
  --cream: #2A1214; --paper: #45272A; --shadow-pop: 0 16px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .btn-ink:hover, html[data-theme="dark"] .plus:hover { background: #E6CC92; }
html[data-theme="dark"] .stepper { border-color: var(--gold); }
html[data-theme="dark"] .btn-cta, html[data-theme="dark"] .wa-pill, html[data-theme="dark"] .wa-round, html[data-theme="dark"] .foot-wa, html[data-theme="dark"] .notify { background: transparent; border: 1.5px solid #F6ECE5; color: #F6ECE5 !important; }
html[data-theme="dark"] .badge-promo, html[data-theme="dark"] .badge-signature { background: var(--gold); color: #1A0B0D; }
html[data-theme="dark"] .badge-stock.warn { background: #F2C96E; color: #1A0B0D; }
html[data-theme="dark"] .badge-stock { background: #2B3F32; color: #9AD9AE; }
html[data-theme="dark"] .badge-out { background: #1A0B0D; color: #F6ECE5; }
html[data-theme="dark"] .status-pill { background: var(--good-bg); color: #9AD9AE; }
html[data-theme="dark"] .status-pill.ferme { background: #4E2426; color: #F4A7A7; }
html[data-theme="dark"] .cart-top .total, html[data-theme="dark"] .cart-fab .total { background: #1A0B0D; color: #F6ECE5; }
html[data-theme="dark"] .cart-top .count, html[data-theme="dark"] .cart-fab .count { background: #1A0B0D; color: var(--gold); }
html[data-theme="dark"] .filter-btn { background: #5A3237; color: #E6CC92; }
html[data-theme="dark"] .filter-btn .fcount { color: #1A0B0D; }
html[data-theme="dark"] .lang-switch select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F6ECE5' stroke-width='1.6'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .lang-switch select option { color: var(--text); background: var(--surface); }
html[data-theme="dark"] .mention, html[data-theme="dark"] .hero h1 em, html[data-theme="dark"] .section-count { color: var(--gold-deep); }
html[data-theme="dark"] .mention { font-weight: 700; }
html[data-theme="dark"] .banniere-icon { background: var(--gold); color: #1A0B0D; }
html[data-theme="dark"] .site-foot { background: var(--espresso); }
html[data-theme="dark"] .foot-brand .slogan, html[data-theme="dark"] .credit a { color: var(--gold); }
html[data-theme="dark"] .toast { background: var(--gold); color: #1A0B0D; }
html[data-theme="dark"] .toast.err { background: var(--bad); color: #1A0B0D; }
html[data-theme="dark"] .overlay, html[data-theme="dark"] .modal { background: rgba(0,0,0,.6); }
html[data-theme="dark"] .field input:not([type=checkbox]):not([type=radio]), html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { color: var(--text); background: var(--surface); }
html[data-theme="dark"] .btn-ghost { color: var(--text); }
html[data-theme="dark"] .price { color: var(--text); }

/* ===== Blocs conservés : tiroir, confirmation, fiche produit ===== */
/* ---------- Tiroir panier ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20,17,14,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 100; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(20,17,14,.2); }
.drawer.open { transform: translateX(0); }
html[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 40px rgba(20,17,14,.2); }
html[dir="rtl"] .drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.drawer-head .t { display: flex; flex-direction: column; gap: 2px; }
.drawer-head h2 { font-size: 26px; line-height: 1; }
.drawer-head .n { font-size: 12.5px; color: var(--muted); }
.close { background: transparent; border: 0; color: var(--gold-deep); font-size: 26px; line-height: 1; padding: 4px 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; display: flex; flex-direction: column; }
.drawer-foot { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.cart-empty .big { font-size: 44px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.line-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-name b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; }
.line-name small { font-size: 12px; color: var(--muted); }
.line-name .remove { background: none; border: 0; color: var(--bad); font-size: 12px; font-weight: 700; padding: 0; text-align: start; }
.line-price { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--gold-deep); min-width: 58px; text-align: end; }
.suggest { margin-top: 16px; padding: 12px 14px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 4px; }
.suggest-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.suggest-item .n { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.suggest-item .n b { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.1; }
.suggest-item .n small { font-size: 11.5px; color: var(--muted); }
.suggest-item .n small.warn { color: var(--warn); font-weight: 700; }
.suggest-item .a { display: flex; align-items: center; gap: 10px; flex: none; }
.suggest-item .a .price { font-size: 17px; }
.form { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.form .eyebrow { margin-bottom: -2px; }
.field label { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.field label .req { color: var(--gold-deep); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { border-radius: var(--r-btn); border-color: var(--line); background: var(--surface); font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(143,110,54,.15); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: 110px; flex: none; }
html[dir="rtl"] .phone-row input { direction: ltr; text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modes label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 700; cursor: pointer; border-radius: var(--r-btn); }
.modes label:has(input:checked) { border-color: var(--gold-deep); background: var(--gold-tint); color: var(--gold-deep); }
.modes input { position: absolute; opacity: 0; width: 0; height: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); line-height: 1.45; background: var(--surface); border-radius: var(--r-btn); }
.note.bad { border-color: #e6b4b4; background: var(--bad-bg); color: var(--bad); }
.gps-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; background: var(--good-bg); border: 1px solid #cfe6d6; color: var(--good); font-size: 13.5px; border-radius: var(--r-btn); }
.gps-ok small { color: var(--muted); font-size: 12px; }
.gps-ok a { font-weight: 700; color: var(--good); }
.gps-ok .linkish { padding: 0; }
.gps-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gps-map { height: 260px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.gps-map-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress .bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--gold); }
.progress small { font-size: 12.5px; color: var(--gold-deep); font-weight: 700; }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { align-items: baseline; color: var(--text); padding-top: 4px; }
.totals .grand span:first-child { font-family: var(--display); font-weight: 600; font-size: 26px; }
.totals .grand span:last-child { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--gold-deep); }
.drawer-foot .hint { font-size: 12px; color: var(--faint); text-align: center; line-height: 1.5; }

/* Confirmation */
.confirm { text-align: center; padding: 32px 0 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.confirm .check { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; font-size: 30px; }
.confirm h3 { font-size: 40px; line-height: 1; }
.confirm h3 em { font-style: italic; color: var(--gold-deep); }
.confirm p { margin: 0; color: var(--muted); font-size: 14px; max-width: 300px; line-height: 1.55; }
.confirm .recap { text-align: start; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.5; margin-top: 8px; }
.confirm .grazie { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--gold-deep); padding-top: 8px; }

/* ---------- Fiche produit (feuille) ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: end center; opacity: 0; pointer-events: none; transition: opacity .2s; background: rgba(20,17,14,.45); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--surface); width: min(520px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 14px 14px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -20px 50px rgba(20,17,14,.25); transform: translateY(30px); transition: transform .25s; position: relative; }
.modal.open .modal-card { transform: translateY(0); }
@media (min-width: 640px) { .modal { place-items: center; } .modal-card { border-radius: 14px; } }
.modal-card .photo { height: 230px; border-radius: 0; border: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 20px; line-height: 1; z-index: 2; }
html[dir="rtl"] .modal-close { right: auto; left: 12px; }
.modal-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-body .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.modal-body h3 { font-size: 28px; line-height: 1.05; }
.modal-body .price { font-size: 28px; }
.modal-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.allergenes { font-size: 12.5px; color: var(--muted); padding: 10px 12px; border: 1px solid var(--line-soft); background: var(--bg); border-radius: var(--r-btn); line-height: 1.45; }
.allergenes b { color: var(--warn); font-weight: 800; margin-inline-end: 6px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.modal-foot .btn { flex: 1; padding: 14px 18px; font-size: 14px; }

/* ===== Suppléments ===== */
/* Suppléments (options rattachées à un produit) */
.line-sub { display: flex; align-items: center; gap: 10px; padding: 6px 0 8px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.line-sub > span:first-child { flex: 1; }
.line-sub .num { color: var(--gold-deep); font-weight: 700; }
.line-sub .remove { min-height: 0; padding: 4px 8px; font-size: 16px; color: var(--muted); }
.supp-add { display: block; width: 100%; text-align: start; background: var(--gold-tint); border: 1px dashed var(--gold); color: var(--gold-deep); font-size: 12.5px; font-weight: 700; padding: 8px 12px; margin: 6px 0 8px 14px; width: calc(100% - 14px); border-radius: var(--r-btn); cursor: pointer; }
.opts { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-btn); font-size: 13.5px; cursor: pointer; }
.opt input { margin-top: 3px; accent-color: var(--gold-deep); width: 18px; height: 18px; }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--gold-deep); background: var(--gold-tint); }
html[dir="rtl"] .line-sub, html[dir="rtl"] .supp-add { padding-left: 0; padding-right: 14px; margin-left: 0; margin-right: 14px; }
/* ===== Livraison, pied de panier, vignettes ===== */
/* ---------- Livraison variable, pied de panier compact, filtre allergènes, vignettes ---------- */
.summary { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); background: var(--surface); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.summary .row { display: flex; gap: 8px; align-items: flex-start; }
.summary .row svg { color: var(--gold-deep); flex: none; margin-top: 1px; }
.drawer-foot { gap: 8px; padding-top: 10px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot-row .tot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.foot-row .tot .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.foot-row .tot .lbl small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.foot-row .tot .num { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--gold-deep); line-height: 1; }
.foot-row .btn { flex: 1; max-width: 240px; padding: 14px 16px; }
.drawer-foot .hint { margin: 0; }
.suggest-item .photo.sm { width: 46px; height: 46px; flex: none; border-radius: 6px; cursor: pointer; }
.suggest-item .photo.sm .ph .emoji { font-size: 22px; }
.suggest-item .n { flex: 1; }
.allerg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 0 0; }
.allerg[hidden] { display: none; }
.allerg .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-inline-end: 2px; }
.achip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.achip.on { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.allerg small { flex-basis: 100%; font-size: 11px; color: var(--faint); }
/* ===== Filtre allergènes (volet) ===== */
/* Filtre allergènes dans la barre de recherche */
.search-wrap { position: relative; }
.search-wrap .search { padding-inline-end: 8px; }
.filter-pop[hidden] { display: none; }
.fp-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 800; padding-bottom: 4px; }
.fp-head .linkish { padding: 0; font-size: 12px; }
.fp-opt { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; cursor: pointer; border-top: 1px solid var(--line-soft); }
.fp-opt input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.fp-opt:has(input:checked) span { color: var(--bad); text-decoration: line-through; }
.filter-pop small { font-size: 11px; color: var(--faint); padding-top: 4px; }
.allerg, .allerg.desk { display: none !important; }
/* ===== Corbeille ===== */
/* Corbeille dans le panier */
.line-name .remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; padding: 0; margin-top: 2px; border-radius: 50%; color: var(--muted); background: transparent; }
.line-name .remove:hover { color: var(--bad); background: var(--bad-bg); }
.line-sub .remove { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.line-sub .remove svg { width: 14px; height: 14px; }


/* Ajustements barre haute : pas de débordement sur 375 px, pastille WhatsApp sur une ligne */
html { overflow-x: clip; }
.topbar-right { gap: 2px; }
.topbar-right .icon-btn.mob, .topbar-right .theme-btn { width: 40px; }
.lang-switch select { padding-inline: 8px 22px; background-position: right 6px center; }
.wa-round { width: 40px; height: 40px; }
.wa-pill, .status-pill, .cart-top { white-space: nowrap; flex: none; }
@media (min-width: 1024px) { .topbar-right { gap: 12px; } .topbar-right .theme-btn { width: 44px; } .lang-switch select { padding-inline: 14px 30px; background-position: right 12px center; } }

/* Revue v2 : numéro WhatsApp sur une ligne, marge du bouton « Sans », ordre des paragraphes d'intro */
.foot-wa { white-space: nowrap; flex: none; }
.search-wrap .search { padding: 0 6px 0 14px; }
.search-wrap .filter-btn { margin-inline-end: 0; }
.wa-pill svg, .wa-pill span, .foot-wa svg, .foot-wa span { display: inline-block; vertical-align: middle; line-height: 1; }
.wa-pill svg, .foot-wa svg { flex: none; margin: 0; }
.cart-top { flex-wrap: nowrap; } .cart-top svg, .cart-top .count, .cart-top .total { flex: none; }
@media (min-width: 1024px) { .topbar-search { width: min(440px, 30vw); } }

/* Pied de page : une ligne par information, livraison sur la ligne du bas */
.foot-delivery { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); }
.foot-delivery[hidden] { display: none; }
@media (min-width: 1024px) {
  .foot-brand { flex: 1; min-width: 0; }
  .foot-info { flex: none; }
  .foot-info > * { white-space: nowrap; }
  .foot-bottom { gap: 12px 24px; }
}
/* .desk « revert » rend au navigateur ses valeurs par défaut : on fixe explicitement l'affichage des éléments flex */
@media (min-width: 1024px) {
  .status-pill.desk, .wa-pill.desk, .cart-top.desk { display: inline-flex !important; }
  .cart-top.desk.hidden { display: none !important; }
  .topbar-search.desk { display: block !important; }
}

/* Mention « Fournée du jour » : coupure seulement après le point médian ; « 4ᵉ » centré dans son rond */
.mention .m1, .mention .m2 { white-space: nowrap; }
.mention-row { align-items: flex-start; }
.mention-row .status-pill { flex: none; margin-top: 2px; }
.banniere-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: lining-nums; padding-bottom: 1px; }

/* Rond « 4ᵉ » : chiffre + exposant centrés d'un bloc (encre mesurée), exposant collé en haut à droite du chiffre */
.banniere .banniere-icon { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; padding: 3px 0 0; box-sizing: border-box; line-height: 1; }
.banniere .banniere-icon .n { display: block; line-height: 1; font-size: 18px; font-weight: 700; transform: translateY(-1px); }
.banniere .banniere-icon sup { position: static; display: block; align-self: flex-start; margin: 2px 0 0 1px; font-size: 11px; line-height: 1; font-family: inherit; font-weight: 700; vertical-align: 0; }
@media (min-width: 1024px) { .banniere .banniere-icon .n { font-size: 19px; } }

/* Mobile : le texte d'intro (stock réel, WhatsApp) est placé en bas de page, avant le pied de page */
.intro-bottom { margin: 0 0 8px; padding-bottom: 96px; font-size: 15px; line-height: 1.55; color: var(--intro); }
@media (max-width: 1023px) { main#vitrine { padding-bottom: 36px; } }

/* Mobile : la recherche est masquée par défaut, la loupe de la barre l'affiche ou la replie */
.search-reveal { display: none; }
.search-reveal.open { display: block; }
@media (min-width: 1024px) { .search-reveal.open { display: none !important; } }
#searchToggle.active { background: var(--gold); color: #fff; }

/* Épuisés : lien vers les autres produits disponibles de la catégorie */
.see-others { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
/* Héros mobile : mentions livraison + paiement sous le bouton « Voir la vitrine » */
.hero .micro { gap: 8px 18px; }
@media (max-width: 1023px) { .hero .micro { font-size: 12.5px; } }
/* Barre panier mobile : seconde ligne « Encore X DH et la livraison est offerte » */
.cart-fab .fab-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.15; text-align: start; }
.cart-fab .fab-sub { font-size: 11.5px; font-weight: 600; opacity: .8; }
.cart-fab .fab-sub[hidden] { display: none; }

/* Offres dans le panier : lignes de pièces offertes / remise, total de remise, coup de pouce */
.offers { margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(139,110,56,.08)); font-size: 13px; }
.offer-row, .offer-total { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.offer-row .num, .offer-total .num { color: var(--good); font-weight: 700; }
.offer-total { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 6px; font-weight: 700; }
.offer-nudge { margin-top: 4px; font-weight: 700; color: var(--gold-deep); }

/* Choix du mode : fourchette de livraison sous le libellé */
.modes label { flex-wrap: wrap; }
.modes .mode-note { display: block; width: 100%; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* Livraison offerte atteinte : barre pleine en noir, texte noir, confettis une seule fois */
.progress { position: relative; }
.progress.done .bar span { background: var(--ink); }
.progress.done small { color: var(--text); }
html[data-theme="dark"] .progress.done .bar span { background: var(--gold); }
.progress .confetti { position: absolute; inset: -18px 0 auto 0; height: 0; pointer-events: none; }
.progress .confetti i { position: absolute; left: 50%; top: 0; width: 7px; height: 11px; border-radius: 2px; opacity: 0; }
.progress.celebrate .confetti i { animation: confetti .95s cubic-bezier(.2,.7,.3,1) forwards; }
.confetti i:nth-child(4n+1) { background: var(--gold); } .confetti i:nth-child(4n+2) { background: var(--ink); } .confetti i:nth-child(4n+3) { background: var(--good); } .confetti i:nth-child(4n) { background: #E9C46A; }
.confetti i:nth-child(1) { --dx: -150px; --dy: -70px; --r: 200deg; } .confetti i:nth-child(2) { --dx: -120px; --dy: -110px; --r: -160deg; } .confetti i:nth-child(3) { --dx: -90px; --dy: -60px; --r: 120deg; } .confetti i:nth-child(4) { --dx: -60px; --dy: -120px; --r: -90deg; }
.confetti i:nth-child(5) { --dx: -30px; --dy: -80px; --r: 260deg; } .confetti i:nth-child(6) { --dx: 0px; --dy: -130px; --r: -200deg; } .confetti i:nth-child(7) { --dx: 30px; --dy: -75px; --r: 140deg; } .confetti i:nth-child(8) { --dx: 60px; --dy: -115px; --r: -120deg; }
.confetti i:nth-child(9) { --dx: 90px; --dy: -65px; --r: 220deg; } .confetti i:nth-child(10) { --dx: 120px; --dy: -105px; --r: -70deg; } .confetti i:nth-child(11) { --dx: 150px; --dy: -80px; --r: 180deg; } .confetti i:nth-child(12) { --dx: -140px; --dy: -30px; --r: 90deg; }
.confetti i:nth-child(13) { --dx: 140px; --dy: -35px; --r: -240deg; } .confetti i:nth-child(14) { --dx: -75px; --dy: -20px; --r: 300deg; } .confetti i:nth-child(15) { --dx: 75px; --dy: -25px; --r: -300deg; } .confetti i:nth-child(16) { --dx: 10px; --dy: -50px; --r: 60deg; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 90px)) rotate(var(--r)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .progress.celebrate .confetti i { animation: none; } }
/* Raccourci « Prenez-en 4 » : pastille explicite sous le nom, plus dans le compteur */
.line-name .take4 { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; margin-top: 6px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold-tint, transparent); color: var(--gold-deep); font-family: var(--body); font-size: 12px; font-weight: 700; cursor: pointer; }

/* Cadrage : le zoom choisi dans l'admin ne doit jamais déborder du cadre */
.photo, .featured-photo, .suggest-item .photo.sm { overflow: hidden; }

/* Signature du pied de page : accroche Sidekick, discrète, à la ligne sur mobile */
.credit { display: inline-flex; flex-wrap: wrap; column-gap: 6px; row-gap: 2px; align-items: baseline; }
.credit-tag { font-style: italic; opacity: .75; white-space: nowrap; }
@media (max-width: 480px) { .credit-tag { flex-basis: 100%; white-space: normal; } }

/* Barre des catégories collante : elle couvre aussi les marges latérales, le texte de la page ne transparaît plus sur les bords */
@media (max-width: 1023px) { .catnav { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } }
