:root {
  --brand: #8a4b1f;
  --brand-dark: #6b3915;
  --bg: #faf6f0;
  --card: #fff;
  --ink: #2b2118;
  --muted: #7a6c5f;
  --line: #e6dccf;
  --ok: #2f7d46;
  --err: #b3321f;
  --warn: #b7791f;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 12px; padding-bottom: 32px; }

.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.top a { color: #fff; }
.bar { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.who { font-size: .85rem; text-align: right; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .9rem; white-space: nowrap; background: rgba(255,255,255,.12); }
.tabs a.on { background: #fff; color: var(--brand); font-weight: 600; }

h1 { font-size: 1.5rem; margin: 8px 0 12px; }
h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 10px 0; display: block;
}
.cards { display: grid; gap: 10px; }
.shopcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.shopcard strong { font-size: 1.1rem; }
.shopcard:active { background: #f3ebe0; }
.tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; background: #f1e3d1; color: var(--brand-dark); padding: 2px 8px; border-radius: 999px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.flash { padding: 10px 14px; border-radius: 10px; margin: 8px 0; background: #e8f4ec; color: #1f5a31; border: 1px solid #c4e0cd; }
.flash.err { background: #fbe9e6; color: var(--err); border-color: #f1c4bd; }
.flash.info { background: #eef3fb; color: #274a7d; border-color: #c9d8ef; }
.notice { background: #fff6e0; border: 1px solid #f0dca3; padding: 10px 14px; border-radius: 10px; }

/* Formulaires */
.form, .resa { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #cdbfae; border-radius: 10px; background: #fff; width: 100%; color: var(--ink);
}
input[type=checkbox] { width: 20px; height: 20px; padding: 0; }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.two { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.range { display: flex; align-items: center; gap: 6px; }
.range input { min-width: 0; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }

.btn {
  font: inherit; font-weight: 600; background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 18px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: .88rem; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.ok { background: var(--ok); }
.btn.danger { background: var(--err); }

/* Jours */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; -webkit-overflow-scrolling: touch; }
.day { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; text-align: center; }
.day.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.day.off { color: #b5a99b; background: #f4eee6; }
.day.off.on { background: #8d7d6c; color: #fff; }
.daynav { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.daynav input[type=date] { width: auto; }

/* Produits */
.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.products li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.products li.soldout { opacity: .55; }
.pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price { font-size: .92rem; }
.price em { font-style: normal; }
.soldout .price em { color: var(--err); }
.stepper { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.stepper button:active { background: #f3ebe0; }
.stepper input { width: 54px; text-align: center; padding: 8px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total { font-size: 1.1rem; }
.stockctl { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.stockctl input[type=number] { width: 80px; }
.prodform { display: grid; gap: 10px; }
.prodform.inactive { opacity: .6; }
.hours { display: grid; gap: 8px; }

/* Réservations */
.lines { list-style: none; margin: 8px 0; padding: 0; }
.lines li { padding: 2px 0; }
.note { background: #fff6e0; border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: .92rem; }
.badge { font-size: .75rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; background: #eee; }
.badge.pending { background: #fff0cc; color: #8a5a00; }
.badge.ready { background: #dcefff; color: #155a9c; }
.badge.collected { background: #dff3e4; color: var(--ok); }
.badge.cancelled { background: #f3dcd7; color: var(--err); }
.st-cancelled { opacity: .6; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.foot { padding-top: 12px; padding-bottom: 28px; color: var(--muted); font-size: .85rem; }
