/* =============================================
   COMPOSANTS PARTAGÉS : réservation, espace client, formulaires
   Chaque site définit ses propres valeurs pour ces variables dans son
   style.css. Les valeurs ci-dessous ne servent que de repli (:where = priorité nulle).
   ============================================= */
:where(:root) {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --ink: #16181d;
  --muted: #5b616e;
  --line: #e1e3e8;
  --accent: #2d5bd7;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --danger: #b42318;
  --ok: #1f7a4a;
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --shadow-lg: 0 30px 80px -20px color-mix(in srgb, var(--ink) 35%, transparent);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  font: 600 0.95rem/1 var(--font-body); white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--ease), background-color 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.ui-btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.ui-btn:active { transform: translateY(1px) scale(0.99); }
.ui-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.ui-btn.is-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ui-btn.is-ghost:hover { background: var(--surface-2); }
.ui-btn.is-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.ui-btn.is-danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.ui-btn.is-small { min-height: 36px; padding: 0 14px; font-size: 0.87rem; }
.ui-btn.is-block { width: 100%; }
.ui-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.ui-btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--accent-ink); border-right-color: transparent;
  animation: ui-spin 0.7s linear infinite;
}
.ui-btn.is-ghost.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

.ui-link { color: var(--accent); background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

:where(.ui-btn, .ui-link, .bk-choice, .bk-day, .bk-slot, .bk-tab, .acc-tab):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Champs ---------- */
.ui-field { display: grid; gap: 6px; margin-bottom: 14px; }
.ui-field > label, .ui-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.ui-input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.ui-input { min-height: 90px; resize: vertical; }
.ui-input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.ui-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ui-input[aria-invalid="true"] { border-color: var(--danger); }
.ui-hint { font-size: 0.82rem; color: var(--muted); }
.ui-error { font-size: 0.82rem; color: var(--danger); font-weight: 500; }
.ui-error:empty { display: none; }
.ui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .ui-row { grid-template-columns: 1fr; } }

.ui-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
  font-size: 0.9rem; line-height: 1.45;
  background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: var(--danger);
}
.ui-alert.is-info { background: var(--accent-soft); color: var(--ink); }
.ui-alert.is-ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--ok); }
.ui-alert[hidden] { display: none; }

/* ---------- Toast ---------- */
.ui-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 460px); padding: 13px 18px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--surface); font: 500 0.92rem/1.4 var(--font-body);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.ui-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.ui-toast.is-error { background: var(--danger); color: #fff; }

/* =============================================
   MODALE DE RÉSERVATION
   ============================================= */
.bk-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.bk-overlay.is-open { opacity: 1; visibility: visible; }
.bk-dialog {
  position: relative; width: min(900px, 100%); max-height: min(760px, calc(100dvh - 48px));
  display: grid; grid-template-rows: auto auto 1fr auto;
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  font-family: var(--font-body);
  transform: translateY(16px) scale(0.985); transition: transform 0.4s var(--ease);
}
.bk-overlay.is-open .bk-dialog { transform: none; }

.bk-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px 14px; }
.bk-title { font: 700 1.25rem/1.2 var(--font-display); margin: 0; flex: 1; }
.bk-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
}
.bk-close:hover { background: color-mix(in srgb, var(--ink) 12%, var(--surface)); }

.bk-steps { display: flex; gap: 6px; padding: 0 24px 16px; margin: 0; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bk-steps li {
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; padding-right: 10px;
}
.bk-steps li::before {
  content: attr(data-n); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem;
  border: 1.5px solid var(--line); color: var(--muted);
}
.bk-steps li.is-done::before { content: '✓'; background: var(--ink); border-color: var(--ink); color: var(--surface); }
.bk-steps li.is-current { color: var(--ink); }
.bk-steps li.is-current::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.bk-body { overflow-y: auto; padding: 22px 24px; overscroll-behavior: contain; }
.bk-foot {
  display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.bk-summary { flex: 1; min-width: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.bk-summary strong { color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bk-intro { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.bk-group + .bk-group { margin-top: 22px; }
.bk-group-title { font: 600 0.8rem/1 var(--font-body); color: var(--muted); margin: 0 0 10px; }

/* Choix (prestations, intervenants) */
.bk-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.bk-choice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px;
  width: 100%; padding: 14px 16px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.bk-choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bk-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.bk-choice-icon {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--surface-2); color: var(--accent);
}
.bk-choice-name { font-weight: 600; font-size: 0.97rem; }
.bk-choice-meta { grid-column: 2; font-size: 0.83rem; color: var(--muted); }
.bk-choice-price { grid-row: 1 / span 2; grid-column: 3; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.bk-avatar {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #fff;
  background: var(--member, var(--accent));
}

/* Date + heure */
.bk-when { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 720px) { .bk-when { grid-template-columns: 1fr; gap: 20px; } }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal-month { font-weight: 700; }
.bk-cal-month::first-letter { text-transform: uppercase; }
.bk-cal-nav { display: flex; gap: 6px; }
.bk-cal-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.bk-cal-nav button:disabled { opacity: 0.3; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-dow { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.bk-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font: 600 0.9rem/1 var(--font-body); cursor: pointer;
}
.bk-day:hover:not(:disabled) { background: var(--surface-2); }
.bk-day:disabled { color: color-mix(in srgb, var(--muted) 50%, transparent); cursor: default; font-weight: 400; }
.bk-day.has-slots::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.bk-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.bk-day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bk-day[aria-pressed="true"]::after { background: var(--accent-ink); }
.bk-cal-loading .bk-day { opacity: 0.4; }

.bk-slots-title { font-weight: 700; margin: 0 0 12px; }
.bk-slots-title::first-letter { text-transform: uppercase; }
.bk-period + .bk-period { margin-top: 16px; }
.bk-period-name { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.bk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-slot {
  display: grid; gap: 2px; justify-items: center;
  min-height: 44px; padding: 8px 6px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.92rem/1.1 var(--font-body); cursor: pointer;
}
.bk-slot:hover:not(:disabled) { border-color: var(--accent); }
.bk-slot:disabled { cursor: not-allowed; color: var(--muted); background: var(--surface-2); border-color: transparent; text-decoration: line-through; font-weight: 400; }
.bk-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk-slot small { font-size: 0.7rem; font-weight: 500; opacity: 0.8; text-decoration: none; }
.bk-slot.is-low small { color: var(--danger); opacity: 1; }
.bk-slot[aria-pressed="true"].is-low small { color: inherit; }

.bk-empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); }
.bk-empty i { font-size: 1.6rem; display: block; margin-bottom: 8px; }

.bk-skel { height: 44px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 40%, var(--surface)), var(--surface-2)); background-size: 200% 100%; animation: bk-shimmer 1.2s infinite; }
@keyframes bk-shimmer { to { background-position: -200% 0; } }

/* Identification */
.bk-auth { max-width: 460px; margin: 0 auto; }
.bk-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--surface-2); border-radius: var(--radius-sm); }
.bk-tab { min-height: 40px; padding: 0 8px; border: 0; border-radius: calc(var(--radius-sm) - 3px); background: transparent; color: var(--muted); font: 600 0.9rem var(--font-body); cursor: pointer; }
.bk-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.bk-auth-note { font-size: 0.84rem; color: var(--muted); margin: 4px 0 0; text-align: center; }

/* Récapitulatif */
.bk-recap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 720px) { .bk-recap { grid-template-columns: 1fr; } }
.bk-recap-card { padding: 20px; border-radius: var(--radius-sm); background: var(--surface-2); }
.bk-recap-list { display: grid; gap: 12px; margin: 0; }
.bk-recap-list div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.bk-recap-list dt { color: var(--muted); font-size: 0.88rem; }
.bk-recap-list dd { margin: 0; font-weight: 600; }
.bk-policy { font-size: 0.86rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.bk-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.9rem; }

/* Succès */
.bk-success { text-align: center; padding: 18px 0 8px; max-width: 480px; margin: 0 auto; }
.bk-success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem;
  background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok);
  animation: bk-pop 0.5s var(--ease);
}
@keyframes bk-pop { from { transform: scale(0.6); opacity: 0; } }
.bk-success h3 { font: 700 1.5rem/1.2 var(--font-display); margin: 0 0 8px; }
.bk-success p { color: var(--muted); margin: 0 0 6px; }
.bk-ref { display: inline-block; margin: 10px 0 22px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font: 600 0.85rem/1 ui-monospace, monospace; letter-spacing: 0.08em; }
.bk-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Mobile : plein écran */
@media (max-width: 640px) {
  .bk-overlay { padding: 0; place-items: end stretch; }
  .bk-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .bk-head { padding: 14px 16px 10px; }
  .bk-steps { padding: 0 16px 12px; }
  .bk-steps li:not(.is-current) { font-size: 0; gap: 0; padding-right: 2px; }
  .bk-body { padding: 18px 16px; }
  .bk-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .bk-choices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-overlay, .bk-dialog, .ui-toast, .ui-btn { transition: none; }
  .bk-success-icon, .bk-skel { animation: none; }
}

/* ---------- Apparition au défilement (activée par site.js) ---------- */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* =============================================
   ESPACE CLIENT (/compte)
   ============================================= */
.acc-page { min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
.acc-top { border-bottom: 1px solid var(--line); background: var(--surface); }
.acc-top-inner { max-width: 980px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 16px; }
.acc-brand { font: 700 1.1rem/1 var(--font-display); color: var(--ink); text-decoration: none; flex: 1; }
.acc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.acc-back:hover { color: var(--ink); }
.acc-main { max-width: 980px; margin: 0 auto; padding: 40px 20px 80px; }
.acc-hello { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.acc-hello h1 { font: 700 clamp(1.7rem, 4vw, 2.3rem)/1.1 var(--font-display); margin: 0 0 6px; }
.acc-hello p { margin: 0; color: var(--muted); }
.acc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.acc-tab { padding: 12px 14px; border: 0; background: none; color: var(--muted); font: 600 0.93rem var(--font-body); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.acc-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.acc-section-title { font: 600 0.95rem/1 var(--font-body); color: var(--muted); margin: 28px 0 12px; }
.acc-section-title:first-child { margin-top: 0; }
.acc-list { display: grid; gap: 10px; }
.acc-booking {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.acc-date { text-align: center; padding: 8px 0; border-radius: var(--radius-sm); background: var(--accent-soft); }
.acc-date b { display: block; font: 700 1.6rem/1 var(--font-display); }
.acc-date span { font-size: 0.75rem; font-weight: 600; text-transform: capitalize; color: var(--muted); }
.acc-info h3 { margin: 0 0 4px; font-size: 1.02rem; }
.acc-info p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc-booking.is-past { background: transparent; }
.acc-booking.is-past .acc-date { background: var(--surface-2); }
.acc-status { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.acc-status.is-cancelled, .acc-status.is-no_show { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); }
@media (max-width: 640px) {
  .acc-booking { grid-template-columns: 60px 1fr; }
  .acc-actions { grid-column: 1 / -1; justify-content: stretch; }
  .acc-actions .ui-btn { flex: 1; }
}
.acc-card { max-width: 520px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.acc-card + .acc-card { margin-top: 18px; }
.acc-card h2 { font: 700 1.15rem/1.2 var(--font-display); margin: 0 0 18px; }
.acc-auth { max-width: 460px; margin: 20px auto 0; }
.acc-auth h1 { font: 700 clamp(1.7rem, 4vw, 2.2rem)/1.15 var(--font-display); margin: 0 0 8px; text-align: center; }
.acc-auth > p { text-align: center; color: var(--muted); margin: 0 0 24px; }
.acc-empty { padding: 36px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.acc-empty p { margin: 0 0 16px; }
.acc-dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: 420px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.acc-dialog::backdrop { background: color-mix(in srgb, var(--ink) 50%, transparent); }
.acc-dialog-body { padding: 24px; }
.acc-dialog h2 { margin: 0 0 8px; font: 700 1.2rem/1.2 var(--font-display); }
.acc-dialog p { margin: 0 0 20px; color: var(--muted); }
.acc-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* L'attribut hidden doit toujours gagner sur les display des composants */
.bk-overlay [hidden], .acc-page [hidden], .ui-alert[hidden] { display: none !important; }

/* =============================================
   SECTIONS COMMUNES À TOUTES LES GAMMES
   Galerie, avis, sections libres du gérant, logo image, réseaux sociaux.
   Elles reprennent les variables de la gamme (couleurs, polices, angles).
   ============================================= */
.x-section { padding: clamp(64px, 9vw, 104px) 0; }
.x-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.x-head { margin-bottom: 32px; max-width: 62ch; }
.x-title { font: 700 clamp(1.9rem, 4.2vw, 3rem)/1.06 var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
.x-intro { color: var(--muted); margin: 0; }

.x-gallery { columns: 3 260px; column-gap: 14px; }
.x-photo { margin: 0 0 14px; break-inside: avoid; }
.x-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.x-photo-btn img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.x-photo-btn:hover img { transform: scale(1.03); }
.x-photo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.x-photo figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

.x-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.x-review { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.x-review p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); flex: 1; }
.x-review footer { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.x-stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }

.x-block-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.x-block.has-image .x-block-grid { grid-template-columns: 1fr 1fr; }
.x-block.is-right .x-block-img { order: 2; }
.x-block-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.x-block-copy { max-width: 62ch; }
.x-block-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; margin: 0 0 24px; }
@media (max-width: 760px) { .x-block.has-image .x-block-grid { grid-template-columns: 1fr; } .x-block.is-right .x-block-img { order: 0; } }

.site-logo { display: block; height: 42px; width: auto; max-width: 200px; object-fit: contain; }
.foot .site-logo { height: 30px; }

.x-social { display: inline-flex; gap: 6px; }
.x-social a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.x-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Agrandissement des photos de la galerie */
.x-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
.x-lightbox::backdrop { background: rgba(10, 10, 12, 0.88); }
.x-lightbox img { display: block; max-width: 100%; max-height: 88vh; border-radius: 8px; }
.x-lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.2rem; cursor: pointer; }

/* Avis Google sur le site */
.x-google { margin-bottom: 28px; }
.x-gsummary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.x-gscore { font: 700 2.6rem/1 var(--font-display); color: var(--ink); }
.x-gsummary .x-stars { display: block; font-size: 1.2rem; color: #e7a10b; }
.x-gsummary small { display: block; color: var(--muted); font-size: 0.88rem; }
.x-gsummary small a { color: inherit; }
.x-gsummary .ui-btn { margin-left: auto; }
.x-review.is-google .x-stars { color: #e7a10b; }
.x-gauthor { display: flex; align-items: center; gap: 10px; }
.x-gauthor img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.x-gauthor a { color: var(--ink); text-decoration: none; }
.x-gauthor a:hover { text-decoration: underline; }
.x-gauthor small { display: block; font-weight: 400; font-size: 0.8rem; }
.x-reviews-own { margin-top: 16px; }

/* ---------- Carrousel de photos ---------- */
.x-carousel { position: relative; --car-ratio: 4 / 3; }
.x-carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--car-radius, var(--radius)); scrollbar-width: none; outline: none;
}
.x-carousel-track::-webkit-scrollbar { display: none; }
.x-carousel-track:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.x-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.x-slide img { display: block; width: 100%; aspect-ratio: var(--car-ratio); object-fit: cover; }
.x-slide figcaption { padding: 10px 2px 0; font-size: 0.92rem; color: var(--muted); }
.x-car-btn {
  position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem; color: #111; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: opacity 0.2s, transform 0.2s;
}
.x-car-btn:hover { transform: scale(1.06); }
.x-car-btn:disabled { opacity: 0; pointer-events: none; }
.x-car-btn.is-prev { left: 12px; }
.x-car-btn.is-next { right: 12px; }
.x-car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.x-car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.25s, background-color 0.25s; }
.x-car-dots button[aria-current="true"] { width: 22px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .x-carousel-track { scroll-behavior: auto; } }
@media (hover: none) { .x-car-btn { width: 38px; height: 38px; } }

/* =============================================
   AFFICHAGES DE LA CARTE DES PRESTATIONS (.xs-*)
   ============================================= */
.xs { --xs-gap: 16px; }
.xs .xs-group + .xs-group { margin-top: 44px; }
.xs-cat { font: 600 1.25rem/1.2 var(--font-display); margin: 0 0 18px; color: var(--ink); }
.xs-name { margin: 0; font: 600 1.08rem/1.3 var(--font-body); color: var(--ink); }
.xs-desc { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.xs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--xs-gap); }

/* Cartes */
.xs-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.xs-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--ink) 45%, transparent); }
.xs-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: var(--accent); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); margin-bottom: 4px; }
.xs-card .xs-desc { flex: 1; }
.xs-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.xs-meta strong { color: var(--ink); font-size: 1.1rem; }
.xs-book { align-self: flex-start; margin-top: 4px; }

/* Menu (façon carte de restaurant) */
.xs-menu { columns: 2 340px; column-gap: 64px; }
.xs-menu .xs-group { break-inside: avoid; margin: 0 0 40px; }
.xs-menu .xs-group + .xs-group { margin-top: 0; }
.xs-menu .xs-cat { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--accent); }
.xs-menu .xs-cat::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.xs-menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.xs-menu-item {
  display: grid; gap: 4px; width: 100%; padding: 10px 12px; margin: 0 -12px; box-sizing: content-box;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.xs-menu-item:hover, .xs-menu-item:focus-visible { background: var(--surface-2); outline: none; }
.xs-menu-line { display: flex; align-items: baseline; gap: 10px; }
.xs-menu-line .xs-name { font-weight: 600; }
.xs-dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--muted) 45%, transparent); transform: translateY(-4px); min-width: 20px; }
.xs-price { font-weight: 700; white-space: nowrap; }
.xs-menu-item .xs-desc { font-size: 0.9rem; }
.xs-dur { color: var(--muted); white-space: nowrap; }
.xs-menu-item .xs-dur.has-sep::before { content: "·"; margin-right: 6px; }

/* Onglets */
.xs-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.xs-tablist button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.95rem var(--font-body);
}
.xs-tablist button small { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.xs-tablist button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.xs-tablist button[aria-selected="true"] small { color: inherit; opacity: 0.7; }
.xs-tablist button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.xs-panel[hidden] { display: none; }
.xs-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 24px; align-items: center; padding: 18px 0; }
.xs-row + .xs-row { border-top: 1px solid var(--line); }
.xs-row-main { display: grid; gap: 4px; }
.xs-row-meta { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.xs-row-meta span { color: var(--muted); font-size: 0.88rem; }
.xs-row-meta strong { color: var(--ink); }
@media (max-width: 600px) {
  .xs-row { grid-template-columns: 1fr auto; }
  .xs-row .ui-btn { grid-column: 1 / -1; justify-self: start; }
  .xs-panel { padding: 4px 16px; }
}

/* Photos */
.xs-photos .xs-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.xs-pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.xs-pimg { display: block; padding: 0; border: 0; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.xs-pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.xs-pimg:hover img { transform: scale(1.04); }
.xs-pimg.is-empty { display: grid; place-items: center; font-size: 2.6rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.xs-pbody { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.xs-pbody .xs-desc { flex: 1; }
.xs-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.xs-line strong { white-space: nowrap; color: var(--ink); }
.xs-pbody .xs-dur { font-size: 0.9rem; }

/* =============================================
   OPTIONS D'AFFICHAGE DES SECTIONS
   ============================================= */

/* ---------- Haut de page (gammes « texte + photo » : .hero-grid > texte, photo) ---------- */
@media (min-width: 821px) {
  [data-v-hero="inverse"] .hero-grid > :last-child { order: -1; }
}
[data-v-hero="centre"] .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 40px; }
[data-v-hero="centre"] .hero-grid > :first-child { max-width: 860px; }
[data-v-hero="centre"] .hero-title, [data-v-hero="centre"] .hero-lead { margin-inline: auto; }
[data-v-hero="centre"] .hero-actions { justify-content: center; }
[data-v-hero="centre"] .hero-grid > :last-child { width: min(100%, 1040px); max-width: none; border-radius: var(--radius); }
[data-v-hero="centre"] .hero-grid > :last-child img { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); }
[data-v-hero="texte"] .hero-grid { grid-template-columns: 1fr; }
[data-v-hero="texte"] .hero-grid > :last-child { display: none; }
[data-v-hero="texte"] .hero-grid > :first-child { max-width: 920px; }
[data-v-hero="texte"] .hero { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(56px, 9vw, 120px); }

/* ---------- Équipe ---------- */
.x-team-circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 20px; text-align: center; }
.x-team-circles .x-member-photo { width: 148px; height: 148px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.x-team-list { display: grid; gap: 14px; max-width: 860px; }
.x-team-list .x-member { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.x-team-list .x-member-photo { width: 112px; height: 112px; border-radius: var(--radius-sm); object-fit: cover; }
.x-member-photo.team-initials { display: grid; place-items: center; background: var(--member); color: #fff; font: 700 2rem/1 var(--font-display); }
.x-member-name { margin: 0; font: 600 1.15rem/1.25 var(--font-display); color: var(--ink); }
.x-member-role { margin: 4px 0 0; color: var(--accent); font-weight: 600; font-size: 0.93rem; }
.x-member-bio { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 520px) { .x-team-list .x-member { grid-template-columns: 76px 1fr; gap: 14px; } .x-team-list .x-member-photo { width: 76px; height: 76px; } }

/* ---------- Horaires ---------- */
.x-hours-compact { margin: 0; display: grid; gap: 8px; }
.x-hours-compact > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.x-hours-compact dt { font-weight: 600; color: var(--ink); }
.x-hours-compact dd { margin: 0; color: var(--muted); text-align: right; }
.x-hours-compact .is-today { border-color: var(--accent); }
.x-hours-compact .is-today dd { color: var(--accent); font-weight: 600; }
.x-hours-compact .is-closed dd { font-style: italic; }
.x-hours-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.x-day { display: grid; gap: 4px; align-content: start; justify-items: center; padding: 14px 6px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 0.85rem; color: var(--muted); }
.x-day strong { color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }
.x-day span { line-height: 1.35; }
.x-day small { margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 0.72rem; }
.x-day.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.x-day.is-closed { opacity: 0.6; }
@media (max-width: 640px) { .x-hours-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Galerie ---------- */
.x-gallery.is-grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.x-gallery.is-grid .x-photo { margin: 0; }
.x-gallery.is-grid .x-photo-btn img { aspect-ratio: 1; object-fit: cover; }
.x-gallery-carousel { --car-ratio: 16 / 9; }
.x-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; outline: none; }
.x-strip .x-photo { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.x-strip .x-photo-btn img { height: clamp(220px, 32vw, 380px); width: auto; max-width: none; }
.x-strip:focus-visible { box-shadow: 0 0 0 3px var(--accent); }

/* ---------- Avis ---------- */
.x-reviews.is-list { grid-template-columns: 1fr; max-width: 820px; gap: 0; }
.x-reviews.is-list .x-review { border-radius: 0; border-width: 0 0 1px; background: transparent; padding: 22px 0; }
.x-quotes .x-carousel-track { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.x-quote { margin: 0; padding: clamp(28px, 6vw, 64px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.x-quote p { margin: 0; max-width: 46ch; font: 500 clamp(1.2rem, 2.6vw, 1.7rem)/1.45 var(--font-display); color: var(--ink); }
.x-quote .x-stars { font-size: 1.2rem; }
.x-quote.is-google .x-stars { color: #e7a10b; }
.x-quotes .x-car-btn { top: calc(50% - 40px); }

/* =============================================
   PAGES LÉGALES
   ============================================= */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; color: var(--ink); font-family: var(--font-body); line-height: 1.7; }
.legal h1 { font: 700 clamp(1.8rem, 4.5vw, 2.6rem)/1.15 var(--font-display); margin: 0 0 28px; letter-spacing: -0.02em; }
.legal h2 { font: 600 1.15rem/1.3 var(--font-display); margin: 32px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }
.legal code { font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.legal-lead { font-size: 1.1rem; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-updated { margin-top: 36px; font-size: 0.88rem; color: var(--muted) !important; }
.legal-missing { background: #fde68a; color: #713f12; padding: 0 6px; border-radius: 4px; font-size: 0.9em; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.legal-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Liens légaux dans le pied de page des sites */
.x-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; }
.x-legal a { color: inherit; opacity: 0.8; text-decoration: none; }
.x-legal a:hover { opacity: 1; text-decoration: underline; }
.ui-legal-note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin: 10px 0 0; }
.ui-legal-note a { color: inherit; text-decoration: underline; }

/* ---------- Séances en ligne ---------- */
.x-online { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 0.78em; font-weight: 600; line-height: 1.6; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); white-space: nowrap; vertical-align: middle; }
.bk-tz { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 14px; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.bk-tz i { margin-top: 2px; }
.bk-visio { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 12px 0 0 !important; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink) !important; font-size: 0.92rem; }
.bk-visio a { color: inherit; font-weight: 600; }
.acc-visio { display: inline-flex; align-items: center; gap: 6px; color: var(--accent) !important; font-weight: 600; }

/* Questions fréquentes ({{faq.cle}}) */
.x-faq { border-bottom: 1px solid var(--line); }
.x-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: '+'; flex: none; font-size: 1.4em; line-height: 0.8; color: var(--muted); transition: transform 0.2s; }
.x-faq[open] summary::after { transform: rotate(45deg); }
.x-faq p { margin: -6px 0 20px; color: var(--muted); max-width: 64ch; }

/* Étape « Avec qui ? » : prochaine disponibilité de chaque personne */
.bk-next { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; max-width: 150px; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-align: right; line-height: 1.3; }
.bk-next i { font-size: 0.55rem; color: color-mix(in srgb, var(--muted) 60%, transparent); flex: none; }
.bk-next.is-today { color: #1f8a4c; }
.bk-next.is-today i { color: #1fbf75; }
.bk-next.is-full { font-weight: 500; opacity: 0.75; }
.bk-skel-line { display: block; width: 90px; height: 10px; border-radius: 6px; background: var(--surface-2); }
@media (prefers-color-scheme: dark) { .bk-next.is-today { color: #4fd18b; } }
.acc-pending, .acc-paid { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.acc-pending { color: #a15c00 !important; }
.acc-paid { color: #1f8a4c !important; }

/* Réservé sans compte : retrouver son rendez-vous (page Mon espace) */
.acc-guest { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.acc-guest h2 { margin: 0; font: 600 1.1rem/1.3 var(--font-display); }
.acc-guest > p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.acc-guest-list { display: grid; gap: 8px; margin-bottom: 12px; }
.acc-guest-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.acc-guest-item:hover { border-color: var(--accent); }
.acc-guest-item span { display: grid; gap: 2px; font-size: 0.92rem; color: var(--muted); }
.acc-guest-item strong { color: var(--ink); }

/* ---------- Catalogue (fiches avec champs du gérant) ---------- */
.x-cat-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 24px; }
.x-cat-filter { display: grid; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.x-cat-filter select, .x-cat-filter input { min-height: 40px; min-width: 150px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; }
.x-cat-filter input { width: 150px; }
.x-cat-count { margin-left: auto; font-size: 0.9rem; color: var(--muted); align-self: center; }
.x-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.x-cat-card[hidden] { display: none; }
.x-cat-open { display: grid; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.x-cat-open:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -22px rgb(0 0 0 / 0.45); }
.x-cat-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.x-cat-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-2); color: var(--muted); font-size: 2rem; overflow: hidden; }
.x-cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.x-cat-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #fff4d6; color: #6b4e00; }
.x-cat-badge.is-sold { background: #2a2a2e; color: #fff; }
.x-cat-detail .x-cat-badge { position: static; vertical-align: middle; margin-left: 6px; }
.x-cat-card.is-sold .x-cat-photo img { filter: grayscale(0.7); opacity: 0.75; }
.x-cat-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.x-cat-title { font: 600 1.05rem/1.3 var(--font-display); }
.x-cat-specs { font-size: 0.88rem; color: var(--muted); }
.x-cat-price { font: 700 1.2rem/1.2 var(--font-display); color: var(--accent); margin: 2px 0 0; }
.x-cat-none { margin: 24px 0 0; color: var(--muted); }
.x-cat-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--ink); overflow: auto; }
.x-cat-dialog::backdrop { background: rgb(10 10 12 / 0.6); }
.x-cat-close { position: sticky; top: 10px; float: right; z-index: 2; margin: 10px 10px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 0.15); }
.x-cat-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.x-cat-gallery { display: grid; gap: 4px; align-content: start; align-self: start; }
.x-cat-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.x-cat-info { display: grid; gap: 14px; align-content: start; padding: 28px; }
.x-cat-info h3 { margin: 0; font: 600 1.5rem/1.2 var(--font-display); }
.x-cat-table { margin: 0; display: grid; }
.x-cat-table div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.x-cat-table dt { color: var(--muted); }
.x-cat-table dd { margin: 0; font-weight: 600; text-align: right; }
.x-cat-desc { margin: 0; color: var(--muted); }
.x-cat-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .x-cat-detail { grid-template-columns: 1fr; } .x-cat-gallery { grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; } .x-cat-gallery img { scroll-snap-align: start; } .x-cat-count { margin-left: 0; } }
.x-cat-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.x-cat-more[hidden] { display: none; }

/* Diaporama de la fiche catalogue */
.x-cat-gallery.is-slider { display: block; overflow: visible; }
.x-cat-view { position: relative; background: #000; }
.x-cat-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.x-cat-track::-webkit-scrollbar { display: none; }
.x-cat-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.x-cat-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.9); color: #111; font-size: 1.2rem; cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / 0.25); transition: opacity 0.2s; }
.x-cat-nav.is-prev { left: 12px; }
.x-cat-nav.is-next { right: 12px; }
.x-cat-nav:disabled { opacity: 0; pointer-events: none; }
.x-cat-counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font: 600 0.8rem/1.4 var(--font-body, system-ui); }
.x-cat-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
.x-cat-thumbs::-webkit-scrollbar { display: none; }
.x-cat-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.15s, border-color 0.15s; }
.x-cat-thumbs button:hover { opacity: 0.9; }
.x-cat-thumbs button.is-active { opacity: 1; border-color: var(--accent); }
.x-cat-thumbs img { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
@media (max-width: 760px) { .x-cat-nav { width: 36px; height: 36px; } .x-cat-thumbs img { width: 52px; height: 39px; } }
/* Croix de la fiche : par-dessus la photo, sans prendre de place (sinon la fiche se rétrécit sur téléphone) */
.x-cat-close { float: none; display: grid; place-items: center; margin: 10px 10px -50px auto; }

/* Prochaines dates d'une séance ponctuelle (formation, atelier) */
.svc-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; grid-column: -3 / -1; width: 100%; flex-basis: 100%; font-size: 0.86rem; color: var(--muted); }
.svc-dates button { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, transparent); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.svc-dates button:hover { border-color: var(--accent); color: var(--accent); }

/* Prestation sans icône : rien à afficher (les modèles en grille gardent la place, voir leur style.css) */
.svc-icon.is-empty { display: none; }
