/* Charte La Maison : bleu nuit #18233D, or #D5AF36, Roboto */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(assets/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(assets/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(assets/roboto-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #18233d;
  --navy-2: #22304f;
  --gold: #d5af36;
  --gold-soft: #fbf3dc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f5f1;
  --card: #fff;
  --danger: #b91c1c;
  --ok: #047857;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Roboto, system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin: 0 0 14px; }
h2 .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 13px; margin-right: 8px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* En-tête */
.top { background: var(--navy); color: #fff; padding: 22px 16px 26px; }
.top-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { height: 56px; width: auto; display: block; }
.top-info { font-size: 14px; color: #c3cad8; display: flex; flex-direction: column; gap: 2px; }
.top-info a { color: var(--gold); text-decoration: none; font-weight: 500; }
.top-info .msg { color: #fff; margin-top: 6px; }

/* Onglets */
.tabs { position: sticky; top: 0; z-index: 20; background: var(--navy); display: flex; justify-content: center; gap: 4px; padding: 0 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tabs button { border: 0; background: none; color: #c3cad8; padding: 15px 14px 13px; font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; }
.tabs button.on { color: #fff; border-bottom-color: var(--gold); }

main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 120px; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.aside { position: sticky; top: 70px; }

/* Puces : couverts, dates, créneaux */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #d8d4cc; background: #fff; border-radius: 99px; min-width: 48px; min-height: 46px; padding: 8px 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.chip:hover:not(:disabled) { border-color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:disabled { background: #f1efe9; color: #b4ada3; text-decoration: line-through; cursor: not-allowed; }
.chip .offer { background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; text-decoration: none; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 70px; border: 1px solid #d8d4cc; border-radius: 12px; background: #fff; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 0; scroll-snap-align: start; }
.day small { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day strong { font-size: 22px; line-height: 1.2; }
.day.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.day.on small { color: var(--gold); }
.day:disabled { opacity: 0.4; cursor: not-allowed; }
.other-date { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.other-date input { width: auto; }

.service + .service { margin-top: 16px; }
.service h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.empty { color: var(--muted); padding: 10px 0; }

/* Formulaires */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid #d6d3cd; border-radius: 10px; padding: 12px 13px; background: #fff; font-size: 16px; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; min-height: 52px; padding: 12px 22px; font-weight: 700; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.error { background: #fee2e2; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-top: 12px; }

/* Récapitulatif */
.recap { display: flex; flex-direction: column; gap: 10px; }
.recap-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.recap-row span:first-child { color: var(--muted); }
.recap-offer { background: var(--gold-soft); color: #7a5f0c; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 500; }

/* Confirmation */
.done { text-align: center; padding: 34px 20px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; font-weight: 700; }
.done h1 { font-size: 24px; margin: 0 0 8px; color: var(--navy); }
.done p { margin: 6px 0; }
.done .big { font-size: 18px; font-weight: 500; }

/* Carte */
.cats { position: sticky; top: 52px; z-index: 10; background: var(--bg); display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: -10px 0 8px; scrollbar-width: none; }
.cats button { flex: 0 0 auto; border: 1px solid #d8d4cc; background: #fff; border-radius: 99px; padding: 8px 15px; font-weight: 500; font-size: 14px; }
.cats button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin: 18px 0 10px; scroll-margin-top: 110px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; text-align: left; width: 100%; }
.product:hover { border-color: var(--gold); }
.product .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.product strong { font-weight: 500; }
.product small { color: var(--muted); font-size: 13px; }
.product .price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.product .plus { align-self: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.product .qty-tag { background: var(--navy); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 8px; font-weight: 700; align-self: flex-start; }

.cart-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-line:first-child { border-top: 0; }
.cart-line .grow { flex: 1; min-width: 0; }
.cart-line small { display: block; color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.qty span { min-width: 20px; text-align: center; font-weight: 500; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding-top: 10px; border-top: 2px solid var(--navy); margin-top: 6px; }
.promo { display: flex; gap: 8px; margin-top: 12px; }
.promo input { text-transform: uppercase; }
.promo .btn { min-height: 46px; padding: 0 16px; }

/* Barre panier mobile et fenêtres */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(246, 245, 241, 0.94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; }
.x { border: 0; background: #f1f5f9; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
.extras { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }

.foot { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }

@media (min-width: 640px) {
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 18px; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .order-aside { display: none; }
  .cart-bar.show { display: block; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .logo { height: 44px; }
  .top { padding: 16px 16px 18px; }
  .tabs button { font-size: 14px; padding: 13px 8px 11px; }
}
