/* La page publique : une feuille, une encre, la date en lettres géantes. */

body { background: var(--paper); color: var(--ink); }

/* ── L'affiche : le premier écran */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(18px, 2.2vw, 32px) var(--edge) clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.top-name, .top-side {
  font-size: clamp(1.0625rem, 1.55vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.top-name a { text-decoration: none; }
.top-side { font-variant-numeric: tabular-nums; }

.hero-main { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 48px); }

.poster {
  container-type: inline-size;
  font-weight: 800;
  line-height: 0.82;
  white-space: nowrap;
}
/* Taille approchée d'après le nombre de lettres ; site.js cale ensuite chaque ligne au pixel. */
.poster-line { display: block; letter-spacing: -0.04em; font-size: calc(100cqw / (var(--n, 8) * 0.58)); }
.poster-line + .poster-line { margin-top: 0.14em; }
.poster-text { display: inline-block; }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 24px; }
.facts { font-size: clamp(1.0625rem, 1.55vw, 1.4rem); font-weight: 700; line-height: 1.3; }
.hero-cta {
  min-height: clamp(56px, 4.6vw, 68px);
  padding-inline: clamp(28px, 2.6vw, 40px);
  font-size: clamp(1.0625rem, 1.45vw, 1.3rem);
}

.hero--solo .hero-main { gap: 24px; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.actions .btn { min-height: 60px; font-size: 1.125rem; }
.cancel summary { display: inline-flex; align-items: center; min-height: 48px; list-style: none; cursor: pointer; }
.cancel summary::-webkit-details-marker { display: none; }
.cancel-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 6px; font-weight: 600; }

/* ── Le menu et la réservation */
.page {
  padding: clamp(72px, 9vw, 130px) var(--edge) clamp(64px, 7vw, 104px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 88px 8vw;
}
.menu { flex: 1 1 420px; min-width: 0; max-width: 640px; }
.book { flex: 1 1 420px; min-width: 0; max-width: 540px; scroll-margin-top: 24px; }

.h2 { margin-bottom: clamp(22px, 2.2vw, 32px); font-size: clamp(2.75rem, 5vw, 4.5rem); letter-spacing: -0.04em; }
.lead { max-width: 32em; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; }

.dishes { margin-top: clamp(36px, 3.6vw, 52px); display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); }
.dish { display: block; font-size: clamp(1.6875rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.dish-sub { display: block; margin-top: 6px; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.4; }
.price { margin-top: clamp(36px, 3.6vw, 52px); font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 700; line-height: 1.4; }
.price-note { margin-top: 6px; max-width: 30em; font-size: 1rem; line-height: 1.45; }

/* La salle : un point par couvert. Pris = encre, libre = blanc, les vôtres = cerclés. */
.dots { --ring: 6px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; max-width: 310px; }
.dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  transition: background-color 220ms var(--press), box-shadow 220ms var(--press);
}
.dot.is-mine { box-shadow: inset 0 0 0 var(--ring) var(--ink); }
.dot.is-taken { background: var(--ink); }
.room-line { margin: 16px 0 clamp(36px, 3.4vw, 44px); font-size: clamp(1.125rem, 1.4vw, 1.25rem); font-weight: 700; line-height: 1.4; }

/* Le formulaire. Les messages d'erreur gardent leur place : rien ne saute quand ils apparaissent. */
.swap { margin: -6px; padding: 6px; overflow: clip; }
.form { display: flex; flex-direction: column; }
.form .t-input-wrap + .t-input-wrap { margin-top: 10px; }
.form-intro { margin-bottom: 24px; font-size: 1.0625rem; line-height: 1.45; }
.form-alert { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; line-height: 1.4; }

.stepper.t-input { display: flex; align-items: center; gap: 20px; border: 0; border-radius: 0; background: none; }
.stepper.t-input:focus-within { outline: 0; }
.step {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep);
  transition: transform 160ms var(--press), opacity 160ms var(--press);
  -webkit-tap-highlight-color: transparent;
}
.step:active { transform: scale(0.94); }
.step[disabled] { opacity: 0.4; cursor: default; transform: none; }
.step-n { justify-content: center; min-width: 0.95em; font-size: clamp(4.25rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.step-unit { font-size: clamp(1.25rem, 1.5vw, 1.375rem); font-weight: 700; line-height: 1; }

.btn--wide { width: 100%; min-height: 64px; margin-top: 8px; font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }
.form-note { margin-top: 14px; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.form-switch { margin-top: 10px; }
.form-switch .link { min-height: 44px; text-align: left; }

[data-mode="book"] [data-only="wait"],
[data-mode="wait"] [data-only="book"] { display: none !important; }

/* Après la réservation */
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; outline: 0; }
.done-check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.done-title { margin-top: 8px; font-size: clamp(2.75rem, 3.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 0.98; }
.done-what { font-size: clamp(1.25rem, 1.5vw, 1.375rem); font-weight: 700; line-height: 1.35; }
.done-mail { max-width: 28em; font-size: 1.0625rem; line-height: 1.45; }

.foot {
  padding: 28px var(--edge) 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .hero-foot { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero-cta { min-height: 60px; font-size: 1.125rem; }
  .actions { align-items: stretch; }
  .actions .btn, .cancel-form .btn { width: 100%; }
  .cancel { text-align: center; }
  .cancel-form { align-items: stretch; text-align: left; }
  .dots { --ring: 7px; max-width: none; }
  .done .btn { width: 100%; }
  .done > p:last-child { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .step, .btn { transition: none; }
}
