/* Nuit de la Traversée – reservations. Two themes: buffet (burgundy) and barquettes (navy), gold accents. */
:root {
  --bg: #1b0b0d;
  --bg-2: #2b1013;
  --gold: #c9a24c;
  --gold-ink: #8a6a1f;
  --card: #fffdf9;
  --ink: #1d1a17;
  --muted: #6b645c;
  --line: #e7e0d5;
  --soft: #f6f1e8;
  --ok: #1f7a4d;
  --ok-bg: #e5f4ec;
  --wait: #9a5b00;
  --wait-bg: #fdf0d8;
  --off: #8b2c2c;
  --off-bg: #f8e4e4;
  --radius: 14px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.theme-barquettes { --bg: #08133a; --bg-2: #0f1f57; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.55 var(--sans); color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg-2), transparent 70%), var(--bg);
}
a { color: var(--gold-ink); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.3rem); }
h2 { font-size: 1.3rem; }
.mono { font-family: var(--mono); letter-spacing: .02em; }

/* ── top bar & footer ─────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font: 600 .8rem/1 var(--serif); letter-spacing: .06em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .95rem; }
.brand-text span { font-size: .8rem; color: rgba(255,255,255,.65); }
.topnav { display: flex; gap: 18px; flex-wrap: wrap; }
.topnav a { color: rgba(255,255,255,.8); font-size: .9rem; text-decoration: none; }
.topnav a:hover { color: #fff; }
.footer { margin-top: auto; padding: 28px 16px 32px; text-align: center; color: rgba(255,255,255,.55); font-size: .85rem; }
.footer p { margin: 2px 0; }
.footer a { color: rgba(255,255,255,.8); }

/* ── home ─────────────────────────────────────── */
.home { width: min(1040px, 100% - 32px); margin: 0 auto; padding: 24px 0 8px; color: #fff; }
.home-intro { text-align: center; padding: 20px 0 32px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.home-intro h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.home-date { margin: 12px 0 0; font-size: 1.05rem; }
.home-place { margin: 2px 0 0; color: rgba(255,255,255,.65); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.choice {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--card); color: var(--ink); text-decoration: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); transition: transform .15s ease, box-shadow .15s ease;
}
.choice:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0,0,0,.45); }
.choice img { width: 100%; height: 220px; object-fit: cover; }
.choice.theme-buffet img { object-position: center 30%; }
.choice-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; }
.choice-title { font: 600 1.45rem/1.2 var(--serif); }
.choice-text { color: var(--muted); }
.choice-cta { margin-top: 10px; color: var(--gold-ink); font-weight: 600; }
.home-note { margin: 26px auto 0; max-width: 620px; text-align: center; color: rgba(255,255,255,.65); font-size: .92rem; }

/* ── reservation layout ───────────────────────── */
.layout { width: min(1120px, 100% - 32px); margin: 8px auto 0; display: grid; gap: 28px; align-items: start; }
.layout-buffet { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.layout-buffet .visual { position: sticky; top: 20px; }
.layout-barquettes { grid-template-columns: 1fr; max-width: 760px; }
.visual { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.visual img { width: 100%; }
.single { width: min(680px, 100% - 32px); margin: 8px auto 0; display: grid; gap: 20px; }

.card {
  background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.lead { margin: 10px 0 0; color: #3f3a34; }
.facts { list-style: none; margin: 18px 0 4px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.facts li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: .95rem; }
.facts span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.facts-center { text-align: center; border: 0; padding: 0; margin-top: 12px; }
.facts-center li { display: block; color: var(--muted); }

/* steps */
.steps { list-style: none; display: flex; gap: 6px; margin: 0 0 22px; padding: 0; font-size: .82rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 7px; flex: 1; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.steps li span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #cfc6b8; font-size: .75rem; font-weight: 600;
}
.steps .is-current { color: var(--ink); font-weight: 600; border-color: var(--gold); }
.steps .is-current span { background: var(--gold); border-color: var(--gold); color: #fff; }
.steps .is-done { border-color: #d9c79c; }
.steps .is-done span { background: #efe5cf; border-color: #d9c79c; color: var(--gold-ink); }

/* form */
.form { margin-top: 22px; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; }
legend { padding: 0; margin-bottom: 12px; font: 600 1.1rem/1.3 var(--serif); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: .88rem; font-weight: 600; }
.field input, .filters input, .filters select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d6cdbf; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .filters input:focus, .filters select:focus, .stepper input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,76,.25);
}
.field em { display: block; margin-top: 5px; font-style: normal; font-size: .8rem; color: var(--muted); }
.field small, .field-error { display: block; margin-top: 5px; color: var(--off); font-size: .85rem; }
.has-error input { border-color: var(--off); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.seats { margin: -4px 0 10px; font-size: .9rem; color: var(--muted); }
.seats strong { color: var(--ink); }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stepper-row:last-of-type { border-bottom: 0; }
.stepper-label { font-weight: 600; }
.stepper-label small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.stepper { display: flex; align-items: center; border: 1px solid #d6cdbf; border-radius: 999px; background: #fff; }
.stepper-btn {
  width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.35rem; line-height: 1;
  color: var(--ink); cursor: pointer; border-radius: 50%;
}
.stepper-btn:hover { background: var(--soft); }
.stepper-btn:disabled { color: #c5bdb1; cursor: default; background: transparent; }
.stepper input {
  width: 46px; border: 0; text-align: center; font: 600 1.1rem var(--sans); background: transparent;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 calc(-1 * clamp(22px, 4vw, 36px)); padding: 14px clamp(22px, 4vw, 36px);
  background: rgba(255,253,249,.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.total-label { color: var(--muted); font-size: .9rem; }
.total { font: 600 1.6rem var(--serif); margin-left: 6px; }
.fine { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px;
  font: 600 1rem var(--sans); color: #fff; text-decoration: none; cursor: pointer;
  background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; transition: background .15s, transform .05s;
}
.btn:hover { background: #3a332c; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc6b8; }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: transparent; color: var(--off); border-color: #e2bcbc; }
.btn-danger:hover { background: var(--off-bg); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* notices & chips */
.notice { margin: 18px 0 0; padding: 14px 16px; background: var(--wait-bg); border-radius: 10px; font-size: .95rem; }
.error-box { margin: 0 0 16px; padding: 12px 14px; background: var(--off-bg); color: var(--off); border-radius: 10px; }
.chip { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip-wait { background: var(--wait-bg); color: var(--wait); }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-off { background: var(--off-bg); color: var(--off); }
.chip-used { background: #e8e6f3; color: #3e3a73; }
.flash-wrap { width: min(1120px, 100% - 32px); margin: 0 auto 12px; }
.flash { margin: 0 0 8px; padding: 12px 16px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--off-bg); color: var(--off); }

/* payment */
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.recap div { padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.recap span, .pay-row span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.h-pay { margin: 28px 0 12px; }
.pay { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px; }
.pay-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-row span { grid-column: 1 / -1; }
.pay-row strong { font-size: 1.05rem; word-break: break-word; }
.pay-row-key strong { font-size: 1.15rem; }
.copy {
  padding: 6px 12px; font: 600 .8rem var(--sans); color: var(--gold-ink); background: #faf3e3;
  border: 1px solid #ead9b0; border-radius: 999px; cursor: pointer;
}
.copy.is-copied { color: var(--ok); background: var(--ok-bg); border-color: #bfe3cf; }
.pay-qr { margin: 0; text-align: center; max-width: 180px; }
.pay-qr figcaption { margin-top: 6px; font-size: .75rem; color: var(--muted); }

/* ticket */
.ticket { text-align: center; }
.ticket .steps { text-align: left; }
.ticket-name { margin: 12px 0 0; font-size: 1.3rem; font-weight: 600; }
.ticket-what { margin: 2px 0 18px; color: var(--muted); }
.ticket-qr { margin: 0 auto; width: 240px; height: 240px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.ticket-ref { margin: 12px 0 0; font-size: 1.4rem; font-weight: 700; }
.ticket.is-used .ticket-qr { opacity: .35; }
.staff h2 { margin-bottom: 6px; }
.staff-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.inline-form { display: inline; margin: 0; }

/* ── management ───────────────────────────────── */
.manage { width: min(1120px, 100% - 32px); margin: 0 auto; color: var(--ink); background: var(--card); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.manage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.manage .eyebrow { color: var(--gold-ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 22px 0; }
.kpi { padding: 14px 16px; background: var(--soft); border-radius: 10px; }
.kpi span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi strong { font: 600 1.6rem var(--serif); }
.kpi small { display: block; color: var(--muted); font-size: .8rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input { flex: 1 1 260px; width: auto; }
.filters select { flex: 0 1 220px; width: auto; }
.rows { margin-top: 18px; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.row-cancelled { opacity: .6; }
.row-title { margin: 0; font-weight: 600; }
.row-title a { color: var(--ink); }
.row-sub { margin: 2px 0 0; font-size: .88rem; color: var(--muted); word-break: break-word; }
.row-status { text-align: right; }
.row-status .chip { margin: 0 0 4px; }
.row-actions { grid-column: 1 / -1; margin-top: 4px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ── responsive ───────────────────────────────── */
@media (max-width: 860px) {
  .layout-buffet { grid-template-columns: 1fr; }
  .layout-buffet .visual { position: static; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .topbar { padding: 12px 16px; }
  .layout, .single, .home, .manage, .flash-wrap { width: calc(100% - 24px); }
  .layout { gap: 16px; }
  .layout-buffet .visual { max-height: 300px; }
  .layout-buffet .visual img { object-fit: cover; object-position: center 22%; height: 300px; }
  .grid-2, .recap { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 0; }
  .pay { grid-template-columns: 1fr; }
  .pay-qr { display: none; }      /* on the phone, the banking app is on the same device: copy is better */
  .total-bar { flex-wrap: wrap; }
  .total-bar .btn { flex: 1 1 100%; }
  .row { grid-template-columns: 1fr; }
  .row-status { text-align: left; }
  .steps { font-size: .75rem; }
}
