﻿body {
}

.navIcon {
    list-style-type: none !important;
}

#rb-room-info .row {
    min-height: 220px;
}

#rb-room-image {
    min-height: 200px;
    max-height: 260px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

#rb-room-description {
    min-height: 200px;
    max-height: 260px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 767px) {
    #rb-room-info .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #rb-room-image, #rb-room-description {
        max-height: none;
        min-height: 120px;
    }
}

.rb-booking-success .dashicons {
    color: #28a745;
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.rb-booking-failure .dashicons {
    color: #dc3545;
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

#rb-booking-wizard {
    position: relative;
}

/* Stepper moderne unifié */
.rb-stepper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.rb-stepper-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.rb-stepper-progress-bar {
    height: 100%;
    background: var(--ounekos-stepper-primary, #0d6efd);
    transition: width 0.3s;
}

.rb-stepper-steps {
    position: relative;
    z-index: 1;
}

.rb-stepper-step {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
    text-align: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.25rem;
}

.rb-stepper-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #f1f3f7;
    color: #adb5bd;
    transition: background 0.2s, color 0.2s, all 0.3s ease;
}

.rb-stepper-step.active .rb-stepper-dot,
.rb-stepper-step.completed .rb-stepper-dot {
    background: var(--ounekos-stepper-primary, #0d6efd);
    color: #fff;
}

.rb-stepper-step.completed .rb-stepper-dot {
    background: #198754;
}

.rb-stepper-step:not(.active):not(.completed) .rb-stepper-dot {
    background: #e9ecef;
    color: #adb5bd;
}

.rb-stepper-label {
    font-size: 1rem;
    font-weight: 500;
    color: #adb5bd;
    transition: color 0.2s;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.rb-stepper-step.active .rb-stepper-label,
.rb-stepper-step.completed .rb-stepper-label {
    color: var(--ounekos-stepper-primary, #0d6efd);
}

.rb-stepper-step.completed .rb-stepper-label {
    color: #198754;
}

.rb-stepper-step:not(.active):not(.completed) .rb-stepper-label {
    color: #adb5bd;
}

/* Conteneurs principaux */
#rb-booking-wizard-reserve, #rb-booking-wizard {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

/* Mise en page pour le wizard avec navigation fixe */
#rb-booking-wizard-reserve {
    display: flex;
    flex-direction: column;
    /*     height: 80vh;
   height: 100vh;
    max-height: 100vh
    overflow: hidden;;*/
    position: relative;
    transition: all 0.3s ease;
    /*scrollbar-width: none !important;*/ /* Firefox */
    /*-ms-overflow-style: none !important;*/ /* IE et Edge */
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    #rb-booking-wizard-reserve {
        scroll-behavior: auto !important; /* Pas de smooth scroll sur mobile */
        -webkit-overflow-scrolling: touch; /* Scroll natif iOS */
    }

    .rb-step-content-container {
        scroll-behavior: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Améliorer les boutons tactiles */
    .rb-stepper-step,
    .rb-duration-card,
    .rb-reserve-room {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        cursor: pointer;
    }
}

/* ✅ RÈGLES POUR APPAREILS TACTILES */
@media (hover: none) and (pointer: coarse) {
    .rb-duration-card:active,
    .rb-reserve-room:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

#rb-booking-wizard-reserve .rb-step-content-container {
    scroll-behavior: smooth;
}

#rb-booking-wizard-reserve .card {
    /*   overflow: hidden !important;
        height: 100%;*/
}

#rb-booking-wizard-reserve .rb-stepper-container {
    flex-shrink: 0;
    overflow-x: auto;
    /*     overflow-y: hidden;*/
    padding: 0 1rem;
    /*scrollbar-width: none;*/ /* Firefox */
    /*-ms-overflow-style: none;*/ /* Internet Explorer et Edge */
}


#rb-booking-wizard-reserve .bg-white.rounded-4 {
    /*        height: 100%;
        overflow: hidden;*/
    display: flex;
    flex-direction: column;
}

#rb-booking-wizard-reserve .booking-options-container {
    flex-grow: 1;
    /*  overflow: hidden;*/
}

#rb-booking-wizard-reserve .rb-stepper-icon {
    width: 20px;
    height: 20px;
}

#rb-booking-wizard-reserve .rb-stepper-connector {
    width: 4rem;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

#rb-booking-wizard-reserve .rb-step-content-container {
    /*max-height: none !important;
        overflow: hidden !important;
        height: auto !important;*/
    flex-grow: 1;
    /*  overflow-x: hidden;*/
    padding: 0;
}

#rb-booking-wizard-reserve .rb-navigation-footer {
    flex-shrink: 0;
    min-height: 80px;
}

#rb-booking-wizard-reserve .rb-step-navigation {
    width: 100%;
}

#rb-booking-wizard-reserve .rb-reserve-step {
    width: 100%;
    /*        height: 100%;
        overflow: hidden;
        min-height: 100%;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Momentum scrolling iOS */
#rb-booking-wizard-reserve,
#rb-booking-wizard-reserve .rb-step-content-container,
#ounekos-client-portal-root .tab-content {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* Styles spécifiques pour le stepper du mode réserve - Correction du problème SVG */
#rb-booking-wizard-reserve .rb-stepper-dot {
    background: #e9ecef !important;
    color: #adb5bd !important;
}

#rb-booking-wizard-reserve .rb-stepper-step.active .rb-stepper-dot,
#rb-booking-wizard-reserve .rb-stepper-step.completed .rb-stepper-dot {
    background: var(--ounekos-stepper-primary, #0d6efd) !important;
    color: #fff !important;
}

#rb-booking-wizard-reserve .rb-stepper-step.active .rb-stepper-icon,
#rb-booking-wizard-reserve .rb-stepper-step.completed .rb-stepper-icon {
    color: #fff !important;
    stroke: #fff !important;
}

#rb-booking-wizard-reserve .rb-stepper-step:not(.active):not(.completed) .rb-stepper-icon {
    color: #adb5bd !important;
    stroke: #adb5bd !important;
}

#rb-booking-wizard-reserve .rb-stepper-step.completed .rb-stepper-dot {
    background: #198754 !important;
}

/* S'assurer que les styles inline ne surchargent pas */
#rb-booking-wizard-reserve .rb-stepper-dot[style] {
    background: var(--ounekos-stepper-primary, #0d6efd) !important;
    color: #fff !important;
}

#rb-booking-wizard-reserve .rb-stepper-step:not(.active):not(.completed) .rb-stepper-dot[style] {
    background: #e9ecef !important;
    color: #adb5bd !important;
}

/* Masquer toutes les navigations sauf celle active */
.rb-step-navigation {
    display: none !important;
}

    .rb-step-navigation.active {
        display: flex !important;
    }

/* Style de défilement pour la zone de contenu */
.rb-step-content-container::-webkit-scrollbar {
    width: 8px;
}

.rb-step-content-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rb-step-content-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .rb-step-content-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Style pour les barres de défilement du wizard principal */
#rb-booking-wizard-reserve::-webkit-scrollbar {
    width: 8px;
}

#rb-booking-wizard-reserve::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#rb-booking-wizard-reserve::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    #rb-booking-wizard-reserve::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Styles pour les ressources */
#rb-booking-wizard-reserve .rb-reserve-resource {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1em;
}

    #rb-booking-wizard-reserve .rb-reserve-resource.selected {
        border: 2px solid #007bff;
        background: #f8f9fa;
    }

#rb-reserve-resources-list {
    display: block !important;
    flex-wrap: wrap;
    gap: 1em;
    /*  overflow-y: auto;
    max-height: none;*/
}

/* Cartes de durée */
#rb-reserve-duration-list {
    /*max-height: calc(100vh - 300px);*/ /* Ajuster selon la hauteur des autres éléments */
    /*overflow: hidden;*/
}

    #rb-reserve-duration-list .rb-duration-card {
        border: 2px solid #e5e7eb;
        border-radius: 1rem;
        background: #fff;
        padding: 1rem 0.5rem;
        cursor: pointer;
        transition: border 0.2s, background 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }

        #rb-reserve-duration-list .rb-duration-card.selected,
        #rb-reserve-duration-list .rb-duration-card:focus {
            border-color: var(--ounekos-stepper-primary, #0d6efd);
            background: #e7f1ff;
            box-shadow: 0 4px 16px rgba(13,110,253,0.08);
        }

        #rb-reserve-duration-list .rb-duration-card .price {
            color: var(--ounekos-stepper-primary, #0d6efd);
            font-weight: bold;
            font-size: 1.1rem;
        }

/* Boutons de créneaux horaires */
#rb-reserve-hour-grid .rb-room-slot-btn,
.rb-room-slot-btn {
    min-width: 80px;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    background: #f8f9fa;
    color: #212529;
    border: 1.5px solid #e5e7eb;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border 0.15s, transform 0.1s;
    box-shadow: none;
}

    #rb-reserve-hour-grid .rb-room-slot-btn:hover:not(:disabled),
    .rb-room-slot-btn:hover:not(:disabled) {
        background: #e7f1ff;
        color: var(--ounekos-stepper-primary, #0d6efd);
        border-color: var(--ounekos-stepper-primary, #0d6efd);
        transform: scale(1.05);
    }

    #rb-reserve-hour-grid .rb-room-slot-btn.active,
    .rb-room-slot-btn.active {
        background: var(--ounekos-stepper-primary, #0d6efd);
        color: #fff;
        border-color: var(--ounekos-stepper-primary, #0d6efd);
        font-weight: bold;
    }

/* Carte pour la ressource/salle */
.rb-reserve-room {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    margin-bottom: 1.5rem;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
}

    .rb-reserve-room.border-primary,
    .rb-reserve-room.selected {
        border-color: var(--ounekos-stepper-primary, #0d6efd) !important;
        box-shadow: 0 4px 16px rgba(13,110,253,0.08);
    }

    .rb-reserve-room .card-footer {
        background: #f8f9fa;
        border-top: none;
    }

/* Boutons de navigation */
#rb-reserve-step1-next,
#rb-reserve-step2-next,
#rb-reserve-step3-next,
#rb-reserve-book-button,
#rb-step1-next,
#rb-step2-next,
#rb-step3-next,
#rb-book-button {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 120px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

    #rb-reserve-step1-next:disabled,
    #rb-reserve-step2-next:disabled,
    #rb-reserve-step3-next:disabled,
    #rb-reserve-book-button:disabled,
    #rb-step1-next:disabled,
    #rb-step2-next:disabled,
    #rb-step3-next:disabled,
    #rb-book-button:disabled {
        background: #e9ecef !important;
        color: #adb5bd !important;
        border: none !important;
        cursor: not-allowed !important;
        opacity: 0.7;
        box-shadow: none;
    }

/* Styles pour les tableaux et messages */
#rb-reserve-summary table,
#rb-step4 table {
    font-size: 1rem;
}

#rb-reserve-summary td,
#rb-step4 td {
    vertical-align: middle;
}

#rb-reserve-booking-response,
#rb-booking-response {
    font-size: 1.1rem;
}

/* Styles pour les messages d'erreur */
.field-error {
    margin-top: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
}

/* Classes utilitaires pour les messages d'erreur */
.bg-amber-50 {
    background-color: #fffbeb;
}

.border-amber-200 {
    border-color: #fde68a;
}

.text-amber-600 {
    color: #d97706;
}

.text-amber-800 {
    color: #92400e;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.font-medium {
    font-weight: 500;
}

/* Styles spécifiques au portail client */
#ounekos-client-portal-root .btn-primary {
    background: var(--ounekos-portal-primary) !important;
    border: none;
}

#ounekos-client-portal-root .nav-tabs .nav-link.active {
    background: var(--ounekos-portal-primary) !important;
    color: #fff !important;
}

#ounekos-client-portal-root .card {
    background: var(--ounekos-portal-bg);
    color: var(--ounekos-portal-text);
}

/* Variables CSS pour les couleurs */
:root {
    --ounekos-stepper-primary: #0d6efd;
}

/* Support des couleurs personnalisées */
body[data-ounekos-btn-custom="1"] .rb-stepper-step.active .rb-stepper-dot,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.completed .rb-stepper-dot,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.active .rb-stepper-label,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.completed .rb-stepper-label,
body[data-ounekos-btn-custom="1"] #rb-reserve-step1-next,
body[data-ounekos-btn-custom="1"] #rb-reserve-step2-next,
body[data-ounekos-btn-custom="1"] #rb-reserve-step3-next,
body[data-ounekos-btn-custom="1"] #rb-reserve-book-button,
body[data-ounekos-btn-custom="1"] #rb-step1-next,
body[data-ounekos-btn-custom="1"] #rb-step2-next,
body[data-ounekos-btn-custom="1"] #rb-step3-next,
body[data-ounekos-btn-custom="1"] #rb-book-button {
    background: var(--ounekos-btn-custom-color, #0d6efd) !important;
    color: #fff !important;
    border: none !important;
}

body[data-ounekos-btn-custom="1"] .rb-stepper-step.active .rb-stepper-label,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.completed .rb-stepper-label {
    color: var(--ounekos-btn-custom-color, #0d6efd) !important;
}

/* Support d'accessibilité */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Réduction des animations si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
    .transition-all, .duration-200, .duration-300 {
        transition: none !important;
    }

    .animate-fadeIn {
        animation: none !important;
    }

    .hover\:scale-105:hover {
        transform: none !important;
    }
}

/* Styles responsive */
@media (max-width: 768px) {
    /* Stepper responsive général */
    .rb-stepper-step .rb-stepper-label {
        font-size: 0.9rem;
    }

    /* Stepper reserve mode responsive */
    #rb-booking-wizard-reserve .rb-stepper-container {
        padding: 0 0.5rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-step {
        padding: 0 0.125rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-icon {
        width: 16px;
        height: 16px;
    }

    #rb-booking-wizard-reserve .rb-stepper-label {
        font-size: 0.75rem !important;
        line-height: 1.1;
    }

    #rb-booking-wizard-reserve .rb-stepper-connector {
        width: 2rem;
        margin: 0 0.25rem;
    }

    /* Autres éléments */

    .rb-reserve-room {
        padding: 0.5rem;
    }

    /* Rendre le conteneur du stepper responsive pour le mode standard */
    .d-flex.align-items-center.justify-content-center.mb-4 {
        /*        flex-wrap: wrap;
        overflow-x: hidden;*/
    }

    .mx-3.flex-shrink-0 {
        width: 1rem !important;
        flex: 0 0 1rem;
        min-width: 1rem;
    }

    .rb-stepper-step .rb-stepper-dot {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.2rem !important;
    }

    .rb-stepper-label {
        font-size: 0.8rem !important;
        white-space: normal;
        max-width: 80px;
        margin: 0 auto;
    }

    .rb-stepper-step {
        padding: 0 5px;
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .rb-duration-card h4 {
        font-size: 1rem !important;
    }

    .rb-duration-card .price {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    /* Stepper reserve mode très petits écrans */
    #rb-booking-wizard-reserve .rb-stepper-container {
        padding: 0 0.25rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-step {
        padding: 0;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        width: 2rem !important;
        height: 2rem !important;
        margin-bottom: 0.5rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-icon {
        width: 14px;
        height: 14px;
    }

    #rb-booking-wizard-reserve .rb-stepper-label {
        font-size: 0.7rem !important;
        line-height: 1;
        max-width: 60px;
    }

    #rb-booking-wizard-reserve .rb-stepper-connector {
        width: 1rem;
        margin: 0 0.125rem;
    }

    /* Mode standard très petits écrans */
    .mx-3.flex-shrink-0 {
        width: 0.5rem !important;
        flex: 0 0 0.5rem;
        min-width: 0.5rem;
    }

    .rb-stepper-step .rb-stepper-dot {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 360px) {
    #rb-booking-wizard-reserve .rb-stepper-label {
        font-size: 0.65rem;
        max-width: 50px;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-icon {
        width: 12px;
        height: 12px;
    }

    #rb-booking-wizard-reserve .rb-stepper-connector {
        width: 0.75rem;
    }
}

@media (max-width: 320px) {
    #rb-booking-wizard-reserve .rb-stepper-label {
        display: none;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        margin-bottom: 0;
    }
}
/* Solution moderne avec Container Queries (support navigateurs récents) */
#rb-reserve-step3 {
    container-type: inline-size;
    container-name: step3-container;
}

@container step3-container (max-width: 575px) {
    .col-12.col-md-6,
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .row.mb-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mb-3 {
        margin-bottom: 1.5rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* === CORRECTIONS POUR ELEMENTOR POPUP SUR MOBILE === */

/* Forcer la visibilité dans les popups Elementor */
.elementor-popup-modal #rb-booking-wizard-reserve,
.elementor-popup-modal #rb-booking-wizard {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: 90vh !important;
    overflow: visible !important;
}

/* Corrections spécifiques pour mobile dans Elementor */
@media (max-width: 768px) {
    .elementor-popup-modal #rb-booking-wizard-reserve {
        height: auto !important;
        max-height: 85vh !important;
        min-height: 500px !important;
    }

    .elementor-popup-modal #rb-reserve-step1,
    .elementor-popup-modal #rb-reserve-step2,
    .elementor-popup-modal #rb-reserve-step3,
    .elementor-popup-modal #rb-reserve-step4 {
        display: none !important;
    }

        .elementor-popup-modal #rb-reserve-step1.show.active {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

    .elementor-popup-modal .rb-step-content-container {
        overflow-y: auto !important;
        max-height: 60vh !important;
        flex-grow: 1 !important;
    }

    .elementor-popup-modal .rb-navigation-footer {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        z-index: 10 !important;
        border-top: 1px solid #dee2e6 !important;
    }
}

/* Forcer la visibilité sur tous les appareils mobiles dans Elementor */
@media (max-width: 575.98px) {
    .elementor-popup-modal #rb-booking-wizard-reserve .rb-reserve-step.show.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .elementor-popup-modal #rb-booking-wizard-reserve .rb-reserve-step:not(.show) {
        display: none !important;
    }

    /* Corrections pour les colonnes sur très petits écrans */
    .elementor-popup-modal #rb-reserve-step3 .col-12.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Corrections pour les z-index dans Elementor */
.elementor-popup-modal {
    z-index: 9999 !important;
}

    .elementor-popup-modal #rb-booking-wizard-reserve {
        z-index: 1 !important;
        position: relative !important;
    }

    .elementor-popup-modal .rb-stepper-container {
        z-index: 2 !important;
        position: relative !important;
    }
/* Stabilisation largeur du wizard et de ses enfants (compatible mobile/Elementor) */
#rb-booking-wizard-reserve,
#rb-booking-wizard {
    box-sizing: border-box;
}

    #rb-booking-wizard-reserve .card,
    #rb-booking-wizard-reserve .rb-stepper-container,
    #rb-booking-wizard-reserve .rb-step-content-container,
    #rb-booking-wizard-reserve .rb-reserve-step,
    #rb-booking-wizard-reserve .rb-step-navigation,
    #rb-booking-wizard .card,
    #rb-booking-wizard .rb-stepper-container,
    #rb-booking-wizard .rb-step-content-container,
    #rb-booking-wizard .rb-reserve-step,
    #rb-booking-wizard .rb-step-navigation {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0; /* évite l’élargissement des items flex */
    }

    #rb-booking-wizard-reserve .rb-step-content-container,
    #rb-booking-wizard .rb-step-content-container {
        overflow-x: hidden;
    }

    /* Empêche un mot/URL trop long d’élargir le layout */
    #rb-booking-wizard-reserve .rb-reserve-step,
    #rb-booking-wizard .rb-reserve-step {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* Stabilise la largeur quand la scrollbar verticale apparaît/disparaît (non bloquant si non supporté) */
html {
    scrollbar-gutter: stable;
}
/* Icônes du stepper (mode standard): plus petites que le rond */
#rb-booking-wizard .rb-stepper-dot .rb-stepper-icon {
    width: 60%;
    height: 60%;
    display: block;
    flex: 0 0 auto;
}

    /* Optionnel: garder des traits fins lors du redimensionnement */
    #rb-booking-wizard .rb-stepper-dot .rb-stepper-icon *,
    #rb-booking-wizard .rb-stepper-dot .rb-stepper-icon {
        vector-effect: non-scaling-stroke;
    }