/* ============================================================
   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) ─────────────────── */
@media (max-width: 768px) {
    /* Grille 1 colonne sur mobile */
    .hotelslist .row > [class*="col-md"],
    .tourslist .row > [class*="col-md"],
    .carslist .row > [class*="col-md"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* 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;
    }
}
