/* ============================================================
   Bianchi Dessert — site client · direction A sur fond clair
   Échelle d'espacement : 4 · 8 · 12 · 16 · 24 · 32 · 48
   ============================================================ */
:root {
  --bg: #f8f3ea; --surface: #ffffff; --surface-2: #f1eadd;
  --ink: #14110e; --gold: #c8a464; --gold-deep: #8f6e36; --gold-tint: #f3e9d2;
  --line: #e3d8c3; --line-soft: #ece4d4;
  --text: #201a14; --muted: #6f6355; --faint: #a4978a;
  --good: #2f7d4f; --good-bg: #e6f3ea; --warn: #b8741a; --warn-bg: #fbeed7; --bad: #a33b3b; --bad-bg: #f9e3e3;
  --photo: #efe6d6; --photo-icon: #b9a98f;
  --r-card: 8px; --r-btn: 3px;
  --shadow-card: 0 1px 2px rgba(36,29,22,.05), 0 8px 24px rgba(36,29,22,.06);
  --shadow-lift: 0 1px 2px rgba(36,29,22,.05), 0 14px 34px rgba(36,29,22,.10);
  --maxw: 1280px; --gutter: 20px;
}
body { background: var(--bg); color: var(--text); }
h1, h2, h3 { font-weight: 600; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.price { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--gold-deep); line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 8px; }
.price small { font-size: .6em; font-family: var(--display); font-weight: 600; letter-spacing: 0; margin: 0; }
.price-old { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--faint); text-decoration: line-through; }
.empty { color: var(--muted); font-style: italic; padding: 40px 0; text-align: center; }
.desk { display: none !important; }
.mob { display: revert; }

/* ---------- Boutons et contrôles ---------- */
.btn { border-radius: var(--r-btn); }
.btn-ink { background: var(--ink); color: var(--gold); }
.btn-ink:hover { background: #2a231d; }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-outline-gold { border: 1px solid var(--gold-deep); color: var(--gold-deep); background: var(--surface); border-radius: 999px; }
.btn-outline-gold:hover { background: var(--gold-tint); }
.btn-wa { border-radius: var(--r-btn); font-weight: 800; }
.linkish { background: none; border: 0; padding: 6px; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-deep); background: var(--surface); color: var(--gold-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; flex: none; transition: background .15s; }
.plus:hover { background: var(--gold-tint); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gold-deep); border-radius: 999px; background: var(--surface); color: var(--gold-deep); font-weight: 800; font-size: 14px; flex: none; }
.stepper button { width: 38px; height: 38px; background: transparent; border: 0; color: var(--gold-deep); font-size: 17px; font-weight: 800; border-radius: 50%; }
.stepper button:hover { background: var(--gold-tint); }
.stepper span { min-width: 18px; text-align: center; color: var(--text); }
.stepper.lg button { width: 42px; height: 42px; }
.notify { font-size: 11.5px; font-weight: 700; color: var(--gold-deep); text-decoration: underline; white-space: nowrap; }

/* Étiquettes photo */
.tag { position: absolute; bottom: 10px; left: 10px; padding: 4px 9px; background: rgba(255,255,255,.94); font-size: 11px; font-weight: 700; letter-spacing: .02em; border-radius: 2px; }
.tag-good { color: var(--good); } .tag-warn { color: var(--warn); } .tag-bad { color: #8a7f72; } .tag-order { color: var(--gold-deep); }
.promo { position: static; padding: 5px 10px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 6px; }

html[dir="rtl"] .tag, html[dir="rtl"] .promo { left: auto; right: 10px; }

/* ---------- Barre haute ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; line-height: 1; display: block; }
.brand small { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.topbar-search { display: none; }
.topbar-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.topbar-status { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.topbar-wa { display: none; }
.lang-switch { position: static; }
.lang-switch select { background-color: var(--surface); border: 1px solid var(--line); color: var(--text); background-repeat: no-repeat; padding: 7px 24px 7px 10px; 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='%238f6e36' stroke-width='1.6'/%3E%3C/svg%3E"); }
html[dir="rtl"] .lang-switch { position: static; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(47,125,79,.15); display: inline-block; flex: none; }
.status-dot.ferme { background: var(--bad); box-shadow: 0 0 0 3px rgba(163,59,59,.15); }

/* Bandeaux sous la barre */
.closed-banner, .pending-banner, .annonce { max-width: var(--maxw); margin: 0 auto; }
.closed-banner { margin-top: 12px; padding: 12px 16px; background: var(--ink); color: #f6f1e8; border-radius: var(--r-btn); 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); }
.closed-banner span { font-size: 13px; color: rgba(246,241,232,.75); line-height: 1.45; }
.pending-banner { margin-top: 12px; padding: 12px 16px; background: var(--gold-tint); border: 1px solid var(--gold); border-radius: var(--r-btn); 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: 13.5px; }
.pending-banner span { font-size: 12px; color: var(--muted); }
.annonce { margin-top: 12px; padding: 8px 16px; background: var(--ink); color: #f0e4c8; font-size: 12.5px; font-weight: 600; text-align: center; border-radius: var(--r-btn); }
.annonce span { display: inline-block; transition: opacity .35s; }
.annonce span.fade { opacity: 0; }
@media (max-width: 1023px) { .closed-banner, .pending-banner, .annonce { margin-left: var(--gutter); margin-right: var(--gutter); } }

/* ---------- Mise en page ---------- */
.layout { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.col-brand { padding: 16px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.col-brand .logo { width: 120px; height: 120px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.slogan { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold-deep); margin: 0; }
.tagline { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.intro { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.status-line { width: 100%; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-line .txt { display: flex; flex-direction: column; gap: 3px; text-align: start; min-width: 0; }
.status-line .txt b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status-line .txt small { font-size: 12px; color: var(--muted); }
.search { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--faint); font-size: 14px; border-radius: var(--r-btn); }
.search svg { color: var(--gold-deep); flex: none; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); min-width: 0; padding: 0; }
.search input::placeholder { color: var(--faint); font-size: 14px; }
.infos-list { flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; text-align: start; }
.infos-list li { display: flex; align-items: center; gap: 8px; }
.infos-list svg { color: var(--gold-deep); flex: none; }
.infos-list a { color: inherit; text-decoration: none; }
.infos-list a:hover { color: var(--gold-deep); }

.col-main { padding: 0 0 140px; }
.head-day { padding: 24px 0 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head-day h1 { font-size: 36px; line-height: 1; }
.head-day h1 em { font-style: italic; color: var(--gold-deep); }
.head-day .count { font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-bottom: 5px; }
.head-count { display: none; align-items: baseline; justify-content: space-between; padding-bottom: 12px; }
.head-count h2 { font-size: 26px; }

/* Navigation catégories soulignée */
.catnav { position: sticky; top: 57px; z-index: 20; background: rgba(248,243,234,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 13px; font-weight: 700; white-space: nowrap; padding-top: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { padding-bottom: 10px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; flex: none; }
.catnav a.active { color: var(--text); border-bottom-color: var(--gold); }

/* Offres / bannières : en tête de colonne, bien visibles */
.bannieres { display: grid; gap: 10px; padding: 16px 0 20px; }
.bannieres:empty { display: none; padding: 0; }
.banniere { padding: 12px 16px; border: 1px solid var(--gold); background: var(--gold-tint); display: flex; align-items: center; gap: 14px; border-radius: var(--r-card); }
.banniere-icon { font-family: var(--display); font-style: italic; font-size: 28px; color: var(--gold-deep); line-height: 1; flex: none; }
.banniere h3 { font-family: var(--body); font-size: 13.5px; font-weight: 800; }
.banniere p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.banniere-noir { background: var(--ink); color: #f6f1e8; border-color: var(--ink); } .banniere-noir .banniere-icon { color: var(--gold); } .banniere-noir p { color: rgba(246,241,232,.65); }
.banniere-blanc { background: var(--surface); border-color: var(--line); }
.banniere-rouge { background: #fbe9e9; border-color: #e6b4b4; } .banniere-rouge .banniere-icon { color: var(--bad); }
.banniere-vert { background: var(--good-bg); border-color: #b9dcc5; } .banniere-vert .banniere-icon { color: var(--good); }

/* Pièce du jour */
.featured { margin-top: 16px; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; }
.featured .photo { height: 200px; border-radius: 0; border: 0; cursor: pointer; }
.featured-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.featured-body .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.featured-body h3 { font-size: 24px; line-height: 1.05; cursor: pointer; }
.featured-body .price { font-size: 24px; }
.featured-body p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.featured-body .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; gap: 10px; }
.stock-inline { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock-inline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-inline.good { color: var(--good); } .stock-inline.warn { color: var(--warn); } .stock-inline.bad { color: #8a7f72; } .stock-inline.order { color: var(--gold-deep); }

/* Photo générique */
.photo { position: relative; background: var(--photo); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--photo-icon); overflow: hidden; border-radius: 6px; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.photo .ph .emoji { font-size: 40px; line-height: 1; filter: saturate(.85); }

/* Grille de cartes */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card.epuise { opacity: .55; } .card.epuise:hover { transform: none; }
.card .photo { aspect-ratio: 1 / 1; cursor: pointer; }
.card-body { display: flex; flex-direction: column; gap: 4px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; cursor: pointer; }
.card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; gap: 8px; }

/* Sections catégories */
.section { padding-top: 32px; scroll-margin-top: 110px; }
.section.first { padding-top: 24px; }
.section-head { display: flex; flex-direction: column; gap: 2px; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 0; font-size: 13px; color: var(--muted); }
.rows { display: flex; flex-direction: column; padding-top: 4px; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.row-item .n { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.row-item .n b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; }
.row-item .n small { font-size: 12px; color: var(--muted); }
.row-item .a { display: flex; align-items: center; gap: 12px; flex: none; }
.row-item .a .price { font-size: 18px; }
details.soldout { margin-top: 12px; }
details.soldout summary { cursor: pointer; font-size: 12.5px; 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; }

/* Pied */
.foot-info { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--muted); }
.foot-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-info li { display: flex; align-items: center; gap: 8px; }
.foot-info li.slogan { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--gold-deep); padding-top: 4px; }
.foot-info a { color: inherit; }
.reassure { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Barre panier ---------- */
.cart-fab { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; transform: none; z-index: 50; background: var(--ink); color: #f6f1e8; border: 0; border-radius: var(--r-btn); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 16px 40px rgba(20,17,14,.3); font-weight: 800; font-size: 14px; 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: 10px; }
.cart-fab .count { background: var(--gold); color: var(--ink); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; padding: 0; min-width: 0; }
.cart-fab .total { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--gold); margin: 0; }

/* ---------- 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; }

/* ---------- Bureau (≥ 1024 px) ---------- */
@media (min-width: 1024px) {
  .desk { display: revert !important; }
  .mob { display: none !important; }
  .topbar-inner { padding: 10px var(--gutter); gap: 24px; }
  .brand img { width: 44px; height: 44px; }
  .topbar-search { display: flex; flex: 1; max-width: 420px; margin: 0 auto; padding: 8px 14px; }
  .topbar-status, .topbar-wa { display: flex; }
  .layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
  .col-brand { align-items: flex-start; text-align: start; padding: 0; gap: 20px; position: sticky; top: 96px; align-self: start; }
  .col-brand .logo { width: 180px; height: 180px; margin-inline-start: -8px; }
  .head-day.desk { display: flex !important; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 0 0; }
  .head-day.desk h1 { font-size: 56px; }
  .intro.desk { display: block !important; font-size: 14.5px; }
  .infos-list.desk { display: flex !important; }
  .bannieres { padding: 0 0 24px; }
  .head-count { display: flex; }
  .catnav { display: none; }
  .featured { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 12px; }
  .row-item { padding: 14px 16px; border: 1px solid var(--line-soft); background: var(--surface); border-radius: var(--r-card); }
  .section { scroll-margin-top: 90px; }
  .section.first { padding-top: 16px; }
  .cart-fab { left: auto; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: 360px; bottom: 32px; }
  html[dir="rtl"] .cart-fab { right: auto; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .foot-info { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
  .reassure { flex: 1; }
}
@media (min-width: 1280px) {
  .layout { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .grid .card.is-featured { display: none; }
}
@media (max-width: 380px) { .head-day h1 { font-size: 32px; } }

@media (max-width: 1023px) { .topbar-search { display: none !important; } }

.price .num { font-variant-numeric: lining-nums tabular-nums; }
.section.only-featured { display: none; }
.section.no-stock .section-head h2 { color: var(--muted); }
.stepper .x4 { width: auto; padding: 0 10px; font-size: 12px; border-inline-start: 1px solid var(--line-soft); border-radius: 0 999px 999px 0; }
@media (min-width: 1024px) { .section.only-featured { display: block; } }

/* ---------- Audit UX/UI ---------- */
html { overflow-x: clip; }
:root { --warn: #8c5410; }
.tag-bad { color: #6b6258; }
.tagline, .drawer-foot .hint { color: var(--muted); }
.price, .price .num, .line-price, .totals .grand span:last-child, .cart-fab .total, .modal-body .price { font-variant-numeric: lining-nums tabular-nums; }
.cart-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
.modal-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.plus { width: 44px; height: 44px; }
.stepper button { width: 42px; height: 42px; }
.catnav { padding-top: 0; mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.catnav a { padding: 12px 0; }
.status-line .btn { padding: 10px 14px; }
.notify { display: inline-block; padding: 10px 0; }
.line-name .remove { padding: 8px 0; min-height: 32px; }
.linkish { padding: 10px 8px; }
.close, .modal-close { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.drawer-foot .btn { padding: 14px 18px; }
.field.err input, .field.err textarea { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(163,59,59,.15); }
.confirm .recap { overflow-wrap: anywhere; }
.photo .badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.head-count h2 { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.infos-list li { align-items: flex-start; } .infos-list svg { margin-top: 2px; }
.infos-list a { text-decoration: underline; text-underline-offset: 3px; }
.closed-banner, .pending-banner, .annonce { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto; }
.card { padding: 12px; gap: 12px; }
.modes, .drawer-foot { gap: 12px; }
@media (max-width: 1023px) {
  .col-brand { gap: 8px; padding-top: 12px; }
  .col-brand .logo { width: 72px; height: 72px; }
  .bannieres { padding: 12px 0 16px; }
  .head-day { padding: 16px 0 8px; }
  .card .photo { aspect-ratio: 4 / 3; }
  .annonce { display: none; }
  .line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "actions price"; }
  .line-name { grid-area: name; } .line .stepper { grid-area: actions; justify-self: start; } .line-price { grid-area: price; align-self: center; }
  .suggest-item:nth-child(n+4) { display: none; }
  .modal-card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; }
}
@media (min-width: 1024px) {
  .layout { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  .col-brand { max-height: calc(100vh - 96px); overflow-y: auto; }
  .grid:has(> .card:only-child) .card { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
  .grid:has(> .card:only-child) .card .photo { aspect-ratio: auto; height: 100%; min-height: 200px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .row-item .n b { font-size: 17px; }
  .cart-fab { width: auto; min-width: 300px; padding: 12px 20px; }
  .topbar-search { margin: 0 0 0 16px; }
}
@media (min-width: 1280px) { .layout { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; } }

/* ---------- Mobile : en-tête qui apparaît au défilement, recherche révélée ---------- */
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--gold-deep); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hero-annonce { font-size: 12px; color: var(--gold-deep); font-weight: 700; line-height: 1.4; padding-top: 6px; }
.search-reveal { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.search-reveal.open { max-height: 80px; }
.search-reveal .search { margin: 8px 0 4px; }
@media (max-width: 1023px) {
  .topbar { position: fixed; top: 0; left: 0; right: 0; transform: translateY(-100%); transition: transform .25s ease; box-shadow: 0 6px 20px rgba(20,17,14,.06); }
  body.hdr .topbar { transform: none; }
  .topbar-inner { padding: 6px var(--gutter); }
  .catnav { top: 0; transition: top .25s ease; }
  body.hdr .catnav { top: 53px; }
  .col-brand { position: relative; padding: 18px 0 0; gap: 6px; }
  .col-brand .logo { width: 84px; height: 84px; }
  .hero-lang { position: absolute; top: 10px; right: 0; left: auto; }
  html[dir="rtl"] .hero-lang { right: auto; left: 0; }
  .slogan { font-size: 18px; }
  .tagline { font-size: 11px; }
  .status-line { display: none !important; }
  .bannieres { padding: 12px 0 10px; }
  .banniere { padding: 8px 12px; gap: 10px; }
  .banniere-icon { font-size: 20px; }
  .banniere h3 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .banniere p { display: none; }
  .head-day { padding: 10px 0 4px; }
  .head-day h1 { font-size: 26px; }
  .featured { margin-top: 12px; }
  .featured .photo { height: 180px; }
  .section { scroll-margin-top: 60px; }
  body.hdr .section { scroll-margin-top: 110px; }
}
@media (min-width: 1024px) { .hero-lang, .hero-annonce, .search-reveal, .icon-btn.mob { display: none !important; } }

/* 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; }
@media (max-width: 1023px) { .hero-annonce { padding: 0 0 10px; font-weight: 600; color: var(--muted); } }

@media (max-width: 1023px) { .head-day .eyebrow { letter-spacing: .12em; font-size: 10.5px; } }
@media (max-width: 1023px) {
  .head-day.mob { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; row-gap: 4px; }
  .head-day.mob > div:first-child { display: contents; }
  .head-day.mob .eyebrow { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .14em; font-size: 10.5px; }
  .head-day.mob h1 { grid-column: 1; }
  .head-day.mob .count { grid-column: 2; padding-bottom: 4px; }
}
