/* =========================================================
   SNACK BOUSHABA — Page Commander (mobile-first)
   ========================================================= */
.page-order { background: var(--color-white-canvas); }
:root { --tabs-h: 64px; --cart-w: 380px; }

/* ---------- Nav : bouton panier (mobile/tablette) ---------- */
.nav__cart {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-white-canvas);
  color: var(--color-navy);
  display: grid; place-items: center;
  box-shadow: var(--shadow-xl);
}
.nav__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--color-pink); color: var(--color-night-ink);
  font-family: var(--font-sweetsans); font-size: 12px; font-weight: var(--font-weight-bold);
  display: grid; place-items: center;
}
.nav__cart-count:empty, .nav__cart-count[data-zero] { display: none; }

/* ---------- En-tête ---------- */
.ohero {
  position: relative;
  background: var(--color-night-ink);
  color: var(--color-white-canvas);
  padding: calc(var(--nav-h) + 56px) 0 48px;
  overflow: hidden;
}
.ohero__bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 90% at 85% 40%, var(--color-indigo-dusk) 0%, var(--color-navy) 40%, var(--color-night-ink) 85%); }
.ohero__glow {
  position: absolute; right: -10%; top: -30%;
  width: 60vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 106, 169, .45) 0%, rgba(236, 106, 169, 0) 65%);
  filter: blur(60px);
}
.ohero__watermark {
  position: absolute; right: -4vw; bottom: -18vw;
  display: flex;
  font-family: 'Alfa Slab One', var(--font-grenette);
  font-size: 38vw; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(251, 249, 252, .08);
}
.ohero__inner { position: relative; z-index: 1; }
.ohero__eyebrow { margin-bottom: var(--spacing-16); }
.ohero__title {
  font-family: var(--font-grenette);
  font-weight: var(--font-weight-bold);
  font-size: clamp(46px, 9vw, 112px);
  line-height: .9;
  letter-spacing: -0.035em;
  margin-bottom: var(--spacing-24);
}
.ohero__title em { font-style: normal; font-weight: var(--font-weight-extralight); color: var(--color-pink); }
.ohero__chips { display: flex; flex-wrap: wrap; gap: var(--spacing-8); }
.ohero__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-badges);
  background: rgba(251, 249, 252, .08);
  box-shadow: inset 0 0 0 1px rgba(251, 249, 252, .14);
  font-family: var(--font-sweetsans); font-size: var(--text-body-sm); font-weight: 500;
}
.ohero__chips svg { width: 16px; height: 16px; fill: none; stroke: var(--color-pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Onglets catégories (sticky) ---------- */
.otabs {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 60;
  background: rgba(251, 249, 252, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 27, 75, .08);
}
.otabs__scroller {
  display: flex; gap: var(--spacing-8);
  overflow-x: auto;
  padding: 12px var(--gutter);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  max-width: calc(var(--page-max-width) + var(--gutter) * 2);
  margin: 0 auto;
}
.otabs__scroller::-webkit-scrollbar { display: none; }
.otab {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: var(--radius-buttons);
  font-family: var(--font-sweetsans);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  background: var(--color-lavender-mist);
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.otab:hover { background: #d9d6ea; }
.otab.is-active { background: var(--color-navy); color: var(--color-white-canvas); }

/* ---------- Layout ---------- */
.olayout { padding-top: var(--spacing-24); padding-bottom: 120px; }
.omenu { min-width: 0; }

/* ---------- Catégorie ---------- */
.ocat { padding: var(--spacing-40) 0 var(--spacing-8); scroll-margin-top: calc(var(--nav-h) + var(--tabs-h) + 24px); }
.ocat__head { display: flex; align-items: center; gap: var(--spacing-16); margin-bottom: var(--spacing-20); }
.ocat__img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--color-white-canvas), 0 0 0 5px var(--color-pink);
  background: var(--color-lavender-mist);
}
.ocat__img img { width: 100%; height: 100%; object-fit: cover; }
/* En-tête de catégorie : logo BB du snack (identique partout) */
.ocat__img--logo { background: #fff; }
.ocat__img--logo img { transform: scale(1.18); }
.ocat__title {
  font-family: var(--font-grenette);
  font-weight: var(--font-weight-bold);
  font-size: clamp(28px, 4.4vw, var(--text-heading-lg));
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}
.ocat__sub { margin-top: 6px; color: var(--color-slate-gray); font-size: var(--text-body-sm); line-height: 1.4; }

.ocat__grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-12); }

/* ---------- Plat ---------- */
.dish {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--spacing-16);
  width: 100%;
  text-align: left;
  padding: 18px 16px 18px 20px;
  border-radius: var(--radius-cards);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(30, 27, 75, .08);
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.dish:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1px rgba(236, 106, 169, .5), var(--shadow-xl); }
.dish:active { translate: 0 1px; }
.dish__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dish--media { grid-template-columns: auto 1fr auto; padding: 12px 14px 12px 12px; gap: 14px; }
.dish__media {
  width: 92px; height: 92px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-lavender-mist);
  flex-shrink: 0;
}
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.dish:hover .dish__media img { transform: scale(1.08); }

/* Photo dans la fenêtre de personnalisation */
.custom__media {
  position: relative;
  margin: -22px -20px 20px;
  height: clamp(190px, 30vh, 260px);
  overflow: hidden;
  background: var(--color-lavender-mist);
}
.custom__media[hidden] { display: none; }
.custom__media img { width: 100%; height: 100%; object-fit: cover; }
.custom__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, rgba(251, 249, 252, 0), rgba(251, 249, 252, .9));
  pointer-events: none;
}
.custom__media figcaption {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 4px 10px; border-radius: var(--radius-badges);
  background: rgba(14, 12, 38, .6); color: var(--color-white-canvas);
  font-family: var(--font-sweetsans); font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.custom__media figcaption[hidden] { display: none; }
.custom__media + .custom__head { margin-top: -6px; }
.dish__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dish__badge {
  padding: 3px 9px; border-radius: var(--radius-badges);
  background: var(--color-pink); color: var(--color-night-ink);
  font-family: var(--font-sweetsans); font-size: 10px; font-weight: var(--font-weight-bold);
  letter-spacing: .1em; text-transform: uppercase;
}
.dish__badge--new { background: var(--color-navy); color: var(--color-white-canvas); }
.dish__tag {
  padding: 3px 9px; border-radius: var(--radius-badges);
  background: var(--color-lavender-mist); color: var(--color-navy);
  font-family: var(--font-sweetsans); font-size: 10px; font-weight: var(--font-weight-bold);
  letter-spacing: .1em; text-transform: uppercase;
}
.dish__name {
  font-family: var(--font-grenette);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-subheading);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}
.dish__desc { color: var(--color-slate-gray); font-size: var(--text-body-sm); line-height: 1.35; }
.dish__price {
  font-family: var(--font-grenette);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-body-lg);
  color: var(--color-navy);
}
.dish__add {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-pink);
  color: var(--color-night-ink);
  display: grid; place-items: center;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.dish:hover .dish__add { transform: rotate(90deg) scale(1.06); }
.dish__add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dish__incart {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--color-navy); color: var(--color-white-canvas);
  font-family: var(--font-sweetsans); font-size: 11px; font-weight: var(--font-weight-bold);
  display: grid; place-items: center;
}
.dish__incart[hidden] { display: none; }

.dish--info {
  cursor: default;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .18);
  border: 0;
  background-image: repeating-linear-gradient(135deg, rgba(30, 27, 75, .03) 0 10px, transparent 10px 20px);
}
.dish--info:hover { translate: none; box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .18); }
.dish__info-price { font-family: var(--font-grenette); font-weight: var(--font-weight-bold); color: #b8477f; font-size: var(--text-body-lg); white-space: nowrap; }
/* Poisson au poids : carte cliquable « par téléphone » */
.dish--call { cursor: pointer; }
.dish--call:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1.5px var(--color-pink), var(--shadow-xl); }
.dish__add--call { background: var(--color-navy); color: var(--color-pink); }
.dish__add--call svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.dish--call:hover .dish__add--call { transform: rotate(-12deg) scale(1.06); }

/* Fenêtre « commander par téléphone » */
.call-info {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 18px 0 16px;
  padding: 16px;
  border-radius: var(--radius-cards);
  background: var(--color-lavender-mist);
  color: var(--color-navy);
  line-height: 1.45;
}
.call-info__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--color-navy); display: grid; place-items: center; }
.call-info__icon svg { width: 20px; height: 20px; fill: var(--color-pink); }
.call-list { border-top: 1px solid rgba(30, 27, 75, .1); }
.call-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(30, 27, 75, .08); color: var(--color-navy); }
.call-list li:first-child span { font-family: var(--font-sweetsans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-slate-gray); }
.call-list b { font-family: var(--font-grenette); }
.call-note { margin: 14px 0 8px; font-size: 13px; color: var(--color-slate-gray); line-height: 1.45; }
.sheet--call .sheet__add { text-decoration: none; }

/* ---------- Panier ---------- */
.cart {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--color-white-canvas);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(14, 12, 38, .45);
  transform: translateY(105%);
  visibility: hidden;
}
.cart__handle, .sheet__handle {
  width: 44px; height: 5px; border-radius: 5px;
  background: rgba(30, 27, 75, .18);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.cart__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px 12px; }
.cart__head .eyebrow { margin-bottom: 8px; }
.cart__title {
  font-family: var(--font-grenette); font-weight: var(--font-weight-bold);
  font-size: var(--text-heading-sm); line-height: 1; color: var(--color-navy); letter-spacing: -0.02em;
}
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; min-height: 120px; }
.cart__empty { text-align: center; padding: 32px 12px; color: var(--color-slate-gray); line-height: 1.45; }
.cart__empty strong { color: var(--color-navy); }
.cart__empty-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--color-lavender-mist);
  display: grid; place-items: center;
}
.cart__empty-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--color-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart__empty[hidden] { display: none; }

.cart__list { display: flex; flex-direction: column; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid rgba(30, 27, 75, .08); }
.citem__name { font-family: var(--font-grenette); font-weight: var(--font-weight-bold); font-size: var(--text-body-lg); color: var(--color-navy); line-height: 1.15; }
.citem__price { font-family: var(--font-grenette); font-weight: var(--font-weight-bold); color: var(--color-navy); white-space: nowrap; }
.citem__opts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; color: var(--color-slate-gray); font-size: 13px; line-height: 1.35; }
.citem__opts b { color: var(--color-navy); font-weight: 600; }
.citem__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.qty--sm { height: 38px; }
.qty--sm .qty__btn { width: 38px; height: 38px; font-size: 18px; }
.qty--sm .qty__val { min-width: 26px; font-size: 15px; }
.citem__edit { font-family: var(--font-sweetsans); font-size: 13px; font-weight: var(--font-weight-bold); color: var(--color-navy); text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }

.cart__foot {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(30, 27, 75, .08);
  background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.cart__row { display: flex; justify-content: space-between; font-size: var(--text-body); color: var(--color-navy); }
.cart__row--muted { color: var(--color-slate-gray); font-size: var(--text-body-sm); }
.cart__row[hidden], .cart__min[hidden] { display: none; }
.citem__cat { display: block; margin-top: 3px; font-family: var(--font-sweetsans); font-size: 11px; font-weight: var(--font-weight-bold); letter-spacing: .1em; text-transform: uppercase; color: #b8477f; }
.cart__row--total { font-family: var(--font-grenette); font-weight: var(--font-weight-bold); font-size: var(--text-subheading); }
.cart__note { font-size: 12px; color: var(--color-slate-gray); text-align: center; }
.cart__min { font-size: 13px; color: #b8477f; text-align: center; font-weight: 600; }

/* Jauge « livraison offerte dès 75 € » */
.cart__free {
  display: grid; gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(236, 106, 169, .1);
  box-shadow: inset 0 0 0 1px rgba(236, 106, 169, .25);
}
.cart__free[hidden] { display: none; }
.cart__free p { font-size: 13px; line-height: 1.35; color: var(--color-navy, #1e1b4b); text-align: center; }
.cart__free strong { color: #b8477f; }
.cart__free-track { display: block; height: 6px; border-radius: 6px; background: rgba(30, 27, 75, .1); overflow: hidden; }
.cart__free-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f6a9cd, #ec6aa9); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.cart__free.is-done { background: rgba(46, 160, 100, .1); box-shadow: inset 0 0 0 1px rgba(46, 160, 100, .3); }
.cart__free.is-done strong { color: #1f8a55; }
.cart__free.is-done .cart__free-track span { background: linear-gradient(90deg, #5ccf92, #1f8a55); }
[data-cart-delivery].is-free { color: #1f8a55; font-weight: 700; }

/* Horaires : panier fermé + pastille Ouvert / Fermé */
.cart__closed {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(30, 27, 75, .06); box-shadow: inset 0 0 0 1px rgba(30, 27, 75, .14);
  font-size: 13px; line-height: 1.4; text-align: center; color: var(--color-navy);
}
.cart__closed[hidden] { display: none; }
.cart__closed strong { color: #b8477f; }
.ohero__chips li.ohero__status { font-weight: 700; }
.ohero__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 249, 252, .5); flex: none; }
.ohero__status.is-open .ohero__dot { background: #5ccf92; box-shadow: 0 0 0 4px rgba(92, 207, 146, .22); }
.ohero__status.is-closed .ohero__dot { background: #f0707a; box-shadow: 0 0 0 4px rgba(240, 112, 122, .22); }
.field__hint { font-weight: 500; opacity: .65; margin-left: 6px; font-size: .9em; }

/* Pastille « livraison offerte » de l'en-tête */
.ohero__chips li.ohero__chip--offer { background: var(--color-pink); color: var(--color-night-ink, #0e0c26); box-shadow: none; font-weight: 700; }
.ohero__chips li.ohero__chip--offer svg { stroke: currentColor; }
.cart__cta { justify-content: center; width: 100%; padding: 18px 24px; }
.cart__cta:disabled { opacity: .4; pointer-events: none; }

body.cart-open .cart { visibility: visible; }

/* Barre panier mobile */
.cartbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 110;
  height: 60px;
  padding: 0 8px 0 8px;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: var(--color-white-canvas);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 18px 40px -12px rgba(14, 12, 38, .6);
  transform: translateY(160%);
  transition: transform .6s var(--ease-out);
}
.cartbar.is-visible { transform: none; }
.cartbar__count {
  min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--color-pink); color: var(--color-night-ink);
  display: grid; place-items: center;
  font-family: var(--font-sweetsans); font-weight: var(--font-weight-bold);
}
.cartbar__label { flex: 1; text-align: left; font-family: var(--font-sweetsans); font-weight: var(--font-weight-bold); font-size: var(--text-body-sm); letter-spacing: .06em; text-transform: uppercase; }
.cartbar__total { font-family: var(--font-grenette); font-weight: var(--font-weight-bold); font-size: var(--text-body-lg); padding-right: 14px; }

/* Voile */
.scrim {
  position: fixed; inset: 0;
  z-index: 115;
  background: rgba(14, 12, 38, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease-out);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* ---------- Sheets (personnalisation / checkout / succès) ---------- */
.sheet {
  position: fixed; inset: 0;
  z-index: 130;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.sheet.is-open { pointer-events: auto; visibility: visible; }
.sheet__panel {
  position: relative;
  width: 100%;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--color-white-canvas);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(14, 12, 38, .5);
  transform: translateY(105%);
  overflow: hidden;
}
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-lavender-mist);
  color: var(--color-navy);
  display: grid; place-items: center;
  transition: background-color .3s, transform .5s var(--ease-out);
}
.icon-btn:hover { background: #d9d6ea; transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 8px; flex: 1; }
.sheet__foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(30, 27, 75, .08);
  background: #fff;
}
.sheet__foot--stack { flex-direction: column; align-items: stretch; }
.sheet__add { flex: 1; justify-content: center; padding: 18px 22px; font-size: var(--text-body-sm); }
.sheet__add b { font-weight: var(--font-weight-bold); }
.sheet__add .wa { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.custom__head { padding-right: 52px; margin-bottom: var(--spacing-8); }
.custom__head .eyebrow { margin-bottom: 10px; }
.custom__title {
  font-family: var(--font-grenette); font-weight: var(--font-weight-bold);
  font-size: clamp(30px, 7vw, var(--text-heading));
  line-height: 1; letter-spacing: -0.03em;
  color: var(--color-navy);
}
.custom__desc { margin-top: 8px; color: var(--color-slate-gray); line-height: 1.45; }
.custom__base { margin-top: 10px; font-family: var(--font-grenette); font-weight: var(--font-weight-bold); color: var(--color-pink); font-size: var(--text-subheading); }
.custom__base:empty, .custom__desc:empty { display: none; }

.cgroup { padding: 18px 0; border-top: 1px solid rgba(30, 27, 75, .08); }
.cgroup:first-child { border-top: 0; }
.cgroup__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.custom__group-label {
  display: block;
  font-family: var(--font-grenette); font-weight: var(--font-weight-bold);
  font-size: var(--text-body-lg); color: var(--color-navy); letter-spacing: -0.01em;
}
.cgroup__hint { font-size: 12px; color: var(--color-slate-gray); margin-top: 2px; }
.cgroup__badge {
  flex-shrink: 0;
  padding: 5px 10px; border-radius: var(--radius-badges);
  font-family: var(--font-sweetsans); font-size: 11px; font-weight: var(--font-weight-bold);
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--color-lavender-mist); color: var(--color-navy);
  transition: background-color .3s, color .3s;
}
.cgroup__badge--req { background: var(--color-pink); color: var(--color-night-ink); }
.cgroup__badge--ok { background: var(--color-navy); color: var(--color-white-canvas); }
.cgroup__side { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cgroup__clear {
  padding: 6px 12px;
  min-height: 32px;
  border-radius: var(--radius-badges);
  font-family: var(--font-sweetsans); font-size: 12px; font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .2);
  background: #fff;
  transition: background-color .3s, color .3s;
}
.cgroup__clear.is-on { background: var(--color-pink); color: var(--color-night-ink); box-shadow: none; }
.cgroup.is-error .cgroup__badge--req { animation: shake .45s; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .14);
  font-family: var(--font-sweetsans); font-size: 15px; font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  user-select: none;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s, transform .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt span small { font-size: 12px; font-weight: 700; color: #b8477f; }
.opt span i { font-style: normal; font-size: 12px; font-weight: 500; opacity: .7; }
.opt:hover span { box-shadow: inset 0 0 0 1.5px var(--color-navy); }
.opt input:checked + span { background: var(--color-navy); color: var(--color-white-canvas); box-shadow: none; }
.opt input:checked + span small { color: var(--color-pink); }
.opt input:checked + span::before {
  content: ""; width: 14px; height: 14px; margin-left: -2px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec6aa9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>");
}
.opt input:focus-visible + span { outline: 2px solid var(--color-pink); outline-offset: 2px; }
.opt input:disabled + span { opacity: .35; cursor: not-allowed; }
.opt:active span { transform: scale(.96); }

.custom__note { display: block; padding: 18px 0 8px; border-top: 1px solid rgba(30, 27, 75, .08); }
.custom__note .custom__group-label { margin-bottom: 10px; }
.custom__note textarea, .field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--color-navy);
  background: #fff;
  border: 0;
  border-radius: var(--radius-inputs);
  box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .14);
  padding: 14px 14px;
  resize: vertical;
  transition: box-shadow .3s;
}
.custom__note textarea:focus, .field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--color-navy), 0 0 0 4px rgba(236, 106, 169, .25); }
.field input { height: 52px; }
.field.is-invalid input { box-shadow: inset 0 0 0 2px #c2185b; }

/* Quantité */
.qty {
  display: inline-flex; align-items: center;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-lavender-mist);
  flex-shrink: 0;
}
.qty__btn {
  width: 48px; height: 52px;
  border-radius: 50%;
  font-size: 22px; font-weight: 500;
  color: var(--color-navy);
  display: grid; place-items: center;
}
.qty__btn:active { transform: scale(.9); }
.qty__val { min-width: 28px; text-align: center; font-family: var(--font-grenette); font-weight: var(--font-weight-bold); font-size: var(--text-body-lg); color: var(--color-navy); }

/* Formulaire */
.checkout { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--font-sweetsans); font-size: 13px; font-weight: var(--font-weight-bold); color: var(--color-navy); }
.field > span em { font-style: normal; font-weight: 400; color: var(--color-slate-gray); }
.field[hidden] { display: none; }
.field--time, .field--cash { margin-top: -4px; margin-bottom: 8px; }
.seg { border: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 12px; }
.seg legend { margin-bottom: 10px; width: 100%; }
.seg__opt { position: relative; flex: 1 1 140px; }
.seg__opt input { position: absolute; opacity: 0; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 14px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .14);
  font-family: var(--font-sweetsans); font-weight: var(--font-weight-bold); font-size: 15px;
  color: var(--color-navy);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.seg__opt input:checked + span { background: var(--color-navy); color: var(--color-white-canvas); box-shadow: none; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--color-pink); outline-offset: 2px; }

.recap {
  margin: 18px 0 10px;
  padding: 18px;
  border-radius: var(--radius-cards);
  background: var(--color-lavender-mist);
  font-size: 14px; color: var(--color-navy);
}
.recap h3 { font-family: var(--font-grenette); font-size: var(--text-body-lg); margin-bottom: 10px; }
.recap li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(30, 27, 75, .15); }
.recap li span:first-child { min-width: 0; }
.recap li small { display: block; color: var(--color-slate-gray); font-size: 12px; }
.recap__lines, .recap__vat { padding-top: 10px; }
.recap__vat { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(30, 27, 75, .15); color: var(--color-slate-gray); font-size: 13px; }
.recap__line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.recap__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-navy); color: var(--color-white-canvas);
  font-family: var(--font-grenette); font-weight: var(--font-weight-bold); font-size: var(--text-subheading);
}
.recap__total span:last-child { color: var(--color-pink); }
.recap__pay { margin-top: 10px; font-size: 12px; color: var(--color-slate-gray); text-align: center; }

/* Frais de livraison calculés */
.delivery-quote {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 6px; padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-lavender-mist); color: var(--color-navy);
  font-size: 14px; line-height: 1.4;
}
.delivery-quote__icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--color-navy); display: grid; place-items: center; }
.delivery-quote__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--color-pink); stroke-width: 1.8; stroke-linejoin: round; }
.delivery-quote[data-state="ok"] { background: #e9f7ee; }
.delivery-quote[data-state="loading"] .delivery-quote__icon { animation: pulse 1s ease-in-out infinite; }
.delivery-quote[data-state="notfound"] { background: #fdeef5; }
@keyframes pulse { 50% { opacity: .5; } }
.delivery-rules { font-size: 12px; color: var(--color-slate-gray); margin: 0 0 8px; line-height: 1.4; }

/* Paiement par carte */
.pay-info {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 8px 0 12px; padding: 14px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .14);
  background: #fff; color: var(--color-navy); font-size: 14px; line-height: 1.45;
}
.pay-info__icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--color-pink); display: grid; place-items: center; }
.pay-info__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--color-night-ink); stroke-width: 1.8; stroke-linecap: round; }

.demo-note {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-lavender-mist);
  color: var(--color-navy);
  font-size: 13px; font-weight: 600; line-height: 1.4;
  text-align: center;
}
.demo-note[hidden] { display: none; }
.form-error { color: #c2185b; font-weight: 600; font-size: 14px; text-align: center; }
.link-btn {
  align-self: center;
  font-family: var(--font-sweetsans); font-size: 14px; font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  text-decoration: underline; text-underline-offset: 4px;
  padding: 8px;
}

/* Succès */
.success { padding: 44px 24px calc(32px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.success__badge { width: 88px; height: 88px; margin-bottom: 14px; }
.success__badge svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success__badge circle { stroke: var(--color-pink); stroke-width: 3; fill: var(--color-lavender-mist); }
.success__badge path { stroke: var(--color-navy); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; }
.success.is-in .success__badge path { transition: stroke-dashoffset .7s .25s var(--ease-out); stroke-dashoffset: 0; }
.success__help { font-size: 14px; color: var(--color-slate-gray); margin-top: 8px; }
.success__help a { color: var(--color-navy); font-weight: 700; }
.success__actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; top: calc(var(--nav-h) + 24px);
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--color-navy); color: var(--color-white-canvas);
  font-family: var(--font-sweetsans); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-xl);
  transform: translate(-50%, -20px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast b { color: var(--color-pink); }

/* Point qui vole vers le panier */
.fly {
  position: fixed; z-index: 210;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(236, 106, 169, .25);
  pointer-events: none;
}

.footer--compact { padding-top: 64px; }

/* =========================================================
   ALLERGÈNES
   ========================================================= */
.otab--allergens { background: var(--color-blush); color: #b8477f; }
.otab--allergens.is-active { background: var(--color-pink); color: var(--color-night-ink); }

.allergens {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-white-canvas);
  padding: var(--section-pad) 0;
  scroll-margin-top: calc(var(--nav-h) + var(--tabs-h) + 12px);
}
.allergens__bg { position: absolute; inset: 0; pointer-events: none; }
.allergens__glow {
  position: absolute; right: -15%; top: -35%;
  width: 70vw; max-width: 820px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 106, 169, .28) 0%, rgba(236, 106, 169, 0) 65%);
  filter: blur(40px);
}
.allergens__inner { position: relative; }
.allergens__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: var(--spacing-40); }
.allergens__title {
  font-family: var(--font-grenette); font-weight: var(--font-weight-bold);
  font-size: clamp(38px, 6vw, var(--text-display));
  line-height: .95; letter-spacing: -0.03em;
}
.allergens__title em { font-style: normal; font-weight: var(--font-weight-extralight); color: var(--color-pink); }
.allergens__intro p { color: rgba(251, 249, 252, .75); font-size: var(--text-body-lg); line-height: 1.5; margin-bottom: var(--spacing-20); }
.allergens__call {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius-full);
  background: rgba(251, 249, 252, .08);
  box-shadow: inset 0 0 0 1px rgba(251, 249, 252, .16);
  font-size: 13px; line-height: 1.35; color: rgba(251, 249, 252, .85);
  transition: background-color .3s;
}
.allergens__call:hover { background: rgba(236, 106, 169, .18); }
.allergens__call svg { width: 40px; height: 40px; padding: 10px; flex-shrink: 0; border-radius: 50%; background: var(--color-pink); fill: var(--color-night-ink); }
.allergens__call b { font-family: var(--font-grenette); font-size: var(--text-body-lg); color: var(--color-white-canvas); }

.allergens__legend { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--spacing-20); }

/* Pastilles allergènes (numéro européen + nom) */
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.al-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 4px;
  border-radius: var(--radius-full);
  font-family: var(--font-sweetsans); font-size: 12px; font-weight: var(--font-weight-bold);
  letter-spacing: .02em; white-space: nowrap;
}
.al-chip i {
  font-style: normal;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}
.al-chip--on { background: var(--color-pink); color: var(--color-night-ink); }
.al-chip--on i { background: var(--color-night-ink); color: var(--color-pink); }
.al-chip--trace { color: var(--color-pink); box-shadow: inset 0 0 0 1.5px var(--color-pink); }
.al-chip--trace i { background: rgba(236, 106, 169, .2); color: var(--color-pink); }

.allergens__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.al-card {
  padding: 20px;
  border-radius: var(--radius-cards);
  background: rgba(251, 249, 252, .05);
  box-shadow: inset 0 0 0 1px rgba(251, 249, 252, .1);
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color .4s, translate .5s var(--ease-out);
}
.al-card:hover { background: rgba(251, 249, 252, .08); translate: 0 -3px; }
.al-card h3 { font-family: var(--font-grenette); font-weight: var(--font-weight-bold); font-size: var(--text-subheading); letter-spacing: -0.01em; }
.al-card p { font-size: 13px; line-height: 1.45; color: rgba(251, 249, 252, .65); }
.al-card--sea { background: rgba(236, 106, 169, .08); box-shadow: inset 0 0 0 1px rgba(236, 106, 169, .25); }

.allergens__list { margin-top: var(--spacing-40); padding-top: var(--spacing-24); border-top: 1px solid rgba(251, 249, 252, .12); }
.allergens__list h3 { font-family: var(--font-sweetsans); font-size: var(--text-caption); letter-spacing: .16em; text-transform: uppercase; color: var(--color-pink); margin-bottom: var(--spacing-16); }
.allergens__list ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 20px; }
.allergens__list li { display: flex; align-items: flex-start; gap: 10px; }
.allergens__list li i {
  font-style: normal; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 249, 252, .1); color: var(--color-pink);
  font-family: var(--font-sweetsans); font-size: 12px; font-weight: var(--font-weight-bold);
}
.allergens__list li b { display: block; font-size: 14px; }
.allergens__list li small { display: block; font-size: 12px; color: rgba(251, 249, 252, .55); line-height: 1.35; }
.allergens__disclaimer { margin-top: var(--spacing-24); font-size: 12px; line-height: 1.5; color: rgba(251, 249, 252, .55); max-width: 760px; }

/* Allergènes dans la fenêtre d'un plat (fond clair) */
.custom__allergens { padding: 18px 0 6px; border-top: 1px solid rgba(30, 27, 75, .08); }
.custom__allergens[hidden] { display: none; }
.custom__allergens-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.custom__allergens-link { font-family: var(--font-sweetsans); font-size: 12px; font-weight: var(--font-weight-bold); color: var(--color-navy); text-decoration: underline; text-underline-offset: 3px; }
.custom__allergens .al-chip--trace { color: #b8477f; box-shadow: inset 0 0 0 1.5px #b8477f; }
.custom__allergens .al-chip--trace i { background: rgba(184, 71, 127, .12); color: #b8477f; }
.custom__allergens-none { font-size: 13px; color: var(--color-slate-gray); line-height: 1.45; }
.custom__allergens-note { margin-top: 8px; font-size: 11px; color: var(--color-slate-gray); }

@media (max-width: 900px) {
  .allergens__head { grid-template-columns: 1fr; align-items: start; }
  .is-lite .allergens__glow { filter: blur(30px); }
}
@media (hover: none) { .al-card:hover { translate: none; background: rgba(251, 249, 252, .05); } }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 640px) {
  .ocat__grid { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .ohero { padding-bottom: 64px; }
}

@media (min-width: 768px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { width: min(600px, 100%); max-height: 88vh; border-radius: 28px; transform: translateY(40px); opacity: 0; }
  .sheet__handle { display: none; }
  .sheet__scroll { padding: 32px 32px 8px; }
  .custom__media { margin: -32px -32px 22px; }
  .dish__media { width: 104px; height: 104px; }
  .sheet__foot { padding: 16px 32px 20px; }
}

@media (min-width: 1024px) {
  .olayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cart-w);
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
  }
  .cart {
    position: sticky;
    top: calc(var(--nav-h) + var(--tabs-h) + 36px);
    left: auto; right: auto; bottom: auto;
    z-index: 1;
    margin-top: var(--spacing-40);
    max-height: calc(100vh - var(--nav-h) - var(--tabs-h) - 60px);
    border-radius: var(--radius-cards);
    box-shadow: inset 0 0 0 1px rgba(30, 27, 75, .08), var(--shadow-xl);
    transform: none !important;
    visibility: visible;
    background: #fff;
  }
  .cart__handle, .cart__close { display: none; }
  .cart__foot { border-radius: 0 0 var(--radius-cards) var(--radius-cards); }
  .cartbar, .nav__cart { display: none; }
}

@media (max-width: 900px) {
  .page-order .nav__actions { gap: 8px; }
  .page-order .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet__panel { transform: none; opacity: 1; }
}

/* Mode léger (mobile) : pas de flou d'arrière-plan sur les onglets collants */
.is-lite .otabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 249, 252, .98); }
.is-lite .ohero__glow { filter: blur(40px); }

/* Écrans tactiles : pas d'effets de survol « collés » après un tap, retour visuel au toucher */
@media (hover: none) {
  .dish:hover { translate: none; box-shadow: inset 0 0 0 1px rgba(30, 27, 75, .08); }
  .dish:hover .dish__media img, .dish:hover .dish__add { transform: none; }
  .dish:active { scale: .985; }
  .otab:not(.is-active):hover { background: var(--color-lavender-mist); }
  .opt:hover span { box-shadow: inset 0 0 0 1.5px rgba(30, 27, 75, .14); }
  .icon-btn:hover { transform: none; background: var(--color-lavender-mist); }
}
