/* Styles propres à projets/aeroports/index.html — charte partagée : /assets/site.css */
    /* ── Charte omnia amplecti — thème clair (fond bleu clair + bleu marine + or) ── */
    :root {
      --bg: #f2f5fa;
      --bg2: #e9eef7;
      --carte: #ffffff;
      --carte2: #e6ecf6;
      --bordure: rgba(184, 154, 90, 0.28);
      --encre: #1d3a5f;
      --texte: #1a1814;
      --muet: #7a7060;
      --or: #b89a5a;
      --or-clair: #9a7b3f;
      --or-fonce: #9a7b3f;
      --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
      --sans: "Montserrat", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
      /* Variables pour le bandeau commun (/assets/site.css) — thème clair */
      --nav-h: 72px;
      --paper: #f2f5fa;
      --paper-dark: #e6ecf6;
      --brand: #1d3a5f;
      --gold: #b89a5a;
      --muted: #7a7060;
      --ink: #1a1814;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { background: var(--bg); }
    body {
      font-family: var(--sans);
      font-weight: 300;
      background: var(--bg);
      color: var(--texte);
      min-height: 100vh;
      padding-top: var(--nav-h);
      display: flex;
      flex-direction: column;
    }

    /* ── En-tête de page (titre centré, sous le bandeau commun) ── */
    .entete {
      flex: 0 0 auto;
      width: 100%; max-width: 900px;
      margin: 0 auto;
      padding: 2rem 1.5rem 0.6rem;
      text-align: center;
    }
    .entete h1 {
      margin: 0;
      font-family: var(--serif); font-weight: 600;
      font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05;
      letter-spacing: 0.01em; color: var(--brand);
    }
    .entete h1 em { font-style: normal; color: var(--brand); }
    .accroche {
      margin: 0.5rem auto 0;
      font-family: var(--serif); font-style: italic;
      font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muet);
      max-width: 640px; line-height: 1.4;
    }
    .filet {
      height: 2px; width: 60px; margin: 1rem auto 0;
      background: var(--or);
      opacity: 0.85;
    }

    /* ── Scène cartographique ── */
    .scene {
      position: relative;
      width: 100%; max-width: 1100px;
      margin: 1.4rem auto 0;
      height: min(70vh, 620px); min-height: 420px;
      border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden;
    }
    #map { position: absolute; inset: 0; background: var(--bg2); }

    /* Panneaux flottants */
    .panel {
      position: absolute;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid var(--bordure);
      border-radius: 10px;
      padding: 14px 16px;
      z-index: 900;
      backdrop-filter: blur(4px);
      font-size: 12px;
      line-height: 1.5;
      color: var(--texte);
      box-shadow: 0 10px 30px rgba(29, 58, 95, 0.12);
    }
    .panel h4 {
      font-family: var(--sans);
      font-size: 11px; font-weight: 600; color: var(--or-fonce);
      margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.16em;
    }

    .legend { bottom: 18px; right: 18px; width: 220px; }
    .legend .sizes { position: relative; height: 90px; margin: 6px 0 14px; }
    .legend .sizes svg { overflow: visible; }
    .legend .cats div { display: flex; align-items: center; margin-bottom: 6px; color: var(--texte); }
    .legend .swatch { width: 13px; height: 13px; border-radius: 50%; margin-right: 9px; flex-shrink: 0; }

    .info { top: 18px; left: 18px; width: 234px; }
    .info .row { color: var(--texte); margin-bottom: 4px; }
    .info .row b { color: var(--encre); font-weight: 600; }
    .info .hint { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--bordure); color: var(--muet); font-size: 11px; }

    .search { top: 76px; right: 18px; }
    .search input {
      background: #fff; border: 1px solid var(--bordure); color: var(--encre);
      border-radius: 8px; padding: 8px 11px; font-size: 12.5px; font-family: var(--sans);
      font-weight: 300; width: 190px; outline: none; transition: border-color 0.15s;
    }
    .search input::placeholder { color: var(--muet); }
    .search input:focus { border-color: var(--or); }

    /* Popups Leaflet */
    .leaflet-popup-content-wrapper { background: var(--carte); color: var(--texte); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: 0 12px 30px rgba(29, 58, 95, 0.18); }
    .leaflet-popup-tip { background: var(--carte); border: 1px solid var(--bordure); }
    .leaflet-popup-content { margin: 12px 14px; font-size: 12.5px; font-family: var(--sans); }
    .pop-name { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--encre); margin-bottom: 2px; }
    .pop-sub { color: var(--muet); font-size: 11px; margin-bottom: 9px; letter-spacing: 0.02em; }
    .pop-pax { font-size: 17px; font-weight: 600; color: var(--or-clair); }
    .pop-pax span { font-size: 11px; color: var(--muet); font-weight: 400; }
    .pop-rank { color: var(--texte); margin-top: 6px; font-size: 11.5px; }
    .pop-evo { margin-top: 4px; font-size: 11.5px; }
    .leaflet-container a.leaflet-popup-close-button { color: var(--muet); }
    .leaflet-container a.leaflet-popup-close-button:hover { color: var(--encre); }
    .leaflet-control-attribution { background: rgba(255, 255, 255, 0.82) !important; color: var(--muet) !important; }
    .leaflet-control-attribution a { color: var(--or-fonce) !important; }
    .leaflet-bar a { background: var(--carte); color: var(--texte); border-bottom: 1px solid var(--bordure); }
    .leaflet-bar a:hover { background: var(--carte2); color: var(--encre); }

    .legend .route-key { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--bordure); color: var(--muet); font-size: 11px; }
    .legend .route-key .line { display:inline-block; width:26px; height:0; border-top:2px solid var(--encre); vertical-align:middle; margin-right:8px; opacity:.75; }

    /* ── En-tête de panneau réductible ── */
    .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .panel-head h4 { margin-bottom: 0; }
    .panel-toggle {
      flex: 0 0 auto; width: 22px; height: 22px; line-height: 1;
      background: #fff; border: 1px solid var(--bordure); border-radius: 6px;
      color: var(--or-fonce); font-size: 15px; font-family: var(--sans); cursor: pointer;
      display: flex; align-items: center; justify-content: center; padding: 0;
      transition: border-color .15s, color .15s;
    }
    .panel-toggle:hover { border-color: var(--or); color: var(--encre); }
    .panel .panel-body { margin-top: 10px; }
    .panel.collapsed .panel-body { display: none; }
    .panel.collapsed .panel-head h4 { margin: 0; }

    /* Bouton plein écran (coin bas-gauche de la carte) */
    .map-btn {
      position: absolute; z-index: 900;
      width: 34px; height: 34px; border-radius: 8px;
      background: rgba(255,255,255,0.94); border: 1px solid var(--bordure);
      color: var(--encre); font-size: 16px; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 6px 18px rgba(29, 58, 95, 0.12);
      transition: background .15s, border-color .15s;
    }
    .map-btn:hover { background: #fff; border-color: var(--or); }
    .map-btn.fs { left: 16px; bottom: 16px; }

    /* Plein écran : la scène occupe tout l'écran */
    .scene:fullscreen, .scene:-webkit-full-screen {
      width: 100%; height: 100%; max-width: none; min-height: 0;
      margin: 0; border: none; border-radius: 0;
    }

    /* ── Colonne de contrôles (filtre pays + métrique) ── */
    .controls {
      top: 16px; left: 16px; width: 256px;
      max-height: calc(100% - 78px);
      display: flex; flex-direction: column;
      padding: 14px 15px; overflow: hidden;
    }
    .controls .panel-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
    .controls .pad { padding: 0; }
    .controls .pad:first-child { flex: 0 0 auto; }
    .controls .rule { border-top: 1px solid var(--bordure); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    .controls .row { color: var(--texte); margin-bottom: 4px; }
    .controls .row b { color: var(--encre); font-weight: 600; }

    .toggle-all { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; user-select: none; color: var(--texte); }
    .toggle-all input { accent-color: var(--or); width: 15px; height: 15px; cursor: pointer; margin-top: 1px; }
    .toggle-all .lbl { font-size: 12.5px; }
    .toggle-all .sub { display:block; color: var(--muet); font-size: 10.5px; margin-top: 1px; }

    .metric { margin-top: 13px; }
    .metric .metric-lbl { display:block; color: var(--muet); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
    .seg { display: flex; border: 1px solid var(--bordure); border-radius: 8px; overflow: hidden; }
    .seg button {
      flex: 1 1 0; background: #fff; border: none; color: var(--muet);
      padding: 6px 4px; font-size: 11.5px; font-family: var(--sans); cursor: pointer;
      transition: background .15s, color .15s;
    }
    .seg button + button { border-left: 1px solid var(--bordure); }
    .seg button:hover { color: var(--encre); }
    .seg button.on { background: var(--or); color: #fff; font-weight: 500; }

    .pays-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .pays-head h4 { margin: 0; }
    .pays-actions { display: flex; gap: 6px; }
    .mini-btn {
      background: #fff; border: 1px solid var(--bordure); color: var(--or-fonce);
      border-radius: 6px; padding: 3px 8px; font-size: 10.5px; font-family: var(--sans);
      cursor: pointer; transition: border-color .15s, color .15s;
    }
    .mini-btn:hover { border-color: var(--or); color: var(--encre); }
    .pays-search {
      width: 100%; background: #fff; border: 1px solid var(--bordure); color: var(--encre);
      border-radius: 7px; padding: 6px 9px; font-size: 12px; font-family: var(--sans); font-weight: 300;
      outline: none; margin-bottom: 8px; transition: border-color .15s;
    }
    .pays-search:focus { border-color: var(--or); }
    .pays-list { overflow-y: auto; flex: 1 1 auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
    .pays-list::-webkit-scrollbar { width: 8px; }
    .pays-list::-webkit-scrollbar-thumb { background: var(--bordure); border-radius: 8px; }
    .pays-item {
      display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 6px;
      cursor: pointer; user-select: none; color: var(--texte); font-size: 12px;
    }
    .pays-item:hover { background: var(--carte2); }
    .pays-item input { accent-color: var(--or); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
    .pays-item .nm { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pays-item .ct { color: var(--muet); font-size: 10.5px; flex-shrink: 0; }
    .pays-item.off .nm { color: var(--muet); opacity: .7; }

    .pop-stat { font-size: 17px; font-weight: 600; color: var(--or-clair); }
    .pop-stat span { font-size: 11px; color: var(--muet); font-weight: 400; }
    .pop-dests { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bordure); color: var(--muet); font-size: 11px; line-height: 1.5; max-width: 236px; }
    .pop-dests b { color: var(--texte); font-weight: 600; }

    /* ── Responsive ── */
    @media (max-width: 640px) {
      .scene { height: 74vh; min-height: 420px; }
      .controls { width: 210px; top: 12px; left: 12px; }
      .search input { width: 140px; }
      .legend { width: 188px; }
    }
