/* ============================================================
   mobile.css — Responsive complet pour عمرتك
   Breakpoints : 599px (navbar drawer) | 768px (contenu) | 480px | 360px
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   NAVBAR MOBILE — drawer latéral (≤ 599px uniquement)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 599px) {

    .navbar {
        height: 100px;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1000;
    }
    .nav-wrapper {
        height: 100px;
        padding: 0 12px;
        display: flex !important;
        grid-template-columns: none !important;
        align-items: center;
        width: 100%;
        position: relative;
    }

    /* Reset grid-column sur mobile */
    .logo, .nav-menu, .nav-actions {
        grid-column: unset !important;
        grid-row: unset !important;
    }

    /* Logo centré absolument */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        justify-self: unset !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        z-index: 2;
    }
    .logo-img {
        height: 82px;
        width: auto;
        max-width: none;
        background: none;
        mix-blend-mode: multiply;
        border-radius: 0;
        filter: none !important;
    }
    .logo-slogan { font-size: .78rem; }

    /* nav-actions : avatar (gauche) + burger (droite) */
    .nav-actions {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        z-index: 3;
    }

    /* Bouton avatar mobile */
    .nav-auth-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--green);
        color: #fff !important;
        border: none !important;
        border-radius: 50%;
        font-size: 1.2rem;
        text-decoration: none;
        flex-shrink: 0;
    }

    /* Masquer le bouton desktop */
    .nav-auth-inline { display: none !important; }

    /* Burger */
    .mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px; height: 42px;
        border-radius: 10px;
        background: var(--off-white);
        border: 1.5px solid var(--border);
        font-size: 1.1rem;
        color: var(--text);
        flex-shrink: 0;
        cursor: pointer;
    }

    /* Overlay sombre */
    .nav-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 99998 !important;
        opacity: 0;
        transition: opacity .3s ease;
    }
    .nav-drawer-overlay.open { display: block; opacity: 1; }

    /* ─── Drawer latéral depuis la droite (RTL) ─── */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 78vw !important;
        max-width: 300px !important;
        background: var(--white) !important;
        z-index: 99999 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-items: stretch !important;
        border: none !important;
        box-shadow: -4px 0 24px rgba(0,0,0,.18) !important;
        transform: translateX(105%) !important;
        transition: transform .32s cubic-bezier(.4,0,.2,1) !important;
        visibility: hidden !important;
    }
    .nav-menu.open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* En-tête du drawer */
    .nav-menu::before {
        content: 'القائمة';
        display: block;
        background: #1a1a1a;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        padding: 20px 22px;
        letter-spacing: .01em;
        flex-shrink: 0;
        text-align: right;
        direction: rtl;
    }

    /* Liens dans le drawer */
    .nav-menu .nav-link {
        display: block !important;
        padding: 18px 22px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: var(--text) !important;
        border-bottom: none !important;
        text-align: right !important;
        direction: rtl;
        white-space: nowrap;
        transition: background .15s, color .15s;
    }
    .nav-menu .nav-link i { display: none !important; }
    .nav-menu .nav-link:hover { background: #f5f5f5 !important; }
    .nav-menu .nav-link.active { background: var(--green) !important; color: #fff !important; font-weight: 600 !important; }
    .nav-menu .nav-link--club { background: transparent !important; color: #6C3483 !important; }
    .nav-menu .nav-link--club.active { background: #6C3483 !important; color: #fff !important; }

    /* Dropdowns en accordéon */
    .nav-dropdown { border-bottom: none; }
    .nav-dropdown-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        font-size: 1rem;
        font-weight: 500;
        background: transparent;
        color: var(--text);
        text-align: right;
        direction: rtl;
    }
    .nav-dropdown-trigger i:not(.dd-arrow) { display: none !important; }
    .nav-dropdown-trigger .dd-arrow { margin-right: 0; margin-left: auto; font-size: .8rem; transition: transform .25s; flex-shrink: 0; }
    .nav-dropdown.open .dd-arrow { transform: rotate(180deg); }
    .nav-dropdown-menu { display: none; flex-direction: column; background: #f9f9f9; padding: 4px 0 8px; }
    .nav-dropdown.open .nav-dropdown-menu { display: flex; }
    .dd-item { padding: 13px 36px; font-size: .92rem; text-align: right; direction: rtl; }
    .dd-item i { display: none !important; }
    .dd-badge { display: none; }
    .dd-label { padding: 6px 22px 2px; font-size: .72rem; text-align: right; direction: rtl; opacity: .6; }
    .dd-separator { display: none; }
    .btn-cta { display: none !important; }
}

/* ──────────────────────────────────────────────────────────
   BASE GLOBALE — tous les mobiles (≤ 768px)
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Empêche le zoom auto sur iOS */
    input, select, textarea { font-size: 16px !important; }

    /* Pas de scroll horizontal, scroll vertical toujours actif */
    html { overflow-x: hidden; max-width: 100vw; }
    body { overflow-x: hidden; overflow-y: auto; max-width: 100vw; }
    *, *::before, *::after { box-sizing: border-box; }

    .container { padding: 0 16px; width: 100%; }


    /* ══════════════════════════════════════════════
       HERO — page d'accueil
       ══════════════════════════════════════════════ */

    .hero {
        padding: 110px 0 44px;
        min-height: calc(100svh - 100px);
        min-height: 100svh;
        text-align: center;
        background-color: #003c28 !important;
        background-image:
            linear-gradient(150deg,
                rgba(0,60,40,.50) 0%,
                rgba(0,77,51,.38) 45%,
                rgba(0,40,25,.52) 100%),
            url('../images/hero-mecca.jpg') !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: cover !important;
        -webkit-background-size: cover !important;
    }
    .hero-inner { gap: 18px; }
    .hero-badge { font-size: .76rem; padding: 6px 14px; margin: 0 auto; max-width: calc(100% - 20px); text-align: center; }
    .hero-title { font-size: 1.7rem; line-height: 1.25; }
    .hero-title-gold { display: block; margin-top: 4px; }
    .hero-sub { font-size: .88rem; line-height: 1.65; max-width: 100%; padding: 0 4px; }

    /* Barre de recherche */
    .hero-search { margin: 0; width: 100%; }
    .search-inner {
        border-radius: var(--radius-md);
        padding: 12px;
        gap: 10px;
        width: 100%;
    }
    .search-tabs { gap: 6px; width: 100%; }
    .stab { flex: 1; justify-content: center; font-size: .82rem; padding: 9px 6px; }
    .search-input-row { flex-direction: row; gap: 8px; width: 100%; }
    .search-input-row input {
        flex: 1; min-width: 0;
        font-size: .88rem;
        padding: 11px 14px 11px 38px;
    }
    .search-btn { padding: 11px 12px; font-size: .85rem; flex-shrink: 0; }
    .search-dropdown { left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; }
    .sd-item { padding: 10px 12px; }

    /* Stats hero — ligne horizontale */
    .hero-stats {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 0;
        padding: 10px 12px;
        border-radius: var(--radius-md);
        background: rgba(255,255,255,.12);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,.2);
        width: 100%;
    }
    .hstat-divider {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        width: 1px !important;
        height: 32px !important;
        background: rgba(255,255,255,.3) !important;
        flex-shrink: 0;
    }
    .hstat {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 6px;
        background: none;
        border: none;
    }
    .hstat-num { font-size: 1.2rem; line-height: 1; font-weight: 900; color: var(--gold); }
    .hstat-label { font-size: .68rem; margin-top: 4px; line-height: 1; opacity: .9; white-space: nowrap; }


    /* ══════════════════════════════════════════════
       SECTIONS LISTING (agences & hôtels homepage)
       ══════════════════════════════════════════════ */

    .listing-section { padding: 40px 0; }
    .section-head { margin-bottom: 18px; gap: 8px; text-align: center; align-items: center; }
    .section-title { font-size: 1.45rem; }
    .section-sub { font-size: .86rem; }
    .section-badge { font-size: .73rem; padding: 4px 12px; }

    /* Filtres row */
    .filters-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        margin-bottom: 18px;
    }
    .filter-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-pills::-webkit-scrollbar { display: none; }
    .filter-pills .pill {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: .8rem;
        padding: 7px 12px;
    }
    .sort-select { width: 100%; font-size: .88rem; padding: 10px 12px; }

    /* Carousel wrapper — laisse de la place aux boutons flèches */
    .carousel-wrapper {
        margin: 0;
        padding: 0 40px;   /* espace latéral pour les boutons */
        position: relative;
    }
    .carousel-track-container {
        overflow: hidden;
        width: 100%;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .carousel-track {
        display: flex;
        gap: 14px;
        padding-bottom: 6px;
        padding-top: 4px;
        transition: transform .35s ease;
        will-change: transform;
    }

    /* Cartes dans le carousel */
    .carousel-track .entity-card {
        flex: 0 0 272px;
        min-width: 272px;
        max-width: 272px;
    }

    /* Boutons flèches — à l'intérieur du padding */
    .carousel-btn {
        display: flex !important;   /* toujours visibles */
        width: 36px; height: 36px;
        font-size: .8rem;
        top: 50%;
        transform: translateY(-50%);
        background: var(--white);
        border: 2px solid var(--border);
        box-shadow: 0 2px 8px rgba(0,0,0,.14);
        border-radius: 50%;
        color: var(--text);
        z-index: 10;
    }
    .carousel-btn--prev { right: 2px; }
    .carousel-btn--next { left: 2px; }

    /* Dots */
    .carousel-dots { margin-top: 14px; gap: 6px; }
    .carousel-dot { width: 8px; height: 8px; }


    /* ── ENTITY CARD (homepage carousel) ── */
    .entity-card {
        overflow: hidden;
        border-radius: var(--radius-md);
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .entity-photo {
        width: 100%;
        height: 130px;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
    }
    .entity-card-body {
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }
    .entity-top {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .entity-avatar {
        width: 44px; height: 44px;
        font-size: .95rem;
        flex-shrink: 0;
        border-radius: 10px;
    }
    .hotel-stars-block {
        width: 36px; height: 36px;
        flex-shrink: 0;
        padding: 3px;
    }
    .entity-meta { flex: 1; min-width: 0; }
    .entity-name { font-size: .95rem; font-weight: 700; margin-bottom: 2px; word-break: break-word; }
    .entity-location { font-size: .78rem; }
    .entity-score { flex-shrink: 0; text-align: right; }
    .score-big { font-size: 1.6rem; }
    .score-max { font-size: .72rem; }

    .stars-row { gap: 3px; flex-wrap: wrap; }
    .stars-row i { font-size: .78rem; }
    .reviews-count { font-size: .75rem; }

    /* Trustpilot tp-star — mobile */
    .tp-star { width: 20px; height: 20px; font-size: .6rem; border-radius: 3px; }
    .tp-star--sm { width: 18px; height: 18px; font-size: .55rem; border-radius: 3px; }
    .tp-star--xs { width: 13px; height: 13px; font-size: .42rem; border-radius: 2px; }
    .tp-rating-block { gap: 5px; flex-wrap: wrap; }
    .tp-score-num { font-size: 1rem; }
    .tp-score-sep { font-size: .7rem; }
    .tp-stars-row { gap: 2px; }
    .tp-rev-count { font-size: .72rem; }

    .rating-bars { gap: 5px; }
    .rbar { gap: 5px; align-items: center; }
    .rbar span:first-child { font-size: .72rem; width: 56px !important; min-width: 56px; max-width: 56px; flex-shrink: 0; }
    .rbar-track { flex: 1; height: 5px; border-radius: 3px; min-width: 0; overflow: hidden; }
    .rbar span:last-child { font-size: .72rem; min-width: 24px; max-width: 28px; text-align: left; font-weight: 700; }

    .entity-tags { gap: 6px; flex-wrap: wrap; display: none; }
    .etag { font-size: .7rem; padding: 3px 8px; }

    /* Boutons lecture avis — pleine largeur, lisibles */
    .btn-read-reviews,
    .btn-add-review {
        padding: 10px 8px;
        font-size: .76rem;
        gap: 5px;
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-sm);
    }
    /* Wrapper côte à côte sur mobile */
    .card-cta-row {
        display: flex;
        gap: 7px;
        margin-top: auto;
        width: 100%;
    }
    .card-cta-row .btn-read-reviews,
    .card-cta-row .btn-add-review {
        flex: 1;
        min-width: 0;
        width: auto;
        margin-top: 0;
        padding: 9px 6px;
        font-size: .72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Quand les deux boutons sont côte à côte */
    .entity-card-body .btn-read-reviews + .btn-add-review {
        margin-top: 6px;
    }

    .entity-rank {
        width: 28px; height: 28px;
        font-size: .7rem;
        top: 8px;
        /* En RTL, le rank à gauche, le badge distance reste à droite */
        right: auto;
        left: 8px;
    }
    .hotel-distance-badge {
        position: static;
        display: inline-flex;
        font-size: .68rem;
        padding: 4px 10px;
        margin: 0 0 4px 0;
        width: fit-content;
        border-radius: 100px;
    }


    /* ══════════════════════════════════════════════
       BANNIÈRE CLUB (homepage)
       ══════════════════════════════════════════════ */

    .club-banner-section { padding: 16px 0; }
    .club-banner { border-radius: var(--radius-md); padding: 24px 16px; }
    .club-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .club-banner-icon { width: 48px; height: 48px; font-size: 1.3rem; }
    .club-banner-title { font-size: 1.35rem; }
    .club-banner-desc { font-size: .85rem; }
    .club-banner-features { flex-wrap: wrap; gap: 7px; }
    .club-banner-features span { font-size: .78rem; }
    .club-banner-actions { width: 100%; flex-direction: column; gap: 10px; }
    .club-banner-btn-primary,
    .club-banner-btn-secondary {
        width: 100%; justify-content: center;
        padding: 12px 14px; font-size: .9rem;
    }
    .club-banner-stats {
        justify-content: center; width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,.2);
    }


    /* ══════════════════════════════════════════════
       AVIS (آخر التقييمات)
       ══════════════════════════════════════════════ */

    .reviews-feed { padding: 40px 0; }
    .review-item { gap: 12px; }
    .review-left { display: none; }
    .review-body {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 14px;
        width: 100%;
    }
    .review-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .reviewer-name { font-size: .9rem; }
    .reviewer-city { font-size: .76rem; }
    .review-stars i { font-size: .82rem; }
    .review-text { font-size: .85rem; line-height: 1.6; }
    .review-target { font-size: .78rem; flex-wrap: wrap; gap: 6px; }
    .review-useful { margin-top: 8px; }
    .useful-btn { font-size: .8rem; padding: 5px 10px; }
    .reviews-list { gap: 10px; }
    .btn-load-more { font-size: .88rem; padding: 11px 22px; }


    /* ══════════════════════════════════════════════
       FORMULAIRE TAQYIM (bas de page)
       ══════════════════════════════════════════════ */

    .review-form-section { padding: 40px 0; }
    .form-wrapper { gap: 20px; }
    .form-info { padding: 20px 16px; border-radius: var(--radius-md); }
    .form-info-icon { font-size: 1.8rem; width: 48px; height: 48px; }
    .form-info h3 { font-size: 1rem; }
    .form-info-list li { font-size: .82rem; gap: 7px; }
    .form-info-quote { padding: 10px 12px; }
    .form-club-cta { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
    .review-form { padding: 18px 14px; }
    .form-group { gap: 5px; }
    .form-label { font-size: .83rem; }
    .form-input, .form-textarea { font-size: .88rem; padding: 10px 12px; }
    .type-toggle { gap: 8px; }
    .type-btn { padding: 10px 12px; font-size: .85rem; }
    .form-row-2 { grid-template-columns: 1fr; gap: 10px; }
    .criteria-grid { gap: 8px; }
    .criterion-row { flex-wrap: nowrap; gap: 8px; padding: 8px 0; }
    .criterion-label { font-size: .8rem; min-width: 85px; flex: 1; }
    .star-rating i { font-size: 1.15rem; }
    .overall-num { font-size: 1.9rem; }
    .recommend-toggle { gap: 8px; }
    .rec-option span { padding: 10px 10px; font-size: .85rem; }
    .form-submit { padding: 13px 18px; font-size: .9rem; }


    /* ══════════════════════════════════════════════
       MODAL LECTURE AVIS
       ══════════════════════════════════════════════ */

    .modal {
        width: calc(100vw - 24px);
        max-height: 88vh;
        border-radius: var(--radius-md);
    }
    .modal-header { padding: 16px 16px 12px; }
    .modal-title { font-size: 1.05rem; }
    .modal-body { padding: 14px 16px; gap: 12px; }
    .modal-review-item { padding: 12px; }


    /* ══════════════════════════════════════════════
       MODAL TAQYIM RAPIDE
       ══════════════════════════════════════════════ */

    .review-modal-overlay { align-items: flex-end; padding: 0; }
    .review-modal {
        max-width: 100%; width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
    }
    .review-modal.open { transform: translateY(0); }
    .rm-header { padding: 14px 16px 12px; }
    .rm-entity-avatar { width: 38px; height: 38px; border-radius: 8px; font-size: .82rem; }
    .rm-title { font-size: .9rem; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rm-label { font-size: .68rem; }
    .rm-body { padding: 16px 14px; }
    .rm-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rm-criterion-row { padding: 7px 10px; gap: 7px; }
    .rm-crit-label { font-size: .78rem; }
    .rm-star { font-size: 1.1rem; }
    .rm-star-row { gap: 2px; }
    .rm-next-btn, .rm-submit-btn { padding: 12px; font-size: .88rem; }
    .rm-success { padding: 22px 10px; }
    .rm-success-icon { font-size: 2.8rem; }
    .rm-success h3 { font-size: 1.15rem; }


    /* ══════════════════════════════════════════════
       FOOTER
       ══════════════════════════════════════════════ */

    .footer { padding: 36px 0 20px; }
    .footer-top { grid-template-columns: 1fr; gap: 22px; }
    .footer-brand p { font-size: .83rem; line-height: 1.6; }
    .footer-social { gap: 8px; }
    .footer-social a { width: 36px; height: 36px; font-size: .88rem; }
    .footer-col h4 { font-size: .86rem; margin-bottom: 8px; padding-bottom: 8px; }
    .footer-col ul { gap: 5px; }
    .footer-col li a { font-size: .8rem; padding: 3px 0; }
    .footer-contact-list li { font-size: .8rem; gap: 7px; }
    .footer-bottom {
        flex-direction: column; gap: 8px;
        text-align: center; padding-top: 14px; margin-top: 20px;
    }
    .footer-bottom p { font-size: .76rem; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .footer-bottom-links a { font-size: .76rem; }


    /* ══════════════════════════════════════════════
       TOAST & SCROLL TOP
       ══════════════════════════════════════════════ */

    .toast {
        left: 12px; right: 12px; bottom: 16px;
        font-size: .83rem; padding: 11px 14px;
        transform: translateY(120%);
    }
    .toast.show { transform: translateY(0); }
    .scroll-top { bottom: 20px; left: 14px; width: 40px; height: 40px; font-size: .88rem; }


    /* ══════════════════════════════════════════════
       EXPLORE GRID (homepage cards section)
       ══════════════════════════════════════════════ */

    .explore-grid { grid-template-columns: 1fr; gap: 12px; }
    .explore-card { padding: 16px; gap: 12px; }
    .explore-card-icon { width: 46px; height: 46px; font-size: 1.2rem; }
    .explore-card-body h3 { font-size: 1rem; }
    .explore-card-body p { font-size: .8rem; }
    .explore-card-stats span { font-size: .72rem; }


    /* ══════════════════════════════════════════════
       CAROUSEL REVIEWS (témoignages)
       ══════════════════════════════════════════════ */

    #carouselReviews { padding: 0 40px; }
    .review-card {
        flex: 0 0 272px;
        min-width: 272px;
        max-width: 272px;
        padding: 16px 14px 12px;
        gap: 10px;
    }
    .review-card-meta .reviewer-name { font-size: .88rem; }
    .review-card-meta .reviewer-city { font-size: .74rem; }
    .review-card-text { font-size: .82rem; -webkit-line-clamp: 5; }
    .review-card-target { font-size: .78rem; padding: 6px 10px; }


    /* ══════════════════════════════════════════════
       CTA — bouton Rejoindre le club
       ══════════════════════════════════════════════ */

    .cm-join-cta { margin-top: 24px; padding: 0 4px; }
    .cm-join-cta-btn {
        padding: 14px 20px;
        gap: 14px;
        border-radius: 14px;
        max-width: 100%;
    }
    .cm-join-cta-icon { width: 46px; height: 46px; font-size: 1.25rem; }
    .cm-join-cta-text strong { font-size: .95rem; }
    .cm-join-cta-text small { font-size: .78rem; }


    /* ══════════════════════════════════════════════
       CTA ROW
       ══════════════════════════════════════════════ */

    .section-cta-row { flex-direction: column; gap: 10px; margin-top: 18px; }
    .section-cta-btn { justify-content: center; width: 100%; padding: 12px 14px; font-size: .88rem; }
}


/* ──────────────────────────────────────────────────────────
   480px — petits mobiles
   ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    .container { padding: 0 12px; }
    .logo-img { height: 88px; width: auto; max-width: none; background: none; mix-blend-mode: multiply; border-radius: 0; filter: none !important; }
    .logo-slogan { font-size: .72rem; }
    .mobile-toggle { width: 38px; height: 38px; }
    .nav-auth-btn { width: 36px; height: 36px; font-size: 1rem; }

    /* Hero */
    .hero { padding: 82px 0 32px; }
    .hero-title { font-size: 1.45rem; }
    .hero-badge { font-size: .7rem; }
    .hero-sub { font-size: .82rem; }
    .hero-stats { padding: 8px 6px; }
    .hstat-num { font-size: 1rem; }
    .hstat-label { font-size: .6rem; }
    .stab { padding: 7px 5px; font-size: .74rem; }
    .search-btn { padding: 9px 8px; font-size: .78rem; }
    /* Hero paths 480px */
    .hero-path { padding: 14px 12px 12px; gap: 10px; border-radius: 14px; }
    .hero-path-icon { width: 38px; height: 38px; font-size: 1rem; }
    .hero-path-title { font-size: .92rem; }
    .hero-path-desc { font-size: .76rem; }
    .hero-contrib-btn { padding: 9px 10px; gap: 8px; }
    .hero-contrib-btn-icon { width: 30px; height: 30px; font-size: .78rem; }
    .hero-contrib-btn-text strong { font-size: .78rem; }
    .hero-contrib-btn-text em { font-size: .68rem; }
    .hero-path-quick-link { font-size: .7rem; padding: 3px 7px; }
    .hero-club-cta { padding: 10px 11px; gap: 9px; border-radius: 11px; margin-top: 10px; }
    .hero-club-cta-icon { width: 34px; height: 34px; font-size: .88rem; }
    .hero-club-cta-text strong { font-size: .78rem; }
    .hero-club-cta-text span { font-size: .68rem; }
    /* CTA bouton 480px */
    .cm-join-cta-btn { padding: 12px 16px; gap: 10px; border-radius: 12px; }
    .cm-join-cta-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .cm-join-cta-text strong { font-size: .9rem; }
    .cm-join-cta-text small { font-size: .74rem; }

    /* Carousel 480px — carte quasi pleine largeur */
    .carousel-track .entity-card {
        flex: 0 0 calc(100vw - 96px); /* 96px = 2 × padding 40px + gap */
        min-width: calc(100vw - 96px);
        max-width: calc(100vw - 96px);
    }
    /* Review cards 480px */
    .review-card {
        flex: 0 0 calc(100vw - 96px);
        min-width: calc(100vw - 96px);
        max-width: calc(100vw - 96px);
    }
    .carousel-track-container { -webkit-mask-image: none; mask-image: none; }
    /* Boutons toujours visibles à 480px */
    .carousel-btn {
        display: flex !important;
        width: 32px; height: 32px;
        font-size: .72rem;
    }
    .carousel-btn--prev { right: 2px; }
    .carousel-btn--next { left: 2px; }

    /* Cartes */
    .entity-photo { height: 140px; }
    .entity-card-body { padding: 12px; gap: 8px; }
    .entity-name { font-size: .9rem; }
    .entity-avatar, .hotel-stars-block { width: 40px; height: 40px; }

    /* tp-star — très petits écrans */
    .tp-star { width: 18px; height: 18px; font-size: .55rem; }
    .tp-star--sm { width: 16px; height: 16px; font-size: .5rem; }
    .tp-star--xs { width: 12px; height: 12px; font-size: .38rem; }
    .tp-score-num { font-size: .92rem; }
    .tp-rev-count { font-size: .68rem; }

    /* Sections */
    .section-title { font-size: 1.25rem; }
    .section-sub { font-size: .8rem; }
    .club-banner { padding: 18px 14px; }
    .club-banner-title { font-size: 1.15rem; }
    .club-banner-btn-primary, .club-banner-btn-secondary { font-size: .85rem; padding: 11px 12px; }

    /* Form */
    .form-input, .form-textarea { padding: 9px 11px; }
    .form-submit { font-size: .88rem; padding: 12px; }

    /* Modal taqyim rapide */
    .rm-row { grid-template-columns: 1fr; }
    .rm-actions { flex-direction: column-reverse; gap: 8px; }
    .rm-back-btn { text-align: center; justify-content: center; }
    .rm-title { max-width: 140px; font-size: .84rem; }
    .modal-title { font-size: .95rem; }

    .footer-logo-img { height: 70px; }
    .section-cta-btn { font-size: .82rem; padding: 11px 12px; }
}


/* ──────────────────────────────────────────────────────────
   360px — très petits écrans
   ────────────────────────────────────────────────────────── */
@media (max-width: 360px) {

    .container { padding: 0 10px; }
    .hero-title { font-size: 1.2rem; }
    .hero-path { padding: 12px 10px 10px; gap: 8px; }
    .hero-path-title { font-size: .86rem; }
    .hero-path-desc { font-size: .72rem; }
    .hero-path-quick { gap: 4px; }
    .hero-path-quick-links-row { gap: 4px; }
    .hero-path-quick-link { font-size: .64rem; padding: 4px 6px; }
    .hero-contrib-btn { padding: 8px 8px; gap: 7px; }
    .hero-contrib-btn-icon { width: 28px; height: 28px; font-size: .74rem; }
    .hero-contrib-btn-text strong { font-size: .74rem; }
    .hero-contrib-btn-text em { font-size: .65rem; }
    .cm-join-cta-btn { padding: 11px 14px; gap: 9px; }
    .cm-join-cta-icon { width: 36px; height: 36px; font-size: 1rem; }
    .cm-join-cta-text strong { font-size: .84rem; }
    .cm-join-cta-text small { font-size: .7rem; }

    .carousel-track .entity-card {
        flex: 0 0 calc(100vw - 32px);
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }

    .rm-crit-label { font-size: .7rem; }
    .rm-star { font-size: .95rem; }

    .section-cta-btn { font-size: .78rem; padding: 10px 10px; }
    .club-banner-btn-primary, .club-banner-btn-secondary { font-size: .8rem; padding: 10px; }
    .entity-card-body { padding: 10px; }
    .entity-name { font-size: .85rem; }
}


/* ──────────────────────────────────────────────────────────
   NOUVELLES SECTIONS — Responsive Mobile
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Bifurcation hero — mobile ── */
    .hero-paths {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
        margin-bottom: 24px;
    }

    /* Séparateur « أو » horizontal */
    .hero-paths-or {
        flex-direction: row;
        padding: 4px 0;
        gap: 10px;
        align-items: center;
    }
    .hero-paths-or-line {
        width: auto;
        height: 1px;
        flex: 1;
        min-height: auto;
    }
    .hero-paths-or span {
        width: 30px;
        height: 30px;
        font-size: .8rem;
        flex-shrink: 0;
    }

    /* Carte chemin */
    .hero-path {
        padding: 16px 14px 14px;
        border-radius: 16px;
        gap: 12px;
    }
    .hero-path-icon-wrap { margin-bottom: 0; }
    .hero-path-icon { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 11px; }
    .hero-path-title { font-size: 1rem; line-height: 1.3; }
    .hero-path-desc { font-size: .8rem; line-height: 1.5; }

    /* Barre de recherche dans carte A */
    .hero-search--inline { margin-top: 0; }
    .search-inner { padding: 8px; gap: 8px; }
    .stab { font-size: .78rem; padding: 8px 6px; }
    .search-input-row { padding: 8px 10px; gap: 6px; }
    .search-input-row input { font-size: .85rem; }
    .search-btn { padding: 9px 10px; font-size: .8rem; white-space: nowrap; }

    /* Liens rapides chemin A — label au-dessus, boutons sur une ligne */
    .hero-path-quick {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 6px;
    }
    .hero-path-quick-label {
        font-size: .72rem;
        width: 100%;
    }
    .hero-path-quick-links-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }
    .hero-path-quick-link {
        font-size: .72rem;
        padding: 5px 10px;
        gap: 4px;
        flex: 1;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    /* Boutons chemin B */
    .hero-contrib-actions { gap: 8px; }
    .hero-contrib-btn {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 12px;
    }
    .hero-contrib-btn-icon { width: 34px; height: 34px; font-size: .85rem; border-radius: 8px; }
    .hero-contrib-btn-text strong { font-size: .82rem; line-height: 1.2; }
    .hero-contrib-btn-text em { font-size: .72rem; }
    .hero-contrib-btn > .fas.fa-arrow-left { font-size: .7rem; }

    /* Mention sécurité */
    .hero-path-trust { font-size: .72rem; gap: 5px; }

    /* Mid CTA */
    .mid-cta-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mid-cta-btn { width: 100%; justify-content: center; }

    /* Cartes membres carousel */
    .cm-card-new { flex: 0 0 220px; min-width: 220px; max-width: 220px; padding: 18px 14px 14px; }
    /* Carousel membres : même padding pour les boutons */
    #carouselMembers { padding: 0 40px; }
    .cm-card-stat-num { font-size: .88rem; }

    /* Story section */
    .story-card { padding: 20px 18px; }
    .story-card-header { flex-wrap: wrap; gap: 10px; }
    .story-rating { width: 100%; justify-content: flex-start; margin-top: 4px; }
    .story-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .story-cta-row { flex-direction: column; gap: 10px; text-align: center; }
    .story-cta-btn { width: 100%; justify-content: center; }

    /* Final CTA */
    .final-cta-card { padding: 32px 22px; }
    .final-cta-content { flex-direction: column; text-align: center; align-items: center; }
    .final-cta-body h2 { font-size: 1.4rem; }
    .final-cta-trust { justify-content: center; }
    .final-cta-btn { width: 100%; justify-content: center; }

    /* Privacy box */
    .tq-privacy-box { flex-direction: row; }
}

/* ──────────────────────────────────────────────────────────
   TABLETTE — 769px à 1024px
   ────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

    .container { padding: 0 24px; }
    .hero-title { font-size: 2.2rem; }
    .carousel-track .entity-card { flex: 0 0 310px; min-width: 310px; max-width: 310px; }
    .section-title { font-size: 1.85rem; }
    .form-wrapper { grid-template-columns: 1fr; }
    .form-info { max-width: 100%; }
    .footer-top { grid-template-columns: 1fr 1fr; }

    .review-modal-overlay { align-items: center; padding: 16px; }
    .review-modal {
        max-width: 520px;
        border-radius: var(--radius-lg);
        transform: translateY(30px) scale(.97);
    }
    .review-modal.open { transform: translateY(0) scale(1); }
}


/* ──────────────────────────────────────────────────────────
   PAGE AGENCES — mobile (agency.html)
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .ag-hero, .ht-hero { padding: 88px 0 40px; }
    .ag-hero-title, .ht-hero-title { font-size: 1.45rem; }
    .ag-hero-sub, .ht-hero-sub { font-size: .86rem; }

    /* Stats hero agence — ligne horizontale compacte */
    .ag-hero-stats {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 0;
        padding: 10px 12px;
        border-radius: var(--radius-md);
        margin-top: 12px;
    }
    .ag-stat {
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 0 4px;
    }
    .ag-stat i { font-size: .95rem; }
    .ag-stat span { font-size: 1rem; font-weight: 900; }
    .ag-stat small { font-size: .58rem; white-space: nowrap; }
    .ag-stat-divider {
        width: 1px !important;
        height: 28px !important;
        background: rgba(255,255,255,.25) !important;
        flex-shrink: 0;
    }

    /* Stats hero hôtels — grille 2×2 sur mobile */
    .ht-hero-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .ht-stat-div { display: none !important; }
    .ht-stat {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 10px 8px !important;
        background: rgba(255,255,255,.12) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255,255,255,.18) !important;
    }
    .ht-stat i  { font-size: .95rem !important; }
    .ht-stat span { font-size: 1.1rem !important; font-weight: 900 !important; }
    .ht-stat small { font-size: .62rem !important; white-space: nowrap !important; }

    /* Filtres */
    .ag-filters-bar, .ht-filters-bar { flex-direction: column; gap: 10px; }
    .ag-pills, .ht-pills {
        flex-wrap: nowrap; overflow-x: auto;
        scrollbar-width: none; gap: 8px; padding-bottom: 3px;
    }
    .ag-pills::-webkit-scrollbar, .ht-pills::-webkit-scrollbar { display: none; }
    .ag-pill, .ht-pill { flex-shrink: 0; font-size: .8rem; padding: 7px 12px; white-space: nowrap; }
    .ag-sort, .ht-sort { width: 100%; font-size: .88rem; }

    /* Layout agences */
    .ag-layout, .ht-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .ag-sidebar, .ht-sidebar { display: none; } /* Sidebar cachée sur mobile */
    .ag-grid, .ht-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* ── Carte agence (nouvelle avec photo) ── */
    .ag-card {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        overflow: hidden;
        border-radius: var(--radius-md);
    }

    /* Photo bannière */
    .ag-card-photo {
        height: 140px !important;
        width: 100% !important;
        padding: 10px 12px !important;
    }
    .ag-photo-avatar {
        display: none !important;
    }
    .ag-photo-score-num { font-size: 1.2rem !important; }

    /* Corps de la carte agence */
    .ag-card-body {
        padding: 12px 14px !important;
        gap: 8px !important;
    }
    .ag-name { font-size: .95rem !important; margin: 0; }
    .ag-meta {
        flex-wrap: wrap;
        gap: 5px 10px;
        font-size: .75rem !important;
    }
    .ag-meta span { font-size: .75rem; }
    .ag-stars { gap: 3px; }
    .ag-stars i { font-size: .78rem; }
    .ag-rev-count { font-size: .72rem; }
    /* tp-rating-block dans cartes agences */
    .ag-card-body .tp-rating-block { gap: 5px; margin: 3px 0 6px; }
    .ag-card-body .tp-score-num { font-size: 1rem; }
    .ag-card-body .tp-rev-count { font-size: .72rem; }
    /* (ag-rbars, ag-tags removed from cards) */

    /* Boutons CTA agence */
    .ag-card-right {
        flex-direction: row !important;
        padding: 0 14px 12px !important;
        padding-top: 10px !important;
        gap: 8px !important;
        flex-wrap: wrap;
    }
    .ag-btn-detail, .ag-btn-review {
        flex: 1;
        justify-content: center;
        padding: 9px 8px !important;
        font-size: .78rem !important;
        min-width: 0;
        text-align: center;
    }

    .ag-card-rank {
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        font-size: .68rem !important;
        padding: 2px 7px !important;
    }

    /* Load more */
    .ag-load-more-wrap { margin: 20px 0 0; }
    #loadMoreBtn { padding: 11px 20px; font-size: .88rem; }
}

@media (max-width: 480px) {
    .ag-card-photo { height: 120px !important; }
    .ag-card-body { padding: 10px 12px !important; }
    .ag-btn-detail, .ag-btn-review { font-size: .74rem !important; padding: 8px 6px !important; }
}


/* ──────────────────────────────────────────────────────────
   PAGE HÔTELS — mobile (hotels.html)
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Carte hôtel */
    .ht-card {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden;
        border-radius: var(--radius-md);
    }

    .ht-card-thumb {
        min-height: 150px !important;
        flex-direction: column !important;
        padding: 14px 12px !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .ht-thumb-icon { font-size: 2rem !important; }
    .ht-thumb-stars i { font-size: .8rem !important; }
    .ht-city-icon-badge { font-size: .68rem !important; padding: 2px 7px !important; }
    .ht-distance-badge { font-size: .68rem !important; padding: 3px 8px !important; }

    .ht-card-body { padding: 12px 14px !important; gap: 8px !important; }
    .ht-name { font-size: .95rem !important; }
    .ht-card-title-row { gap: 6px !important; align-items: flex-start; }
    .ht-score-big { font-size: 1.5rem !important; }
    .ht-score-max { font-size: .72rem !important; }
    .ht-meta { flex-wrap: wrap; gap: 5px 10px; }
    .ht-meta span { font-size: .73rem !important; }
    .ht-stars i { font-size: .78rem !important; }
    .ht-rev-count { font-size: .72rem !important; }
    /* tp-rating-block dans cartes hôtels */
    .ht-card-body .tp-rating-block { gap: 5px !important; margin: 3px 0 6px !important; }
    .ht-card-body .tp-score-num { font-size: 1rem !important; }
    .ht-card-body .tp-rev-count { font-size: .72rem !important; }
    /* (ht-rbars, ht-amenities removed from cards) */

    .ht-card-cta {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 14px 12px !important;
        padding-top: 10px !important;
        border-top: 1px solid var(--border) !important;
        flex-wrap: wrap;
    }
    .ht-btn-detail, .ht-btn-review {
        flex: 1 !important;
        justify-content: center !important;
        padding: 9px 8px !important;
        font-size: .78rem !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .ht-rank {
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        width: auto !important; height: auto !important;
        padding: 2px 7px !important;
        font-size: .68rem !important;
        border-radius: 50px !important;
    }
    .ht-city-icon-badge {
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        font-size: .66rem !important;
        padding: 2px 7px !important;
    }

    /* Modal hôtel */
    .ht-modal-overlay { align-items: flex-end; padding: 0; }
    .ht-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 93vh !important;
        border-radius: 18px 18px 0 0 !important;
        overflow-y: auto;
    }
    .ht-modal-header { padding: 14px 16px !important; min-height: 0 !important; flex-direction: row !important; align-items: center !important; gap: 12px !important; text-align: right !important; }
    .ht-modal-header .ht-modal-title h2 { font-size: .95rem !important; }
    .ht-tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; gap: 0; }
    .ht-tabs::-webkit-scrollbar { display: none; }
    .ht-tab-btn { flex-shrink: 0; padding: 12px 14px !important; font-size: .8rem !important; }
    .ht-tab-panel { padding: 16px 14px !important; }
    .ht-info-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .ht-room-card { padding: 12px !important; }
    .ht-room-name { font-size: .88rem !important; }
    .ht-room-price { font-size: .9rem !important; }
    .ht-review-item { padding: 12px !important; }
    .ht-modal-close { width: 36px !important; height: 36px !important; font-size: .88rem !important; }
}

@media (max-width: 480px) {
    .ht-card-thumb { min-height: 130px !important; }
    .ht-card-body { padding: 10px 12px !important; }
    .ht-btn-detail, .ht-btn-review { font-size: .74rem !important; padding: 8px 6px !important; }
    .ht-info-grid { grid-template-columns: 1fr !important; }
}


/* ──────────────────────────────────────────────────────────
   PAGE TIPS / CONSEILS — mobile
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .tips-hero { padding: 88px 0 44px; }
    .tips-hero-title { font-size: 1.5rem; }
    .tips-hero-sub { font-size: .86rem; }
    .tips-hero-pills { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .tips-hero-deco { display: none; }

    .progress-bar-sticky .container { padding: 0 8px; }
    .progress-nav { gap: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
    .progress-nav::-webkit-scrollbar { display: none; }
    .prog-link { padding: 10px 8px; font-size: .62rem; flex-direction: row; gap: 4px; flex-shrink: 0; }
    .prog-link span { display: none; }
    .prog-link i { font-size: .95rem; }

    .tips-main { padding: 20px 0; }
    .tips-grid { grid-template-columns: 1fr; gap: 14px; }
    .tip-card { padding: 18px; }
    .tip-card h3 { font-size: .95rem; }
    .tip-list li { font-size: .83rem; gap: 7px; }

    .tips-section h2 { font-size: 1.25rem; }
    .section-icon { width: 48px; height: 48px; font-size: 1.3rem; }

    .irshad-grid { grid-template-columns: 1fr; }
    .irshad-list li { flex-direction: column; align-items: flex-start; gap: 5px; }
    .irshad-num { font-size: .78rem; }

    .apps-grid { grid-template-columns: 1fr; }
    .app-card { gap: 10px; }

    .resto-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .resto-tabs::-webkit-scrollbar { display: none; }
    .resto-tab { flex-shrink: 0; }
    .resto-grid { grid-template-columns: 1fr; }

    .practical-tips-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .practical-tip { padding: 14px; }
    .pt-icon { width: 42px; height: 42px; font-size: 1rem; }
    .practical-tip h4 { font-size: .82rem; }
    .practical-tip p { font-size: .75rem; }
}

@media (max-width: 480px) {
    .practical-tips-grid { grid-template-columns: 1fr; }
    .irshad-block-title { font-size: .95rem; padding: 10px 12px; }
}


/* ──────────────────────────────────────────────────────────
   PAGE CLUB — mobile
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .club-hero { padding: 88px 0 40px; }
    .club-hero-title { font-size: 1.5rem; }
    .club-hero-sub { font-size: .86rem; }

    /* Chemins hero club — mobile */
    .cl-hero-paths { max-width: 100%; }
    .cl-hero-path { padding: 14px 14px; gap: 11px; border-radius: 13px; }
    .cl-hero-path-icon { width: 38px; height: 38px; font-size: .95rem; }
    .cl-hero-path-body h3 { font-size: .88rem; }
    .cl-hero-path-body p { font-size: .72rem; }
    .cl-hero-path-btns { gap: 6px; margin-top: 8px; }
    .cl-path-btn { font-size: .76rem; padding: 7px 13px; }
    .cl-hero-paths-or { padding: 6px 0; }
    .cl-hero-paths-or span { font-size: .72rem; }

    /* Cartes questions style Quora — mobile */
    .cl-q-card { border-radius: 12px; }
    .cl-q-vote-col { min-width: 50px; padding: 14px 10px; gap: 2px; }
    .cl-q-vote-btn { width: 30px; height: 30px; font-size: .78rem; }
    .cl-q-vote-count { font-size: .9rem; }
    .cl-q-vote-label { font-size: .56rem; }
    .cl-q-body { padding: 13px 13px; gap: 6px; }
    .cl-q-title { font-size: .94rem; gap: 6px; }
    .cl-q-title-icon { font-size: .8rem; }
    .cl-q-desc { font-size: .78rem; -webkit-line-clamp: 2; }
    .cl-q-footer { margin-top: 2px; gap: 6px; }
    .cl-q-stats { gap: 10px; }
    .cl-q-stat { font-size: .72rem; }
    .cl-q-answer-btn { padding: 6px 13px; font-size: .74rem; }

    .club-layout { grid-template-columns: 1fr !important; gap: 20px; }
    .club-sidebar { order: 2; }
    .club-main-col { order: 1; }

    .cl-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
    .cl-filters::-webkit-scrollbar { display: none; }
    .cl-pill { flex-shrink: 0; font-size: .78rem; padding: 6px 12px; }

    .post-card { padding: 14px; gap: 10px; }
    .post-author-name { font-size: .85rem; }
    .post-title { font-size: .9rem; }
    .post-excerpt { font-size: .82rem; }

    .leaderboard-item { padding: 9px 12px; gap: 8px; }
    .lb-rank { font-size: .82rem; min-width: 20px; }
    .lb-name { font-size: .85rem; }

    .badge-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .badge-item { padding: 9px 7px; }
    .badge-icon { font-size: 1.3rem; }
    .badge-name { font-size: .65rem; }
}


/* ──────────────────────────────────────────────────────────
   SAFE AREA — iPhone notch / Dynamic Island
   ────────────────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .nav-menu.open { padding-bottom: env(safe-area-inset-bottom); }
        .review-modal { padding-bottom: env(safe-area-inset-bottom); }
        .ht-modal { padding-bottom: env(safe-area-inset-bottom); }
        .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
        .scroll-top { bottom: calc(20px + env(safe-area-inset-bottom)); }
    }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP OVERRIDE — forcer menu horizontal visible ≥ 600px
   Ce bloc doit être APRÈS tous les blocs @media (max-width:...)
   pour prendre la priorité sur les règles drawer
   ══════════════════════════════════════════════════════════ */
@media (min-width: 600px) {

    /* ─ Navbar : layout 3 colonnes grid ─ */
    .navbar {
        height: 80px;
    }
    .nav-wrapper {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        height: 80px !important;
        padding: 0 24px !important;
        align-items: center !important;
        gap: 16px !important;
        position: static !important;
    }

    /* Colonne 1 : logo à gauche */
    .logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        position: static !important;
        transform: none !important;
        justify-self: start !important;
    }
    /* Colonne 2 : menu centré */
    .nav-menu {
        grid-column: 2 !important;
        grid-row: 1 !important;
        /* Annuler le drawer */
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        padding: 0 !important;
        gap: 22px !important;
        align-items: center !important;
        border: none !important;
        top: auto !important; right: auto !important;
        bottom: auto !important; left: auto !important;
        transition: none !important;
    }
    /* Colonne 3 : bouton login à droite */
    .nav-actions {
        grid-column: 3 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        position: static !important;
        transform: none !important;
        width: auto !important;
        gap: 10px !important;
    }

    /* Masquer header du drawer, éléments mobile */
    .nav-menu::before { display: none !important; }
    .mobile-toggle { display: none !important; }
    .nav-auth-mobile { display: none !important; }
    .nav-drawer-overlay { display: none !important; }

    /* Afficher le bouton login desktop */
    .nav-auth-inline {
        display: inline-flex !important;
    }

    /* Style des liens dans le menu desktop */
    .nav-menu .nav-link {
        display: inline-flex !important;
        padding: 4px 0 !important;
        font-size: .9rem !important;
        font-weight: 500 !important;
        color: var(--text-light) !important;
        background: transparent !important;
        border-bottom: none !important;
        text-align: inherit !important;
        direction: inherit !important;
        white-space: nowrap !important;
    }
    .nav-menu .nav-link i { display: inline !important; }
    .nav-menu .nav-link.active { color: var(--green) !important; background: transparent !important; }
    .nav-menu .nav-link:hover  { color: var(--green) !important; background: transparent !important; }

    /* Dropdowns desktop */
    .nav-dropdown-trigger {
        padding: 4px 0 !important;
        font-size: .9rem !important;
        font-weight: 500 !important;
        color: var(--text-light) !important;
        background: transparent !important;
        width: auto !important;
    }
    .nav-dropdown-trigger i:not(.dd-arrow) { display: inline !important; }

    /* Masquer éléments uniquement mobiles */
    .dd-item i { display: inline !important; }
    .dd-badge  { display: inline-flex !important; }
    .dd-separator { display: block !important; }
    .btn-cta   { display: flex !important; }
}
