/* Pages /reserver et /annuler — reprend l'identité du site */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("../fonts/eb-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/playfair-display.woff2") format("woff2"); }
@font-face { font-family: "Playball"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playball.woff2") format("woff2"); }

:root {
  --cream: #F1E8D8; --paper: #F8F2E6; --paper-2: #EADDC6;
  --bordeaux: #7A1E22; --bordeaux-dark: #5C1519;
  --olive: #6B7347; --olive-dark: #4F5633; --olive-light: #B5BC8A;
  --ink: #2A211C; --ink-soft: #5B4A3F; --gold: #B8862B;
  --f-title: "Playfair Display", Georgia, serif;
  --f-body: "EB Garamond", Georgia, serif;
  --f-script: "Playball", cursive;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42,33,28,.06), 0 14px 34px -14px rgba(42,33,28,.28);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.125rem; line-height: 1.55;
  color: var(--ink); background: var(--cream); min-height: 100vh; min-height: 100svh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; }

/* Header */
.bk-header { background: rgba(241,232,216,.96); border-bottom: 1px solid rgba(107,115,71,.3); position: sticky; top: 0; z-index: 10; }
.bk-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; width: min(720px, 100% - 32px); margin-inline: auto; }
.bk-header img { height: 54px; width: auto; }
.bk-phone { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-title); font-weight: 700; font-size: .9rem; color: var(--bordeaux); text-decoration: none; white-space: nowrap; }
.bk-phone .icon { width: 18px; height: 18px; }

.vichy { height: 12px; background-color: #fff;
  background-image: linear-gradient(90deg, rgba(179,39,45,.55) 50%, transparent 50%), linear-gradient(rgba(179,39,45,.55) 50%, transparent 50%);
  background-size: 12px 12px; }

main { width: min(720px, 100% - 32px); margin: 0 auto; padding: 24px 0 64px; }
h1 { font-family: var(--f-script); font-weight: 400; color: var(--bordeaux); font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1.05; margin: 8px 0 4px; text-align: center; }
.lead { text-align: center; color: var(--ink-soft); margin: 0 0 20px; }

/* Étapes */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li { flex: 1; text-align: center; font-family: var(--f-title); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 8px; border-top: 4px solid var(--paper-2); }
.steps li.is-active { color: var(--bordeaux); border-color: var(--bordeaux); }
.steps li.is-done { color: var(--olive-dark); border-color: var(--olive); }

.card { background: var(--paper); border: 1px solid var(--paper-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.h2 { font-family: var(--f-title); font-weight: 700; font-size: 1.15rem; margin: 0 0 12px; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: .95rem; }

/* Pastilles (couverts, créneaux) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 2px solid var(--paper-2); background: #fff; color: var(--ink);
  font-family: var(--f-title); font-weight: 700; font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover:not(:disabled) { border-color: var(--bordeaux); }
.chip[aria-pressed="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--cream); }
.chip:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slots .chip { min-width: 76px; }

/* Calendrier */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-family: var(--f-title); font-weight: 700; text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--paper-2); background: #fff; color: var(--bordeaux); font-size: 1.3rem; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-family: var(--f-title); font-size: .7rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; padding: 4px 0; }
.cal button {
  aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 2px solid transparent; background: #fff;
  font-family: var(--f-title); font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer;
}
.cal button:hover:not(:disabled) { border-color: var(--bordeaux); }
.cal button:disabled { background: transparent; color: rgba(42,33,28,.28); cursor: not-allowed; }
.cal button[aria-pressed="true"] { background: var(--bordeaux); color: var(--cream); }
.cal button.is-today { box-shadow: inset 0 0 0 2px var(--olive-light); }

/* Formulaire */
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--f-title); font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.field .opt { font-family: var(--f-body); font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--paper-2); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--olive); outline: none; }
.field .err { color: #B3272D; font-size: .95rem; margin: 4px 0 0; }
.field [aria-invalid="true"] { border-color: #B3272D; }
.hp { position: absolute; left: -9999px; }

/* Récap */
.recap { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.recap dt { color: var(--ink-soft); }
.recap dd { margin: 0; font-weight: 600; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: 0 1.6rem; border-radius: 999px; border: 2px solid var(--bordeaux);
  font-family: var(--f-title); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: var(--bordeaux); color: var(--cream);
}
.btn:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; color: var(--bordeaux); }
.btn-outline:hover { background: rgba(122,30,34,.08); color: var(--bordeaux); }
.btn-block { width: 100%; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; }
.link-back { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--bordeaux); text-decoration: underline; cursor: pointer; }

/* Messages */
.notice { border-radius: 12px; padding: 14px 16px; margin: 12px 0; background: #fff; border-left: 5px solid var(--olive); }
.notice.warn { border-left-color: var(--gold); }
.notice.error { border-left-color: #B3272D; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }

.svc + .svc { margin-top: 18px; }
.svc-title { font-family: var(--f-title); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--olive-dark); margin: 0 0 8px; }

.success { text-align: center; }
.success .big { font-family: var(--f-script); color: var(--bordeaux); font-size: 2.6rem; margin: 0; }
.success .recap { text-align: left; max-width: 340px; margin: 16px auto; }

.loader { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--paper-2); border-top-color: var(--bordeaux); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
footer.bk-foot { text-align: center; padding: 20px 16px 32px; color: var(--ink-soft); font-size: .95rem; }

/* Salle / terrasse */
.zone-pick { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--paper-2); }
.chip small { display: block; font-family: var(--f-body, inherit); font-weight: 600; font-size: .68rem; line-height: 1; margin-top: 2px; color: var(--olive-dark); }
.slots .chip:has(small) { flex-direction: column; }
.chip[aria-pressed="true"] small { color: inherit; }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .8rem; }
