/* ST Site Manager — module de réservation et espace client */
.stsm-booking, .stsm-account { display: flex; flex-direction: column; gap: 18px; }
.stsm-booking__title { margin: 0; font-size: 1.2rem; }
.stsm-panel { background: var(--stsm-bg); border: 1px solid var(--stsm-border); border-radius: var(--stsm-radius); padding: clamp(16px, 2.5vw, 26px); }
.stsm-panel h2 { margin-top: 0; }

/* Étapes */
.stsm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stsm-steps, 4), minmax(0, 1fr)); gap: 8px; }
.stsm-steps button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--stsm-border); border-radius: var(--stsm-radius-sm); background: var(--stsm-bg); color: var(--stsm-muted); font: inherit; font-size: .9rem; text-align: left; cursor: default; }
.stsm-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--stsm-surface); font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.stsm-steps .is-current button { border-color: var(--stsm-accent); border-width: 2px; color: var(--stsm-text); font-weight: 600; }
.stsm-steps .is-done button { color: var(--stsm-text); cursor: pointer; }
.stsm-steps .is-done span { background: var(--stsm-text); color: var(--stsm-bg); }
@media (max-width: 640px) {
	.stsm-steps { grid-template-columns: repeat(var(--stsm-steps, 4), auto); }
	.stsm-steps button { padding: 8px; font-size: 0; gap: 0; }
	.stsm-steps span { font-size: .8rem; }
	.stsm-steps .is-current button { font-size: .85rem; gap: 6px; }
}

/* Choix de prestation */
.stsm-choice { text-align: left; font: inherit; cursor: pointer; width: 100%; }
.stsm-choice:hover { border-color: var(--stsm-text); }
.stsm-choice.is-selected { border-color: var(--stsm-accent); box-shadow: 0 0 0 1px var(--stsm-accent); }
.stsm-choice .stsm-card__title, .stsm-choice .stsm-card__desc, .stsm-choice .stsm-card__eyebrow { display: block; }
.stsm-choice__meta { display: block; }
.stsm-filter { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.stsm-filter select { padding: 8px 10px; border-radius: var(--stsm-radius-sm); border: 1px solid var(--stsm-border); font: inherit; background: var(--stsm-bg); color: inherit; }

.stsm-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; background: var(--stsm-surface); border-radius: var(--stsm-radius-sm); }
.stsm-summary span { color: var(--stsm-muted); text-transform: none; }

/* Calendrier + créneaux */
.stsm-when { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--stsm-gap); }
@media (max-width: 760px) { .stsm-when { grid-template-columns: minmax(0, 1fr); } }
.stsm-calendar, .stsm-slots { border: 1px solid var(--stsm-border); border-radius: var(--stsm-radius); padding: 16px; background: var(--stsm-bg); }
.stsm-calendar__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; text-transform: capitalize; }
.stsm-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--stsm-border); background: var(--stsm-bg); color: var(--stsm-text); font-size: 20px; cursor: pointer; }
.stsm-icon-btn[disabled] { opacity: .35; cursor: default; }
.stsm-calendar__dow, .stsm-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.stsm-calendar__dow { font-size: .75rem; color: var(--stsm-muted); margin-bottom: 4px; }
.stsm-day { aspect-ratio: 1; min-height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--stsm-muted); font: inherit; cursor: default; }
.stsm-day.has-slots { color: var(--stsm-text); background: var(--stsm-surface); font-weight: 600; cursor: pointer; }
.stsm-day.has-slots:hover { border-color: var(--stsm-text); }
.stsm-day.is-selected { border: 2px solid var(--stsm-accent); background: var(--stsm-bg); }
.stsm-day[disabled] { opacity: .45; }
.stsm-slots__day { margin: 0 0 10px; font-weight: 600; text-transform: capitalize; }
.stsm-slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.stsm-slots__list .stsm-chip { text-align: center; cursor: pointer; font: inherit; min-height: 44px; }
.stsm-slots__list .stsm-chip.is-selected { border: 2px solid var(--stsm-accent); box-shadow: none; font-weight: 700; }

.stsm-nav { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.stsm-recap .is-highlight { border: 2px solid var(--stsm-accent); background: var(--stsm-bg); }
.stsm-conditions-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--stsm-radius-sm); background: var(--stsm-surface); }
.stsm-conditions-box p { margin: 0 0 6px; }
.stsm-conditions-box ul { margin: 0 0 8px; padding-left: 1.2em; }

/* Espace client */
.stsm-account__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.stsm-account__head h2 { margin: 0; }
.stsm-account__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stsm-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--stsm-border); overflow-x: auto; }
.stsm-tabs button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--stsm-muted); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.stsm-tabs button[aria-selected="true"] { color: var(--stsm-text); border-bottom-color: var(--stsm-accent); }
.stsm-card__actions--wrap { flex-wrap: wrap; }
.stsm-booking-card .stsm-btn { min-height: 38px; padding: 8px 14px; font-size: .88rem; }
.stsm-cancel-panel .stsm-notice { margin: 0; }
.stsm-item-box { margin-bottom: 24px; height: auto; }
.stsm-conditions summary { cursor: pointer; font-weight: 600; }
.stsm-policies .stsm-policy { margin-bottom: 14px; }
.stsm-intro { margin-bottom: 8px; }

/* Calculateur de prix */
.stsm-pricing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--stsm-gap); align-items: start; }
@media (max-width: 860px) { .stsm-pricing { grid-template-columns: minmax(0, 1fr); } }
.stsm-pricing__summary { position: sticky; top: 90px; }
.stsm-pfield { border: 0; margin: 0 0 18px; padding: 0; }
.stsm-pfield legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.stsm-pfield__help { margin: -4px 0 8px; font-size: .9rem; }
.stsm-pfield select, .stsm-pfield input[type=text], .stsm-pfield input[type=date] { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--stsm-border); border-radius: var(--stsm-radius-sm); font: inherit; background: var(--stsm-bg); color: inherit; }
.stsm-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.stsm-choice-pill { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--stsm-border); border-radius: var(--stsm-radius-sm); cursor: pointer; background: var(--stsm-bg); }
.stsm-choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.stsm-choice-pill small { color: var(--stsm-muted); }
.stsm-choice-pill:hover { border-color: var(--stsm-text); }
.stsm-choice-pill.is-selected, .stsm-choice-pill:has(input:checked) { border: 2px solid var(--stsm-accent); padding: 11px 13px; }
.stsm-choice-pill:has(input:focus-visible) { outline: 3px solid var(--stsm-accent); outline-offset: 2px; }
.stsm-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--stsm-border); border-radius: 999px; overflow: hidden; }
.stsm-stepper button { width: 44px; border: 0; background: var(--stsm-surface); color: var(--stsm-text); font-size: 20px; cursor: pointer; }
.stsm-stepper input { width: 72px; text-align: center; border: 0; font: inherit; font-weight: 600; background: var(--stsm-bg); color: inherit; -moz-appearance: textfield; }
.stsm-stepper input::-webkit-outer-spin-button, .stsm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stsm-price-hint { font-weight: 400; color: var(--stsm-muted); margin-left: 6px; font-size: .9rem; }
.stsm-promo { display: flex; gap: 8px; }
.stsm-promo input { flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid var(--stsm-border); border-radius: var(--stsm-radius-sm); font: inherit; text-transform: uppercase; }
.stsm-price-summary ul { list-style: none; margin: 0 0 10px; padding: 0; }
.stsm-price-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--stsm-border); font-size: .95rem; }
.stsm-price-summary li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stsm-price-total, .stsm-price-row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; }
.stsm-price-total strong { font-size: 1.4rem; }
.stsm-price-vat { font-size: .85rem; margin-top: 6px; }
