/* Page publique de réservation (mêmes couleurs que l'application de l'équipe) */
:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --ink-rgb: 27, 28, 25;
  --ink: rgb(var(--ink-rgb));
  --ink-2: #45463f;
  --muted-rgb: 110, 108, 100;
  --muted: rgb(var(--muted-rgb));
  --line: #e3e0d8;
  --line-strong: #cfcbc0;
  --accent-rgb: 46, 107, 87;
  --accent: rgb(var(--accent-rgb));
  --accent-ink: #ffffff;
  --accent-soft: #e3eee9;
  --danger-rgb: 194, 65, 12;
  --danger: rgb(var(--danger-rgb));
  /* Demande de réservation (à confirmer par le restaurant) : ambre */
  --request: #a86808;
  --request-ink: #6e4405;
  --request-soft: #fbf0db;
  --request-line: #efd29c;
  --shadow: 0 1px 2px rgba(58, 46, 24, 0.05), 0 12px 36px rgba(58, 46, 24, 0.08);
  --radius: 14px;
  /* Titres : un serif chaleureux, pour une page de restaurant (le reste en Geist) */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
/* Sombre : selon l'appareil, ou forcé (page intégrée : ?theme=dark) ; ?theme=light le refuse */
:root[data-theme="dark"] {
  --bg: #131412;
  --surface: #1f201d;
  --surface-2: #272825;
  --ink-rgb: 236, 235, 231;
  --ink-2: #c6c4bc;
  --muted-rgb: 157, 154, 146;
  --line: #2f302d;
  --line-strong: #3f403c;
  --accent-rgb: 95, 179, 148;
  --accent-ink: #0f1a16;
  --accent-soft: #1d3029;
  --danger-rgb: 240, 138, 93;
  --request: #ecb252;
  --request-ink: #f1c77c;
  --request-soft: #33270f;
  --request-line: #5a4318;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131412;
    --surface: #1f201d;
    --surface-2: #272825;
    --ink-rgb: 236, 235, 231;
    --ink-2: #c6c4bc;
    --muted-rgb: 157, 154, 146;
    --line: #2f302d;
    --line-strong: #3f403c;
    --accent-rgb: 95, 179, 148;
    --accent-ink: #0f1a16;
    --accent-soft: #1d3029;
    --danger-rgb: 240, 138, 93;
    --request: #ecb252;
    --request-ink: #f1c77c;
    --request-soft: #33270f;
    --request-line: #5a4318;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  color: var(--ink); background: var(--bg);
  background-image: radial-gradient(120% 420px at 50% -120px, rgba(var(--accent-rgb), 0.12), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }

.booking { max-width: 620px; margin: 0 auto; padding: 40px 16px calc(32px + env(safe-area-inset-bottom)); }

.bk-head { text-align: center; margin-bottom: 24px; }
/* Symbole Carnédor (public/brand), quand le restaurant n'a pas de logo ; aussi dans l'administration */
.brand-mark {
  display: inline-block; width: 40px; height: 40px; flex: none;
  background: url(/brand/carnedor-favicon.svg) center / contain no-repeat;
}
.bk-head h1 { margin: 14px 0 8px; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; font-variation-settings: 'opsz' 72; }
.bk-head p { margin: 0 auto; max-width: 420px; color: var(--ink-2); text-wrap: pretty; }
.bk-head .bk-restaurant { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bk-head .bk-restaurant + h1 { margin-top: 4px; }
.bk-head .bk-contact { margin-top: 6px; font-size: 14px; }
.bk-head .bk-info { margin-top: 2px; font-size: 13px; }
.bk-head .bk-info a { color: var(--muted); font-weight: 400; text-decoration: none; }
.bk-head .bk-info a:hover { color: var(--accent); text-decoration: underline; }
/* Logo du restaurant (Paramètres → Restaurant), à la place du symbole */
.bk-logo {
  display: block; margin: 0 auto; width: auto; height: auto; object-fit: contain;
  max-height: var(--logo-h, 72px); max-width: min(100%, calc(var(--logo-h, 72px) * 6));
}
/* Éléments cachés dans Paramètres → Page de réservation */
.no-logo .bk-logo, .no-logo .bk-head .brand-mark, .no-name #restaurantName, .no-contact .bk-head .bk-contact { display: none !important; }
.no-phone #restaurantPhone { display: none !important; } /* /embed?telephone=0 */
.no-logo .bk-head .bk-restaurant { margin-top: 0; }
/* Message du restaurant dans une étape (ou après la réservation) */
.bk-step-msg {
  margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--ink); font-size: 14px; white-space: pre-line;
}
.bk-done .bk-step-msg { margin: 12px auto 0; max-width: 420px; text-align: left; }
.bk-preview-note {
  position: sticky; top: 0; z-index: 5; margin: -8px auto 12px; max-width: 420px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12.5px; text-align: center;
}
.bk-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.bk-foot .bk-site { color: var(--accent); font-weight: 500; }
.bk-contact a, .bk-done a { color: var(--accent); font-weight: 500; }
.bk-message {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--ink); font-size: 14px; white-space: pre-line;
}

.bk-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px 24px 24px;
}
/*
 * Étapes : une pastille (icône) par étape, reliées par une ligne remplie jusqu'à l'étape en cours.
 * Faite : pleine, avec une coche ; en cours : cerclée, icône en couleur ; à venir : grisée.
 */
.bk-progress { --dot: 38px; padding: 20px 0 4px; }
.bk-progress ol {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
/* La ligne : du centre de la première pastille au centre de la dernière (10 % = une demi-colonne) */
.bk-progress ol::before, .bk-progress ol::after {
  content: ''; position: absolute; left: 10%; bottom: calc(var(--dot) / 2 - 2px); height: 4px; border-radius: 4px;
}
.bk-progress ol::before { right: 10%; background: var(--line); }
.bk-progress ol::after { width: calc(80% * var(--progress, 0)); background: var(--accent); transition: width .35s ease; }
.bk-progress button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0;
  border: 0; background: none; font: inherit; color: var(--muted); cursor: default; position: relative; z-index: 1;
}
.bk-label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; font-weight: 500;
}
.bk-dot {
  width: var(--dot); height: var(--dot); border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 2px solid var(--line); color: var(--muted);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.bk-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bk-dot .bk-check-ico { display: none; stroke-width: 2.6; }
.bk-progress .done .bk-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk-progress .done .bk-ico { display: none; }
.bk-progress .done .bk-check-ico { display: block; }
.bk-progress .current .bk-dot { background: var(--surface); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bk-progress .done .bk-label, .bk-progress .current .bk-label { color: var(--accent); }
.bk-progress .reachable .bk-dot { color: var(--ink-2); border-color: var(--line-strong); }
.bk-progress .reachable .bk-label { color: var(--ink-2); }
.bk-progress .done button, .bk-progress .reachable button { cursor: pointer; }
.bk-progress .done button:hover .bk-dot { box-shadow: 0 0 0 4px var(--accent-soft); }
.bk-progress .reachable button:hover .bk-dot { border-color: var(--accent); color: var(--accent); }
.bk-progress button:focus-visible { outline: none; }
.bk-progress button:focus-visible .bk-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
/* Nom de l'étape en cours : pour les lecteurs d'écran ; visible seulement sur téléphone (pas la place pour les noms) */
.bk-progress-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); text-align: center;
}

/* 5. Récapitulatif */
.bk-review { margin: 4px 0 0; border-top: 1px solid var(--line); }
.bk-review div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bk-review dt { color: var(--muted); font-size: 13.5px; }
.bk-review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.bk-review div { align-items: center; padding: 9px 0; }
.bk-review .bk-review-edit { font-weight: 400; }
/* « Modifier » : petit bouton discret avec un crayon (pas de lien souligné) */
.bk-edit {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 99px; background: none;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bk-edit svg { width: 14px; height: 14px; flex: none; }
.bk-edit:hover { background: var(--accent-soft); color: var(--accent); }
.bk-edit:focus-visible { border-color: var(--accent); color: var(--accent); }
@media (max-width: 480px) {
  .bk-edit { width: 36px; height: 36px; padding: 0; justify-content: center; color: var(--accent); background: var(--accent-soft); }
  .bk-edit span { display: none; }
  .bk-edit svg { width: 15px; height: 15px; }
}

.bk-step { padding: 18px 0 8px; animation: bk-in .25s ease; }
@keyframes bk-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .bk-step { animation: none; } .bk-progress ol::after, .bk-dot { transition: none; } }
.bk-step h2 { margin: 0 0 6px; font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: -0.01em; outline: none; }
.bk-recap { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.bk-recap b { color: var(--ink-2); font-weight: 600; }
.bk-step[data-step="1"] h2 { margin-bottom: 18px; }
.bk-hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }

/* 1. Personnes */
.bk-people { display: flex; align-items: center; gap: 18px; }
.bk-people-count { min-width: 130px; text-align: center; font-size: 15px; color: var(--ink-2); }
.bk-people-count b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-round {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface-2); font-size: 20px; cursor: pointer;
}
.bk-round:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.bk-round:disabled { opacity: .35; cursor: default; }

/* 2. Calendrier */
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bk-cal-head strong { font-size: 15px; font-weight: 600; text-transform: capitalize; }
.bk-cal-nav {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: none; cursor: pointer; font-size: 18px;
}
.bk-cal-nav:disabled { opacity: .3; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.bk-day {
  aspect-ratio: 1; max-height: 48px; width: 100%;
  border: 1px solid transparent; border-radius: 10px; background: var(--surface-2);
  font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer;
}
.bk-day:hover:not(:disabled) { border-color: var(--accent); }
.bk-day:disabled { background: none; color: var(--line-strong); cursor: default; text-decoration: line-through; text-decoration-color: transparent; }
.bk-day.closed:disabled { text-decoration-color: currentColor; }
.bk-day.today { font-weight: 600; }
.bk-day.selected { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.bk-day.empty { visibility: hidden; }
.bk-legend { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* 3. Accord pour une zone (ex. l'étage) */
.bk-consent {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(183, 121, 31, 0.45);
  background: linear-gradient(rgba(183, 121, 31, 0.1), rgba(183, 121, 31, 0.1)), var(--surface);
}
.bk-consent p { margin: 0 0 10px; font-size: 14px; }
.bk-check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.bk-check-row input {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface);
  display: inline-grid; place-content: center; transition: background .12s, border-color .12s;
}
.bk-check-row input::before {
  content: ''; width: 11px; height: 11px; transform: scale(0); transition: transform .12s; background: var(--accent-ink);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
}
.bk-check-row input:checked { background: var(--accent); border-color: var(--accent); }
.bk-check-row input:checked::before { transform: scale(1); }
.bk-check-row input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-area-note {
  margin: 8px 0 0; padding: 10px 14px; border-radius: 10px;
  background: var(--accent-soft); font-size: 14px; max-width: 420px;
}
/* Demande de réservation (service bien rempli : le restaurant confirme lui-même) : ambre */
.bk-request {
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4;
  background: var(--request-soft); color: var(--request-ink);
}
/* Récapitulatif : encart en tête, bien visible */
.bk-request-box {
  display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 14px 16px;
  border: 1px solid var(--request-line); border-radius: 12px; background: var(--request-soft); color: var(--request-ink);
}
.bk-request-box[hidden] { display: none; }
.bk-request-box b { display: block; font-size: 15px; color: var(--request-ink); }
.bk-request-box p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.bk-request-ico {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--request);
}
.bk-request-ico svg { width: 18px; height: 18px; }
/* Écran final d'une demande : sablier et pastille « En attente de confirmation » */
.bk-done .bk-done-wait, .bk-done.pending .bk-done-ok { display: none; }
.bk-done.pending .bk-done-wait { display: block; }
.bk-done.pending .bk-check { background: var(--request-soft); color: var(--request); }
.bk-status-pill {
  margin-top: 6px; padding: 3px 12px; border-radius: 99px; border: 1px solid var(--request-line);
  background: var(--request-soft); color: var(--request-ink); font-size: 12.5px; font-weight: 600;
}
.bk-status-pill[hidden] { display: none; }
/* Heure de fin de la réservation (« Votre table vous est réservée jusqu'à 20h00 ») : ligne discrète avec une horloge */
.bk-end-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.bk-end-note[hidden] { display: none; }
.bk-end-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.bk-done .bk-end-note { justify-content: center; text-align: left; max-width: 420px; }
/* Limite de temps bien visible (étape « Heure » et récapitulatif) : « 16h00 → 18h30 · 2 h 30 » */
.bk-end-box {
  display: flex; gap: 12px; align-items: center; margin: 16px 0 0; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; /* anciens Chrome : sans color-mix */
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent-soft); color: var(--ink);
}
.bk-step[data-step="5"] .bk-end-box { margin: 6px 0 14px; }
.bk-end-box[hidden] { display: none; }
.bk-end-ico {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
}
.bk-end-ico svg { width: 20px; height: 20px; }
.bk-end-range { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-end-dur {
  padding: 2px 9px; border-radius: 99px; background: var(--surface); color: var(--accent);
  font-size: 12.5px; font-weight: 700;
}
.bk-end-text { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
/* Durée de la table, en haut de l'étape « Heure » */
.bk-limit {
  display: inline-flex; gap: 8px; align-items: center; margin: -6px 0 14px; padding: 6px 12px;
  border-radius: 99px; background: var(--accent-soft); color: var(--ink-2); font-size: 13.5px;
}
.bk-limit[hidden] { display: none; }
.bk-limit svg { flex: none; width: 15px; height: 15px; color: var(--accent); }
.bk-limit b { color: var(--accent); }

/* Service réservable seulement par téléphone */
.bk-phone {
  margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45;
  background: var(--accent-soft);
}
.bk-phone a { font-weight: 600; color: inherit; }

/* Durée choisie par le client */
.bk-durations { margin: 0 0 16px; }
.bk-durations h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.bk-duration-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-duration-grid .bk-slot { width: auto; padding: 0 12px; }
.bk-duration-grid .bk-slot small { display: block; font-size: 11px; font-weight: 400; opacity: .75; }

/* 3. Créneaux */
.bk-service + .bk-service { margin-top: 16px; }
.bk-service h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.bk-service h3 small { font-weight: 400; color: var(--muted); }
.bk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.bk-slot {
  height: 40px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); font-variant-numeric: tabular-nums; cursor: pointer;
}
.bk-slot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.bk-slot:disabled { color: var(--line-strong); border-color: var(--line); cursor: default; }
.bk-slot.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.bk-full { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }

/* 4. Coordonnées */
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-wide { grid-column: 1 / -1; }
.bk-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.bk-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.bk-field input, .bk-field textarea {
  width: 100%; padding: 11px 12px; font-size: 16px; /* 16 px : pas de zoom auto sur iPhone */
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); outline: none;
}
.bk-field textarea { resize: vertical; min-height: 80px; }
.bk-field input:focus, .bk-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-field input.invalid { border-color: var(--danger); }
.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Retour / Continuer */
.bk-nav { display: flex; gap: 10px; padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--line); }
.bk-nav .bk-btn { flex: 1; }
.bk-nav #backBtn { flex: 0 0 auto; min-width: 110px; }
.bk-error { margin: 12px 0 0; color: var(--danger); font-size: 14px; }
.bk-error:empty { display: none; }
.bk-btn {
  height: 50px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 600; cursor: pointer;
}
.bk-btn:disabled { opacity: .45; cursor: default; }
.bk-btn.ghost { background: none; color: var(--accent); border: 1px solid var(--line-strong); }

.bk-done { text-align: center; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bk-done h2 { margin: 8px 0 0; font-family: var(--display); font-size: 24px; font-weight: 500; }
.bk-done p { margin: 0; max-width: 420px; }
.bk-done .bk-btn { margin-top: 16px; }
a.bk-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.bk-check {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}

.bk-foot { margin-top: 24px; text-align: center; font-size: 13px; }
.bk-foot a { color: var(--muted); }
.bk-theme { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.bk-theme:hover { color: var(--ink); }
.bk-privacy { margin-top: 14px; font-size: 12.5px; }
.bk-privacy a { color: var(--muted); }

/* Page /legal : mentions légales et confidentialité */
.legal { padding: 8px 24px 24px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.legal h2 { margin: 22px 0 8px; font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); }
.legal h3 { margin: 18px 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.legal p, .legal ul { margin: 6px 0 0; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--accent); overflow-wrap: anywhere; }
.legal .bk-message { margin: 16px 0 0; }

/* Page « Ma réservation » (lien du mail) : récapitulatif, modification, annulation */
.mg-card { padding: 20px 24px 24px; }
.mg-card + .mg-card { margin-top: 16px; }
.mg-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.mg-badge { padding: 2px 10px; border-radius: 99px; background: var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.mg-badge.pending { background: var(--request-soft); color: var(--request-ink); }
.mg-recap { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mg-recap div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mg-recap dt { color: var(--muted); font-size: 14px; }
.mg-recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mg-recap dd::first-letter { text-transform: uppercase; }
.mg-recap.cancelled dd { color: var(--muted); text-decoration: line-through; }
.mg-block { padding: 6px 0 16px; }
.mg-block + .mg-block { border-top: 1px solid var(--line); padding-top: 16px; }
.mg-block h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.mg-block h3 small { font-weight: 400; color: var(--muted); }
.mg-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.mg-cancel p { flex-basis: 100%; margin: 0; }
.mg-cancel .bk-btn { flex: 1; min-width: 150px; }
/* Confirmation après une modification : ce qui a changé, avant (barré) → après */
.mg-success { margin-bottom: 16px; animation: bk-in .25s ease; }
.mg-success h2 { outline: none; }
.mg-changes { list-style: none; margin: 10px 0 4px; padding: 0; width: 100%; max-width: 420px; display: grid; gap: 6px; }
.mg-changes li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; font-size: 15px;
}
.mg-changes span { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.mg-changes s { color: var(--muted); overflow-wrap: anywhere; }
.mg-changes s::after { content: '→'; display: inline-block; margin-left: 10px; color: var(--muted); text-decoration: none; }
.mg-changes b { color: var(--accent); overflow-wrap: anywhere; }
.mg-recap div.changed dd { color: var(--accent); }
.mg-recap div.changed dt::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .mg-success { animation: none; } }
.mg-danger { color: var(--danger) !important; }
.mg-danger-fill { background: var(--danger); color: #fff; }

/* Intégrée dans un autre site (iframe /embed) : sans fond ni marges, hauteur = contenu */
.embed body { min-height: 0; background: transparent; }
.embed .booking { padding: 4px 4px 8px; }
.embed .bk-head { margin-bottom: 16px; }
.embed .brand-mark, .embed .bk-logo, .embed .bk-foot { display: none !important; }
.embed.embed-logo .bk-logo:not([hidden]) { display: block !important; } /* /embed?logo=1 */

@media (max-width: 520px) {
  .mg-card { padding: 16px 16px 18px; }
  .mg-recap div { grid-template-columns: 100px 1fr; }
  .booking { padding-top: 24px; }
  .bk-head h1 { font-size: 28px; }
  .bk-card { padding: 4px 16px 18px; border-radius: 16px; }
  .bk-fields { grid-template-columns: 1fr; }
  .bk-day { border-radius: 8px; }
  /* Téléphone : pas la place pour les noms au-dessus des pastilles ; le nom de l'étape en cours est écrit dessous */
  .bk-progress { --dot: 34px; }
  .bk-label { display: none; }
  .bk-progress-text { position: static; width: auto; height: auto; clip: auto; margin-top: 10px; }
  .bk-review div { grid-template-columns: 1fr auto; }
  .bk-review dt { grid-column: 1 / -1; }
  .bk-nav #backBtn { min-width: 90px; }
}
