/* lot_qf_preserve_blob_preview_and_server_upload_guard_20260605 */
/* ==========================================================================
   Lot OV — système unifié des boutons de navigation d'étapes
   ========================================================================== */

:root {
  --booking-step-action-radius: 999px;
  --booking-step-action-min-height: 44px;
  --booking-step-action-pad-x: 22px;
  --booking-step-action-gap: 12px;

  --booking-step-action-primary-start: var(--brand-action-primary, var(--brand-primary, #4A0B77));
  --booking-step-action-primary-end: var(--brand-action-primary-end, var(--brand-secondary, #7C3AED));
  --booking-step-action-primary-text: var(--brand-action-primary-text, #FFFFFF);

  --booking-step-action-secondary-bg: var(--brand-action-secondary-bg, #F7F8FB);
  --booking-step-action-secondary-border: var(--brand-action-secondary-border, #D9DEE8);
  --booking-step-action-secondary-text: var(--brand-action-secondary-text, var(--brand-text, #374151));

  --booking-step-action-disabled-bg: var(--brand-action-disabled-bg, #EEF1F6);
  --booking-step-action-disabled-border: var(--brand-action-disabled-border, #E0E5EE);
  --booking-step-action-disabled-text: var(--brand-action-disabled-text, #9AA3B2);
}

/* Structure identique sur chaque étape */
.step-content > .action-buttons,
.action-buttons.booking-step-actions,
.action-buttons--contact,
.action-buttons--datetime,
#datetime-actions {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: var(--booking-step-action-gap);
  margin-top: 18px;
}

.datetime-actions-buttons {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: var(--booking-step-action-gap);
  flex-wrap: wrap;
}

/* Les éléments d'information restent à gauche, les actions à droite. */
.action-buttons--datetime .datetime-selection-feedback {
  min-width: 0;
  flex: 1 1 auto;
}

.action-buttons--datetime .datetime-actions-buttons {
  flex: 0 0 auto;
}

/* Base commune : même silhouette actif/inactif. */
.action-buttons .btn,
.action-buttons button,
.datetime-actions-buttons .btn,
.datetime-actions-buttons button,
.booking-step-action-button {
  min-height: var(--booking-step-action-min-height) !important;
  border-radius: var(--booking-step-action-radius) !important;
  padding: 0 var(--booking-step-action-pad-x) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 800 !important;
  font-size: .95rem;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

/* Bouton primaire : Continuer / Confirmer. */
.action-buttons .btn-primary,
.action-buttons button.btn-primary,
.datetime-actions-buttons .btn-primary,
.booking-step-action-button--primary {
  background: linear-gradient(
    135deg,
    var(--booking-step-action-primary-start),
    var(--booking-step-action-primary-end)
  ) !important;
  border-color: var(--booking-step-action-primary-start) !important;
  color: var(--booking-step-action-primary-text) !important;
  -webkit-text-fill-color: var(--booking-step-action-primary-text) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--booking-step-action-primary-start) 18%, transparent);
}

/* Bouton secondaire : Retour / Précédent. */
.action-buttons .btn-secondary,
.action-buttons button.btn-secondary,
.datetime-actions-buttons .btn-secondary,
.booking-step-action-button--secondary {
  background: var(--booking-step-action-secondary-bg) !important;
  border-color: var(--booking-step-action-secondary-border) !important;
  color: var(--booking-step-action-secondary-text) !important;
  -webkit-text-fill-color: var(--booking-step-action-secondary-text) !important;
  box-shadow: none !important;
}

/* Action tertiaire métier : paiement sur place, pack, promo, etc. */
.action-buttons .btn-tertiary,
.action-buttons button.btn-tertiary,
.booking-step-action-button--tertiary {
  background: transparent !important;
  border-color: color-mix(in srgb, var(--booking-step-action-primary-start) 24%, var(--booking-step-action-secondary-border)) !important;
  color: var(--booking-step-action-primary-start) !important;
  -webkit-text-fill-color: var(--booking-step-action-primary-start) !important;
  box-shadow: none !important;
}

/* Disabled : même forme, état seulement atténué. */
.action-buttons .btn:disabled,
.action-buttons button:disabled,
.datetime-actions-buttons .btn:disabled,
.datetime-actions-buttons button:disabled,
.booking-step-action-button[disabled],
.booking-step-action-button[aria-disabled="true"] {
  background: var(--booking-step-action-disabled-bg) !important;
  border-color: var(--booking-step-action-disabled-border) !important;
  color: var(--booking-step-action-disabled-text) !important;
  -webkit-text-fill-color: var(--booking-step-action-disabled-text) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.action-buttons .btn:not(:disabled):hover,
.action-buttons button:not(:disabled):hover,
.datetime-actions-buttons .btn:not(:disabled):hover,
.datetime-actions-buttons button:not(:disabled):hover,
.booking-step-action-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.action-buttons .btn-primary:not(:disabled):hover,
.action-buttons button.btn-primary:not(:disabled):hover,
.datetime-actions-buttons .btn-primary:not(:disabled):hover,
.booking-step-action-button--primary:not(:disabled):hover {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--booking-step-action-primary-start) 24%, transparent);
}

.action-buttons .btn:focus-visible,
.action-buttons button:focus-visible,
.datetime-actions-buttons .btn:focus-visible,
.datetime-actions-buttons button:focus-visible,
.booking-step-action-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--booking-step-action-primary-start) 24%, transparent);
  outline-offset: 2px;
}

/* Le bouton retour flèche dans l'en-tête reste un bouton icône, pas un CTA footer. */
.content-header > .back-button:not(.btn),
.contact-header-top > .back-button:not(.btn) {
  min-height: unset !important;
  border-radius: 999px !important;
  padding: 0 !important;
}

/* Cohérence du bouton contact large. */
.btn-primary--wide.booking-step-action-button,
.action-buttons .btn-primary--wide {
  min-width: 160px;
}

@media (max-width: 720px) {
  .step-content > .action-buttons,
  .action-buttons.booking-step-actions,
  .action-buttons--contact,
  .action-buttons--datetime,
  #datetime-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-buttons--datetime .datetime-selection-feedback {
    width: 100%;
  }

  .datetime-actions-buttons {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .action-buttons .btn,
  .action-buttons button,
  .datetime-actions-buttons .btn,
  .datetime-actions-buttons button,
  .booking-step-action-button {
    width: 100%;
  }
}
