/**
 * ============================================================================
 * BOOKING WIDGET - STYLES
 * ============================================================================
 * Widget autonome de réservation publique
 * - Hérite des variables CSS root de style.css
 * - Design moderne et responsive
 * - Animations fluides
 * ============================================================================
 */

/* ═══════════════════════════════════════════════════════════════════════
   OVERLAY & CONTAINER
   ═══════════════════════════════════════════════════════════════════════

   Z-INDEX HIERARCHY (pour éviter les conflits):
   - Site header/nav: 1000
   - Booking overlay: 19999
   - Booking container: 20000
   - Login modal (intégré dans widget): 20001-20002

   Note: Ces valeurs élevées garantissent que le widget s'affiche au-dessus
   de n'importe quel contenu du site hôte lors de l'intégration.
   ═══════════════════════════════════════════════════════════════════════ */

.booking-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 19999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-widget-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-widget-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 95%;
  max-width: 1000px;
  max-height: 92vh;
  background: var(--bg-color);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-widget-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */

.booking-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
  gap: 1rem;
}

.booking-widget-header h2 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.booking-widget-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.booking-widget-close:hover {
  background: var(--border-color);
  color: var(--text-color);
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════ */

.booking-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  flex: 0 0 auto;
  transition: var(--transition);
}

.progress-step:hover .progress-dot {
  transform: scale(1.1);
}

.progress-step.completed:hover .progress-dot {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.progress-dot {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--border-color);
  border: 3px solid var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.progress-step.active .progress-dot {
  background: var(--primary-color);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.progress-step.completed .progress-dot {
  background: var(--secondary-color);
  color: white;
}

.progress-step.completed .progress-dot::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9rem;
}

.progress-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.progress-step.active .progress-label {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 3px;
  background: var(--border-color);
  margin: 0 0.5rem;
  align-self: flex-start;
  margin-top: 18px;
}

.progress-step.completed ~ .progress-line {
  background: var(--secondary-color);
}

/* ═══════════════════════════════════════════════════════════════════════
   BODY & STEPS
   ═══════════════════════════════════════════════════════════════════════ */

.booking-widget-body {
  padding: 1.5rem 2.5rem 1rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
}

/* Scrollbar moderne et discrète */
.booking-widget-body::-webkit-scrollbar {
  width: 8px;
}

.booking-widget-body::-webkit-scrollbar-track {
  background: transparent;
}

.booking-widget-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.booking-widget-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Firefox */
.booking-widget-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER STICKY
   ═══════════════════════════════════════════════════════════════════════ */

.booking-widget-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left center right";
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.booking-widget-footer .btn-prev-container {
  grid-area: left;
  display: flex;
  justify-content: flex-start;
}

.booking-widget-footer .pagination-container {
  grid-area: center;
  display: flex;
  justify-content: center;
}

.booking-widget-footer .btn-next-container {
  grid-area: right;
  display: flex;
  justify-content: flex-end;
}

/* Styles pour les boutons du footer */
.booking-widget-footer .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  min-width: 120px;
  white-space: nowrap;
}

.booking-widget-footer .btn i {
  font-size: 0.85rem;
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.booking-step h3 {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 1 - SERVICE SEARCH & GRID
   ═══════════════════════════════════════════════════════════════════════ */

.service-search-container {
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 45px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-color);
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  color: var(--text-color);
  background: var(--border-color);
}

/* Services Grid - Widget uniquement (ne touche PAS le site) */
.booking-widget-container .services-grid {
  display: block !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
  max-width: none !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.booking-widget-container .services-grid.has-items {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.25rem !important;
  justify-content: center !important;
}

.booking-widget-container .service-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.booking-widget-container .service-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.booking-widget-container .service-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
}

.booking-widget-container .service-card-image-wrapper {
  position: relative;
  width: 100%;
}

.booking-widget-container .service-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-secondary);
  display: block;
}

.booking-widget-container .service-star-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7);
  }
}

.booking-widget-container .service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.booking-widget-container .service-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: inherit;
}

.booking-widget-container .service-card.selected .service-card-title {
  color: white;
}

.booking-widget-container .service-card-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

.booking-widget-container .service-card.selected .service-card-description {
  color: rgba(255, 255, 255, 0.9);
}

.booking-widget-container .service-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.booking-widget-container .service-card.selected .service-card-footer {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.booking-widget-container .service-card-duration {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.2;
}

.booking-widget-container .service-card.selected .service-card-duration {
  color: rgba(255, 255, 255, 0.95);
}

.booking-widget-container .service-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.booking-widget-container .service-card.selected .service-card-price {
  color: white;
}

/* Bouton "En savoir plus" */
.booking-widget-container .btn-service-info {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  margin-top: 0.5rem;
  font-weight: 500;
  width: fit-content;
}

.booking-widget-container .btn-service-info:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.booking-widget-container .service-card.selected .btn-service-info {
  color: rgba(255, 255, 255, 0.95);
}

/* Actions panier (container) */
.booking-widget-container .service-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

/* Bouton "En savoir plus" adapté pour actions */
.booking-widget-container .service-info-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: auto;
}

.booking-widget-container .service-info-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.booking-widget-container .service-card.selected .service-info-btn {
  color: rgba(255, 255, 255, 0.9);
}

.booking-widget-container .service-card.selected .service-info-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Bouton panier (icône) */
.booking-widget-container .service-cart-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.booking-widget-container .service-cart-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* État "dans le panier" */
.booking-widget-container .service-card.selected .service-cart-btn {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.booking-widget-container .service-cart-btn.in-cart {
  background: var(--primary-color);
  color: white;
}

/* Animation ajout */
@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.booking-widget-container .service-cart-btn.pulse {
  animation: buttonPulse 0.4s ease;
}

/* Badge quantité sur le bouton panier */
.booking-widget-container .qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-color, #ec4899);
  color: white;
  border-radius: 10px;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.booking-widget-container .service-cart-btn {
  position: relative;
}

/* ÉTAT INCOMPATIBLE - Services non compatibles avec le panier */
.booking-widget-container .service-card.incompatible {
  opacity: 0.65;
  pointer-events: none;
  position: relative;
  filter: grayscale(20%) brightness(0.98);
  transition: all 0.3s ease;
}

/* Badge "INCOMPATIBLE" - Design élégant et professionnel */
.booking-widget-container .service-card .incompatible-badge {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.75px;
  z-index: 5;
  box-shadow:
    0 2px 8px rgba(220, 38, 38, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

/* Hover effect sur le badge */
.booking-widget-container .service-card.incompatible:hover .incompatible-badge {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(220, 38, 38, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Message explicatif - Design élégant */
.booking-widget-container .service-card.incompatible::after {
  content: attr(data-incompatible-reason);
  position: absolute;
  bottom: 0.875rem;
  left: 0.875rem;
  right: 0.875rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  z-index: 10;
  text-align: center;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.2px;
}

.booking-widget-container .service-card.incompatible .service-cart-btn {
  cursor: not-allowed;
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

/* Contrôles de quantité en mode classique (dans le footer de la card) */
.booking-widget-container .service-qty-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.booking-widget-container .qty-btn-card {
  background: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: all 0.15s ease;
  font-size: 0.7rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.booking-widget-container .qty-btn-card:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.booking-widget-container .qty-btn-card:active:not(:disabled) {
  transform: scale(0.95);
}

.booking-widget-container .qty-btn-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking-widget-container .qty-value-card {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  user-select: none;
}

/* Pagination des services */
.services-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination-btn {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--text-color);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-number {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.pagination-number:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.pagination-number.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-dots {
  color: var(--text-light);
  padding: 0 0.25rem;
  user-select: none;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0 0.5rem;
  text-align: center;
}

/* Modal service info */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.service-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.service-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--bg-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: var(--transition);
  z-index: 10;
}

.service-modal-close:hover {
  background: var(--border-color);
  transform: rotate(90deg);
}

.service-modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.service-modal-title {
  margin: 0 0 1.5rem 0;
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  padding-right: 3rem;
}

.service-modal-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.service-modal-description {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
}

.service-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
  font-size: 1.1rem;
}

.service-modal-duration {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.service-modal-price-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.service-modal-price-min {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 2 - STAFF GRID
   ═══════════════════════════════════════════════════════════════════════ */

/* Mini récapitulatif */
.mini-summary {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.mini-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-summary-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-summary-value {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.booking-widget-container .staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.booking-widget-container .staff-card {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.booking-widget-container .staff-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.booking-widget-container .staff-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
}

.booking-widget-container .staff-card.first-available {
  border-color: var(--accent-color);
  background: var(--bg-secondary);
}

.booking-widget-container .staff-card.first-available:hover {
  border-color: var(--secondary-color);
}

.booking-widget-container .staff-card.first-available.selected {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

.staff-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--border-color);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.booking-widget-container .staff-card.selected .staff-avatar {
  border-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.staff-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  border: 3px solid var(--border-color);
  transition: var(--transition);
}

.booking-widget-container .staff-card.selected .staff-avatar-placeholder {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.booking-widget-container .staff-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: inherit;
}

.booking-widget-container .staff-card.selected .staff-card-name {
  color: white;
}

.booking-widget-container .staff-card-role {
  font-size: 0.85rem;
  color: var(--text-light);
}

.booking-widget-container .staff-card.selected .staff-card-role {
  color: rgba(255, 255, 255, 0.9);
}

.booking-widget-container .staff-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.booking-widget-container .staff-card.selected .staff-card-icon {
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 3 - DATE & TIME PICKER
   ═══════════════════════════════════════════════════════════════════════ */

/* Quick Booking intégré dans mini-summary */
.mini-summary-item.quick-booking-item {
  flex: 1 1 100%;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--primary-color) 6%, transparent);
  animation: quickBookingFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes quickBookingFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-summary-item.quick-booking-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.mini-summary-item.quick-booking-item:hover::after {
  transform: translateX(100%);
}

.mini-summary-item.quick-booking-item:hover {
  border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.mini-summary-item.quick-booking-item.selected {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 18%, transparent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.quick-booking-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mini-summary-item.quick-booking-item:hover .quick-booking-icon {
  transform: scale(1.05) rotate(8deg);
  background: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.quick-booking-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quick-booking-slot {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

.quick-booking-arrow {
  font-size: 0.95rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.mini-summary-item.quick-booking-item:hover .quick-booking-arrow {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 768px) {
  .mini-summary-item.quick-booking-item {
    padding: 0.625rem 0.875rem;
    gap: 0.625rem;
  }

  .quick-booking-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
  }

  .quick-booking-slot {
    font-size: 0.8125rem;
  }

  .quick-booking-arrow {
    font-size: 0.875rem;
  }
}

.datetime-picker {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Layout 2 colonnes sur grand écran */
@media (min-width: 768px) {
  .datetime-picker {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Calendrier visuel */
.calendar-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 auto 2rem;
  max-width: 420px;
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-container {
    margin: 0;
  }
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  text-transform: capitalize;
}

.calendar-nav {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.calendar-nav:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.weekday {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
  border: 2px solid transparent;
  min-height: 36px;
}

.calendar-day:not(.disabled):not(.other-month):hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.calendar-day.selected {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calendar-day.disabled {
  color: var(--text-secondary);
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
}

.calendar-day.other-month {
  color: var(--text-secondary);
  opacity: 0.4;
}

.calendar-day.today {
  border-color: var(--primary-color);
}

.time-slots-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-slots-container label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  justify-content: center;
}

.time-slot {
  padding: 14px 12px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
}

.time-slot:hover {
  border-color: var(--secondary-color);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.time-slot.selected {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.time-slot.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.time-slots .no-slots,
.time-slots .error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  background: var(--bg-secondary);
}

.time-slots .no-slots {
  color: var(--text-secondary);
}

.time-slots .error {
  color: var(--error-color);
}

/* Skeleton loader pour les time slots */
.skeleton-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  width: 100%;
  grid-column: 1 / -1;
}

.skeleton-slot {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 4 - FORM & SUMMARY
   ═══════════════════════════════════════════════════════════════════════ */

.booking-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Inputs pré-remplis (utilisateur connecté) */
.form-group input.prefilled {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.form-group input.prefilled:focus {
  box-shadow: none;
  border-color: var(--border-color);
}

/* Banner utilisateur connecté */
.logged-in-banner {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.logged-in-banner i {
  font-size: 1.25rem;
  opacity: 0.9;
}

.logged-in-banner span {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.logged-in-banner strong {
  font-weight: 700;
}

.btn-logout-small {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-logout-small:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  line-height: 1.5;
  position: relative;
  padding-left: 32px;
}

/* Cacher la checkbox native */
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

/* Créer une checkbox personnalisée */
.checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hover sur la checkbox */
.checkbox-label:hover::before {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Icône checkmark */
.checkbox-label::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%) scale(0);
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* État coché */
.checkbox-label.checked::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.checkbox-label.checked::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Meilleure approche avec le texte wrappé */
.checkbox-label span {
  flex: 1;
}

#password-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Message warnings */
.message {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.message-warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
}

.message i {
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.message-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.message-actions a,
.message-actions .btn-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.message-actions a:hover,
.message-actions .btn-link:hover {
  opacity: 0.8;
}

/* Summary */
.booking-summary {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.booking-summary h4 {
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--border-color);
}

/* Liste de services dans le récapitulatif (Step 4) */
.summary-service-group {
  margin-bottom: 0.75rem;
}

.summary-service-group:last-child {
  margin-bottom: 0;
}

.summary-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.summary-service-item.expandable {
  cursor: pointer;
  transition: all 0.2s;
}

.summary-service-item.expandable:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-service-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #212529;
  padding-right: 0.5rem;
}

.summary-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  background: var(--primary-color, #007bff);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
}

.summary-expand-icon {
  color: #6c757d;
  font-size: 0.875rem;
  transition: transform 0.2s;
  margin-left: 0.5rem;
}

/* Détails des bookings (expand/collapse) */
.summary-service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, margin-top 0.3s ease-out, opacity 0.2s;
  padding-left: 0;
  opacity: 0;
}

.summary-service-details.expanded {
  max-height: 500px;
  margin-top: 0.75rem;
  opacity: 1;
}

.summary-service-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 0.5rem;
}

.summary-service-detail-item:last-child {
  margin-bottom: 0;
}

.summary-time-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  color: #212529;
}

.summary-time-range::before {
  content: '→';
  color: #6c757d;
  font-size: 1.1rem;
}

.summary-price-detail {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color, #007bff);
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 5 - CONFIRMATION
   ═══════════════════════════════════════════════════════════════════════ */

.confirmation-content {
  text-align: center;
  padding: 2rem 0;
}

.confirmation-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 1.5rem;
  animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.confirmation-content h3 {
  color: #28a745;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.confirmation-content p {
  color: var(--text-color);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.create-account-prompt {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.prompt-content i {
  font-size: 3rem;
  color: var(--accent-color);
}

.prompt-content p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.prompt-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.confirmation-actions {
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS & ACTIONS
   ═══════════════════════════════════════════════════════════════════════ */

.step-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Cacher les step-actions seulement pour les étapes 1, 2, 3, 4 (maintenant dans le footer) */
#step-service .step-actions,
#step-staff .step-actions,
#step-datetime .step-actions,
#step-contact .step-actions {
  display: none;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
}

.btn span:not(:empty) {
  margin-right: 0.75rem;
}

.btn i:first-child {
  margin-right: 0.75rem;
}

.btn i:last-child:not(:first-child) {
  margin-left: 0.75rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white !important;
}

.btn-primary:hover:not(:disabled) {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:active:not(:disabled) {
  background: var(--primary-color);
  color: white !important;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border-color);
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

/* Loading spinner/skeleton */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  width: 100%;
  min-height: 400px;
}

/* Skeleton loader - Services Grid */
.loading-skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

.skeleton-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-color);
  animation: skeletonPulse 1.5s ease-in-out infinite;
  width: 100%;
  max-width: 100%;
}

.skeleton-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-body {
  padding: 1.25rem;
}

.skeleton-title {
  height: 20px;
  width: 70%;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.skeleton-duration {
  height: 14px;
  width: 80px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-price {
  height: 20px;
  width: 60px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Loading skeleton - Staff Grid */
.loading-skeleton-staff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 768px) {
  .loading-skeleton-staff {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .loading-skeleton-staff {
    grid-template-columns: 1fr;
  }
}

.skeleton-staff-card {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--bg-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: 1rem;
}

.skeleton-name {
  height: 18px;
  width: 120px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-role {
  height: 14px;
  width: 80px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--border-color) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Fallback spinner simple si besoin */
.loading-spinner i {
  font-size: 3rem;
  color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner span {
  font-size: 1.05rem;
  color: var(--text-color);
  font-weight: 500;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablette */
/* Tablettes et petits écrans */
@media (max-width: 992px) and (min-width: 769px) {
  .btn-login {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }

  .booking-widget-header {
    padding: 1rem 1.75rem;
  }

  .booking-widget-header h2 {
    font-size: 1.35rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .booking-widget-container {
    width: 96%;
    max-height: 94vh;
  }

  .booking-widget-header {
    padding: 1rem 1.25rem;
  }

  .booking-widget-header h2 {
    font-size: 1.25rem;
  }

  /* Bouton login - cacher le texte sur mobile, garder l'icône */
  .btn-login-text {
    display: none;
  }

  .btn-login {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .booking-progress {
    padding: 1.5rem 1rem;
    gap: 0.25rem;
  }

  .progress-dot {
    width: 35px;
    height: 35px;
  }

  .progress-label {
    font-size: 0.7rem;
  }

  .progress-line {
    display: none;
  }

  .progress-step {
    flex: 1;
  }

  .booking-widget-body {
    padding: 2rem 1.75rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .step-actions {
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 480px) {
  /* Widget plein écran sur mobile */
  .booking-widget-container {
    width: 100%;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: scale(0.9);
  }

  .booking-widget-container.active {
    transform: scale(1);
  }

  /* Header compact */
  .booking-widget-header {
    padding: 1rem 1.25rem;
  }

  .booking-widget-header h2 {
    font-size: 1.2rem;
  }

  .booking-widget-close {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    top: 1rem;
    right: 1rem;
  }

  /* Progress bar compact */
  .booking-progress {
    padding: 0.75rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .progress-dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .progress-label {
    font-size: 0.6rem;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.1;
    min-height: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .progress-line {
    display: none;
  }

  .progress-step {
    flex: 1;
  }

  /* Footer optimisé */
  .booking-widget-footer {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
    min-height: auto;
  }

  .booking-widget-footer .navigation-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .booking-widget-footer .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    min-width: 100px;
  }

  .booking-widget-footer .btn i {
    font-size: 0.75rem;
  }

  .booking-widget-footer .pagination-container {
    order: -1;
  }

  .pagination-info {
    display: none;
  }

  .pagination-btn,
  .pagination-number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Body compact */
  .booking-widget-body {
    padding: 1rem 1rem;
    flex: 1;
    overflow-y: auto;
  }

  .booking-step h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  /* Mini-summary compact */
  .mini-summary {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    gap: 1rem;
    border-radius: 8px;
  }

  .mini-summary-item {
    gap: 0.2rem;
  }

  .mini-summary-label {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
  }

  .mini-summary-value {
    font-size: 0.85rem;
  }

  /* Service modal plein écran */
  .service-modal-content {
    width: 100%;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }

  .service-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .service-modal-body {
    padding: 1.25rem 1rem;
  }

  .service-modal-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
  }

  .service-modal-image {
    height: 180px;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .service-modal-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
  }

  .service-modal-footer {
    padding-top: 1rem;
    font-size: 0.95rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .service-modal-price,
  .service-modal-price-range {
    font-size: 1.2rem;
  }

  .service-modal-price-min {
    font-size: 0.85rem;
  }

  /* Login prompt compact */
  .login-prompt {
    padding: 0.85rem;
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  .login-prompt-box {
    gap: 0.75rem;
    flex-direction: column;
    text-align: center;
  }

  .login-prompt-box > i {
    font-size: 1.8rem;
  }

  .login-prompt-text strong {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .login-prompt-text p {
    font-size: 0.85rem;
  }

  .login-prompt .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
  }

  /* Banner logged-in compact */
  .logged-in-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    gap: 0.75rem;
    border-radius: 8px;
  }

  .logged-in-banner i {
    font-size: 1rem;
  }

  .logged-in-banner span {
    font-size: 0.85rem;
  }

  .btn-logout-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Checkbox create account compact */
  .checkbox-label {
    padding-left: 28px;
    font-size: 0.9rem;
  }

  .checkbox-label::before {
    width: 20px;
    height: 20px;
  }

  .checkbox-label::after {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card-image {
    height: 150px;
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .staff-avatar,
  .staff-avatar-placeholder {
    width: 80px;
    height: 80px;
  }

  .staff-avatar-placeholder {
    font-size: 2rem;
  }

  .staff-card-icon {
    font-size: 2.5rem;
  }

  .staff-card-name {
    font-size: 1rem;
  }

  .staff-card-role {
    font-size: 0.8rem;
  }

  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
  }

  .time-slot {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .step-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .step-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .prompt-actions {
    flex-direction: column;
    width: 100%;
  }

  .prompt-actions .btn {
    width: 100%;
  }

  .confirmation-icon {
    font-size: 4rem;
  }

  .confirmation-content h3 {
    font-size: 1.5rem;
  }
}

/* Très petit mobile */
@media (max-width: 360px) {
  .progress-label {
    display: none;
  }

  .progress-line {
    top: 0;
  }

  .service-card-body {
    padding: 1rem;
  }

  .booking-summary {
    padding: 1.25rem;
  }
}

/* Mode sombre */
[data-theme="dark"] .booking-widget-container {
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .staff-card {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .staff-card:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

/* ============================================================================
   ERROR DIALOG
   ============================================================================ */

.booking-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.booking-error-dialog {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.booking-error-dialog .error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: #fee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-error-dialog .error-icon i {
  font-size: 32px;
  color: #dc3545;
}

.booking-error-dialog h3 {
  margin: 0 0 16px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.booking-error-dialog p {
  margin: 0 0 24px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.booking-error-dialog .btn {
  min-width: 120px;
}

/* Dark mode */
[data-theme="dark"] .booking-error-dialog {
  background: #2d2d2d;
}

[data-theme="dark"] .booking-error-dialog h3 {
  color: #fff;
}

[data-theme="dark"] .booking-error-dialog p {
  color: #ccc;
}

[data-theme="dark"] .booking-error-dialog .error-icon {
  background: rgba(220, 53, 69, 0.15);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   LOGIN PROMPT & LOGGED IN INFO (STEP 4)
   ======================================== */

.login-prompt {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-secondary, #f8f8f8);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-prompt-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-prompt-box > i {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.95;
}

.login-prompt-text {
  flex: 1;
  color: var(--text-color, #333);
}

.login-prompt-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--text-color, #333);
}

.login-prompt-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  color: var(--text-secondary, #666);
}

.login-prompt .btn-outline {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.login-prompt .btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.or-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.or-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--bg-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark mode */
[data-theme="dark"] .login-prompt {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .login-prompt-text {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .login-prompt-box > i {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .login-prompt .btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .login-prompt .btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .or-divider span {
  background: var(--bg-color);
}

/* ══════════════════════════════════════════════════════════════════════
   VUE LISTE AVEC CATÉGORIES
   ══════════════════════════════════════════════════════════════════════ */

.services-list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

/* Header avec bouton "Tout déplier/replier" */
.list-view-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.btn-toggle-all {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  font-family: inherit;
}

.btn-toggle-all:hover {
  background: var(--border-color);
}

.btn-toggle-all i {
  transition: transform 0.3s ease;
}

.btn-toggle-all.all-expanded i {
  transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════════════
   ACCORDÉON PAR CATÉGORIE
   ══════════════════════════════════════════════════════════════════════ */

.category-accordion {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.category-accordion:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header de catégorie (cliquable) */
.category-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.category-header:hover {
  background: var(--border-color);
}

.category-header.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.category-info i {
  font-size: 1.2rem;
  opacity: 0.8;
}

.category-name {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-count {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 500;
}

.category-chevron {
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.category-header.active .category-chevron {
  transform: rotate(180deg);
}

/* Corps de catégorie (liste des services) */
.category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-color);
}

.category-body.expanded {
  max-height: 2000px; /* Assez grand pour contenir tous les services */
  padding: 0.5rem 0;
}

/* ══════════════════════════════════════════════════════════════════════
   ITEMS DE SERVICE (vue liste)
   ══════════════════════════════════════════════════════════════════════ */

.service-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.service-list-item:last-child {
  border-bottom: none;
}

.service-list-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.service-list-item.selected {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--primary-color) 12%, transparent) 0%,
    color-mix(in srgb, var(--primary-color) 6%, transparent) 100%
  );
  border-left: 4px solid var(--primary-color);
  padding-left: calc(1.25rem - 4px);
}

/* Badge étoile (service déjà réservé) */
.service-badge-star {
  color: #ffd700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: starPulse 2s ease-in-out infinite;
}

/* Nom du service */
.service-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  flex: 1;
}

.service-list-item.selected .service-name {
  color: var(--primary-color);
  font-weight: 700;
}

/* Détails (prix + durée) */
.service-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.service-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
}

.service-duration {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Bouton info compact */
.btn-info-compact {
  background: none;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  flex-shrink: 0;
}

.btn-info-compact:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Bouton info mobile - caché par défaut (desktop) */
.btn-info-mobile {
  display: none;
}

/* Bouton panier en vue liste */
.service-cart-btn-list {
  background: white;
  border: 2px solid var(--primary-color);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.service-cart-btn-list:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.service-cart-btn-list.in-cart {
  background: var(--primary-color);
  color: white;
}

.service-cart-btn-list {
  position: relative;
}

.service-list-item.selected .service-cart-btn-list {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

.service-list-item.selected .service-cart-btn-list.in-cart {
  background: white;
  color: var(--primary-color);
}

/* ÉTAT INCOMPATIBLE - Liste view */
.service-list-item.incompatible {
  opacity: 0.6;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-secondary) 100%);
  position: relative;
  padding-left: 0.75rem;
  border-left: 4px solid #ef4444;
  cursor: not-allowed;
}

/* Badge "INCOMPATIBLE" - remplace le bouton panier */
.service-list-item.incompatible .service-cart-btn-list {
  width: auto;
  min-width: 120px;
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
  cursor: not-allowed;
  pointer-events: none;
}

/* Contrôles de quantité en mode classique - Vue liste */
.service-qty-controls-list {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.qty-btn-list-classic {
  background: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: all 0.15s ease;
  font-size: 0.7rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.qty-btn-list-classic:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.qty-btn-list-classic:active:not(:disabled) {
  transform: scale(0.95);
}

.qty-btn-list-classic:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value-list {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  user-select: none;
}

.service-list-item.incompatible .service-cart-btn-list::before {
  content: "INCOMPATIBLE";
}

.service-list-item.incompatible .service-cart-btn-list i {
  display: none;
}

/* Message explicatif - élément HTML ajouté dynamiquement */
.service-list-item .incompatible-message {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(220, 38, 38, 0.95);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9), rgba(254, 226, 226, 0.9));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  margin-top: 0.375rem;
  margin-left: 0.5rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════
   DROPDOWN PANIER
   ══════════════════════════════════════════════════════════════════════ */

/* Container du badge + dropdown */
.cart-badge-container {
  position: relative;
  flex-shrink: 0;
}

/* Dropdown panier */
.cart-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 0;
  overflow: hidden;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.cart-dropdown.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Header dropdown */
.cart-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-dropdown-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.cart-dropdown-close {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.cart-dropdown-close:hover {
  background: var(--bg-secondary);
  color: var(--text-color);
}

/* Body dropdown */
.cart-dropdown-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Panier vide */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  text-align: center;
}

.cart-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.3;
}

.cart-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* Cart item */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.cart-item:hover {
  background: var(--bg-secondary);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  margin: 0 0 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color, #ec4899);
  color: white;
  border-radius: 10px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 20px;
  flex-shrink: 0;
}

.cart-item-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-item-duration {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary-color);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 0.15rem 0.35rem;
}

.qty-btn {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.2s ease;
  font-size: 0.7rem;
}

.qty-btn:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-display {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-color);
}

.cart-item-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  background: #fee;
  border-color: #f55;
  color: #f55;
}

/* Footer dropdown */
.cart-dropdown-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.cart-dropdown-totals {
  margin-bottom: 0.75rem;
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.cart-total-line strong {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.cart-total-duration {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-dropdown-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-clear-cart {
  flex: 0 0 auto;
  background: white;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.btn-clear-cart:hover {
  background: #fee;
  border-color: #f55;
  color: #f55;
}

.btn-continue-cart {
  flex: 1;
  background: var(--primary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
}

.btn-continue-cart:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════
   TOGGLE DE VUE (Grille/Liste)
   ══════════════════════════════════════════════════════════════════════ */

.service-search-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.25rem;
  flex-shrink: 0;
}

.view-btn {
  background: none;
  border: none;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.view-btn:hover {
  background: var(--border-color);
  color: var(--text-color);
}

.view-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Badge panier multi-services */
.cart-badge {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.cart-badge.visible {
  display: flex !important;
}

.cart-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cart-badge i {
  font-size: 1.1rem;
}

.cart-badge-count {
  background: white;
  color: var(--primary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-badge-total {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Animation pulse */
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.cart-badge.pulse {
  animation: badgePulse 0.4s ease;
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .service-list-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .service-badge-star {
    grid-row: 1 / 3;
  }

  .service-name {
    grid-column: 2;
    grid-row: 1;
  }

  .service-details {
    grid-column: 2;
    grid-row: 2;
    gap: 0.75rem;
  }

  .btn-info-compact {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
  }

  .category-header {
    padding: 0.875rem 1rem;
  }

  .category-info {
    font-size: 0.95rem;
  }

  .search-input-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .service-price {
    font-size: 0.9rem;
  }

  .service-duration {
    font-size: 0.8rem;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .list-view-header {
    margin-bottom: 0.75rem;
  }

  .btn-toggle-all {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Recherche isolée sur une ligne (<480px) */
  .service-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    order: 1;
    min-width: 100%;
  }

  .search-input {
    padding: 0.5rem 2.5rem;
    font-size: 0.9rem;
    height: 38px;
  }

  .view-toggle {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .cart-badge-container {
    order: 3;
    flex: 0 0 auto;
  }

  /* Réduire légèrement les boutons sur très petit écran */
  .view-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  /* Badge panier mobile */
  .cart-badge {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .cart-badge i {
    font-size: 1rem;
  }

  /* Contrôles de quantité mobile - Vue carte */
  .booking-widget-container .service-qty-controls {
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    margin-top: 0.5rem;
  }

  .booking-widget-container .qty-btn-card {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }

  .booking-widget-container .qty-value-card {
    min-width: 24px;
    font-size: 0.85rem;
  }

  /* Contrôles de quantité mobile - Vue liste */
  .service-qty-controls-list {
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
  }

  .qty-btn-list-classic {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }

  .qty-value-list {
    min-width: 24px;
    font-size: 0.85rem;
  }

  .cart-badge-count {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .cart-badge-total {
    font-size: 0.95rem;
  }

  /* Vue liste : layout mobile pro */
  .service-list-item {
    position: relative;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
  }

  /* Bouton + fixe en haut à droite */
  .service-cart-btn-list {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  /* Bloc nom avec étoile inline */
  .service-badge-star {
    display: inline-block;
    vertical-align: top;
    margin-right: 0.5rem;
  }

  .service-name {
    display: inline;
    text-align: left !important;
  }

  /* Bloc détails en dessous avec bouton info à côté */
  .service-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  /* Cacher le bouton info original */
  .btn-info-compact {
    display: none;
  }

  /* Bouton info mobile à côté de la durée */
  .btn-info-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: white;
    color: #6c757d;
    font-size: 0.75rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.5rem;
    padding: 0;
  }

  .btn-info-mobile:hover {
    background: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    color: white;
  }

  /* Message incompatible - Ultra compact et élégant pour mobile */
  .incompatible-message {
    display: inline-block;
    margin-top: 0.3rem;
    margin-left: 0;
    font-size: 0.5625rem;
    padding: 0.2rem 0.45rem;
    max-width: calc(100% - 3.5rem);
    line-height: 1.2;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.85), rgba(254, 226, 226, 0.85));
    border: 1px solid rgba(220, 38, 38, 0.12);
    font-weight: 500;
  }

  .incompatible-message i {
    display: none !important; /* Cacher l'icône sur mobile pour gagner de la place */
  }

  .incompatible-message span {
    display: inline;
    white-space: normal;
    word-break: break-word;
  }

  /* Positionner le message en dessous du nom, pas à côté */
  .service-list-item .service-name {
    display: block !important;
    margin-bottom: 0.2rem;
  }

  /* Badge incompatible - Responsive pour cards */
  .booking-widget-container .service-card .incompatible-badge {
    top: 0.625rem;
    right: 0.625rem;
    padding: 0.3rem 0.625rem;
    font-size: 0.625rem;
    border-radius: 16px;
  }

  /* Message explicatif card - Responsive */
  .booking-widget-container .service-card.incompatible::after {
    bottom: 0.625rem;
    left: 0.625rem;
    right: 0.625rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.625rem;
  }

  .service-list-item.incompatible .service-details {
    display: none;
  }

  /* Cacher le bouton INCOMPATIBLE en vue liste, garder seulement le texte */
  .service-list-item.incompatible .service-cart-btn-list {
    display: none;
  }

  /* Boutons panier sur cards mobile */
  .service-card-actions {
    gap: 0.35rem;
  }

  .service-info-btn {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  .service-cart-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Bouton panier liste mobile */
  .service-cart-btn-list {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

/* Dark mode pour vue liste */
[data-theme="dark"] .category-accordion {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .category-accordion:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
}
