/* Public booking: tenant colour, compact mobile layout, accessible selection. */
body.booking-public #offres-list .offre-card { border-color: var(--zb-button, #4f46e5) !important; }
.booking-public .offre-card:hover,
.booking-public .offre-card:focus-visible { box-shadow: 0 0 0 2px var(--zb-button, #4f46e5); }
.booking-public .offre-card.is-selected { box-shadow: 0 0 0 3px var(--zb-button, #4f46e5); transform: none; }
.booking-public .offre-card.is-selected::after { content: '✓ Sélectionnée'; display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--zb-button, #4f46e5); }
.booking-public .offre-card [class*="text-amber"],
.booking-public #recap-content [class*="text-amber"] { color: var(--zb-button, #4f46e5) !important; }
.booking-option { min-width: 0; }
.booking-option > label { min-height: 76px; height: auto; }
.booking-option > label > span { min-width: 0; overflow-wrap: anywhere; }
.booking-option > label > div { flex-shrink: 0; }
.booking-option-details { padding: 10px 16px; border: 1px solid var(--zb-border, #e2e8f0); border-top: 0; border-radius: 0 0 12px 12px; font-size: 14px; }
.booking-option-details summary { cursor: pointer; color: var(--zb-button, #4f46e5); font-weight: 600; }
.booking-calendar-status { font-size: 13px; margin-top: 10px; color: var(--zb-muted, #64748b); }
.booking-public .flatpickr-day.flatpickr-disabled { color: #64748b; background: #f1f5f9; text-decoration: line-through; opacity: .65; }
.booking-multi-list { display: grid; gap: 14px; }
.booking-multi-row { padding: 16px; border: 1px solid var(--zb-border, #cbd5e1); border-radius: 16px; background: var(--zb-surface, #fff); }
.booking-multi-row h3 { font-weight: 700; margin-bottom: 10px; overflow-wrap: anywhere; }
.booking-multi-controls { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.booking-multi-controls label { flex: 1; min-width: 120px; font-size: 14px; }
.booking-multi-controls select,.booking-multi-controls input { display: block; width: 100%; padding: 12px; margin-top: 5px; border: 1px solid #cbd5e1; border-radius: 10px; color: var(--zb-text, #1e293b); background: var(--zb-surface, #fff); font-size: 16px; }
.booking-multi-controls label:last-child { flex: 0 1 100px; }
.booking-public .equipment-card.is-multi-selected { box-shadow: 0 0 0 3px var(--zb-button, #4f46e5); }
@media (max-width: 639px) {
  .booking-public { overflow-wrap: anywhere; }
  .booking-public main { padding-left: 14px !important; padding-right: 14px !important; padding-top: 24px !important; }
  body.booking-public .booking-public-header h1,
  body.booking-public.booking-themed .booking-public-header h1 { font-size: min(var(--zb-size-title, 22px), 22px) !important; line-height: 1.2 !important; }
  body.booking-public .booking-public-header p,
  body.booking-public.booking-themed .booking-public-header p { font-size: 13px !important; line-height: 1.35 !important; }
  .booking-public main > div:first-child h2 { font-size: 27px !important; line-height: 1.2 !important; }
  body.booking-public .glass-card,
  body.booking-public.booking-themed section.glass-card { padding: 18px !important; border-radius: 20px !important; }
  body.booking-public .glass-card h2,
  body.booking-public.booking-themed section.glass-card h2 { font-size: min(var(--zb-size-section, 21px), 21px) !important; line-height: 1.25 !important; }
  .booking-public .booking-category-icon { width: 42px !important; height: 42px !important; flex-shrink: 0; font-size: 20px !important; }
  .booking-public #equipment-list,.booking-public #offres-list { gap: 18px !important; }
  .booking-public .equipment-card { min-height: 330px !important; transform: none !important; }
  .booking-public .equipment-card h3 { font-size: 23px !important; line-height: 1.2; }
  .booking-public .equipment-card .truncate { white-space: normal; overflow-wrap: anywhere; }
  .booking-public .offre-card { padding: 20px !important; transform: none !important; }
  .booking-public .offre-card h3 { font-size: 21px !important; }
  .booking-public input:not([type=checkbox]):not([type=radio]),.booking-public select,.booking-public textarea { font-size: 16px !important; min-width: 0; max-width: 100%; }
  .booking-public #date-debut,.booking-public #date-fin { cursor: pointer; }
  .booking-public .modal { padding: 12px !important; }
  .booking-public .modal > div { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .booking-public .booking-confirmation-card { padding: 24px 18px !important; }
  .booking-public .booking-confirmation-title { font-size: 25px !important; }
  .booking-option > label { gap: 10px !important; padding: 12px !important; }
  .booking-option > label > span:last-child { flex-shrink: 0; padding: 4px 8px; font-size: 12px; }
  .booking-public .flatpickr-calendar { max-width: calc(100vw - 16px); }
}

/* 2026-10-14 : calendrier aux couleurs du thème de réservation (pages avec un thème enregistré).
   Fenêtre = « Blocs », texte = « Texte », date choisie = « Principale », indisponible = « Dates indisponibles ». */
.booking-public.booking-themed .flatpickr-calendar { background: var(--zb-surface, #fff); color: var(--zb-text, #0f172a); border: 1px solid var(--zb-border, #e2e8f0); box-shadow: 0 18px 45px -24px rgba(15,23,42,.45); }
.booking-public.booking-themed .flatpickr-calendar.arrowTop:before, .booking-public.booking-themed .flatpickr-calendar.arrowTop:after { border-bottom-color: var(--zb-surface, #fff); }
.booking-public.booking-themed .flatpickr-calendar.arrowBottom:before, .booking-public.booking-themed .flatpickr-calendar.arrowBottom:after { border-top-color: var(--zb-surface, #fff); }
.booking-public.booking-themed .flatpickr-months .flatpickr-month, .booking-public.booking-themed .flatpickr-weekdays, .booking-public.booking-themed span.flatpickr-weekday { background: transparent; color: var(--zb-text, #0f172a); fill: var(--zb-text, #0f172a); }
.booking-public.booking-themed span.flatpickr-weekday { color: var(--zb-muted, #64748b); }
.booking-public.booking-themed .flatpickr-current-month .flatpickr-monthDropdown-months, .booking-public.booking-themed .flatpickr-current-month input.cur-year { background: var(--zb-field, #f8fafc); color: var(--zb-text, #0f172a); border-radius: 8px; }
.booking-public.booking-themed .flatpickr-current-month .flatpickr-monthDropdown-months option { background: var(--zb-surface, #fff); color: var(--zb-text, #0f172a); }
.booking-public.booking-themed .flatpickr-months .flatpickr-prev-month, .booking-public.booking-themed .flatpickr-months .flatpickr-next-month { color: var(--zb-text, #0f172a); fill: var(--zb-text, #0f172a); }
.booking-public.booking-themed .flatpickr-months .flatpickr-prev-month:hover svg, .booking-public.booking-themed .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--zb-primary, #4f46e5); }
.booking-public.booking-themed .flatpickr-day { color: var(--zb-text, #0f172a); border-color: transparent; }
.booking-public.booking-themed .flatpickr-day:hover, .booking-public.booking-themed .flatpickr-day:focus { background: var(--zb-field, #f8fafc); border-color: var(--zb-border, #e2e8f0); color: var(--zb-text, #0f172a); }
.booking-public.booking-themed .flatpickr-day.today { border-color: var(--zb-primary, #4f46e5); }
.booking-public.booking-themed .flatpickr-day.selected, .booking-public.booking-themed .flatpickr-day.selected:hover, .booking-public.booking-themed .flatpickr-day.startRange, .booking-public.booking-themed .flatpickr-day.endRange { background: var(--zb-primary, #4f46e5); border-color: var(--zb-primary, #4f46e5); color: var(--zb-button-text, #fff); }
.booking-public.booking-themed .flatpickr-day.prevMonthDay, .booking-public.booking-themed .flatpickr-day.nextMonthDay { color: var(--zb-muted, #64748b); opacity: .5; }
.booking-public.booking-themed .flatpickr-day.flatpickr-disabled, .booking-public.booking-themed .flatpickr-day.flatpickr-disabled:hover { color: var(--zb-calendar-unavailable, #94a3b8); background: color-mix(in srgb, var(--zb-calendar-unavailable, #94a3b8) 20%, transparent); border-color: transparent; text-decoration: line-through; opacity: 1; cursor: not-allowed; }

/* 2026-10-16 : options sur deux colonnes alignées (cartes de même hauteur par rangée, « En savoir plus » dessous). */
@media (min-width: 768px) {
  @supports (grid-template-rows: subgrid) {
    .booking-options-grid > .booking-option { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
    .booking-options-grid > .booking-option > label { align-self: stretch; }
    .booking-options-grid > .booking-option > .booking-option-details { align-self: start; }
  }
}

/* 2026-10-16 : image des options (vignette à côté du nom, grande image dans « En savoir plus »). */
.booking-option-thumb { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: 12px; background: #f1f5f9; }
.booking-option-thumb--sm { width: 40px; height: 40px; border-radius: 8px; margin-left: 8px; }
.booking-option-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin: 8px 0 10px; }
@media (max-width: 480px) { .booking-option-thumb { width: 44px; height: 44px; border-radius: 10px; } }
