/* ===============================================================
   Maison Koquette — Booking + Payment (Style 2026)
   /MARKER:STYLE-2026-LIGHT/
   /MARKER:BOOKING-FUNNEL/
   Palette : Ivoire #FBF6EE · Rose #C97A82 · Sauge #5A6F5C · Laiton #B89968
   =============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@400;500;600&family=Pinyon+Script&display=swap');

/* Reset spécifique pages booking (utilise mêmes vars que style-2026 mais auto-suffisant) */
:root {
  --color-bg: #FBF6EE;
  --color-bg-elevated: #F4ECDE;
  --color-bg-cream: #F8F0E3;
  --color-text: #2A1A1F;
  --color-text-muted: #6B5560;
  --color-text-faint: #9B8590;
  --color-accent: #C97A82;
  --color-accent-hover: #B8636C;
  --color-accent-soft: #F4D9DC;
  --color-accent-2: #5A6F5C;
  --color-accent-3: #B89968;
  --color-accent-3-soft: #E8DCC2;
  --color-line: rgba(42, 26, 31, 0.08);
  --color-line-strong: rgba(42, 26, 31, 0.16);
  --shadow-1: 0 2px 8px rgba(42, 26, 31, 0.04);
  --shadow-2: 0 8px 32px rgba(42, 26, 31, 0.08);
  --shadow-3: 0 24px 80px rgba(42, 26, 31, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-signature: 'Pinyon Script', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--color-accent); color: white; }

/* ===== Demo Banner ===== */
.demo-banner {
  background: linear-gradient(135deg, var(--color-accent-3), #A38556);
  color: white;
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.demo-banner.danger {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
}
.demo-banner b { font-weight: 700; }
.demo-banner svg { flex-shrink: 0; opacity: 0.92; }

/* ===== Top bar ===== */
.topbar {
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 38px;
  z-index: 90;
  padding: 14px 24px;
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
}
.topbar .brand .signature {
  font-family: var(--font-signature);
  font-size: 32px;
  color: var(--color-accent);
  line-height: 0.8;
  position: relative;
  top: 2px;
}
.topbar-back {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms;
}
.topbar-back:hover { color: var(--color-accent); }

/* ===== Page header ===== */
.page-head {
  text-align: center;
  padding: 48px 24px 24px;
  max-width: 760px;
  margin: 0 auto;
}
.page-head .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.page-head h1 em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}
.page-head p {
  color: var(--color-text-muted);
  font-size: 15.5px;
  margin: 0;
}

/* ===== Stepper ===== */
.stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 24px auto 36px;
  max-width: 760px;
  padding: 0 24px;
  overflow-x: auto;
}
.stepper-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.stepper-item:not(:last-child)::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-line);
  margin: 0 12px;
}
.stepper-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--color-line);
  transition: all 200ms;
}
.stepper-item.done .stepper-num {
  background: var(--color-accent-2);
  color: white;
  border-color: var(--color-accent-2);
}
.stepper-item.done {
  color: var(--color-accent-2);
}
.stepper-item.active .stepper-num {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}
.stepper-item.active {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== Layout ===== */
.booking-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px 80px;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

/* ===== Card ===== */
.card {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-1);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.card-sub {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

/* ===== Radio cards (prestations / créneaux) ===== */
.radio-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .radio-cards.two { grid-template-columns: 1fr 1fr; } }
.radio-cards.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.radio-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  position: relative;
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card:hover {
  border-color: var(--color-accent-3);
  background: var(--color-bg-cream);
}
.radio-card:has(input:checked),
.radio-card.checked {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 4px rgba(201, 122, 130, 0.12);
}
.radio-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.radio-card-price {
  color: var(--color-accent);
  font-weight: 500;
}
.radio-card-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}
.radio-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-3);
  font-size: 16px;
  margin-bottom: 4px;
}

/* Slot grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.slot {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line-strong);
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 180ms;
}
.slot:hover:not(.taken) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.slot.selected {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(201, 122, 130, 0.32);
}
.slot.taken {
  color: var(--color-text-faint);
  background: var(--color-bg-elevated);
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-section {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ===== Form fields ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  transition: all 180ms;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}
.field input::placeholder { color: var(--color-text-faint); }
.field textarea { min-height: 90px; resize: vertical; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-cream);
  font-size: 13.5px;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 180ms;
}
.field-check:hover { background: var(--color-bg-elevated); }
.field-check input { margin-top: 3px; accent-color: var(--color-accent); flex-shrink: 0; }
.field-check.required b { color: var(--color-text); }

/* ===== Recap (sticky right) ===== */
.recap {
  position: sticky;
  top: 110px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.recap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.recap-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.recap-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--color-bg);
}
.recap-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated) url('assets/images/elvina-portrait.jpg') center/cover;
  margin-bottom: 18px;
}
.recap-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(251, 246, 238, 0.1);
}
.recap-line:last-of-type { border-bottom: 0; }
.recap-key { color: rgba(251, 246, 238, 0.62); }
.recap-val { color: var(--color-bg); font-weight: 500; text-align: right; }
.recap-val .muted { color: var(--color-text-faint); font-weight: 400; font-size: 12px; }

.recap-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 246, 238, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.recap-total-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 246, 238, 0.6);
}
.recap-total-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--color-bg);
}

.recap-savings {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(90, 111, 92, 0.18);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--color-bg);
  border-left: 2px solid var(--color-accent-2);
  line-height: 1.5;
}
.recap-savings b { color: #B5D4B5; font-weight: 600; }

/* ===== Trust badges ===== */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 22px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  margin-top: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text);
}
.trust-item-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
  font-size: 14px;
  flex-shrink: 0;
}
.trust-item-strong { color: var(--color-text); font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 280ms var(--ease-out);
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 12px 32px rgba(201, 122, 130, 0.32);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201, 122, 130, 0.4);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
}
.btn-secondary:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-accent-3);
}
.btn-block { width: 100%; }
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-row .btn { flex: 1; min-width: 140px; }

/* ============= PAIEMENT ============= */
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.pay-method {
  padding: 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 200ms var(--ease-out);
  position: relative;
}
.pay-method input { position: absolute; opacity: 0; }
.pay-method:has(input:checked),
.pay-method.checked {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 3px rgba(201, 122, 130, 0.14);
}
.pay-method-icon {
  font-size: 22px;
  margin-bottom: 6px;
  display: block;
}
.pay-method-label {
  font-size: 13px;
  font-weight: 500;
}

/* Carte bancaire visuelle */
.card-visual-wrap {
  perspective: 1200px;
  margin-bottom: 28px;
}
.card-visual {
  background: linear-gradient(135deg, #3A2530 0%, #5A6F5C 50%, #B89968 100%);
  color: white;
  aspect-ratio: 1.586/1;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 60px rgba(42, 26, 31, 0.32);
  position: relative;
  overflow: hidden;
  transform: rotateY(-2deg) rotateX(2deg);
  transition: transform 400ms var(--ease-out);
}
.card-visual:hover { transform: rotateY(0) rotateX(0); }
.card-visual::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.card-visual-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #E8DCC2, #B89968);
  border-radius: 6px;
  position: relative;
}
.card-chip::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 3px;
}
.card-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.card-number {
  font-family: 'Courier New', monospace;
  font-size: clamp(16px, 4.5vw, 22px);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 6px 0;
}
.card-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 3px;
}
.card-name {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-expiry {
  font-size: 14px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 31, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  opacity: 0;
  transition: opacity 300ms;
}
.modal-overlay.show {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 44px 32px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.94);
  transition: transform 400ms var(--ease-out);
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-2), #7A8F7C);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: white;
  box-shadow: 0 16px 40px rgba(90, 111, 92, 0.4);
}
.modal-icon svg { stroke-dasharray: 36; stroke-dashoffset: 36; animation: checkdraw 700ms 300ms forwards var(--ease-out); }
@keyframes checkdraw { to { stroke-dashoffset: 0; } }
.modal h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 12px;
}
.modal h2 em { color: var(--color-accent); font-style: italic; }
.modal p {
  color: var(--color-text-muted);
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
}
.modal-demo-note {
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 13px;
}

/* ===== Footer ===== */
.booking-footer {
  text-align: center;
  padding: 24px;
  font-size: 12.5px;
  color: var(--color-text-faint);
  border-top: 1px solid var(--color-line);
}
.booking-footer b { color: var(--color-text-muted); }
