  /* Gabarit : website/cartes/collisions-reseau-arteriel/index.html (même système « verre »). */
  :root {
    --brand: #16a34a;
    --brand-dark: #0f7a37;
    --brand-light: #4ade80;
    --ink-900: #0b1120;
    --ink-700: #33413a;
    --ink-500: #5b6b62;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --glass: rgba(255, 255, 255, 0.6);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px -12px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --glass-blur: blur(20px) saturate(180%);
    --shadow-soft: 0 10px 30px -12px rgba(11, 17, 32, 0.25);
    --shadow-pop: 0 20px 50px -18px rgba(11, 17, 32, 0.35);
    --ease: cubic-bezier(.16, .84, .44, 1);
    --gap: 16px;
    --sidebar-w: 300px;
    --hairline: rgba(11, 17, 32, 0.08);
    --track: rgba(11, 17, 32, 0.08);
  }

  html, body {
    margin: 0; padding: 0; height: 100%; width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-900);
  }
  #map { position: absolute; inset: 0; background: #eef1ea; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  /* ---------- Header ---------- */
  .gf-header {
    position: fixed;
    top: var(--gap); left: var(--gap); right: var(--gap);
    z-index: 1000;
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }
  .gf-sidebar-toggle {
    position: fixed; z-index: 960;
    top: calc(var(--gap) * 2 + 70px); left: calc(var(--gap) + var(--sidebar-w) - 44px);
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--glass-border); background: var(--glass-strong);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    color: var(--ink-900); cursor: pointer;
    transition: top .3s var(--ease), left .3s var(--ease), width .3s var(--ease), height .3s var(--ease),
                box-shadow .3s var(--ease), background .18s var(--ease), transform .18s var(--ease);
  }
  .gf-sidebar-toggle:hover { background: var(--surface, #fff); transform: translateY(-1px); }
  .gf-sidebar-toggle svg { width: 18px; height: 18px; }
  @media (min-width: 761px) {
    body.gf-sidebar-collapsed .gf-sidebar-toggle {
      top: calc(var(--gap) * 2 + 60px); left: var(--gap);
      width: 42px; height: 42px; box-shadow: var(--glass-shadow);
    }
  }
  @media (max-width: 760px) {
    .gf-sidebar-toggle {
      top: calc(20px + var(--gf-header-h, 60px)); left: 10px;
      width: 38px; height: 38px; box-shadow: var(--glass-shadow);
    }
    body:has(.gf-sidebar.open) .gf-sidebar-toggle {
      z-index: 1460; top: calc(var(--gap) + 10px); left: calc(var(--gap) + min(86vw, 330px) - 44px);
      width: 34px; height: 34px; box-shadow: none;
    }
  }
  .gf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .gf-brand-mark {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(140deg, var(--brand-light), var(--brand-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(15,122,55,.55), inset 0 1px 0 rgba(255,255,255,.4);
  }
  .gf-brand-mark svg { width: 27px; height: 27px; }
  .gf-brand-text { line-height: 1.15; min-width: 0; }
  .gf-brand-word {
    font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gf-brand-word span { color: var(--brand-dark); }
  .gf-brand-sub { font-size: .72rem; color: var(--ink-500); font-weight: 500; white-space: nowrap; }
  .gf-brand-sub a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
  .gf-brand-sub a:hover { text-decoration: underline; }
  .gf-header-spacer { flex: 1; }
  .gf-back {
    font-size: .78rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
    white-space: nowrap; padding: 7px 11px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: background .18s var(--ease), transform .18s var(--ease);
  }
  .gf-back:hover { background: var(--glass-strong); transform: translateY(-1px); }
  .gf-info-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    padding: 0;
    border: 1.5px solid currentColor; background: transparent;
    color: var(--gf-info-trait, var(--brand-ink, var(--brand-dark))); cursor: pointer;
    transition: background-color .2s ease;
  }
  .gf-info-btn svg { width: 16px; height: 16px; position: relative; z-index: 1; }
  .gf-info-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
  .gf-info-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(11, 17, 32, 0.45);
    backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease);
  }
  .gf-info-overlay.open { opacity: 1; pointer-events: auto; }
  .gf-info-panel {
    position: relative; width: min(480px, 100%); max-height: min(84vh, 700px); overflow-y: auto;
    background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), var(--shadow-pop);
    padding: 30px 26px 26px;
    transform: scale(0.94) translateY(8px); opacity: 0;
    transition: transform .28s var(--ease), opacity .28s var(--ease);
  }
  .gf-info-overlay.open .gf-info-panel { transform: scale(1) translateY(0); opacity: 1; }
  .gf-info-panel h2 {
    margin: 0 0 12px; font-size: 1.25rem; letter-spacing: -0.01em;
    font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; color: var(--ink-900); padding-right: 28px;
  }
  .gf-info-panel h3 { margin: 18px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
  .gf-info-panel p, .gf-info-panel li { margin: 0 0 12px; font-size: .86rem; line-height: 1.6; color: var(--ink-700); }
  .gf-info-panel ul { margin: 0 0 12px; padding-left: 18px; }
  .gf-info-panel li { margin-bottom: 6px; }
  .gf-info-panel a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
  .gf-info-panel a:hover { text-decoration: underline; }
  .gf-info-panel strong { color: var(--brand-dark); }
  .gf-info-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--glass-border); background: var(--glass);
    color: var(--ink-900); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s var(--ease), transform .18s var(--ease);
  }
  .gf-info-close:hover { background: var(--glass-strong); transform: scale(1.08); }
  .gf-person {
    display: flex; align-items: center; gap: 12px; padding: 10px; margin: 6px 0 12px;
    border-radius: var(--radius-md); text-decoration: none; color: inherit;
    border-top: 1px solid var(--hairline);
    transition: background .18s var(--ease), transform .18s var(--ease);
  }
  .gf-info-panel a.gf-person:hover { background: rgba(255,255,255,.55); transform: translateX(2px); text-decoration: none; }
  .gf-person img {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(11, 17, 32, 0.22);
  }
  .gf-person-name { font-weight: 700; font-size: .9rem; color: var(--ink-900); }
  .gf-person-role { font-size: .76rem; color: var(--ink-500); font-weight: 500; }
  .gf-info-legal { font-size: .78rem !important; }
  @media (max-width: 760px) {
    .gf-info-btn { width: 28px; height: 28px; }
    .gf-info-btn svg { width: 14px; height: 14px; }
  }

  .arrond-control {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 500; color: var(--ink-700);
  }
  .arrond-control select, .gf-years select {
    appearance: none; font-family: inherit; font-size: .82rem; font-weight: 500; color: var(--ink-900);
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px;
    padding: 7px 16px; cursor: pointer; max-width: 42vw; box-sizing: border-box;
    box-shadow: var(--shadow-soft);
    transition: border-color .18s var(--ease), transform .18s var(--ease);
  }
  .arrond-control select:hover, .gf-years select:hover { border-color: var(--brand); transform: translateY(-1px); }
  .arrond-control select:focus-visible, .gf-years select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

  @media (max-width: 760px) {
    .gf-header { top: 10px; left: 10px; right: 10px; padding: 10px 14px; gap: 8px 10px; }
    .gf-brand { flex: 1 1 0; min-width: 0; }
    .gf-brand-word { font-size: .92rem; }
    body:not(.sim) .gf-brand-sub { display: none; }   /* une ligne de moins au-dessus de la carte */
    body:not(.sim) .gf-header { padding: 8px 12px; }
    body:not(.sim) .gf-brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    body:not(.sim) .gf-brand-mark svg { width: 20px; height: 20px; }
    .gf-header-spacer { display: none; }
    .arrond-control { order: 10; flex: 1 1 100%; }
    .arrond-control select { flex: 1 1 0; width: 0; min-width: 0; max-width: none; }
  }

  /* ---------- Sidebar ---------- */
  .gf-sidebar {
    position: fixed;
    top: calc(var(--gap) * 2 + 60px); left: var(--gap); bottom: var(--gap);
    width: var(--sidebar-w);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 950;
    display: flex; flex-direction: column; overflow-y: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  @media (min-width: 761px) {
    body.gf-sidebar-collapsed .gf-sidebar {
      opacity: 0; pointer-events: none; transform: translateX(calc(-100% - var(--gap)));
    }
  }
  .gf-sidebar-header {
    display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px;
  }
  .gf-sidebar-header h2 {
    margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-500);
  }
  .gf-sidebar-list { display: flex; flex-direction: column; padding: 4px 10px 10px; gap: 3px; }
  .gf-sidebar-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 8px;
    border-radius: var(--radius-sm); cursor: pointer; font-size: .85rem; font-weight: 500;
    transition: background .18s var(--ease), transform .18s var(--ease);
  }
  .gf-sidebar-item:hover { background: rgba(255,255,255,.55); transform: translateX(2px); }
  .gf-sidebar-item input[type="checkbox"], .gf-legend-row input[type="checkbox"] {
    width: 15px; height: 15px; margin: 0; accent-color: var(--brand-dark); cursor: pointer; flex-shrink: 0;
  }
  .gf-sidebar-label { flex: 1; color: var(--ink-900); }
  .gf-sidebar-note { margin: 0; padding: 0 18px 14px; font-size: .74rem; color: var(--ink-500); line-height: 1.5; }
  .gf-sidebar-divider { height: 1px; background: var(--glass-border); margin: 2px 14px 4px; flex-shrink: 0; }

  /* Bloc statistique */
  .gf-stats { padding: 0 14px 6px; }
  .gf-stats-total { margin: 0 4px 10px; font-size: .78rem; color: var(--ink-700); line-height: 1.45; }
  .gf-stats-total b { color: var(--ink-900); }
  .gf-bar {
    display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 0 4px 12px;
    background: var(--track);
  }
  .gf-bar span { display: block; height: 100%; transition: width .35s var(--ease); }
  .gf-stat-row {
    display: grid; grid-template-columns: 12px 1fr auto; align-items: baseline; column-gap: 10px;
    padding: 7px 4px; border-bottom: 1px solid var(--hairline);
  }
  .gf-stat-row:last-of-type { border-bottom: none; }
  .gf-stat-row .gf-legend-dot { align-self: center; }
  .gf-stat-label { font-size: .85rem; font-weight: 600; color: var(--ink-900); line-height: 1.25; }
  .gf-stat-label small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-500); }
  .gf-stat-pct {
    font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink-900);
    font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
  }
  .gf-stat-sub { grid-column: 2 / 4; font-size: .72rem; color: var(--ink-500); margin-top: 2px; }
  .gf-stat-row.is-detail { padding: 2px 4px 6px 26px; border-bottom: none; grid-template-columns: 1fr auto; }
  .gf-stat-row.is-detail .gf-stat-label { font-size: .76rem; font-weight: 500; color: var(--ink-700); }
  .gf-stat-row.is-detail .gf-stat-pct { font-size: .8rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--ink-700); }
  .gf-stat-raa {
    margin: 10px 4px 4px; padding: 9px 11px; border-radius: var(--radius-sm);
    background: rgba(22,163,74,.08); font-size: .76rem; color: var(--ink-700); line-height: 1.45;
  }
  .gf-stat-raa b { color: var(--ink-900); }
  .gf-stats-excl { margin: 8px 4px 4px; font-size: .72rem; color: var(--ink-500); line-height: 1.5; }

  /* Filtres */
  .gf-filter { padding: 0 14px 10px; }
  .gf-years { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; font-size: .82rem; color: var(--ink-700); }
  .gf-years select { padding: 6px 12px; }

  .gf-legend { padding: 0 14px 6px; }
  .gf-legend-row {
    display: flex; align-items: center; gap: 10px; padding: 6px 4px;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: background .18s var(--ease);
  }
  .gf-legend-row:hover { background: rgba(255,255,255,.55); }
  .gf-legend-row:has(input:not(:checked)) .gf-legend-dot,
  .gf-legend-row:has(input:not(:checked)) .gf-legend-label,
  .gf-legend-row:has(input:not(:checked)) .gf-sev { opacity: .4; }
  .gf-legend-row:has(input:focus-visible), .gf-sidebar-item:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
  .gf-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
  .gf-legend-label { flex: 1; font-size: .82rem; color: var(--ink-900); font-weight: 500; }
  .gf-legend-count { font-size: .72rem; color: var(--ink-500); font-variant-numeric: tabular-nums; }
  .gf-sev-box { width: 16px; display: flex; justify-content: center; flex-shrink: 0; }
  .gf-sev { border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1.5px var(--dot-halo); }
  .gf-legend-all {
    font: inherit; font-size: .72rem; font-weight: 600; color: var(--brand-dark);
    background: none; border: none; padding: 2px 4px; cursor: pointer; border-radius: 6px;
  }
  .gf-legend-all:hover { text-decoration: underline; }

  :root { --dot: rgba(17, 24, 39, 0.85); --dot-halo: rgba(255, 255, 255, 0.9); }

  .gf-sidebar-scrim {
    position: fixed; inset: 0; z-index: 940; background: rgba(11,17,32,.35);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }

  @media (max-width: 760px) {
    .gf-sidebar {
      width: min(86vw, 330px); z-index: 1450;
      box-shadow: var(--glass-shadow), var(--shadow-pop);
      transform: translateX(calc(-100% - var(--gap)));
      transition: transform .3s var(--ease);
      top: var(--gap); bottom: var(--gap);
    }
    .gf-sidebar.open { transform: translateX(0); }
    .gf-sidebar-scrim.open { opacity: 1; pointer-events: auto; z-index: 1440; }
  }

  /* Résumé mobile (le panneau est fermé par défaut sur téléphone) */
  .gf-summary {
    display: none; position: fixed; left: 10px; right: 10px; bottom: 44px; z-index: 900;
    padding: 10px 14px; border-radius: var(--radius-md); cursor: pointer; text-align: left;
    font: inherit; color: var(--ink-900);
    background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  }
  .gf-summary-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin-bottom: 6px; }
  .gf-summary-row { display: flex; gap: 8px; justify-content: space-between; }
  .gf-summary-item { display: flex; flex-direction: column; min-width: 0; }
  .gf-summary-item b { font-family: 'Poppins', 'Inter', sans-serif; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
  .gf-summary-item span { font-size: .7rem; color: var(--ink-500); font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .gf-summary-item i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  @media (max-width: 760px) {
    .gf-summary { display: block; }
    body:has(.gf-sidebar.open) .gf-summary { display: none; }
    body:not(.sim) .gf-summary { display: none; }   /* plan : remplacé par le titre de l'étape, qui ouvre le récit */
  }

  /* ---------- Loading indicator ---------- */
  .gf-loading {
    position: fixed; top: calc(var(--gap) * 2 + 70px); left: 50%; transform: translateX(-50%);
    z-index: 900; display: none; align-items: center; gap: 10px;
    padding: 9px 18px; border-radius: 999px;
    background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    font-size: .8rem; font-weight: 600; color: var(--ink-700);
  }
  .gf-loading.show { display: flex; }
  .gf-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(15,122,55,.25); border-top-color: var(--brand-dark);
    animation: gf-spin .7s linear infinite;
  }
  @keyframes gf-spin { to { transform: rotate(360deg); } }
  @media (max-width: 760px) { .gf-loading { top: calc(20px + var(--gf-header-h, 60px)); } }

  /* ---------- Credits badge ---------- */
  .watermark {
    position: fixed; left: var(--gap); bottom: var(--gap); z-index: 1000;
    display: flex; align-items: center;
    background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: 999px;
    padding: 6px 14px 6px 14px; box-shadow: var(--glass-shadow);
    font: 600 .68rem/1.2 'Inter', sans-serif; color: var(--ink-700);
    transition: left .3s var(--ease), box-shadow .18s var(--ease);
  }
  .watermark:hover { box-shadow: var(--shadow-pop); }
  .watermark a { color: var(--brand-dark); text-decoration: none; font-weight: 700; }
  .watermark a:hover { text-decoration: underline; }
  @media (min-width: 761px) {
    .watermark { left: calc(var(--sidebar-w) + var(--gap) * 2 + 14px); }
    body.gf-sidebar-collapsed .watermark { left: 14px; }
  }
  @media (max-width: 760px) {
    .watermark { left: 10px; bottom: 10px; }
    body:not(.sim) .watermark { padding: 4px 10px; font-size: .62rem; }
  }

  /* ---------- Leaflet overrides ---------- */
  .leaflet-control-zoom {
    border: 1px solid var(--glass-border) !important; border-radius: var(--radius-sm) !important;
    background: var(--glass-strong) !important; backdrop-filter: var(--glass-blur) !important; -webkit-backdrop-filter: var(--glass-blur) !important;
    box-shadow: var(--glass-shadow) !important; overflow: hidden;
  }
  .leaflet-control-zoom a { background: transparent !important; color: var(--ink-900) !important; border-bottom: 1px solid var(--glass-border) !important; }
  .leaflet-control-zoom a:last-child { border-bottom: none !important; }
  .leaflet-control-zoom a:hover { background: rgba(255,255,255,.5) !important; }
  .leaflet-control-attribution {
    font-size: 10px !important; background: rgba(255,255,255,.7) !important;
    backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
    border-radius: var(--radius-sm) 0 0 0 !important;
  }
  .gf-points-canvas { pointer-events: none; }
  /* Mobile : zoom au doigt, et le résumé occupe le bas de l'écran */
  @media (max-width: 760px) { .leaflet-control-zoom { display: none; } }

  /* ---------- Popup ---------- */
  .leaflet-popup-content-wrapper {
    background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: 16px; color: var(--ink-900);
    box-shadow: 0 20px 50px -20px rgba(11,17,32,.4);
  }
  .leaflet-popup-tip { background: var(--glass-strong); }
  /* Infobulles : même verre que les popups (le fond blanc de Leaflet rendait le texte illisible en sombre) */
  .leaflet-tooltip {
    background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--ink-900);
    box-shadow: var(--glass-shadow); font-family: 'Inter', sans-serif;
  }
  .leaflet-popup-content { margin: 16px 18px; width: min(270px, calc(100vw - 72px)) !important; font-family: 'Inter', sans-serif; }
  .leaflet-popup-close-button { color: var(--ink-500) !important; }
  .gf-pop-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark);
    background: rgba(22,163,74,.1); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px;
  }
  .gf-pop-name { margin: 0 0 10px; font-size: 1.05rem; letter-spacing: -0.01em; font-family: 'Poppins','Inter',sans-serif; }
  .gf-pop-name small { display: block; font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0; margin-top: 2px; }
  .gf-pop-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid rgba(11,17,32,.06); font-size: .8rem;
  }
  .gf-pop-row:last-child { border-bottom: none; }
  .gf-pop-row .k { color: var(--ink-500); flex-shrink: 0; }
  .gf-pop-row .v { font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 6px; text-align: right; }
  .gf-pop-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .gf-pop-note { margin: 8px 0 0; font-size: .72rem; line-height: 1.45; color: var(--ink-500); }

  /* Mode sombre propre à cette carte (le reste vient de ../carte-sombre.css, lié après) */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --hairline: rgba(255, 255, 255, 0.08);
      --track: rgba(255, 255, 255, 0.08);
      --dot: rgba(241, 245, 249, 0.9);
      --dot-halo: rgba(11, 19, 16, 0.9);
    }
    :root:not([data-theme="light"]) .gf-info-panel a.gf-person:hover { background: var(--surface-hover); }
    :root:not([data-theme="light"]) .gf-stat-raa { background: rgba(74, 222, 128, 0.1); }
    :root:not([data-theme="light"]) .gf-info-panel strong,
    :root:not([data-theme="light"]) .gf-info-panel a { color: var(--brand-ink); }
    :root:not([data-theme="light"]) .gf-person img { border-color: rgba(255, 255, 255, 0.2); }
  }

/* ═══════════ Propre à « Sécuriser le Plateau » ═══════════ */
:root {
  --sidebar-w: 340px;
  --st-securisee: #16a34a;
  --st-parallele: #2563eb;
  --st-etude: #d97706;
  --st-projet: #9333ea;
  --st-hors: #94a3b8;
  --chip-bg: rgba(11, 17, 32, 0.06);
  --callout-bg: rgba(22, 163, 74, 0.08);
  --reb-bg: rgba(37, 99, 235, 0.09);
  --sel: rgba(255, 255, 255, 0.7);
}
body { background: var(--map-bg, #eef1ea); }

/* Chapitres (onglets dans le bandeau) */
.chapitres {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.chapitres button {
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-700);
  background: none; border: none; border-radius: 999px; padding: 7px 13px; cursor: pointer;
  white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease);
}
.chapitres button:hover { color: var(--ink-900); }
.chapitres button[aria-selected="true"] {
  background: linear-gradient(140deg, var(--brand-light), var(--brand-dark)); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(15, 122, 55, .55);
}
.chapitres button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chapitres .num { opacity: .7; margin-right: 4px; }
/* Onglets-liens : le simulateur est une page à part (simulateur.html), ses onglets reviennent ici */
.chapitres a {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
  border-radius: 999px; padding: 7px 13px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.chapitres a:hover { color: var(--ink-900); }
.chapitres a[aria-selected="true"] {
  background: linear-gradient(140deg, var(--brand-light), var(--brand-dark)); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(15, 122, 55, .55);
}
.chapitres a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chapitres a svg { width: 15px; height: 15px; flex: none; }
.chapitres .onglet-sim { border-left: 1px solid var(--glass-border); border-radius: 0 999px 999px 0; margin-left: 2px; }
.chapitres .onglet-sim[aria-selected="true"] { border-radius: 999px; border-left: 0; }
@media (max-width: 760px) {
  .chapitres { order: 10; flex: 1 1 100%; justify-content: space-between; }
  .chapitres button, .chapitres a { flex: 1; padding: 7px 4px; font-size: .74rem; }
  .chapitres .num { display: none; }
  .chapitres a svg { display: none; }
}

/* Texte du récit */
.recit { padding: 16px 18px 10px; }
.recit h3 {
  margin: 0 0 8px; padding-right: 40px; font-family: 'Poppins', 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink-900);
}
.recit p { margin: 0 0 10px; font-size: .84rem; line-height: 1.55; color: var(--ink-700); }
.recit p b, .recit li b { color: var(--ink-900); }
.recit ul { margin: 0 0 10px; padding-left: 18px; }
.recit li { font-size: .84rem; line-height: 1.5; color: var(--ink-700); margin-bottom: 4px; }
.recit a { color: var(--brand-dark); font-weight: 600; }
.callout {
  margin: 4px 0 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--callout-bg); font-size: .8rem; line-height: 1.5; color: var(--ink-700);
}
.callout.reb { background: var(--reb-bg); }
.callout b { color: var(--ink-900); }

/* Grand chiffre */
.chiffre { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 8px; }
.chiffre b {
  font-family: 'Poppins', 'Inter', sans-serif; font-size: 2.1rem; line-height: 1; color: var(--ink-900);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chiffre span { font-size: .8rem; line-height: 1.35; color: var(--ink-700); }
.repartition { margin: 0 0 12px; }
.repartition .gf-bar { margin: 0 0 4px; height: 14px; }
.repartition .gf-bar.km { height: 8px; opacity: .75; }
.repartition-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .72rem; color: var(--ink-500); margin-top: 6px; }
.repartition-legende i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.repartition-legende b { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.bar-label { font-size: .68rem; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; margin: 6px 0 3px; }

/* Choix de couleur des rues */
.segment { display: flex; gap: 4px; padding: 3px; margin: 0 18px 10px; border-radius: 999px; background: var(--chip-bg); }
.segment button {
  flex: 1; font: inherit; font-size: .76rem; font-weight: 600; color: var(--ink-700);
  background: none; border: none; border-radius: 999px; padding: 6px 8px; cursor: pointer;
}
.segment button[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink-900); box-shadow: var(--shadow-soft); }
.segment button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
/* Étape 7 : choix du scénario d'un quartier (fiche et panneau) */
.segment-scenario { margin: 8px 0 10px; border-radius: 12px; }
.segment.segment-scenario button, .resume-cellules .segment-scenario button {
  display: block; width: auto; flex: 1; font-size: .72rem; font-weight: 600; line-height: 1.25; padding: 6px 8px; border-radius: 9px;
  text-align: center; color: var(--ink-700); background: none; box-shadow: none; }
.segment.segment-scenario button[aria-pressed="true"], .resume-cellules .segment-scenario button[aria-pressed="true"] {
  background: var(--glass-strong); color: var(--ink-900); box-shadow: var(--shadow-soft); }
.cellule-filtres .segment-scenario { margin: 0 0 8px; background: rgba(11, 17, 32, .06); }

/* Liste des axes */
.axes { display: flex; flex-direction: column; gap: 4px; padding: 0 10px 10px; }
.axe {
  display: grid; grid-template-columns: 6px 1fr auto; gap: 4px 10px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 8px 10px 8px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.axe:hover { background: var(--surface-hover, rgba(255, 255, 255, .55)); }
.axe:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.axe[aria-current="true"] { background: var(--sel); border-color: var(--brand); }
.axe-barre { grid-row: 1 / 3; align-self: stretch; border-radius: 3px; }
.axe-nom { font-size: .86rem; font-weight: 600; color: var(--ink-900); line-height: 1.25; }
.axe-chiffres { font-size: .78rem; color: var(--ink-700); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.axe-chiffres b { font-family: 'Poppins', 'Inter', sans-serif; font-size: .95rem; color: var(--ink-900); }
.axe-statut { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--ink-700); white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.chip.reb { background: var(--reb-bg); color: var(--st-parallele); }
.liste-titre { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 18px 4px; }
.liste-titre h2 { margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.liste-titre span { font-size: .68rem; color: var(--ink-500); }

/* Légende */
.legende { padding: 0 18px 10px; display: flex; flex-direction: column; gap: 5px; }
.legende-ligne { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-700); }
.legende-trait { width: 26px; height: 0; border-top: 5px solid; border-radius: 3px; flex-shrink: 0; }
/* Bilan : pastille d'une intersection à sécuriser (légende et liste) */
.resume-groupe p.note-inter { margin: 2px 0 6px !important; font-size: .76rem !important; color: var(--ink-500); }
.legende-point { width: 12px; height: 12px; margin: 0 7px; border: 3px solid; border-radius: 50%; background: var(--glass-strong, #fff); flex-shrink: 0; box-sizing: border-box; }
.resume-inter i { border-radius: 50% !important; border: 3px solid #dc2626; background: #fff !important; box-sizing: border-box; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .resume-inter i { border-color: #f87171; background: #0b1120 !important; } }
:root[data-theme="dark"] .resume-inter i { border-color: #f87171; background: #0b1120 !important; }
.legende-trait.tirets { border-top-style: dashed; border-top-width: 4px; }
.legende-point { width: 26px; display: flex; justify-content: center; flex-shrink: 0; }
.legende-point span { display: block; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1.5px var(--dot-halo); }

/* Popup d'un axe */
.pop-statut { margin: 8px 0 0; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--chip-bg); font-size: .78rem; line-height: 1.5; color: var(--ink-700); }
.pop-statut b { color: var(--ink-900); }
.pop-statut + .pop-statut { margin-top: 6px; }
.pop-reste { background: rgba(217, 119, 6, .1); }
.pop-reb { background: var(--reb-bg); }
.gf-pop-eyebrow i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.sidebar-pied { margin-top: auto; padding: 10px 18px 16px; font-size: .7rem; color: var(--ink-500); line-height: 1.5; }
.sidebar-pied a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --chip-bg: rgba(255, 255, 255, 0.08);
    --callout-bg: rgba(74, 222, 128, 0.1);
    --reb-bg: rgba(96, 165, 250, 0.14);
    --sel: rgba(255, 255, 255, 0.08);
    --st-parallele: #60a5fa;
  }
  :root:not([data-theme="light"]) .recit a,
  :root:not([data-theme="light"]) .sidebar-pied a { color: var(--brand-ink); }
  :root:not([data-theme="light"]) .axe:hover { background: var(--surface-hover); }
}

/* Étapes du récit : boutons Précédent / Suivant, en bas de la carte */
.etapes {
  position: fixed; z-index: 950; bottom: 50px; left: calc(50% + (var(--sidebar-w) + 24px) / 2); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 6px; width: min(560px, calc(100vw - var(--sidebar-w) - 140px));
  border-radius: 999px; background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
body.gf-sidebar-collapsed .etapes { left: 50%; width: min(560px, calc(100vw - 140px)); }
.etape-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-900); background: var(--chip-bg);
  transition: background .18s var(--ease), opacity .18s var(--ease);
}
.etape-btn:hover:not(:disabled) { background: rgba(11, 17, 32, .12); }
.etape-btn.suivant { color: #fff; background: linear-gradient(140deg, var(--brand-light), var(--brand-dark)); box-shadow: 0 4px 12px -4px rgba(15, 122, 55, .55); }
.etape-btn.suivant:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(140deg, var(--brand-light), var(--brand-dark)); }
.etape-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.etape-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.etape-centre { flex: 1; min-width: 0; text-align: center; }
.etape-haut {
  display: flex; justify-content: center; align-items: baseline; gap: 8px; min-width: 0; width: 100%;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
}
.etape-haut:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.etape-ouvrir { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.etape-num { flex: none; font-size: .72rem; font-weight: 700; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.etape-titre { font-size: .84rem; font-weight: 700; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etape-points { display: flex; justify-content: center; gap: 5px; margin-top: 5px; }
.etape-points button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--ink-500); opacity: .3; cursor: pointer; }
.etape-points button[aria-current="step"] { opacity: 1; background: var(--brand); width: 18px; border-radius: 4px; }
.etape-points button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 760px) {
  /* Téléphone : la carte d'abord. Plus de carte-résumé : la barre des étapes, juste au-dessus de la
     signature, suffit ; toucher le titre de l'étape ouvre le récit (détails, calques). */
  .etapes, body.gf-sidebar-collapsed .etapes { left: 10px; right: 10px; width: auto; transform: none; bottom: 40px; }
  body:has(.gf-sidebar.open) .etapes { bottom: 16px; }
  .etape-haut { align-items: center; }
  .etape-ouvrir {
    display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--chip-bg); color: var(--ink-700);
  }
  .etape-ouvrir svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .etape-btn { padding: 9px 11px; }
  .etape-btn-txt { display: none; }
}
/* Récit par étapes */
.recit .etape-num { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.plan-etapes { margin: 4px 0 10px; padding-left: 20px; }
.plan-etapes li { font-size: .84rem; line-height: 1.5; color: var(--ink-700); margin-bottom: 6px; }
.statuts { margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.statut-ligne { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.statut-n { font-size: .76rem; color: var(--ink-500); font-weight: 600; text-align: right; }
.statut-mbg { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-700); }
.statut-mbg b { color: var(--ink-900); }
.statut-noms { grid-column: 1 / -1; font-size: .76rem; color: var(--ink-500); line-height: 1.4; }
.statut-note { padding: 0 !important; }
.callout.reste { background: rgba(217, 119, 6, .1); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout li { font-size: .8rem; }
.bilan { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bilan-bloc { padding: 10px 12px; border-radius: 12px; background: var(--chip-bg); }
.bilan-bloc h4 { margin: 0 0 4px; font: 700 .84rem 'Poppins', 'Inter', sans-serif; color: var(--ink-900); }
.bilan-bloc ul { margin: 0; padding-left: 18px; }
.bilan-bloc li { font-size: .8rem; line-height: 1.45; color: var(--ink-700); margin-bottom: 3px; }
/* Laisser de la place à la barre des étapes au bas du panneau */
.gf-sidebar { scroll-padding-bottom: 80px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .etape-btn:not(.suivant) { color: var(--ink-900); }
}

/* Résumé de l'étape dans le panneau (langage courant) ; le détail est dans une fenêtre */
.resume-etape h3 { margin-bottom: 10px; }
.resume-chiffre { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; }
.resume-chiffre b { font: 700 2.1rem/1.05 'Poppins', 'Inter', sans-serif; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.resume-chiffre span { font-size: .9rem; line-height: 1.45; color: var(--ink-700); }
.resume-etape p { font-size: .9rem; }
.resume-types { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.resume-types span { font-size: .88rem; color: var(--ink-700); }
.resume-types b { display: inline-block; min-width: 46px; font: 700 1rem 'Poppins', 'Inter', sans-serif; color: var(--ink-900); }
/* Morts et blessés graves par km de rue */
.densite { margin: 0 0 12px; }
.densite-titre { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500, #64748b); margin-bottom: 6px; }
.densite-ligne { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .84rem; color: var(--ink-700); }
.densite-ligne b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.densite-barre { height: 10px; border-radius: 5px; background: rgba(148,163,184,.18); overflow: hidden; }
.densite-barre i { display: block; height: 100%; border-radius: 5px; }
.densite-ligne.pale { opacity: .45; }
.densite-note { font-size: .76rem; line-height: 1.4; color: var(--ink-500, #64748b); margin-top: 2px; }
/* Achalandage : tableau des débits (fenêtre « Détails et chiffres ») */
.bloc-debits { margin: 6px 0 12px; }
.bloc-debits p { font-size: .84rem; line-height: 1.5; margin: 0 0 8px; }
.bloc-debits p.bloc-debits-note { font-size: .76rem; color: var(--ink-500, #64748b); }
.tableau-debits { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.tableau-debits th, .tableau-debits td { padding: 5px 4px; text-align: right; border-bottom: 1px solid rgba(148,163,184,.25); vertical-align: top; }
.tableau-debits thead th { font-size: .7rem; font-weight: 600; line-height: 1.25; color: var(--ink-500, #64748b); }
.tableau-debits tbody th { text-align: left; font-weight: 600; color: var(--ink-900); }
.tableau-spvm tbody th { font-weight: 500; }
.tableau-spvm tr.total th, .tableau-spvm tr.total td { font-weight: 700; }
.tableau-spvm .dont { padding-left: 10px; font-weight: 400; color: var(--ink-500, #64748b); }
.tableau-spvm thead small { font-weight: 400; }
.spvm-sources { font-size: .78rem; margin-top: 4px; }
.spvm-sources summary { cursor: pointer; font-weight: 600; }
.spvm-sources ul { margin: 6px 0 0; padding-left: 18px; columns: 2; }
.tableau-debits td { color: var(--ink-700); }
.tableau-debits small { display: block; font-size: .7rem; color: var(--ink-500, #64748b); }
.resume-bilan { margin: 0 0 12px; padding-left: 18px; }
.resume-bilan li { font-size: .9rem; line-height: 1.5; margin-bottom: 6px; }
.mini-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 12px; }
.mini-legende span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-700); }
.mini-legende i { width: 18px; height: 5px; border-radius: 3px; display: inline-block; }
.mini-legende i.tirets { height: 0; border-top: 3px dashed; border-radius: 0; background: none; }
.lien-detail {
  display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-500); text-decoration: underline; text-underline-offset: 3px;
}
.lien-detail::after { content: '→'; text-decoration: none; }
.lien-detail:hover { color: var(--brand-dark); }
.lien-detail:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
/* Fenêtre « Détails et chiffres » */
.detail-panel { width: min(560px, 100%); padding: 22px 8px 16px; }
.detail-panel .recit { padding: 0 14px 6px; }
.detail-panel h3 { margin: 0 0 10px; font: 700 1.15rem 'Poppins', 'Inter', sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink-900); padding-right: 30px; }
.detail-panel h2 { font-size: .74rem; margin: 0; padding: 0; }
.detail-panel p, .detail-panel li { margin-bottom: 8px; font-size: .84rem; line-height: 1.55; }
.detail-panel .segment, .detail-panel .legende, .detail-panel .axes, .detail-panel .liste-titre, .detail-panel .gf-sidebar-header { margin-left: 4px; margin-right: 4px; }
/* Calques repliés */
.calques { margin: 6px 12px 4px; border-top: 1px solid var(--glass-border); padding-top: 6px; }
.calques summary { cursor: pointer; padding: 8px 6px; font-size: .78rem; font-weight: 600; color: var(--ink-500); list-style: none; }
.calques summary::-webkit-details-marker { display: none; }
.calques summary::before { content: '▸ '; }
.calques[open] summary::before { content: '▾ '; }
.calques summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 6px; }

/* Résumé « Artères : les interventions » : rues par statut */
.resume-groupe { margin: 0 0 8px; }
.resume-groupe-titre { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--ink-900); }
.resume-groupe-titre i { width: 18px; height: 5px; border-radius: 3px; flex: none; }
.resume-groupe p { margin: 2px 0 0 25px !important; font-size: .84rem !important; line-height: 1.45 !important; }
.resume-groupe .portion { color: var(--ink-500); font-size: .78rem; }
/* Groupes repliables (étape 3 : déjà sécurisées, sécurisées en partie) */
.resume-repli > summary { cursor: pointer; list-style: none; padding: 2px 0; border-radius: 6px; }
.resume-repli > summary::-webkit-details-marker { display: none; }
.resume-repli > summary::before { content: '▸'; width: 10px; color: var(--ink-500); }
.resume-repli[open] > summary::before { content: '▾'; }
.resume-repli > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.resume-nb { font-weight: 600; color: var(--ink-500); }

/* Étape 7 : étiquettes des quartiers et liste du résumé */
.cell-label { background: none; border: 0; }
/* Filtre proposé (étape 7) : pastille « sens interdit » */
.filtre-si { background: none; border: 0; }
/* Points d'intervention (data/ajouts.json) : losange de la couleur du statut */
.point-plan { background: none; border: 0; }
.point-plan span { display: block; width: 16px; height: 16px; margin: 4px; box-sizing: border-box; transform: rotate(45deg);
  border: 2.5px solid; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.legende-losange { width: 10px; height: 10px; margin: 0 8px; transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; }
.filtre-si span, .filtre-si-mini { display: block; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  background: #fff; border: 3px solid #b91c1c; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: help; }
.filtre-si span::after, .filtre-si-mini::after { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; margin-top: -2px; background: #b91c1c; border-radius: 1px; }
.mini-legende i.filtre-si-mini { width: 14px; height: 14px; border-width: 2px; box-shadow: none; display: inline-block; }
.mini-legende i.filtre-si-mini::after { height: 2px; margin-top: -1px; left: 1px; right: 1px; }
.pop-filtres { margin: 8px 0 8px; padding-left: 20px; font-size: .84rem; line-height: 1.45; }
/* Fenêtre déplaçable (quartier, étape 7), comme la carte des sens uniques */
.pop-deplacable .leaflet-popup-content-wrapper { cursor: grab; touch-action: none; }
.gf-popup-dragging .leaflet-popup-content-wrapper { cursor: grabbing; user-select: none; box-shadow: var(--shadow-pop); }
.gf-popup-moved .leaflet-popup-tip-container { display: none; }   /* la pointe ne vise plus le quartier */
.gf-pop-drag { display: block; margin: -6px auto 8px; width: 34px; height: 4px; border-radius: 999px; background: var(--track); }
/* Étapes 3 et 5 : passer d'une rue à l'autre */
.pop-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: -2px 0 10px; }
.pop-nav span { font-size: .74rem; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.pop-nav button { padding: 5px 10px; border: 0; border-radius: 999px; cursor: pointer; font: 600 .76rem 'Inter', sans-serif;
  color: var(--ink-900); background: var(--chip-bg); }
.pop-nav button:hover:not(:disabled) { background: rgba(11, 17, 32, .1); }
.pop-nav button:disabled { opacity: .4; cursor: default; }
.pop-nav button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.parcourir-rues { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 4px 0 12px; padding: 8px 10px;
  border: 0; border-radius: 10px; cursor: pointer; font: 600 .84rem 'Inter', sans-serif; color: #fff; background: var(--brand-dark, #15803d); }
.parcourir-rues:hover { filter: brightness(1.08); }
.parcourir-rues:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pop-bouton { display: block; width: 100%; margin: 10px 0 4px; padding: 8px 10px; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 .84rem 'Inter', sans-serif; color: #fff; background: var(--brand-dark, #15803d); }
.pop-bouton:hover { filter: brightness(1.08); }
a.pop-lien { box-sizing: border-box; text-align: center; text-decoration: none; color: var(--brand-dark, #15803d); background: var(--chip-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.pop-lien { color: var(--brand-ink, #4ade80); } }
.pop-bouton:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fleche-sens { background: none; border: 0; }
.fleche-sens svg { display: block; }
.pop-avant-apres { margin: 6px 0; font-size: .84rem; line-height: 1.55; }
.cellule-filtres { margin: 4px 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--chip-bg); font-size: .86rem; }
.cellule-filtres > p { margin: 0 0 2px; }
.cellule-filtres .pop-filtres { margin: 2px 0 8px; }
.cellule-filtres .gf-sidebar-note { padding: 4px 0 0; font-size: .76rem; line-height: 1.45; }
.pop-filtres li { margin-bottom: 2px; }
.cell-label b { display: inline-block; transform: translate(-50%, -50%); padding: 3px 9px; border-radius: 10px; text-align: center; white-space: nowrap;
  font: 700 .74rem/1.3 'Inter', sans-serif; color: #0f172a; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.cell-label b span { display: block; font-weight: 600; font-size: .68rem; }
.recit .resume-cellules { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.resume-cellules button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: .88rem; color: var(--ink-900); text-align: left; background: var(--chip-bg); }
.resume-cellules button:hover { background: rgba(11, 17, 32, .1); }
.resume-cellules button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--brand); }
/* Rues cliquables des étapes 3 et 5 (même liste que les quartiers de l'étape 7) */
.resume-rues { margin-top: 4px; }
.resume-rues .rue-nom { display: flex; flex-direction: column; min-width: 0; flex: 1; }
/* Jauge de la part sécurisée (sécurisées en partie) */
.resume-rues .jauge { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(11, 17, 32, .13); overflow: hidden; }
.resume-rues .jauge span { display: block; height: 100%; border-radius: 3px; background: #16a34a; }
.resume-rues b { align-self: flex-start; font-size: .82rem; color: var(--brand-ink, #15803d); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .resume-rues .jauge { background: rgba(255, 255, 255, .14); }
}
:root[data-theme="dark"] .resume-rues .jauge { background: rgba(255, 255, 255, .14); }
.resume-rues .rue-nom small { font-size: .76rem; color: var(--ink-500); line-height: 1.35; margin-top: 1px; }
.resume-rues i { align-self: flex-start; margin-top: 4px; }
.resume-cellules button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.resume-cellules i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.resume-cellules b { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cell-label b { color: #f8fafc; background: rgba(15,23,42,.88); }
}

.resume-groupe .resume-bilan { margin: 3px 0 0; padding-left: 20px; }
.resume-groupe .resume-bilan li { font-size: .84rem; margin-bottom: 3px; line-height: 1.4; }

/* Choix d'arrondissement (haut du panneau) : Plateau (plan) ou portrait de base d'un autre arrondissement */
.arr-choix { display: flex; align-items: center; gap: 8px; margin: 14px 18px 0; font-size: .76rem; color: var(--ink-500); }
.arr-choix[hidden] { display: none; }
.arr-choix select { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--hairline, rgba(11, 17, 32, .12)); border-radius: 8px;
  font: 500 .8rem 'Inter', sans-serif; color: var(--ink-900); background: var(--chip-bg); font-size: 16px; }
@media (min-width: 761px) { .arr-choix select { font-size: .8rem; } }
/* Nom d'une piste à venir ou d'un projet, écrit sur la carte au milieu de son tracé */
.projet-label { background: none; border: 0; }
.projet-label b { display: inline-block; transform: translate(-50%, -150%); padding: 2px 7px; border-radius: 8px; white-space: nowrap;
  font: 700 .7rem/1.3 'Inter', sans-serif; color: #111827; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.25); pointer-events: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .projet-label b { color: #f8fafc; background: rgba(15,23,42,.92); box-shadow: 0 1px 3px rgba(0,0,0,.6); }
}
/* Légende de la carte, à part du panneau latéral : bouton « Légende » et encadré sur la carte.
   Ordinateur : en haut à droite, ouverte par défaut (repliée sous une fiche, voir app.js). Mobile : au-dessus de la barre des étapes. */
.legende-mobile { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px; position: fixed; z-index: 940;
  top: calc(var(--gap) * 2 + 60px); right: var(--gap); }
.legende-mobile-btn { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--glass-border); cursor: pointer;
  font: 600 .8rem/1.2 'Inter', sans-serif; color: var(--ink-900); background: var(--glass-strong);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.legende-mobile-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--brand), var(--glass-shadow); }
.legende-mobile-panneau { width: 300px; max-height: calc(100vh - 260px); overflow: auto; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow); font-size: .8rem; color: var(--ink-900); }
.legende-mobile-panneau .legende { padding: 0; margin: 0 0 6px; }
.legende-mobile-panneau .legende:last-child { margin-bottom: 0; }
.legende-mobile-panneau:empty { display: none; }
/* La légende n'est plus dans le panneau latéral (elle reste dans la fenêtre « Détails et chiffres ») */
#recit .legende, #recit .mini-legende { display: none; }
#recit .cellule-filtres .mini-legende { display: flex; }   /* symboles du scénario simulé (étape 7) */
@media (max-width: 760px) {
  .legende-mobile { flex-direction: column; top: auto; right: 10px; bottom: 108px; max-width: calc(100vw - 20px); }
  body:has(.gf-sidebar.open) .legende-mobile { display: none; }
  .legende-mobile-panneau { width: min(300px, calc(100vw - 20px)); max-height: 45vh; }
}
