/**
 * Restaurant House - Plugin de Réservation
 * Feuille de styles principale pour l'interface publique
 * 
 * @package RestaurantHouse
 * @version 1.0.0
 * @author Sysnot
 * @description Styles pour formulaire de réservation responsive avec thème luxueux
 * 
 * Structure du fichier :
 * 1. Import des polices et variables CSS
 * 2. Animations et keyframes
 * 3. Reset et styles de base
 * 4. Conteneurs principaux
 * 5. Header et navigation
 * 6. Étapes du formulaire
 * 7. Messages et notifications
 * 8. Cartes et grilles
 * 9. Calendrier
 * 10. Formulaires et champs
 * 11. Boutons et actions
 * 12. Loader et états de chargement
 * 13. Résumé de réservation
 * 14. Modales
 * 15. Design responsive
 * 16. Classes utilitaires
 * 17. États d'accessibilité
 */

/* ==========================================
 * 1. IMPORT DES POLICES & VARIABLES CSS
 * ==========================================
 */

/* Import Google Fonts - Polices optimisées pour le luxe */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');
/* Import du fichier de réduction de taille (peut être commenté pour désactiver) */
@import url('assets/scale-reduction.css');
/* Import des améliorations mobile et RGPD */
@import url('assets/mobile-improvements.css');


/* Variables CSS pour le thème luxueux restaurant */
:root {
    /* Couleurs principales */
    --rh-gold: #D9A05B;              /* Or principal pour éléments importants */
    --rh-gold-dark: #B98B4D;         /* Or foncé pour hover states */
    
    /* Backgrounds */
    --rh-bg-main: #111827;           /* Arrière-plan principal sombre */
    --rh-bg-card: #1F2937;           /* Arrière-plan des cartes */
    
    /* Textes */
    --rh-text-heading: #F1F5F9;      /* Texte des titres (blanc cassé) */
    --rh-text-body: #94A3B8;         /* Texte du corps (gris clair) */
    
    /* Bordures et séparateurs */
    --rh-border: #334155;            /* Bordures standard */
    
    /* États de validation */
    --rh-success: #16A34A;           /* Vert pour succès */
    --rh-error: #DC2626;             /* Rouge pour erreurs */
}

/* ==========================================
 * 2. ANIMATIONS ET KEYFRAMES
 * ==========================================
 */

/* Animation Aurora pour arrière-plan dynamique */
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animations pour les transitions d'éléments */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

/* Animation de rotation pour les loaders */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation bounce pour les éléments de célébration */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0) scaleY(1.1);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0) scaleY(1.05);
    }
    90% {
        transform: translate3d(0,-4px,0) scaleY(.95);
    }
}

/* ==========================================
 * 3. RESET ET STYLES DE BASE
 * ==========================================
 */

/* Conteneur principal - Base sécurisée */
.restaurant-house-booking {
    width: 100%;
    min-height: auto;
    padding: 1.5rem 1rem; /* Un peu plus d'espace vertical */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background-color: var(--rh-bg-main);
    font-family: 'Inter', sans-serif;
    color: var(--rh-text-body);
    margin: 1rem 0; /* Ajout d'une marge verticale sur mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* LIGNES AJOUTÉES POUR LE MOBILE */
    border-radius: 12px; /* Coins arrondis pour mobile */
    border: 1px solid var(--rh-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Arrière-plan animé avec effet Aurora */
.restaurant-house-booking::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(217, 160, 91, 0.1), transparent 70%), 
        radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1), transparent 70%);
    background-size: 200% 200%;
    animation: aurora 15s ease infinite;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* Box-sizing uniforme pour tous les éléments enfants */
.restaurant-house-booking * {
    box-sizing: border-box;
}

/* Typographie - Hiérarchie des titres */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--rh-text-heading);
    margin: 0;
}

/* ==========================================
 * 4. CONTENEURS PRINCIPAUX
 * ==========================================
 */

/* Wrapper principal du contenu */
.rh-content-wrapper {
    flex-grow: 1;
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================
 * 5. HEADER ET NAVIGATION
 * ==========================================
 */

/* Section header du formulaire */
.rh-header {
    text-align: center;
    margin-bottom: -3rem;
}

/* Titre principal */
.rh-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--rh-gold);
}

/* Sous-titre descriptif */
.rh-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--rh-text-heading);
}

/* Barre de progression des étapes */
.rh-progress-bar {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
    margin-top: -0.5rem;
}

/* Étape individuelle dans la progression */
.rh-progress-step {
    flex: 1;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Indicateur visuel de l'étape */
.rh-step-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rh-border);
    margin: 0 auto 0.5rem;
    transition: all 0.4s ease;
}

/* États actif et complété pour les indicateurs */
.rh-progress-step.active .rh-step-indicator,
.rh-progress-step.completed .rh-step-indicator {
    background: var(--rh-gold);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(217, 160, 91, 0.5);
}

/* Label de l'étape */
.rh-step-label {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--rh-text-body);
    transition: all 0.4s ease;
}

/* Label actif */
.rh-progress-step.active .rh-step-label {
    color: var(--rh-text-heading);
    font-weight: 600;
}

/* Ligne de connexion entre les étapes */
.rh-progress-line {
    flex-grow: 1;
    height: 1px;
    background: var(--rh-border);
    margin: 0 0.5rem 1rem;
}

/* ==========================================
 * 6. ÉTAPES DU FORMULAIRE
 * ==========================================
 */

/* Conteneur d'étape - masqué par défaut */
.rh-step {
    display: none;
}

/* Étape active - visible */
.rh-step.active {
    display: block;
}

/* Sous-étape avec animation d'entrée */
.sub-step {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.5s ease-out;
}

/* Sous-étape en cours de masquage */
.sub-step.is-hidden {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Titre d'étape */
.rh-step-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    color: var(--rh-gold);
}

/* Titres spécifiques des étapes principales */
#service-selection h3,
#time-selection h3,
#customer-details-selection h3 {
    color: var(--rh-gold);
}

/* ==========================================
 * 7. MESSAGES ET NOTIFICATIONS
 * ==========================================
 */

/* Conteneur des messages */
.rh-messages {
    margin-bottom: 1.5rem;
    min-height: 50px;
}

/* Style de base pour les messages */
.rh-message {
    padding: 0.75rem;
    border-radius: 8px;
    animation: fadeIn 0.3s;
    font-weight: 500;
    border: 1px solid;
    margin-bottom: 1rem;
}

/* Messages de succès */
.rh-message.success,
.rh-message.rh-success {
    background: rgba(22, 163, 74, 0.1);
    color: #6EE7B7;
    border-color: #34D399;
}

/* Messages d'erreur */
.rh-message.error,
.rh-message.rh-error {
    background: rgba(220, 38, 38, 0.1);
    color: #F87171;
    border-color: #EF4444;
}

/* ==========================================
 * 8. CARTES ET GRILLES
 * ==========================================
 */

/* Style de base pour toutes les cartes */
.rh-card {
    background: var(--rh-bg-card);
    border-radius: 12px;
    border: 1px solid var(--rh-border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet hover sur les cartes */
.rh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-color: var(--rh-gold);
}

/* État sélectionné pour les cartes */
.rh-card.selected {
    border-color: var(--rh-gold);
    box-shadow: 0 0 15px rgba(217, 160, 91, 0.3);
}

/* Indicateur visuel de sélection */
.rh-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rh-gold);
}

/* Grille des cartes restaurants */
.rh-restaurant-cards,
.rh-service-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch; /* Force l'alignement des hauteurs */
}

/* Carte restaurant individuelle */
.rh-restaurant-card,
.rh-service-btn {
    padding: 1.5rem;
    text-align: center;
}

/* Nom du restaurant */
.rh-restaurant-card .font-semibold {
    color: var(--rh-text-heading);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Informations détaillées du restaurant */
.rh-restaurant-card .text-sm {
    color: var(--rh-text-body);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* ==========================================
 * 9. CARTES RESTAURANTS - STRUCTURE FIXE
 * ==========================================
 */

/* Structure de carte avec hauteur uniforme */
.rh-restaurant-card {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Titre du restaurant centré */
.rh-restaurant-card .font-semibold {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

/* Description - hauteur fixe pour alignement */
.rh-restaurant-description {
    font-size: 0.9rem;
    color: var(--rh-text-body);
    text-align: center;
    margin: 0.75rem 0;
    font-style: italic;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

/* Détails du restaurant - hauteur fixe */
.rh-restaurant-details {
    padding: 1rem 0;
    border-top: 1px solid var(--rh-border);
    height: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rh-restaurant-details .text-sm {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section horaires - hauteur exactement fixe */
.rh-restaurant-hours {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--rh-border);
    font-size: 0.8rem;
    color: var(--rh-text-body);
    height: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Titre des horaires */
.rh-hours-title {
    text-align: center;
    font-weight: 600;
    color: var(--rh-text-heading);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    height: 20px;
}

/* Ligne d'horaire individuelle */
.rh-hour-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
    height: 24px;
}

.rh-hour-item strong {
    color: var(--rh-text-heading);
    margin-right: 0.5rem;
    white-space: nowrap;
    min-width: 50px;
}

/* ==========================================
 * 10. BOUTONS DE SERVICE
 * ==========================================
 */

/* Icône de service */
.rh-service-btn .text-2xl {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Nom du service */
.rh-service-btn .font-medium {
    color: var(--rh-text-heading);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Description du service */
.rh-service-btn .text-xs {
    color: var(--rh-text-body);
    font-size: 0.75rem;
}

/* ==========================================
 * 11. CALENDRIER
 * ==========================================
 */

/* Conteneur principal du calendrier */
.rh-calendar-container {
    max-width: auto;
    margin: 0 auto;
}

/* Header du calendrier avec navigation */
.rh-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Boutons de navigation (précédent/suivant) */
.rh-calendar-nav {
    background: none;
    border: none;
    color: var(--rh-text-body);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.rh-calendar-nav:hover {
    color: var(--rh-gold);
    background: rgba(217, 160, 91, 0.1);
}

/* Titre du mois en cours */
.rh-calendar-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--rh-text-heading);
}

/* Grille des jours du calendrier */
.rh-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* Jour individuel du calendrier */
.rh-calendar-day {
    aspect-ratio: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: var(--rh-text-body);
    font-weight: 500;
}

/* Jour d'un autre mois */
.rh-calendar-day.other-month {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Jour actuel */
.rh-calendar-day.today {
    border-color: var(--rh-gold);
}

/* Jour disponible au hover */
.rh-calendar-day.available:hover {
    background-color: var(--rh-bg-card);
    color: var(--rh-text-heading);
}

/* Jour sélectionné */
.rh-calendar-day.selected {
    background: var(--rh-gold);
    color: var(--rh-bg-main);
    font-weight: 600;
    border-color: var(--rh-gold);
}

/* Jour fermé */
.rh-calendar-day.closed {
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==========================================
 * 12. CRÉNEAUX HORAIRES
 * ==========================================
 */

/* Grille des créneaux horaires */
.rh-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

/* Créneau horaire individuel */
.rh-time-slot {
    padding: 0.75rem;
    min-height: 50px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rh-text-heading);
}

/* Indicateur de places disponibles */
.rh-time-slot-places {
    font-size: 0.75rem;
    color: var(--rh-text-body);
    margin-top: 0.25rem;
}

/* ==========================================
 * 13. SÉLECTION NOMBRE DE PERSONNES
 * ==========================================
 */

/* Grille pour la sélection du nombre de personnes */
.rh-party-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.75rem;
    justify-content: center;
}

/* Bouton de sélection nombre de personnes */
.rh-party-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 500;
    color: var(--rh-text-heading);
    font-size: 1.125rem;
}

/* ==========================================
 * 14. FORMULAIRES ET CHAMPS
 * ==========================================
 */

/* Groupe de champ de formulaire */
.rh-form-group {
    margin-bottom: 1rem;
}

/* Label de champ */
.rh-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--rh-text-heading);
}

/* Style unifié pour tous les champs de saisie */
.rh-form-group input,
.rh-form-group textarea,
.rh-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 48px;
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* Placeholder personnalisé pour fond sombre */
.rh-form-group input::placeholder,
.rh-form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
    opacity: 1;
}

/* Champs avec icône intégrée */
.rh-form-group .input-with-icon {
    padding-left: 2.5rem;
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
}

/* État focus - bordure dorée visible */
.rh-form-group input:focus,
.rh-form-group textarea:focus,
.rh-form-group select:focus {
    outline: none;
    border-color: var(--rh-gold);
    box-shadow: 0 0 0 3px rgba(217, 160, 91, 0.3);
    background-color: rgba(30, 41, 59, 0.9);
}

/* États de validation */
.rh-form-group input.is-valid {
    border-color: var(--rh-success);
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
}

.rh-form-group input.is-invalid {
    border-color: var(--rh-error);
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
}

/* Textarea - ajustements spécifiques */
.rh-form-group textarea {
    resize: vertical;
    min-height: 80px;
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
}

/* Icônes dans les champs pour visibilité */
.rh-form-group .absolute .icon {
    color: rgba(148, 163, 184, 0.6);
}

/* Amélioration contraste texte saisi */
.rh-form-group input:not(:placeholder-shown),
.rh-form-group textarea:not(:placeholder-shown) {
    color: white !important;
    font-weight: 500;
}

/* Select spécifique */
.rh-form-group select {
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
}

.rh-form-group select option {
    background-color: rgba(30, 41, 59, 0.9);
    color: white;
}

/* ==========================================
 * 15. BOUTONS ET ACTIONS
 * ==========================================
 */

/* Zone d'actions du formulaire */
.rh-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rh-border);
}

/* Style de base pour tous les boutons */
.rh-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Bouton principal (CTA) */
.rh-btn-primary {
    background: var(--rh-gold);
    color: var(--rh-bg-main);
}

.rh-btn-primary:hover {
    background: var(--rh-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 160, 91, 0.2);
}

.rh-btn-primary:disabled {
    background: var(--rh-border);
    color: var(--rh-text-body);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bouton secondaire */
.rh-btn-secondary {
    background: transparent;
    color: var(--rh-text-heading);
    border: 2px solid var(--rh-border);
}

.rh-btn-secondary:hover {
    border-color: var(--rh-text-body);
    color: var(--rh-text-body);
}

/* ==========================================
 * 16. LOADER ET ÉTATS DE CHARGEMENT
 * ==========================================
 */

/* Overlay de chargement */
.rh-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* Spinner de chargement */
.rh-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--rh-border);
    border-top-color: var(--rh-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================
 * 17. ICÔNES ET ÉLÉMENTS VISUELS
 * ==========================================
 */

/* Icônes standardisées */
.icon {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.25em;
    display: inline-block;
}

/* Icônes SVG intégrées */
.restaurant-house-booking svg {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.25em;
    fill: currentColor;
}

/* ==========================================
 * 18. RÉSUMÉ DE RÉSERVATION
 * ==========================================
 */

/* Conteneur du résumé */
.rh-booking-summary {
    padding: 1.5rem;
    border: 1px solid var(--rh-border);
    border-radius: 12px;
    background: var(--rh-bg-card);
    margin-bottom: 2rem;
}

/* Ligne d'information du résumé */
.rh-summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.rh-summary-item .icon {
    color: var(--rh-gold);
    font-size: 1.25rem;
}

.rh-summary-item .text-sm {
    color: var(--rh-text-body);
    font-size: 0.875rem;
}

.rh-summary-item .font-bold {
    color: var(--rh-text-heading);
    font-weight: 600;
}

/* ==========================================
 * 19. MODAL ZOOM MENU
 * ==========================================
 */

/* Modal pour affichage zoom du menu */
.menu-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

/* Contenu de la modal */
.menu-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bouton de fermeture de la modal */
.menu-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.menu-close:hover {
    color: #bbb;
}

/* Image de menu avec effet zoom */
.restaurant-menu-zoomable:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* ==========================================
 * 20. MESSAGES SPÉCIALISÉS
 * ==========================================
 */

/* Message "Aucun créneau disponible" */
.rh-no-slots-message {
    grid-column: 1 / -1;
    padding: 2rem 1.5rem;
    background-color: var(--rh-bg-card);
    border: 1px solid var(--rh-gold);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.rh-no-slots-icon {
    font-size: 2.5rem;
    color: var(--rh-gold);
    margin-bottom: 1rem;
}

.rh-no-slots-icon svg {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.rh-no-slots-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--rh-text-heading);
    margin-bottom: 0.75rem;
}

.rh-no-slots-text {
    color: var(--rh-text-body);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto 1.5rem auto;
}

.rh-no-slots-phone {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--rh-gold);
    color: var(--rh-bg-main);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rh-no-slots-phone:hover {
    background-color: var(--rh-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 160, 91, 0.2);
}

/* Message de confirmation spécialisé */
.rh-confirmation-message {
    border-color: #16A34A;
}

.rh-confirmation-icon {
    color: #16A34A;
}

.rh-confirmation-button {
    background-color: #16A34A;
}

.rh-confirmation-button:hover {
    background-color: #15803d;
}

/* ==========================================
 * 21. MODAL TECHNIQUE (CHECKBOX)
 * ==========================================
 */

/* Case à cocher masquée pour contrôle modal */
.rh-modal-toggle {
    display: none;
}

/* Overlay modal masqué par défaut */
.rh-custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

/* Affichage modal quand checkbox cochée */
.rh-modal-toggle:checked ~ .rh-custom-modal-overlay {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Bouton de fermeture modal */
.rh-modal-close-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: var(--rh-text-body);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--rh-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rh-modal-close-btn:hover {
    background-color: var(--rh-bg-card);
    border-color: var(--rh-text-body);
    color: var(--rh-text-heading);
}

/* Protection contre fermeture accidentelle */
.rh-group-booking-message {
    cursor: default;
}

/* ==========================================
 * 22. CONFIRMATION FINALE
 * ==========================================
 */

/* Page de confirmation finale responsive */
.rh-final-confirmation {
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    min-height: 60vh;
}

/* Icône de célébration responsive */
.rh-final-confirmation .text-6xl {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

/* Titre principal adaptatif */
.rh-final-confirmation h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    max-width: 90vw;
}

/* Carte de message responsive */
.rh-final-confirmation .bg-slate-800 {
    padding: clamp(1rem, 3vw, 2rem);
    max-width: clamp(280px, 90vw, 500px);
    margin: 0 auto;
}

/* Texte de confirmation */
.rh-final-confirmation .text-lg {
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    line-height: 1.5;
}

/* ==========================================
 * 23. DESIGN RESPONSIVE
 * ==========================================
 */
/* Tablettes et plus (768px+) */
@media (min-width: 768px) {
    .restaurant-house-booking {
        margin: 4rem auto; /* Marge plus grande sur desktop */
        padding: 3rem;     /* Espacement interne plus grand */
        border-radius: 24px; /* Coins plus arrondis */
    }

    .rh-title {
        font-size: 2rem;
    }

    .rh-step-title {
        font-size: 1.5rem;
    }

    .rh-restaurant-cards,
    .rh-service-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .rh-form-actions {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin: 2rem 0 0 0;
    }

    .rh-calendar-container {
        max-width: auto;
    }

    /* Modal responsive pour tablettes */
    .menu-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .menu-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    /* Cartes restaurants - retour à structure flexible */
    .rh-restaurant-card {
        min-height: auto;
        height: auto;
    }
    
    .rh-restaurant-description,
    .rh-restaurant-details,
    .rh-restaurant-hours {
        height: auto;
    }

    /* Zone tablette - ajustements confirmation */
    .rh-final-confirmation {
        padding: 3rem 2rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .rh-restaurant-cards,
    .rh-service-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

    .rh-party-size-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* Grands écrans (1200px+) */
@media (min-width: 1200px) {
    .rh-final-confirmation {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Mobile spécifique (640px-) */
@media (max-width: 640px) {
    .rh-final-confirmation {
        padding: 2rem 1rem;
    }

    .rh-final-confirmation .text-6xl {
        font-size: 3.5rem;
    }

    .rh-final-confirmation h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .rh-final-confirmation .bg-slate-800 {
        padding: 1.25rem;
    }

    .rh-final-confirmation .text-lg {
        font-size: 1rem;
    }
}

/* Très petit mobile (480px-) */
@media (max-width: 480px) {
    .rh-final-confirmation {
        padding-top: 1rem;
    }
    
    .animate-bounce {
        animation-duration: 2s;
    }
}

/* Tablettes en mode portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .rh-final-confirmation {
        padding: 3rem 2rem;
    }
}

/* Mobile responsive pour restaurants */
@media (max-width: 768px) {
    .rh-restaurant-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
 * 24. CLASSES UTILITAIRES
 * ==========================================
 */

/* Typographie utilitaires */
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Espacements utilitaires */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.pt-6 { padding-top: 1.5rem; }
.p-6 { padding: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Flexbox utilitaires */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid utilitaires */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Espacement vertical */
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Bordures utilitaires */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.rounded-lg { border-radius: 0.5rem; }

/* États utilitaires */
.opacity-50 { opacity: 0.5; }
.cursor-not-allowed { cursor: not-allowed; }
.hidden { display: none !important; }
.block { display: block; }

/* Grid responsive utilitaires */
@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Positionnement utilitaires */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.pl-3 { padding-left: 0.75rem; }
.pointer-events-none { pointer-events: none; }

/* Couleurs utilitaires pour thème */
.text-slate-100 { color: var(--rh-text-heading); }
.text-slate-400 { color: var(--rh-text-body); }
.text-gold-400 { color: var(--rh-gold); }
.text-amber-500 { color: #F59E0B; }
.bg-slate-800 { background-color: var(--rh-bg-card); }
.bg-slate-900 { background-color: var(--rh-bg-main); }
.border-slate-700 { border-color: var(--rh-border); }

/* ==========================================
 * 25. ÉTATS DÉSACTIVÉS ET SPÉCIAUX
 * ==========================================
 */

/* Cartes désactivées */
.rh-card.opacity-50 {
    opacity: 0.5;
    cursor: not-allowed;
}

.rh-card.opacity-50:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--rh-border);
}

/* ==========================================
 * 26. COMPATIBILITÉ ET AJUSTEMENTS
 * ==========================================
 */

/* Ajustements pour compatibilité avec thèmes existants */
.restaurant-house-form {
    background: transparent;
}

.rh-customer-form-container {
    background: transparent;
}



/* ==========================================
 * 27. ACCESSIBILITÉ
 * ==========================================
 */

/* Focus pour accessibilité */
.restaurant-house-booking *:focus {
    outline: 2px solid var(--rh-gold);
    outline-offset: 2px;
}

/* États ARIA */
.restaurant-house-booking [aria-pressed="true"] {
    background-color: var(--rh-gold);
    color: var(--rh-bg-main);
}

/* Préférences utilisateur - réduction mouvement */
@media (prefers-reduced-motion: reduce) {
    .animate-bounce {
        animation: none;
    }
    
    /* Désactiver toutes les animations si demandé */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Version encore plus discrète si besoin */
.rh-privacy-notice-minimal {
    font-size: 0.8rem;
    opacity: 0.8;
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    text-align: center;
    color: var(--rh-text-body);
}


/* ==========================================
 * FIN DU FICHIER CSS
 * ==========================================
 * 
 * Ce fichier CSS a été nettoyé et structuré pour :
 * - Maintenir la compatibilité avec le plugin existant
 * - Assurer une sécurité optimale (pas d'injection CSS)
 * - Optimiser les performances avec des sélecteurs efficaces
 * - Garantir l'accessibilité (WCAG 2.1)
 * - Fournir un design responsive complet
 * - Faciliter la maintenance future
 * 
 * Ordre d'importance des règles :
 * 1. Variables CSS globales
 * 2. Animations et effets
 * 3. Composants principaux
 * 4. États et interactions
 * 5. Responsive design
 * 6. Utilitaires
 * 7. Accessibilité
 * 
 * Compatibilité :
 * - WordPress 5.8+
 * - PHP 8.0+
 * - Navigateurs modernes (2 dernières versions)
 * - Thèmes WordPress standards (Divi compatible)
 */