/* Zado — warm food-table colours; all presentation stays in this theme. */
:root {
  --paper: #fffaf2;
  --surface: #ffffff;
  --ink: #30251d;
  --muted: #716052;
  --line: #d8c8b7;
  --fill: #f1e6d7;
  --accent: #a33f25;
  --accent-dark: #80301c;
  --accent-soft: #f8e4d9;
  --danger: #9e2f27;
  --danger-soft: #fbe9e3;
  --success: #285b35;
  --success-soft: #e9f0df;
  --gold: #f0c86d;
  --gold-soft: #f8edcf;
  --price: #1b6e2c;
  --price-old: #b3261e;
  --on-ink: #ffffff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: Georgia, "Times New Roman", serif;
  --radius: 14px;
  --dur-step: 400ms;
  --dur-walk: 400ms;
  --dur-nudge: 700ms;
  --mascot-moods: url(/assets/mascotte/humeurs.webp);
  --mascot-walk: url(/assets/mascotte/marche.webp);
}

body { line-height: 1.45; }
::selection { background: var(--gold); color: var(--ink); }
input { caret-color: var(--accent); }
a, button { text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.app { padding-top: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.view { gap: 16px; }
.step { gap: 14px; }
h1 { font-size: 2rem; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-family: var(--font-body); font-weight: 750; line-height: 1.3; }
.bar { min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-title); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand-mark { flex: none; width: 29px; height: 31px; }
.place { font-size: 0.8125rem; color: var(--muted); }
.place::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; margin-bottom: 1px; background: var(--accent); border-radius: 50%; }
.back { font-size: 0.875rem; font-weight: 600; text-decoration-thickness: 1px; }
.view-accueil .slot-hero { border: 0; border-radius: 18px; overflow: hidden; background: var(--fill) url(/assets/reveillon.webp) center / cover no-repeat; }
.slot-hero > span { visibility: hidden; }
.view-accueil h1 { max-width: 13ch; font-size: 2.25rem; }
.avantages { padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.9375rem; }
.avantages li { display: flex; align-items: baseline; gap: 10px; }
.avantages li::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%; transform: translateY(-1px); }
.prix { line-height: 1.6; font-size: 0.875rem; }
.prix strong { font-size: 1.5rem; letter-spacing: -0.035em; }
.prix-barre { font-size: 0.9375rem; margin-right: 6px; text-decoration-thickness: 1px; }
.offre-livree {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gold-soft);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
}
.offre-livree strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--accent-dark);
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.05;
}
.offre-livree-detail { display: block; font-size: 0.875rem; font-weight: 400; }
.don { border: 0; border-radius: 0; padding: 0 0 0 29px; position: relative; color: var(--ink); font-size: 0.875rem; line-height: 1.5; }
.don::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--gold-soft); border: 1px solid var(--accent); border-radius: 50%; }
.don::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(40deg); }
.infos { font-size: 0.8125rem; line-height: 1.6; }
.pied { margin-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.conditions summary { min-height: 48px; padding: 16px 0; font-weight: 600; }
.conditions[open] summary { color: var(--ink); }
.conditions p { line-height: 1.6; margin-top: 12px; }

.btn, .btn-round { border-width: 1px; border-color: var(--line); background: var(--surface); color: var(--ink); transition: transform 160ms ease-out, opacity 160ms ease-out; font-size: 0.9375rem; }
.btn { min-height: 52px; padding: 12px 15px; border-radius: 12px; }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-ink); gap: 4px; }
.btn-ghost { background: transparent; }
.btn-round { width: 56px; height: 56px; font-size: 1.75rem; border-radius: 16px; border-color: var(--accent); color: var(--accent); }
.btn-round[data-action="plus"] { background: var(--accent); color: var(--on-ink); }
.btn:active:not([disabled]), .btn-round:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled], .btn-round[disabled] { opacity: 1; background: var(--fill); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-choice[aria-pressed="true"] { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent-dark); }
.btn-choice[aria-pressed="true"]::after { content: ""; width: 5px; height: 9px; margin-left: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.link { font-size: 0.875rem; font-weight: 600; color: var(--accent-dark); }
@media (hover: hover) {
  .btn-main:hover:not([disabled]), .btn-round[data-action="plus"]:hover:not([disabled]) { background: var(--accent-dark); border-color: var(--accent-dark); }
  .btn-ghost:hover:not([disabled]), .btn-choice:hover:not([disabled]) { background: var(--accent-soft); }
}

.view-precommande h1 { font-size: 1.875rem; }
.step-count { font-size: 0.8125rem; margin-top: -8px; letter-spacing: 0.01em; }
.stepper { gap: 26px; padding: 6px 0; }
.qty { font-family: var(--font-title); font-size: 2.75rem; line-height: 1.1; font-weight: 700; }
.totaux { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; gap: 8px; font-size: 0.9375rem; }
.ligne { align-items: baseline; }
.ligne dd { text-align: right; font-variant-numeric: tabular-nums; }
.ligne-total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 1px; }
.ligne-total dd { font-size: 1.125rem; }
[data-out="delivery-hint"] { font-size: 0.875rem; color: var(--accent-dark); text-align: center; }
.recap { border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.field { gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 650; }
.field input, .field select { border: 1px solid var(--muted); background: var(--surface); border-radius: 10px; min-height: 50px; padding: 12px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.field [aria-invalid="true"] { border: 2px solid var(--danger); background: var(--danger-soft); }
.error { font-size: 0.875rem; line-height: 1.5; }
.error[role="alert"]:not([hidden]) { padding: 10px 12px; background: var(--danger-soft); border-radius: 10px; }
.combo { gap: 6px; }
.combo-list { border: 1px solid var(--muted); border-radius: 10px; background: var(--surface); scrollbar-color: var(--muted) var(--fill); }
.combo-list li { min-height: 50px; padding: 10px 12px; font-size: 0.9375rem; }
.combo-list li[data-active="1"] { background: var(--accent-soft); outline-color: var(--accent); }
.combo-list li[aria-selected="true"] { color: var(--accent-dark); background: var(--accent-soft); }
.combo-commune { font-size: 0.75rem; }
.combo-list .combo-other { color: var(--accent-dark); }
.facture { color: var(--ink); font-size: 0.8125rem; }
.livraison { font-size: 0.875rem; line-height: 1.5; }
.notice, .hint { font-size: 0.8125rem; line-height: 1.5; }
.stock-note { color: var(--accent-dark); background: var(--gold-soft); border-radius: 8px; padding: 7px 10px; }
.montant { display: grid; gap: 2px; color: var(--muted); font-size: 0.875rem; padding: 4px 0 8px; }
.montant strong { font-family: var(--font-title); font-size: 2.25rem; color: var(--ink); letter-spacing: -0.025em; }
.box { border: 1px solid var(--line); background: var(--surface); padding: 14px; display: grid; gap: 14px; font-size: 0.9375rem; line-height: 1.6; }
.ref { font-family: var(--font-body); font-size: 1.125rem; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: var(--accent-dark); }
.ref-big { font-size: 0.875rem; padding-top: 8px; }
.ref-big .ref { display: block; font-family: var(--font-title); font-size: 2rem; line-height: 1.2; margin-top: 4px; letter-spacing: 0.03em; }
.recap-d { font-size: 0.9375rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; }
.status, .etat { padding: 12px 14px; border: 0; border-radius: 12px; font-size: 0.875rem; font-weight: 600; background: var(--gold-soft); color: var(--ink); line-height: 1.5; }
[data-show="offline"], [data-show="closed"] { background: var(--fill); }
html[data-order-status="payee"] .status, html[data-order-status="livree"] .status { background: var(--success-soft); color: var(--success); }
html[data-order-status="annulee"] .status, html[data-order-status="expiree"] .status { background: var(--danger-soft); color: var(--danger); }
html[data-order-status="declaree"] [data-step-panel="D"] [data-action="send-ref"],
html[data-order-status="payee"] [data-step-panel="D"] [data-action="share"],
html[data-order-status="livree"] [data-step-panel="D"] [data-action="share"],
html[data-order-status="expiree"] [data-step-panel="D"] [data-action="new-order"],
html[data-order-status="annulee"] [data-step-panel="D"] [data-action="new-order"] { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }

.gauge { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; gap: 8px; }
.gauge h2 { font-size: 0.9375rem; }
.gauge-track { border-color: var(--accent); background: var(--surface); }
.gauge-rail-total .gauge-trail { background: var(--gold-soft); }
.gauge-rail-base .gauge-trail { background: var(--gold); }
.gauge-goal { border: 0; border-radius: 0; background: url(/assets/poulet-offert.webp) center / contain no-repeat; font-size: 0; }
.gauge-track:focus-within { outline-color: var(--accent); }
.gauge-help { font-size: 0.8125rem; line-height: 1.4; }
.gauge-count { color: var(--accent-dark); font-size: 0.8125rem; font-weight: 500; }
.gauge-count strong { font-weight: 750; }
.gauge-text { font-size: 0.8125rem; line-height: 1.5; }
.gauge-number { padding: 10px 12px; background: var(--gold-soft); border-radius: 10px; }
.gauge-number input { min-height: 48px; padding: 8px 12px; }
.gauge-number .hint { color: var(--ink); }
.fallback { background: var(--gold-soft); border: 0; padding: 16px; font-size: 0.875rem; }
.view-introuvable { padding-top: 40px; }
.view-introuvable h1 { color: var(--accent-dark); }

@media (max-width: 350px) {
  .view-accueil h1 { font-size: 2rem; }
  .prix strong { font-size: 1.375rem; }
  .prix-barre { font-size: 0.875rem; }
  .btn { padding-right: 10px; padding-left: 10px; font-size: 0.875rem; }
  .combo-list li { padding-right: 8px; padding-left: 8px; gap: 8px; }
}
@media (max-height: 600px) {
  .app { padding-top: 8px; }
  .view-precommande { gap: 8px; }
  .view-precommande h1 { font-size: 1.5rem; }
  .step { gap: 8px; }
  .step-count { margin-top: -2px; }
  .stepper { padding: 0; gap: 22px; }
  .qty { font-size: 2rem; }
  .btn-round { width: 48px; height: 48px; }
  .btn { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
  .totaux { gap: 3px; padding: 8px 12px; }
  .ligne-total { padding-top: 5px; margin-top: 2px; }
  .gauge { margin-top: 4px; padding-top: 10px; gap: 6px; }
  .gauge-text { min-height: 0; }
}
@media (min-width: 900px) {
  html[data-view="accueil"] .app { max-width: 68rem; padding: 32px 40px; }
  .view-accueil { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 56px; row-gap: 20px; align-items: start; }
  .view-accueil .bar { grid-column: 1 / -1; margin-bottom: 30px; }
  .view-accueil .slot-hero { grid-column: 2; grid-row: 2 / span 6; align-self: stretch; min-height: 360px; aspect-ratio: auto; background-position: 54% center; border-radius: 20px; }
  .view-accueil > :not(.bar):not(.slot-hero) { grid-column: 1; }
  .view-accueil h1 { font-size: 3rem; max-width: 13ch; }
  .view-accueil .avantages { gap: 6px; }
  .view-accueil .prix { padding-top: 4px; }
  .view-accueil .infos { max-width: 48ch; }
  html[data-view="accueil"] .pied { margin-top: 40px; max-width: 42rem; }
  html:not([data-view="accueil"]) .app { padding-top: 24px; }
}
.brand-eye { fill: var(--paper); }

/* A presentation class keeps the protected initial art marker unchanged. */
.gauge-illustrated .mascot-lofi { display: none; }
.gauge-illustrated .mascot-sprite { display: block; }
