@font-face { font-family: 'Melodrama'; src: url('assets/fonts/Melodrama-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Melodrama'; src: url('assets/fonts/Melodrama-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neco'; src: url('assets/fonts/Neco-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neco'; src: url('assets/fonts/Neco-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
/* Thème sombre (admin, tablette du bar) */
:root {
  --bg: #2a170c;
  --bg-2: #351e10;
  --card: #3d2415;
  --line: #55341f;
  --text: #f1dfbf;
  --muted: #c9ad86;
  --green: #8fc98a;
  --green-dark: #2f6b45;
  --pink: #e8cf9b;
  --pink-ink: #3a2412;
  --amber: #f0b35a;
  --red: #f26b6b;
  --accent: #d9743d;
  --radius: 12px;
  --font: 'Neco', Georgia, serif;
  --display: 'Melodrama', Georgia, serif;
  color-scheme: dark;
}
/* Thème clair sable (page client) */
body.light {
  --bg: #e8cf9b;
  --bg-2: #f1ddb3;
  --card: #f4e4c2;
  --line: #d2b27e;
  --text: #3a2412;
  --muted: #7a5636;
  --green: #4f8a52;
  --green-dark: #3b6d40;
  --pink: #b44c17;
  --pink-ink: #f7ead1;
  --amber: #a86a0c;
  --red: #b3261e;
  --accent: #b44c17;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 20px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 16px; min-height: 46px; touch-action: manipulation; }
button:active { transform: scale(0.98); }
button.primary { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); font-weight: 500; }
button.ghost { background: transparent; }
button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
button:disabled { opacity: 0.45; cursor: default; }
input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 46px; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }

textarea { min-height: 84px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.field { margin: 0 0 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--red); font-size: 13px; margin-top: 6px; }
.hidden { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 14px; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 10px 0; text-align: center; min-height: 44px; font-size: 15px; }
.slot.on { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); font-weight: 500; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 46px; padding: 0; font-size: 22px; }
.stepper .val { font-size: 26px; font-weight: 700; min-width: 40px; text-align: center; font-family: var(--display); }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.badge.pending { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber); }
.badge.confirmed { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.badge.arrived { background: color-mix(in srgb, #3b82f6 22%, transparent); color: #3b82f6; }
body:not(.light) .badge.arrived { color: #9cc4ff; }
.badge.noshow { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }
.badge.cancelled, .badge.refused { background: color-mix(in srgb, var(--muted) 20%, transparent); color: var(--muted); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: 0.03em; }
.brand small { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); max-width: 92vw; text-align: center; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.center { text-align: center; }
.icon-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 14px; }

.sitelink { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 1px solid currentColor; }
