/* ==========================================================================
   Tunnel de réservation
   ========================================================================== */
.page-head--compact { padding-bottom: var(--s-5); }
.page-head--compact h1 { font-size: var(--t-h1); margin: 0; }

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: var(--s-8);
}
.booking__main { display: grid; gap: var(--s-5); }
.booking__summary { position: sticky; top: 5.5rem; }
@media (max-width: 960px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking__summary { position: sticky; top: auto; bottom: var(--s-2); z-index: 5; }
  .booking__summary .summary { box-shadow: var(--shadow-float); }
  .summary__notice, .booking__summary .summary > p.small.muted:last-child { display: none; }
}

[data-booking-root][aria-busy="true"] .booking__main { opacity: .55; pointer-events: none; transition: opacity .2s; }

.booking-step {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  background: rgb(255 255 255 / .7);
  transition: opacity var(--dur);
}
.booking-step.is-locked { opacity: .6; }
.booking-step__head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.booking-step__num { font-size: 2.2rem; font-style: italic; line-height: 1; color: var(--c-rosegold); }
.booking-step__title { margin: 0; font-size: 1.6rem; }
.booking-step__title .muted { font-family: var(--f-sans); font-size: 1rem; }

.booking-services, .booking-addons { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.booking-services__cat { margin: var(--s-4) 0 var(--s-1); font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--c-accent-ink); }
.booking-services__cat:first-of-type { margin-top: 0; }
.booking-addons { margin-top: var(--s-6); }
.booking-addons__legend { margin-bottom: var(--s-2); font-weight: 650; }

.option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-m);
  background: var(--c-white);
  cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.option:hover { border-color: var(--c-muted); }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-accent-ink); }
.option:has(input:checked), .option.is-checked { border-color: var(--c-accent-ink); box-shadow: 0 0 0 1px var(--c-accent-ink); background: #FFF7F6; }
.option:has(input:focus-visible) { box-shadow: var(--focus); }
.option__body { display: grid; gap: .1rem; }
.option__name { font-weight: 600; }
.option__desc { font-size: var(--t-small); color: var(--c-muted-strong); }
.option__meta { display: grid; justify-items: end; font-size: var(--t-small); color: var(--c-muted-strong); white-space: nowrap; }
.option__meta strong { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 500; color: var(--c-brown); }
/* Option comptée à l'ongle : choix du nombre d'ongles */
.option__nails { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .45rem; font-size: var(--t-small); color: var(--c-muted-strong); }
.option__nails select { width: auto; min-width: 4.5rem; min-height: 40px; padding-block: .25rem; cursor: pointer; }
.option__nails select:disabled { opacity: .55; cursor: not-allowed; }

/* Calendrier */
.calendar { max-width: 30rem; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.calendar__month { margin: 0; font-size: 1.35rem; }
.icon-btn.is-disabled { opacity: .3; }
.calendar__grid { table-layout: fixed; }
.calendar__grid th { padding: var(--s-2) 0; font-size: .75rem; font-weight: 600; color: var(--c-muted-strong); text-align: center; }
.calendar__grid td { padding: 3px; text-align: center; }
.day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 3.2rem;
  margin: 0 auto;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  color: rgb(58 35 41 / .35);
  text-decoration: none;
}
.day.is-open { color: var(--c-brown); font-weight: 600; background: var(--c-white); border: 1px solid var(--c-line-strong); transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.day.is-open::after { content: ""; position: absolute; bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: var(--c-rosegold); }
.day.is-open:hover { border-color: var(--c-brown); }
.day.is-selected { background: var(--c-brown); border-color: var(--c-brown); color: var(--c-ivory); }
.day.is-selected::after { background: var(--c-powder); }
.day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.calendar__legend { display: flex; align-items: center; gap: .5rem; margin-top: var(--s-3); }
.day-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-rosegold); }

/* Créneaux */
.slots { border: 0; margin: 0; padding: 0; }
.slots__period { margin: var(--s-3) 0 var(--s-2); font-size: var(--t-small); font-weight: 650; color: var(--c-muted-strong); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: var(--s-2); }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span {
  display: grid; place-items: center;
  min-height: 46px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.slot:hover span { border-color: var(--c-brown); }
.slot input:checked + span { background: var(--c-brown); border-color: var(--c-brown); color: var(--c-ivory); }
.slot input:focus-visible + span { box-shadow: var(--focus); }

/* Récapitulatif */
.summary { display: grid; gap: var(--s-4); }
.summary__title { margin: 0; font-size: 1.5rem; }
.summary__list { margin: 0; display: grid; gap: var(--s-2); }
.summary__list div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: .93rem; }
.summary__list dt { color: var(--c-muted-strong); }
.summary__list dd { margin: 0; text-align: right; font-weight: 560; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.summary__total strong { font-family: var(--f-serif); font-size: 2rem; font-weight: 500; }
.summary__hint { margin: -.5rem 0 0; text-align: center; }
.summary__notice { padding: var(--s-3) var(--s-4); border-radius: var(--radius-m); background: var(--c-info-bg); }
@media (max-width: 960px) {
  .summary { gap: var(--s-3); padding: var(--s-4); }
  .summary__title, .summary__list { display: none; }
  /* Barre collée en bas de l'écran : une seule ligne, total à gauche et bouton à droite,
     pour laisser voir les prestations et les créneaux */
  .booking__summary .summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); }
  .booking__summary .summary__total { display: grid; gap: 0; padding-top: 0; border-top: 0; }
  .booking__summary .summary__total span { font-size: .78rem; color: var(--c-muted-strong); }
  .booking__summary .summary__total strong { font-size: 1.7rem; line-height: 1.05; }
  .booking__summary .summary .btn--block { width: auto; padding-inline: 1.5rem; }
  .booking__summary .summary__hint { display: none; }
  /* Rien de choisi : pas de barre */
  .booking__summary:not(:has(.summary__total)) { display: none; }
}

/* Confirmation */
.confirm { display: grid; gap: var(--s-5); margin: var(--s-5) 0; }
.confirm__date { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
.confirm__date em { color: var(--c-accent-ink); }

.thanks { text-align: center; }
.thanks .container { display: grid; justify-items: center; gap: var(--s-4); }
.thanks__title { font-size: var(--t-h1); margin: 0; }
.thanks__ring { width: 120px; height: 120px; }
.thanks__ring svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thanks__circle { stroke: var(--c-rosegold); stroke-width: 2; stroke-dasharray: 330; stroke-dashoffset: 330; animation: draw 1.2s var(--ease-out) .1s forwards; }
.thanks__check { stroke: var(--c-brown); stroke-width: 3; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .6s var(--ease-out) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks .confirm { width: 100%; max-width: 32rem; }

/* Impression du récapitulatif de rendez-vous : seulement l'essentiel, sur fond blanc */
@media print {
  .site-header, .site-footer, .mobile-cta, .mobile-menu, .frame-corners, .no-print, #toasts { display: none !important; }
  body, .frame { background: #fff !important; }
  .recap { box-shadow: none !important; border: 1px solid #999 !important; }
  a[href]::after { content: none !important; }
}

/* Message pour la prothésiste : photos jointes */
.note-photos__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.note-photos__add { cursor: pointer; }
.note-photos__bar:has(input:focus-visible) .note-photos__add { outline: 2px solid var(--c-accent-ink); outline-offset: 2px; }
.note-photos__preview { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.note-photos__preview:empty { display: none; }
.note-photos__preview img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius-m); border: 1px solid var(--c-line); }
