/* ============================================================
   RESPONSIVE GLOBAL — Toutes les pages client
   Breakpoints: 991px (tablet), 768px (mobile), 576px (small)
   ============================================================ */

/* ── 1. LAYOUT GÉNÉRAL ─────────────────────────────────────── */

/* Dashboard : sidebar passe en haut sur mobile */
@media (max-width: 991px) {
    .col-lg-3.sidebar-col,
    .col-lg-3:has(.user-sidebar-wrap) {
        order: -1;
    }
}

/* Padding bottom en mode app pour la bottom nav */
body.app-mode {
    padding-bottom: 70px;
}

/* ── 2. HERO SECTIONS (hotels, tours, cars, visa, flights) ─── */
@media (max-width: 768px) {
    .hotel-hero-text h1,
    .tours-hero-text h1,
    .cars-hero-text h1,
    .visa-hero-text h1,
    .flights-hero-text h1,
    .services-hero-text h1 {
        font-size: 2rem !important;
    }

    .hotel-hero-text p,
    .tours-hero-text p,
    .cars-hero-text p,
    .visa-hero-text p,
    .flights-hero-text p {
        font-size: 1rem !important;
    }

    .hotel-hero-slide,
    .tours-hero-slide,
    .cars-hero-slide,
    .visa-hero-slide,
    .flights-hero-slide {
        min-height: 40vh !important;
    }

    .hotel-hero-text,
    .tours-hero-text,
    .cars-hero-text,
    .visa-hero-text,
    .flights-hero-text {
        padding: 40px 0 120px !important;
    }

    /* Search overlay — réduire le chevauchement */
    .hotel-search-overlay,
    .tours-search-overlay,
    .cars-search-overlay,
    .visa-search-overlay,
    .flights-search-overlay {
        margin-top: -80px !important;
        padding-bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    .hotel-hero-text h1,
    .tours-hero-text h1,
    .cars-hero-text h1,
    .visa-hero-text h1 {
        font-size: 1.6rem !important;
    }

    .hotel-hero-text,
    .tours-hero-text,
    .cars-hero-text {
        padding: 30px 0 100px !important;
    }

    .hotel-search-overlay,
    .tours-search-overlay,
    .cars-search-overlay {
        margin-top: -60px !important;
    }
}

/* ── 3. SEARCH TABS (listing pages) ────────────────────────── */
@media (max-width: 768px) {
    .hotel-search-tabs-nav,
    .tours-search-tabs-nav,
    .cars-search-tabs-nav,
    .visa-search-tabs-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: -16px !important;
    }

    .hotel-search-tabs-nav::-webkit-scrollbar,
    .tours-search-tabs-nav::-webkit-scrollbar,
    .cars-search-tabs-nav::-webkit-scrollbar,
    .visa-search-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    /* Search cards */
    .hotel-search-card,
    .tours-search-card,
    .cars-search-card,
    .visa-search-card {
        padding: 36px 14px 20px !important;
        border-radius: 16px !important;
    }

    /* Champs en colonne */
    .hotel-search-fields,
    .tours-search-fields,
    .cars-search-fields,
    .visa-search-fields-row,
    .search-fields-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hotel-search-fields > *,
    .tours-search-fields > *,
    .cars-search-fields > *,
    .visa-search-fields-row > *,
    .search-fields-row > * {
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .btn-search-hero,
    .btn-hotel-search,
    .btn-hotel-search-hero,
    .btn-tours-search,
    .btn-tours-search-hero,
    .btn-cars-search,
    .btn-cars-search-hero,
    .btn-visa-search-hero {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Flight cards — colonnes en colonne sur mobile */
    .flight-card .card-body .row {
        flex-direction: column !important;
    }

    .flight-card .card-body .col-md-2,
    .flight-card .card-body .col-md-7,
    .flight-card .card-body .col-md-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: left !important;
    }

    .flight-card .card-body .col-md-3.text-end {
        text-align: left !important;
        border-top: 1px solid #f1f3f8;
        padding-top: 12px;
        margin-top: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .flight-card .card-body .col-md-3.text-end .select-flight-btn {
        width: 100% !important;
    }

    /* Sortingbox — filtres vols en colonne */
    .sortingbox .row > [class*="col-md"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
}

/* ── 4. CARDS LISTING (hotels, tours, cars) ─────────────────── */

/* Listing hôtels — grille sidebar / résultats (priorité sur conflits CSS/JS) */
@media (min-width: 992px) {
    .results-section.hotels-listing-page .hotels-layout-row > .hotels-sidebar-col {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }

    .results-section.hotels-listing-page .hotels-layout-row > .hotels-results-col {
        flex: 0 0 75% !important;
        max-width: 75% !important;
        width: 75% !important;
        min-width: 0 !important;
    }
}

.results-section.hotels-listing-page .hotels-results-col,
.results-section.hotels-listing-page #hotelResults {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.results-section.hotels-listing-page .hotel-card-horizontal {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 991px) and (min-width: 768px) {
    .results-section.hotels-listing-page .hotels-layout-row > .hotels-sidebar-col,
    .results-section.hotels-listing-page .row > .col-lg-3 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .results-section.hotels-listing-page .hotels-layout-row > .hotels-results-col,
    .results-section.hotels-listing-page .row > .col-lg-9 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

    .tourslist .results-header .row > [class*="col-lg"],
    .carslist .results-header .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 767.98px) {
    /* Filtres listing hôtels : sidebar pleine largeur (mobile) */
    .results-section.hotels-listing-page .hotels-layout-row > .hotels-sidebar-col,
    .results-section.hotels-listing-page .hotels-layout-row > .hotels-results-col,
    .results-section.hotels-listing-page .row > .col-lg-3,
    .results-section.hotels-listing-page .row > .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .results-section.hotels-listing-page #filtersContainer:not(.show) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Grille 1 colonne sur mobile */
    .hotels-listing-page .row > [class*="col-md"],
    .hotels-listing-page .row > [class*="col-lg"]:not(.col-lg-3):not(.col-lg-9),
    .tourslist .row > [class*="col-md"],
    .tourslist .row > [class*="col-xl"],
    .tourslist .row > [class*="col-lg"],
    .carslist .row > [class*="col-md"],
    .carslist .row > [class*="col-lg"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .filter-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .filter-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
        text-align: center;
    }

    .hotel-card-horizontal {
        flex-direction: column !important;
    }

    .hotel-card-horizontal .hotel-image-wrapper {
        width: 100% !important;
        min-height: 180px !important;
    }

    .hotel-card-horizontal .hotel-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .hotel-card-horizontal .view-more-btn {
        width: 100% !important;
        text-align: center;
    }

    /* Cards */
    .hotelslist .locwrap,
    .tourslist .locwrap,
    .carslist .locwrap {
        margin-bottom: 16px;
    }

    /* Images cards */
    .hotelslist .locwrap .imgbox {
        height: 180px !important;
    }
}

/* Tours & Cars : col-md-6 → 1 colonne sur petit mobile */
@media (max-width: 480px) {
    .col-xl-4.col-lg-6.col-md-6,
    .col-xl-4.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hotelslist .locwrap .imgbox {
        height: 160px !important;
    }
}

/* ── 5. DETAIL PAGES (hotel, tour, car, flight) ─────────────── */
@media (max-width: 991px) {
    /* Layout 2 colonnes → 1 colonne */
    .col-lg-8 + .col-lg-4 .bk-sidebar,
    .col-lg-8 + .col-lg-4 .booking-widget,
    .col-lg-4 .bk-sidebar,
    .col-lg-4 .booking-widget {
        position: static !important;
        margin-top: 24px;
    }

    /* Galerie hôtel : 2 colonnes */
    .hd-gallery {
        grid-template-columns: 1fr 1fr !important;
        height: auto !important;
    }
    .hd-gallery-item:first-child {
        grid-row: span 1 !important;
        height: 160px !important;
    }
    .hd-gallery-item { height: 120px !important; }

    /* Hero hôtel */
    .hd-hero { height: 300px !important; }
    .hd-hero-content h1 { font-size: 1.5rem !important; }

    /* Tour sidebar sticky → static */
    .tour-sidebar {
        position: static !important;
        top: auto !important;
    }

    /* Car detail hero */
    .car-detail-hero {
        padding: 80px 0 60px !important;
    }
    .car-title-section h1 {
        font-size: 2rem !important;
    }

    /* Flight detail — sidebar prix */
    .flightprices {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    /* Hero hôtel */
    .hd-hero { height: 240px !important; }
    .hd-hero-content { padding: 16px 20px !important; }
    .hd-hero-content h1 { font-size: 1.3rem !important; }

    /* Galerie hôtel : 1 colonne */
    .hd-gallery {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }
    .hd-gallery-item { height: 200px !important; }
    .hd-gallery-item:first-child { height: 200px !important; }

    /* Section hôtel */
    .hd-section { padding: 20px 16px !important; }

    /* Amenities grid */
    .amenity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Tour detail */
    .tour-title { font-size: 1.5rem !important; }
    .galleryview .item img { height: 240px !important; }

    /* Car detail */
    .car-detail-hero { padding: 60px 0 40px !important; }
    .car-title-section h1 { font-size: 1.6rem !important; }
    .car-quick-info { gap: 8px !important; }
    .quick-info-item { padding: 6px 10px !important; font-size: 0.82rem !important; }

    /* Flight detail */
    .flightinfowrap { padding: 16px !important; }
    .flightmoveinfo { padding: 16px !important; }
    .ftakeinfo { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
    .takeicon { width: 44px !important; height: 44px !important; font-size: 1.1rem !important; }
    .flightmoveinfo .row > [class*="col-lg"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px;
    }

    /* Tabs détail — scroll horizontal */
    .detail-tabs .nav-tabs,
    .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 2px !important;
    }
    .detail-tabs .nav-tabs::-webkit-scrollbar,
    .nav-tabs::-webkit-scrollbar { display: none; }
    .detail-tabs .nav-tabs .nav-item,
    .nav-tabs .nav-item { flex-shrink: 0 !important; }

    /* Booking widget tour */
    .booking-widget { padding: 18px 16px !important; }
    .info-card { padding: 18px 16px !important; }
}

@media (max-width: 576px) {
    .hd-hero { height: 200px !important; }
    .amenity-grid { grid-template-columns: 1fr 1fr !important; }
    .tour-meta { gap: 6px !important; }
    .tour-meta span { font-size: 0.8rem !important; padding: 5px 10px !important; }
    .flightinfowrap h1 { font-size: 1.3rem !important; }
}

/* ── 6. BOOKING STEPS (hotel, flight, tour, car) ────────────── */
@media (max-width: 768px) {
    /* Stepper header */
    .hbs-header,
    .booking-stepper-wrapper {
        padding: 20px 0 16px !important;
    }
    .hbs-header h1 { font-size: 1.1rem !important; }

    /* Stepper : labels masqués sur très petit */
    .hbs-step-label { font-size: 0.62rem !important; max-width: 70px !important; }

    /* Cercles stepper */
    .hbs-circle { width: 36px !important; height: 36px !important; font-size: 0.82rem !important; }

    /* Card body booking */
    .hbs-card-body { padding: 16px !important; }
    .hbs-card-head { padding: 12px 16px !important; }

    /* Formulaires booking : 2 colonnes → 1 colonne */
    .hbs-card-body .row > [class*="col-md"],
    .hbs-card-body .row > [class*="col-lg"],
    .booking-form-card .row > [class*="col-md"],
    .booking-form-card .row > [class*="col-lg"],
    .form-section .row > [class*="col-md"],
    .form-section .row > [class*="col-lg"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Exception : col-12 reste col-12 */
    .form-section .row > .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Nav bar steps */
    .hbs-nav-bar {
        padding: 14px 16px !important;
        gap: 8px !important;
    }
    .btn-hbs-prev, .btn-hbs-next, .btn-hbs-submit {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    /* Booking hero */
    .booking-hero {
        padding: 50px 0 40px !important;
    }
    .hero-title { font-size: 1.6rem !important; }
    .hero-subtitle { font-size: 0.95rem !important; }

    /* Résumé booking */
    .hbs-room-card { padding: 14px !important; }
    .hbs-price-big { font-size: 1.3rem !important; }
    .hbs-total-box { flex-direction: column !important; gap: 6px !important; text-align: center !important; }

    /* Flight booking steps */
    .booking-stepper {
        gap: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
    }
    .booking-stepper::-webkit-scrollbar { display: none; }

    /* Guest CTA */
    .hbs-guest-cta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .hbs-login-btn { width: 100% !important; justify-content: center !important; }

    /* Cars booking form — sidebar sticky → static */
    .summary-card.sticky-top {
        position: static !important;
        margin-top: 24px;
    }

    /* Tours booking form — sidebar */
    .col-lg-4 .booking-form-card,
    .col-lg-4 .summary-card {
        margin-top: 0;
    }

    /* Booking form section padding */
    .booking-form-section { padding: 30px 0 !important; }
    .form-section { padding: 16px !important; }
    .form-card-header { padding: 20px 16px !important; }
    .form-title { font-size: 1.3rem !important; }
}

@media (max-width: 576px) {
    .hbs-step-label { display: none !important; }
    .hbs-circle { width: 32px !important; height: 32px !important; font-size: 0.78rem !important; }
    .hbs-header h1 { font-size: 1rem !important; }
    .hbs-card-body { padding: 12px !important; }
    .booking-hero { padding: 40px 0 30px !important; }
    .hero-title { font-size: 1.4rem !important; }
    .form-section { padding: 12px !important; }
}

/* ── 7. PAYMENT PAGES ───────────────────────────────────────── */
@media (max-width: 768px) {
    /* Payment selection component */
    .ps-section { padding: 30px 0 !important; }

    /* Methods grid → 1 colonne */
    .ps-methods-grid,
    .payment-methods-grid {
        grid-template-columns: 1fr !important;
    }

    /* Method cards */
    .ps-method-card,
    .payment-method-option {
        padding: 14px !important;
    }

    /* Summary card */
    .ps-summary-card { padding: 16px !important; }
    .ps-summary-body .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Payment hero */
    .payment-hero { padding: 36px 0 !important; }
    .payment-hero h1 { font-size: 1.5rem !important; }

    /* Waiting pages (Momo / Orange Money) */
    .card.shadow-lg { margin: 0 8px !important; }
    .card-body.p-5 { padding: 24px 16px !important; }
    .card-header h3 { font-size: 1.2rem !important; }

    /* Countdown */
    #countdown { font-size: 2.5rem !important; }

    /* Instructions list */
    .alert ol { padding-left: 18px !important; }
    .alert ol li { font-size: 0.9rem !important; margin-bottom: 6px !important; }

    /* Check button */
    #check-status-btn { width: 100% !important; }

    /* Booking success */
    .booking-details .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Confirmation hotel */
    .confirmation-container { padding: 24px 12px !important; }
    .confirmation-success { padding: 28px 16px !important; }
    .confirmation-success h2 { font-size: 1.5rem !important; }
    .confirmation-success i { font-size: 56px !important; }
    .booking-reference strong { font-size: 1.2rem !important; letter-spacing: 1px !important; }

    /* Confirmation actions */
    .confirmation-actions,
    .success-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .confirmation-actions .btn,
    .success-actions .btn,
    .success-actions a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Car booking success */
    .booking-details .details-grid .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Payment method header */
    .payment-method-header {
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Waiting pages — actions */
    .payment-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .payment-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .card-body.p-5 { padding: 18px 12px !important; }
    #countdown { font-size: 2rem !important; }
    .ps-security { gap: 10px !important; flex-wrap: wrap !important; }
    .confirmation-success h2 { font-size: 1.3rem !important; }
}

/* ── 8. DASHBOARD & PROFIL ──────────────────────────────────── */
@media (max-width: 991px) {
    /* Sidebar en haut, contenu en dessous */
    .dashboard-layout .col-lg-3 {
        margin-bottom: 20px;
    }

    /* Sidebar nav : scroll horizontal sur mobile */
    .user-sidebar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 8px 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 4px !important;
    }

    .user-sidebar-nav::-webkit-scrollbar { display: none; }

    .user-sidebar-link {
        flex-shrink: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 10px 12px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        font-size: 0.75rem !important;
        text-align: center !important;
        min-width: 64px !important;
    }

    .user-sidebar-link.active {
        border-left: none !important;
        border-bottom-color: #1e3889 !important;
    }

    .user-sidebar-link:hover {
        border-left: none !important;
        border-bottom-color: rgba(30, 56, 137, 0.3) !important;
    }

    .user-sidebar-label {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        max-width: 60px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .user-sidebar-dot { display: none !important; }

    /* Profile block horizontal */
    .user-sidebar-profile {
        flex-direction: row !important;
        text-align: left !important;
        gap: 14px !important;
        padding: 16px !important;
    }

    .user-sidebar-avatar {
        margin-bottom: 0 !important;
        width: 52px !important;
        height: 52px !important;
        flex-shrink: 0 !important;
    }

    .user-sidebar-info p {
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    /* Bookings hero */
    .bookings-hero { padding: 50px 0 40px !important; }
    .hero-title { font-size: 1.8rem !important; }
    .hero-subtitle { font-size: 0.95rem !important; }

    /* innerpagewrap */
    .innerpagewrap { padding: 20px 0 !important; }

    /* Timeline */
    .timeline-content { padding: 14px !important; }
    .timeline-item { padding-left: 2rem !important; }

    /* Filtres dashboard */
    .filter-section .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Booking cards (vols, hôtels, tours, cars) */
    .flight-booking-card,
    .hotel-booking-card,
    .car-booking-card,
    .booking-card {
        margin-bottom: 16px !important;
    }

    /* Booking card header flex → colonne */
    .flight-card-header,
    .hotel-card-header,
    .booking-header {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    /* Booking card footer */
    .hotel-card-footer,
    .flight-card-footer,
    .booking-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .hotel-card-footer .btn,
    .flight-card-footer .btn,
    .booking-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Booking content row */
    .booking-content .row > [class*="col-lg"],
    .booking-content .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Mes avis — table responsive */
    .myjobtable { font-size: 0.82rem !important; }
    .myjobtable th, .myjobtable td { padding: 8px 6px !important; }

    /* Profil */
    .user-profile-container { padding: 20px 0 !important; }
    .user-profile-header { padding: 28px 16px !important; }
    .user-profile-name { font-size: 1.4rem !important; }
    .user-profile-content { padding: 20px 16px !important; }
    .user-profile-avatar { width: 80px !important; height: 80px !important; }

    /* Change password */
    .password-change-container { padding: 20px 0 !important; }
    .password-change-card { margin: 0 8px !important; }
    .password-change-header { padding: 24px 16px !important; }
    .password-change-body { padding: 20px 16px !important; }
    .password-change-body .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Historique paiements */
    .payment-history-container { padding: 20px 0 !important; }
    .payment-history-header { padding: 28px 16px !important; }
    .payment-history-header h1 { font-size: 1.6rem !important; }
    .payment-transaction-details { grid-template-columns: 1fr !important; }
    .payment-transaction-header { flex-direction: column !important; gap: 8px !important; }

    /* Payment methods */
    .payment-methods-container { padding: 20px 0 !important; }
    .payment-methods-header { padding: 28px 16px !important; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem !important; }
    .user-profile-name { font-size: 1.2rem !important; }
    .payment-history-header h1 { font-size: 1.4rem !important; }
}

/* ── 9. CART & CHECKOUT ─────────────────────────────────────── */
@media (max-width: 768px) {
    /* Cart layout — déjà géré inline, on renforce */
    .cart-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .cart-summary { position: static !important; }

    /* Cart items */
    .cart-item { padding: 1rem !important; }
    .item-header { flex-wrap: wrap !important; gap: 8px !important; }
    .item-price { font-size: 1rem !important; }

    /* Cart header */
    .cart-header h1 { font-size: 1.8rem !important; }
    .cart-items { padding: 1rem !important; }

    /* Checkout payment card */
    .payment-card { padding: 16px !important; }
    .total-amount-card .total-content {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    .total-amount-card h2 { font-size: 1.8rem !important; }

    /* Cart success */
    .cart-success-card { padding: 24px 16px !important; }
}

@media (max-width: 576px) {
    .cart-header h1 { font-size: 1.5rem !important; }
    .cart-container { padding: 1rem 0 !important; }
}

/* ── 10. VISA PAGES ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .visa-countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .visa-apply-form .row > [class*="col-md"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .visa-countries-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── 11. AUTH PAGES ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .account-main {
        padding: 30px 20px !important;
        margin: 0 8px;
    }

    .account-title h3 {
        font-size: 1.5rem !important;
    }

    .innerpagewrap.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .account-main {
        padding: 24px 16px !important;
        margin: 0 4px;
        border-radius: 12px !important;
    }

    .account-title h3 {
        font-size: 1.3rem !important;
    }

    /* Boutons auth pleine largeur */
    .account-main .btn {
        font-size: 0.95rem !important;
    }

    /* Champs auth */
    .account-main .form-control {
        font-size: 16px !important; /* évite le zoom iOS */
    }

    /* Auth card */
    .auth-card {
        margin: 0 12px !important;
        border-radius: 16px !important;
    }

    .auth-card .card-body {
        padding: 24px 16px !important;
    }
}

/* ── 12. INVOICE & CONFIRMATION ─────────────────────────────── */
@media (max-width: 768px) {
    .invoice-header {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .invoice-table {
        font-size: 0.82rem !important;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 8px 6px !important;
    }

    .confirmation-card { padding: 24px 16px !important; }
    .confirmation-container { padding: 24px 12px !important; }
    .confirmation-success { padding: 28px 16px !important; }
    .confirmation-success h2 { font-size: 1.5rem !important; }
    .confirmation-success i { font-size: 56px !important; }
    .booking-reference strong { font-size: 1.2rem !important; letter-spacing: 1px !important; }

    /* Action buttons confirmation hôtel */
    .action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .action-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Info rows */
    .info-row {
        flex-direction: column !important;
        gap: 4px !important;
    }
    .info-row .info-value {
        font-weight: 600;
    }

    /* Confirmation actions génériques */
    .confirmation-actions,
    .success-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .confirmation-actions .btn,
    .success-actions .btn,
    .success-actions a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Car booking success */
    .booking-details .details-grid .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .confirmation-success h2 { font-size: 1.3rem !important; }
    .confirmation-success i { font-size: 44px !important; }
}

/* ── 13. REVIEWS ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .review-card { padding: 16px !important; }
    .review-header { flex-direction: column !important; gap: 8px !important; }

    /* Reviews list page */
    .reviews-list .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ── 14. PAGES SECONDAIRES (blog, services, contact, legal) ─── */
@media (max-width: 991px) {
    /* Blog — sidebar passe en bas */
    .blogsidebar.sticky-top {
        position: static !important;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    /* Blog listing */
    .hmblog { padding: 40px 0 !important; }
    .subposts { margin-bottom: 20px !important; }

    /* Blog col-lg-6 → 1 colonne sur mobile */
    .hmblog .row > .col-lg-6,
    #blog .row > .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Services listing */
    .serviceslisting li.row > [class*="col-lg"],
    .serviceslisting li.row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .servpostimg { margin-bottom: 16px !important; }
    .servpostimg img { width: 100% !important; border-radius: 10px !important; }

    /* Contact form */
    .contact-form-wrap { padding: 24px 16px !important; }
    .contact-form-wrap .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Legal pages */
    .container.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

    /* CMS pages */
    .cms-content { padding: 20px 0 !important; }
    .cms-content img { max-width: 100% !important; height: auto !important; }
}

/* ── 15. FOOTER ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    footer .row > [class*="col-md"],
    footer .row > [class*="col-lg"] {
        margin-bottom: 24px;
    }

    footer .footer-links {
        columns: 2;
    }
}

@media (max-width: 576px) {
    footer .footer-links {
        columns: 1;
    }
}

/* ── 16. UTILITAIRES GLOBAUX ────────────────────────────────── */
@media (max-width: 768px) {
    /* Inputs — éviter le zoom iOS (font-size < 16px déclenche le zoom) */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Tables scrollables */
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Forcer table-responsive sur toutes les tables dans les pages dashboard */
    .dashtask .table-responsive,
    .innerpagewrap .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Boutons pleine largeur sur mobile */
    .btn-mobile-full {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Masquer sur mobile */
    .d-mobile-none {
        display: none !important;
    }

    /* Afficher seulement sur mobile */
    .d-mobile-block {
        display: block !important;
    }

    /* Espacement réduit */
    .section-padding {
        padding: 40px 0 !important;
    }

    /* Titres de section */
    .section-title h3 {
        font-size: 1.5rem !important;
    }

    .section-title p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 30px 0 !important;
    }

    .section-title h3 {
        font-size: 1.3rem !important;
    }

    /* Container padding */
    .container,
    .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ── 17. MODE APP — ajustements spécifiques ─────────────────── */
body.app-mode .bookings-hero {
    padding: 40px 0 30px !important;
}

body.app-mode .hero-title {
    font-size: 1.6rem !important;
}

body.app-mode .hotel-hero-text,
body.app-mode .tours-hero-text,
body.app-mode .cars-hero-text {
    padding-bottom: 100px !important;
}

/* Mode app — masquer éléments non pertinents */
body.app-mode .contact-hero { padding: 50px 0 40px !important; }
body.app-mode .blogsidebar { display: none !important; }
body.app-mode .blogsidebar + [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Mode app — padding bottom pour la bottom nav (renforce le body padding) */
body.app-mode main,
body.app-mode .innerpagewrap,
body.app-mode .hbs-wrap,
body.app-mode .booking-steps-container,
body.app-mode .ps-section,
body.app-mode .user-profile-container,
body.app-mode .payment-history-container {
    padding-bottom: 20px !important;
}

@media (max-width: 768px) {
    body.app-mode .hotel-hero-slide,
    body.app-mode .tours-hero-slide,
    body.app-mode .cars-hero-slide {
        min-height: 35vh !important;
    }

    /* Mode app — navbar réduite */
    body.app-mode .site-navbar .nav-inner {
        height: 60px !important;
    }

    body.app-mode .site-navbar.scrolled .nav-inner {
        height: 54px !important;
    }
}

/* ============================================================
   USER AREA v3 — Dashboard, réservations, profil, paiements
   Classe body: .user-area | Layout: .dashboard-layout
   ============================================================ */

html {
    -webkit-text-size-adjust: 100%;
}

body.user-area {
    overflow-x: hidden;
}

/* Ne pas forcer le container en pleine largeur sur desktop (effet « zoom ») */
@media (max-width: 767.98px) {
    .user-area .container-fluid {
        max-width: 100%;
    }
}

/* Layout dashboard : sidebar + contenu */
.user-area .dashboard-layout {
    --bs-gutter-x: 1rem;
}

.user-area .dashboard-layout > .sidebar-col,
.user-area .innerpagewrap .row:has(.user-sidebar-wrap) > .col-lg-3,
.user-area .innerpagewrap .row:has(.user-sidebar-wrap) > [class*="col-lg-3"] {
    margin-bottom: 0;
}

.user-area .user-main-col {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .user-area .dashboard-layout > .sidebar-col {
        order: -1;
        margin-bottom: 1rem;
    }

    .user-area .dashboard-layout > .user-main-col {
        order: 0;
    }

    .user-area .innerpagewrap .row:has(.user-sidebar-wrap) > [class*="col-lg-3"] {
        order: -1;
        margin-bottom: 1rem;
    }
}

/* Sidebar : nav horizontale mobile (renforce) */
@media (max-width: 991.98px) {
    .user-area .user-sidebar-wrap {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(30, 56, 137, 0.08);
    }
}

/* Hero pages compte */
.user-area .bookings-hero .hero-title {
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 575.98px) {
    .user-area .bookings-hero {
        padding: 2.5rem 0 2rem !important;
    }

    .user-area .bookings-hero .hero-title {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        padding: 0 0.5rem;
    }
}

/* Contenu principal */
.user-area .innerpagewrap {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

@media (max-width: 767.98px) {
    .user-area .innerpagewrap {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .user-area .innerpagewrap > .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Cartes réservations & listes */
.user-area .booking-card,
.user-area .flight-booking-card,
.user-area .hotel-booking-card,
.user-area .car-booking-card,
.user-area .tour-booking-card,
.user-area .visa-application-card,
.user-area .dashboard-stat-card,
.user-area .filter-section,
.user-area .user-profile-card,
.user-area .payment-history-card,
.user-area .payment-transaction-card {
    max-width: 100%;
}

.user-area .booking-card .row > [class*="col-"],
.user-area .flight-booking-card .row > [class*="col-"],
.user-area .hotel-booking-card .row > [class*="col-"] {
    min-width: 0;
}

/* Grilles stats dashboard */
@media (max-width: 767.98px) {
    .user-area .dashboard-stats .col-md-3,
    .user-area .dashboard-stats .col-md-4,
    .user-area .dashboard-stats .col-md-6,
    .user-area .stats-row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .user-area .dashboard-stats .col-md-3,
    .user-area .dashboard-stats .col-md-4,
    .user-area .dashboard-stats .col-md-6,
    .user-area .stats-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Tables : défilement horizontal sans casser la page */
.user-area .table-responsive {
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.user-area .table {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .user-area .myjobtable {
        font-size: 0.8rem;
    }

    .user-area .myjobtable th,
    .user-area .myjobtable td {
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }
}

/* Filtres & formulaires */
.user-area .filter-section .row.g-3 > [class*="col-"],
.user-area .filter-section .row > [class*="col-md"],
.user-area .dashboard-filters .row > [class*="col-"] {
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .user-area .filter-section .btn,
    .user-area .dashboard-filters .btn {
        width: 100%;
    }

    .user-area .filter-section .d-flex.gap-2,
    .user-area .filter-section .btn-group {
        flex-direction: column;
        width: 100%;
    }
}

/* Boutons d'action empilés sur mobile */
@media (max-width: 575.98px) {
    .user-area .btn-group:not(.user-sidebar-nav) {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .user-area .btn-group:not(.user-sidebar-nav) > .btn {
        width: 100%;
        border-radius: 8px !important;
        margin-bottom: 4px;
    }

    .user-area .booking-actions,
    .user-area .card-footer .d-flex,
    .user-area .d-flex.flex-wrap.gap-2:has(.btn) {
        flex-direction: column;
    }

    .user-area .booking-actions .btn,
    .user-area .card-footer .btn {
        width: 100%;
    }
}

/* Grille réservations tours */
@media (max-width: 767.98px) {
    .user-area .bookings-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .user-area .bookings-section {
        padding-top: 0 !important;
    }
}

/* Timeline dashboard */
.user-area .timeline-item {
    padding-left: 1.75rem;
}

@media (max-width: 575.98px) {
    .user-area .timeline-content h6 {
        font-size: 0.95rem;
    }

    .user-area .timeline-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.35rem;
    }
}

/* Profil (page sans sidebar classique) */
.user-area .user-profile-container,
.user-area .payment-history-container,
.user-area .payment-methods-container,
.user-area .password-change-container {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 767.98px) {
    .user-area .user-profile-card,
    .user-area .password-change-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px;
    }

    .user-area .user-profile-header,
    .user-area .user-profile-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Pagination */
.user-area .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* Alertes */
.user-area .alert {
    word-break: break-word;
}

/* Images & médias */
.user-area img {
    max-width: 100%;
    height: auto;
}

/* Pages publiques connectées — renfort global (tous utilisateurs) */
@media (max-width: 991.98px) {
    .innerpagewrap .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .row:not(.g-0) {
        margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    }
}

@media (max-width: 767.98px) {
    /* Navbar : menu mobile */
    .site-navbar .navbar-collapse,
    .site-navbar .nav-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* Footer colonnes */
    footer .row > [class*="col-"],
    .footer .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }

    /* Formulaires réservation — champs pleine largeur */
    .booking-steps-container .row > [class*="col-md"],
    .booking-steps-container .row > [class*="col-lg"],
    .hbs-wrap .row > [class*="col-md"],
    .hbs-wrap .row > [class*="col-lg"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Cart & checkout */
    .cart-item-row,
    .checkout-summary {
        flex-direction: column !important;
    }

    .cart-item-row .col-md-4,
    .cart-item-row .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Auth */
    .auth-card,
    .login-form-wrap {
        padding: 1.25rem !important;
        margin: 0 12px;
    }

    /* Modales plein écran léger */
    .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

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

@media (max-width: 575.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1, .h1 { font-size: 1.65rem; }
    h2, .h2 { font-size: 1.4rem; }

    .btn-lg {
        padding: 0.65rem 1rem;
        font-size: 1rem;
    }

    /* Grilles listing 2 colonnes → 1 */
    .hotel-list-card .col-sm-6,
    .tour-list-card .col-sm-6,
    .car-list-card .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Touch targets minimum */
@media (max-width: 991.98px) {
    .user-sidebar-link,
    .site-navbar a.nav-link,
    .btn,
    button:not(.btn-close) {
        min-height: 44px;
    }

    .user-sidebar-link {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Réduction mouvement */
@media (prefers-reduced-motion: reduce) {
    .user-sidebar-link,
    .booking-card,
    .btn {
        transition: none !important;
    }
}

/* ============================================================
   18. PAGES PUBLIQUES — revue module par module
   Accueil → Listings → Détail → Booking → Panier → Visa → Static
   ============================================================ */

/* 18.1 ACCUEIL (welcome) */
@media (max-width: 991px) {
    .parallax-section {
        padding: 48px 0 !important;
    }

    #heroCarousel .carousel-item {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .search-tabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding: 0 12px 6px !important;
        margin-bottom: 12px !important;
    }

    .search-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .search-tab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.82rem !important;
        padding: 8px 14px !important;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
    }

    #heroCarousel .slider-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
        margin-top: 1.25rem !important;
    }

    #heroCarousel .slider-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    .topdesti .col-lg-2,
    .topdesti .col-md-4,
    .topdesti .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .section-title h3 {
        font-size: 1.65rem !important;
    }

    .homevideocontent {
        padding: 0 12px !important;
        text-align: center;
    }

    .partners-section .row > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 16px;
    }
}

@media (max-width: 576px) {
    #heroCarousel .carousel-indicators {
        margin-bottom: 0.5rem;
    }

    .topdesti .col-lg-2 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .partners-section .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* 18.2 VOLS — offres & recherche */
@media (max-width: 991px) {
    .flights-hero-slide {
        min-height: 38vh !important;
    }
}

@media (max-width: 768px) {
    .fd-card-wrap,
    .flight-offers-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .fd-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .flightinfowrap .flightprices .btn,
    .flight-detail-actions .btn {
        width: 100% !important;
    }

    .flight-list .flight-item {
        padding: 12px !important;
    }
}

/* 18.3 VISA — page vitrine & demande */
@media (max-width: 768px) {
    .visa-apply-hero-title {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
    }

    .visa-apply-hero-title .fa-arrow-right {
        display: block !important;
        margin: 8px auto !important;
        transform: rotate(90deg);
    }

    .visa-process-section .row > [class*="col-md"],
    .visa-process-section .row > [class*="col-lg"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px;
    }

    .visa-badge-card,
    .visa-stat-card {
        margin-bottom: 12px;
    }

    .visa-country-card {
        margin-bottom: 16px;
    }

    .visa-apply-body .visa-type-grid,
    .visa-apply-body .doc-upload-grid {
        grid-template-columns: 1fr !important;
    }

    .visa-apply-hero {
        padding: 32px 0 !important;
    }
}

@media (max-width: 576px) {
    .visa-faq .accordion-button {
        font-size: 0.9rem !important;
        padding: 12px 14px !important;
    }
}

/* 18.4 CONTACT & PAGES STATIQUES */
@media (max-width: 768px) {
    .contact-hero {
        padding: 48px 0 36px !important;
    }

    .contact-hero-body h1 {
        font-size: 1.75rem !important;
    }

    .contact-cards-row > [class*="col-lg"],
    .contact-cards-row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .contact-form-wrap,
    .contact-map-wrap {
        margin-top: 16px;
    }

    .legal-content,
    .cms-page-content {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .legal-content table,
    .cms-page-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .serviceslisting .servpostimg {
        margin-bottom: 20px !important;
    }
}

/* 18.5 GDS / DÉTAIL HÔTEL — chambres & modales */
@media (max-width: 768px) {
    .room-price-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .room-price-row .btn-room-select,
    .room-price-row .btn-room-detail {
        width: 100% !important;
        justify-content: center !important;
    }

    .rd-modal-box {
        width: calc(100% - 16px) !important;
        margin: 8px auto !important;
        max-height: calc(100vh - 16px) !important;
    }

    .rd-feat-grid {
        grid-template-columns: 1fr !important;
    }

    .hd-hero-content {
        padding: 20px 16px !important;
    }

    .hd-meta {
        gap: 8px !important;
    }
}

/* 18.6 CIRCUITS — grille & cartes */
@media (max-width: 768px) {
    .tourslist .tour-card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .tourslist .tour-card-footer .btn {
        width: 100% !important;
    }

    .tourslist .tour-card-image img,
    .tourslist .tour-img {
        height: 200px !important;
        object-fit: cover;
    }
}

/* 18.7 VOITURES — résultats */
@media (max-width: 768px) {
    .carslist .car-card,
    .carslist .vehicle-card {
        margin-bottom: 16px;
    }

    .carslist .results-actions {
        width: 100% !important;
    }

    .carslist .results-actions .btn,
    .carslist .sort-select {
        width: 100% !important;
    }

    .cars-hero-video-wrap {
        min-height: 40vh !important;
    }
}

/* 18.8 PANIER — renfort checkout */
@media (max-width: 768px) {
    .payment-selection .row > [class*="col-lg"],
    .payment-selection .row > [class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .cart-item-details {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .cart-item-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .cart-item-actions .btn {
        flex: 1 1 100%;
    }
}

/* 18.9 NAVBAR PUBLIQUE — menu & actions */
@media (max-width: 767.98px) {
    .site-navbar .nav-actions {
        gap: 6px !important;
    }

    .site-navbar .btn-cart,
    .site-navbar .lang-switcher {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
    }

    .site-navbar .navbar-brand img {
        max-height: 36px !important;
        width: auto !important;
    }
}

/* 18.10 OVERFLOW & TOUCH — pages publiques (hors espace compte) */
body:not(.user-area) {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body:not(.user-area) .table {
        font-size: 0.85rem;
    }

    body:not(.user-area) .table-responsive,
    body:not(.user-area) .innerpagewrap .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body:not(.user-area) img:not([width]) {
        max-width: 100%;
        height: auto;
    }
}

/* ── 19. RENFORT GLOBAL PUBLIC (complète public-responsive.css) ─ */
@media (max-width: 767.98px) {
    .hotels-listing-page .filter-bar,
    .carslist .filter-bar,
    .tourslist .results-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .gds-booking-form .row > [class*="col-"],
    .db-booking-form .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .flight-booking-cards .flight-booking-card,
    .hotel-booking-cards .hotel-booking-card {
        padding: 14px !important;
    }

    .flight-card-header,
    .hotel-card-header,
    .car-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .history-booking-filters .row > [class*="col-"],
    .payment-methods-grid,
    .methods-grid {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .timeline-wrap,
    .dashboard-timeline {
        padding: 0 4px !important;
    }

    .owl-nav button {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 575.98px) {
    .bookings-hero .hero-title {
        font-size: 1.45rem !important;
    }

    .bookings-hero {
        padding: 36px 0 28px !important;
    }
}
