/* ── Design tokens ─────────────────────────────────────── */
        :root {
            --primary:        #2563eb;
            --primary-light:  #3b82f6;
            --primary-glow:   rgba(37,99,235,.15);
            --bg:             #0f172a;
            --surface:        #1e293b;
            --surface2:       #263248;
            --surface3:       #1a2744;
            --border:         #334155;
            --text:           #f1f5f9;
            --text-muted:     #94a3b8;
            --green:          #10b981;
            --amber:          #f59e0b;
            --red:            #ef4444;
            --shadow-sm:      0 1px 3px rgba(0,0,0,.4);
            --shadow-md:      0 4px 16px rgba(0,0,0,.5);
            --radius:         10px;
            --c-gazole: #3b82f6;
            --c-sp95:   #8b5cf6;
            --c-e10:    #10b981;
            --c-sp98:   #f59e0b;
            --c-e85:    #ec4899;
            --c-gplc:   #06b6d4;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        /* ── Header ────────────────────────────────────────────── */
        header {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding: .75rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-shrink: 0;
            z-index: 100;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: .6rem;
            font-size: 1.2rem;
            font-weight: 800;
            letter-spacing: -.5px;
            color: var(--text);
            white-space: nowrap;
        }
        .logo span { color: var(--primary-light); }

        .header-tagline {
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-left: 1px solid var(--border);
            padding-left: 1rem;
            margin-left: .25rem;
        }
        .header-tagline strong {
            font-size: .88rem;
            font-weight: 700;
            color: var(--text);
            white-space: nowrap;
        }
        .header-tagline span {
            font-size: .72rem;
            color: var(--text-muted);
            white-space: nowrap;
        }
        @media (max-width: 900px) { .header-tagline { display: none; } }

        .stats-bar {
            display: flex;
            gap: .6rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .stat-pill {
            display: flex;
            align-items: center;
            gap: .35rem;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: .28rem .7rem;
            font-size: .76rem;
            font-weight: 600;
            white-space: nowrap;
        }
        .stat-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
        .stat-label { color: var(--text-muted); font-weight: 400; }

        /* ── Layout ────────────────────────────────────────────── */
        .main {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* ── Filters panel ───────────────────────────────────────────── */
        .filters-panel {
            width: 280px;
            min-width: 280px;
            background: var(--surface);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            z-index: 10;
        }

        /* ── Results panel ───────────────────────────────────────────── */
        .results-panel {
            width: 360px;
            min-width: 360px;
            background: var(--surface);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 5;
        }

        /* ── Content panel ───────────────────────────────────────────── */
        .content-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            background: var(--bg);
        }

        /* ── Search panel ──────────────────────────────────────── */
        .search-panel {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        .search-panel h2 {
            font-size: .78rem;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: var(--text-muted);
            margin-bottom: .85rem;
        }

        .form-group { margin-bottom: .75rem; }

        label {
            display: block;
            font-size: .8rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: .35rem;
        }

        input, select {
            width: 100%;
            padding: .6rem .85rem;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text);
            font-family: inherit;
            font-size: .88rem;
            transition: border-color .2s, box-shadow .2s;
        }
        input::placeholder { color: var(--text-muted); }
        input:focus, select:focus {
            outline: none;
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px var(--primary-glow);
        }
        select option { background: var(--surface2); }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .65rem;
        }

        .btn-geo {
            flex-shrink: 0;
            width: 44px;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .2s;
        }
        .btn-geo:hover {
            border-color: var(--primary-light);
            background: var(--primary-glow);
        }

        .btn-search {
            width: 100%;
            padding: .7rem;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: var(--radius);
            font-family: inherit;
            font-size: .92rem;
            font-weight: 700;
            cursor: pointer;
            transition: background .2s, transform .1s;
            margin-top: .15rem;
        }
        .btn-search:hover  { background: var(--primary-light); }
        .btn-search:active { transform: scale(.98); }

        /* ── Results header ─────────────────────────────────────── */
        .results-header {
            padding: .6rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .5rem;
            flex-shrink: 0;
        }

        .result-count {
            font-size: .8rem;
            font-weight: 700;
            color: var(--text-muted);
            white-space: nowrap;
        }
        .result-count strong { color: var(--text); }

        /* ── View toggle ────────────────────────────────────────── */
        .view-toggle {
            display: flex;
            gap: .3rem;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 3px;
        }
        .view-btn {
            padding: .3rem .65rem;
            border-radius: 6px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-family: inherit;
            font-size: .75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
        }
        .view-btn.active {
            background: var(--primary);
            color: #fff;
        }
        .view-btn:not(.active):hover {
            background: var(--border);
            color: var(--text);
        }

        .sort-badge {
            font-size: .7rem;
            font-weight: 600;
            background: var(--primary-glow);
            color: var(--primary-light);
            border: 1px solid var(--primary);
            padding: .18rem .5rem;
            border-radius: 999px;
            display: none;
            white-space: nowrap;
        }

        /* ── Results list ───────────────────────────────────────── */
        .results-list {
            flex: 1;
            overflow-y: auto;
            padding: .65rem;
        }
        .results-list::-webkit-scrollbar { width: 4px; }
        .results-list::-webkit-scrollbar-track { background: transparent; }
        .results-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

        /* ── Station card ──────────────────────────────────────── */
        .station-card {
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: .85rem;
            margin-bottom: .55rem;
            cursor: pointer;
            transition: border-color .2s, transform .15s, box-shadow .2s;
            position: relative;
        }
        .station-card:hover {
            border-color: var(--primary-light);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(37,99,235,.2);
        }
        .station-card.in-compare {
            border-color: var(--green);
            box-shadow: 0 0 0 1px rgba(16,185,129,.3);
        }

        .card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: .4rem;
            gap: .5rem;
        }

        .card-left { flex: 1; min-width: 0; }

        .station-name {
            font-weight: 700;
            font-size: .92rem;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .station-address {
            font-size: .76rem;
            color: var(--text-muted);
            margin-bottom: .55rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-actions {
            display: flex;
            align-items: center;
            gap: .35rem;
            flex-shrink: 0;
        }

        .rank-badge {
            font-size: .68rem;
            font-weight: 700;
            padding: .18rem .4rem;
            border-radius: 999px;
            background: var(--primary-glow);
            color: var(--primary-light);
            border: 1px solid var(--primary);
            white-space: nowrap;
        }
        .rank-badge.gold   { background: rgba(245,158,11,.15); color: #f59e0b; border-color: #f59e0b; }
        .rank-badge.silver { background: rgba(148,163,184,.15); color: #94a3b8; border-color: #94a3b8; }
        .rank-badge.bronze { background: rgba(180,83,9,.2); color: #d97706; border-color: #d97706; }

        /* ── Compare button (card) ─────────────────────────────── */
        .compare-btn-card {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            font-size: .85rem;
            font-weight: 700;
            transition: all .15s;
            flex-shrink: 0;
        }
        .compare-btn-card:hover {
            border-color: var(--green);
            color: var(--green);
            background: rgba(16,185,129,.1);
        }
        .compare-btn-card.active {
            border-color: var(--green);
            color: var(--green);
            background: rgba(16,185,129,.15);
        }

        /* ── Price badges ──────────────────────────────────────── */
        .prices-grid {
            display: flex;
            flex-wrap: wrap;
            gap: .35rem;
        }
        .price-tag {
            display: flex;
            align-items: center;
            gap: .28rem;
            padding: .25rem .55rem;
            border-radius: 6px;
            font-size: .76rem;
            font-weight: 700;
            border: 1px solid transparent;
        }
        .price-tag .fuel-dot { width: 6px; height: 6px; border-radius: 50%; }
        .price-tag.highlighted {
            background: var(--primary-glow);
            border-color: var(--primary);
        }

        .service-tags {
            display: flex;
            flex-wrap: wrap;
            gap: .3rem;
            margin-top: .5rem;
        }
        .service-tag {
            font-size: .66rem;
            color: var(--text-muted);
            background: rgba(148,163,184,.08);
            border: 1px solid var(--border);
            padding: .12rem .4rem;
            border-radius: 4px;
        }

        /* ── Empty / loading states ────────────────────────────── */
        .empty-state {
            text-align: center;
            padding: 2.5rem 1rem;
            color: var(--text-muted);
        }
        .empty-state .icon { font-size: 2.5rem; margin-bottom: .65rem; }
        .empty-state p { font-size: .88rem; line-height: 1.6; }

        .spinner {
            display: inline-block;
            width: 28px; height: 28px;
            border: 3px solid var(--border);
            border-top-color: var(--primary-light);
            border-radius: 50%;
            animation: spin .7s linear infinite;
            margin-bottom: .65rem;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ── Map ───────────────────────────────────────────────── */
        #map {
            flex: 1;
            z-index: 1;
        }
        /* Invert colors removed as we now use a native dark map */
        .leaflet-popup-content-wrapper {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            color: var(--text);
        }
        .leaflet-popup-tip { background: var(--surface); }
        .popup-name { font-weight: 700; font-size: 1rem; color: var(--primary-light); margin-bottom: .25rem; }
        .popup-address { font-size: .78rem; color: var(--text-muted); margin-bottom: .55rem; }
        .popup-prices { display: flex; flex-wrap: wrap; gap: .3rem; }

        /* ── TABLE VIEW ─────────────────────────────────────────── */
        .table-view {
            display: flex;
            flex: 1;
            overflow: auto;
            flex-direction: column;
            border-top: 1px solid var(--border);
        }

        .table-toolbar {
            padding: .6rem 1rem;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: .75rem;
            flex-shrink: 0;
            flex-wrap: wrap;
        }
        .table-toolbar-label {
            font-size: .78rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .table-scroll { overflow: auto; flex: 1; }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: .84rem;
        }
        .data-table thead th {
            background: var(--surface);
            padding: .5rem .6rem;
            text-align: left;
            font-size: .72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: var(--text-muted);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 10;
            white-space: nowrap;
            user-select: none;
        }
        .data-table thead th.sortable {
            cursor: pointer;
            transition: background .15s, color .15s;
        }
        .data-table thead th.sortable:hover { background: var(--surface2); color: var(--text); }
        .data-table thead th.sorted { color: var(--primary-light); }
        .sort-arrow { margin-left: .3rem; opacity: .6; }
        .data-table thead th.sorted .sort-arrow { opacity: 1; }

        .data-table tbody tr:hover td { background: var(--surface2); }
        .data-table tbody td {
            padding: .4rem .6rem;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        /* ── Table row click-to-focus ─────────────────────────── */
        .data-table tbody tr {
            cursor: pointer;
        }
        .data-table tbody tr.row-active td {
            background: rgba(37,99,235,.18) !important;
            border-bottom-color: var(--primary);
        }
        .data-table tbody tr.row-active .td-station {
            color: var(--primary-light);
        }

        .price-cell {
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            text-align: center;
            white-space: nowrap;
        }
        .price-cell.best { color: var(--green); }
        .price-cell.worst { color: var(--red); }
        .price-cell.mid { color: var(--amber); }
        .no-price { color: var(--border); font-size: .75rem; text-align: center; }

        .compare-btn-table {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px; height: 26px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            font-size: .9rem;
            font-weight: 700;
            transition: all .15s;
        }
        .compare-btn-table:hover { border-color: var(--green); color: var(--green); background: rgba(16,185,129,.1); }
        .compare-btn-table.active { border-color: var(--green); color: var(--green); background: rgba(16,185,129,.15); }

        /* ── Comparison basket ─────────────────────────────────── */
        .compare-basket {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--surface);
            border-top: 2px solid var(--primary);
            padding: .7rem 1.5rem;
            display: flex;
            align-items: center;
            gap: .85rem;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform .3s cubic-bezier(.16,1,.3,1);
            box-shadow: 0 -4px 32px rgba(37,99,235,.25);
        }
        .compare-basket.visible { transform: translateY(0); }

        .basket-label {
            font-size: .8rem;
            font-weight: 700;
            color: var(--primary-light);
            white-space: nowrap;
        }

        .basket-items {
            display: flex;
            gap: .45rem;
            flex: 1;
            flex-wrap: wrap;
        }
        .basket-chip {
            display: flex;
            align-items: center;
            gap: .4rem;
            background: var(--surface2);
            border: 1px solid var(--primary);
            border-radius: 999px;
            padding: .28rem .7rem;
            font-size: .78rem;
            font-weight: 600;
        }
        .basket-chip .chip-remove {
            cursor: pointer;
            color: var(--text-muted);
            font-size: 1rem;
            line-height: 1;
            transition: color .15s;
        }
        .basket-chip .chip-remove:hover { color: var(--red); }

        .basket-actions { display: flex; gap: .5rem; flex-shrink: 0; }

        .btn-compare-now {
            padding: .55rem 1.1rem;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: var(--radius);
            font-family: inherit;
            font-size: .88rem;
            font-weight: 700;
            cursor: pointer;
            transition: background .2s;
            white-space: nowrap;
        }
        .btn-compare-now:hover { background: var(--primary-light); }

        .btn-basket-clear {
            padding: .55rem .9rem;
            background: transparent;
            color: var(--text-muted);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-family: inherit;
            font-size: .85rem;
            cursor: pointer;
            transition: all .2s;
        }
        .btn-basket-clear:hover { color: var(--red); border-color: var(--red); }

        /* ── Modal ─────────────────────────────────────────────── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.75);
            backdrop-filter: blur(6px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity .25s, visibility .25s;
        }
        .modal-overlay.visible { opacity: 1; visibility: visible; }

        .modal {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            width: min(960px, 95vw);
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 32px 80px rgba(0,0,0,.7);
            transform: scale(.95) translateY(24px);
            transition: transform .25s cubic-bezier(.16,1,.3,1);
        }
        .modal-overlay.visible .modal { transform: scale(1) translateY(0); }

        .modal-header {
            padding: 1.1rem 1.5rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        .modal-header h2 { font-size: 1.05rem; font-weight: 800; }
        .modal-subtitle { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

        .modal-close {
            width: 32px; height: 32px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-muted);
            font-size: 1.1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .15s;
        }
        .modal-close:hover { background: var(--surface2); color: var(--text); }

        .modal-body { overflow-y: auto; padding: 1.5rem; flex: 1; }

        /* Comparison table */
        .compare-table {
            width: 100%;
            border-collapse: collapse;
            font-size: .88rem;
        }
        .compare-table th {
            padding: .8rem 1rem;
            text-align: center;
            font-weight: 700;
            border-bottom: 2px solid var(--border);
            background: var(--surface2);
        }
        .compare-table th:first-child { text-align: left; width: 110px; }
        .compare-table th .col-station {
            font-size: .95rem;
            font-weight: 800;
            color: var(--text);
            display: block;
        }
        .compare-table th .col-addr {
            font-size: .73rem;
            color: var(--text-muted);
            font-weight: 400;
            display: block;
            margin-top: .15rem;
        }
        .compare-table th .col-remove {
            font-size: .7rem;
            color: var(--text-muted);
            cursor: pointer;
            margin-top: .3rem;
            display: inline-block;
            padding: .15rem .4rem;
            border: 1px solid var(--border);
            border-radius: 4px;
            transition: all .15s;
        }
        .compare-table th .col-remove:hover { color: var(--red); border-color: var(--red); }

        .compare-table td {
            padding: .7rem 1rem;
            border-bottom: 1px solid var(--border);
            text-align: center;
        }
        .compare-table td:first-child {
            text-align: left;
            font-weight: 700;
            font-size: .82rem;
        }
        .fuel-row-label {
            display: flex;
            align-items: center;
            gap: .4rem;
        }
        .fuel-row-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .price-best {
            background: rgba(16,185,129,.15);
            color: var(--green);
            font-weight: 800;
            border-radius: 6px;
            padding: .3rem .65rem;
            display: inline-block;
            border: 1px solid rgba(16,185,129,.3);
        }
        .price-worst {
            color: var(--red);
            font-weight: 700;
        }
        .price-mid { color: var(--text); font-weight: 600; }
        .price-none { color: var(--border); font-size: .78rem; }

        .savings-row td { background: var(--surface3); font-size: .8rem; }
        .savings-row td:first-child { color: var(--text-muted); }
        .savings-val { color: var(--green); font-weight: 700; }

        /* ── Quick-mode banner ─────────────────────────────────── */
        .quick-banner {
            background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.08));
            border-bottom: 1px solid var(--border);
            padding: .5rem 1rem;
            font-size: .76rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: .5rem;
            flex-shrink: 0;
        }
        .quick-banner span { color: var(--primary-light); font-weight: 600; }

        /* ── Responsive — Mobile-first ─────────────────────────── */

        /* Onglets mobile (cachés par défaut sur desktop) */
        /* Onglets mobile (cachés par défaut sur desktop) */
        .mobile-tabs { display: none; }
        
        /* ── Advertisements ───────────────────────────────────── */
        .ad-banner {
            width: 100%;
            height: 90px;
            background: var(--surface2);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            cursor: pointer;
            transition: background .2s;
            z-index: 50;
        }
        .ad-banner:hover { background: var(--surface3); }
        .ad-banner.top { border-bottom: 1px solid var(--border); }
        .ad-banner.bottom { border-top: 1px solid var(--border); height: 60px; }
        
        .ad-banner::after {
            content: "PARTENAIRE";
            position: absolute;
            top: 6px;
            right: 12px;
            font-size: .65rem;
            font-weight: 800;
            color: var(--primary-light);
            letter-spacing: .1em;
            opacity: .8;
        }
        .ad-placeholder {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .ad-title {
            font-size: .95rem;
            font-weight: 700;
            color: var(--text);
        }
        .ad-subtitle {
            font-size: .75rem;
            color: var(--text-muted);
        }
        
        @media (max-width: 768px) {
            .ad-banner.top { height: 60px; }
            .ad-banner.bottom { height: 50px; }
            .ad-title { font-size: .85rem; }
            .ad-subtitle { display: none; }
        }

        /* Tablette large */
        @media (max-width: 1100px) {
            .filters-panel { width: 240px; min-width: 240px; }
            .results-panel { width: 320px; min-width: 320px; }
        }

        /* ─── MOBILE ≤ 768px ─── */
        @media (max-width: 768px) {

            /* Header compact */
            header { padding: .5rem .85rem; gap: .5rem; }
            .logo { font-size: 1rem; }
            .header-tagline { display: none; }

            /* Stats-bar : scrollable horizontalement */
            .stats-bar {
                flex: 1;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                flex-wrap: nowrap !important;
                gap: .35rem !important;
            }
            .stats-bar::-webkit-scrollbar { display: none; }
            .stat-pill { font-size: .68rem !important; padding: .2rem .5rem !important; white-space: nowrap; }

            /* Layout principal */
            .main { flex-direction: column; }
            .content-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

            /* Results header compact */
            .results-header { padding: .4rem .75rem; }
            .result-count { font-size: .76rem; }

            /* Onglets mobile visibles */
            .mobile-tabs {
                display: flex;
                background: var(--surface);
                border-bottom: 2px solid var(--border);
                flex-shrink: 0;
                z-index: 10;
            }
            .mobile-tab {
                flex: 1;
                padding: .62rem .5rem;
                text-align: center;
                font-size: .84rem;
                font-weight: 700;
                color: var(--text-muted);
                background: transparent;
                border: none;
                border-bottom: 3px solid transparent;
                margin-bottom: -2px;
                cursor: pointer;
                font-family: inherit;
                transition: color .15s, border-color .15s, background .15s;
            }
            .mobile-tab.active {
                color: var(--primary-light);
                border-bottom-color: var(--primary-light);
                background: rgba(37,99,235,.07);
            }

            /* Wrapper carte+tableau */
            .map-table-wrapper {
                flex: 1;
                flex-direction: column !important;
                overflow: hidden;
            }

            /* Carte : plein écran, cachée si onglet tableau actif */
            #map { flex: 1; width: 100%; }
            #map.mobile-hidden { display: none !important; }

            /* Tableau : caché par défaut, plein écran si onglet actif */
            .table-view {
                flex: 1;
                border-left: none !important;
                border-top: 1px solid var(--border);
                display: none !important;
            }
            .table-view.mobile-visible { display: flex !important; }

            /* Table colonnes adaptées + scroll horizontal */
            .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .data-table { font-size: .78rem; min-width: 480px; }
            .data-table thead th { padding: .45rem .55rem; font-size: .65rem; }
            .data-table tbody td { padding: .45rem .55rem; }
            .td-station { font-size: .8rem; }
            .td-address { font-size: .68rem; }

            /* Bannière d'info : compacte */
            #map-welcome {
                bottom: 14px !important;
                font-size: .72rem;
                padding: .5rem .75rem .5rem .85rem !important;
            }

            /* Basket de comparaison compact */
            .compare-basket { padding: .5rem .85rem; gap: .5rem; flex-wrap: wrap; }
            .basket-label { font-size: .75rem; }
            .btn-compare-now { padding: .42rem .8rem; font-size: .8rem; }
            .btn-basket-clear { padding: .42rem .65rem; font-size: .78rem; }

            /* Modal plein écran en bas */
            .modal-overlay { align-items: flex-end; }
            .modal {
                width: 100vw !important;
                max-height: 90vh;
                border-radius: 16px 16px 0 0 !important;
            }
        }

        /* Très petit (iPhone SE etc.) */
        @media (max-width: 380px) {
            .logo { font-size: .9rem; }
            .stat-pill { font-size: .62rem !important; }
        }