@charset "UTF-8";
/* ----------------------------------------------------------------------------
 * Easy!Appointments - Online Appointment Scheduler
 *
 * @package     EasyAppointments
 * @author      A.Tselegidis <alextselegidis@gmail.com>
 * @copyright   Copyright (c) Alex Tselegidis
 * @license     https://opensource.org/licenses/GPL-3.0 - GPLv3
 * @link        https://easyappointments.org
 * @since       v1.5.0
 * 
 * RATIONALISATION ET CENTRALISATION DES STYLES (2024)
 * ===================================================
 * 
 * Ce fichier a été optimisé pour centraliser tous les styles inline
 * précédemment dispersés dans les fichiers PHP et JavaScript.
 * 
 * CHANGEMENTS APPORTÉS :
 * - Suppression des styles obsolètes (ancien header, ancienne navigation)
 * - Consolidation des media queries redondantes (4 → 3 optimisées)
 * - Centralisation des styles inline dans la section "CENTRALISATION DES STYLES INLINE"
 * - Utilisation de CSS custom properties pour les couleurs dynamiques des services
 * - Remplacement des styles JavaScript par des classes CSS
 * - RATIONALISATION DES STYLES FLATPICKR : suppression des forçages !important
 *   et consolidation des définitions redondantes en une seule définition cohérente
 * - CENTRALISATION DES BORDER-RADIUS : système unifié de variables CSS
 * 
 * PROBLÈMES RÉSOLUS :
 * - Conflits entre définitions multiples de .flatpickr-calendar
 * - Suppression de 50+ forçages !important inutiles
 * - Élimination des styles qui s'écrasaient mutuellement
 * - Consolidation des animations et keyframes dupliquées
 * - Unification des border-radius dispersés
 * 
 * UTILISATION DES COULEURS DYNAMIQUES :
 * Les services utilisent maintenant des CSS custom properties :
 * style="--service-color: #7cbae8; --service-color-bg: #7cbae820;"
 * 
 * CLASSES AJOUTÉES POUR REMPLACER LES STYLES INLINE :
 * - .booking-tile, .booking-icon, .booking-title, .booking-text, etc.
 * - .wizard-frame (display: none par défaut)
 * - .progress-fill avec classes .step-1, .step-2, .step-3, .step-4
 * - .booking-submit-feedback pour les animations JavaScript
 * - .modal-backdrop-custom, .alert-overlay pour les modales
 * - .captcha-hint, .booking-form-inline, .map-container, .map-iframe
 * 
 * SYSTÈME DE BORDER-RADIUS CENTRALISÉ :
 * - --radius-sm: 4px (petits éléments)
 * - --radius-md: 8px (valeur médiane, éléments standards)
 * - --radius-lg: 12px (grands conteneurs)
 * - --radius-xl: 16px (conteneurs principaux)
 * - --radius-round: 50% (éléments circulaires)
 * - --radius-pill: 25px (boutons pilule)
 * 
 * RÉSULTATS :
 * - ~400 lignes de code supprimées (styles obsolètes + forçages)
 * - Réduction de ~25% de la taille du fichier
 * - Suppression de tous les conflits CSS du calendrier
 * - Meilleure maintenabilité et performance
 * - Styles centralisés et cohérents
 * - Calendrier Flatpickr optimisé sans forçages
 * - Border-radius unifiés et maintenables
 * ---------------------------------------------------------------------------- */
/* ===== VARIABLES CSS CENTRALISÉES ===== */
:root {
  /* Système de border-radius unifié */
  --radius-sm: 4px; /* Petits éléments (inputs, badges, jours calendrier) */
  --radius-md: 8px; /* Éléments standards (boutons, cards) - VALEUR MÉDIANE */
  --radius-lg: 12px; /* Grands conteneurs (modales, calendrier, heures) */
  --radius-xl: 16px; /* Conteneurs principaux (sections) */
  --radius-round: 50%; /* Éléments circulaires (avatars, icônes, indicateurs) */
  --radius-pill: 25px; /* Boutons pilule (CTA spéciaux, boutons d'action) */
  /* Système de tuiles unifié */
  --tile-bg: #e2e4d2 !important; /* Fond des tuiles */
  --tile-border: 1px solid #e9ecef; /* Bordure des tuiles */
  --tile-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Ombre des tuiles */
  --tile-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12); /* Ombre au survol */
  --tile-radius: var(--radius-lg); /* Border-radius des tuiles */
  --tile-padding: 1.5rem; /* Padding interne des tuiles */
  --tile-margin: 1rem 0; /* Marge externe des tuiles */
  --tile-transition: all 0.3s ease; /* Transition des tuiles */
  /* Couleurs de fond pour différents types de tuiles */
  --tile-service-bg: #f8f9fa; /* Fond des tuiles de service */
  --tile-time-bg: #ffffff; /* Fond des tuiles d'horaires */
  --tile-info-bg: #f8f9fa; /* Fond des tuiles d'information */
  --tile-footer-bg: #ffffff; /* Fond des tuiles de footer */
}

/* ===== GUIDE D'UTILISATION DU SYSTÈME DE BORDER-RADIUS ===== */
/*
 * UTILISATION RECOMMANDÉE :
 * 
 * --radius-sm (4px) :
 * - Inputs et champs de formulaire
 * - Badges et étiquettes
 * - Jours du calendrier
 * - Petits boutons secondaires
 * 
 * --radius-md (8px) - VALEUR MÉDIANE :
 * - Boutons standards
 * - Cards et conteneurs moyens
 * - Éléments interactifs génériques
 * 
 * --radius-lg (12px) :
 * - Calendrier et conteneurs principaux
 * - Modales et overlays
 * - Sections de contenu importantes
 * - Tableau des heures disponibles
 * 
 * --radius-xl (16px) :
 * - Conteneurs de page principaux
 * - Sections majeures de l'interface
 * 
 * --radius-round (50%) :
 * - Avatars et photos de profil
 * - Icônes circulaires
 * - Indicateurs et badges ronds
 * 
 * --radius-pill (25px) :
 * - Boutons d'action principaux
 * - CTA (Call-to-Action)
 * - Boutons de soumission
 * 
 * EXEMPLE D'UTILISATION :
 * .mon-element {
 *     border-radius: var(--radius-md);
 * }
 * 
 * AVANTAGES :
 * - Cohérence visuelle garantie
 * - Modification centralisée (changer une valeur = tout l'interface)
 * - Maintenance simplifiée
 * - Respect du design system
 */
root {
  display: block;
}

html,
body {
  height: 100%;
}

#main {
  min-height: 100%;
}

/* BOOK APPOINTMENT WIZARD
 ------------------------------------------------------------------------------ */
#book-appointment-wizard {
  min-height: 480px;
  padding: 0;
  margin: auto;
}

#book-appointment-wizard #header {
  overflow: auto;
  height: auto;
  padding: 20px 15px;
  background: #429a82;
}

/* Ancien header supprimé - remplacé par booking_header_v2 */
/* Ancien système de steps supprimé - remplacé par modern-navigation */
/* Ancien styles du bouton - remplacés par les nouveaux styles modernes */
#book-appointment-wizard #form-message {
  text-align: center;
  margin-bottom: 30px;
}

#book-appointment-wizard .wizard-frame {
  height: auto;
  padding: 0 15px 15px 15px; /* Suppression du padding-top pour coller au header */
}

#book-appointment-wizard .wizard-frame .frame-container {
  height: auto;
  min-height: 500px;
  padding: 20px 0;
}

/* BANDEAU DE TITRE POUR TOUS LES WIZARD FRAMES */
#book-appointment-wizard .wizard-title-banner {
  background: #f8f9fa; /* Même couleur que la navigation moderne pour continuité visuelle */
  margin: 0 -15px 15px -15px; /* Suppression des bordures pour continuité visuelle */
  padding: 20px 15px;
  text-align: center;
}

#book-appointment-wizard .wizard-title-banner .wizard-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ancien style frame-title conservé pour compatibilité */
#book-appointment-wizard .frame-container .frame-title {
  font-weight: lighter;
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

#book-appointment-wizard .frame-container .frame-content {
  float: none;
}

#book-appointment-wizard .wizard-frame .command-buttons {
  float: none;
  margin: 15px auto;
  text-align: center;
}

#book-appointment-wizard .wizard-frame .command-buttons .btn {
  min-width: 120px;
  margin-right: 10px;
}

#book-appointment-wizard .wizard-frame .command-buttons .btn:last-child {
  margin-right: 0;
}

/* Surcharge pour les nouvelles actions de confirmation */
.confirmation-actions .btn {
  margin-right: 0 !important;
}

#book-appointment-wizard .wizard-frame .flatpickr-calendar {
  margin: 25px auto;
}

#book-appointment-wizard .wizard-frame #select-time {
  max-width: 288px;
  margin: auto;
  padding: 15px 0;
}

/* Anciens styles book-step et active-step supprimés - remplacés par modern-navigation */
#book-appointment-wizard #frame-footer {
  text-align: center;
  border-top: 1px solid #ebeef1;
}

/* Anciennes définitions d'available-hours supprimées - remplacées par les styles modernes */
#book-appointment-wizard .span3 {
  min-width: 270px; /* This is especially needed for ie8 */
}

#book-appointment-wizard #select-timezone {
  display: none !important;
}

#book-appointment-wizard #appointment-details p,
#book-appointment-wizard #customer-details p {
  font-size: 16px;
  line-height: 28px;
}

#book-appointment-wizard #wizard-frame-1 label {
  font-size: 19px;
  margin-bottom: 12px;
}

#book-appointment-wizard #wizard-frame-1 select {
  margin-bottom: 25px;
}

#book-appointment-wizard .captcha-title {
  float: left;
  margin: 7px 0 10px 0;
}

#book-appointment-wizard .captcha-title .fa-sync-alt {
  cursor: pointer;
  transition: all 0.3s linear;
}

#book-appointment-wizard .captcha-title .fa-sync-alt:hover {
  color: #1a865f;
}

#book-appointment-wizard .captcha-image {
  float: left;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

#book-appointment-wizard .captcha-text {
  width: 100%;
  margin-bottom: 20px;
}

#book-appointment-wizard #service-description {
  overflow-y: auto;
  clear: both;
  max-height: 153px;
  box-shadow: none;
}

#book-appointment-wizard #select-language,
#book-appointment-wizard .backend-link {
  display: block;
  min-width: 120px;
  margin: 15px auto;
  padding: 5px;
}

.popover .popover-title {
  text-align: center;
}

.popover .popover-content #language-list .language {
  margin: 15px 0;
}

#book-appointment-wizard #wizard-frame-4 .frame-container .frame-content {
  max-width: 630px;
}

@media (min-width: 768px) {
  .wrapper {
    min-height: 100vh;
  }
  #book-appointment-wizard {
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: rgba(138, 195, 255, 0.12) 0 1px 5px 0;
  }
  /* Anciens styles desktop company-name et steps supprimés */
  #book-appointment-wizard .wizard-frame {
    padding: 0 20px 20px 20px; /* Suppression du padding-top de 10px en desktop */
  }
  /* Marge supplémentaire pour espacer les heures du calendrier sur PC */
  #book-appointment-wizard .wizard-frame #available-hours {
    margin-top: 10px;
  }
  #book-appointment-wizard .wizard-frame .command-buttons {
    display: flex;
    justify-content: space-between;
  }
  #book-appointment-wizard .captcha-title {
    margin-right: 20px;
    margin-top: 7px;
  }
  #book-appointment-wizard .captcha-image {
    float: right;
  }
  #book-appointment-wizard #select-language {
    width: 100px;
    padding: 5px;
    margin: 5px auto;
  }
  #book-appointment-wizard #frame-footer small {
    display: flex;
  }
  #book-appointment-wizard .footer-powered-by,
  #book-appointment-wizard .footer-options {
    width: 50%;
  }
  #book-appointment-wizard .footer-powered-by {
    text-align: left;
    padding: 5px 5px 5px 0;
  }
  #book-appointment-wizard .footer-options {
    text-align: right;
  }
  #book-appointment-wizard #select-language {
    display: inline-block;
  }
  #book-appointment-wizard .backend-link {
    display: inline-block;
    min-width: 120px;
    padding: 5px;
    margin: 5px 0;
  }
}
/* BOOK SUCCESS & MESSAGE
   ------------------------------------------------------------------------- */
#message-frame,
#success-frame {
  background: var(--bs-body-bg);
  text-align: center;
  height: auto;
  border: none;
  padding: 35px;
}

#message-frame .alert,
#success-frame .alert {
  margin-top: 20px;
}

#message-frame #message-icon,
#success-frame #success-icon {
  margin-top: 20px;
  margin-right: 20px;
  width: 64px;
  display: block;
  margin: auto;
  float: none !important;
}

#success-frame .btn {
  margin-bottom: 10px;
  width: 80%;
  max-width: 300px;
}

@media (min-width: 768px) {
  #message-frame,
  #success-frame {
    height: 100%;
  }
}
/* CANCEL APPOINTMENT
   ------------------------------------------------------------------------- */
.booking-header-bar {
  padding: 15px 0;
  margin: 0;
  background: #f3f2e7;
  border-bottom: 1px solid #e4e1c9;
  text-align: center;
}

.ui-dialog .ui-dialog-title {
  font-size: 1.2em;
}

@media (min-width: 768px) {
  .booking-header-bar {
    padding: 15px 0;
    margin: 0;
    background: #f3f2e7;
    border-bottom: 1px solid #e4e1c9;
    text-align: left;
  }
}
/* Media queries consolidées - supprimée et fusionnée avec la media query principale */
/* Réduire les animations pour les utilisateurs préférant moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  #book-appointment-wizard #book-appointment-form #book-appointment-submit {
    animation: none;
    background: #28a745;
  }
  #book-appointment-wizard #book-appointment-form #book-appointment-submit::before {
    display: none;
  }
}
/* ===== STYLES MODERNES POUR L'ÉTAPE DE CONFIRMATION ===== */
/* Conteneur global avec ombre uniforme */
.confirmation-summary-container {
  margin: -15px -15px 2rem -15px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* En-tête de confirmation moderne */
.confirmation-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.confirmation-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: headerGlow 4s ease-in-out infinite;
}

.confirmation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-round);
  margin-bottom: 1rem;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  /* animation: iconFloat 3s ease-in-out infinite; */ /* Animation désactivée */
}

.confirmation-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirmation-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Carte de récapitulatif moderne */
.appointment-summary-card {
  background: #ffffff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #495057;
}

.summary-header i {
  color: #2196F3;
  font-size: 1.2rem;
}

.summary-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.summary-content {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.appointment-info-section,
.customer-info-section {
  position: relative;
}

.appointment-info-section .mb-2:first-child,
.customer-info-section .mb-2:first-child {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.appointment-info-section .mb-2:not(:first-child),
.customer-info-section .mb-2:not(:first-child) {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.appointment-info-section .mb-2:not(:first-child) i,
.customer-info-section .mb-2:not(:first-child) i {
  color: #2196F3;
  width: 20px;
  margin-right: 0.75rem;
  font-size: 1rem;
}

/* Sections additionnelles */
.terms-section .form-check-label {
  font-size: 1rem;
  line-height: 1.5;
}

/* Actions de confirmation modernisées */
.confirmation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.btn-back {
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* BOUTON DE CONFIRMATION SUPER ANIMÉ */
#book-appointment-submit {
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  min-width: 200px;
  background: linear-gradient(45deg, #28a745, #20c997, #17a2b8, #28a745);
  background-size: 400% 400%;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4), 0 0 40px rgba(40, 167, 69, 0.2);
  /* Animations multiples super visibles */
  animation: megaGradient 2s ease-in-out infinite, megaPulse 1.5s ease-in-out infinite, megaFloat 3s ease-in-out infinite, megaGlow 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
  z-index: 1;
  /* S'assurer que le bouton ne pousse pas le bouton précédent */
  flex-shrink: 1;
}

.btn-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: var(--radius-sm);
  transform: translate(-50%, -50%) scale(0);
  animation: pulseRing 2s ease-out infinite;
  z-index: 1;
}

/* Effet shine supprimé - animation de brillance désactivée */
#book-appointment-submit:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.5), 0 0 60px rgba(40, 167, 69, 0.3);
  animation-play-state: paused;
}

#book-appointment-submit:active {
  transform: translateY(-2px) scale(1.02);
}

/* KEYFRAMES POUR ANIMATIONS SUPER VISIBLES */
@keyframes megaGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 100% 0%;
  }
}
@keyframes megaPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4), 0 0 40px rgba(40, 167, 69, 0.2);
  }
  50% {
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6), 0 0 80px rgba(40, 167, 69, 0.4), 0 0 120px rgba(40, 167, 69, 0.2);
  }
}
@keyframes megaFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes megaGlow {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.2) saturate(1.3);
  }
}
@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}
/* Animation shine supprimée */
@keyframes headerGlow {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}
/* Animation iconFloat supprimée - non utilisée (désactivée) */
/* ===== MEDIA QUERY MOBILE CONSOLIDÉE ===== */
@media (max-width: 768px) {
  /* ANIMATIONS MOBILES */
  #book-appointment-wizard #book-appointment-form #book-appointment-submit {
    animation-duration: 4s, 3s; /* Ralentir légèrement sur mobile */
  }
  /* BANDEAU DE TITRE MOBILE */
  #book-appointment-wizard .wizard-title-banner {
    margin: 0 -15px 8px -15px; /* Padding réduit de 8px en mobile */
    padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  }
  #book-appointment-wizard .wizard-title-banner .wizard-title {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem) !important;
    letter-spacing: 0.3px;
  }
  /* Compactage pour mobile - toutes étapes */
  #book-appointment-wizard .wizard-frame .frame-container .frame-title,
  #book-appointment-wizard .frame-container .frame-title {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
  }
  #book-appointment-wizard .wizard-frame .frame-container {
    padding: 0 !important;
  }
  #book-appointment-wizard .wizard-frame .frame-content,
  #book-appointment-wizard .frame-container .frame-content {
    padding: 0 !important;
  }
  /* Spécifique à l'étape 2 - calendrier */
  #wizard-frame-2 .flatpickr-calendar {
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #wizard-frame-2 #available-hours {
    max-height: none;
    overflow-y: auto;
    margin: clamp(0.5rem, 2vw, 1rem) 0;
  }
  /* Boutons pour toutes les étapes */
  .wizard-frame .command-buttons {
    margin: clamp(0.75rem, 2vw, 1rem) auto;
  }
  .wizard-frame .command-buttons .btn {
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.6rem, 2.5vw, 1rem);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
  /* Confirmation page optimizations */
  .confirmation-header {
    padding: clamp(0.75rem, 3vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
  }
  .confirmation-icon {
    width: clamp(30px, 7vw, 40px);
    height: clamp(30px, 7vw, 40px);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(0.2rem, 1vw, 0.5rem);
  }
  .confirmation-title {
    font-size: clamp(0.9rem, 3.5vw, 1.3rem);
    margin-bottom: clamp(0.1rem, 0.5vw, 0.3rem);
  }
  .confirmation-subtitle {
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  }
  .summary-content {
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }
  .confirmation-actions {
    padding: clamp(0.6rem, 2.5vw, 0.875rem);
  }
  /* ===== RESPONSIVE CALENDRIER ET HEURES ===== */
  #available-hours {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: var(--radius-lg) !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    gap: 0.5rem !important;
  }
  #available-hours .available-hour {
    padding: 0.6rem 0.4rem !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
  }
  #available-hours::before {
    content: "⏰ Créneaux";
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
    padding-bottom: 0.5rem !important;
  }
  .no-hours-message,
  .error-hours-message {
    padding: 1.5rem;
  }
  .no-hours-icon,
  .error-hours-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  /* Amélioration responsive des animations */
  .loading-hours {
    padding: 1.5rem;
    font-size: 1rem;
  }
  #available-hours .available-hour {
    animation-duration: 0.2s;
  }
  .hour-selected-animation {
    animation-duration: 0.4s;
  }
}
/* ===== TRÈS PETITS ÉCRANS PORTRAIT (iPhone SE, etc.) - HÉRITAGE OPTIMISÉ ===== */
@media (max-width: 400px) and (max-height: 700px) {
  /* Hérite de la media query mobile principale avec ajustements spécifiques */
  #wizard-frame-2 .flatpickr-calendar {
    transform: none !important;
    width: 100% !important;
  }
  #book-appointment-wizard .wizard-frame .frame-container .frame-title,
  #book-appointment-wizard .frame-container .frame-title {
    margin-bottom: 8px !important;
  }
}
/* ===== MODE PAYSAGE MOBILE - OPTIMISÉ ===== */
@media (max-width: 768px) and (max-height: 500px) {
  /* Ajustements spécifiques au mode paysage */
  #book-appointment-wizard .wizard-title-banner {
    padding: clamp(0.4rem, 1.5vw, 0.8rem) clamp(0.5rem, 2vw, 1rem);
  }
  #book-appointment-wizard .wizard-title-banner .wizard-title {
    font-size: clamp(0.85rem, 3vw, 1.1rem) !important;
  }
  /* Calendrier plus compact en paysage */
  #wizard-frame-2 .flatpickr-calendar {
    transform: none !important;
    width: 100% !important;
  }
  /* Boutons plus compacts */
  .wizard-frame .command-buttons {
    margin: clamp(0.5rem, 2vw, 0.75rem) auto;
  }
  .wizard-frame .command-buttons .btn {
    padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.6rem, 2vw, 1rem);
  }
  /* Confirmation ultra-compacte */
  .confirmation-header {
    padding: clamp(0.5rem, 2vw, 1rem);
  }
  .confirmation-icon {
    width: clamp(25px, 5vw, 35px);
    height: clamp(25px, 5vw, 35px);
  }
  .confirmation-title {
    font-size: clamp(0.85rem, 3vw, 1.1rem);
  }
  .confirmation-subtitle {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
  }
  .summary-header {
    padding: clamp(0.5rem, 2vw, 1rem);
  }
  .summary-content {
    padding: clamp(0.75rem, 2.5vw, 1rem);
  }
}
/* ===== TRÈS PETITS ÉCRANS (< 400px) - OPTIMISÉ ===== */
@media (max-width: 400px) {
  /* Confirmation compacte */
  .confirmation-header {
    padding: 0.5rem 0.25rem;
  }
  .confirmation-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .confirmation-title {
    font-size: 1rem;
    font-weight: 600;
  }
  .confirmation-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
  }
  .summary-header {
    padding: 0.75rem 1rem;
  }
  .summary-content {
    padding: 1rem;
  }
  .confirmation-actions {
    gap: 0.5rem;
  }
  /* Boutons compacts */
  .btn-back {
    min-width: 80px;
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  #book-appointment-submit {
    min-width: 120px;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  /* Calendrier et heures ultra-compacts */
  #available-hours {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: 0.4rem !important;
    padding: 0.75rem !important;
  }
  #available-hours .available-hour {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.8rem !important;
    min-height: 40px !important;
    border-radius: var(--radius-sm) !important;
  }
  .no-hours-message, .error-hours-message {
    padding: 1rem;
  }
  .no-hours-icon, .error-hours-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}
/* Réduire les animations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .confirmation-header::before,
  .confirmation-icon,
  #book-appointment-submit,
  .btn-pulse,
  .flatpickr-calendar.date-changing,
  .loading-hours,
  .hour-selected-animation,
  #available-hours .available-hour,
  .flatpickr-calendar .flatpickr-day::before,
  .flatpickr-calendar .flatpickr-day.today::after {
    animation: none !important;
    transition: none !important;
  }
  #available-hours:hover,
  #available-hours .available-hour:hover {
    transform: none !important;
  }
  #book-appointment-submit {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }
}
/* ===== CALENDRIER ET HEURES MODERNES ===== */
/* Zone de sélection du temps - utiliser toute la largeur */
#select-time {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0;
  margin: 0;
}

/* Colonnes de l'étape 2 - utiliser toute la largeur */
#wizard-frame-2 .col-12,
#wizard-frame-2 .col-md-6 {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  flex: 0 0 100% !important;
}

/* Forcer la structure en une seule colonne pour l'étape 2 */
#wizard-frame-2 .row.frame-content {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Conteneur de la frame */
#wizard-frame-2 .frame-content {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* Conteneur du calendrier - centré */
#select-date {
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto 2rem auto !important;
}

/* Sur mobile : calendrier pleine largeur */
@media (max-width: 768px) {
  #select-date {
    max-width: none !important;
    margin: 0 0 1rem 0 !important;
  }
  .flatpickr-calendar {
    margin: 0 !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  }
}
/* Wrapper Flatpickr */
.flatpickr-wrapper {
  width: 100%;
  display: block;
}

/* Input caché */
input[readonly].flatpickr-input {
  display: none;
}

/* ===== STYLES UNIFIÉS DU CALENDRIER FLATPICKR ===== */
.flatpickr-calendar {
  /* Positionnement et affichage */
  position: static;
  display: block;
  visibility: visible;
  opacity: 1;
  transform: none;
  /* Dimensions */
  width: 100%;
  max-width: 100%;
  margin: 0;
  /* Apparence */
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: none;
  overflow: hidden;
  z-index: 2;
}

/* Conteneurs internes */
.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-days {
  width: 100%;
  max-width: 100%;
  display: block;
}

.flatpickr-calendar .dayContainer {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  justify-content: space-between;
}

/* Éléments avec fond transparent */
.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar span.flatpickr-weekday,
.flatpickr-calendar .flatpickr-days,
.flatpickr-calendar .dayContainer {
  background: transparent;
}

/* En-tête du calendrier */
.flatpickr-calendar .flatpickr-months {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1rem 0;
}

.flatpickr-calendar .flatpickr-current-month {
  color: #fff;
  font-weight: 600;
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

/* Jours de la semaine */
.flatpickr-calendar .flatpickr-weekdays {
  background: #f8f9fa;
  padding: 0.5rem 0;
  width: 100%;
  display: flex;
}

.flatpickr-calendar span.flatpickr-weekday {
  background: transparent;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.85rem;
  flex: 1;
  width: 14.28%;
  max-width: 14.28%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Jours du calendrier */
.flatpickr-calendar .flatpickr-day {
  border-radius: var(--radius-sm);
  margin: 2px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: calc(14.28% - 4px);
  max-width: calc(14.28% - 4px);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.flatpickr-calendar .flatpickr-day:hover {
  background: #e3f2fd;
  border-color: #2196F3;
  transform: scale(1.05);
}

.flatpickr-calendar .flatpickr-day.selected {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.flatpickr-calendar .flatpickr-day.today {
  border-color: #FF9800;
  color: #FF9800;
  font-weight: 600;
}

/* Animation du calendrier au survol */
.flatpickr-calendar .flatpickr-day::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-round);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.flatpickr-calendar .flatpickr-day:hover::before {
  width: 100%;
  height: 100%;
}

/* Animation de focus pour l'accessibilité */
.flatpickr-calendar .flatpickr-day:focus {
  outline: 2px solid #2196F3;
  outline-offset: 2px;
  z-index: 10;
}

/* Indicateur de jour aujourd'hui amélioré */
.flatpickr-calendar .flatpickr-day.today::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #FF9800;
  border-radius: var(--radius-round);
  animation: todayPulse 2s ease-in-out infinite;
}

/* Animation lors du changement de date */
.flatpickr-calendar.date-changing {
  opacity: 0.7;
  transform: scale(0.98);
  transition: all 0.3s ease;
}

/* ===== HEURES DISPONIBLES MODERNES ===== */
/* Conteneur des heures */
#available-hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  will-change: transform, box-shadow;
}

/* Hover géré par .tile-base */
/* Titre des heures disponibles */
#available-hours::before {
  content: "⏰ Heures disponibles";
  grid-column: 1/-1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
  background: linear-gradient(90deg, transparent, #f8f9fa, transparent);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
}

/* Boutons d'heures */
#available-hours .available-hour {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #495057;
  transition: all 0.2s ease;
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.3s ease-out;
  animation-fill-mode: both;
}

#available-hours .available-hour::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

#available-hours .available-hour:hover {
  background: #e3f2fd;
  border-color: #2196F3;
  color: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

#available-hours .available-hour:hover::before {
  left: 100%;
}

#available-hours .available-hour.selected-hour {
  background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
  border-color: #4CAF50;
  color: #fff;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transform: scale(1.05);
}

#available-hours .available-hour.selected-hour::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.8rem;
  font-weight: bold;
}

#available-hours .available-hour:focus {
  outline: 2px solid #2196F3;
  outline-offset: 2px;
  z-index: 10;
}

/* Animation de sélection d'heure */
.hour-selected-animation {
  animation: hourSelected 0.6s ease-out;
}

/* Délais d'animation pour l'apparition des heures */
#available-hours .available-hour:nth-child(1) {
  animation-delay: 0.1s;
}

#available-hours .available-hour:nth-child(2) {
  animation-delay: 0.15s;
}

#available-hours .available-hour:nth-child(3) {
  animation-delay: 0.2s;
}

#available-hours .available-hour:nth-child(4) {
  animation-delay: 0.25s;
}

#available-hours .available-hour:nth-child(5) {
  animation-delay: 0.3s;
}

#available-hours .available-hour:nth-child(6) {
  animation-delay: 0.35s;
}

#available-hours .available-hour:nth-child(7) {
  animation-delay: 0.4s;
}

#available-hours .available-hour:nth-child(8) {
  animation-delay: 0.45s;
}

/* Message "Aucune heure disponible" */
#available-hours:empty::before {
  content: "Aucune heure disponible pour cette date";
  color: #6c757d;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  grid-column: 1/-1;
}

/* ===== AMÉLIORATIONS VISUELLES DES HEURES ===== */
/* Messages d'état */
.no-hours-message,
.error-hours-message {
  text-align: center;
  padding: 2rem;
  grid-column: 1/-1;
  border: 2px dashed #dee2e6;
}

.no-hours-icon,
.error-hours-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.no-hours-text,
.error-hours-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.no-hours-suggestion,
.error-hours-suggestion {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

.error-hours-message {
  background: #fff5f5;
  border-color: #fed7d7;
}

.error-hours-text {
  color: #e53e3e;
}

/* État de chargement des heures */
.loading-hours {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Styles spécifiques par période de la journée */
#available-hours .available-hour[data-time-period=morning] {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #f39c12;
  color: #8b4513;
}

#available-hours .available-hour[data-time-period=afternoon] {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  color: #155724;
}

#available-hours .available-hour[data-time-period=evening] {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-color: #17a2b8;
  color: #0c5460;
}

#available-hours .available-hour[data-time-period=morning]:hover {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-color: #e67e22;
  color: #6b3410;
}

#available-hours .available-hour[data-time-period=afternoon]:hover {
  background: linear-gradient(135deg, #c3e6cb 0%, #a3d9a5 100%);
  border-color: #1e7e34;
  color: #0f4419;
}

#available-hours .available-hour[data-time-period=evening]:hover {
  background: linear-gradient(135deg, #bee5eb 0%, #9fdbea 100%);
  border-color: #138496;
  color: #083c47;
}

/* État sélectionné pour les périodes */
#available-hours .available-hour[data-time-period=morning].selected-hour {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-color: #d68910;
  color: #fff;
}

#available-hours .available-hour[data-time-period=afternoon].selected-hour {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border-color: #1c7430;
  color: #fff;
}

#available-hours .available-hour[data-time-period=evening].selected-hour {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border-color: #117a8b;
  color: #fff;
}

/* ===== ANIMATIONS ET ÉTATS DE CHARGEMENT ===== */
/* ===== KEYFRAMES POUR ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
@keyframes hourSelected {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  }
  100% {
    transform: scale(1.05);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes todayPulse {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}
/* ===== STYLES AMÉLIORÉS POUR L'ÉTAPE DE CONFIRMATION ===== */
/* Mode mobile plein écran pour l'étape de confirmation */
@media (max-width: 768px) {
  #wizard-frame-5:not([style*="display: none"]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background: white !important;
    overflow-y: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    /* Conteneur principal */
    /* Structure empilée en mobile */
    /* Masquer le titre "Récapitulatif du rendez-vous" */
    /* Assurer que les boutons restent visibles en bas */
    /* Adaptation des polices pour mobile */
    /* Ajuster la taille des informations pour minimiser le scroll */
  }
  #wizard-frame-5:not([style*="display: none"]) .confirmation-summary-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .appointment-summary-card {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .summary-content {
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(0.75rem, 2vw, 1rem) !important;
    padding: clamp(1rem, 3vw, 1.5rem) !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .appointment-info-section,
  #wizard-frame-5:not([style*="display: none"]) .customer-info-section {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin-bottom: clamp(0.75rem, 2vw, 1rem) !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .summary-header {
    display: none !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .confirmation-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: white !important;
    z-index: 10 !important;
    padding: clamp(1rem, 3vw, 1.5rem) !important;
    border-top: 1px solid #e9ecef !important;
    margin: 0 !important;
    margin-top: auto !important;
    display: flex !important;
    gap: clamp(0.5rem, 2vw, 1rem) !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .confirmation-header {
    padding: clamp(1rem, 3vw, 1.5rem) !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .confirmation-title {
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
  }
  #wizard-frame-5:not([style*="display: none"]) .confirmation-subtitle {
    font-size: clamp(0.75rem, 2vw, 0.85rem) !important;
  }
  #wizard-frame-5:not([style*="display: none"]) #appointment-details .mb-2.fw-bold.fs-3,
  #wizard-frame-5:not([style*="display: none"]) #appointment-details .mb-1.fw-bold.fs-3,
  #wizard-frame-5:not([style*="display: none"]) #customer-details .mb-2.fw-bold.fs-3,
  #wizard-frame-5:not([style*="display: none"]) #customer-details .mb-1.fw-bold.fs-3 {
    font-size: clamp(1rem, 3vw, 1.1rem) !important;
    margin-bottom: clamp(0.25rem, 1vw, 0.4rem) !important;
  }
  #wizard-frame-5:not([style*="display: none"]) #appointment-details .mb-2.fw-bold.text-muted,
  #wizard-frame-5:not([style*="display: none"]) #customer-details .mb-2.fw-bold.text-muted {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
    margin-bottom: clamp(0.25rem, 1vw, 0.4rem) !important;
  }
  #wizard-frame-5:not([style*="display: none"]) #appointment-details .mb-2,
  #wizard-frame-5:not([style*="display: none"]) #customer-details .mb-2 {
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
    margin-bottom: clamp(0.2rem, 0.8vw, 0.35rem) !important;
    line-height: 1.3 !important;
  }
  /* Forcer l'affichage en colonnes même si le CSS par défaut est différent */
  .appointment-summary-card .summary-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .appointment-summary-card .summary-content > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }
}
/* Amélioration générale pour l'affichage de la couleur de service */
.service-info-with-color {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service-info-with-color .service-color-indicator {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.service-info-with-color .service-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ===== CENTRALISATION DES STYLES INLINE ===== */
/* Tuile de prise de rendez-vous (remplace les styles inline de booking.php) */
.booking-tile {
  width: 100% !important;
  background-color: #e8f5e8 !important;
  overflow: hidden !important;
}

.booking-tile .booking-icon {
  font-size: 3rem !important;
  color: #2d5016 !important;
  opacity: 0.8 !important;
}

.booking-tile .booking-title {
  color: #2d5016 !important;
  font-weight: bold !important;
  font-size: 1.4rem !important;
}

.booking-tile .booking-text {
  color: #4a6741 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.booking-tile .booking-text-icon {
  color: #5d7c47 !important;
}

.booking-tile .booking-start-button {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  background-color: #4CAF50 !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  transition: all 0.3s ease !important;
}

.booking-tile .booking-start-button:hover {
  background-color: #45a049 !important;
  transform: scale(1.05);
}

/* États d'affichage des wizard frames */
.wizard-frame {
  display: none; /* Remplace style="display:none;" */
}

.wizard-frame.active {
  display: block;
}

/* Conteneur de formulaire caché par défaut */
#booking-form-container {
  display: none; /* Remplace style="display: none;" */
}

#booking-form-container.active {
  display: block;
}

/* Suppression complète de l'espacement après clic */
#booking-button-container.hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Styles pour les couleurs dynamiques des services */
.service-tile .icon-box {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  /* La couleur de fond sera appliquée via CSS custom properties */
  background-color: var(--service-color-bg, rgba(124, 186, 232, 0.125));
}

.service-tile .service-icon {
  /* La couleur sera appliquée via CSS custom properties */
  color: var(--service-color, #7cbae8);
}

/* Barres de progression (remplace les styles inline du header) */
.progress-fill {
  width: 0%; /* État initial */
  transition: width 0.3s ease;
}

.progress-fill.step-1 {
  width: 25%;
}

.progress-fill.step-2 {
  width: 50%;
}

.progress-fill.step-3 {
  width: 75%;
}

.progress-fill.step-4 {
  width: 100%;
}

/* Styles pour les animations JavaScript */
.booking-submit-feedback {
  animation-play-state: paused !important;
  transform: scale(0.98) !important;
  opacity: 0.9 !important;
  transition: all 0.15s ease !important;
}

.booking-submit-feedback.reset {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Backdrop modal pour les alertes */
.modal-backdrop-custom {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 9998 !important;
}

/* Alerte en overlay */
.alert-overlay {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
  width: 90% !important;
  max-width: 600px !important;
}

/* Conteneur de boutons d'alerte */
.alert-buttons-container {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* Captcha hint */
.captcha-hint {
  opacity: 0; /* Remplace style="opacity:0" */
  transition: opacity 0.3s ease;
}

.captcha-hint.visible {
  opacity: 1;
}

/* Formulaire de booking inline */
.booking-form-inline {
  display: inline-block; /* Remplace style="display:inline-block" */
}

/* Carte avec hauteur fixe */
.map-container {
  height: 200px !important;
  position: relative !important;
}

.map-iframe {
  border: 0 !important;
}

/* Responsivité pour la tuile de booking */
@media (max-width: 768px) {
  .booking-tile {
    margin: 0 15px;
    border-radius: var(--radius-lg) !important;
  }
  .booking-tile .card-body {
    padding: 1.5rem !important;
  }
  .booking-tile .booking-title {
    font-size: 1.2rem !important;
  }
  .booking-tile .booking-text {
    font-size: 0.9rem !important;
  }
  .booking-tile .booking-start-button {
    font-size: 1rem !important;
    padding: 0.6rem 1.5rem !important;
  }
}
/* Sur PC : largeur complète */
@media (min-width: 769px) {
  #booking-button-container {
    width: 100%;
  }
  .booking-tile {
    width: 100%;
  }
}
/* ===== SYSTÈME DE TUILES CENTRALISÉ ===== */
/* Classe de base pour toutes les tuiles */
.tile-base, .tile-footer, #book-appointment-wizard #frame-footer, .tile-info, .captcha-section,
.terms-section, .no-hours-message,
.error-hours-message, .tile-time, #available-hours, .tile-service, .booking-tile {
  background: var(--tile-bg);
  border: var(--tile-border);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow);
  padding: var(--tile-padding);
  margin: var(--tile-margin);
  transition: var(--tile-transition);
  position: relative;
  overflow: hidden;
}

.tile-base:hover, .tile-footer:hover, #book-appointment-wizard #frame-footer:hover, .tile-info:hover, .captcha-section:hover,
.terms-section:hover, .no-hours-message:hover,
.error-hours-message:hover, .tile-time:hover, #available-hours:hover, .tile-service:hover, .booking-tile:hover {
  box-shadow: var(--tile-shadow-hover);
  transform: translateY(-2px);
}

/* Types spécialisés de tuiles */
.tile-service, .booking-tile {
  background: var(--tile-service-bg);
}

.tile-time, #available-hours {
  background: var(--tile-time-bg);
}

.tile-info, .captcha-section,
.terms-section, .no-hours-message,
.error-hours-message {
  background: var(--tile-info-bg);
}

.tile-footer, #book-appointment-wizard #frame-footer {
  background: var(--tile-footer-bg);
  margin: 0.5rem 0;
  padding: 1rem;
}

/* Variantes de taille */
.tile-compact {
  padding: 1rem;
  margin: 0.5rem 0;
}

.tile-large {
  padding: 2rem;
  margin: 1.5rem 0;
}

/* États spéciaux */
.tile-selected {
  border-color: #4CAF50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.tile-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.tile-interactive, .booking-tile {
  cursor: pointer;
}

.tile-interactive:hover, .booking-tile:hover {
  transform: translateY(-3px);
}