/* ==========================================================================
   Pré-réservation — feuille de style unique
   Direction : papier froid, encre vert sapin. Framboise réservée à la place marquée et à l'action principale.
   ========================================================================== */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2f5f1;
  --paper-raised: #f9fbfa;
  --paper-sunk: #e4e7e5;
  --ink: #131f19;
  --ink-soft: #4c5953;
  --line: #d0d6d3;
  --focus: #1e4d3b;
  --danger: #a23b2a;
  --ok: #2e6b4a;
  --control: #6b7671;
  --brand: #1e4d3b;
  --accent: #b3265e;
  --accent-deep: #97184d;

  --radius: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line) transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip:focus {
  top: 12px;
}

.label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.note {
  font-size: 14px;
  color: var(--ink-soft);
}

.error {
  font-size: 14px;
  color: var(--danger);
}

.field {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.input {
  font: inherit;
  font-size: 17px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--paper-raised);
  color: var(--ink);
  caret-color: var(--ink);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.input::placeholder {
  color: #6b655c;
}
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(45, 91, 227, 0.18);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
}
select.input {
  appearance: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.copy-row .input {
  flex: 1;
  min-width: 0;
  font-size: 15px;
}

.btn {
  font: 600 16px/1 var(--font-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms, border-color 200ms;
}
.btn:hover {
  background: var(--accent-deep);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--control);
}
.btn-ghost:hover {
  background: var(--paper-raised);
  border-color: var(--ink);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--paper-raised);
  font-weight: 500;
  font-size: 15px;
  transition: background-color 260ms var(--ease-out), color 260ms, border-color 260ms, transform 160ms;
  font-variant-numeric: tabular-nums;
}
.chip:hover span {
  border-color: var(--ink);
}
.chip:active span {
  transform: scale(0.97);
}
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

/* ==========================================================================
   Onboarding
   ========================================================================== */

.ob-body {
  min-height: 100dvh;
}

.ob {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.ob-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 22px clamp(20px, 4vw, 48px) 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.ob-brand {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.ob-progress {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.ob-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 700ms var(--ease-soft);
}
.ob-count {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-top: -2px;
}

.ob-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 48px) 72px;
}

.ob-form {
  min-width: 0;
  max-width: 560px;
  width: 100%;
}

.ob-step[hidden] {
  display: none;
}
.ob-step.is-active {
  display: grid;
  gap: 24px;
}
.ob-step.is-active > * {
  animation: rise 560ms var(--ease-soft) both;
}
.ob-step.is-active > :nth-child(2) {
  animation-delay: 70ms;
}
.ob-step.is-active > :nth-child(3) {
  animation-delay: 120ms;
}
.ob-step.is-active > :nth-child(4) {
  animation-delay: 170ms;
}
.ob-step.is-active > :nth-child(5) {
  animation-delay: 220ms;
}
.ob-step.is-active > :nth-child(6) {
  animation-delay: 270ms;
}

.ob-title {
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.2rem);
  max-width: 18ch;
}
.ob-title--lead {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  max-width: 16ch;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

.promise {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 14px;
}
.promise li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 17px;
}
.promise li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.ob-fields {
  display: grid;
  gap: 20px;
}

fieldset.field {
  border: 0;
}
fieldset.field legend {
  padding: 0;
  margin-bottom: 8px;
}

.ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ob-nav[hidden] {
  display: none;
}
.ob-nav .btn-primary-wide {
  min-width: 200px;
}

.ob-note-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.penalty-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(23, 22, 20, 0.16);
  cursor: pointer;
  padding: 0;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.swatch:hover {
  transform: scale(1.06);
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

.color-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}
.color-row input[type="color"] {
  width: 56px;
  height: 52px;
  padding: 4px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--paper-raised);
  cursor: pointer;
}

.dropzone {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1.5px dashed var(--control);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--ink);
  background: #fff;
}
.dropzone strong {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dropzone small {
  font-size: 14px;
  color: var(--ink-soft);
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  animation: pop 420ms var(--ease-soft) both;
}
.logo-holder {
  display: contents;
}
.logo-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.recap {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  overflow: hidden;
}
.recap div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.recap div:first-child {
  border-top: 0;
}
.recap dt {
  font-size: 14px;
  color: var(--ink-soft);
}
.recap dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ob-done {
  display: grid;
  gap: 24px;
}
.done-mark {
  width: 64px;
  height: 64px;
}
.done-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.done-mark circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 800ms 100ms var(--ease-soft) forwards;
}
.done-mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 500ms 650ms var(--ease-soft) forwards;
}

.done-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.done-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  min-width: 0;
}
.done-card--secret {
  background: var(--paper-sunk);
}
/* Page plein écran des paiements : le formulaire Stripe occupe toute la largeur utile. */
.act {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.act-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 48px) 96px;
  display: grid;
  gap: 32px;
  align-content: start;
}
.act-main h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
}
.act-form {
  width: 100%;
}
#act-container {
  width: 100%;
  min-height: 420px;
}
.act-done {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.act-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.act-error[hidden] {
  display: none;
}

/* Préparation guidée : liste sans boîte, séparée par des filets. */
#act-prep {
  display: grid;
  gap: 28px;
}
.act-summary {
  font-size: 16px;
  color: var(--danger);
  animation: rise 480ms var(--ease-soft) both;
}
.act-summary[hidden],
.act-prep[hidden],
.act-form[hidden] {
  display: none;
}
.act-progress-wrap {
  display: grid;
  gap: 10px;
}
.act-progress {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.act-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 500ms var(--ease-soft);
}
.act-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.act-item {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  animation: rise 560ms var(--ease-soft) both;
  transition: opacity 300ms var(--ease-out);
}
.act-item:last-child {
  border-bottom: 1px solid var(--line);
}
.act-item.is-ready .act-title {
  color: var(--ink-soft);
}
.act-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.act-check {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.act-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  cursor: pointer;
}
.act-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--paper-raised);
  animation: pop 360ms var(--ease-soft) both;
}
.act-why {
  font-size: 16px;
  color: var(--ink);
  padding-left: 32px;
}
.act-what {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 32px;
}
.act-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.act-url {
  display: grid;
  gap: 8px;
}
.act-form-top {
  display: flex;
}
.act-form h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.act-form {
  display: grid;
  gap: 20px;
  animation: rise 520ms var(--ease-soft) both;
}

.ob-resume {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.mg-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  animation: rise 480ms var(--ease-soft) both;
}
.mg-state[hidden] {
  display: none;
}
.mg-state p {
  font-size: 16px;
  max-width: 60ch;
}

.pay-container {
  width: 100%;
  min-height: 120px;
  max-height: 70vh;
  overflow: auto;
  padding: 4px 0;
}
.payments-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.qr {
  justify-self: center;
  width: 100%;
  max-width: 230px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  animation: pop 600ms 300ms var(--ease-soft) both;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.ob-preview {
  display: none;
  position: sticky;
  top: 24px;
}
.preview-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.preview-frame {
  --pv-bg: #1f3a34;
  --pv-fg: #fbfaf7;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(23, 22, 20, 0.05), 0 28px 56px -32px rgba(23, 22, 20, 0.4);
}
.pv-head {
  background: var(--pv-bg);
  color: var(--pv-fg);
  padding: 40px 28px 30px;
  text-align: center;
  transition: background-color 650ms var(--ease-soft), color 650ms var(--ease-soft);
}
.pv-logo {
  height: 68px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
}
.pv-logo img {
  max-height: 68px;
  max-width: 200px;
  object-fit: contain;
  animation: pop 520ms var(--ease-soft) both;
}
.pv-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.12;
  overflow-wrap: anywhere;
  transition: opacity 240ms var(--ease-out);
}
.pv-addr {
  margin-top: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pv-body {
  padding: 24px 24px 26px;
  display: grid;
  gap: 14px;
}
.pv-title {
  font-family: var(--font-display);
  font-size: 22px;
}
.pv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pv-row em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.pv-btn {
  margin-top: 6px;
  font: 600 15px/1 var(--font-ui);
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: var(--pv-bg);
  color: var(--pv-fg);
  text-align: center;
  transition: background-color 650ms var(--ease-soft), color 650ms var(--ease-soft);
}
.pv-fine {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.contrast-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.contrast-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.banner {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--danger);
  color: var(--danger);
  background: var(--paper-raised);
  font-size: 15px;
}

/* ==========================================================================
   Espace de réservation (client)
   ========================================================================== */

.bk-body {
  --bg: #1f3a34;
  --fg: #fbfaf7;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
}

.bk {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) 20px 72px;
}

.bk-head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.bk-logo {
  height: 84px;
  display: grid;
  place-items: center;
}
.bk-logo img {
  max-height: 84px;
  max-width: 240px;
  object-fit: contain;
  animation: pop 560ms var(--ease-soft) both;
}
.bk-name {
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem);
  overflow-wrap: anywhere;
}
.bk-address {
  font-size: 15px;
}

.bk-card {
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(23, 22, 20, 0.06), 0 34px 64px -36px rgba(0, 0, 0, 0.5);
  animation: rise 640ms var(--ease-soft) both;
}
.bk-state {
  font-size: 16px;
  color: var(--ink-soft);
  padding: 12px 0;
}
.bk-form,
.bk-pay,
.bk-done {
  display: grid;
  gap: 24px;
}
.bk-form[hidden],
.bk-pay[hidden],
.bk-done[hidden] {
  display: none;
}
.bk-pay,
.bk-done {
  animation: rise 560ms var(--ease-soft) both;
}
.bk-legend {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.bk-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.bk-fieldset .field {
  min-width: 0;
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.slot {
  position: relative;
  display: block;
  cursor: pointer;
}
.slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.slot span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--control);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color 240ms var(--ease-out), color 240ms, border-color 240ms, transform 160ms;
}
.slot:hover span {
  border-color: var(--ink);
}
.slot:active span {
  transform: scale(0.97);
}
.slot input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.slot input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.slot input:disabled + span {
  color: #8a847b;
  text-decoration: line-through;
  cursor: not-allowed;
  background: transparent;
}
.bk-submit {
  width: 100%;
}
.card-element {
  padding: 16px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.card-element.StripeElement--focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(45, 91, 227, 0.18);
}
.bk-ref {
  font-size: 14px;
  color: var(--ink-soft);
}
.bk-ref strong {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.bk-penalty {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.bk-done .done-mark {
  width: 56px;
  height: 56px;
}

/* ==========================================================================
   Gestion (restaurateur, lien secret)
   ========================================================================== */

.mg {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 72px;
  display: grid;
  gap: 28px;
}
.mg-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.mg-top h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.mg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.panel h2 {
  font-size: 1.8rem;
}
.panel-qr {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
}
.panel-qr .qr {
  max-width: 150px;
  padding: 10px;
  animation: none;
}
.mg-form {
  display: grid;
  gap: 18px;
}
.mg-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.toast {
  font-size: 15px;
  color: var(--ok);
  animation: rise 380ms var(--ease-soft) both;
}
.res-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.res-list li {
  display: grid;
  grid-template-columns: 110px 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.res-list li:first-child {
  border-top: 0;
}
.status {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  justify-self: end;
  white-space: nowrap;
}
.res-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.status--ok {
  border-color: var(--ok);
  color: var(--ok);
}
.mg-wide {
  grid-column: 1 / -1;
}

/* ==========================================================================
   Mouvement
   ========================================================================== */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 901px) {
  .ob-preview {
    display: block;
  }
}

@media (max-width: 900px) {
  .ob-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .ob-main[data-preview="on"] .ob-preview {
    display: block;
    position: static;
  }
  .ob-title--lead {
    font-size: clamp(2.2rem, 1.2rem + 5vw, 3rem);
  }
  .ob-nav {
    position: sticky;
    bottom: 0;
    background: var(--paper);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    margin-top: 32px;
  }
  .mg-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .done-grid {
    grid-template-columns: 1fr;
  }
  .recap div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .panel-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .res-list li {
    grid-template-columns: 1fr auto;
  }
  .res-list li .res-covers {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* En-tête de l'espace : symbole en relief et mot Garantable. */
.ob-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ob-brand .brand-mark {
  display: block;
  width: 44px;
  height: 44px;
}
.ob-brand .brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (max-width: 480px) {
  .ob-brand .brand-mark {
    width: 36px;
    height: 36px;
  }
  .ob-brand .brand-name {
    font-size: 24px;
  }
}

/* Annulation par le client */
.an-when {
  font-size: 18px;
  font-weight: 600;
}
.an-when::first-letter {
  text-transform: uppercase;
}
.an-rule {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.bk-done a {
  color: var(--ink);
}

/* Reprise de la carte (relance « carte non finalisée ») */
.fi-release {
  text-align: center;
}
/* Lien cliquable jamais coupé : sur un écran étroit, c'est la phrase qui passe à la ligne. */
.fi-release a {
  white-space: nowrap;
}
.fi-release a,
.bk-state a {
  color: var(--ink);
}

/* Récupération du lien de gestion */
.rc-main section {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.rc-main section[hidden] {
  display: none;
}
.rc-form {
  display: grid;
  gap: 20px;
  justify-items: start;
  width: 100%;
  max-width: 520px;
}
.rc-captcha {
  max-width: 100%;
  min-height: 65px;
}
.rc-captcha iframe {
  max-width: 100%;
}
.rc-form .field,
.rc-main .copy-row {
  width: 100%;
  max-width: 520px;
}
.rc-main .done-mark {
  width: 56px;
  height: 56px;
}

/* Marquage de présence */
.mg-todo {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 600;
}
.mg-todo[hidden] {
  display: none;
}
.res-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 40px;
}
@media (max-width: 640px) {
  .res-list li .res-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
