/* lot_qf_preserve_blob_preview_and_server_upload_guard_20260605 */

/* La personnalisation doit rester utile mais discrète sur les étapes de choix. */
body[data-booking-step="consultation-type"] .booking-customer-session-strip,
body[data-booking-step="service"] .booking-customer-session-strip,
body[data-booking-step="datetime"] .booking-customer-session-strip {
  display: none !important;
}

/* Recommandé ≠ sélectionné : le violet reste réservé au choix réel. */
#step-datetime .time-slot.recommended-slot:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 46%, #eee6d6) !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-warning, #c8a24c) 5%, #fff) 0%,
    #fff 100%
  ) !important;
  box-shadow: 0 6px 18px rgba(90, 70, 35, .06) !important;
}

#step-datetime .time-slot.recommended-slot:not(.selected):hover,
#step-datetime .time-slot.recommended-slot:not(.selected):focus-visible {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 62%, #e7d9ba) !important;
  box-shadow: 0 10px 22px rgba(90, 70, 35, .10) !important;
}

#step-datetime .time-slot.selected {
  border-color: var(--brand-primary, #4a0b77) !important;
}

/* Badge conseillé plus lisible, mais non dominant. */
#step-datetime .recommended-badge {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-warning, #c8a24c) 38%, #f0e5c8);
  background: color-mix(in srgb, var(--brand-warning, #c8a24c) 12%, #fffaf0);
  color: #7a5b12;
  font-size: .76rem;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: .01em;
}

#step-datetime .recommended-badge__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Texte de recommandation moins “système”. */
#step-datetime .selected-day-availability-summary__sub {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 64%, #81758f);
  font-weight: 560;
}

#step-datetime .selected-day-availability-summary__hint {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 70%, #6f647c);
  font-weight: 680;
}

/* Action concrète : l’utilisateur comprend le résultat, pas la mécanique. */
#step-datetime .slot-sort-soft-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--brand-primary, #4a0b77);
  -webkit-text-fill-color: var(--brand-primary, #4a0b77);
  font: inherit;
  font-size: .82rem;
  font-weight: 760;
  line-height: 1.2;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#step-datetime .slot-sort-soft-action:hover,
#step-datetime .slot-sort-soft-action:focus-visible {
  color: color-mix(in srgb, var(--brand-primary, #4a0b77) 82%, #000);
}

/* Le bloc de décision reste utile, mais plus compact et lié au choix. */
#step-datetime .action-buttons--datetime {
  margin-top: 16px !important;
  padding: 14px 16px !important;
  gap: 12px !important;
}

#step-datetime .datetime-selection-feedback {
  min-width: min(100%, 310px);
}

#step-datetime .datetime-selection-feedback__label {
  font-size: .92rem;
}

#step-datetime .datetime-selection-feedback__value {
  font-size: .82rem;
}

/* Le recours “autre créneau” devient secondaire. */
#step-datetime #waitlist-panel.waitlist-panel {
  margin-top: 14px !important;
  padding: 14px 16px !important;
  background: #fff !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 12%, #e8e1ef) !important;
  box-shadow: none !important;
}

#step-datetime #waitlist-panel .waitlist-panel__title {
  font-size: .96rem !important;
  margin-bottom: 4px !important;
}

#step-datetime #waitlist-panel .waitlist-panel__description {
  font-size: .84rem !important;
  margin-bottom: 8px !important;
}

#step-datetime #waitlist-panel .waitlist-panel__button {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 720;
  background: transparent !important;
  box-shadow: none !important;
}

/* Calendrier secondaire mais plus net. */
#step-datetime .calendar-day.has-slots:not(.selected),
#step-datetime .calendar-day.available:not(.selected) {
  color: color-mix(in srgb, var(--brand-success, #1a7a4a) 82%, #1f2937) !important;
  font-weight: 780;
}

#step-datetime .calendar-day.has-slots:not(.selected)::after,
#step-datetime .calendar-availability-legend__dot {
  opacity: 1;
}

@media (max-width: 767px) {
  #step-datetime .action-buttons--datetime {
    padding: 12px !important;
  }

  #step-datetime .slot-sort-soft-action {
    font-size: .8rem;
  }
}


/* ── Lot PB : hiérarchie visuelle Date & heure ───────────────────────────── */

/* Plus d’importance à la zone de choix réelle. */
@media (min-width: 980px) {
  #step-datetime .datetime-layout,
  #step-datetime .calendar-slots-layout,
  #step-datetime .datetime-main-grid {
    gap: 18px !important;
  }

  #step-datetime .time-slots-container,
  #step-datetime .slots-panel,
  #step-datetime #time-slots-container {
    min-width: min(100%, 340px);
  }
}

/* Titre date-first : la date devient le repère principal. */
#step-datetime .time-slots-header {
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
  border-bottom: 0 !important;
}

#step-datetime #time-slots-header-title,
#step-datetime .time-slots-header-title {
  font-size: 1.02rem !important;
  line-height: 1.25 !important;
  font-weight: 780 !important;
  color: var(--brand-text, #1f2937) !important;
  letter-spacing: .005em;
}

/* Le résumé devient une hiérarchie : nombre > explication > action. */
#step-datetime .selected-day-availability-summary {
  padding: 13px 14px !important;
  border-radius: 15px !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 13%, #eee8f5) !important;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--brand-primary, #4a0b77) 2%, #fff)) !important;
  box-shadow: 0 8px 20px rgba(39, 17, 58, .045) !important;
}

#step-datetime .selected-day-availability-summary__date {
  display: none !important;
}

#step-datetime .selected-day-availability-summary__main {
  font-size: 1rem !important;
  line-height: 1.22 !important;
  font-weight: 820 !important;
  color: var(--brand-text, #1f2937) !important;
}

#step-datetime .selected-day-availability-summary__sub {
  margin-top: 6px;
  font-size: .86rem !important;
  line-height: 1.32 !important;
}

#step-datetime .selected-day-availability-summary__hint {
  margin-top: 4px;
  font-size: .84rem !important;
  font-weight: 650 !important;
}

/* Action de tri plus élégante : visible mais secondaire. */
#step-datetime .slot-sort-soft-action {
  margin-top: 9px;
  padding: 3px 0;
  font-size: .81rem;
  font-weight: 760;
}

/* Recommandé plus doux : visible mais jamais assimilé à sélectionné. */
#step-datetime .time-slot.recommended-slot:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 32%, #ece4d5) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-warning, #c8a24c) 3%, #fff) 0%, #fff 100%) !important;
  box-shadow: 0 5px 14px rgba(90, 70, 35, .045) !important;
}

#step-datetime .time-slot.recommended-slot:not(.selected):hover,
#step-datetime .time-slot.recommended-slot:not(.selected):focus-visible {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 46%, #e7d9ba) !important;
  box-shadow: 0 8px 18px rgba(90, 70, 35, .08) !important;
}

/* Créneau neutre : clairement disponible et cliquable. */
#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted) {
  min-height: 56px;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 18%, #e5dfeb) !important;
  background: #fff !important;
  color: var(--brand-text, #1f2937) !important;
  box-shadow: 0 4px 12px rgba(39, 17, 58, .035);
}

#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted):hover,
#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted):focus-visible {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 34%, #d9cfe5) !important;
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(39, 17, 58, .07);
}

#step-datetime .time-slot .slot-time {
  font-weight: 790 !important;
  letter-spacing: .005em;
}

/* Badge conseillé aligné et plus premium. */
#step-datetime .recommended-badge {
  margin-top: 5px;
  padding: 4px 8px;
  font-size: .77rem;
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 30%, #f0e5c8);
  background: color-mix(in srgb, var(--brand-warning, #c8a24c) 9%, #fffaf0);
  color: #765817;
}

/* Barre d’action compacte : elle accompagne, elle ne concurrence plus. */
#step-datetime .action-buttons--datetime {
  margin-top: 12px !important;
  padding: 10px 14px !important;
  min-height: unset !important;
  align-items: center !important;
}

#step-datetime .datetime-selection-feedback {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: min(100%, 290px);
}

#step-datetime .datetime-selection-feedback__label {
  font-size: .88rem !important;
  margin-bottom: 2px !important;
}

#step-datetime .datetime-selection-feedback__value {
  font-size: .8rem !important;
}

/* Alternative plus discrète. */
#step-datetime #waitlist-panel.waitlist-panel {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border-style: dashed !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 1.5%, #fff) !important;
}

#step-datetime #waitlist-panel .waitlist-panel__head {
  gap: 10px !important;
  align-items: center !important;
}

#step-datetime #waitlist-panel .waitlist-panel__title {
  font-size: .9rem !important;
  font-weight: 760 !important;
}

#step-datetime #waitlist-panel .waitlist-panel__description {
  font-size: .8rem !important;
  line-height: 1.25 !important;
}

#step-datetime #waitlist-panel .waitlist-panel__toggle,
#step-datetime #waitlist-panel .waitlist-panel__button {
  padding: 7px 10px !important;
  font-size: .78rem !important;
  border-width: 1px !important;
}

/* Calendrier plus net sans prendre le rôle principal. */
#step-datetime .calendar-day {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 82%, #6b6179) !important;
}

#step-datetime .calendar-day.has-slots:not(.selected),
#step-datetime .calendar-day.available:not(.selected) {
  color: color-mix(in srgb, var(--brand-success, #1a7a4a) 88%, #111827) !important;
  font-weight: 820 !important;
}

#step-datetime .calendar-day.has-slots:not(.selected)::after,
#step-datetime .calendar-availability-legend__dot {
  width: 6px !important;
  height: 6px !important;
  background: var(--brand-success, #1a7a4a) !important;
  opacity: 1 !important;
}

#step-datetime .calendar-availability-legend__text {
  font-size: .82rem !important;
  font-weight: 650 !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 72%, #6b7280) !important;
}

/* Sidebar : les étapes futures s’effacent davantage ; l’étape active ressort. */
.booking-sidebar .progress-item[data-status="upcoming"],
.booking-sidebar .timeline-item[data-status="upcoming"] {
  opacity: .72;
}

.booking-sidebar .progress-item[data-status="upcoming"] .progress-description,
.booking-sidebar .timeline-item[data-status="upcoming"] .progress-description {
  display: none;
}

.booking-sidebar .progress-item.active,
.booking-sidebar .timeline-item.active,
.booking-sidebar [data-status="current"] {
  opacity: 1;
  box-shadow: 0 8px 18px rgba(74, 11, 119, .08);
}

/* Praticien : formulation plus humaine. */
#sidebar-practitioner-name::before {
  content: attr(data-context-label);
  display: block;
  margin-bottom: 2px;
  font-size: .66rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .78;
}

#sidebar-practitioner-name {
  text-transform: none !important;
}

@media (max-width: 767px) {
  #step-datetime .action-buttons--datetime {
    padding: 10px !important;
  }

  #step-datetime .time-slot:not(.selected):not(.disabled):not(.unavailable):not(.restricted) {
    min-height: 54px;
  }
}


/* ── Lot PC : filtres compacts, guidance lunaire et micro-copies ─────────── */

/* Le libellé ne doit plus se lire comme “A juster”. */
#step-datetime .datetime-refine-panel__summary {
  gap: 6px !important;
  padding: 8px 12px !important;
  white-space: nowrap;
}

#step-datetime .datetime-refine-panel__summary::before {
  content: '⚙︎' !important;
  font-size: .78rem !important;
  margin-right: 0 !important;
  opacity: .78;
}

#step-datetime .datetime-refine-panel__summary-main {
  display: inline-block;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}

/* Le panneau de filtres reste secondaire : compact, lisible, non bloquant. */
#step-datetime .datetime-refine-panel[open] {
  margin-bottom: 12px !important;
}

#step-datetime .datetime-refine-panel__body,
#step-datetime #datetime-refine-body {
  padding: 12px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 2%, #fff) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 12%, #ece7f2) !important;
}

#step-datetime #time-preferences-label {
  margin-bottom: 7px !important;
  font-size: .82rem !important;
}

#step-datetime .preference-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  align-items: center !important;
}

#step-datetime .preference-option {
  min-height: 38px !important;
  padding: 6px 9px !important;
  border-radius: 12px !important;
  gap: 5px !important;
}

#step-datetime .preference-option .pref-icon {
  font-size: .92rem !important;
}

#step-datetime .preference-option .pref-label {
  font-size: .79rem !important;
  font-weight: 750 !important;
}

#step-datetime .preference-option .pref-hours {
  font-size: .68rem !important;
  line-height: 1.05 !important;
  opacity: .78;
}

#step-datetime .btn-refresh-slots.datetime-filter-refresh {
  min-height: 38px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  font-size: .78rem !important;
  font-weight: 780 !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 22%, #ddd4e8) !important;
  background: #fff !important;
  color: var(--brand-primary, #4a0b77) !important;
  box-shadow: none !important;
}

#step-datetime .btn-refresh-slots.datetime-filter-refresh .refresh-icon {
  opacity: .75;
}

/* Guidance lunaire : informative, repliée, non envahissante. */
#step-datetime .lunar-guidance-panel {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 10%, #eee8f5);
}

#step-datetime .lunar-guidance-panel__summary {
  cursor: pointer;
  width: fit-content;
  color: var(--brand-primary, #4a0b77);
  font-size: .8rem;
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

#step-datetime .lunar-guidance-panel__summary::-webkit-details-marker { display: none; }

#step-datetime .lunar-guidance-panel__summary::before {
  content: '🌙';
  margin-right: 5px;
  text-decoration: none;
}

#step-datetime .lunar-guidance-panel__intro,
#step-datetime .lunar-guidance-panel__note {
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 70%, #776a86);
  font-size: .78rem;
  line-height: 1.38;
}

#step-datetime .lunar-guidance-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

#step-datetime .lunar-guidance-panel__item {
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 9%, #ece7f2);
  border-radius: 12px;
  background: #fff;
}

#step-datetime .lunar-guidance-panel__phase {
  display: block;
  margin-bottom: 3px;
  font-size: .78rem;
  color: var(--brand-text, #1f2937);
}

#step-datetime .lunar-guidance-panel__copy {
  display: block;
  font-size: .73rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 68%, #7b7286);
}

/* Recommandé encore plus doux, neutre encore plus cliquable. */
#step-datetime .time-slot.recommended-slot:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 24%, #eee6d8) !important;
  background: color-mix(in srgb, var(--brand-warning, #c8a24c) 2.5%, #fff) !important;
}

#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted) {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 24%, #e1d8e9) !important;
  box-shadow: 0 5px 14px rgba(39, 17, 58, .045) !important;
}

/* Résumé après sélection : prix / mode lisibles. */
#step-datetime .datetime-selection-feedback[data-state="selected"] .datetime-selection-feedback__line:not(:first-child) {
  margin-top: 3px;
  font-size: .78rem !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 72%, #786e84) !important;
}

/* Alternative de secours : une ligne discrète. */
#step-datetime #waitlist-panel.waitlist-panel {
  padding: 8px 10px !important;
  border-radius: 12px !important;
}

#step-datetime #waitlist-panel .waitlist-panel__head {
  display: flex !important;
  flex-wrap: wrap !important;
}

#step-datetime #waitlist-panel .waitlist-panel__description {
  display: none !important;
}

#step-datetime #waitlist-panel .waitlist-panel__title {
  margin: 0 !important;
  font-size: .84rem !important;
}

@media (max-width: 767px) {
  #step-datetime .lunar-guidance-panel__grid {
    grid-template-columns: 1fr;
  }

  #step-datetime .datetime-refine-panel__body,
  #step-datetime #datetime-refine-body {
    padding: 10px !important;
  }
}


/* ── Lot PD : panneau critères compact et finitions ─────────────────────── */

/* Le bouton haut gauche devient lisible au lieu d’un pictogramme isolé. */
#step-datetime > .back-button,
#step-datetime .back-button--text {
  width: auto !important;
  min-width: 76px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .84rem !important;
  font-weight: 760 !important;
  color: var(--brand-primary, #4a0b77) !important;
  -webkit-text-fill-color: var(--brand-primary, #4a0b77) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 16%, #e6dff0) !important;
}

/* “Ajuster ma recherche” : alignement net, sans effet “A juster”. */
#step-datetime .datetime-refine-panel__summary {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-areas:
    "icon main"
    "icon help";
  column-gap: 8px !important;
  row-gap: 1px !important;
  align-items: center !important;
  padding: 10px 12px !important;
}

#step-datetime .datetime-refine-panel__summary::before {
  grid-area: icon;
  position: static !important;
  transform: none !important;
  width: 20px !important;
  height: 20px !important;
  font-size: .86rem !important;
  opacity: .8;
}

#step-datetime .datetime-refine-panel__summary-main {
  grid-area: main;
  display: block !important;
  white-space: nowrap;
  letter-spacing: 0 !important;
}

#step-datetime .datetime-refine-panel__summary-help {
  grid-area: help;
  display: block !important;
  margin: 0 !important;
  line-height: 1.18 !important;
}

/* Panneau ouvert compact : filtre rapide, pas mini-étape. */
#step-datetime .datetime-refine-panel[open] {
  margin-bottom: 12px !important;
}

#step-datetime .datetime-refine-panel__body,
#step-datetime #datetime-refine-body {
  padding: 10px 12px 12px !important;
  gap: 10px !important;
}

#step-datetime #time-preferences-label,
#step-datetime .form-label[for="slot-preference-group"] {
  margin-bottom: 6px !important;
  font-size: .82rem !important;
  font-weight: 760 !important;
}

/* Pastilles horaires plus denses. */
#step-datetime .preference-group,
#step-datetime #slot-preference-group {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px !important;
  align-items: stretch;
}

#step-datetime .preference-option {
  min-height: 42px !important;
  padding: 7px 10px !important;
  gap: 5px !important;
  border-radius: 12px !important;
  flex: 0 1 auto !important;
}

#step-datetime .preference-option .pref-icon {
  font-size: .9rem !important;
}

#step-datetime .preference-option .pref-label {
  font-size: .82rem !important;
  font-weight: 760 !important;
  line-height: 1.1 !important;
}

#step-datetime .preference-option .pref-hours {
  font-size: .68rem !important;
  line-height: 1.05 !important;
  opacity: .72;
}

/* Cycle lunaire utile mais discret. */
#step-datetime .preference-option[data-pref="lunar"] {
  order: 20;
  border-style: dashed !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 2%, #fff) !important;
}

#step-datetime .lunar-guidance-panel {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#step-datetime .lunar-guidance-panel__summary {
  width: fit-content;
  padding: 0 !important;
  font-size: .78rem !important;
  font-weight: 720 !important;
  color: var(--brand-primary, #4a0b77) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#step-datetime .lunar-guidance-panel[open] {
  padding-top: 6px !important;
}

#step-datetime .lunar-guidance-panel__intro,
#step-datetime .lunar-guidance-panel__note {
  font-size: .78rem !important;
  line-height: 1.28 !important;
  margin: 6px 0 !important;
}

#step-datetime .lunar-guidance-panel__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px !important;
}

#step-datetime .lunar-guidance-panel__item {
  padding: 7px 8px !important;
  border-radius: 10px !important;
}

#step-datetime .lunar-guidance-panel__phase {
  font-size: .75rem !important;
}

#step-datetime .lunar-guidance-panel__copy {
  font-size: .72rem !important;
  line-height: 1.22 !important;
}

/* Filtres praticien/lieu : pas de répétition Praticien / Praticien. */
#step-datetime .booking-resource-filters {
  margin-top: 0 !important;
}

#step-datetime .resource-filter-card {
  padding: 8px 10px !important;
  border-radius: 12px !important;
}

#step-datetime .resource-filter-card[data-compact="true"] {
  padding-top: 6px !important;
}

#step-datetime .resource-filter-header {
  margin-bottom: 6px !important;
  font-size: .78rem !important;
}

#step-datetime .resource-filter-grid {
  gap: 8px !important;
}

#step-datetime .resource-filter-field {
  gap: 4px !important;
}

#step-datetime .resource-filter-field span {
  font-size: .76rem !important;
  line-height: 1.1 !important;
}

#step-datetime .resource-filter-field select {
  min-height: 36px !important;
  padding-block: 6px !important;
  font-size: .86rem !important;
}

/* Action d’application en bas du panneau. */
#step-datetime .datetime-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 10%, #eee8f5);
}

#step-datetime .datetime-filter-refresh {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: .8rem !important;
  font-weight: 780 !important;
}

#step-datetime .datetime-filter-refresh .refresh-icon {
  font-size: .86rem !important;
}

/* Alternative autre créneau en simple secours visuel. */
#step-datetime #waitlist-panel.waitlist-panel {
  padding: 8px 10px !important;
  margin-top: 8px !important;
}

#step-datetime #waitlist-panel .waitlist-panel__description {
  display: none !important;
}

#step-datetime #waitlist-panel .waitlist-panel__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#step-datetime #waitlist-panel .waitlist-panel__title {
  font-size: .84rem !important;
  font-weight: 720 !important;
}

/* Badge choisi plus lisible. */
#step-datetime .time-slot.selected .selected-slot-badge {
  padding: 4px 9px !important;
  border-radius: 999px !important;
  font-size: .76rem !important;
  font-weight: 820 !important;
}

#step-datetime .time-slot.selected .selected-slot-badge::after {
  content: "";
}

/* Résumé bas enrichi : date puis mode/prix. */
#step-datetime .datetime-selection-feedback__line {
  line-height: 1.24 !important;
}

#step-datetime .datetime-selection-feedback__line--primary {
  font-weight: 820 !important;
  text-transform: none !important;
}

#step-datetime .datetime-selection-feedback__line:not(.datetime-selection-feedback__line--primary) {
  margin-top: 2px !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 78%, #6b6179) !important;
  font-weight: 680 !important;
}

/* Calendrier un peu moins pâle. */
#step-datetime .calendar-day {
  font-weight: 650 !important;
}

#step-datetime .calendar-day.has-slots:not(.selected),
#step-datetime .calendar-day.available:not(.selected) {
  color: color-mix(in srgb, var(--brand-success, #1a7a4a) 92%, #0f172a) !important;
  background: color-mix(in srgb, var(--brand-success, #1a7a4a) 7%, #fff) !important;
}

#step-datetime .calendar-day.selected {
  box-shadow: 0 8px 20px rgba(74, 11, 119, .22) !important;
}

/* Sidebar : date/heure en lignes respirantes. */
#summary-datetime-value {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#summary-datetime-value .summary-value-line {
  display: block;
  line-height: 1.2;
}

#summary-datetime-value .summary-value-line--primary {
  font-weight: 800;
  color: var(--brand-text, #1f2937);
}

#summary-datetime-value .summary-value-line--secondary {
  font-size: .82rem;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 72%, #756985);
}

@media (max-width: 767px) {
  #step-datetime .lunar-guidance-panel__grid {
    grid-template-columns: 1fr;
  }

  #step-datetime .datetime-filter-actions {
    justify-content: stretch;
  }

  #step-datetime .datetime-filter-refresh {
    width: 100%;
    justify-content: center;
  }
}


/* ── Lot PE : finition compacte finale Date & heure ─────────────────────── */

/* Le retour haut évite la redondance desktop : la barre basse garde la navigation principale. */
@media (min-width: 768px) {
  #step-datetime > .back-button,
  #step-datetime .back-button--text {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #step-datetime > .back-button,
  #step-datetime .back-button--text {
    transform: scale(.96);
  }
}

/* Panneau filtres encore plus proche d’un tiroir compact. */
#step-datetime .datetime-refine-panel {
  margin-top: 8px !important;
  margin-bottom: 9px !important;
}

#step-datetime .datetime-refine-panel[open] {
  margin-bottom: 10px !important;
}

#step-datetime .datetime-refine-panel__summary {
  padding: 8px 11px !important;
  min-height: 42px !important;
}

#step-datetime .datetime-refine-panel__summary-main {
  font-size: .9rem !important;
}

#step-datetime .datetime-refine-panel__summary-help {
  font-size: .74rem !important;
}

#step-datetime .datetime-refine-panel__body,
#step-datetime #datetime-refine-body {
  padding: 8px 10px 10px !important;
  gap: 8px !important;
}

#step-datetime #time-preferences-label {
  margin-bottom: 4px !important;
}

#step-datetime .preference-group,
#step-datetime #slot-preference-group {
  gap: 6px !important;
}

#step-datetime .preference-option {
  min-height: 38px !important;
  padding: 6px 9px !important;
  border-radius: 11px !important;
}

#step-datetime .preference-option .pref-label {
  font-size: .8rem !important;
}

#step-datetime .preference-option .pref-hours {
  font-size: .65rem !important;
}

/* Aide lunaire explicite mais moins lourde. */
#step-datetime .lunar-guidance-panel__summary {
  font-size: .76rem !important;
  white-space: nowrap;
}

#step-datetime .lunar-guidance-panel__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

#step-datetime .lunar-guidance-panel__item {
  padding: 6px 7px !important;
}

#step-datetime .lunar-guidance-panel__copy {
  display: none !important;
}

#step-datetime .lunar-guidance-panel[open] .lunar-guidance-panel__copy {
  display: block !important;
}

/* Bouton d’action filtre : appliquer, pas “rafraîchir”. */
#step-datetime .datetime-filter-actions {
  margin-top: 0 !important;
  padding-top: 7px !important;
}

#step-datetime .datetime-filter-refresh {
  min-height: 32px !important;
  padding: 6px 12px !important;
  background: var(--brand-primary, #4a0b77) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 5px 14px rgba(74, 11, 119, .14) !important;
}

#step-datetime .datetime-filter-refresh .refresh-icon {
  display: none !important;
}

/* Calendrier : encore moins pâle. */
#step-datetime .calendar-day {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 88%, #4b5563) !important;
}

#step-datetime .calendar-day.has-slots:not(.selected),
#step-datetime .calendar-day.available:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-success, #1a7a4a) 24%, #dbe9df) !important;
  background: color-mix(in srgb, var(--brand-success, #1a7a4a) 10%, #fff) !important;
}

#step-datetime .calendar-day.has-slots:not(.selected)::after,
#step-datetime .calendar-availability-legend__dot {
  width: 7px !important;
  height: 7px !important;
}

#step-datetime .calendar-availability-legend__text {
  font-size: .84rem !important;
  font-weight: 720 !important;
}

/* Les créneaux neutres prennent un peu plus leur place. */
#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted) {
  min-height: 60px !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 24%, #ded5e8) !important;
}

#step-datetime .selected-day-availability-summary__main {
  font-size: 1.04rem !important;
}

/* Barre basse : si mode/prix arrivent, la seconde ligne respire. */
#step-datetime .datetime-selection-feedback__line:not(.datetime-selection-feedback__line--primary) {
  font-size: .82rem !important;
}

/* Sidebar : moins dense sur les prochaines étapes. */
.booking-sidebar .progress-item[data-status="upcoming"],
.booking-sidebar .timeline-item[data-status="upcoming"] {
  opacity: .62 !important;
}

.booking-sidebar .progress-item[data-status="upcoming"] .badge,
.booking-sidebar .timeline-item[data-status="upcoming"] .badge {
  opacity: .55;
}

#summary-datetime {
  padding-block: 8px !important;
}

#summary-datetime-value {
  gap: 4px !important;
}

#summary-datetime-value .summary-value-line--primary {
  font-size: .88rem !important;
}

#summary-datetime-value .summary-value-line--secondary {
  font-size: .78rem !important;
}


/* ── Lot PF : passe premium visuelle finale ─────────────────────────────── */

/* Bouton filtre : secondaire, bas, moins arrondi, moins massif. */
#step-datetime .datetime-refine-panel {
  border-radius: 11px !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 10%, #ece7f1) !important;
  box-shadow: 0 3px 10px rgba(39, 17, 58, .035) !important;
}

#step-datetime .datetime-refine-panel__summary {
  min-height: 36px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
}

#step-datetime .datetime-refine-panel__summary::before {
  width: 17px !important;
  height: 17px !important;
  font-size: .76rem !important;
  opacity: .58 !important;
}

#step-datetime .datetime-refine-panel__summary-main {
  font-size: .86rem !important;
  font-weight: 760 !important;
}

#step-datetime .datetime-refine-panel__summary-help {
  font-size: .7rem !important;
  opacity: .78;
}

/* Tiroir compact : moins de verticalité, moins de formulaire. */
#step-datetime .datetime-refine-panel__body,
#step-datetime #datetime-refine-body {
  padding: 7px 9px 9px !important;
  gap: 6px !important;
}

#step-datetime #time-preferences-label {
  margin: 0 0 3px !important;
  font-size: .78rem !important;
}

#step-datetime .preference-group,
#step-datetime #slot-preference-group {
  gap: 5px !important;
}

#step-datetime .preference-option {
  min-height: 34px !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  border-width: 1px !important;
  box-shadow: none !important;
}

#step-datetime .preference-option .pref-icon {
  font-size: .78rem !important;
  opacity: .82;
}

#step-datetime .preference-option .pref-label {
  font-size: .76rem !important;
}

#step-datetime .preference-option .pref-hours {
  font-size: .62rem !important;
}

/* Bouton appliquer : lisible, jamais vide, aligné à droite. */
#step-datetime .datetime-filter-actions {
  justify-content: flex-end !important;
  padding-top: 6px !important;
}

#step-datetime .datetime-filter-refresh {
  min-width: 142px !important;
  min-height: 31px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  font-size: .78rem !important;
  letter-spacing: .01em;
}

#step-datetime .datetime-filter-refresh .refresh-label {
  display: inline !important;
  opacity: 1 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  white-space: nowrap;
}

/* Cycle lunaire : fermé = lien d’aide, ouvert = compact. */
#step-datetime .lunar-guidance-panel {
  margin-top: 0 !important;
}

#step-datetime .lunar-guidance-panel__summary {
  font-size: .74rem !important;
  color: color-mix(in srgb, var(--brand-primary, #4a0b77) 82%, #534164) !important;
  text-decoration-thickness: 1px;
}

#step-datetime .lunar-guidance-panel__intro {
  margin-top: 5px !important;
  font-size: .75rem !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 68%, #6f647c) !important;
}

#step-datetime .lunar-guidance-panel__note {
  margin-bottom: 0 !important;
  font-size: .74rem !important;
  font-style: italic;
}

#step-datetime .lunar-guidance-panel__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

#step-datetime .lunar-guidance-panel__item {
  padding: 6px !important;
  border-radius: 8px !important;
}

#step-datetime .lunar-guidance-panel__phase {
  font-size: .7rem !important;
}

#step-datetime .lunar-guidance-panel__copy {
  font-size: .68rem !important;
  line-height: 1.16 !important;
}

/* Bloc central : date et compteur plus hiérarchisés. */
#step-datetime #time-slots-header-title,
#step-datetime .time-slots-header-title {
  font-size: 1.08rem !important;
  font-weight: 840 !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 92%, #2d1a3a) !important;
}

#step-datetime .selected-day-availability-summary {
  padding: 11px 12px !important;
  border-radius: 13px !important;
  box-shadow: 0 4px 13px rgba(39, 17, 58, .035) !important;
}

#step-datetime .selected-day-availability-summary__main {
  font-size: 1.08rem !important;
  font-weight: 860 !important;
}

#step-datetime .selected-day-availability-summary__sub,
#step-datetime .selected-day-availability-summary__hint {
  font-size: .82rem !important;
}

/* Tri : contrôle intégré, pas lien brut. */
#step-datetime .slot-sort-soft-action {
  margin-top: 8px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 13%, #e8e0f0) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 3%, #fff) !important;
  text-decoration: none !important;
  font-size: .76rem !important;
}

#step-datetime .slot-sort-soft-action::before {
  content: "Tri : recommandé · ";
  color: color-mix(in srgb, var(--brand-text, #1f2937) 58%, #7a6e8a);
  font-weight: 650;
}

/* Créneaux neutres : disponibles, pas pâles. */
#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted) {
  min-height: 62px !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 28%, #dcd1e7) !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 96%, #000) !important;
  box-shadow: 0 5px 14px rgba(39, 17, 58, .045) !important;
}

#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted):hover,
#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted):focus-visible {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 44%, #cfc1df) !important;
  box-shadow: 0 10px 21px rgba(39, 17, 58, .09) !important;
}

/* Conseillé : doré plus fin, jamais actif. */
#step-datetime .time-slot.recommended-slot:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 25%, #eee5d5) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-warning, #c8a24c) 2%, #fff) 0%, #fff 100%) !important;
  box-shadow: 0 4px 12px rgba(90, 70, 35, .035) !important;
}

#step-datetime .recommended-badge {
  padding: 3px 8px !important;
  font-size: .73rem !important;
  background: color-mix(in srgb, var(--brand-warning, #c8a24c) 7%, #fffaf0) !important;
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 24%, #f2e7ca) !important;
}

/* Choisi : clair, violet en bordure, badge plus respirant. */
#step-datetime .time-slot.selected {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 4%, #fff) !important;
  border-color: var(--brand-primary, #4a0b77) !important;
  box-shadow: 0 12px 26px rgba(74, 11, 119, .14) !important;
}

#step-datetime .time-slot.selected .selected-slot-badge {
  margin-top: 7px !important;
  align-self: flex-start;
  padding: 4px 10px !important;
  font-size: .75rem !important;
}

/* Barre basse : désactivé vraiment secondaire ; sélection = ligne complète compacte. */
#step-datetime .action-buttons--datetime[data-state="idle"] #datetime-continue-btn,
#step-datetime #datetime-continue-btn[disabled] {
  opacity: .62 !important;
  box-shadow: none !important;
  filter: saturate(.72);
}

#step-datetime .datetime-selection-feedback__line--primary {
  font-size: .86rem !important;
  font-weight: 820 !important;
}

#step-datetime .datetime-selection-feedback[data-state="selected"] .datetime-selection-feedback__line--primary {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 94%, #2d1a3a) !important;
}

/* Aucun horaire : ligne secondaire. */
#step-datetime #waitlist-panel.waitlist-panel {
  border-radius: 10px !important;
  border-style: solid !important;
  background: transparent !important;
  padding: 7px 9px !important;
}

#step-datetime #waitlist-panel .waitlist-panel__head {
  min-height: 30px;
}

#step-datetime #waitlist-panel .waitlist-panel__title {
  font-size: .8rem !important;
}

#step-datetime #waitlist-panel .waitlist-panel__toggle {
  padding: 5px 9px !important;
  font-size: .75rem !important;
}

/* Calendrier : doux mais lisible. */
#step-datetime .calendar-day {
  font-weight: 700 !important;
}

#step-datetime .calendar-day.has-slots:not(.selected),
#step-datetime .calendar-day.available:not(.selected) {
  color: color-mix(in srgb, var(--brand-success, #1a7a4a) 96%, #07110b) !important;
  background: color-mix(in srgb, var(--brand-success, #1a7a4a) 12%, #fff) !important;
  border-color: color-mix(in srgb, var(--brand-success, #1a7a4a) 30%, #d4e5d8) !important;
}

#step-datetime .calendar-day.selected {
  color: #fff !important;
  font-weight: 850 !important;
}

#step-datetime .calendar-availability-legend__text {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 82%, #475569) !important;
}

/* Sidebar : lecture plus premium. */
#summary-datetime-value .summary-value-line--primary {
  font-size: .9rem !important;
  letter-spacing: .005em;
}

#summary-datetime-value .summary-value-line--secondary {
  font-size: .8rem !important;
  line-height: 1.22;
}

.booking-sidebar .progress-item[data-status="upcoming"],
.booking-sidebar .timeline-item[data-status="upcoming"] {
  opacity: .54 !important;
}

@media (max-width: 767px) {
  #step-datetime .lunar-guidance-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #step-datetime .slot-sort-soft-action::before {
    content: "";
  }
}


/* ── Lot PG : densité visuelle et tri final ─────────────────────────────── */

/* Le bouton filtre devient franchement secondaire. */
#step-datetime .datetime-refine-panel {
  margin-top: 6px !important;
  margin-bottom: 7px !important;
  border-radius: 9px !important;
}

#step-datetime .datetime-refine-panel__summary {
  min-height: 32px !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
}

#step-datetime .datetime-refine-panel__summary::before {
  width: 15px !important;
  height: 15px !important;
  font-size: .68rem !important;
  opacity: .48 !important;
}

#step-datetime .datetime-refine-panel__summary-main {
  font-size: .82rem !important;
  font-weight: 730 !important;
}

#step-datetime .datetime-refine-panel__summary-help {
  font-size: .67rem !important;
  opacity: .68 !important;
}

/* Panneau ouvert plus proche d'un tiroir que d'une étape. */
#step-datetime .datetime-refine-panel__body,
#step-datetime #datetime-refine-body {
  padding: 6px 8px 8px !important;
  gap: 5px !important;
}

#step-datetime .preference-group,
#step-datetime #slot-preference-group {
  gap: 4px !important;
}

#step-datetime .preference-option {
  min-height: 31px !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
}

#step-datetime .preference-option .pref-icon {
  font-size: .7rem !important;
}

#step-datetime .preference-option .pref-label {
  font-size: .72rem !important;
}

#step-datetime .preference-option .pref-hours {
  font-size: .58rem !important;
}

/* Bouton appliquer : texte toujours visible et mieux proportionné. */
#step-datetime .datetime-filter-actions {
  padding-top: 5px !important;
}

#step-datetime .datetime-filter-refresh {
  min-width: 132px !important;
  min-height: 29px !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-size: .75rem !important;
}

/* Cycle lunaire : aide explicite, détail optionnel et compact. */
#step-datetime .lunar-guidance-panel__summary {
  font-size: .72rem !important;
}

#step-datetime .lunar-guidance-panel__intro,
#step-datetime .lunar-guidance-panel__note {
  font-size: .71rem !important;
  line-height: 1.18 !important;
}

#step-datetime .lunar-guidance-panel__grid {
  gap: 4px !important;
}

#step-datetime .lunar-guidance-panel__item {
  padding: 5px !important;
}

#step-datetime .lunar-guidance-panel__phase {
  font-size: .66rem !important;
}

/* Tri propre : plus de double deux-points, aspect segmented control discret. */
#step-datetime .slot-sort-soft-action {
  display: inline-grid !important;
  grid-template-columns: auto auto auto auto;
  align-items: center;
  gap: 6px;
  margin-top: 7px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: .74rem !important;
  line-height: 1.1 !important;
}

#step-datetime .slot-sort-soft-action::before {
  content: none !important;
}

#step-datetime .slot-sort-soft-action__label {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 56%, #7a6e8a);
  font-weight: 650;
}

#step-datetime .slot-sort-soft-action__current {
  font-weight: 820;
  color: var(--brand-primary, #4a0b77);
}

#step-datetime .slot-sort-soft-action__separator {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 38%, #b4a8c4);
}

#step-datetime .slot-sort-soft-action__target {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 70%, #6b6179);
  font-weight: 680;
}

/* Calendrier encore plus lisible sans devenir dominant. */
#step-datetime .calendar-day {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 92%, #111827) !important;
  font-weight: 720 !important;
}

#step-datetime .calendar-day.has-slots:not(.selected),
#step-datetime .calendar-day.available:not(.selected) {
  color: color-mix(in srgb, var(--brand-success, #1a7a4a) 100%, #000) !important;
  background: color-mix(in srgb, var(--brand-success, #1a7a4a) 14%, #fff) !important;
  border-color: color-mix(in srgb, var(--brand-success, #1a7a4a) 36%, #cfe2d4) !important;
}

#step-datetime .calendar-day.has-slots:not(.selected)::after,
#step-datetime .calendar-availability-legend__dot {
  width: 7px !important;
  height: 7px !important;
  opacity: 1 !important;
}

#step-datetime .calendar-availability-legend__text {
  font-size: .85rem !important;
  font-weight: 760 !important;
}

/* Créneaux : neutres plus présents, conseillés plus fins. */
#step-datetime .time-slot:not(.selected):not(.recommended-slot):not(.disabled):not(.unavailable):not(.restricted) {
  min-height: 64px !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 34%, #d5c9e2) !important;
  background: #fff !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 100%, #000) !important;
}

#step-datetime .time-slot.recommended-slot:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-warning, #c8a24c) 20%, #f0e7d8) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-warning, #c8a24c) 1.5%, #fff) 0%, #fff 100%) !important;
}

#step-datetime .time-slot .slot-time {
  font-weight: 830 !important;
}

#step-datetime .time-slot.selected .selected-slot-badge {
  margin-top: 8px !important;
  padding: 4px 11px !important;
  line-height: 1.1 !important;
}

/* Barre basse sélectionnée : 2 lignes lisibles au lieu d’une ligne trop longue. */
#step-datetime .datetime-selection-feedback[data-state="selected"] .datetime-selection-feedback__value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#step-datetime .datetime-selection-feedback[data-state="selected"] .datetime-selection-feedback__line--primary {
  font-size: .86rem !important;
}

#step-datetime .datetime-selection-feedback[data-state="selected"] .datetime-selection-feedback__line:not(.datetime-selection-feedback__line--primary) {
  font-size: .8rem !important;
  font-weight: 700 !important;
}

/* Sidebar : l'étape active respire, les prochaines s’effacent. */
.booking-sidebar [data-status="current"],
.booking-sidebar .progress-item.active,
.booking-sidebar .timeline-item.active {
  padding-block: 10px !important;
}

.booking-sidebar .progress-item[data-status="upcoming"],
.booking-sidebar .timeline-item[data-status="upcoming"] {
  opacity: .48 !important;
}

#summary-datetime-value {
  gap: 5px !important;
}

#summary-datetime-value .summary-value-line--primary {
  font-size: .92rem !important;
}

#summary-datetime-value .summary-value-line--secondary {
  font-size: .8rem !important;
}

/* Bandeau étape : un peu moins haut, mais plus utile. */
#step-datetime .step-header,
#step-datetime .step-hero,
#step-datetime .booking-step-header {
  padding-block: clamp(18px, 3vw, 28px) !important;
}

#step-datetime #datetime-subtitle {
  max-width: 58ch;
}

@media (max-width: 767px) {
  #step-datetime .slot-sort-soft-action {
    grid-template-columns: auto auto auto auto;
    font-size: .72rem !important;
  }
}


/* ── Lot PH : contraste bouton Appliquer les critères ───────────────────── */

/*
  Correctif de contraste : certaines cascades .btn/.btn-refresh-slots peuvent
  imposer un fond blanc tout en conservant un texte blanc. Le bouton filtres
  redevient volontairement secondaire : texte violet sur fond lavande clair.
*/
#step-datetime .datetime-filter-actions .datetime-filter-refresh,
#step-datetime .datetime-filter-actions .btn-refresh-slots.datetime-filter-refresh,
#step-datetime #datetime-refine-body .datetime-filter-refresh,
#step-datetime #datetime-refine-body .btn-refresh-slots.datetime-filter-refresh {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 8%, #ffffff) !important;
  background-image: none !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 28%, #dfd5eb) !important;
  color: var(--brand-primary, #4a0b77) !important;
  -webkit-text-fill-color: var(--brand-primary, #4a0b77) !important;
  box-shadow: none !important;
}

#step-datetime .datetime-filter-actions .datetime-filter-refresh .refresh-label,
#step-datetime .datetime-filter-actions .btn-refresh-slots.datetime-filter-refresh .refresh-label,
#step-datetime #datetime-refine-body .datetime-filter-refresh .refresh-label,
#step-datetime #datetime-refine-body .btn-refresh-slots.datetime-filter-refresh .refresh-label {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--brand-primary, #4a0b77) !important;
  -webkit-text-fill-color: var(--brand-primary, #4a0b77) !important;
  text-shadow: none !important;
}

#step-datetime .datetime-filter-actions .datetime-filter-refresh:hover,
#step-datetime .datetime-filter-actions .datetime-filter-refresh:focus-visible,
#step-datetime #datetime-refine-body .datetime-filter-refresh:hover,
#step-datetime #datetime-refine-body .datetime-filter-refresh:focus-visible {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 13%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 40%, #d8cbe7) !important;
  color: var(--brand-primary, #4a0b77) !important;
  -webkit-text-fill-color: var(--brand-primary, #4a0b77) !important;
}

#step-datetime .datetime-filter-actions .datetime-filter-refresh[disabled],
#step-datetime #datetime-refine-body .datetime-filter-refresh[disabled] {
  background: var(--brand-action-disabled-bg, #eef1f6) !important;
  border-color: var(--brand-action-disabled-bg, #eef1f6) !important;
  color: var(--brand-action-disabled-text, #7f8796) !important;
  -webkit-text-fill-color: var(--brand-action-disabled-text, #7f8796) !important;
  opacity: 1 !important;
}

#step-datetime .datetime-filter-actions .datetime-filter-refresh[disabled] .refresh-label,
#step-datetime #datetime-refine-body .datetime-filter-refresh[disabled] .refresh-label {
  color: var(--brand-action-disabled-text, #7f8796) !important;
  -webkit-text-fill-color: var(--brand-action-disabled-text, #7f8796) !important;
}


/* ── Lot PI : suppression bouton appliquer critères ─────────────────────── */

/*
  Les filtres s’appliquent automatiquement. Le bouton Appliquer les critères
  créait une ambiguïté et pouvait déclencher des conflits de contraste.
*/
#step-datetime .datetime-filter-actions,
#step-datetime .datetime-filter-refresh,
#step-datetime .btn-refresh-slots.datetime-filter-refresh {
  display: none !important;
}

#step-datetime .datetime-filter-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 0;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 56%, #746985);
  font-size: .72rem;
  font-weight: 680;
  line-height: 1.15;
}

#step-datetime .datetime-filter-status::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-success, #1a7a4a) 12%, #fff);
  color: var(--brand-success, #1a7a4a);
  font-size: .62rem;
  font-weight: 900;
}

#step-datetime .datetime-filter-status[data-state="updated"] {
  color: color-mix(in srgb, var(--brand-success, #1a7a4a) 76%, #293648);
}

#step-datetime .datetime-filter-status[data-state="updated"]::before {
  background: color-mix(in srgb, var(--brand-success, #1a7a4a) 18%, #fff);
}

/* Le retrait du bouton rend le tiroir encore plus compact. */
#step-datetime .datetime-refine-panel__body,
#step-datetime #datetime-refine-body {
  padding-bottom: 7px !important;
  gap: 5px !important;
}



/* ── Lot PK : respect limite jours réservables ──────────────────────────── */

#step-datetime .calendar-day.outside-bookable-window,
#step-datetime .calendar-day.disabled.outside-bookable-window {
  opacity: .42 !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 38%, #9ca3af) !important;
  background: transparent !important;
  border-color: transparent !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#step-datetime .calendar-day.outside-bookable-window::after,
#step-datetime .calendar-day.outside-bookable-window .slot-count,
#step-datetime .calendar-day.outside-bookable-window .lunar-phase-icon {
  display: none !important;
}

#step-datetime #next-month-btn[disabled],
#step-datetime #prev-month-btn[disabled] {
  opacity: .38 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}


/* ── Lot PL : durcissement runtime limite jours réservables ─────────────── */

/*
  Si la valeur admin n’est pas exposée dans la config publique, le JS applique
  un fail-safe et pose html.bookable-limit-fallback + data-bookable-days-limit.
  Aucun avertissement visible en production : diagnostic inspectable en DOM.
*/
html.bookable-limit-fallback #step-datetime {
  --bookable-limit-diagnostic: "fallback";
}


/* ── Lot PM : clé exacte admin maxSearchWeeks ───────────────────────────── */

/*
  La limite vient de l’admin : planning_max_search_weeks → scheduling_settings.maxSearchWeeks.
  Le JS convertit les semaines en jours et expose aussi data-bookable-weeks-limit.
*/
html[data-bookable-days-limit-source="scheduling_settings.maxSearchWeeks"] #step-datetime {
  --bookable-limit-source: "maxSearchWeeks";
}


/* ── Lot PN : types de consultation admin + états visuels ───────────────── */

/*
  Personnalisé ≠ sélectionné.
  L'ordre personnalisé et le badge “Souvent choisi” suggèrent ; seule la coche confirme.
*/
#step-consultation-type .consultation-type-card.customer-history-preferred:not(.selected),
#step-consultation-type .location-option.customer-history-preferred:not(.selected) {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 18%, #e7dff0) !important;
  background: #fff !important;
  box-shadow: 0 5px 15px rgba(39, 17, 58, .035) !important;
}

#step-consultation-type .consultation-type-card.customer-history-preferred:not(.selected)::before,
#step-consultation-type .location-option.customer-history-preferred:not(.selected)::before {
  opacity: .18 !important;
}

#step-consultation-type .consultation-type-card:not(.selected):hover,
#step-consultation-type .location-option:not(.selected):hover,
#step-consultation-type .consultation-type-card:not(.selected):focus-visible,
#step-consultation-type .location-option:not(.selected):focus-visible {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 34%, #dccfe8) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 2%, #fff) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(39, 17, 58, .07) !important;
}

#step-consultation-type .consultation-type-card.selected,
#step-consultation-type .location-option.selected {
  border-color: var(--brand-primary, #4a0b77) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 4%, #fff) !important;
  box-shadow: 0 12px 28px rgba(74, 11, 119, .14) !important;
}

#step-consultation-type .customer-history-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 16%, #e8dff0);
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff);
  color: var(--brand-primary, #4a0b77);
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.1;
}

#step-consultation-type .consultation-selected-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-primary, #4a0b77);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: .76rem;
  font-weight: 820;
  line-height: 1.1;
}

#step-consultation-type .consultation-type-card.selected .customer-history-badge,
#step-consultation-type .location-option.selected .customer-history-badge {
  opacity: .72;
}

#step-consultation-type .card-description {
  max-width: 44ch;
  margin-inline: auto;
  line-height: 1.45;
}

#step-consultation-type .card-icon {
  filter: saturate(.78);
  opacity: .88;
}

#step-consultation-type .action-buttons .back-button:not([disabled]) {
  color: var(--brand-primary, #4a0b77) !important;
  -webkit-text-fill-color: var(--brand-primary, #4a0b77) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 22%, #ddd2eb) !important;
}



/* ── Lot PO : états visuels type de consultation + guidance ─────────────── */

/* Mis en avant par habitude ≠ sélectionné. */
#step-consultation-type .consultation-type-card.customer-history-preferred:not(.selected),
#step-consultation-type .location-option.customer-history-preferred:not(.selected) {
  background: #fff !important;
  background-image: none !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 12%, #e9e2f2) !important;
  box-shadow: 0 4px 12px rgba(39, 17, 58, .025) !important;
}

#step-consultation-type .consultation-type-card.customer-history-preferred:not(.selected)::before,
#step-consultation-type .location-option.customer-history-preferred:not(.selected)::before {
  opacity: 0 !important;
}

#step-consultation-type .consultation-card-badge,
#step-consultation-type .customer-history-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.08;
  white-space: nowrap;
}

#step-consultation-type .consultation-card-badge--history,
#step-consultation-type .customer-history-badge {
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 13%, #eadff3) !important;
  background: #fff !important;
  color: color-mix(in srgb, var(--brand-primary, #4a0b77) 88%, #3f3150) !important;
}

#step-consultation-type .consultation-card-badge--feature {
  border: 1px solid color-mix(in srgb, var(--brand-text, #1f2937) 10%, #e9edf4);
  background: color-mix(in srgb, var(--brand-text, #1f2937) 3%, #fff);
  color: color-mix(in srgb, var(--brand-text, #1f2937) 72%, #5f6470);
}

#step-consultation-type .consultation-type-card.selected,
#step-consultation-type .location-option.selected {
  border-width: 2px !important;
  border-color: var(--brand-primary, #4a0b77) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff) !important;
  box-shadow: 0 14px 30px rgba(74, 11, 119, .16) !important;
}

#step-consultation-type .consultation-type-card.selected::after,
#step-consultation-type .location-option.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-primary, #4a0b77);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(74, 11, 119, .24);
}

#step-consultation-type .consultation-selected-badge {
  margin-inline: auto;
}

#step-consultation-type .consultation-type-action-feedback {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 32px 12px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 11%, #e9e2f2);
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 2%, #fff);
}

#step-consultation-type .consultation-type-action-feedback__title {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 90%, #2d1a3a);
  font-size: .86rem;
  font-weight: 820;
  line-height: 1.15;
}

#step-consultation-type .consultation-type-action-feedback__detail {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 66%, #756985);
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.28;
}

#step-consultation-type .consultation-type-action-feedback[data-state="selected"] {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 20%, #ded1ea);
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 4%, #fff);
}

#step-consultation-type #consultation-type-continue-btn:not([disabled]) {
  background: var(--brand-primary, #4a0b77) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 10px 24px rgba(74, 11, 119, .18) !important;
}

#step-consultation-type .action-buttons .back-button:not([disabled]),
#step-consultation-type .action-buttons .btn-secondary:not([disabled]) {
  color: var(--brand-primary, #4a0b77) !important;
  -webkit-text-fill-color: var(--brand-primary, #4a0b77) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 28%, #d9cce6) !important;
  background: #fff !important;
  opacity: 1 !important;
}

#step-consultation-type .action-buttons .back-button:not([disabled]):hover,
#step-consultation-type .action-buttons .btn-secondary:not([disabled]):hover {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 40%, #d1c1e2) !important;
}

/* Le rond 1 reste discret : la sidebar porte déjà la progression. */
#step-consultation-type .step-number {
  opacity: .74;
}

@media (max-width: 767px) {
  #step-consultation-type .consultation-type-action-feedback {
    margin-inline: 16px;
  }
}


/* ── Lot PP : libellés, icônes et finition type consultation ────────────── */

/* La numérotation interne est masquée sur cette étape : la sidebar porte déjà la progression. */
#step-consultation-type .step-number {
  display: none !important;
}

#step-consultation-type .selection-step {
  gap: 16px;
}

/* Icônes plus premium : pictogramme contenu dans une pastille homogène. */
#step-consultation-type .card-icon.consultation-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 12%, #ebe3f3);
  color: var(--brand-primary, #4a0b77);
  -webkit-text-fill-color: var(--brand-primary, #4a0b77);
  font-size: 0;
  line-height: 1;
  filter: none !important;
  opacity: 1 !important;
}

#step-consultation-type .card-icon.consultation-icon::before {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

#step-consultation-type .consultation-icon--cabinet::before {
  content: "⌂";
}

#step-consultation-type .consultation-icon--video::before {
  content: "▣";
}

#step-consultation-type .consultation-icon--home::before {
  content: "⌁";
}

#step-consultation-type .consultation-icon--remote::before {
  content: "◌";
}

#step-consultation-type .consultation-icon--default::before {
  content: "•";
}

/* Carte sélectionnée : contraste incontestable face au simple “souvent choisi”. */
#step-consultation-type .consultation-type-card.selected,
#step-consultation-type .location-option.selected {
  outline: 2px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 28%, transparent);
  outline-offset: 2px;
}

#step-consultation-type .consultation-type-card.customer-history-preferred:not(.selected) .card-title,
#step-consultation-type .location-option.customer-history-preferred:not(.selected) .card-title {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 94%, #20232b);
}

/* Bouton précédent clairement cliquable. */
#step-consultation-type .action-buttons .back-button:not([disabled]),
#step-consultation-type .action-buttons .btn-secondary:not([disabled]) {
  min-width: 118px;
  color: color-mix(in srgb, var(--brand-primary, #4a0b77) 92%, #20102e) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 92%, #20102e) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 36%, #d4c5e4) !important;
  font-weight: 760 !important;
}

/* Feedback bas : confirmation avant passage à l’étape suivante. */
#step-consultation-type .consultation-type-action-feedback[data-state="selected"] .consultation-type-action-feedback__detail {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 78%, #4b5563);
}

/* Indication non visible par défaut : utile en inspection DOM pour corriger les libellés admin trop oraux. */
#step-consultation-type .consultation-type-card[data-copy-suggestion] {
  --consultation-copy-suggestion: attr(data-copy-suggestion);
}


/* ── Lot PQ : guidance, densité et libellés type consultation ───────────── */

/* Aide explicite sur l’ordre personnalisé, sans répéter le titre. */
#step-consultation-type .consultation-type-personalization-hint {
  margin: -2px auto 14px;
  max-width: 62ch;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 62%, #746985);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

/* Cartes moins vides, plus denses. */
#step-consultation-type .consultation-type-card,
#step-consultation-type .location-option {
  min-height: auto !important;
  padding: 18px 16px !important;
}

#step-consultation-type .card-content {
  gap: 7px !important;
}

#step-consultation-type .card-title {
  line-height: 1.16 !important;
  text-wrap: balance;
}

#step-consultation-type .card-description {
  min-height: 0 !important;
  margin-top: 2px !important;
  line-height: 1.36 !important;
}

/* Icônes un peu plus présentes, toujours homogènes. */
#step-consultation-type .card-icon.consultation-icon {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 10px !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 8%, #fff) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 18%, #e3d8ee) !important;
}

#step-consultation-type .card-icon.consultation-icon::before {
  font-size: 1.12rem !important;
}

/* Soin à distance : éviter les titres longs cassés en utilisant le badge pour le compte-rendu. */
#step-consultation-type .consultation-type-card--distance .card-title,
#step-consultation-type .consultation-type-card--soin-a-distance .card-title,
#step-consultation-type .consultation-type-card--remote .card-title {
  max-width: 18ch;
  margin-inline: auto;
}

/* État sélectionné encore plus incontestable. */
#step-consultation-type .consultation-type-card.selected,
#step-consultation-type .location-option.selected {
  border-width: 2px !important;
  outline: 3px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 18%, transparent) !important;
  outline-offset: 3px !important;
}

#step-consultation-type .consultation-selected-badge {
  box-shadow: 0 7px 16px rgba(74, 11, 119, .18);
}

/* Précédent : clairement disponible quand il est cliquable. */
#step-consultation-type .action-buttons .back-button:not([disabled]),
#step-consultation-type .action-buttons .btn-secondary:not([disabled]) {
  color: color-mix(in srgb, var(--brand-primary, #4a0b77) 96%, #180c26) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 96%, #180c26) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 46%, #ccbcdf) !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(39, 17, 58, .035) !important;
}

#step-consultation-type .action-buttons .back-button:not([disabled]):hover,
#step-consultation-type .action-buttons .btn-secondary:not([disabled]):hover {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 7%, #fff) !important;
  box-shadow: 0 8px 18px rgba(39, 17, 58, .07) !important;
}

/* Bloc bas : détail sélectionné lisible même avec une description admin longue. */
#step-consultation-type .consultation-type-action-feedback__detail {
  overflow-wrap: anywhere;
}

#step-consultation-type .consultation-type-action-feedback[data-state="selected"] .consultation-type-action-feedback__detail {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── Lot PR : valeurs admin type de consultation prioritaires ───────────── */

/*
  Les attributs data-* ci-dessous permettent de vérifier dans le DOM que les
  valeurs admin sont lues et appliquées avant les fallbacks :
  data-admin-order, data-admin-active, data-requires-address,
  data-prepayment-required, data-uses-remote-link, data-distance-validation.
*/
#step-consultation-type .consultation-type-card[data-admin-active="false"] {
  display: none !important;
}


/* ── Lot PS : restauration des icônes admin type consultation ───────────── */

/*
  Correction : les lots PP/PQ avaient neutralisé les emojis admin via font-size:0
  puis affiché des pictogrammes CSS en ::before. C’était contraire à la règle :
  contenu admin prioritaire.
*/
#step-consultation-type .card-icon.consultation-icon.consultation-icon--admin {
  font-size: 1.28rem !important;
  font-family: inherit !important;
  text-indent: 0 !important;
  overflow: visible !important;
  color: inherit !important;
  -webkit-text-fill-color: initial !important;
}

#step-consultation-type .card-icon.consultation-icon.consultation-icon--admin::before {
  content: none !important;
  display: none !important;
}

#step-consultation-type .card-icon.consultation-icon.consultation-icon--fallback {
  font-size: 0 !important;
}

#step-consultation-type .card-icon.consultation-icon[data-admin-icon="true"] {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 6%, #fff) !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 14%, #e6dcef) !important;
}


/* ── Lot PT : type consultation première page et action carte ───────────── */

/* Première étape : la carte est l’action principale. */
#step-consultation-type #type-back-btn-footer,
#step-consultation-type .action-buttons #type-back-btn-footer {
  display: none !important;
}

#step-consultation-type .consultation-type-card,
#step-consultation-type .location-option {
  cursor: pointer !important;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

#step-consultation-type .consultation-type-card:hover,
#step-consultation-type .location-option:hover,
#step-consultation-type .consultation-type-card:focus-visible,
#step-consultation-type .location-option:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 42%, #d7c7e6) !important;
  box-shadow: 0 14px 30px rgba(39, 17, 58, .10) !important;
}

#step-consultation-type .consultation-card-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 9px auto 0;
  color: var(--brand-primary, #4a0b77);
  -webkit-text-fill-color: var(--brand-primary, #4a0b77);
  font-size: .82rem;
  font-weight: 820;
  line-height: 1.15;
}

#step-consultation-type .consultation-type-card:hover .consultation-card-action,
#step-consultation-type .location-option:hover .consultation-card-action,
#step-consultation-type .consultation-type-card:focus-visible .consultation-card-action,
#step-consultation-type .location-option:focus-visible .consultation-card-action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#step-consultation-type .consultation-card-help {
  max-width: 42ch;
  margin: 2px auto 0;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 55%, #7c728c);
  font-size: .77rem;
  font-weight: 620;
  line-height: 1.3;
}

/* Hint personnalisé plus discret : il informe sans donner un sentiment de tracking. */
#step-consultation-type .consultation-type-personalization-hint {
  max-width: 48ch !important;
  font-size: .78rem !important;
  opacity: .82;
}

/* Bas de page : au premier passage, le bouton Suivant n’est pas l’action principale. */
#step-consultation-type #consultation-type-continue-btn.is-secondary-on-first-step,
#step-consultation-type #consultation-type-continue-btn[disabled] {
  background: var(--brand-action-disabled-bg, #eef1f6) !important;
  color: var(--brand-action-disabled-text, #7f8796) !important;
  -webkit-text-fill-color: var(--brand-action-disabled-text, #7f8796) !important;
  box-shadow: none !important;
  opacity: .78 !important;
}

/* Retour avec choix existant : la confirmation devient utile. */
#step-consultation-type .consultation-type-action-feedback[data-state="selected"] {
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 24%, #d8c9e7) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff) !important;
}

#step-consultation-type .consultation-type-action-feedback__helper {
  color: color-mix(in srgb, var(--brand-text, #1f2937) 55%, #7c728c);
  font-size: .76rem;
  font-weight: 620;
  line-height: 1.24;
}

/* Sélection = retour avec choix existant ou clic juste avant transition. */
#step-consultation-type .consultation-type-card.selected .consultation-card-action,
#step-consultation-type .location-option.selected .consultation-card-action {
  color: color-mix(in srgb, var(--brand-primary, #4a0b77) 92%, #1b0d2c);
  -webkit-text-fill-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 92%, #1b0d2c);
  text-decoration: none;
}

/* Les cartes “souvent choisi” restent blanches : ordre + badge suffisent. */
#step-consultation-type .consultation-type-card.customer-history-preferred:not(.selected),
#step-consultation-type .location-option.customer-history-preferred:not(.selected) {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 10%, #e9e2f2) !important;
  box-shadow: 0 3px 10px rgba(39, 17, 58, .02) !important;
}



/* ── Lot PU : finition première étape type consultation ────────────────── */

/* Au premier passage, Suivant n’est pas une action : seule la carte l’est. */
#step-consultation-type .action-buttons[data-consultation-type-state="idle"],
#step-consultation-type #consultation-type-continue-btn[hidden] {
  display: none !important;
}

#step-consultation-type .action-buttons[data-consultation-type-state="selected"] {
  display: flex !important;
}

/* Action carte mieux intégrée et alignée dans toutes les cartes. */
#step-consultation-type .consultation-type-card,
#step-consultation-type .location-option {
  display: flex !important;
  flex-direction: column !important;
}

#step-consultation-type .card-content {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  align-items: center;
}

#step-consultation-type .consultation-card-action {
  margin-top: auto !important;
  padding-top: 10px;
  min-height: 28px;
  letter-spacing: .005em;
}

@media (hover: hover) and (pointer: fine) {
  #step-consultation-type .consultation-type-card:not(:hover):not(:focus-visible) .consultation-card-action,
  #step-consultation-type .location-option:not(:hover):not(:focus-visible) .consultation-card-action {
    opacity: .72;
  }
}

@media (hover: none), (pointer: coarse) {
  #step-consultation-type .consultation-card-action {
    opacity: 1;
  }
}

/* Texte de personnalisation plus doux, moins algorithmique. */
#step-consultation-type .consultation-type-personalization-hint {
  max-width: 46ch !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 54%, #81758d) !important;
}

/* Les aides de carte remplissent utilement l’espace sans alourdir. */
#step-consultation-type .consultation-card-help {
  min-height: 1.15em;
}

/* Titre long fallback : le badge porte la précision, le titre reste court. */
#step-consultation-type .consultation-type-card--distance .card-title,
#step-consultation-type .consultation-type-card--soin-a-distance .card-title,
#step-consultation-type .consultation-type-card--remote .card-title {
  max-width: 15ch !important;
}

/* Sélection visible seulement quand il y a un choix réel ou un retour sur l’étape. */
#step-consultation-type .consultation-type-card.selected,
#step-consultation-type .location-option.selected {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff) !important;
  border-color: var(--brand-primary, #4a0b77) !important;
}

/* Icônes admin : conservées, mais encadrées proprement. */
#step-consultation-type .card-icon.consultation-icon.consultation-icon--admin {
  width: 38px !important;
  height: 38px !important;
  font-size: 1.16rem !important;
}

/* Les emojis admin restent prioritaires ; si l’on veut du 100% pictogramme, il faut le piloter dans l’admin. */
#step-consultation-type .card-icon.consultation-icon.consultation-icon--admin[data-admin-icon="true"] {
  filter: saturate(.88);
}


/* ── Lot PV : final copy/state polish admin-driven ─────────────────────── */

/* Le microtexte de personnalisation se rattache au contenu, sans flotter au centre. */
#step-consultation-type .consultation-type-personalization-hint {
  max-width: 920px !important;
  margin: -4px 32px 12px !important;
  text-align: left !important;
  color: color-mix(in srgb, var(--brand-text, #1f2937) 52%, #81758d) !important;
  font-size: .78rem !important;
  font-weight: 620 !important;
}

@media (max-width: 767px) {
  #step-consultation-type .consultation-type-personalization-hint {
    margin-inline: 16px !important;
  }
}

/* Cartes un peu plus denses : la carte reste lisible mais moins vide. */
#step-consultation-type .consultation-type-card,
#step-consultation-type .location-option {
  padding: 15px 15px 14px !important;
}

#step-consultation-type .card-icon.consultation-icon {
  margin-bottom: 7px !important;
}

#step-consultation-type .card-content {
  gap: 5px !important;
}

#step-consultation-type .card-description {
  line-height: 1.32 !important;
}

#step-consultation-type .consultation-card-help {
  margin-top: 1px !important;
  line-height: 1.24 !important;
}

/* “Choisir ce format” devient un mini-bouton discret intégré à la carte. */
#step-consultation-type .consultation-card-action {
  margin-top: 8px !important;
  padding: 6px 10px !important;
  min-height: auto !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4a0b77) 18%, #e6dcef);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 3%, #fff);
  text-decoration: none !important;
}

#step-consultation-type .consultation-type-card:hover .consultation-card-action,
#step-consultation-type .location-option:hover .consultation-card-action,
#step-consultation-type .consultation-type-card:focus-visible .consultation-card-action,
#step-consultation-type .location-option:focus-visible .consultation-card-action {
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 8%, #fff);
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 34%, #d8cae8);
  box-shadow: 0 6px 14px rgba(74, 11, 119, .08);
}

/* Les titres longs restent possibles si admin les impose, mais le rendu est mieux contenu. */
#step-consultation-type .card-title {
  max-width: 22ch;
  margin-inline: auto;
}

/* Etat retour avec choix existant : sélection impossible à confondre avec “souvent choisi”. */
#step-consultation-type .consultation-type-card.selected,
#step-consultation-type .location-option.selected {
  border-color: var(--brand-primary, #4a0b77) !important;
  background: color-mix(in srgb, var(--brand-primary, #4a0b77) 5%, #fff) !important;
  box-shadow: 0 14px 32px rgba(74, 11, 119, .16) !important;
}

#step-consultation-type .consultation-type-card.selected .consultation-selected-badge,
#step-consultation-type .location-option.selected .consultation-selected-badge {
  display: inline-flex !important;
}

/* Icônes : contenu admin prioritaire, traitement homogène au maximum sans remplacer l’icône. */
#step-consultation-type .card-icon.consultation-icon.consultation-icon--admin {
  width: 36px !important;
  height: 36px !important;
  font-size: 1.08rem !important;
  filter: saturate(.82) contrast(.96);
}

/* Si la société veut supprimer totalement les icônes, elle peut ajouter consultation-icons-hidden au body/html. */
html.consultation-icons-hidden #step-consultation-type .card-icon,
body.consultation-icons-hidden #step-consultation-type .card-icon {
  display: none !important;
}


/* ── Lot QB : images type de consultation comme catégories services ─────── */

/* Image admin prioritaire, avec overlay/focal identiques dans l’esprit des catégories de services. */
#step-consultation-type .consultation-type-card--has-image,
#step-consultation-type .location-option.consultation-type-card--has-image {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand-primary, #4a0b77) 18%, #e7dff0) !important;
}

#step-consultation-type .consultation-type-card--has-image .consultation-card-media {
  display: block;
  width: calc(100% + 30px);
  height: 104px;
  margin: -15px -15px 12px;
  background-image: var(--consultation-card-image-overlay), var(--consultation-card-image);
  background-size: cover;
  background-position: var(--consultation-card-image-position, center center);
  border-radius: inherit inherit 0 0;
}

#step-consultation-type .consultation-type-card--has-image .card-icon.consultation-icon {
  margin-top: -34px !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
}

#step-consultation-type .consultation-type-card--has-image.selected .consultation-card-media {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-primary, #4a0b77) 45%, transparent);
}

@media (max-width: 767px) {
  #step-consultation-type .consultation-type-card--has-image .consultation-card-media {
    background-image: var(--consultation-card-image-overlay), var(--consultation-card-mobile-image, var(--consultation-card-image));
    height: 96px;
  }
}
