/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

/* Variables CSS pour le thème luxueux */
:root {
    --rh-gold: #D9A05B;
    --rh-gold-dark: #B98B4D;
    --rh-bg-main: #111827;
    --rh-bg-card: #1F2937;
    --rh-text-heading: #F1F5F9;
    --rh-text-body: #94A3B8;
    --rh-border: #334155;
    --rh-success: #16A34A;
    --rh-error: #DC2626;
}

/* Animation Aurora pour arrière-plan */
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animations pour les transitions */
@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); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Reset et base */
.restaurant-house-booking {
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
    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: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.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;
}

.restaurant-house-booking * {
    box-sizing: border-box;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--rh-text-heading);
    margin: 0;
}

/* Conteneur principal */
.rh-content-wrapper {
    flex-grow: 1;
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.rh-header {
    text-align: center;
    margin-bottom: rem;
}

.rh-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--rh-gold); /* Ajout de la couleur */
    
}

.rh-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--rh-text-heading);
}

/* Barre de progression */
.rh-progress-bar {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
    margin-top: -0.5rem;
}

.rh-progress-step {
    flex: 1;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rh-step-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rh-border);
    margin: 0 auto 0.5rem;
    transition: all 0.4s ease;
}

.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);
}

.rh-step-label {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--rh-text-body);
    transition: all 0.4s ease;
}

.rh-progress-step.active .rh-step-label {
    color: var(--rh-text-heading);
    font-weight: 600;
}

.rh-progress-line {
    flex-grow: 1;
    height: 1px;
    background: var(--rh-border);
    margin: 0 0.5rem 1rem;
}

/* Étapes */
.rh-step {
    display: none;
}

.rh-step.active {
    display: block;
}

.sub-step {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.5s ease-out;
}

.sub-step.is-hidden {
    animation: fadeOut 0.5s ease-out forwards;
}

.rh-step-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    color: var(--rh-gold); /* Ajout de la couleur */
    
}
#service-selection h3,
#time-selection h3,
#customer-details-selection h3 {
    color: var(--rh-gold);

}

/* Messages */
.rh-messages {
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.rh-message {
    padding: 0.75rem;
    border-radius: 8px;
    animation: fadeIn 0.3s;
    font-weight: 500;
    border: 1px solid;
    margin-bottom: 1rem;
}

.rh-message.success,
.rh-message.rh-success {
    background: rgba(22, 163, 74, 0.1);
    color: #6EE7B7;
    border-color: #34D399;
}

.rh-message.error,
.rh-message.rh-error {
    background: rgba(220, 38, 38, 0.1);
    color: #F87171;
    border-color: #EF4444;
}

/* Cards */
.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;
}

.rh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-color: var(--rh-gold);
}

.rh-card.selected {
    border-color: var(--rh-gold);
    box-shadow: 0 0 15px rgba(217, 160, 91, 0.3);
}

.rh-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rh-gold);
}

/* Grilles des cartes */
.rh-restaurant-cards,
.rh-service-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch; /* AJOUT : force les cartes à avoir la même hauteur */
}

.rh-restaurant-card,
.rh-service-btn {
    padding: 1.5rem;
    text-align: center;
}

.rh-restaurant-card .font-semibold {
    color: var(--rh-text-heading);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.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;
}

.rh-service-btn .text-2xl {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rh-service-btn .font-medium {
    color: var(--rh-text-heading);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.rh-service-btn .text-xs {
    color: var(--rh-text-body);
    font-size: 0.75rem;
}

/* Calendrier */
.rh-calendar-container {
    max-width: 420px;
    margin: 0 auto;
}

.rh-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.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);
}

.rh-calendar-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--rh-text-heading);
}

.rh-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.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;
}

.rh-calendar-day.other-month {
    opacity: 0.3;
    cursor: not-allowed;
}

.rh-calendar-day.today {
    border-color: var(--rh-gold);
}

.rh-calendar-day.available:hover {
    background-color: var(--rh-bg-card);
    color: var(--rh-text-heading);
}

.rh-calendar-day.selected {
    background: var(--rh-gold);
    color: var(--rh-bg-main);
    font-weight: 600;
    border-color: var(--rh-gold);
}

.rh-calendar-day.closed {
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Créneaux horaires */
.rh-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.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);
}

.rh-time-slot-places {
    font-size: 0.75rem;
    color: var(--rh-text-body);
    margin-top: 0.25rem;
}

/* Sélection nombre de personnes */
.rh-party-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.75rem;
    justify-content: center;
}

.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;
}

/* Formulaires */
.rh-form-group {
    margin-bottom: 1rem;
}

.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 === */
.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); /* Bordure plus discrète */
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 48px;
    
    /* FOND SOMBRE UNIFIÉ POUR TOUS LES CHAMPS */
    background-color: rgba(30, 41, 59, 0.8); /* Fond sombre comme les commentaires */
    color: white; /* Texte blanc */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* Placeholder personnalisé pour être visible sur fond sombre */
.rh-form-group input::placeholder,
.rh-form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.7); /* Gris clair pour contraste sur fond sombre */
    opacity: 1;
}

/* Style spécial pour les champs avec icône */
.rh-form-group .input-with-icon {
    padding-left: 2.5rem;
    background-color: rgba(30, 41, 59, 0.8); /* S'assurer que l'icône reste visible */
    color: white;
}

/* État focus - bordure dorée plus 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); /* Fond légèrement plus foncé au focus */
}

/* É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;
}

/* Ajustement des icônes dans les champs pour qu'elles restent visibles */
.rh-form-group .absolute .icon {
    color: rgba(148, 163, 184, 0.6); /* Icônes légèrement transparentes */
}

/* Amélioration du contraste quand on tape */
.rh-form-group input:not(:placeholder-shown),
.rh-form-group textarea:not(:placeholder-shown) {
    color: white !important; /* Force le texte blanc */
    font-weight: 500; /* Légèrement plus gras pour la lisibilité */
}

/* Select spécifique (si utilisé) */
.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;
}

/* Actions et boutons */
.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);
}

.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;
}

.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;
}

.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);
}

/* Loader */
.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);
}

.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;
}

/* Icônes */
.icon {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.25em;
    display: inline-block;
}

/* Résumé de réservation */
.rh-booking-summary {
    padding: 1.5rem;
    border: 1px solid var(--rh-border);
    border-radius: 12px;
    background: var(--rh-bg-card);
    margin-bottom: 2rem;
}

.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;
}

/* Responsive Design */
@media (min-width: 768px) {
    .restaurant-house-booking {
        min-height: auto;
        margin: 4rem auto;
        padding: 3rem;
        border-radius: 24px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
        border: 1px solid var(--rh-border);
    }

    .rh-title {
        font-size: 3rem;
    }

    .rh-step-title {
        font-size: 2.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: 500px;
    }
}

@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));
    }
}

/* Utilities classes pour compatibilité */
.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; }
.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; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.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)); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.rounded-lg { border-radius: 0.5rem; }
.opacity-50 { opacity: 0.5; }
.cursor-not-allowed { cursor: not-allowed; }

/* États désactivés */
.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);
}

/* Confirmation finale */
.rh-final-confirmation {
    /* Padding fluide - plus d'espace sur grands écrans */
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    min-height: 60vh; /* Hauteur minimum pour centrer visuellement */
}

/* Icône confettis responsive */
.rh-final-confirmation .text-6xl {
    font-size: clamp(2.5rem, 8vw, 5rem); /* 40px → 80px fluide */
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

/* Titre principal adaptatif */
.rh-final-confirmation h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* 24px → 40px fluide */
    line-height: 1.2;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    max-width: 90vw; /* Évite les débordements */
}

/* Carte de message responsive */
.rh-final-confirmation .bg-slate-800 {
    padding: clamp(1rem, 3vw, 2rem);
    max-width: clamp(280px, 90vw, 500px); /* Largeur fluide */
    margin: 0 auto; /* Centre la carte */
}

/* Texte de confirmation */
.rh-final-confirmation .text-lg {
    font-size: clamp(0.9rem, 2.5vw, 1.25rem); /* 14px → 20px fluide */
    line-height: 1.5; /* Meilleure lisibilité */
}

/* Breakpoints spécifiques pour ajustements fins */
@media (max-width: 480px) {
    .rh-final-confirmation {
        padding-top: 1rem; /* Moins d'espace en haut sur très petit mobile */
    }
    
    /* Animation plus discrète sur mobile */
    .animate-bounce {
        animation-duration: 2s; /* Plus lent */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Zone tablette - ajustements spécifiques */
    .rh-final-confirmation {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1200px) {
    /* Grands écrans - limiter les tailles maximales */
    .rh-final-confirmation {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Amélioration accessibilité */
@media (prefers-reduced-motion: reduce) {
    .animate-bounce {
        animation: none; /* Respecte les préférences utilisateur */
    }
}

@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);
    }
}

/* Styles pour les couleurs du texte */
.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); }

/* Hide/show utilities */
.hidden { display: none !important; }
.block { display: block; }

/* Grid responsive utilities */
@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; }
}

/* Styles pour les positions relatives */
.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; }

/* Ajustements pour compatibilité avec l'existant */
.restaurant-house-form {
    background: transparent;
}

.rh-customer-form-container {
    background: transparent;
}

/* Styles pour les icônes SVG intégrées */
.restaurant-house-booking svg {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.25em;
    fill: currentColor;
}

/* Amélioration de l'accessibilité */
.restaurant-house-booking *:focus {
    outline: 2px solid var(--rh-gold);
    outline-offset: 2px;
}

.restaurant-house-booking [aria-pressed="true"] {
    background-color: var(--rh-gold);
    color: var(--rh-bg-main);
}

/* Styles pour les éléments cachés par défaut */
.restaurant-house-booking .rh-form-actions {
    visibility: hidden;
}

.restaurant-house-booking .rh-form-actions.visible {
    visibility: visible;
}
/* ==========================================
 * AMÉLIORATIONS RESPONSIVES (Confirmation)
 * ==========================================
 */

/* Pour les écrans de type mobile (en dessous de 640px) */
@media (max-width: 640px) {
    .rh-final-confirmation {
        padding: 2rem 1rem; /* Réduit l'espacement général sur les petits écrans */
    }

    .rh-final-confirmation .text-6xl {
        font-size: 3.5rem; /* Réduit la taille de l'icône 🎉 */
    }

    .rh-final-confirmation h2 {
        font-size: 1.75rem; /* Rend le titre principal plus petit et lisible */
        line-height: 1.2;
    }

    .rh-final-confirmation .bg-slate-800 {
        padding: 1.25rem; /* Réduit l'espacement intérieur de la carte de message */
    }

    .rh-final-confirmation .text-lg {
        font-size: 1rem; /* Ajuste la taille du texte de confirmation */
    }
}
/* ==========================================
 * AMÉLIORATION DES FICHES RESTAURANT - ALIGNEMENT FORCÉ
 * ==========================================
 */

/* Container de la grille des restaurants */
.rh-restaurant-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch; /* Force les cartes à avoir la même hauteur */
}

/* Structure de carte avec hauteur fixe et distribution forcée */
.rh-restaurant-card {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px; /* Hauteur plus généreuse */
    justify-content: space-between; /* CHANGEMENT : distribution égale de l'espace */
}

/* Titre du restaurant */
.rh-restaurant-card .font-semibold {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0; /* Ne se réduit pas */
}

/* Description du restaurant - HAUTEUR FIXE */
.rh-restaurant-description {
    font-size: 0.9rem;
    color: var(--rh-text-body);
    text-align: center;
    margin: 0.75rem 0;
    font-style: italic;
    height: 80px; /* HAUTEUR FIXE au lieu de min-height */
    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; /* HAUTEUR FIXE */
    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 SERVICES - HAUTEUR EXACTEMENT FIXE */
.rh-restaurant-hours {
    margin-top: auto; /* Pousse en bas */
    padding-top: 1rem;
    border-top: 1px solid var(--rh-border);
    font-size: 0.8rem;
    color: var(--rh-text-body);
    height: 120px; /* HAUTEUR EXACTEMENT FIXE */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Titre SERVICES */
.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; /* Hauteur fixe pour le titre */
}

/* Container des horaires */
.rh-hour-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
    height: 24px; /* Hauteur fixe par ligne */
}

.rh-hour-item strong {
    color: var(--rh-text-heading);
    margin-right: 0.5rem;
    white-space: nowrap;
    min-width: 50px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rh-restaurant-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rh-restaurant-card {
        min-height: auto;
        height: auto;
    }
    
    .rh-restaurant-description,
    .rh-restaurant-details,
    .rh-restaurant-hours {
        height: auto;
    }
}
/* Modal zoom 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);
}

.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%);
}

.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;
}

.restaurant-menu-zoomable:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .menu-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .menu-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}
/* franck-sysnot/restaurant-house/Franck-Sysnot-restaurant-house-3a3b727bcd30e9092b134df708aa943943afcd7e/public/style.css */

/* ==========================================
 * STYLE POUR LE MESSAGE "SERVICE EN COURS"
 * ==========================================
 */
 .rh-no-slots-message {
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
    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);
}
/* ==========================================
 * STYLE POUR LE MESSAGE "SERVICE EN COURS"
 * ==========================================
 */
 .rh-no-slots-message {
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
    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 { 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); }

/* Styles spécifiques pour le message de confirmation (optionnel) */
.rh-confirmation-message {
    border-color: #16A34A; /* Bordure verte pour le succès */
}
.rh-confirmation-icon {
    color: #16A34A; /* Icône verte */
}
.rh-confirmation-button {
    background-color: #16A34A;
}
.rh-confirmation-button:hover {
    background-color: #15803d;
}
/* ==========================================
 * STYLE POUR LA MODALE (TECHNIQUE CHECKBOX)
 * ==========================================
 */
/* 1. On cache la case à cocher */
.rh-modal-toggle {
    display: none;
}

/* 2. Par défaut, la modale est masquée */
.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;
}

/* 3. La règle magique : si la case est cochée, on affiche la modale */
.rh-modal-toggle:checked ~ .rh-custom-modal-overlay {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* 4. On s'assure que le label "Fermer" est bien cliquable */
.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);
}

/* Empêche le clic sur le message de fermer la modale */
.rh-group-booking-message {
    cursor: default;
}