/* HumaniMap — styles applicatifs.
   Extrait de index.html (Phase A1, nettoyage). Concaténé dans l'ordre du document
   pour préserver EXACTEMENT la cascade. Ne pas réordonner les sections. */


    /* ============================================================
       HumaniMap — Feuille de style unique (mobile-first)
       ============================================================ */
    :root {
      --bnH: 78px;
      --bg: #f3f6fb;
      --surface: #eef1f6;
      --card: #ffffff;
      --text: #0f172a;
      --muted: #64748b;
      --border: rgba(15, 23, 42, .10);
      --shadow: 0 12px 30px rgba(15, 23, 42, .10);
      --shadow2: 0 8px 18px rgba(15, 23, 42, .10);
      --radius: 14px;
      --radius-xl: 22px;

      --brand: #0891b2;
      --brand2: #34d399;
      --brandDark: #155e75;
      --accent: #ef6b6b;

      /* Identité "dopamine" unique de la plateforme : dégradé primaire teal → violet.
         Utilisé par TOUS les boutons primaires / puces actives pour la cohérence. */
      --primary: #0891b2;                /* alias historique (var(--primary) était non défini) */
      --brand-violet: #2563eb;
      --grad-primary: linear-gradient(135deg, #0891b2, #2563eb);
      --shadow-primary: 0 10px 24px rgba(37, 99, 235, .28);
      --shadow-primary-hover: 0 13px 30px rgba(37, 99, 235, .40);

      --need: #b91c1c;
      --maraude: #1d4ed8;
      --donation: #16a34a;

      --overlay: rgba(0, 0, 0, .45);
      --warnBorder: rgba(245, 158, 11, .28);
      --warnBg: rgba(245, 158, 11, .08);

      --popupBg: #ffffff;
      --popupText: #0f172a;
    }

    html[data-theme="dark"] {
      --bg: #070b14;
      --surface: #0f1520;
      --card: #0b1220;
      --text: #e5e7eb;
      --muted: #94a3b8;
      --border: rgba(148, 163, 184, .22);
      --shadow: 0 18px 44px rgba(0, 0, 0, .45);
      --shadow2: 0 10px 22px rgba(0, 0, 0, .35);

      --need: #fb7185;
      --maraude: #93c5fd;
      --donation: #4ade80;

      --overlay: rgba(0, 0, 0, .58);

      --popupBg: #0b1220;
      --popupText: #e5e7eb;
    }

    * {
      box-sizing: border-box
    }

    html,
    body {
      height: 100%
    }

    body {
      margin: 0;
      font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
      background: var(--bg);
      color: var(--text);
      overflow: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* ======================================================
       Layout (Desktop)
       ====================================================== */
    .app {
      height: 100vh;
      display: grid;
      grid-template-columns: 430px 1fr;
    }

    .panel {
      height: 100vh;
      padding: 14px;
      background: transparent;
      overflow: auto;
    }

    /* Topbar */
    .topbar {
      padding: 10px 14px;
      border: none;
      border-radius: var(--radius-xl);
      background: linear-gradient(135deg, rgba(16, 185, 129, .92), rgba(20, 184, 166, .92));
      backdrop-filter: blur(12px);
      box-shadow: 0 4px 20px rgba(16, 185, 129, .15);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: #fff;
    }

    /* Install Banner */
    .installBanner {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 10px 16px;
      background: linear-gradient(135deg, #0891b2, #34d399);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      flex-wrap: wrap;
    }

    .installBanner.show {
      display: flex;
    }

    .installBanner button {
      padding: 6px 16px;
      border-radius: 999px;
      border: 2px solid #fff;
      background: transparent;
      color: #fff;
      font-weight: 800;
      cursor: pointer;
      font-size: 12px;
      transition: all .2s;
    }

    .installBanner button:hover {
      background: #fff;
      color: #0891b2;
    }

    .closeInstall {
      border: none !important;
      font-size: 18px !important;
      padding: 4px 8px !important;
      opacity: .8;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .logo {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      margin-right: 10px;
    }

    .logo img {
      width: 75px;
      height: 75px;
      object-fit: contain;
    }

    .brandText {
      min-width: 0
    }

    .brandText h1 {
      margin: 0;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: .2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #fff;
    }

    .brandText p {
      margin: 1px 0 0;
      font-size: 11px;
      color: rgba(255, 255, 255, .78);
    }

    .topActions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .iconBtn {
      height: 32px;
      padding: 0 10px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, .2);
      background: rgba(255, 255, 255, .15);
      color: #fff;
      cursor: pointer;
      font-weight: 750;
      font-size: 12px;
      transition: all .2s;
      white-space: nowrap;
    }

    .iconBtn:hover {
      background: rgba(255, 255, 255, .25);
    }

    /* Assistance (top bar) : l'icône scintille légèrement + bulle "Besoin d'aide ?" au survol */
    #btnAssistDesktop { position: relative; overflow: visible; }
    #btnAssistDesktop svg { animation: assistShine 2.8s ease-in-out infinite; }
    @keyframes assistShine {
      0%, 100% { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .3));  transform: scale(1); }
      50%      { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)); transform: scale(1.06); }
    }
    .assistTip {
      position: absolute;
      top: calc(100% + 9px);
      right: -2px;
      white-space: nowrap;
      background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: -.01em;
      padding: 5px 10px;
      border-radius: 12px;
      border-top-right-radius: 4px;
      box-shadow: 0 8px 20px rgba(8, 145, 178, .4);
      opacity: 0;
      transform: translateY(-4px) scale(.85);
      transform-origin: top right;
      transition: opacity .18s ease, transform .18s ease;
      pointer-events: none;
      z-index: 6000;
    }
    .assistTip::after {
      content: "";
      position: absolute;
      bottom: 100%;
      right: 13px;
      border: 5px solid transparent;
      border-bottom-color: var(--brand-500);
    }
    #btnAssistDesktop:hover .assistTip,
    #btnAssistDesktop:focus-visible .assistTip {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    @media (prefers-reduced-motion: reduce) {
      #btnAssistDesktop svg { animation: none; }
    }

    .badge {
      height: 26px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, .18);
      background: rgba(255, 255, 255, .14);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: rgba(255, 255, 255, .92);
      white-space: nowrap;
    }

    .badge .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--muted)
    }

    .badge.admin {
      color: var(--text)
    }

    .badge.admin .dot {
      background: var(--accent)
    }

    /* Cards */
    .section {
      margin-top: 14px
    }

    .card {
      border: none;
      border-radius: var(--radius-xl);
      background: var(--card);
      box-shadow: var(--shadow2);
      padding: 12px;
    }

    .btnRow {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      cursor: pointer;
      font-weight: 800;
      font-size: 13px;
      font-family: inherit;
      transition: all .2s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: 0 6px 14px rgba(15, 23, 42, .06);
    }

    .btn:hover {
      filter: brightness(.96);
      transform: translateY(-1px);
    }

    .btn:active {
      transform: translateY(0);
    }

    .btn.primary {
      background: var(--grad-primary);
      border-color: transparent;
      color: #fff;
      box-shadow: var(--shadow-primary);
    }

    .btn.primary:hover {
      filter: brightness(1.04);
      box-shadow: var(--shadow-primary-hover);
    }

    .btn.danger {
      border-color: rgba(185, 28, 28, .28);
      color: #dc2626;
    }

    .small {
      margin: 10px 0 0;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.45
    }

    .notice {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--warnBorder);
      background: var(--warnBg);
      font-size: 12px;
      line-height: 1.45;
    }

    /* Filters */
    .filters {
      display: flex;
      gap: 8px;
      margin-top: 10px
    }

    .chip {
      flex: 1;
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      cursor: pointer;
      font-size: 11px;
      font-weight: 800;
    }

    .chip.active {
      background: var(--grad-primary);
      border-color: transparent;
      color: #fff;
    }

    .geoFilters {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .geoFilters select {
      flex: 1;
      min-width: 0;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      padding-right: 26px;
    }

    .needsTags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 4px;
    }

    .needTag {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1.5px solid var(--border);
      background: var(--card);
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
      user-select: none;
      transition: background .15s, border-color .15s;
    }

    .needTag input[type=checkbox] { display: none; }

    .needTag:has(input:checked) {
      background: var(--grad-primary);
      border-color: transparent;
      color: #fff;
    }

    .verifiedBadge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 8px;
      border-radius: 999px;
      background: rgba(16,185,129,.12);
      color: #0e7490;
      font-size: 11px;
      font-weight: 700;
    }

    .unconfirmedBadge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 8px;
      border-radius: 999px;
      background: rgba(245,158,11,.12);
      color: #d97706;
      font-size: 11px;
      font-weight: 700;
    }

    .pointStatusBadge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
    }
    .statusActive { background: rgba(239,68,68,.12); color: #dc2626; }
    .statusHelped { background: rgba(59,130,246,.12); color: #2563eb; }
    .statusResolved { background: rgba(16,185,129,.12); color: #0e7490; }
    .statusPlanned { background: rgba(99,102,241,.12); color: #4f46e5; }
    .statusDone { background: rgba(16,185,129,.12); color: #0e7490; }

    /* List */
    .list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 12px;
    }

    .item {
      border: none;
      border-radius: var(--radius-xl);
      background: var(--card);
      box-shadow: var(--shadow2);
      transition: transform .2s, box-shadow .2s;
    }

    .itemThumbWrap {
      position: relative;
      width: 100%;
    }
    .itemThumb {
      width: 100%;
      height: 120px;
      object-fit: cover;
      display: block;
      border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .itemUrgBadge {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 2;
    }
    .itemTopRow {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
    .itemStatusRight {
      flex-shrink: 0;
      margin-top: 2px;
    }

    .itemTop, .itemActions, .helpedInfo {
      padding-left: 14px;
      padding-right: 14px;
    }

    .item:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    }

    .itemTop {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      padding-top: 12px;
    }

    .itemTitle {
      margin: 0 0 4px;
      font-weight: 950;
      font-size: 14px
    }

    .itemMeta {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35
    }

    .pill {
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 11px;
      border: none;
      background: var(--surface);
      white-space: nowrap;
      font-weight: 900;
    }

    .pill.need {
      background: rgba(16, 185, 129, .14);
      color: #065f46;
    }

    .pill.maraude {
      background: rgba(249, 115, 22, .14);
      color: #9a3412;
    }

    .pill.donation {
      background: rgba(59, 130, 246, .14);
      color: #1d4ed8;
    }

    html[data-theme="dark"] .pill.need { background: rgba(16,185,129,.18); color: #4ade80; }
    html[data-theme="dark"] .pill.maraude { background: rgba(249,115,22,.18); color: #fdba74; }
    html[data-theme="dark"] .pill.donation { background: rgba(59,130,246,.18); color: #93c5fd; }

    .itemActions {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
      padding-bottom: 10px;
      max-width: 100%;
      box-sizing: border-box;
    }

    .mini {
      padding: 5px 8px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      cursor: pointer;
      font-size: 10.5px;
      font-weight: 700;
      transition: all .2s;
      white-space: nowrap;
    }

    .mini:hover {
      filter: brightness(.95);
      transform: translateY(-1px);
    }

    .itemActions .mini[data-action="zoom"] {
      background: var(--grad-primary);
      border: none;
      color: #fff;
    }

    /* Pending (soumissions invités) */
    .pendingList {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .pendingItem {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--card);
    }

    .pendingMain {
      min-width: 0;
    }

    .pendingTitle {
      font-weight: 900;
      font-size: 14px;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pendingActions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 0 0 auto;
    }

    over {
      filter: brightness(0.98)
    }

    /* ======================================================
       Map
       ====================================================== */
    #map {
      height: 100vh;
      width: 100%;
      position: relative;
      min-height: 320px;
      background: transparent;
      padding: 14px;
      border-radius: var(--radius-xl);
      overflow: hidden;
    }

    #map .leaflet-container {
      border-radius: var(--radius-xl);
    }

    .mapOverlay {
      position: absolute;
      left: 54px;
      top: 12px;
      right: auto;
      width: auto;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      z-index: 700;
      pointer-events: none;
      flex-wrap: wrap;
      max-width: calc(100% - 24px);
    }

    .kpiBar {
      pointer-events: auto;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 16px rgba(15, 23, 42, .14);
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
      line-height: 1;
    }

    .kpiBar strong {
      font-size: 15px;
      font-weight: 950;
      font-variant-numeric: tabular-nums;
    }

    .kpiBar span { display: flex; align-items: center; gap: 4px; }

    #kpiNeed strong { color: var(--need); }
    #kpiMaraude strong { color: var(--maraude); }
    #kpiDonation strong { color: var(--donation); }

    html[data-theme="dark"] .kpiBar {
      background: rgba(11, 18, 32, .88);
      color: var(--text);
    }


    /* Mode sombre : on inverse uniquement les tuiles, pas les marqueurs ni les popups
       Technique CSS bien connue (utilisée par Mapbox Studio Dark) — préserve les détails
       routes/labels en les rendant clairs sur fond sombre */
    html[data-theme="dark"] .leaflet-tile-pane {
      filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.08) saturate(.85);
    }
    /* En mode satellite, ne PAS inverser l'imagerie (sinon couleurs cassées) */
    html[data-theme="dark"] #map[data-basemap="sat"] .leaflet-tile-pane {
      filter: none;
    }

    /* Bouton bascule Plan / Satellite (façon Google, en bas à gauche au-dessus du badge) */
    #btnBaseToggle {
      position: absolute;
      bottom: 40px;
      left: 8px;
      z-index: 800;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, .94);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(0, 0, 0, .1);
      border-radius: 8px;
      padding: 6px 11px;
      font-size: 12px;
      font-weight: 800;
      color: #1e293b;
      cursor: pointer;
      box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
      transition: background .15s, transform .1s;
    }
    #btnBaseToggle:hover { background: #fff; }
    #btnBaseToggle:active { transform: scale(.97); }
    html[data-theme="dark"] #btnBaseToggle {
      background: rgba(20, 28, 44, .92);
      color: #e8eaed;
      border-color: rgba(255, 255, 255, .12);
    }
    /* Compense l'inversion sur le fond noir derrière les tuiles (sinon il devient blanc) */
    html[data-theme="dark"] .leaflet-container {
      background: #1a2030;
    }

    /* Leaflet tweaks */
    .leaflet-control-attribution {
      background: var(--card) !important;
      color: var(--muted) !important;
      border-radius: 12px !important;
      padding: 2px 8px !important;
      border: 1px solid var(--border) !important;
    }

    /* Contrôles de zoom façon Google Maps (arrondis, ombre douce, +/- séparés) */
    .leaflet-control-zoom {
      border: none !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
      overflow: hidden;
    }
    .leaflet-control-zoom a {
      width: 38px !important;
      height: 38px !important;
      line-height: 38px !important;
      font-size: 20px !important;
      font-weight: 500;
      color: #3c4043 !important;
      background: #fff !important;
      border: none !important;
    }
    .leaflet-control-zoom a.leaflet-control-zoom-in { border-bottom: 1px solid #e8eaed !important; }
    .leaflet-control-zoom a:hover { background: #f1f3f4 !important; }
    .leaflet-bottom.leaflet-right { margin-bottom: 6px; margin-right: 6px; }
    html[data-theme="dark"] .leaflet-control-zoom a {
      background: #2a3142 !important;
      color: #e8eaed !important;
    }
    html[data-theme="dark"] .leaflet-control-zoom a.leaflet-control-zoom-in { border-bottom-color: #3a4358 !important; }
    html[data-theme="dark"] .leaflet-control-zoom a:hover { background: #353d52 !important; }

    /* ── Fiche point : modal CENTRÉ (mobile + desktop) via overlay flex ──────── */
    #sheetBackdrop {
      position: fixed;
      inset: 0;
      z-index: 10050; /* au-dessus de la carte plein écran mobile (z 9000) et de la bottom-nav */
      background: rgba(15, 23, 42, .45);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s;
    }
    #sheetBackdrop.show { opacity: 1; pointer-events: auto; }

    /* La popup Leaflet, déplacée dans l'overlay, devient un modal centré stable.
       position:relative → la croix (absolute) s'ancre BIEN à l'intérieur de la fiche. */
    .leaflet-popup.inModal {
      position: relative !important;
      left: auto !important; top: auto !important; right: auto !important; bottom: auto !important;
      transform: none !important;
      margin: 0 !important;
      width: min(94vw, 440px) !important;
      max-width: 440px !important;
      z-index: 1 !important;
    }
    .leaflet-popup.inModal .leaflet-popup-content-wrapper {
      border-radius: 16px !important;
      max-height: 84vh;
      overflow-y: auto;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .35) !important;
      animation: modalPop .2s ease-out;
    }
    .leaflet-popup.inModal .leaflet-popup-content { margin: 16px 18px !important; width: auto !important; }
    .leaflet-popup.inModal .leaflet-popup-tip-container,
    .leaflet-popup.inModal .leaflet-popup-tip { display: none !important; }
    .leaflet-popup.inModal .leaflet-popup-close-button {
      width: 34px !important; height: 34px !important;
      line-height: 34px !important;
      font-size: 22px !important;
      text-align: center;
      top: 6px !important; right: 6px !important;
      color: #64748b !important;
      border-radius: 50%;
      background: rgba(15, 23, 42, .06);
      display: flex; align-items: center; justify-content: center;
    }
    .leaflet-popup.inModal .leaflet-popup-close-button:hover { background: rgba(15, 23, 42, .14); }
    @keyframes modalPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

    /* Fiche d'un signalement en PLEIN ÉCRAN sur mobile (plus confortable qu'un petit popup centré).
       Monte depuis le bas comme une feuille (bottom-sheet), gère les encoches iPhone (safe-area). */
    @media (max-width: 640px) {
      #sheetBackdrop { padding: 0; }
      .leaflet-popup.inModal {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
      }
      .leaflet-popup.inModal .leaflet-popup-content-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: sheetUp .3s cubic-bezier(.22, .61, .36, 1);
      }
      .leaflet-popup.inModal .leaflet-popup-content {
        margin: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
      }
      .leaflet-popup.inModal .leaflet-popup-close-button {
        width: 40px !important; height: 40px !important; line-height: 40px !important;
        font-size: 24px !important;
        top: calc(env(safe-area-inset-top, 0px) + 8px) !important; right: 10px !important;
        background: rgba(15, 23, 42, .10);
      }
    }
    @keyframes sheetUp { from { transform: translateY(100%); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
    @keyframes panelFadeInLeft { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes mapFadeInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }

    /* Menu de compte (action sheet mobile) */
    .accountSheet {
      position: fixed;
      inset: 0;
      z-index: 100000;
      background: rgba(15, 23, 42, .42);
      display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s;
    }
    .accountSheet.show { opacity: 1; pointer-events: auto; }
    .accountSheetCard {
      width: 100%;
      max-width: 480px;
      background: var(--card);
      border-radius: 20px 20px 0 0;
      padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
      box-shadow: 0 -8px 30px rgba(0, 0, 0, .3);
      transform: translateY(100%);
      transition: transform .26s cubic-bezier(.22,.61,.36,1);
    }
    .accountSheet.show .accountSheetCard { transform: translateY(0); }
    .accountSheetCard::before {
      content: "";
      display: block;
      width: 42px; height: 5px;
      border-radius: 99px;
      background: var(--border);
      margin: 2px auto 12px;
    }
    .accountSheetItem {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 15px 14px;
      border: none;
      background: none;
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      cursor: pointer;
      border-radius: 12px;
      text-align: left;
    }
    .accountSheetItem:active { background: var(--surface); }
    .accountSheetItem svg { color: var(--brand); flex-shrink: 0; }
    .accountSheetCancel {
      width: 100%;
      margin-top: 6px;
      padding: 14px;
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: 12px;
      font-size: 15px;
      font-weight: 800;
      color: var(--muted);
      cursor: pointer;
    }

    .leaflet-popup-content-wrapper {
      background: var(--popupBg);
      color: var(--popupText);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: var(--shadow);
    }

    .leaflet-popup-tip {
      background: var(--popupBg);
      border: 1px solid var(--border)
    }

    .marker {
      width: 34px;
      height: 40px;
      position: relative;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
      transition: transform .15s ease;
    }
    .marker:hover { transform: translateY(-2px) scale(1.08); }
    /* Surbrillance du marqueur quand on survole l'élément correspondant dans la liste */
    .leaflet-marker-icon.markerHover { z-index: 1000 !important; }
    .markerHover .marker {
      transform: translateY(-4px) scale(1.22);
      filter: drop-shadow(0 0 6px rgba(8,145,178,.95)) drop-shadow(0 6px 10px rgba(0,0,0,.3));
    }
    .marker .pin {
      position: absolute; inset: 0;
      background: var(--c, #0891b2);
      border: 2.5px solid #fff;
      border-radius: 50% 50% 50% 0;
      transform: rotate(-45deg);
      width: 34px; height: 34px;
    }
    .marker .ic {
      position: absolute;
      top: 6px; left: 50%;
      transform: translateX(-50%);
      width: 18px; height: 18px;
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      pointer-events: none;
    }
    .marker .ic svg { width: 18px; height: 18px; stroke-width: 2.4; }

    html[data-theme="dark"] .marker .pin { border-color: rgba(255,255,255,.9) }

    /* Squelette de chargement de la liste */
    .listSkeleton { display: flex; flex-direction: column; gap: 10px; }
    .skelCard {
      height: 84px;
      border-radius: 14px;
      background: linear-gradient(90deg, var(--surface) 25%, var(--border) 37%, var(--surface) 63%);
      background-size: 400% 100%;
      animation: skelShimmer 1.4s ease infinite;
    }
    @keyframes skelShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

    .marker.need    { --c: var(--need) }
    .marker.maraude { --c: var(--maraude) }
    .marker.donation{ --c: var(--donation) }

    /* Marqueur "vous êtes ici" : pin teal de l'appli + halo pulsant */
    .marker.userloc { --c: #0891b2; }
    .marker.userloc .userPulse {
      position: absolute;
      left: 50%; top: 17px;
      width: 30px; height: 30px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      background: rgba(8, 145, 178, .40);
      z-index: -1;
      animation: userPulseAnim 1.8s ease-out infinite;
    }
    @keyframes userPulseAnim {
      0%   { transform: translate(-50%, -50%) scale(.5); opacity: .7; }
      100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
    }

    /* Spinner réutilisable (icône loader-2) */
    @keyframes spin { to { transform: rotate(360deg); } }
    .spin { animation: spin .8s linear infinite; transform-origin: center; }

    .popupTitle {
      margin: 0 0 4px;
      font-weight: 950;
      font-size: 13px;
      line-height: 1.3;
    }

    .popupMeta {
      margin: 0;
      color: var(--muted);
      font-size: 11.5px;
      line-height: 1.35;
    }

    /* Barre méta compacte : plusieurs infos sur une ligne */
    .popupMetaRow {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.3;
    }
    .popupMetaRow > span {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      max-width: 100%;
    }
    .popupMetaRow > span > span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 180px;
    }

    .popupHeader {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px 6px;
      margin-bottom: 4px;
    }
    .popupHeader .popupTitle { margin: 0; flex: 1 1 auto; min-width: 0; }
    .popupHeader .urgBadge,
    .popupHeader .pointStatusBadge,
    .popupHeader .verifiedBadge { flex: 0 0 auto; }

    .popupNeedsRow {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin: 6px 0 0;
    }
    .popupNeedsRow .needChip {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: #fef3c7;
      color: #92400e;
      border: 1px solid #fde68a;
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.2;
    }
    .popupNeedsRow .needChip > span {
      font-size: 11px;
    }

    .popupDesc {
      margin: 6px 0 0;
      font-size: 12.5px;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .popupDesc.expanded {
      -webkit-line-clamp: unset;
      display: block;
    }
    .popupDescToggle {
      display: inline-block;
      margin-top: 2px;
      font-size: 11px;
      color: var(--brand);
      cursor: pointer;
      font-weight: 700;
      background: none;
      border: none;
      padding: 0;
    }

    .popupActions {
      margin-top: 8px;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    /* Sections repliables (historique aide / bénévoles) */
    .popupCollapse {
      margin-top: 6px;
      border-top: 1px dashed var(--border);
      padding-top: 4px;
    }
    .popupCollapseToggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      background: none;
      border: none;
      padding: 2px 0;
      font-size: 11px;
      font-weight: 700;
      color: var(--text);
      cursor: pointer;
    }
    .popupCollapseToggle .chev {
      font-size: 10px;
      opacity: .7;
      transition: transform .2s ease;
    }
    .popupCollapseToggle.open .chev { transform: rotate(180deg); }
    .popupCollapseBody { display: none; margin-top: 4px; }
    .popupCollapseBody.open { display: block; }

    /* ======================================================
       Modals
       ====================================================== */
    .modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      background: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
      z-index: 10000;
      padding: 16px;
      transition: background .3s ease, backdrop-filter .3s ease;
    }

    .modal.open {
      display: grid;
      animation: modalBgIn .3s ease forwards;
    }

    @keyframes modalBgIn {
      from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
      }

      to {
        background: var(--overlay);
        backdrop-filter: blur(8px);
      }
    }

    .dialog {
      width: min(720px, 100%);
      max-height: 90vh;
      overflow-y: auto;
      border-radius: 22px;
      border: 1px solid var(--border);
      background: var(--card);
      box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
      padding: 20px;
      animation: dialogSlideIn .35s cubic-bezier(.22, .61, .36, 1) forwards;
      transform: translateY(20px);
      opacity: 0;
    }

    @keyframes dialogSlideIn {
      from {
        transform: translateY(20px) scale(.97);
        opacity: 0;
      }

      to {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    .dialogHeader {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px
    }

    .dialogHeader h2 {
      margin: 0;
      font-size: 15px
    }

    .dialogHeader p {
      margin: 4px 0 0;
      font-size: 12px;
      color: var(--muted)
    }

    .x {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      cursor: pointer;
      font-weight: 900;
      display: grid;
      place-items: center;
      font-size: 18px;
      flex-shrink: 0;
      transition: all .25s;
    }

    .x:hover {
      background: var(--card);
      transform: rotate(90deg);
    }

    label {
      font-size: 12px;
      color: var(--muted);
      display: block;
      margin: 8px 0 6px;
      font-weight: 800
    }

    input,
    textarea,
    select {
      width: 100%;
      padding: 10px 11px;
      border-radius: 12px;
      border: 1.5px solid var(--border);
      background: var(--surface);
      color: var(--text);
      outline: none;
      font-family: inherit;
      font-size: 13px;
      transition: border-color .2s, box-shadow .2s;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
    }

    textarea {
      min-height: 92px;
      resize: vertical
    }

    /* ------------------------------------------------------
       Form modal scrolling (prevents overflow on mobile)
       ------------------------------------------------------ */
    .dialog {
      max-height: min(92dvh, 820px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .dialog>form {
      overflow-y: auto;
      max-height: calc(min(92dvh, 820px) - 84px);
      padding-right: 6px;
      /* room for scrollbar */
    }

    /* nicer scrollbar (optional, safe) */
    .dialog>form::-webkit-scrollbar {
      width: 10px
    }

    .dialog>form::-webkit-scrollbar-thumb {
      background: rgba(128, 128, 128, .35);
      border-radius: 10px;
      border: 2px solid transparent;
      background-clip: padding-box
    }

    .dialog>form::-webkit-scrollbar-track {
      background: transparent
    }

    /* === Modale compte : plein écran sur mobile + contenu défilable (formulaire d'inscription long) === */
    #modalAdmin .dialog {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #modalAdmin .dialogHeader { flex: 0 0 auto; }
    #modalAdmin .tabPanel {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding-right: 4px;
    }
    /* Le bouton "Créer mon compte" reste toujours visible, collé en bas du panneau défilable */
    #panelRegister .actions {
      position: sticky;
      bottom: 0;
      background: var(--card);
      padding: 12px 0 4px;
      margin-top: 8px;
      box-shadow: 0 -10px 14px -6px rgba(0, 0, 0, .08);
    }
    #panelRegister .actions .btn.primary { font-weight: 800; }

    @media (max-width: 640px) {
      #modalAdmin { padding: 0; }
      #modalAdmin .dialog {
        width: 100%;
        max-width: 100% !important;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
      }
      #modalAdmin .dialogHeader h2 { font-size: 18px; }
    }

    /* === Modale Paramètres : contenu défilable (était coupé car .stack ≠ form) + plein écran mobile === */
    #modalSettings .dialog { display: flex; flex-direction: column; overflow: hidden; }
    #modalSettings .dialogHeader { flex: 0 0 auto; }
    #modalSettings .dialog > .stack {
      flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px;
    }
    @media (max-width: 640px) {
      #modalSettings { padding: 0; }
      #modalSettings .dialog {
        width: 100%; max-width: 100% !important; height: 100dvh; max-height: 100dvh; border-radius: 0;
      }
    }

    /* === Informations de profil : agencement côte à côte (stats 3-col + paires en grille) === */
    #modalProfileInfo .piStatGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    #modalProfileInfo .piStatGrid .card { margin: 0; }
    /* Les paires de champs restent côte à côte tant qu'il y a la place (au lieu de s'empiler dès 520px). */
    #formProfileInfo .formRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
    @media (max-width: 640px) {
      #modalProfileInfo { padding: 0; }
      #modalProfileInfo .dialog {
        width: 100%; max-width: 100% !important; height: 100dvh; max-height: 100dvh; border-radius: 0;
      }
      #modalProfileInfo .dialog > div[style*="overflow-y"] { max-height: none !important; flex: 1 1 auto; min-height: 0; }
    }

    /* Smaller emojis in UI labels/buttons */
    .em {
      font-size: .92em;
      line-height: 1;
      display: inline-block;
      transform: translateY(-1px)
    }


    .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px
    }

    .formRow {
      display: flex;
      gap: 10px;
      margin-bottom: 6px
    }

    .formRow .formCol {
      flex: 1;
      min-width: 0
    }

    .formRow .formCol2 {
      flex: 2
    }

    .formRow label {
      display: block;
      margin-bottom: 4px
    }

    .formRow input,
    .formRow select {
      width: 100%
    }

    .helpTip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--border);
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      cursor: help;
      position: relative;
      margin-left: 4px;
      vertical-align: middle;
      flex-shrink: 0;
      line-height: 1
    }

    /* Tooltip rendered via JS — see helpTipBubble */
    .helpTipBubble {
      position: fixed;
      background: #fff;
      color: #222;
      border: 1px solid #ccc;
      box-shadow: 0 4px 12px rgba(0,0,0,.2);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 500;
      white-space: normal;
      max-width: 260px;
      z-index: 100000;
      pointer-events: none;
      line-height: 1.4;
    }
    html[data-theme="dark"] .helpTipBubble {
      background: #1e293b; color: #e2e8f0; border-color: #475569;
    }

    /* Pulsing blue marker for user location */
    .user-loc-marker {
      width: 18px; height: 18px;
      background: #3b82f6;
      border: 3px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(59,130,246,.5);
      animation: locPulse 2s ease-out infinite;
    }
    @keyframes locPulse {
      0% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); }
      70% { box-shadow: 0 0 0 18px rgba(59,130,246,0); }
      100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
    }

    .actions {
      display: flex;
      gap: 10px;
      margin-top: 12px
    }

    .actions .btn {
      width: auto;
      flex: 1
    }

    /* Toast — pleine largeur (mobile) / centré plafonné (desktop) */
    .toast {
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: 16px;
      margin-inline: auto;
      max-width: 600px;
      z-index: 10000;
      padding: 13px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--card);
      box-shadow: var(--shadow);
      color: var(--text);
      font-size: 13.5px;
      font-weight: 600;
      line-height: 1.35;
      display: none;
      text-align: center;
    }

    /* Bandeau "Mise à jour disponible" — fixe en haut, pleine largeur */
    .updateBanner {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100002;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 10px 14px;
      padding-top: calc(10px + env(safe-area-inset-top));
      background: linear-gradient(135deg, #0891b2, #0e7490);
      color: #fff;
      font-size: 13.5px;
      box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
      animation: ubDown .3s ease-out;
    }
    @keyframes ubDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
    .updateBanner .ub-txt { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
    .updateBanner .ub-ver { opacity: .85; font-weight: 500; font-size: 12.5px; }
    .updateBanner .ub-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .updateBanner .ub-btn {
      background: #fff; color: #0e7490; border: 0; border-radius: 999px;
      padding: 6px 15px; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap;
    }
    .updateBanner .ub-btn:active { transform: scale(.96); }
    .updateBanner .ub-x {
      background: transparent; color: #fff; border: 0; font-size: 20px;
      line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85;
    }
    @media (max-width: 460px) {
      .updateBanner { gap: 8px; font-size: 12.5px; padding-left: 10px; padding-right: 10px; }
      .updateBanner .ub-btn { padding: 6px 12px; font-size: 12.5px; }
    }

    /* Loader plein écran avec barre de progression (mise à jour) */
    .updateLoader {
      position: fixed;
      inset: 0;
      z-index: 100010;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #0891b2, #0e7490);
      color: #fff;
      animation: ulFade .2s ease;
    }
    @keyframes ulFade { from { opacity: 0; } to { opacity: 1; } }
    .updateLoader .ul-card { width: min(86vw, 320px); text-align: center; }
    .updateLoader .ul-logo img {
      width: 70px; height: 70px; object-fit: contain;
      margin-bottom: 18px;
      filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
      animation: ulPulse 1.2s ease-in-out infinite;
    }
    @keyframes ulPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09); } }
    .updateLoader .ul-title { font-size: 16px; font-weight: 800; margin-bottom: 18px; }
    .updateLoader .ul-track {
      height: 10px; border-radius: 999px;
      background: rgba(255,255,255,.25);
      overflow: hidden;
    }
    .updateLoader .ul-bar {
      height: 100%; width: 0;
      background: #fff; border-radius: 999px;
      box-shadow: 0 0 12px rgba(255,255,255,.6);
      transition: width .15s ease;
    }
    .updateLoader .ul-pct {
      margin-top: 10px; font-size: 14px; font-weight: 700;
      font-variant-numeric: tabular-nums;
    }

    /* Boîte d'info bleue (texte blanc), fermeture manuelle */
    .infoDialogOverlay {
      position: fixed; inset: 0; z-index: 100020;
      background: rgba(15, 23, 42, .5);
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      animation: ulFade .2s ease;
    }
    .infoDialogCard {
      width: min(92vw, 400px);
      background: linear-gradient(135deg, #0891b2, #0e7490);
      color: #fff;
      border-radius: 18px;
      padding: 26px 22px;
      text-align: center;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
      animation: modalPop .22s ease-out;
    }
    .infoDialogTitle { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
    .infoDialogMsg { font-size: 14px; line-height: 1.55; }
    .infoDialogBtn {
      margin-top: 20px;
      background: #fff; color: #0e7490;
      border: 0; border-radius: 999px;
      padding: 12px 28px; font-weight: 800; font-size: 14px; cursor: pointer;
    }
    .infoDialogBtn:active { transform: scale(.97); }

    /* Clignotement du bouton Assistant quand une mise à jour attend */
    @keyframes updateBlink {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(8, 145, 178, .55); }
      50%      { transform: scale(1.14); box-shadow: 0 0 0 9px rgba(8, 145, 178, 0); }
    }
    .updateAttention {
      position: relative;
      animation: updateBlink 1.1s ease-in-out infinite !important;
      color: #0891b2 !important;
      border-radius: 12px;
    }
    .updateAttention::after {
      content: "";
      position: absolute;
      top: 3px; right: 3px;
      width: 10px; height: 10px;
      background: #ef4444;
      border: 2px solid #fff;
      border-radius: 50%;
      z-index: 2;
      animation: none;
    }

    /* ── Filtre par rayon (panneau gauche + sheet) ── */
    .radiusFilter { margin-top: 10px; }
    .radiusLabel { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
    .radiusVal { color: #0891b2; font-weight: 800; }
    #radiusSlider, #radiusSliderSheet { width: 100%; accent-color: #0891b2; cursor: pointer; }

    /* ── Bouton "Filtrer" sur la carte (mobile uniquement) ── */
    #btnMapFilter {
      position: absolute;
      bottom: 16px; left: 50%;
      transform: translateX(-50%);
      z-index: 800;
      display: none;
      align-items: center;
      gap: 7px;
      background: #0891b2;
      color: #fff;
      border: 0;
      border-radius: 999px;
      padding: 11px 20px;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(8, 145, 178, .45);
    }
    #btnMapFilter:active { transform: translateX(-50%) scale(.96); }
    @media (max-width: 980px) { #btnMapFilter { display: inline-flex; } }

    /* ── Bottom sheet de filtres ── */
    .filterSheet {
      position: fixed; inset: 0; z-index: 100030;
      background: transparent;            /* carte visible derrière → on voit le filtrage en direct */
      display: flex; align-items: flex-end; justify-content: center;
      opacity: 0; pointer-events: none; transition: opacity .2s;
    }
    .filterSheet.show { opacity: 1; pointer-events: auto; }
    .filterSheetCard {
      width: 100%; max-width: 520px;
      background: var(--card);
      border-radius: 20px 20px 0 0;
      padding: 6px 16px calc(12px + env(safe-area-inset-bottom));
      max-height: 62vh; overflow-y: auto;
      box-shadow: 0 -10px 34px rgba(0, 0, 0, .3);
      transform: translateY(100%);
      transition: transform .26s cubic-bezier(.22, .61, .36, 1);
    }
    .filterSheet.show .filterSheetCard { transform: translateY(0); }
    .filterSheetHandle { width: 40px; height: 4px; border-radius: 99px; background: var(--border); margin: 2px auto 8px; }
    .filterSheetHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
    .filterSheetClose { background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; padding: 4px; }
    .fsSection { margin-bottom: 12px; }
    .fsLabel { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
    .filtersSheet { display: flex; flex-wrap: wrap; gap: 8px; }
    .chipSheet {
      padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border);
      background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer;
    }
    .chipSheet.active { background: #0891b2; color: #fff; border-color: #0891b2; }
    .filterSheetCard select {
      width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
      background: var(--surface); color: var(--text); font-size: 14px;
    }

    /* ── Cercle de rayon + surbrillance de zone (animés) ── */
    .radiusCircle { animation: radiusPulse 2.2s ease-in-out infinite; }
    @keyframes radiusPulse {
      0%, 100% { stroke-opacity: .9; stroke-width: 2; }
      50%      { stroke-opacity: .4; stroke-width: 5; }
    }
    .zoneHighlight { animation: zonePulse 2.4s ease-in-out infinite; }
    @keyframes zonePulse {
      0%, 100% { fill-opacity: .06; }
      50%      { fill-opacity: .18; }
    }

    /* ── Petit popup "Vous êtes ici" (1 ligne, compact, sans icône) ── */
    .userHerePopup .leaflet-popup-content-wrapper { background: #0891b2 !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; box-shadow: 0 3px 12px rgba(0,0,0,.25) !important; }
    .userHerePopup .leaflet-popup-content { margin: 5px 10px !important; font-size: 11.5px; font-weight: 700; width: auto !important; white-space: nowrap !important; text-align: center; }
    .userHerePopup .leaflet-popup-tip { background: #0891b2 !important; }

    /* Rangée d'actions filtre : Réinitialiser (gauche) + Voir sur la carte (droite) */
    .filterActionsRow { display: none; gap: 8px; margin-top: 10px; }
    .filterActionsRow.show { display: flex; }
    .fbtn {
      flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      padding: 10px; border-radius: 10px; font-size: 12.5px; font-weight: 800; cursor: pointer;
      transition: transform .12s, background .15s, border-color .15s;
    }
    .fbtn:active { transform: scale(.98); }
    .fbtn-ghost { border: 1.5px solid var(--border); background: var(--card); color: var(--muted); }
    .fbtn-ghost:hover { border-color: var(--brand); color: var(--brand); }
    .fbtn-primary { border: 0; background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(8, 145, 178, .25); }
    .radiusHint { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

    /* Select avec icône Lucide en préfixe (pays = globe, ville = immeubles) */
    .selWrap { position: relative; display: block; }
    .selWrap > .selIc { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; display: inline-flex; color: var(--muted); z-index: 1; }
    .selWrap > .selIc svg { width: 16px; height: 16px; }
    .geoFilters .selWrap { flex: 1; min-width: 0; }
    /* spécificité (0,2,1) pour primer sur .geoFilters select et .filterSheetCard select */
    .geoFilters .selWrap > select, .filterSheetCard .selWrap > select { width: 100%; padding-left: 36px; }

    /* ── Panneau d'itinéraire in-app ── */
    .navLink.route { color: var(--brand); }
    .routePanel {
      position: fixed; left: 50%; transform: translateX(-50%) translateY(160%);
      bottom: calc(var(--bnH, 64px) + env(safe-area-inset-bottom) + 12px);
      z-index: 9600; width: min(440px, calc(100vw - 24px));
      background: var(--card); border: 1px solid var(--border);
      border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
      padding: 12px 14px; transition: transform .28s cubic-bezier(.22, .61, .36, 1), opacity .2s;
      opacity: 0; pointer-events: none;
    }
    .routePanel.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
    @media (min-width: 981px) {
      .routePanel { bottom: 24px; left: auto; right: 16px; transform: translateY(160%); }
      .routePanel.show { transform: translateY(0); }
    }
    .routeLoading { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 2px; font-weight: 600; }
    .routeHead { display: flex; align-items: center; justify-content: space-between; }
    .routeTitle { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--fg); }
    .routeTitle svg { color: var(--brand); }
    .routeClose { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; display: inline-flex; border-radius: 8px; }
    .routeClose:hover { background: var(--bg); color: var(--fg); }
    /* Résumé : grand temps + métadonnées */
    .routeSummary { display: flex; align-items: baseline; gap: 9px; margin: 8px 0 12px; flex-wrap: wrap; }
    .routeSummary .rsEta { font-size: 26px; font-weight: 900; color: var(--brand); line-height: 1; letter-spacing: -.5px; }
    .routeSummary .rsMeta { font-size: 12px; color: var(--muted); font-weight: 600; }
    .routeModes { display: flex; gap: 8px; }
    .routeMode {
      flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
      padding: 10px 6px; border: 1.5px solid var(--border); background: var(--bg);
      border-radius: 13px; cursor: pointer; color: var(--fg); transition: all .15s;
    }
    .routeMode .rmIc { display: inline-flex; }
    .routeMode .rmIc svg { width: 19px; height: 19px; color: var(--muted); }
    .routeMode .rmTime { font-weight: 800; font-size: 13.5px; }
    .routeMode .rmLabel { font-size: 10.5px; color: var(--muted); font-weight: 600; }
    .routeMode:hover { border-color: var(--brand); }
    .routeMode.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(8, 145, 178, .3); }
    .routeMode.active .rmIc svg, .routeMode.active .rmLabel { color: #fff; }
    /* Bouton secondaire Google Maps */
    .routeGmaps {
      display: flex; align-items: center; justify-content: center; gap: 7px;
      margin-top: 12px; padding: 10px; border: 1.5px solid var(--border); border-radius: 11px;
      font-size: 12.5px; font-weight: 700; color: var(--fg); text-decoration: none; transition: all .15s;
    }
    .routeGmaps svg { width: 15px; height: 15px; color: var(--muted); }
    .routeGmaps:hover { border-color: var(--brand); color: var(--brand); }
    .routeGmaps:hover svg { color: var(--brand); }

    /* ── Modale "Nouveau mot de passe" (lien email → ouvre dans l'app) ── */
    .resetOverlay { position: fixed; inset: 0; z-index: 100060; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(3px); }
    .resetCard { width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 26px 24px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-height: 92vh; overflow-y: auto; }
    .resetLogo { text-align: center; margin-bottom: 10px; }
    .resetLogo img { width: 54px; height: 54px; }
    .resetCard h2 { margin: 0 0 6px; text-align: center; font-size: 20px; color: var(--text); }
    .resetSub { margin: 0 0 18px; text-align: center; font-size: 13px; color: var(--muted); }
    .resetCard label { display: block; margin: 12px 0 6px; font-weight: 700; font-size: 13px; color: var(--text); }
    .resetInputWrap { position: relative; }
    .resetInputWrap input { width: 100%; padding: 13px 44px 13px 14px; border: 1.5px solid var(--border); border-radius: 11px; font-size: 16px; background: var(--bg); color: var(--text); box-sizing: border-box; }
    .resetInputWrap .pwdToggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; display: inline-flex; }
    .resetBtn { width: 100%; margin-top: 20px; padding: 14px; background: var(--brand); color: #fff; border: 0; border-radius: 11px; font-weight: 800; font-size: 15px; cursor: pointer; }
    .resetBtn:active { transform: scale(.99); }
    .resetBtn:disabled { opacity: .6; cursor: default; }
    .resetMsg { margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; display: none; }
    .resetMsg.ok { display: block; background: #d1fae5; color: #065f46; }
    .resetMsg.err { display: block; background: #fee2e2; color: #991b1b; }

    .successOverlay {
      position: fixed;
      inset: 0;
      z-index: 10001;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.45);
    }
    .successBox {
      background: #16a34a;
      color: #fff;
      border-radius: 16px;
      padding: 32px 28px 24px;
      max-width: min(90vw, 420px);
      text-align: center;
      box-shadow: 0 8px 32px rgba(0,0,0,.3);
      animation: successPop .3s ease;
    }
    .successBox h3 { margin: 0 0 10px; font-size: 20px; }
    .successBox p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; opacity: .95; }
    .successBox button {
      background: #fff;
      color: #16a34a;
      border: none;
      border-radius: 8px;
      padding: 10px 32px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
    }
    @keyframes successPop {
      from { transform: scale(.85); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 520px) {
      .dialog {
        max-height: calc(100dvh - 12px)
      }

      .dialog>form {
        max-height: calc(100dvh - 96px)
      }

      .formRow {
        flex-direction: column;
        gap: 6px
      }

      .formRow .formCol2 {
        flex: 1
      }
    }


    /* ======================================================
       Responsive
       - Desktop : 2 colonnes (toujours)
       - Mobile/tablette : carte en overlay via bouton flottant
       ====================================================== */
    .fab {
      position: fixed;
      right: 14px;
      bottom: 14px;
      z-index: 12000;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 18px;
      border-radius: 999px;
      border: none;
      background: var(--grad-primary);
      color: #fff;
      box-shadow: 0 16px 30px rgba(16, 185, 129, .28);
      font-weight: 950;
      cursor: pointer;
    }

    @media (min-width: 981px) {
      body {
        overflow: hidden
      }

      .app {
        grid-template-columns: 380px 1fr
      }

      .panel {
        display: block
      }

      #map {
        display: block;
        position: relative
      }

      .fab {
        display: none
      }

    }

    @media (min-width: 981px) and (max-width: 1200px) {
      .app {
        grid-template-columns: 340px 1fr
      }
    }

    @media (max-width: 980px) {
      body {
        overflow: auto
      }

      .app {
        grid-template-columns: 1fr;
        height: 100vh
      }

      .panel {
        height: 100vh
      }

      /* Carte en overlay (pas en bas) */
      #map {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: calc(var(--bnH) + env(safe-area-inset-bottom));
        height: auto;
        width: 100vw;
        z-index: 9000;
        display: none;
        padding: 0;
        border-radius: 0;
      }

      body.map-open {
        overflow: hidden
      }

      body.map-open #map {
        display: block;
        animation: mapFadeInRight .3s ease-out;
      }

      body.map-open .panel {
        display: none
      }

      /* La liste (panneau) entre en fondu depuis la gauche quand on revient dessus */
      .panel {
        animation: panelFadeInLeft .32s ease-out;
      }

      .mapOverlay {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 12px;
        width: auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        z-index: 700;
        pointer-events: none;
        flex-wrap: wrap;
        max-width: none;
      }

      .fab {
        display: flex
      }

      .grid {
        grid-template-columns: 1fr
      }

      .actions {
        flex-direction: column
      }

      .list {
        /* Dégager la barre de navigation du bas pour voir la dernière annonce en entier */
        padding-bottom: calc(var(--bnH, 64px) + env(safe-area-inset-bottom) + 24px);
      }

      #btnNotifDesktop {
        display: none !important;
      }
    }

    /* Tablette : afficher les signalements sur 3 colonnes dans l'explorer */
    @media (min-width: 601px) and (max-width: 1024px) {
      .list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }
    }

    /* --- Auth / tabs --- */
    .tabs {
      display: flex;
      gap: 8px;
      margin: 10px 0 0;
    }

    .tab {
      flex: 1;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(0, 0, 0, .12);
      background: transparent;
      cursor: pointer;
      font-weight: 700;
    }

    .tab.active {
      background: rgba(0, 0, 0, .06);
    }

    .tabPanel {
      display: none;
      margin-top: 10px;
    }

    .tabPanel.open {
      display: block;
    }

    .stack {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .badge {
      white-space: nowrap;
    }

    /* --- Responsive polish --- */
    @media (max-width: 820px) {
      .container {
        padding: 14px;
      }

      .top {
        gap: 10px;
      }

      .btnRow {
        flex-direction: column;
        align-items: stretch;
      }

      .btnRow .btn {
        width: 100%;
      }

      /* #map mobile height override removed: map is full screen when opened */
      .dialog {
        width: min(96vw, 720px);
        max-height: 88vh;
      }
    }

    @media (max-width: 420px) {
      .top h1 {
        font-size: 18px;
      }

      .fab {
        right: 12px;
        bottom: 12px;
      }
    }


    /* --- Bottom nav (mobile) --- */
    .bottomNav {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9999;
      display: none;
      gap: 8px;
      padding: 10px 12px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(14px);
      border-top: 1px solid rgba(15, 23, 42, .10);
    }

    .bnItem {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 8px;
      border-radius: 16px;
      border: 1px solid rgba(0, 0, 0, .08);
      background: rgba(255, 255, 255, .6);
      box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
      font-weight: 800;
      cursor: pointer;
      min-height: 52px;
    }

    .bnItem.primary {
      background: var(--grad-primary);
      border-color: transparent;
      color: #fff;
    }

    .bnIcon {
      font-size: 18px;
      line-height: 1;
    }

    .bnLabel {
      font-size: 12px;
      opacity: .85;
    }

    /* --- Bottom nav dark mode --- */
    html[data-theme="dark"] .bottomNav {
      background: rgba(11, 18, 32, .92);
      border-top: 1px solid var(--border);
    }

    html[data-theme="dark"] .bnItem {
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, .06);
      color: var(--text);
    }

    html[data-theme="dark"] .bnItem.primary {
      background: var(--grad-primary);
      border-color: transparent;
      color: #fff;
    }

    /* --- Dark mode: buttons/chips/mini use subtle transparent bg --- */
    html[data-theme="dark"] .btn,
    html[data-theme="dark"] .chip,
    html[data-theme="dark"] .mini {
      background: rgba(255, 255, 255, .05);
      border-color: var(--border);
      color: var(--text);
    }

    html[data-theme="dark"] .btn.primary,
    html[data-theme="dark"] .chip.active,
    html[data-theme="dark"] .itemActions .mini[data-action="zoom"] {
      background: var(--grad-primary);
      border-color: transparent;
      color: #fff;
    }

    /* --- Section card: transparent wrapper, children get white bg --- */
    .section.card {
      background: transparent;
      box-shadow: none;
      padding: 0;
    }

    .section.card > .card,
    .section.card > .btnRow,
    .section.card > .filters,
    .section.card > .list,
    .section.card > p.small,
    .section.card > .notice {
      background: transparent;
    }

    .section.card > .card {
      background: var(--card);
    }

    /* --- KPI emoji icons --- */
    /* Icônes Lucide du compteur — mêmes silhouettes que les pastilles de la carte */
    .kpiBar .kpiIco { width: 17px; height: 17px; flex: 0 0 auto; }
    #kpiNeed .kpiIco { color: var(--need); }
    #kpiMaraude .kpiIco { color: var(--maraude); }
    #kpiDonation .kpiIco { color: var(--donation); }

    /* --- Mobile: small screen KPI compacting --- */
    @media (max-width: 820px) {
      .kpi { min-width: 110px; padding: 10px 12px; }
      .kpi strong { font-size: 20px; }
    }

    .bnItem.active {
      box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
      transform: translateY(-1px);
    }

    html[data-theme="dark"] .bnItem.active {
      box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    }

    @media (max-width: 980px) {
      .bottomNav {
        display: flex;
      }

      /* espace bas pour éviter que les éléments soient masqués */
      .panel .container {
        padding-bottom: 88px;
      }

      .fab {
        display: none;
      }
    }


    /* === HumaniMap V2 — Urgency / Photo / Helped / Nav === */
    .urgBadge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap
    }

    /* Pastilles d'urgence : fond BLANC plein (texte + bordure colorés) pour bien ressortir */
    .urg1 {
      background: #fff;
      color: #15803d;
      border: 1px solid rgba(34, 197, 94, .45);
      box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    }

    .urg2 {
      background: #fff;
      color: #b45309;
      border: 1px solid rgba(245, 158, 11, .5);
      box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    }

    @keyframes urgPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.07); opacity: .75; }
    }

    .urg3 {
      background: #fff;
      color: #dc2626;
      border: 1px solid rgba(239, 68, 68, .55);
      box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
      animation: urgPulse 2s ease-in-out infinite
    }

    /* En dark on garde le fond blanc demandé (les pastilles ressortent sur la carte) */
    html[data-theme="dark"] .urg1,
    html[data-theme="dark"] .urg2,
    html[data-theme="dark"] .urg3 { background: #fff; }

    .photoGrid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin: 8px 0
    }

    .photoSlot {
      position: relative;
      aspect-ratio: 1;
      border: 2px dashed var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      overflow: hidden;
      background: var(--bg);
      transition: border-color .2s, background .2s
    }

    .photoSlot:hover {
      border-color: var(--accent);
      background: rgba(16, 185, 129, .06)
    }

    .photoSlot.filled {
      border-style: solid;
      border-color: var(--accent)
    }

    .photoSlot .slotPlus {
      font-size: 28px;
      color: var(--muted);
      font-weight: 300;
      line-height: 1;
      pointer-events: none
    }

    .photoSlot.filled .slotPlus { display: none }

    .photoSlot img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block
    }

    .photoSlot .slotRemove {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(0,0,0,.6);
      color: #fff;
      font-size: 13px;
      line-height: 20px;
      text-align: center;
      cursor: pointer;
      display: none;
      z-index: 2
    }

    .photoSlot.filled .slotRemove { display: block }

    .photoSlot .slotBadge {
      position: absolute;
      bottom: 3px;
      left: 3px;
      font-size: 8px;
      font-weight: 800;
      background: rgba(0,0,0,.55);
      color: #fff;
      padding: 2px 5px;
      border-radius: 4px;
      pointer-events: none;
      z-index: 2;
    }
    .photoSlot:not(.filled) .slotBadge {
      background: var(--accent);
    }

    .photoPreview {
      margin: 8px 0;
      border-radius: 12px;
      overflow: hidden;
      max-height: 180px;
      border: 1px solid var(--border)
    }

    .photoPreview img {
      width: 100%;
      max-height: 180px;
      object-fit: cover;
      display: block
    }

    .popupPhoto {
      margin: 6px 0;
      border-radius: 10px;
      overflow: hidden;
      max-height: 110px
    }

    .popupPhoto img {
      width: 100%;
      max-height: 110px;
      object-fit: cover;
      display: block
    }
    .popupPhotoWrap { position: relative; }
    .modBlurBtn {
      position: absolute; top: 6px; right: 6px; z-index: 2;
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(15,23,42,.78); color: #fff; border: none;
      border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 700;
      cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    }
    .modBlurBtn:hover { background: rgba(15,23,42,.94); }

    /* ─── Wizard d'ajout de signalement (3 étapes) ─── */
    .wizProgress {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 4px 0 14px;
      padding: 0;
    }
    .wizProgress .wizDot {
      flex: 1;
      height: 6px;
      border-radius: 999px;
      background: var(--line, #e5e7eb);
      transition: background .2s;
    }
    .wizProgress .wizDot.done,
    .wizProgress .wizDot.active {
      background: var(--brand, #0891b2);
    }
    .wizStepLabel {
      font-size: 12px;
      color: var(--muted, #64748b);
      font-weight: 600;
      margin-bottom: 10px;
      letter-spacing: .02em;
    }
    .wizStep {
      display: none;
    }
    .wizStep.active {
      display: block;
      animation: wizFadeIn .2s ease;
    }
    @keyframes wizFadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to   { opacity: 1; transform: none; }
    }
    .wizTypeGrid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin: 4px 0 8px;
    }
    .wizTypeCard {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border: 2px solid var(--line, #e5e7eb);
      border-radius: 14px;
      background: var(--card, #fff);
      color: var(--text, #0f172a);
      cursor: pointer;
      text-align: left;
      font-size: 15px;
      font-weight: 600;
      transition: all .15s;
    }
    .wizTypeCard:hover,
    .wizTypeCard:focus-visible {
      border-color: var(--brand, #0891b2);
      background: var(--bg2, #f8fafc);
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }
    .wizTypeCard .wizIco {
      width: 44px; height: 44px;
      display: grid; place-items: center;
      border-radius: 12px;
      font-size: 22px;
      flex-shrink: 0;
    }
    .wizTypeCard[data-kind="need"] .wizIco { background: #fee2e2; color: #dc2626; }
    .wizTypeCard[data-kind="maraude"] .wizIco { background: #dbeafe; color: #2563eb; }
    .wizTypeCard[data-kind="donation"] .wizIco { background: #dcfce7; color: #16a34a; }
    .wizTypeCard .wizTitle { font-size: 15px; font-weight: 700; }
    .wizTypeCard .wizDesc { font-size: 12px; color: var(--muted, #64748b); font-weight: 400; margin-top: 2px; }
    .wizFooter {
      display: flex;
      gap: 10px;
      justify-content: space-between;
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid var(--line, #e5e7eb);
    }
    .wizFooter .btn { flex: 1; }
    .wizFooter .btn[hidden] { display: none !important; }

    /* Marker cluster */
    .marker-cluster {
      border-radius: 50%;
      text-align: center;
      font-weight: 900;
      color: #fff;
    }
    .marker-cluster div {
      width: 34px; height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 13px;
    }
    .marker-cluster-small { background: rgba(16,185,129,.35); }
    .marker-cluster-small div { background: rgba(16,185,129,.85); }
    .marker-cluster-medium { background: rgba(245,158,11,.35); }
    .marker-cluster-medium div { background: rgba(245,158,11,.85); }
    .marker-cluster-large { background: rgba(239,68,68,.35); }
    .marker-cluster-large div { background: rgba(239,68,68,.85); }

    /* Notification dot */
    .notifDot {
      position: absolute;
      top: -6px;
      right: -8px;
      min-width: 16px;
      height: 16px;
      border-radius: 9px;
      background: #ef4444;
      border: 2px solid var(--card);
      color: #fff;
      font-size: 9px;
      font-weight: 900;
      line-height: 12px;
      text-align: center;
      padding: 0 3px;
    }

    .notifItem {
      display: flex;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background .15s;
    }
    .notifItem:hover { background: rgba(16,185,129,.06); }
    .notifItem.unread { background: rgba(16,185,129,.08); font-weight: 600; }
    .notifItem .notifIcon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
    .notifItem .notifContent { flex: 1; min-width: 0; }
    .notifItem .notifTitle { font-size: 13px; margin-bottom: 2px; }
    .notifItem .notifBody { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .notifItem .notifDate { font-size: 10px; color: var(--muted); margin-top: 3px; }
    .notifItem .notifDelete {
      flex-shrink: 0;
      width: 24px; height: 24px;
      border: none; background: none;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      transition: all .15s;
      align-self: center;
    }
    .notifItem .notifDelete:hover { background: rgba(239,68,68,.12); color: #ef4444; }

    .helpedBtn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(16, 185, 129, .3);
      background: rgba(16, 185, 129, .08);
      color: #0e7490;
      cursor: pointer;
      font-weight: 800;
      font-size: 12px;
      transition: all .2s
    }

    .helpedBtn:hover {
      background: rgba(16, 185, 129, .16);
      transform: translateY(-1px)
    }

    .helpedBtn.done {
      opacity: .7;
      cursor: default
    }

    html[data-theme="dark"] .helpedBtn {
      color: #34d399;
      border-color: rgba(52, 211, 153, .25);
      background: rgba(52, 211, 153, .08)
    }

    .helpedInfo {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 12px;
      background: rgba(16, 185, 129, .06);
      border: 1px solid rgba(16, 185, 129, .15);
      font-size: 11px;
      color: #0e7490;
      margin-top: 6px
    }

    html[data-theme="dark"] .helpedInfo {
      color: #34d399;
      background: rgba(52, 211, 153, .06);
      border-color: rgba(52, 211, 153, .12)
    }

    .helpThread { margin-top:6px; padding-top:4px; max-height:160px; overflow-y:auto; }
    .helpThread .helpEntry { display:flex; gap:6px; align-items:flex-start; padding:4px 0; font-size:11px; border-bottom:1px dashed var(--border); }
    .helpThread .helpEntry:last-child { border-bottom:none; }
    .helpEntry .helpIcon { font-size:14px; flex-shrink:0; }
    .helpEntry .helpBody { flex:1; }
    .helpEntry .helpUser { font-weight:700; color:var(--text); }
    .helpEntry .helpComment { color:var(--muted); margin-top:1px; }
    .helpEntry .helpDate { color:var(--muted); font-size:10px; }
    .helpEntry.en_route .helpIcon { color:#f59e0b; }
    .helpEntry.done .helpIcon { color:#0891b2; }
    .helpEntry.failed .helpIcon { color:#ef4444; }
    .helpActions { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
    .helpInput { width:100%; padding:6px 8px; border:1px solid var(--border); border-radius:8px; font-size:12px; background:var(--card); color:var(--text); margin-top:6px; }

    /* Help confirmation modal */
    .helpConfirmPhotos { display:flex; gap:6px; margin:8px 0; }
    .helpConfirmSlot {
      width:70px; height:70px; border-radius:8px; border:2px dashed var(--border);
      display:grid; place-items:center; cursor:pointer; position:relative; overflow:hidden;
      background:var(--bg); font-size:20px; color:var(--muted); transition:border-color .2s;
    }
    .helpConfirmSlot:hover { border-color:var(--accent); }
    .helpConfirmSlot img { width:100%; height:100%; object-fit:cover; position:absolute; top:0; left:0; border-radius:6px; }
    .helpConfirmSlot .rmPhoto { position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:11px; line-height:18px; text-align:center; cursor:pointer; display:none; }
    .helpConfirmSlot:hover .rmPhoto { display:block; }

    .helpHistoryPhoto { width:60px; height:60px; border-radius:6px; object-fit:cover; cursor:pointer; border:1px solid var(--border); }
    .helpHistoryPhotos { display:flex; gap:4px; margin-top:4px; flex-wrap:wrap; }
    .helpDescText { color:var(--text); font-size:11px; margin-top:2px; font-style:italic; }
    .helpStillNeeds { font-size:10px; padding:2px 6px; border-radius:4px; font-weight:700; display:inline-block; margin-top:2px; }
    .helpStillNeeds.yes { background:#fef3c7; color:#92400e; }
    .helpStillNeeds.no { background:#d1fae5; color:#065f46; }

    .helpEnRouteMsg { background:#fffbeb; border:1px solid #fbbf24; border-radius:8px; padding:8px 10px; font-size:12px; color:#92400e; margin-top:6px; }

    .helpIntentions {
      display:flex; align-items:center; gap:6px; padding:8px 12px; margin-top:6px;
      background:linear-gradient(135deg,#fef3c7,#fffbeb); border:1px solid #f59e0b;
      border-radius:10px; font-size:12px; color:#92400e; font-weight:600;
    }
    .helpIntentPulse {
      width:10px; height:10px; border-radius:50%; background:#f59e0b; flex-shrink:0;
      animation:intentPulse 1.5s ease-in-out infinite;
    }
    @keyframes intentPulse {
      0%,100% { opacity:1; transform:scale(1); }
      50% { opacity:.5; transform:scale(1.3); }
    }

    .navLink {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      cursor: pointer;
      font-weight: 800;
      font-size: 12px;
      text-decoration: none;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
      will-change: transform;
    }

    .navLink:hover {
      filter: brightness(.96);
      transform: translateY(-2px);
      box-shadow: 0 6px 14px -6px rgba(15,23,42,.25);
    }
    .navLink:active { transform: translateY(0); }

    .navLink.call {
      background: linear-gradient(135deg, #10b981, #059669);
      color: #fff; border-color: #059669;
      box-shadow: 0 4px 10px -4px rgba(5,150,105,.5);
    }
    .navLink.maps {
      background: linear-gradient(135deg, #3b82f6, #1d4ed8);
      color: #fff; border-color: #1d4ed8;
      box-shadow: 0 4px 10px -4px rgba(29,78,216,.4);
    }
    .navLink.waze {
      background: linear-gradient(135deg, #06b6d4, #0891b2);
      color: #fff; border-color: #0891b2;
      box-shadow: 0 4px 10px -4px rgba(8,145,178,.4);
    }
    .navLink.share {
      background: linear-gradient(135deg, #a78bfa, #3b82f6);
      color: #fff; border-color: #3b82f6;
      box-shadow: 0 4px 10px -4px rgba(124,58,237,.4);
    }

    .helpedOverlay {
      position: fixed;
      inset: 0;
      background: var(--overlay);
      z-index: 10001;
      display: grid;
      place-items: center;
      padding: 16px
    }

    .helpedDialog {
      background: var(--card);
      border-radius: 18px;
      padding: 22px;
      max-width: 380px;
      width: 100%;
      text-align: center;
      box-shadow: var(--shadow);
      border: 1px solid var(--border)
    }

    .helpedDialog h3 {
      margin: 0 0 8px;
      font-size: 16px
    }

    .helpedDialog p {
      margin: 0 0 14px;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5
    }

    .itemBadges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center
    }

    /* Address autocomplete */
    .addressWrap {
      position: relative;
    }

    .addressWrap input {
      width: 100%;
    }

    .pwdWrap {
      position: relative;
    }
    .pwdWrap input {
      width: 100%;
      padding-right: 40px;
    }
    .pwdToggle {
      position: absolute;
      right: 4px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      line-height: 1;
    }
    .pwdToggle:active { transform: translateY(-50%) scale(.9); }

    .addressWrap {
      position: relative;
    }
    .addrSuggestions {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 10002;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
      max-height: 220px;
      overflow-y: auto;
      display: none;
    }

    .addrSuggestions.open {
      display: block;
    }

    .addrSugg {
      padding: 10px 14px;
      cursor: pointer;
      font-size: 13px;
      border-bottom: 1px solid var(--border);
      transition: background .15s;
    }

    .addrSugg:last-child {
      border-bottom: none;
    }

    .addrSugg:hover,
    .addrSugg.active {
      background: rgba(16, 185, 129, .08);
    }

    .addrSugg small {
      color: var(--muted);
      display: block;
      font-size: 11px;
      margin-top: 2px;
    }

    /* Accordion tutorial */
    .tutoSection {
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 8px;
      overflow: hidden;
      background: var(--card);
      transition: box-shadow .2s;
    }
    .tutoSection[open] {
      box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }
    .tutoSection summary {
      padding: 12px 14px;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      user-select: none;
      -webkit-user-select: none;
    }
    .tutoSection summary::-webkit-details-marker { display: none; }
    .tutoSection summary::after {
      content: '▸';
      font-size: 12px;
      color: var(--muted);
      transition: transform .2s;
    }
    .tutoSection[open] summary::after {
      transform: rotate(90deg);
    }
    .tutoContent {
      padding: 0 14px 14px;
      font-size: 13px;
      line-height: 1.65;
      color: var(--fg);
    }
    .tutoContent ul, .tutoContent ol {
      padding-left: 18px;
      margin: 6px 0;
    }
    .tutoContent li {
      margin-bottom: 5px;
    }
    .tutoContent p {
      margin: 6px 0;
    }

    /* =======================================================
       Onboarding 1er lancement — 3 slides + push
       ======================================================= */
    .onboardingOverlay {
      position: fixed; inset: 0; z-index: 20000;
      background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 24px 20px;
      animation: onbFadeIn .45s ease;
    }
    @keyframes onbFadeIn { from { opacity: 0; } to { opacity: 1; } }
    .onboardingCard {
      background: #fff;
      border-radius: 24px;
      padding: 32px 24px 24px;
      max-width: 420px;
      width: 100%;
      box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
      display: flex; flex-direction: column;
      overflow: hidden;
      position: relative;
    }
    .onbSlide {
      display: none;
      text-align: center;
      animation: onbSlideIn .4s ease;
      min-height: 460px;
      flex-direction: column;
    }
    .onbSlide.active { display: flex; }
    .onbSlide > .onbActions { margin-top: auto; }
    @keyframes onbSlideIn {
      from { opacity: 0; transform: translateX(20px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    .onbIcon {
      width: 92px; height: 92px;
      border-radius: 50%;
      margin: 0 auto 18px;
      display: grid; place-items: center;
      font-size: 42px;
      background: linear-gradient(135deg, #e0f2fe, #cffafe);
      box-shadow: 0 8px 24px -8px rgba(14,116,144,.3);
      animation: onbIconPulse 2.2s ease-in-out infinite;
    }
    @keyframes onbIconPulse {
      0%,100% { transform: scale(1); }
      50%     { transform: scale(1.06); }
    }
    .onbTitle {
      font-size: 22px; font-weight: 900; color: #0e172a;
      margin: 0 0 10px;
      line-height: 1.25;
    }
    .onbText {
      font-size: 15px; color: #475569; line-height: 1.55;
      margin: 0 0 20px;
    }
    .onbDots {
      display: flex; justify-content: center; gap: 8px;
      margin: 4px 0 18px;
    }
    .onbDot {
      width: 8px; height: 8px; border-radius: 50%;
      background: #cbd5e1;
      transition: width .25s ease, background .25s ease;
    }
    .onbDot.active { width: 28px; background: #0891b2; border-radius: 999px; }
    .onbActions {
      display: flex; gap: 10px; align-items: center; justify-content: space-between;
      margin-top: 8px;
    }
    .onbSkip {
      background: transparent; border: none;
      color: #64748b; font-weight: 700; font-size: 13px;
      cursor: pointer; padding: 10px 8px;
    }
    .onbSkip:hover { color: #334155; }
    .onbList {
      text-align: left; font-size: 14px; color: #475569;
      line-height: 1.7; margin: 0 0 16px; padding-left: 0;
      list-style: none;
    }
    .onbList li {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 6px 0;
    }
    .onbList li svg { flex-shrink: 0; color: #0891b2; margin-top: 2px; }
    .onbList li > .onbLi { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
    .onbList li > .onbLi .onbSub { color: var(--muted); font-size: 12.5px; line-height: 1.4; font-weight: 400; }
    .onbList.onbOl { counter-reset: onbStep; }
    .onbList.onbOl li { counter-increment: onbStep; }
    .onbList.onbOl li::before {
      content: counter(onbStep);
      flex-shrink: 0;
      width: 22px; height: 22px;
      border-radius: 50%;
      background: #0891b2; color: #fff;
      font-size: 12px; font-weight: 800;
      display: grid; place-items: center;
    }
    .onbDotColor {
      width: 10px; height: 10px; border-radius: 50%;
      display: inline-block; flex-shrink: 0; margin-top: 7px;
      box-shadow: 0 0 0 2px rgba(255,255,255,.9);
    }
    .onbHint {
      margin-top: 0 !important;
      font-size: 13px !important;
      color: #64748b !important;
      background: #f1f5f9;
      border-left: 3px solid #0891b2;
      padding: 10px 12px;
      border-radius: 6px;
      text-align: left;
    }
    .onbIcon svg { color: #0891b2; }
    .onbNext {
      background: linear-gradient(135deg, #0e7490, #0891b2);
      color: #fff; border: none;
      border-radius: 999px;
      padding: 12px 24px;
      font-weight: 900; font-size: 14px;
      cursor: pointer;
      box-shadow: 0 10px 22px -10px rgba(8,145,178,.6);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .onbNext:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(8,145,178,.7); }
    .onbNext:active { transform: translateY(0); }
    .onbPushBtns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
    .onbPushPrimary {
      background: linear-gradient(135deg, #0e7490, #0891b2);
      color: #fff; border: none;
      border-radius: 14px;
      padding: 14px 20px;
      font-weight: 900; font-size: 15px;
      cursor: pointer;
      box-shadow: 0 10px 24px -10px rgba(8,145,178,.55);
      transition: transform .18s ease, box-shadow .18s ease;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    }
    .onbPushPrimary:hover { transform: translateY(-2px); }
    .onbPushLater {
      background: transparent; border: 1.5px solid #cbd5e1;
      color: #475569; border-radius: 14px;
      padding: 12px 20px; font-weight: 700; font-size: 14px;
      cursor: pointer;
      transition: background .18s ease, border-color .18s ease;
    }
    .onbPushLater:hover { background: #f1f5f9; border-color: #94a3b8; }

    /* Onboarding — adaptation mode sombre (carte + textes lisibles) */
    html[data-theme="dark"] .onboardingCard { background: var(--card); }
    html[data-theme="dark"] .onbTitle { color: var(--text); }
    html[data-theme="dark"] .onbText,
    html[data-theme="dark"] .onbList { color: #cbd5e1; }
    html[data-theme="dark"] .onbList li svg { color: #38bdf8; }
    html[data-theme="dark"] .onbSkip { color: var(--muted); }
    html[data-theme="dark"] .onbSkip:hover { color: var(--text); }
    html[data-theme="dark"] .onbHint { background: var(--surface); color: var(--muted) !important; }
    html[data-theme="dark"] .onbIcon { background: linear-gradient(135deg, rgba(8,145,178,.28), rgba(34,211,153,.18)); }
    html[data-theme="dark"] .onbDot { background: #334155; }
    html[data-theme="dark"] .onbPushLater { border-color: var(--border); color: var(--muted); }
    html[data-theme="dark"] .onbPushLater:hover { background: var(--surface); }

    /* =======================================================
       Polish UI/UX — micro-interactions, transitions, animations
       ======================================================= */

    /* Smooth scrolling global + focus ring cohérent */
    html { scroll-behavior: smooth; }
    :focus-visible {
      outline: 2px solid var(--brand, #0891b2);
      outline-offset: 2px;
      border-radius: 6px;
    }

    /* Chips : transition + hover lift */
    .chip {
      transition: transform .18s ease, box-shadow .18s ease, background .25s ease, color .25s ease, border-color .25s ease;
    }
    .chip:hover:not(.active) {
      transform: translateY(-1px);
      box-shadow: 0 4px 10px -4px rgba(15,23,42,.15);
    }
    .chip.active {
      box-shadow: 0 6px 14px -6px rgba(16,185,129,.45);
    }
    .chip:active { transform: scale(.97); }

    /* NeedTags */
    .needTag {
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    }
    .needTag:hover { transform: translateY(-1px); }
    .needTag:active { transform: scale(.97); }

    /* Btn micro-interaction : petit scale au press + shimmer léger */
    .btn:active:not(:disabled) { transform: scale(.97); }
    .btn:disabled { opacity: .6; cursor: not-allowed; }

    /* Toast slide-up animation */
    .toast {
      transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
    }
    .toast.show {
      animation: toastIn .35s cubic-bezier(.22,.61,.36,1);
    }
    @keyframes toastIn {
      from { transform: translateY(20px); opacity: 0; }
      to   { transform: translateY(0);    opacity: 1; }
    }

    /* Card hover subtle lift (desktop seul) */
    @media (hover: hover) and (pointer: fine) {
      .card {
        transition: box-shadow .25s ease, transform .25s ease;
      }
    }

    /* FAB : pulse subtil pour attirer l'attention */
    .fab {
      transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    }
    .fab:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 22px 36px rgba(16,185,129,.32);
      filter: brightness(1.05);
    }
    .fab:active { transform: scale(.96); }

    /* Marker Leaflet : petite anim à l'apparition (évite les jumps) */
    .leaflet-marker-icon {
      transition: transform .15s ease;
    }
    .leaflet-marker-icon:hover {
      transform: translateY(-3px) scale(1.06);
      z-index: 1000 !important;
    }

    /* Popup Leaflet — coins plus doux + légère scale-in */
    .leaflet-popup-content-wrapper {
      border-radius: 16px !important;
      box-shadow: 0 14px 36px rgba(15,23,42,.22) !important;
      animation: popupPop .28s cubic-bezier(.22,.61,.36,1);
      max-width: 320px;
    }
    .leaflet-popup-content {
      margin: 12px 14px !important;
      max-height: 60vh;
      overflow-y: auto;
      font-size: 12.5px;
    }
    .leaflet-popup-content p { margin: 2px 0; }
    @keyframes popupPop {
      from { transform: scale(.92) translateY(8px); opacity: 0; }
      to   { transform: scale(1)    translateY(0);  opacity: 1; }
    }

    /* popupActions : boutons espacés avec petite entrance */
    .popupActions .navLink {
      animation: navLinkIn .35s cubic-bezier(.22,.61,.36,1) backwards;
    }
    .popupActions .navLink:nth-child(1) { animation-delay: .04s; }
    .popupActions .navLink:nth-child(2) { animation-delay: .09s; }
    .popupActions .navLink:nth-child(3) { animation-delay: .14s; }
    .popupActions .navLink:nth-child(4) { animation-delay: .19s; }
    .popupActions .navLink:nth-child(5) { animation-delay: .24s; }
    @keyframes navLinkIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Inputs : focus transition smooth */
    input, select, textarea {
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    input:focus, select:focus, textarea:focus {
      box-shadow: 0 0 0 3px rgba(8,145,178,.15);
    }

    /* Links subtle underline animation */
    a:not(.btn):not(.navLink):not(.chip) {
      transition: color .2s ease;
    }

    /* Badge verified : micro-glow */
    .verifiedBadge {
      animation: verifiedGlow 3.5s ease-in-out infinite;
    }
    @keyframes verifiedGlow {
      0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,0); }
      50%     { box-shadow: 0 0 0 4px rgba(14,165,233,.12); }
    }

    /* =======================================================
       Panneau Admin
       ======================================================= */
    .adminTab {
      background: transparent; border: none;
      padding: 10px 14px; font-size: 13px; font-weight: 700;
      color: var(--muted); cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: color .18s ease, border-color .18s ease;
    }
    .adminTab:hover { color: var(--text); }
    .adminTab.active {
      color: #4f46e5;
      border-bottom-color: #4f46e5;
    }
    .adminStatCard {
      background: linear-gradient(135deg, #f8fafc, #fff);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
      display: flex; flex-direction: column; gap: 4px;
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .adminStatCard:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px -10px rgba(15,23,42,.18);
    }
    .adminStatValue { font-size: 26px; font-weight: 900; color: #0e172a; line-height: 1; }
    .adminStatLabel { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
    .adminStatCard.accent-blue { border-left: 3px solid #3b82f6; }
    .adminStatCard.accent-green { border-left: 3px solid #10b981; }
    .adminStatCard.accent-orange { border-left: 3px solid #f59e0b; }
    .adminStatCard.accent-red { border-left: 3px solid #ef4444; }
    .adminStatCard.accent-purple { border-left: 3px solid #8b5cf6; }

    .adminMemberRow {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      transition: box-shadow .18s ease, border-color .18s ease;
    }
    .adminMemberRow:hover {
      border-color: #a5b4fc;
      box-shadow: 0 4px 14px -6px rgba(37, 99, 235,.2);
    }
    .adminMemberAvatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: linear-gradient(135deg, #0891b2, #34d399);
      color: #fff; font-weight: 900; font-size: 14px;
      display: grid; place-items: center; flex-shrink: 0;
    }
    .adminMemberMain { flex: 1; min-width: 0; }
    .adminMemberName { font-weight: 800; font-size: 13px; }
    .adminMemberMeta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .adminMemberActions { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
    .adminMiniBtn {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 5px 8px;
      font-size: 11px; font-weight: 700; cursor: pointer;
      transition: background .15s ease, border-color .15s ease;
    }
    .adminMiniBtn:hover { background: #f1f5f9; }
    .adminMiniBtn.danger { color: #dc2626; border-color: rgba(220,38,38,.3); }
    .adminMiniBtn.danger:hover { background: #fee2e2; }
    .adminMiniBtn.warn { color: #d97706; border-color: rgba(217,119,6,.3); }
    .adminMiniBtn.warn:hover { background: #fef3c7; }

    @keyframes skelPulse {
      0%,100% { opacity: 1; }
      50% { opacity: .5; }
    }

    /* Sparkline activité 30j */
    #adminSparkline {
      width: 100%; height: 60px;
    }

    /* Respecte prefers-reduced-motion : désactive toutes les anims */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* ============================================================
       DESIGN SYSTEM v2 — Tokens étendus
       Étape 1 : tokens + topbar + bottom nav (mobile / tablette / desktop)
       ============================================================ */
    :root {
      /* Palette étendue */
      --brand-50:  #ecfeff;
      --brand-100: #cffafe;
      --brand-200: #a5f3fc;
      --brand-300: #67e8f9;
      --brand-400: #22d3ee;
      --brand-500: #06b6d4;
      --brand-600: #0891b2;
      --brand-700: #0e7490;
      --brand-800: #155e75;
      --brand-900: #164e63;

      --success-500: #10b981;
      --success-600: #059669;
      --warning-500: #f59e0b;
      --warning-600: #d97706;
      --danger-500:  #ef4444;
      --danger-600:  #dc2626;

      --neutral-50:  #f8fafc;
      --neutral-100: #f1f5f9;
      --neutral-200: #e2e8f0;
      --neutral-300: #cbd5e1;
      --neutral-400: #94a3b8;
      --neutral-500: #64748b;
      --neutral-600: #475569;
      --neutral-700: #334155;
      --neutral-800: #1e293b;
      --neutral-900: #0f172a;

      /* Échelle de rayons */
      --r-xs: 4px;
      --r-sm: 8px;
      --r-md: 12px;
      --r-lg: 16px;
      --r-xl: 20px;
      --r-2xl: 28px;
      --r-full: 9999px;

      /* Échelle d'ombres (stacked) */
      --sh-xs: 0 1px 2px rgba(15, 23, 42, .06);
      --sh-sm: 0 2px 4px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
      --sh-md: 0 4px 8px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .05);
      --sh-lg: 0 12px 24px rgba(15, 23, 42, .10), 0 4px 8px rgba(15, 23, 42, .06);
      --sh-xl: 0 24px 48px rgba(15, 23, 42, .14), 0 8px 16px rgba(15, 23, 42, .08);
      --sh-brand: 0 10px 30px -8px rgba(8, 145, 178, .45);

      /* Espacement 4-based */
      --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
      --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
      --s-12: 48px; --s-16: 64px;

      /* Typographie */
      --fs-xs: 11px; --fs-sm: 13px; --fs-md: 14px; --fs-base: 15px;
      --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 30px;

      /* Transitions standards */
      --t-fast: 120ms cubic-bezier(.4, 0, .2, 1);
      --t-med:  200ms cubic-bezier(.4, 0, .2, 1);
      --t-slow: 320ms cubic-bezier(.4, 0, .2, 1);
      --t-spring: 400ms cubic-bezier(.34, 1.56, .64, 1);

      /* Z-index layers */
      --z-base: 1;
      --z-sticky: 100;
      --z-bottomnav: 9500; /* au-dessus de l'overlay carte mobile (#map = 9000) : le bouton "+" qui dépasse reste visible */
      --z-topbar: 1010;
      --z-modal: 10000;
      --z-toast: 11000;
      --z-onboarding: 20000;
    }

    html[data-theme="dark"] {
      --sh-xs: 0 1px 2px rgba(0, 0, 0, .3);
      --sh-sm: 0 2px 4px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25);
      --sh-md: 0 4px 12px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
      --sh-lg: 0 14px 32px rgba(0, 0, 0, .55), 0 6px 12px rgba(0, 0, 0, .35);
      --sh-xl: 0 26px 60px rgba(0, 0, 0, .65), 0 10px 20px rgba(0, 0, 0, .4);
      --sh-brand: 0 12px 36px -8px rgba(34, 211, 238, .35);
    }

    /* Focus ring accessible global */
    :where(button, a, input, select, textarea):focus-visible {
      outline: 2px solid var(--brand-500);
      outline-offset: 2px;
      border-radius: inherit;
    }

    /* ============================================================
       TOPBAR v2 — Glass + hiérarchie claire
       ============================================================ */
    .topbar {
      padding: var(--s-2) var(--s-3) !important;
      border-radius: var(--r-xl) !important;
      background: linear-gradient(135deg,
        rgba(8, 145, 178, .96) 0%,
        rgba(37, 99, 235, .93) 55%,
        rgba(37, 99, 235, .93) 100%) !important;
      backdrop-filter: blur(16px) saturate(140%) !important;
      -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
      box-shadow: var(--sh-md), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
      border: 1px solid rgba(255, 255, 255, .12) !important;
      position: relative;
      overflow: visible;
    }

    /* Rail vertical flottant (desktop) : apparaît au scroll, à gauche de la carte */
    #scrollRail {
      position: fixed;
      top: 50%;
      left: 392px; /* bord droit du panneau (380px) + espace — écrans larges */
      transform: translateY(-50%) translateX(-10px);
      z-index: 4000; /* au-dessus de la carte et des contrôles Leaflet, sous les modales */
      display: none;
      flex-direction: column;
      gap: 8px;
      padding: 8px 6px;
      background: linear-gradient(135deg, rgba(8,145,178,.97), rgba(16,185,129,.95));
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 18px;
      box-shadow: 0 10px 34px rgba(0,0,0,.28);
      opacity: 0;
      transition: opacity .22s ease, transform .22s ease;
    }
    #scrollRail.show { display: flex; opacity: 1; transform: translateY(-50%) translateX(0); }
    #scrollRail .railBtn {
      width: 42px; height: 42px; border-radius: 50%;
      border: none; background: rgba(255,255,255,.16); color: #fff;
      display: inline-flex; align-items: center; justify-content: center;
      cursor: pointer; transition: background .15s, transform .15s;
    }
    #scrollRail .railBtn:hover { background: rgba(255,255,255,.32); transform: scale(1.06); }
    #scrollRail .railTop { background: rgba(255,255,255,.28); }
    @media (min-width: 981px) and (max-width: 1200px) { #scrollRail { left: 352px; } } /* panneau 340px */
    @media (max-width: 980px) { #scrollRail { display: none !important; } } /* mobile : jamais */

    html[data-theme="dark"] .topbar {
      background: linear-gradient(135deg,
        rgba(14, 116, 144, .88) 0%,
        rgba(37, 99, 235, .82) 100%) !important;
      border-color: rgba(255, 255, 255, .08) !important;
    }

    .topbar .brand {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex: 0 1 auto;
      overflow: hidden;
    }

    .topActions { flex: 0 0 auto; }

    /* Le logo seul, sans cadre : il porte désormais ses propres coins arrondis en transparence.
       Le fond blanc translucide + le filet interne existaient pour rattraper les coins NOIRS de
       l'ancien PNG, qui avaient besoin d'un cartouche pour ne pas trancher sur le bleu. Les coins
       étant corrigés à la source, ce cartouche ne fait plus que dessiner un bord autour du logo. */
    .topbar .brand .logo {
      width: 64px; height: 64px;
      display: grid; place-items: center;
      transition: transform var(--t-med);
    }

    .topbar .brand .logo:hover { transform: scale(1.05); }
    .topbar .brand .logo img { width: 100%; height: 100%; object-fit: contain; }

    .topbar .brand::after {
      content: "HumaniMap";
      display: none; /* desktop/tablette : logo seul (le texte se tronquait en « Huma… ») — réaffiché sur mobile */
      font-weight: 800;
      font-size: 13px;
      color: #fff;
      letter-spacing: -.01em;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
      white-space: nowrap;
    }

    .topActions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }

    .topActions .iconBtn {
      width: 34px;
      height: 34px;
      padding: 0 !important;
      border-radius: var(--r-full) !important;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, .14) !important;
      border: 1px solid rgba(255, 255, 255, .18) !important;
      color: #fff !important;
      cursor: pointer;
      transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
      backdrop-filter: blur(4px);
      position: relative;
    }

    .topActions .iconBtn:hover {
      background: rgba(255, 255, 255, .25) !important;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    }

    .topActions .iconBtn:active { transform: translateY(0) scale(.96); }

    /* Bouton compte spécial — pill avec label */
    .topActions #btnAdmin {
      width: auto !important;
      padding: 0 10px !important;
      gap: 5px !important;
      font-weight: 700;
      font-size: 12px;
      height: 34px;
    }
    .topActions #btnAdmin svg { flex-shrink: 0; }

    /* Pastille notification — petit point en haut à droite du bouton */
    .topActions .notifDot {
      position: absolute !important;
      top: -2px !important;
      right: -2px !important;
      min-width: 10px !important;
      width: 10px !important;
      height: 10px !important;
      padding: 0 !important;
      border-radius: 50% !important;
      background: var(--danger-500) !important;
      border: 2px solid #fff !important;
      box-shadow: 0 0 0 1px rgba(239, 68, 68, .25);
      font-size: 0 !important;
      line-height: 0 !important;
      pointer-events: none;
    }

    /* Badge "Visiteur/role" */
    .topbar .badge {
      background: rgba(255, 255, 255, .18) !important;
      border: 1px solid rgba(255, 255, 255, .22) !important;
      color: #fff !important;
      padding: 4px 10px !important;
      border-radius: var(--r-full) !important;
      font-size: var(--fs-xs);
      font-weight: 700;
      display: inline-flex; align-items: center; gap: 6px;
      backdrop-filter: blur(4px);
    }
    .topbar .badge .dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--success-500);
      box-shadow: 0 0 0 2px rgba(16, 185, 129, .25);
    }

    /* --- Topbar responsive --- */
    /* Tablette portrait : garder tout, réduire logo label */
    /* Sous 1200px : masquer le label du bouton Compte pour laisser la place au wordmark */
    @media (max-width: 1200px) {
      .topActions #btnAdmin #btnAdminLabel { display: none; }
      .topActions #btnAdmin { padding: 0 8px !important; }
    }

    @media (min-width: 641px) and (max-width: 1024px) {
      .topbar { padding: 6px 10px !important; }
      .topActions { gap: 4px; }
      .topActions .iconBtn { width: 32px; height: 32px; }
      .topbar .brand::after { font-size: 12px; }
    }

    /* Mobile : wordmark plus gros (place libre), actions compactées */
    @media (max-width: 640px) {
      .topbar {
        padding: var(--s-2) !important;
        border-radius: var(--r-lg) !important;
      }
      .topbar .brand::after {
        display: inline;
        font-size: 17px;
        font-weight: 900;
        letter-spacing: -.02em;
      }
      .topbar .brand .logo { width: 54px; height: 54px; }
      .topActions { gap: 4px; }
      .topActions .iconBtn { width: 34px; height: 34px; }
      .topActions #btnAdmin { padding: 0 8px !important; height: 34px; }
      .topActions #btnAdmin #btnAdminLabel { display: none; }
      .topbar .badge { padding: 3px 8px !important; font-size: 10px; }
      .topbar .badge strong { font-size: 10px; }
    }

    /* Très petit mobile : réduire un peu */
    @media (max-width: 380px) {
      .topbar .brand::after { font-size: 15px; }
      .topActions .iconBtn { width: 32px; height: 32px; }
    }

    /* ============================================================
       BOTTOM NAV v2 — Pill active + icônes réactives
       ============================================================ */
    .bottomNav {
      gap: 4px !important;
      padding: 8px 10px !important;
      padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
      background: rgba(255, 255, 255, .88) !important;
      backdrop-filter: blur(20px) saturate(160%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
      border-top: 1px solid rgba(15, 23, 42, .08) !important;
      box-shadow: 0 -4px 20px rgba(15, 23, 42, .05) !important;
      z-index: var(--z-bottomnav) !important;
    }

    html[data-theme="dark"] .bottomNav {
      background: rgba(11, 18, 32, .88) !important;
      border-top: 1px solid rgba(148, 163, 184, .15) !important;
    }

    .bnItem {
      position: relative;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: var(--r-md) !important;
      padding: 8px 4px !important;
      min-height: 56px !important;
      gap: 3px !important;
      color: var(--neutral-500) !important;
      font-weight: 600 !important;
      transition: color var(--t-med), background var(--t-med), transform var(--t-fast);
    }

    .bnItem:hover { background: rgba(8, 145, 178, .06) !important; }
    .bnItem:active { transform: scale(.94); }

    .bnItem .bnIcon { font-size: 20px !important; line-height: 1; transition: transform var(--t-spring); }
    .bnItem .bnLabel { font-size: 11px !important; opacity: .85; font-weight: 700; letter-spacing: -.01em; }

    /* État actif : indicateur pill + couleur brand */
    .bnItem.active {
      color: var(--brand-700) !important;
      background: rgba(8, 145, 178, .10) !important;
      transform: none !important;
      box-shadow: none !important;
    }
    .bnItem.active .bnIcon { transform: scale(1.1); }
    .bnItem.active::before {
      content: "";
      position: absolute;
      top: 6px;
      left: 50%;
      transform: translateX(-50%);
      width: 28px; height: 3px;
      border-radius: var(--r-full);
      background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    }

    html[data-theme="dark"] .bnItem { color: #fff !important; }
    html[data-theme="dark"] .bnItem:hover { background: rgba(34, 211, 238, .08) !important; }
    html[data-theme="dark"] .bnItem.active {
      color: var(--brand-300) !important;
      background: rgba(34, 211, 238, .10) !important;
    }

    /* Bouton central "Ajouter" — pastille plus discrète, centrée */
    .bnItem.primary {
      --bn-lift: -16px;
      --bn-ring: 37, 99, 235;
      background: var(--grad-primary) !important;
      color: #fff !important;
      border: none !important;
      box-shadow: 0 10px 22px rgba(var(--bn-ring), .5), 0 0 0 3px rgba(255, 255, 255, .92) !important;
      transform: translateY(var(--bn-lift));
      animation: bnAddBoost 2.8s ease-in-out infinite;
      flex: 0 0 auto !important;
      width: 44px !important;
      min-width: 44px !important;
      max-width: 44px !important;
      height: 44px !important;
      min-height: 44px !important;
      border-radius: var(--r-full) !important;
      padding: 0 !important;
      align-self: center;
    }
    .bnItem.primary::before { display: none !important; }
    .bnItem.primary .bnIcon { font-size: 18px !important; }
    .bnItem.primary .bnLabel { display: none !important; }
    .bnItem.primary:hover {
      background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%) !important;
    }
    .bnItem.primary:active { filter: brightness(1.15); }

    html[data-theme="dark"] .bnItem.primary {
      --bn-ring: 59, 130, 246;
      box-shadow: 0 10px 22px rgba(var(--bn-ring), .45), 0 0 0 3px rgba(11, 18, 32, .95) !important;
    }

    /* Bouton "+" — animation "boost" (façon indepweb.com) : pulsation violette
       + anneau qui s'étend et s'estompe (effet sonar). Le scale est porté par le
       bouton ; l'anneau par ::after — le bouton ne peut pas animer sa propre
       box-shadow (écrasée par .bnItem { box-shadow:none !important }). Le lift
       (var --bn-lift) est répété dans le keyframe pour que le "+" reste surélevé. */
    .bnItem.primary::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: var(--r-full);
      pointer-events: none;
      animation: bnAddRing 2.8s ease-in-out infinite;
    }
    @keyframes bnAddBoost {
      0%, 100% { transform: translateY(var(--bn-lift)) scale(1); }
      50%      { transform: translateY(var(--bn-lift)) scale(1.08); }
    }
    @keyframes bnAddRing {
      0%, 100% { box-shadow: 0 0 0 0    rgba(var(--bn-ring), .55); }
      50%      { box-shadow: 0 0 0 12px rgba(var(--bn-ring), 0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .bnItem.primary,
      .bnItem.primary::after { animation: none !important; }
    }

    /* Mobile : tailles légèrement ajustées */
    @media (max-width: 380px) {
      .bnItem { min-height: 52px !important; padding: 6px 2px !important; }
      .bnItem .bnIcon { font-size: 18px !important; }
      .bnItem .bnLabel { font-size: 10px !important; }
      .bnItem.primary {
        width: 40px !important; min-width: 40px !important; max-width: 40px !important;
        height: 40px !important; min-height: 40px !important;
        --bn-lift: -13px;
      }
    }

    /* Tablette : bottom nav seulement en portrait, sinon masquée */
    @media (min-width: 981px) and (max-width: 1024px) and (orientation: portrait) {
      .bottomNav { display: flex !important; }
      .app { padding-bottom: calc(var(--bnH) + env(safe-area-inset-bottom)); }
    }

    /* Pastille notif dans bottom nav — dans l'icône (span.bnIcon a position:relative) */
    .bnItem .bnIcon .notifDot {
      position: absolute !important;
      top: -4px !important;
      right: -6px !important;
      min-width: 10px !important;
      width: 10px !important;
      height: 10px !important;
      padding: 0 !important;
      border-radius: 50% !important;
      background: var(--danger-500) !important;
      border: 2px solid var(--card) !important;
      font-size: 0 !important;
      line-height: 0 !important;
    }
  

/* ===== (bloc 2) ===== */

    #pwaSplash {
      position: fixed; inset: 0; z-index: 99999;
      background: linear-gradient(135deg, #0891b2 0%, #0e7490 45%, #3b82f6 100%);
      display: none; align-items: center; justify-content: center;
      overflow: hidden;
      animation: pwaFadeIn .25s ease both;
    }
    html.pwa-standalone #pwaSplash { display: flex; }
    #pwaSplash.pwa-out { animation: pwaFadeOut .5s ease forwards; }
    #pwaSplash .worldMap {
      position: absolute; inset: 0;
      background-image: url('./img/world-cartoon.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: 140% auto;
      opacity: .18;
      animation: pwaMapDrift 12s ease-in-out infinite alternate;
    }
    #pwaSplash .halo {
      position: absolute;
      width: 340px; height: 340px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 65%);
      animation: pwaPulse 2.4s ease-in-out infinite;
    }
    #pwaSplash .logoWrap {
      position: relative;
      display: flex; flex-direction: column; align-items: center; gap: 18px;
      animation: pwaLogoIn .8s cubic-bezier(.2,.8,.2,1) both;
    }
    #pwaSplash .logoCircle {
      width: 128px; height: 128px;
      border-radius: 28px;
      background: #fff;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.18);
      animation: pwaLogoFloat 3s ease-in-out infinite;
    }
    #pwaSplash .logoCircle img { width: 86%; height: 86%; object-fit: contain; }
    #pwaSplash .brandText {
      color: #fff; font-weight: 800; font-size: 28px; letter-spacing: .5px;
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      text-shadow: 0 2px 12px rgba(0,0,0,.25);
    }
    #pwaSplash .tagline {
      color: rgba(255,255,255,.82); font-size: 13px; margin-top: -8px;
      font-family: system-ui, sans-serif;
    }
    #pwaSplash .dots {
      display: flex; gap: 6px; margin-top: 10px;
    }
    #pwaSplash .dots span {
      width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85);
      animation: pwaDot 1.2s ease-in-out infinite;
    }
    #pwaSplash .dots span:nth-child(2) { animation-delay: .15s; }
    #pwaSplash .dots span:nth-child(3) { animation-delay: .3s; }
    @keyframes pwaFadeIn { from { opacity: 0 } to { opacity: 1 } }
    @keyframes pwaFadeOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
    @keyframes pwaLogoIn {
      0% { opacity: 0; transform: translateY(20px) scale(.8); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes pwaLogoFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    @keyframes pwaPulse {
      0%, 100% { transform: scale(.9); opacity: .9 }
      50% { transform: scale(1.2); opacity: .4 }
    }
    @keyframes pwaMapDrift {
      0% { transform: scale(1) translateX(-20px); }
      100% { transform: scale(1.08) translateX(20px); }
    }
    @keyframes pwaDot {
      0%, 80%, 100% { transform: scale(.6); opacity: .5 }
      40% { transform: scale(1); opacity: 1 }
    }
  

/* ===== (bloc 3) ===== */

    .assistBubble { max-width:85%; padding:10px 14px; border-radius:16px; font-size:14px; line-height:1.5; animation: assistIn .25s ease-out; }
    .assistBubble.bot { background:var(--card); color:var(--text); border:1px solid var(--border); border-bottom-left-radius:4px; align-self:flex-start; box-shadow:0 1px 2px rgba(0,0,0,.05) }
    .assistBubble.user { background:linear-gradient(135deg,#0891b2,#3b82f6); color:#fff; border-bottom-right-radius:4px; align-self:flex-end }
    .assistChip { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; background:var(--surface); border:1px solid var(--border); border-radius:20px; font-size:13px; cursor:pointer; color:var(--text); transition:all .15s; font-weight:500 }
    .assistChip svg { width:15px; height:15px; flex-shrink:0; color:var(--brand) }
    .assistChip.back svg { color:var(--muted) }
    .assistChip:hover { background:rgba(8,145,178,.15); border-color:var(--brand); color:var(--brand) }
    .assistChip:hover svg { color:var(--brand) }
    .assistChip.back { background:var(--card); color:var(--muted) }
    .assistTyping { display:inline-flex; gap:3px; padding:12px 14px; background:var(--card); border:1px solid var(--border); border-radius:16px; border-bottom-left-radius:4px; align-self:flex-start; box-shadow:0 1px 2px rgba(0,0,0,.05) }
    .assistTyping span { width:6px; height:6px; border-radius:50%; background:#94a3b8; animation: assistDot 1.2s infinite }
    .assistTyping span:nth-child(2){ animation-delay:.2s } .assistTyping span:nth-child(3){ animation-delay:.4s }
    @keyframes assistDot { 0%,60%,100%{opacity:.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
    @keyframes assistIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

    /* ===================== MESSAGERIE (chat à fils) ===================== */
    .msgChat { max-width:520px; width:100%; padding:0; overflow:hidden; display:flex; flex-direction:column; height:min(680px,90vh) }
    .msgPane { display:flex; flex-direction:column; flex:1; min-height:0 }
    .msgHeader { display:flex; align-items:center; gap:10px; padding:13px 14px; flex-shrink:0;
      background:linear-gradient(135deg,#0891b2,#2563eb); color:#fff; box-shadow:0 2px 10px rgba(8,145,178,.25) }
    .msgHeadTitle { display:flex; align-items:center; gap:9px; font-weight:800; font-size:15px; flex:1; min-width:0;
      white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
    .msgX, .msgBack { background:rgba(255,255,255,.16); border:none; color:#fff; cursor:pointer; width:32px; height:32px;
      border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; transition:background .15s, transform .15s }
    .msgX:hover, .msgBack:hover { background:rgba(255,255,255,.3) }
    .msgX:active, .msgBack:active { transform:scale(.9) }

    /* Liste des conversations */
    .msgThreadList { flex:1; overflow-y:auto; padding:4px 0; background:var(--surface) }
    .msgEmpty { text-align:center; color:var(--muted); padding:40px 20px; font-size:13px; line-height:1.6 }
    .msgThreadRow { display:flex; align-items:center; gap:12px; padding:12px 14px; cursor:pointer; border-bottom:1px solid var(--border);
      transition:background .15s; background:var(--card) }
    .msgThreadRow:hover { background:rgba(8,145,178,.06) }
    .msgThreadRow:active { background:rgba(8,145,178,.12) }
    .msgAvatar { width:42px; height:42px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
      color:#fff; font-weight:800; font-size:16px; background:linear-gradient(135deg,#0891b2,#2563eb) }
    .msgRowMain { flex:1; min-width:0 }
    .msgRowTop { display:flex; align-items:center; justify-content:space-between; gap:8px }
    .msgRowName { font-weight:800; font-size:14px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
    .msgRowTime { font-size:11px; color:var(--muted); flex-shrink:0 }
    .msgRowSnippet { font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px }
    .msgRowSnippet.unread { color:var(--text); font-weight:700 }
    .msgUnreadPill { min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#ef4444; color:#fff; font-size:11px;
      font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; animation:msgPulse 1.8s ease-in-out infinite }
    @keyframes msgPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(239,68,68,.5) } 50%{ box-shadow:0 0 0 5px rgba(239,68,68,0) } }
    .msgNewBtn { flex-shrink:0; margin:10px; padding:12px; border:none; border-radius:14px; cursor:pointer; font-weight:800; font-size:14px;
      color:#fff; background:linear-gradient(135deg,#0891b2,#2563eb); box-shadow:0 6px 18px rgba(37, 99, 235,.3);
      display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:transform .15s, box-shadow .15s }
    .msgNewBtn:hover { transform:translateY(-1px); box-shadow:0 8px 22px rgba(37, 99, 235,.42) }
    .msgNewBtn:active { transform:scale(.98) }

    /* Fil de discussion */
    .msgThreadBody { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:8px; background:var(--surface) }
    .msgBubble { max-width:78%; padding:9px 13px; border-radius:16px; font-size:14px; line-height:1.45; word-wrap:break-word;
      white-space:pre-wrap; animation:msgIn .22s ease-out }
    .msgBubble.them { background:var(--card); color:var(--text); border:1px solid var(--border); border-bottom-left-radius:5px;
      align-self:flex-start; box-shadow:0 1px 2px rgba(0,0,0,.05) }
    .msgBubble.me { background:linear-gradient(135deg,#0891b2,#2563eb); color:#fff; border-bottom-right-radius:5px; align-self:flex-end;
      box-shadow:0 3px 10px rgba(37, 99, 235,.28) }
    .msgTime { font-size:10px; color:var(--muted); margin:-3px 4px 3px; align-self:flex-start }
    .msgTime.me { align-self:flex-end }
    /* Messagerie "complète" : liens cliquables, groupage, accusé d'envoi, vide soigné */
    .msgBubble a { color:inherit; text-decoration:underline; font-weight:700; word-break:break-all }
    .msgBubble.them a { color:var(--brand) }
    .msgBubble.grp { margin-bottom:-4px }
    .msgTick { margin-left:5px; font-weight:900; color:#0891b2 }
    .msgEmptyIcon { font-size:34px; margin-bottom:8px; opacity:.9 }
    .msgHeadAvatar { width:34px; height:34px; font-size:14px; background:rgba(255,255,255,.22); box-shadow:none; flex-shrink:0 }
    .msgDay { align-self:center; font-size:11px; color:var(--muted); background:var(--card); border:1px solid var(--border);
      padding:3px 10px; border-radius:999px; margin:6px 0 }
    @keyframes msgIn { from{opacity:0; transform:translateY(8px) scale(.96)} to{opacity:1; transform:translateY(0) scale(1)} }

    /* Composeur */
    .msgComposer { display:flex; align-items:flex-end; gap:8px; padding:10px 12px; flex-shrink:0; border-top:1px solid var(--border); background:var(--card) }
    .msgInput { flex:1; resize:none; max-height:120px; padding:10px 14px; border:1px solid var(--border); border-radius:20px;
      background:var(--surface); color:var(--text); font-size:14px; font-family:inherit; line-height:1.4; outline:none; transition:border-color .15s }
    .msgInput:focus { border-color:var(--brand) }
    .msgSend { width:42px; height:42px; flex-shrink:0; border:none; border-radius:50%; cursor:pointer; color:#fff;
      background:linear-gradient(135deg,#0891b2,#2563eb); display:inline-flex; align-items:center; justify-content:center;
      box-shadow:0 4px 14px rgba(37, 99, 235,.35); transition:transform .15s, box-shadow .15s }
    .msgSend:hover { transform:scale(1.06) }
    .msgSend:active { transform:scale(.9) }
    .msgSend:disabled { opacity:.5; cursor:default; transform:none }
    html[data-theme="dark"] .msgThreadRow { background:var(--card) }
    html[data-theme="dark"] .msgBubble.them { background:rgba(255,255,255,.06) }
    @media (prefers-reduced-motion: reduce) { .msgUnreadPill, .msgBubble { animation:none } }

    /* ===================== SLIDE D'ACTUALITÉ (blog) ===================== */
    .newsSlider{margin:10px 0 6px}
    .newsSlide{display:block;text-decoration:none;background:linear-gradient(135deg,rgba(8,145,178,.10),rgba(37, 99, 235,.10));border:1px solid var(--border);border-radius:12px;padding:9px 12px;transition:transform .15s,box-shadow .15s}
    .newsSlide:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(8,145,178,.12)}
    .newsSlide .k{font-size:9.5px;font-weight:900;letter-spacing:.04em;color:var(--brand);text-transform:uppercase;display:flex;align-items:center;gap:5px}
    .newsSlide .t{font-size:13px;font-weight:800;color:var(--text);margin-top:2px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .newsDots{display:flex;justify-content:center;gap:5px;margin-top:6px}
    .newsDots span{width:6px;height:6px;border-radius:50%;background:var(--border);transition:background .2s,width .2s}
    .newsDots span.on{background:var(--brand);width:16px;border-radius:3px}

    /* ===================== MODALE « MON COMPTE » — design cohérent + dopamine ===================== */
    /* Champs, labels et boutons IDENTIQUES pour login / inscription / 2FA (cohérence). */
    #modalAdmin form{display:flex;flex-direction:column;gap:2px}
    #modalAdmin .grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:2px}
    @media (max-width:470px){#modalAdmin .grid{grid-template-columns:1fr}}
    #modalAdmin .grid > div{display:flex;flex-direction:column}
    #modalAdmin label{font-weight:800;font-size:12.5px;color:var(--text);margin:0 0 5px;letter-spacing:-.01em}
    #modalAdmin input:not([type=checkbox]),
    #modalAdmin textarea,
    #modalAdmin select{
      width:100%;padding:12px 13px;border:1.5px solid var(--border);border-radius:12px;
      background:var(--surface);color:var(--text);font-size:14px;font-family:inherit;outline:none;
      transition:border-color .15s,box-shadow .15s,background .15s}
    #modalAdmin input:not([type=checkbox]):focus,
    #modalAdmin textarea:focus,
    #modalAdmin select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(8,145,178,.16)}
    #modalAdmin input::placeholder{color:var(--muted);opacity:.7}
    #modalAdmin .grid > div > span{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.35}
    #modalAdmin .pwdWrap{position:relative}
    #modalAdmin .pwdWrap input{padding-right:44px}
    #modalAdmin .pwdToggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--muted);cursor:pointer;padding:7px;border-radius:9px;display:inline-flex;align-items:center;transition:color .15s,background .15s}
    #modalAdmin .pwdToggle:hover{color:var(--brand);background:rgba(8,145,178,.08)}
    #modalAdmin .actions{display:flex;gap:10px;margin-top:16px}
    #modalAdmin .actions .btn{flex:1;justify-content:center;border-radius:12px;padding:12px;font-weight:800}
    #modalAdmin .actions .btn.primary{background:linear-gradient(135deg,#0891b2,#2563eb);border:none;color:#fff;box-shadow:0 7px 20px rgba(37, 99, 235,.32);transition:transform .15s,box-shadow .15s,filter .15s}
    #modalAdmin .actions .btn.primary:hover{transform:translateY(-1px);box-shadow:0 9px 26px rgba(37, 99, 235,.45)}
    #modalAdmin .actions .btn.primary:active{transform:scale(.98)}
    /* Header plus soigné */
    #modalAdmin .dialogHeader h2{font-size:19px;font-weight:900;letter-spacing:-.02em}
    #modalAdmin .dialogHeader p{font-size:12.5px}

    /* Inscription : carte CGU + barre de force du mot de passe */
    #formRegister > label{display:flex;align-items:flex-start;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:11px 12px;margin:10px 0 4px;font-size:12px;line-height:1.4;color:var(--muted);cursor:pointer;transition:border-color .15s}
    #formRegister > label:hover{border-color:var(--brand)}
    #formRegister > label input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand);cursor:pointer;flex-shrink:0;margin-top:1px}
    #formRegister #regPwdStrength{margin-top:7px}

    /* ---- Vue connectée (profil) : carte identité + menu d'actions moderne ---- */
    .acctCard{position:relative;overflow:hidden;padding:18px 16px;border-radius:18px;border:1px solid var(--border);
      background:linear-gradient(135deg,rgba(8,145,178,.12),rgba(37, 99, 235,.12));margin-bottom:14px}
    .acctCardTop{display:flex;align-items:center;gap:14px}
    .acctAvatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#0891b2,#2563eb);
      display:grid;place-items:center;color:#fff;font-weight:900;flex-shrink:0;box-shadow:0 6px 18px rgba(37, 99, 235,.35)}
    .acctName{font-weight:900;font-size:17px;letter-spacing:-.01em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .acctRole{display:inline-flex;align-items:center;gap:5px;margin-top:5px;font-size:11px;font-weight:800;color:var(--brand);
      background:rgba(8,145,178,.14);padding:3px 10px;border-radius:999px}
    .acctAssoc{font-size:11px;color:var(--muted);margin-top:4px}
    .acctAssoc:empty{display:none}
    .acctMenu{display:flex;flex-direction:column;gap:9px}
    .acctBtn{position:relative;display:flex;align-items:center;gap:11px;width:100%;padding:13px 15px;border-radius:13px;
      border:1.5px solid var(--border);background:var(--surface);color:var(--text);font-weight:700;font-size:14px;
      cursor:pointer;text-align:left;transition:transform .12s,box-shadow .15s,border-color .15s,background .15s}
    .acctBtn:hover{transform:translateY(-1px);border-color:var(--brand);box-shadow:0 6px 16px rgba(0,0,0,.08)}
    .acctBtn:active{transform:scale(.99)}
    .acctBtn.primary{background:linear-gradient(135deg,#0891b2,#2563eb);border-color:transparent;color:#fff;box-shadow:0 7px 20px rgba(37, 99, 235,.3)}
    .acctBtn.primary:hover{box-shadow:0 9px 26px rgba(37, 99, 235,.42);border-color:transparent}
    .acctBtn.admin{background:linear-gradient(135deg,#3b82f6,#4f46e5);border-color:transparent;color:#fff;box-shadow:0 7px 20px rgba(37, 99, 235,.32)}
    .acctBtn.admin:hover{box-shadow:0 9px 26px rgba(37, 99, 235,.45);border-color:transparent}
    .acctBtn.danger{color:#dc2626;border-color:rgba(220,38,38,.28);background:transparent;font-weight:700}
    .acctBtn.danger:hover{border-color:#dc2626;background:rgba(220,38,38,.06);box-shadow:none}
    .acctBtnArrow{margin-left:auto;opacity:.5;flex-shrink:0}
    .acctDot{position:absolute;top:9px;right:12px;min-width:18px;height:18px;border-radius:9px;background:#ef4444;color:#fff;
      font-size:10px;font-weight:900;line-height:18px;text-align:center;padding:0 4px}

    /* ===================== MESSAGE D'ERREUR ROUGE (login / inscription / 2FA) ===================== */
    /* Toujours afficher la VRAIE erreur, en rouge, de façon persistante (pas un toast fugace). */
    .formError{
      display:none;align-items:flex-start;gap:8px;margin:4px 0 2px;padding:10px 13px;border-radius:11px;
      background:rgba(220,38,38,.10);border:1.5px solid rgba(220,38,38,.34);color:#dc2626;
      font-size:13px;font-weight:600;line-height:1.4;text-align:left;
      animation:formErrIn .18s ease}
    .formError.on{display:flex}
    .formError::before{content:"⚠";font-size:15px;line-height:1.25;flex-shrink:0}
    @keyframes formErrIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

    /* ===================== COHÉRENCE GLOBALE (mobile + accessibilité) ===================== */
    /* Anti-zoom iOS : tout champ < 16px fait zoomer Safari au focus et casse la mise en page.
       On force 16px sur mobile pour TOUS les formulaires de la plateforme. */
    @media (max-width: 640px) {
      input:not([type=checkbox]):not([type=radio]),
      textarea,
      select { font-size: 16px; }
    }
    /* Zones tactiles : ≥ 40px pour les petits boutons (croix de modale, œil mot de passe). */
    .x { width: 42px; height: 42px; }
    #modalAdmin .pwdToggle { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .pwdToggle { min-width: 40px; min-height: 40px; }
    /* Focus clavier visible (accessibilité) — sans casser le style des champs déjà gérés. */
    a:focus-visible, button:focus-visible, .btn:focus-visible, .acctBtn:focus-visible,
    .chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
    /* Login : une seule colonne (identifiant + mot de passe empilés, plus lisible que 2 demi-colonnes). */
    #panelLogin .grid { grid-template-columns: 1fr; }
    /* Le bouton "Comment ça marche ?" ne doit pas s'afficher pendant l'inscription ou l'étape 2FA. */
    #modalAdmin .dialog:has(#panelRegister.open) #btnTutorial,
    #modalAdmin .dialog:has(#panel2FA.open) #btnTutorial { display: none; }

    /* ============================================================
       COUCHE DOPAMINE — micro-interactions, profondeur & récompense.
       Additive, mobile-safe, dark-aware, coupée sous prefers-reduced-motion.
       ============================================================ */

    /* — Boutons : ressort à l'appui + reflet spéculaire qui balaie au survol (desktop) — */
    .btn { position: relative; }
    .msgNewBtn { position: relative; overflow: hidden; }
    .btn:active:not(:disabled) { transform: scale(.96); }
    .btn.primary::after, .msgNewBtn::after {
      content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
      background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.38) 50%, transparent 66%);
      transform: translateX(-130%); opacity: 0;
    }
    @media (hover:hover) and (pointer:fine) {
      .btn.primary:hover::after, .msgNewBtn:hover::after { animation: dopaSheen .8s cubic-bezier(.22,.61,.36,1); }
    }
    @keyframes dopaSheen { 0%{transform:translateX(-130%);opacity:0} 18%{opacity:1} 100%{transform:translateX(130%);opacity:0} }
    /* Dégradé "vivant" qui respire lentement sur les CTA primaires (rappel du dégradé infini aimé). */
    .btn.primary, .msgNewBtn { background-size: 180% 180%; animation: dopaGrad 9s ease-in-out infinite; }
    @keyframes dopaGrad { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

    /* — Puces / filtres : pop satisfaisant à l'activation + halo dégradé — */
    .chip.active, .needTag:has(input:checked) { animation: dopaPop .34s cubic-bezier(.34,1.56,.64,1); }
    .chip.active { box-shadow: 0 6px 18px -6px rgba(37, 99, 235,.5), inset 0 1px 0 rgba(255,255,255,.25); }
    @keyframes dopaPop { 0%{transform:scale(.92)} 55%{transform:scale(1.1)} 100%{transform:scale(1)} }
    @media (hover:hover) and (pointer:fine) { .chip:not(.active):hover { transform: translateY(-1px); } }

    /* — Cartes : élévation en couches + filet de verre (profondeur premium, statique) — */
    .card:not(.section) {
      box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(15,23,42,.04), 0 10px 28px -14px rgba(15,23,42,.22);
    }
    html[data-theme="dark"] .card:not(.section) {
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.4), 0 16px 36px -16px rgba(0,0,0,.6);
    }

    /* — Champs : halo bi-teinte teal + violet au focus (« je t'écoute ») — */
    input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus {
      box-shadow: 0 0 0 3px rgba(8,145,178,.16), 0 0 0 4px rgba(37, 99, 235,.08), 0 4px 14px rgba(8,145,178,.08);
    }
    html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):focus,
    html[data-theme="dark"] textarea:focus, html[data-theme="dark"] select:focus {
      box-shadow: 0 0 0 3px rgba(34,211,238,.22), 0 0 0 4px rgba(59, 130, 246,.14);
    }

    /* — Toasts & modales : profondeur + liseré dégradé — */
    .toast::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; border-radius:3px 0 0 3px; background: var(--grad-primary); }
    .dialog { box-shadow: 0 40px 80px -24px rgba(15,23,42,.5), 0 12px 28px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.5); }
    html[data-theme="dark"] .dialog { box-shadow: 0 40px 90px -20px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07); }

    /* — Moment de récompense : anneau qui s'étend au succès — */
    .successBox { position: relative; }
    .successBox::after {
      content:""; position:absolute; inset:-4px; border-radius:20px; border:2px solid rgba(255,255,255,.6);
      animation: dopaRing 1s ease-out forwards; pointer-events:none;
    }
    @keyframes dopaRing { 0%{transform:scale(.92);opacity:.8} 100%{transform:scale(1.15);opacity:0} }

    /* — Utilitaire : texte dégradé — */
    .grad-text { background: var(--grad-primary); -webkit-background-clip:text; background-clip:text; color:transparent; }

    /* — Coupe-circuit strict pour les ajouts ci-dessus — */
    @media (prefers-reduced-motion: reduce) {
      .btn.primary, .msgNewBtn { animation: none; }
      .btn.primary::after, .msgNewBtn::after { display: none; }
      .chip.active, .needTag:has(input:checked) { animation: none; }
      .successBox::after { display: none; }
    }
  