
        :root { --bg-dark: #0a0a0f; --bg-panel: #12121a; --bg-card: #1a1a24; --bg-hover: #22222e; --accent-primary: #00d4aa; --accent-secondary: #00a8ff; --accent-warning: #ffaa00; --accent-danger: #ff4466; --accent-purple: #aa44ff; --text-primary: #ffffff; --text-secondary: #8888aa; --text-muted: #555566; --border-color: #2a2a3a; }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Outfit', sans-serif; background: var(--bg-dark); color: var(--text-primary); overflow: hidden; height: 100vh; }

        /* ===== DESKTOP LAYOUT ===== */
        .app-container { display: grid; grid-template-columns: 1fr; grid-template-rows: 56px 1fr; height: 100vh; }
        .header { background: var(--bg-panel); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 1000; }

        /* bottom-panels occupe toute la rangée sous le header */
        .bottom-panels { display: grid; grid-template-columns: 320px 1fr 420px; height: 100%; overflow: hidden; }
        .logo { font-size: 20px; font-weight: 700; } .logo span { color: var(--accent-primary); }
        .search-box { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 0 14px; width: 350px; }
        .search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 13px; padding: 10px 0; margin-left: 8px; }
        .search-container { position: relative; }
        .search-box { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 0 14px; width: 400px; }
        .search-clear { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 4px 8px; }
        .search-clear:hover { color: var(--text-primary); }
        .search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; margin-top: 4px; max-height: 300px; overflow-y: auto; z-index: 10001; display: none; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
        .search-results.visible { display: block; }
        .search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border-color); }
        .search-result-item:last-child { border-bottom: none; }
        .search-result-item:hover { background: var(--bg-hover); }
        .search-result-item.selected { background: rgba(0, 212, 170, 0.15); }
        .search-result-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
        .search-result-info { flex: 1; overflow: hidden; }
        .search-result-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .search-result-detail { font-size: 10px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .search-loading { padding: 15px; text-align: center; color: var(--text-muted); font-size: 11px; }
        .btn { padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
        .btn-primary { background: var(--accent-primary); color: var(--bg-dark); }
        .btn-secondary { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); }
        .sidebar-left { background: var(--bg-panel); border-right: 1px solid var(--border-color); overflow-y: auto; padding: 16px; }
        .sidebar-section { margin-bottom: 20px; }
        .section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color); }
        .layer-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-card); border-radius: 6px; cursor: pointer; border: 1px solid transparent; margin-bottom: 4px; }
        .layer-item:hover { background: var(--bg-hover); }
        .layer-item.active { border-color: var(--accent-primary); background: rgba(0, 212, 170, 0.1); }
        .layer-icon { width: 28px; height: 28px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
        .layer-info { flex: 1; }
        .layer-name { font-size: 12px; font-weight: 500; }
        .layer-desc { font-size: 10px; color: var(--text-secondary); }
        .layer-toggle { width: 32px; height: 18px; background: var(--bg-dark); border-radius: 9px; position: relative; }
        .layer-toggle::after { content: ''; position: absolute; width: 14px; height: 14px; background: var(--text-secondary); border-radius: 50%; top: 2px; left: 2px; transition: all 0.2s; }
        .layer-item.active .layer-toggle { background: var(--accent-primary); }
        .layer-item.active .layer-toggle::after { left: 16px; background: white; }
        .opacity-control { margin-top: 8px; padding: 10px 12px; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border-color); display: none; }
        .opacity-control.visible { display: block; }
        .opacity-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .opacity-label { font-size: 10px; color: var(--text-secondary); }
        .opacity-value { font-size: 11px; font-weight: 600; color: var(--accent-primary); font-family: 'JetBrains Mono', monospace; }
        input[type="range"] { width: 100%; height: 4px; -webkit-appearance: none; background: var(--bg-dark); border-radius: 2px; cursor: pointer; }
        input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--accent-primary); border-radius: 50%; cursor: pointer; }

        /* ===== COUNTRY SELECTOR MODULE ===== */
        .country-selector-module { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--border-color); }
        .country-selector-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
        .country-search-wrap { position: relative; }
        .country-search-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 36px 8px 10px; font-size: 12px; color: var(--text-primary); outline: none; transition: border-color 0.2s; font-family: 'Outfit', sans-serif; }
        .country-search-input:focus { border-color: var(--accent-primary); }
        .country-search-input::placeholder { color: var(--text-muted); }
        .country-search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; pointer-events: none; }
        .country-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; max-height: 220px; overflow-y: auto; z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,0.5); display: none; }
        .country-dropdown.open { display: block; }
        .country-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 12px; transition: background 0.1s; border-bottom: 1px solid var(--border-color); }
        .country-option:last-child { border-bottom: none; }
        .country-option:hover { background: var(--bg-hover); }
        .country-option .co-flag { font-size: 16px; line-height: 1; flex-shrink: 0; }
        .country-option .co-name { flex: 1; }
        .country-option .co-iso { font-size: 9px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
        .country-chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; min-height: 0; }
        .country-chip { display: flex; align-items: center; gap: 4px; background: rgba(0,212,170,0.12); border: 1px solid rgba(0,212,170,0.35); border-radius: 20px; padding: 3px 8px 3px 6px; font-size: 11px; cursor: default; }
        .country-chip .chip-flag { font-size: 13px; }
        .country-chip .chip-name { color: var(--accent-primary); font-weight: 500; }
        .country-chip .chip-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 0 0 0 2px; transition: color 0.15s; }
        .country-chip .chip-remove:hover { color: var(--accent-danger); }

        /* ===== REGULATORY BANNER ===== */
        .reglementary-banner { background: linear-gradient(135deg, rgba(255,170,0,0.08), rgba(255,170,0,0.04)); border: 1px solid rgba(255,170,0,0.25); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; display: none; }
        .reglementary-banner.visible { display: block; }
        .reg-banner-header { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
        .reg-banner-flag { font-size: 18px; line-height: 1; }
        .reg-banner-title { font-size: 11px; font-weight: 700; color: var(--accent-warning); flex: 1; }
        .reg-banner-toggle { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 11px; padding: 0; transition: color 0.15s; }
        .reg-banner-toggle:hover { color: var(--text-primary); }
        .reg-banner-body { overflow: hidden; transition: max-height 0.3s ease; }
        .reg-banner-body.collapsed { max-height: 0; }
        .reg-banner-body.expanded { max-height: 600px; }
        .reg-req { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 5px; font-size: 10px; color: var(--text-secondary); line-height: 1.4; }
        .reg-req-icon { flex-shrink: 0; font-size: 11px; margin-top: 0px; }
        .reg-links { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
        .reg-link { font-size: 10px; color: var(--accent-secondary); text-decoration: none; display: flex; align-items: center; gap: 4px; }
        .reg-link:hover { color: var(--accent-primary); }

        /* ===== COUNTRY LAYERS SECTION ===== */
        .country-layers-section { display: none; }
        .country-layers-section.visible { display: block; }
        .country-section-header { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color); }

        /* ===== PER-LAYER OPACITY ROW ===== */
        .layer-item-wrap { margin-bottom: 4px; }
        .layer-item-wrap .layer-item { margin-bottom: 0; border-radius: 6px 6px 0 0; border-bottom: none; }
        .layer-opacity-row { display: none; background: var(--bg-card); border: 1px solid var(--border-color); border-top: 1px solid var(--bg-dark); border-radius: 0 0 6px 6px; padding: 4px 10px 5px 46px; align-items: center; gap: 8px; }
        .layer-item-wrap:has(.layer-item.active) .layer-opacity-row { display: flex; }
        .layer-opacity-slider { flex: 1; height: 3px; -webkit-appearance: none; background: var(--bg-dark); border-radius: 2px; cursor: pointer; }
        .layer-opacity-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; background: var(--accent-primary); border-radius: 50%; cursor: pointer; }
        .layer-opacity-val { font-size: 10px; font-weight: 600; color: var(--accent-primary); font-family: 'JetBrains Mono', monospace; min-width: 30px; text-align: right; }

        .map-container { position: relative; }

        /* ===== BASEMAP PICKER ===== */
        .basemap-picker { position: absolute; bottom: 50px; right: 20px; z-index: 1000; display: flex; gap: 6px; }
        .basemap-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--bg-panel); border: 2px solid var(--border-color); border-radius: 10px; padding: 4px 4px 5px; cursor: pointer; transition: all 0.18s; width: 58px; }
        .basemap-btn:hover { border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
        .basemap-btn.active { border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(0,212,170,0.25); }
        .basemap-btn span { font-size: 9px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
        .basemap-btn.active span { color: var(--accent-primary); }
        .bm-thumb { width: 50px; height: 36px; border-radius: 6px; overflow: hidden; background-size: cover; background-position: center; }
        .bm-osm      { background-image: url('https://tile.openstreetmap.org/8/130/88.png'); }
        .bm-satellite { background-image: url('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/8/88/130'); }
        #map { width: 100%; height: 100%; background: #1a1a24; }        .map-controls { position: absolute; bottom: 50px; left: 20px; display: flex; flex-direction: column; gap: 6px; z-index: 1000; }
        .map-control-btn { width: 40px; height: 40px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); cursor: pointer; font-size: 16px; transition: all 0.15s; }
        .map-control-btn:hover { background: var(--bg-hover); border-color: var(--accent-primary); }
        .map-place-btn.active { background: rgba(0,212,170,0.15); border-color: var(--accent-primary); color: var(--accent-primary); animation: pulse-border 1.5s ease-in-out infinite; }
        .coords-display { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 14px; display: flex; align-items: center; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; z-index: 1000; }
        .coord-label { color: var(--text-muted); font-size: 9px; }
        .coord-value { color: var(--accent-primary); font-weight: 600; }
        .locate-btn { background: none; border: none; font-size: 15px; cursor: pointer; padding: 0 4px 0 0; opacity: 0.7; transition: opacity 0.2s, transform 0.2s; line-height: 1; }
        .locate-btn:hover { opacity: 1; transform: scale(1.2); }
        .radar-controls { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 16px; display: none; align-items: center; gap: 12px; z-index: 1000; }
        .radar-controls.visible { display: flex; }
        .radar-btn { width: 32px; height: 32px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); cursor: pointer; font-size: 14px; }
        .radar-btn.active { background: var(--accent-primary); color: var(--bg-dark); }
        .radar-time { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--accent-secondary); min-width: 140px; text-align: center; }
        .radar-progress { width: 150px; height: 4px; background: var(--bg-dark); border-radius: 2px; }
        .radar-progress-bar { height: 100%; background: var(--accent-primary); transition: width 0.3s; }
        .sidebar-right { background: var(--bg-panel); border-left: 1px solid var(--border-color); overflow-y: auto; padding: 16px; }
        .weather-card { background: linear-gradient(135deg, var(--bg-card), var(--bg-hover)); border-radius: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--border-color); }
        .weather-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
        .weather-location { font-size: 13px; font-weight: 600; }
        .weather-date { font-size: 11px; color: var(--text-secondary); }
        .weather-icon-lg { width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
        .weather-main { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
        .weather-temp { font-size: 40px; font-weight: 700; line-height: 1; }
        .weather-condition { font-size: 12px; color: var(--text-secondary); }
        .flight-badge { padding: 4px 10px; border-radius: 12px; font-size: 10px; font-weight: 600; margin-top: 6px; display: inline-block; }
        .flight-badge.excellent { background: rgba(0,212,170,0.2); color: var(--accent-primary); border: 1px solid var(--accent-primary); }
        .flight-badge.good { background: rgba(0,168,255,0.2); color: var(--accent-secondary); border: 1px solid var(--accent-secondary); }
        .flight-badge.caution { background: rgba(255,170,0,0.2); color: var(--accent-warning); border: 1px solid var(--accent-warning); }
        .flight-badge.poor { background: rgba(255,68,102,0.2); color: var(--accent-danger); border: 1px solid var(--accent-danger); }
        .weather-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
        .weather-stat { background: var(--bg-dark); border-radius: 8px; padding: 10px; }
        .weather-stat-label { font-size: 9px; text-transform: uppercase; color: var(--text-muted); }
        .weather-stat-value { font-size: 14px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
        .wind-calc { background: var(--bg-card); border-radius: 10px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--border-color); }
        .wind-calc-title { font-size: 11px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
        .slider-row { margin-bottom: 10px; }
        .slider-header { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 4px; }
        .slider-value { font-family: 'JetBrains Mono', monospace; color: var(--accent-primary); font-weight: 600; }
        .wind-result { background: var(--bg-dark); border-radius: 6px; padding: 10px; text-align: center; }
        .wind-result-value { font-size: 24px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--accent-primary); }
        .wind-result-unit { font-size: 10px; color: var(--text-secondary); }
        .kp-section { background: var(--bg-card); border-radius: 10px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--border-color); }
        .kp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .kp-title { font-size: 11px; font-weight: 600; }
        .kp-value { font-size: 20px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
        .kp-value.good { color: var(--accent-primary); }
        .kp-value.moderate { color: var(--accent-warning); }
        .kp-value.bad { color: var(--accent-danger); }
        .kp-bar { height: 8px; background: var(--bg-dark); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
        .kp-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
        .kp-desc { font-size: 9px; color: var(--text-secondary); }
        .forecast-section { background: var(--bg-card); border-radius: 10px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--border-color); }
        .forecast-title { font-size: 11px; font-weight: 600; margin-bottom: 10px; }
        .forecast-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
        .forecast-day { flex-shrink: 0; width: 65px; background: var(--bg-dark); border-radius: 8px; padding: 10px 8px; text-align: center; }
        .forecast-day.today { border: 1px solid var(--accent-primary); }
        .forecast-day-name { font-size: 9px; color: var(--text-secondary); margin-bottom: 4px; }
        .forecast-day-icon { font-size: 20px; margin-bottom: 4px; }
        .forecast-day-temp { font-size: 11px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
        .forecast-day-wind { font-size: 9px; color: var(--accent-primary); margin-top: 2px; }
        .gps-section { margin-bottom: 12px; }
        .gps-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-card); border-radius: 6px; margin-bottom: 4px; cursor: pointer; border: 1px solid transparent; }
        .gps-item.selected { border-color: var(--accent-primary); background: rgba(0, 212, 170, 0.15); }
        .gps-marker { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; }
        .gps-info { flex: 1; }
        .gps-name { font-size: 11px; font-weight: 500; }
        .gps-coords { font-size: 9px; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
        .gps-type-badge { font-size: 8px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
        .gps-type-badge.private { background: rgba(170,68,255,0.2); color: var(--accent-purple); }
        .gps-type-badge.public { background: rgba(255,170,0,0.2); color: var(--accent-warning); }
        .gps-type-badge.unknown { background: rgba(136,136,170,0.2); color: var(--text-secondary); }
        .gps-delete { width: 22px; height: 22px; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-muted); cursor: pointer; font-size: 10px; flex-shrink: 0; }
        .gps-delete:hover { background: var(--accent-danger); color: white; border-color: var(--accent-danger); }
        .gps-rename-btn { width: 22px; height: 22px; background: transparent; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-muted); cursor: pointer; font-size: 10px; flex-shrink: 0; margin-right: 3px; }
        .gps-rename-btn:hover { background: var(--accent-warning); color: var(--bg-dark); border-color: var(--accent-warning); }
        .gps-rename-input { display: block; width: 100%; margin-top: 6px; padding: 5px 8px; background: var(--bg-dark); border: 1px solid var(--accent-primary); border-radius: 6px; color: var(--text-primary); font-size: 11px; font-family: 'Outfit', sans-serif; outline: none; }
        .gps-rename-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(0,212,170,0.15); }
        /* Bouton placer un point */
        .place-point-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 12px; margin-bottom: 10px; background: var(--bg-hover); border: 1px dashed var(--border-color); border-radius: 8px; color: var(--text-secondary); font-size: 12px; font-family: 'Outfit', sans-serif; cursor: pointer; transition: all 0.2s; font-weight: 500; }
        .place-point-btn:hover { background: rgba(0,212,170,0.08); border-color: var(--accent-primary); color: var(--accent-primary); }
        .place-point-btn.active { background: rgba(0,212,170,0.12); border: 1px solid var(--accent-primary); color: var(--accent-primary); animation: pulse-border 1.5s ease-in-out infinite; }
        @keyframes pulse-border { 0%,100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.3); } 50% { box-shadow: 0 0 0 4px rgba(0,212,170,0); } }
        .empty-state { text-align: center; padding: 20px; color: var(--text-muted); font-size: 11px; }
        .help-section { background: var(--bg-card); border-radius: 10px; padding: 14px; border: 1px solid var(--border-color); max-height: 400px; overflow-y: auto; }
        .help-title { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
        .help-zone { background: var(--bg-dark); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
        .help-zone-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
        .help-zone-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
        .help-zone-name { font-size: 11px; font-weight: 600; }
        .help-zone-type { font-size: 9px; color: var(--text-secondary); }
        .help-zone-details { font-size: 10px; color: var(--text-secondary); line-height: 1.5; }
        .help-contact { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg-card); border-radius: 6px; font-size: 10px; margin-top: 6px; }
        .help-contact a { color: var(--accent-secondary); text-decoration: none; }
        .help-private { background: rgba(170, 68, 255, 0.1); border: 1px solid var(--accent-purple); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
        .help-private-title { font-size: 11px; font-weight: 600; color: var(--accent-purple); margin-bottom: 4px; }
        .help-private-text { font-size: 10px; color: var(--text-secondary); line-height: 1.5; }
        .help-warning { background: rgba(255, 170, 0, 0.1); border: 1px solid var(--accent-warning); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
        .help-warning-title { font-size: 11px; font-weight: 600; color: var(--accent-warning); margin-bottom: 4px; }
        .help-warning-text { font-size: 10px; color: var(--text-secondary); line-height: 1.5; }
        .help-free { background: rgba(0, 212, 170, 0.1); border: 1px solid var(--accent-primary); border-radius: 8px; padding: 10px; }
        .help-free-title { font-size: 11px; font-weight: 600; color: var(--accent-primary); margin-bottom: 4px; }
        .help-free-text { font-size: 10px; color: var(--text-secondary); line-height: 1.5; }
        .help-empty { text-align: center; padding: 15px; color: var(--text-muted); font-size: 11px; }
        .help-mairie { background: var(--bg-dark); border-radius: 8px; padding: 10px; margin-top: 8px; }
        .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-panel); border: 1px solid var(--accent-primary); border-radius: 8px; padding: 10px 18px; z-index: 10002; opacity: 0; transition: all 0.3s; font-size: 12px; }
        .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; pointer-events: none; }
        .modal-overlay.show { opacity: 1; pointer-events: auto; }
        .modal { background: var(--bg-panel); border-radius: 12px; border: 1px solid var(--border-color); padding: 20px; width: 90%; max-width: 400px; }
        .modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
        .modal-subtitle { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
        .modal-actions { display: flex; gap: 10px; margin-top: 16px; }
        .modal-actions .btn { flex: 1; }
        .location-type-selector { display: flex; flex-direction: column; gap: 8px; }
        .location-type-option { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; }
        .location-type-option.selected { border-color: var(--accent-primary); background: rgba(0, 212, 170, 0.1); }
        .location-type-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .location-type-info { flex: 1; }
        .location-type-name { font-size: 13px; font-weight: 600; }
        .location-type-desc { font-size: 10px; color: var(--text-secondary); }
        .location-type-radio { width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 50%; }
        .location-type-option.selected .location-type-radio { border-color: var(--accent-primary); }
        .location-type-option.selected .location-type-radio::after { content: ''; display: block; width: 10px; height: 10px; background: var(--accent-primary); border-radius: 50%; margin: 2px; }
        .loading-overlay { position: fixed; inset: 0; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; z-index: 9999; }
        .loading-overlay.hidden { opacity: 0; pointer-events: none; }
        .loader { width: 40px; height: 40px; border: 3px solid var(--border-color); border-top-color: var(--accent-primary); border-radius: 50%; animation: spin 1s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes pulse-logo { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.65; transform:scale(0.92); } }
        .leaflet-control-zoom { display: none; }
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
        .forecast-scroll::-webkit-scrollbar { height: 4px; }

        /* ============================================================
           RESPONSIVE MOBILE — carte en haut, 2 colonnes en bas
           ============================================================ */
        @media (max-width: 768px) {
            body { overflow-y: auto; height: auto; }

            .app-container {
                display: flex;
                flex-direction: column;
                height: auto;
                min-height: 100vh;
            }

            /* Header compact */
            .header {
                flex-shrink: 0;
                height: 50px;
                padding: 0 10px;
                gap: 6px;
            }
            .logo { font-size: 15px; white-space: nowrap; flex-shrink: 0; }
            .search-container { flex: 1; min-width: 0; }
            .search-box { width: 100%; }
            .header-user-area { display: flex; gap: 5px; flex-shrink: 0; }
            .header-user-area .btn { padding: 5px 9px; font-size: 11px; }

            /* bottom-panels : flex colonne (carte en haut, 2 cols en bas) */
            .bottom-panels {
                display: flex;
                flex-direction: column;
                flex: 1;
                height: auto;
                overflow: visible;
                grid-template-columns: unset;
            }

            /* Carte en haut */
            .map-container {
                order: 1;
                width: 100%;
                height: 52vw;
                min-height: 210px;
                max-height: 340px;
                flex-shrink: 0;
                position: relative;
            }
            #map { width: 100%; height: 100%; }

            /* Les sidebars en pleine largeur, empilées sous la carte */
            .sidebar-left,
            .sidebar-right {
                order: 2;
                width: 100%;
                float: none;
                max-height: none;
                overflow-y: visible;
                padding: 12px 14px;
                border-top: 1px solid var(--border-color);
            }
            .sidebar-left { border-right: none; }

            /* clearfix (garde au cas où) */
            .bottom-panels::after { content: ''; display: table; clear: both; }

            /* Contrôles carte */
            .coords-display { bottom: 6px; font-size: 9px; padding: 4px 8px; gap: 10px; }
            .map-controls { bottom: 6px; left: 6px; gap: 4px; }
            .map-control-btn { width: 32px; height: 32px; font-size: 13px; }
            .radar-controls { bottom: 44px; padding: 6px 10px; gap: 7px; }

            /* Couches compactes */
            .sidebar-section { margin-bottom: 12px; }
            .section-title { font-size: 9px; }
            .layer-item { padding: 5px 7px; gap: 7px; }
            .layer-name { font-size: 11px; }
            .layer-desc { font-size: 9px; }
            .layer-icon { width: 24px; height: 24px; font-size: 12px; }
            .layer-toggle { width: 28px; height: 16px; }
            .layer-toggle::after { width: 12px; height: 12px; }
            .layer-item.active .layer-toggle::after { left: 14px; }

            /* Météo compacte */
            .weather-card { padding: 10px; margin-bottom: 8px; }
            .weather-temp { font-size: 24px; }
            .weather-icon-lg { width: 34px; height: 34px; font-size: 17px; }
            .weather-grid { gap: 5px; }
            .weather-stat { padding: 6px; }
            .weather-stat-value { font-size: 11px; }
            .weather-stat-label { font-size: 8px; }
            .wind-calc { padding: 10px; margin-bottom: 8px; }
            .wind-calc-title { font-size: 10px; }
            .kp-section { padding: 10px; margin-bottom: 8px; }
            .kp-title { font-size: 10px; }
            .forecast-section { padding: 10px; }
            .forecast-day { width: 50px; padding: 6px 4px; }
            .forecast-day-icon { font-size: 15px; }
            .forecast-day-temp { font-size: 10px; }
            .help-section { max-height: unset; padding: 10px; }
            .gps-section { margin-bottom: 8px; }
        }

        @media (max-width: 480px) {
            .map-container { height: 50vw; min-height: 190px; max-height: 280px; }
        }

        /* ===== SIDEBAR COLLAPSE (desktop only) ===== */
        .bottom-panels {
            transition: grid-template-columns 0.25s ease;
        }
        .bottom-panels.left-collapsed {
            grid-template-columns: 36px 1fr 420px;
        }
        .bottom-panels.right-collapsed {
            grid-template-columns: 320px 1fr 36px;
        }
        .bottom-panels.left-collapsed.right-collapsed {
            grid-template-columns: 36px 1fr 36px;
        }

        .sidebar-collapse-btn {
            position: sticky;
            top: 0;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 28px;
            background: var(--bg-hover);
            border: none;
            border-radius: 4px;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 11px;
            margin-bottom: 12px;
            transition: all 0.2s;
        }
        .sidebar-collapse-btn:hover {
            background: var(--border-color);
            color: var(--text-primary);
        }

        .sidebar-left.collapsed {
            width: 36px;
            overflow: hidden;
            position: relative;
            padding: 0;
        }
        .sidebar-right.collapsed {
            width: 36px;
            overflow: hidden;
            position: relative;
            padding: 0;
        }
        .sidebar-left.collapsed .sidebar-collapse-btn,
        .sidebar-right.collapsed .sidebar-collapse-btn {
            width: 36px;
            height: 100%;
            border-radius: 0;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            margin: 0;
        }
        .sidebar-left.collapsed .sidebar-section,
        .sidebar-right.collapsed .sidebar-section,
        .sidebar-left.collapsed .weather-card,
        .sidebar-right.collapsed .weather-card,
        .sidebar-left.collapsed .wind-calc,
        .sidebar-right.collapsed .wind-calc,
        .sidebar-left.collapsed .kp-section,
        .sidebar-right.collapsed .kp-section,
        .sidebar-left.collapsed .forecast-section,
        .sidebar-right.collapsed .forecast-section,
        .sidebar-left.collapsed .gps-section,
        .sidebar-right.collapsed .gps-section,
        .sidebar-left.collapsed .help-section,
        .sidebar-right.collapsed .help-section {
            display: none;
        }

        /* Hide collapse buttons on mobile */
        @media (max-width: 768px) {
            .sidebar-collapse-btn { display: none !important; }
        }

        /* ===== FULLSCREEN MAP BUTTON ===== */
        .map-fullscreen-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
            width: 36px;
            height: 36px;
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 18px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .map-fullscreen-btn:hover {
            background: var(--bg-hover);
            border-color: var(--accent-primary);
        }

        @media (max-width: 768px) {
            .map-fullscreen-btn { display: flex; }
        }

        /* Fullscreen mode */
        .map-fullscreen-active .header { display: none; }
        .map-fullscreen-active .bottom-panels {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: flex;
            flex-direction: column;
        }
        .map-fullscreen-active .map-container {
            order: 1;
            flex: 1;
            height: 100% !important;
            max-height: 100% !important;
        }
        .map-fullscreen-active .sidebar-left,
        .map-fullscreen-active .sidebar-right {
            display: none !important;
        }
        .map-fullscreen-active .map-fullscreen-btn {
            background: var(--accent-primary);
            color: var(--bg-dark);
        }

        /* ===== B4UFLY AIRSPACE VERDICT PANEL ===== */
        .b4ufly-section {
            padding: 12px;
            border-top: 1px solid var(--border-color);
        }
        .b4ufly-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .b4ufly-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .b4ufly-badge {
            font-size: 11px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.06em;
        }
        .b4ufly-badge.go    { background: #003322; color: #00ff88; border: 1px solid #00ff88; }
        .b4ufly-badge.caution { background: #332200; color: #ffaa00; border: 1px solid #ffaa00; }
        .b4ufly-badge.no_go { background: #330000; color: #ff4444; border: 1px solid #ff4444; }
        .b4ufly-badge.unknown { background: var(--bg-dark); color: var(--text-muted); border: 1px solid var(--border-color); }
        .b4ufly-badge.loading { background: var(--bg-dark); color: var(--text-muted); border: 1px solid var(--border-color); animation: pulse 1.2s infinite; }

        .b4ufly-verdict-row {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            padding: 8px;
            border-radius: 6px;
            margin-bottom: 6px;
            border: 1px solid var(--border-color);
            background: var(--bg-dark);
        }
        .b4ufly-verdict-icon { font-size: 18px; flex-shrink: 0; }
        .b4ufly-verdict-text { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
        .b4ufly-verdict-text strong { display: block; font-size: 12px; margin-bottom: 2px; }

        .b4ufly-reason {
            font-size: 10px;
            color: var(--text-muted);
            padding: 4px 8px;
            border-left: 2px solid var(--border-color);
            margin: 3px 0;
        }
        .b4ufly-reason.danger { border-color: #ff4444; color: #ff8888; }
        .b4ufly-reason.warn   { border-color: #ffaa00; color: #ffcc66; }
        .b4ufly-reason.ok     { border-color: #00cc66; color: #44ee99; }

        .b4ufly-facility {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 8px;
            border-radius: 4px;
            background: #001a0d;
            border: 1px solid #00332200;
            margin: 3px 0;
        }
        .b4ufly-facility-name { font-size: 10px; color: var(--text-secondary); }
        .b4ufly-facility-ceiling { font-size: 11px; font-weight: 700; color: #00ff88; }
        .b4ufly-facility-ceiling.zero { color: #ff4444; }

        .b4ufly-links {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 8px;
        }
        .b4ufly-link {
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            color: var(--accent-primary);
            text-decoration: none;
            transition: all 0.15s;
        }
        .b4ufly-link:hover { background: var(--accent-primary); color: var(--bg-dark); border-color: var(--accent-primary); }

        /* ===== FAA DYNAMIC LAYER STATUS INDICATOR ===== */
        .faa-layer-status {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: rgba(0,0,0,0.75);
            color: #fff;
            font-size: 10px;
            padding: 4px 10px;
            border-radius: 12px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .faa-layer-status.visible { opacity: 1; }

        /* ===== OPENAIP STATUS ===== */
        .openaip-status {
            display: none;
            font-size: 10px;
            color: var(--text-muted);
            padding: 4px 8px;
            margin: 4px 0 0;
            background: var(--bg-dark);
            border-radius: 4px;
            border-left: 2px solid var(--accent-primary);
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* ── Bouton "Fiche complète & FAQ" dans la bannière réglementaire ── */
        .reg-fiche-btn {
            display: inline-flex; align-items: center; gap: 5px;
            background: linear-gradient(135deg, rgba(0,168,255,0.15), rgba(0,212,170,0.1));
            border: 1px solid rgba(0,168,255,0.35);
            color: var(--accent-secondary);
            font-size: 10px; font-weight: 700; font-family: 'Outfit', sans-serif;
            padding: 5px 10px; border-radius: 20px;
            cursor: pointer; transition: all 0.2s; width: 100%;
            justify-content: center; letter-spacing: 0.2px;
        }
        .reg-fiche-btn:hover {
            background: linear-gradient(135deg, rgba(0,168,255,0.25), rgba(0,212,170,0.18));
            border-color: rgba(0,168,255,0.6); color: #fff;
            transform: translateY(-1px);
        }

        /* ── Modal fiche pays ── */
        .fiche-pays-container {
            max-width: 900px; width: 96vw;
            max-height: calc(100vh - 40px);
            overflow-y: auto !important;
            overflow-x: hidden;
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        .fiche-pays-header {
            display: flex; align-items: flex-start; gap: 14px;
            padding: 24px 28px 20px; border-bottom: 1px solid var(--border-color);
            background: linear-gradient(135deg, rgba(0,168,255,0.06), rgba(0,212,170,0.04));
            position: sticky; top: 0; z-index: 10;
            backdrop-filter: blur(12px);
        }
        .fiche-summary {
            margin: 16px 28px;
            padding: 14px 16px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(0,168,255,0.18);
            border-left: 3px solid var(--accent-secondary);
            border-radius: 10px;
            font-size: 13px; color: var(--text-secondary); line-height: 1.6;
        }
        .fiche-pays-body {
            display: grid;
            grid-template-columns: 1fr 240px;
            gap: 0;
            padding: 0 0 24px;
        }
        @media (max-width: 640px) {
            .fiche-pays-body { grid-template-columns: 1fr; }
        }
        .fiche-pays-main { padding: 4px 28px 20px; }
        .fiche-pays-links {
            padding: 20px 20px 20px 16px;
            border-left: 1px solid var(--border-color);
            min-width: 0;
        }

        /* ── FAQ items ── */
        .fiche-faq-item {
            margin-bottom: 4px;
            border: 1px solid var(--border-color);
            border-radius: 10px; overflow: hidden;
        }
        .fiche-faq-q {
            font-size: 12px; font-weight: 700; color: var(--text-primary);
            padding: 11px 14px;
            background: rgba(255,255,255,0.03);
            cursor: pointer;
            display: flex; align-items: center; gap: 6px;
            user-select: none;
            transition: background 0.15s;
        }
        .fiche-faq-q:hover { background: rgba(255,255,255,0.06); }
        .fiche-faq-q::after { content: '▾'; margin-left: auto; font-size: 11px; color: var(--text-muted); transition: transform 0.2s; }
        .fiche-faq-item.open .fiche-faq-q::after { transform: rotate(180deg); }
        .fiche-faq-a {
            font-size: 12px; color: var(--text-secondary); line-height: 1.65;
            padding: 0 14px; max-height: 0; overflow: hidden;
            transition: max-height 0.3s ease, padding 0.2s ease;
        }
        .fiche-faq-item.open .fiche-faq-a { max-height: 600px; padding: 10px 14px 14px; }

        /* ── Links panel ── */
        .fiche-link-item {
            display: flex; align-items: center; gap: 6px;
            font-size: 11px; color: var(--accent-secondary);
            text-decoration: none; padding: 5px 0;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            transition: color 0.15s;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .fiche-link-item:hover { color: var(--accent-primary); }
        .fiche-link-item:last-child { border-bottom: none; }

