﻿.mtl-rep184-marker { background: transparent !important; border: none !important; }
.mtl-rep184 { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #101828; border: 2px solid #ffd166; border-radius: 50%; font-size: 15px; }

/* ============================================================
   v272.188 — BOB 00h20 : nav — la pastille livraisons mesurée 161×13
   (preuve 📐 boîte noire 04:16) ET PAR-DESSUS le bouton GPS (x=9) et le
   recentrer (x=57) → « les boutons répondent pas au doigt » : les taps
   tombaient sur la pastille ! Cause : la règle v272.112 (padding:0 +
   line-height:1) l'aplatissait. Correction : vraie hauteur 38 px,
   padding horizontal, position SOUS la rangée (jamais dessus).
   ============================================================ */
#planner-nav-chip {
  min-height: 38px !important;
  padding: 0 14px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}
/* v272.191b : top SANS !important — le compteur est déplaçable, le drag
   écrit top inline qui doit gagner. Le centrage horizontal par défaut
   est posé en fin de feuille (v272.191b). */
.nav-mode #planner-nav-chip {
  top: calc(8.2rem + 48px + env(safe-area-inset-top, 0px));
}

/* FLUIDITÉ 3 (Bob : « encore plus fluide, encore un peu saccadé ») :
   la liste d'entraves rend ~2 160 cartes <article> et le navigateur les
   peint toutes. content-visibility : celles hors écran coûtent ~zéro.
   Vieux navigateurs : règle ignorée, aucun risque. */
#list article {
  content-visibility: auto;
  contain-intrinsic-size: auto 132px;
}

/* v272.189 — LE BOUTON 3D 🏔️ (map3d.js) : satellite + relief, dans le
   clan des map-fab (déplaçable au doigt comme les autres). */
#map3d-fab {
  position: absolute;
  border: 0;
  right: 12px;
  /* v272.223 (Bob : « l'iceberg était en haut à droite avant sur la
     map, il est rendu en bas ») — mesuré live : top:263px = MILIEU de
     la carte. Remonté en HAUT-DROITE (1rem), aligné sur la lune. */
  top: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(16,24,40,.9);
  color: #fff;
  font-size: 19px;
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: center;
}
#map3d-overlay { touch-action: none; }

/* v272.194 (Bob : « les 3 petits boutons blancs → un seul bouton 3D ») :
   CEINTURE DE SÉCURITÉ — même si map3d.js ne devait plus ajouter le
   NavigationControl, tout contrôle natif MapLibre (groupe blanc de
   zoom/boussole) dans la fenêtre 3D est masqué. Le pilotage 3D reste
   au doigt : pinch, drag, double-tap. */
#map3d-box .maplibregl-ctrl-group,
#map3d-box .maplibregl-ctrl-top-left,
#map3d-box .maplibregl-ctrl-top-right { display: none !important; }

/* v272.190 (Bob : « les 3 boutons bougent toujours pas au doigt ») —
   ROOT FIX : la décision scroll/pan du navigateur se prend au TOUCHSTART.
   La poser pendant pointerdown (v272.82) arrive trop tard sur certains
   navigateurs → pointercancel → le bouton « ne suit pas ». touch-action
   :none PERMANENT sur tout ce qui se glisse (les 3 du haut + ⬅ + 3D).
   Les STATIQUES (STOP, zoom) n'en ont pas besoin : ils ne glissent plus. */
.map-fab:not(.drag-locked), #gps-chip, #planner-nav-chip, #mtl-back {
  touch-action: none;
}

/* ═══════════════════════════════════════════════════════════
   v272.193 (07 oct, session express « avant de partir rouler »)
   ═══════════════════════════════════════════════════════════ */

/* 1. GPS-CHIP : meme taille que les autres boutons (40px, comme le
      🎯 recenter à ses côtés). Avant : 38px dans la pastille ≤899px,
      demande Bob « le bouton GPS la même grosseur que les autres ». */
#map .gps-chip, html.nav-mode #gps-chip {
  width: 40px !important;
  height: 40px !important;
}

/* 2. 3D : le bouton 🗺️ Plan (top-left) EMPÊTAIT sur les 2-3 boutons
      blancs maplibre (contrôles de zoom, aussi top-left) → tassé à
      droite ET rendu DÉPLAÇABLE (drag.js SEL_FAB v272.193). */
#map3d-mode {
  left: 64px !important;
  touch-action: none;
}

/* 3. Liste des virages : le ✕ tombait SOUS le 🧰 (right:.6rem, top:7rem,
      z1460) — même coin. Le panneau remonte AU-DESSUS du coffre, son ✕
      est à nouveau atteignable d'un tap. */
#nav-steps {
  bottom: 7.8rem;
  z-index: 1480 !important;
}

/* 4. ▲▼ ⭐ des adresses : le navigateur DÉSIDAIT scroll/pan au touchstart
      sur la carte (ancêtre #map) au lieu du clic sur la flèche — le bouton
      « bougeait pas ». touch-action:manipulation sur les rangées du
      panneau tournée : les taps ▲▼/⭐/✕ passent, le scroll des listes
      reste naturel. */
#route-planner .rp-stop,
#route-planner .rp-move,
#route-planner .rp-mv,
#route-planner .rp-skip,
#route-planner .rp-del {
  touch-action: manipulation;
}

/* 5. PEIGNE FIN .193b — la 4ᵉ pastille (🏁 ETA) sur 320px : la rangée
      de stats passe proprement sur 2 lignes au lieu de se squeezer ;
      le chip livraison avec nom de route se coupe en ellipsis (jamais
      hors écran), la barre 3D pareil (ETA VISIBLE = rue à droite…). */
.nav-banner .nav-stats { flex-wrap: wrap; row-gap: 0.15rem; }
/* v272.261 (Bob : « la pastille des infos de livraisons, pleine largeur
   du téléphone ou presque ») — PLEINE LARGEUR et le texte retombe sur
   2 lignes proprement (plus d'ellipsis qui coupe le nom de l'arrêt). */
#planner-nav-chip {
  max-width: calc(100vw - 1.1rem);
  white-space: normal;
  overflow: hidden;
}

/* ============================================================
   v272.197 — MODE CARTE SEULE (Bob : « tout disparaît, seulement
   la GROSSE carte avec les icônes partout, et un ✕ pour revenir »)
   La classe body.map-only masque TOUT autour de la carte ; la carte
   prend toute la fenêtre. Les éléments sont cachés par style inline
   AUSSI (double ceinture) — le CSS ici garantit le rendu même si un
   bloc est recréé dynamiquement pendant le mode.
   ============================================================ */
body.map-only > header,
body.map-only > footer,
body.map-only #sidebar,
body.map-only #ad-top-slot,
body.map-only #map-ads-slot,
body.map-only .map-topbar,
body.map-only #pothole-bar,
body.map-only #mtl-urgent,
body.map-only .map-ad,
body.map-only .licence-bar,
body.map-only .mobile-spot {
  display: none !important;
}
body.map-only main {
  display: block !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.map-only #map-wrap {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 3000 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
body.map-only #map {
  width: 100% !important;
  height: 100% !important;
}
/* Le ✕ de sortie — clan map-fab (#ffd166 / #101828), coin haut-gauche,
   z-index AU-DESSUS de la carte et de la 3D, jamais recouvert. */
#map-only-close {
  position: fixed !important;
  /* v272.214 (Bob, test live 08 oct : « le X en mode entrave il empiète
     sur toutes les boutons, ils sont mal placées au centre ») — le ✕ et
     le compteur tombaient AU MILIEU de l'écran : drag.js avale le souvenir
     data-fab-pos (le doigt a déplacé LE ✕ une fois, ce souvenir écrase
     notre place coin haut-gauche à chaque ouverture). CEINTURES :
     ① left/top SANS transform ni transform-centering → jamais décalé de
       la moitié de sa largeur (le transform hérité du drag faisait
       glisser le bouton vers le centre) ;
     ② remember transform = none !important → le drag ne peut plus le
       tordre ;
     ③ RIEN ne doit reconstruire le ✕ avec un id en double — la création
       reste unique dans enterMapOnly (garde existante).
     La règle v272.191b (places concentriques bas-centre) ne doit JAMAIS
     s'appliquer au ✕ : il n'est PAS membre de la famille drag.js */
  top: calc(0.6rem + env(safe-area-inset-top, 0px)) !important;
  left: 0.6rem !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5000 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #ffd166 !important;
  background: rgba(16, 24, 40, 0.92) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.6) !important;
  align-items: center !important;
  justify-content: center !important;
}
#map-only-close:active { transform: scale(0.94); }
/* v272.197b : le compteur « N entraves · N dans la vue » reste en carte
   seule (info utile) mais QUITTE le bas (chevauchait l'attribution et le
   zoom) — repositionné en haut au centre, sous le ✕. */
body.map-only #live-count {
  /* v272.214 (Bob : « les boutons sont mal placées au centre ») — le
     compteur subissait le même décentrage que le ✕ ; il SEUL accepte le
     centrage horizontal, MAIS écarté du ✕ (left 44px écarté pour ne
     jamais frotter l'octogone du ✕ en haut-gauche) */
  top: calc(1.15rem + env(safe-area-inset-top, 0px)) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  z-index: 4500 !important;
}

/* ============================================================
   v272.214 (Bob : « souvent je vois plus le timer en bas des sessions »)
   — LE MINI BADGE TEMPS : fix coin bas-GAUCHE, AU-DESSUS de la chip 🔑
   (qui reste un bouton de 34 px à left .55rem — le timer se place
   AU-DESSUS), toujours visible, jamais rangé, discreet (26 px, tous
   bords), chiffres lisibles. Vert = tranquille, rouge = ≤3 j.
   ============================================================ */
#lic-timer {
  display: none;
  position: fixed;
  left: 0.55rem;
  bottom: 3.7rem;
  z-index: 3090; /* SOUS le mini 🆔 (3100) pour ne pas se chevaucher, au-dessus de tout le reste */
  height: 26px;
  padding: 0 0.5rem;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: 800 0.72rem/1 var(--font-display, sans-serif);
  color: #fff;
  background: linear-gradient(160deg, #0f6b34, #12813f);
  border: 1.5px solid #065f46;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
#lic-timer.on { display: flex; }
#lic-timer.urgent { background: linear-gradient(160deg, #a11212, #c1121f); border-color: #7f0d0d; }
#lic-timer.life { background: linear-gradient(160deg, #43120a, #7a3312); border-color: #5c2513; }
#lic-timer:active { transform: scale(0.94); }
/* la carte seule garde le timer visible si la clé existe — reste utile */
body.map-only #lic-timer { display: none !important; } /* SOUS le ✕ carte-seule, pas de cohabitation */
/* v272.214 : le ✕ carte-seule n'est PAS un membre de la famille drag —
   AUCUN souvenir mtl_fab_pos ne doit le déplacer. Si un souvenir
   try-catch traîne sur l'id map-only-close, on le neutralise au boot. */
#map-only-close.fab-float,
#map-only-close.fab-float-page { display: flex !important; position: fixed !important; }
#map-only-close.fab-float { left: 0.6rem !important; top: calc(0.6rem + env(safe-area-inset-top, 0px)) !important; }
#map-only-close.fab-float-page { left: 0.6rem !important; top: calc(0.6rem + env(safe-area-inset-top, 0px)) !important; }
/* ═══════════════════════════════════════════════════════════
   v272.276 (Bob, 21 oct : « revois les positions par défaut des
   boutons pour un écran 320px, sans jamais couvrir la bannière nav,
   la carte ni le compteur ») — AUDIT MESURÉ des défauts NAV/LIVRAISON
   à 320 : le 📬 badge (top 4.9rem), le 🧰 #nav-tools (top 7rem, JS
   inline) et le 🎤 #fab-voice (top 5.5rem) tombaient EN PLEIN DANS le
   bandeau #nav-banner (108-131px) ; la pastille-compteur PLEINE
   LARGEUR (bas mesuré y=237 à 2 lignes, PAS 198) couvrait la rangée
   🛰️/🎯 posée à 9.25rem/12.5rem par v272.235 (1628px² et 360px² de
   recouvrement). CAUSE RACINE : drag.js applySaved (v272.274)
   ré-impose AU BOOT la pose mémoire de la colonne statique
   (fab-float + inset inline) MÊME en nav-mode. RAMPE DÉTERMINISTE
   ≤380px, SOUS la pastille, JAMAIS sur la bannière, JAMAIS sur le
   compteur, JAMAIS au centre de la carte (mesures live 320×645 et
   320×783) :
   • gauche : ⬅ 12.9rem · 🛰️+🎯 15.9rem · 🎤 19rem · 🧾 22.4rem
   • droite : 🧰 15.9rem (menu 19.2rem) · 📬 19.3rem · 📦 23rem (tournée)
     (mesure live : la pastille 2 lignes va à y=237, PAS 198 → aucun
     bouton droit avant 15.9rem, sinon le compteur couvre 🧰/📦)
   • zoom ± (nav/tour) : top calc(50% + 5.6rem) — sous la rampe,
     bord droit x≈271-311 : hors du STOP bas-centré (x 124-196).
   L'octogone ⏹ STOP reste bas-centré et le ▶ Naviguer au-dessus de lui
   (places voulues par Bob, v272.190/v272.250, PAS TOUCHÉES).
   Les boutons DÉTACHÉS par Bob (fab-float/-page) gardent leur pose :
   :not() sur toute la rampe, ET le garde-fou drag.js NAV_FAB_RAMPE ne
   restaure PAS la mémoire de ces 6 boutons quand nav-mode est actif
   (le doigt garde la main hors nav ET pendant la nav).
   ≥381px : l'ancienne maquette tient.
   ============================================================ */
  /* v272.280 : zone de retrait visible pendant le geste dans la maquette nav aussi. */
  html.nav-mode .fab-remove-drop { display: flex !important; }
  /* — gauche, sous la pastille-compteur — */
  /* Variante #map préfixée : même spécificité que les poses v272.235
     (#map #gps-chip etc., 2 ids) et DERNIERE dans la feuille → elle
     gagne la pose par défaut en nav. La variante sans #map reste en
     secours pour un bouton recréé hors de la carte. */
  html.nav-mode #map #mtl-back,
  html.nav-mode #mtl-back,
  html.nav-mode #map #mtl-back-hit,
  html.nav-mode #mtl-back-hit {
    top: calc(12.9rem + env(safe-area-inset-top, 0px)) !important;
  }
  /* v272.276b : PAS de :not(.fab-float) sur la rampe — la classe est
     ré-ajoutée par applySaved (v272.274) à chaque memorisation : elle
     excluait 🛰️/🎯 de la rampe et les renvoyait SUR le compteur. La
     pose du doigt reste MAÎTRESSE via fab-float-page (aucun de ces 6
     boutons de carte n'en a) et hors nav la mémoire est intacte. */
  html.nav-mode #map #gps-chip:not(.fab-float):not(.fab-float-page),
  html.nav-mode #gps-chip:not(.fab-float):not(.fab-float-page) {
    left: 0.55rem !important;
    right: auto !important;
    top: calc(15.9rem + env(safe-area-inset-top, 0px)) !important;
  }
  html.nav-mode #map #fab-recenter:not(.fab-float):not(.fab-float-page),
  html.nav-mode #fab-recenter:not(.fab-float):not(.fab-float-page) {
    left: calc(0.55rem + 48px) !important; /* rangée : 🎯 à DROITE de 🛰️ (v272.142) */
    right: auto !important;
    top: calc(15.9rem + env(safe-area-inset-top, 0px)) !important;
  }
  html.nav-mode #map #fab-voice:not(.fab-float):not(.fab-float-page),
  html.nav-mode #fab-voice:not(.fab-float):not(.fab-float-page) {
    left: 0.7rem !important;
    right: auto !important;
    bottom: auto !important;
    top: calc(19rem + env(safe-area-inset-top, 0px)) !important;
  }
  html.nav-mode #map #nav-list-fab:not(.fab-float):not(.fab-float-page),
  html.nav-mode #nav-list-fab:not(.fab-float):not(.fab-float-page) {
    right: auto !important;
    bottom: auto !important;
    left: 0.6rem !important;
    top: calc(22.4rem + env(safe-area-inset-top, 0px)) !important;
  }
  /* — droite, sous la pastille-compteur — */
  html.nav-mode #nav-tools {
    top: calc(15.9rem + env(safe-area-inset-top, 0px)) !important;
    /* v272.378 (boutons eparpilles) : la rampe ne donnait QUE le top — sans memoire du doigt ni base JS (ecrasee par le garde), le coffre tombait a x=0. Droite explicite, comme sa base right:0.6rem. */
    right: 0.6rem !important;
    left: auto !important;
  }
  html.nav-mode #nav-tools-menu {
    top: calc(19.2rem + env(safe-area-inset-top, 0px)) !important;
  }
  html.nav-mode #map .buffy-badge {
    top: calc(19.3rem + env(safe-area-inset-top, 0px)) !important;
    right: 0.7rem !important;
  }
  html.nav-mode.tour-on #map #fab-planner,
  html.nav-mode.tour-on #fab-planner {
    right: 0.7rem !important;
    left: auto !important;
    top: calc(23rem + env(safe-area-inset-top, 0px)) !important;
  }
  /* — zoom ± : bas-droite, sous la rampe, jamais sur le compteur — */
  html.nav-mode #map #mtl-zoom-h,
  html.nav-mode #mtl-zoom-h,
  html.tour-on #map #mtl-zoom-h,
  html.tour-on #mtl-zoom-h {
    top: calc(50% + 5.6rem) !important;
  }
}

/* v272.280 — positions mobiles de départ stables sous la carte.
   Les FAB visibles restent dans #map ; les règles ne visent que les boutons
   non déplacés. La rangée des outils de carte n'a pas de hauteur en nav,
   mais ses boutons ne sont pas des FAB mobiles de la carte. */
@media (max-width: 899px) {
  html:not(.nav-mode) #map #map-only-fab:not(.fab-float):not(.fab-float-page),
  html:not(.nav-mode) #map #theme-toggle:not(.fab-float):not(.fab-float-page),
  html:not(.nav-mode) #map #fab-fullscreen:not(.fab-float):not(.fab-float-page),
  html:not(.nav-mode) #map #fab-recenter:not(.fab-float):not(.fab-float-page),
  html:not(.nav-mode) #map #gps-chip:not(.fab-float):not(.fab-float-page) {
    left: 0.65rem !important;
    right: auto !important;
    transform: none !important;
  }
  html:not(.nav-mode) #map #map-only-fab:not(.fab-float):not(.fab-float-page) { top: 0.65rem !important; }
  html:not(.nav-mode) #map #theme-toggle:not(.fab-float):not(.fab-float-page) { top: 3.45rem !important; }
  html:not(.nav-mode) #map #fab-fullscreen:not(.fab-float):not(.fab-float-page) { top: 6.25rem !important; }
  html:not(.nav-mode) #map #fab-recenter:not(.fab-float):not(.fab-float-page) { top: 9.05rem !important; }
  html:not(.nav-mode) #map #gps-chip:not(.fab-float):not(.fab-float-page) { top: 11.85rem !important; }
  html:not(.nav-mode) #mtl-zoom-h:not(.fab-float):not(.fab-float-page) {
    top: 50% !important;
    right: 0.55rem !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}

/* v272.280b — si le geste annule la capture du pointeur, le navigateur
   peut envoyer pointercancel sans pointerup. Terminer proprement dans ce
   cas garde la dernière pose réelle (ou conserve un tap si < 12 px). */

/* Pastille de tournée : presque pleine largeur, deux lignes non tronquées.
   Aucun left/top fixé ici : le drag reste libre et sa mémoire est intacte.
   bottom:auto annule le bottom CSS hérité : top + bottom ensemble étiraient
   la pastille sur ~400 px au lieu de laisser sa hauteur suivre le texte. */
#planner-nav-chip {
  box-sizing: border-box !important;
  width: min(calc(100vw - 1rem), 420px) !important;
  max-width: calc(100vw - 1rem) !important;
  min-height: 3.25rem !important;
  height: auto !important;
  bottom: auto !important;
  padding: 0.6rem 1rem !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: visible !important;
  justify-content: center !important;
  text-align: center !important;
}
#planner-nav-chip.fab-float-page {
  display: flex !important;
  box-sizing: border-box !important;
  width: min(calc(100vw - 1rem), 420px) !important;
  max-width: calc(100vw - 1rem) !important;
  min-height: 3.25rem !important;
  height: auto !important;
  bottom: auto !important;
}
/* Le toast se crée avant nav-mode (la route calculée déclenche
   _startNavCore juste après driveTo). Le JS le marque une fois le mode
   réellement posé; cette règle finale évite le recouvrement de la bannière. */
html.nav-mode #route-ready,
html.nav-mode #route-ready.rr-low {
  top: auto !important;
  bottom: calc(10.4rem + env(safe-area-inset-bottom, 0px)) !important;
  left: 0.6rem !important;
  right: calc(1.5rem + 84px) !important;
  z-index: 1490 !important;
  transform: none !important;
  width: auto !important;
  max-width: min(92vw, 420px) !important;
  animation-name: routeReadyInLow !important;
}
@media (max-width: 380px) {
  html.nav-mode #route-ready,
  html.nav-mode #route-ready.rr-low {
    left: 0.55rem !important;
    right: 5.5rem !important;
    bottom: calc(10.4rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
body > #rep-cycler.fab-float-page {
  box-sizing: border-box !important;
  width: calc(100vw - 10px) !important;
  max-width: calc(100vw - 10px) !important;
  min-height: 45px !important;
  height: auto !important;
  justify-content: center !important;
}
body > #rep-cycler.fab-float-page .rc-label { text-align: center; }
/* Defilement des 4 signalements dans la pastille noire (retour v21) */
body > #rep-cycler.fab-float-page .rc-label {
  flex: 1 1 auto !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-align: left !important;
}
#rep-cycler .rc-scroll {
  display: inline-block;
  white-space: nowrap;
  padding-right: 2.2rem;
  animation: rc-scroll 10s linear infinite;
}
@keyframes rc-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  #rep-cycler .rc-scroll { animation: none; }
}
/* v272.386 (Bob) : sur telephone la pastille ne DEFILENT plus, elle TOURNE
   (reports.js) — le libelle reste lisible en entier. */
@media (max-width: 560px) {
  #rep-cycler .rc-scroll { animation: none; }
}
/* v272.386 (Bob) : sur TABLETTE (561-899px) le texte DEFILE seul (marquee
   7 s, reports.js ajoute une phrase a chaque signalement pour remplir). */
@media (min-width: 561px) and (max-width: 899px) {
  #rep-cycler .rc-scroll { animation: rc-scroll 7s linear infinite; }
}
#rep184-row .rep184-btn { position: relative; }

/* v272.280 : la zone « Enlever / Remove » n'apparaît que pendant un drag.
   Fixed dans la fenêtre pour fonctionner en mode carte, navigation et 3D. */
.fab-remove-drop {
  position: fixed !important;
  z-index: 10000 !important;
  left: 50% !important;
  bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) translateY(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-width: 142px !important;
  min-height: 48px !important;
  padding: 0.45rem 1.1rem !important;
  box-sizing: border-box !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #d93025 !important;
  color: #fff !important;
  font: 800 0.95rem/1 var(--font-display, inherit) !important;
  box-shadow: 0 5px 22px rgba(0,0,0,.38) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .15s ease, transform .15s ease, background-color .15s ease !important;
}
.fab-remove-drop.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}
.fab-remove-drop.is-over { background: #9f1d18 !important; transform: translateX(-50%) scale(1.07) !important; }
.fab-removed { display: none !important; visibility: hidden !important; pointer-events: none !important; }
#hm-removed-fabs[hidden] { display: none !important; }
#hm-removed-fabs .hm-removed-row::after { content: "↩"; margin-left: auto; opacity: .75; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .fab-remove-drop { transition: none !important; } }

/* Infos de conduite centrées dans le bandeau, sans toucher à la place
   ni au comportement des actions de navigation. */
.nav-banner .nav-turn {
  justify-content: center !important;
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
  text-align: center !important;
}
.nav-banner .nav-ico { flex: 0 0 auto !important; }
.nav-banner .nav-road {
  flex: 0 1 auto !important;
  text-align: center !important;
}
.nav-banner .nav-dist { flex: 0 0 auto !important; }
.nav-banner .nav-stats {
  justify-content: center !important;
  text-align: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0.4rem !important;
  padding-right: 0.4rem !important;
}
.nav-banner .nav-stats span { flex: 0 1 auto !important; }
.map-fab:not(.drag-locked),
#gps-chip,
#planner-nav-chip,
#nav-go-btn,
#nav-stop-fab,
#mtl-zoom-h,
#rep-cycler,
.nav-banner .nav-mini {
  touch-action: none !important;
}

/* ============================================================
   v272.282 — BOB, TOURNÉE DU 23 OCTOBRE MATIN (boîte noire) :
   1) LA PASTILLE COMPTEUR N'EST DÉPLAÇABLE QUE SUR LA TABLETTE —
      cause : la tablette passe par la voie tactile (touchmove), le
      téléphone par les PointerEvent → le pointercancel du scroll
      volait le geste. touch-action:none figé en CSS règle ça pour
      de bon (zoom/stop l'ont déjà depuis v272.82).
   2) ANTI-DELETE DU PANNEAU ⏹ ARRÊT (code drag.js) + boutons
      ☰1/☰2 en haut de la carte + surfaces d'appui agrandies.
   ============================================================ */
#planner-nav-chip {
  touch-action: none;
}
#planner-nav-chip[hidden] { touch-action: auto; }

/* 3) SURFACE D'APPLUS AGRANDIE : un halo transparent de 8px autour des
   boutons attrape le doigt qui arrive un peu à côté (Bob : « il faut
   mettre les boutons plus facile à déplacer »). Le cadre du ::after
   fait partie du bouton pour le hit-test → pointerdown est reçu.
   Aucun changement visuel (fond transparent). */
.map-fab::after,
#gps-chip::after,
#mtl-back::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: transparent;
}
#nav-stop-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  background: transparent;
}

/* v272.301 (25 oct) — CORRECTIF CATASTROPHE EN-TÊTE (preuve live 600x806 :
   document.elementFromPoint(348,29) renvoyait BUTTON#fab-more au lieu du
   sélecteur QUÉBEC). Cause : #fab-more est STATIC dans l'en-tête, donc
   son halo d'appui .map-fab::after (position:absolute, inset:-8px) se
   calait sur le conteneur positionné le plus proche = l'EN-TÊTE sticky
   → halo mesuré 616x127 px couvrant TOUTE la rangée du haut : chaque tap
   sur LE LOGO, MENU-1 ou QUÉBEC atterrissait sur menu-2 (« tout ouvre
   le même menu », zéro tap province-select en boîte noire sur 25 h).
   position:relative sur les map-fabs posés dans l'en-tête rend le halo
   local au bouton (85x38 + 8 px, comme prévu par v272.282 pour les FABs
   de carte, qui eux sont positionnés déjà). Aucun changement visuel. */
header .map-fab { position: relative; }

/* 4) LES DEUX BOUTONS MENU ☰1 (gauche) ☰2 (droite) — octogones,
   visibles SEULEMENT en tournée (livraison) et pendant la nav : ce
   sont les portes menu-1 / menu-2 accessibles SANS fermer la course. */
.fab-menu-fab::after { content: ""; position: absolute; inset: -8px; background: transparent; }
#fab-menu-left,
#fab-menu-right {
  display: none !important;
  position: fixed;
  z-index: 2150;
  width: 46px !important;
  height: 46px !important;
  min-width: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  font-weight: 800;
  background: var(--panel, #fff) !important;
  color: var(--ink, #101828) !important;
  border: 1.5px solid var(--line-strong, #d7dbe3) !important;
  box-shadow: 0 6px 18px -6px rgba(16, 24, 40, 0.35);
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
html.tour-on #fab-menu-left,
html.tour-on #fab-menu-right,
html.nav-mode #fab-menu-left,
html.nav-mode #fab-menu-right {
  display: flex !important;
}
/* Hors nav (livraison ARRÊT icône) : les deux coins HAUTS de la carte.
   À droite, on laisse le 🏔️ 3D (right 0.7rem, top 0.7rem) respirer. */
html.tour-on:not(.nav-mode) #fab-menu-left.fab-menu-fab {
  left: 0.6rem !important;
  right: auto !important;
  top: 0.6rem !important;
}
html.tour-on:not(.nav-mode) #fab-menu-right.fab-menu-fab {
  right: 4.1rem !important;
  left: auto !important;
  top: 0.6rem !important;
}
/* En nav : SOUS la pastille compteur (la bannière + pastille occupent
   le haut), avant la rampe ⬅ (12.9rem) — colonne gauche dégagée.
   !important : la pile générique .nav-mode .map-fab (right 0.55rem)
   ne doit PAS re-patcher mes deux octogones à droite. */
html.nav-mode #fab-menu-left.fab-menu-fab {
  left: 0.6rem !important;
  right: auto !important;
  top: calc(9rem + env(safe-area-inset-top, 0px)) !important;
  z-index: 2150 !important;
}
html.nav-mode #fab-menu-right.fab-menu-fab {
  right: 0.6rem !important;
  left: auto !important;
  top: calc(9rem + env(safe-area-inset-top, 0px)) !important;
  z-index: 2150 !important;
}
/* Vitesse d'appui : jamais écrasée par la taille 34px de la pile nav. */
html.nav-mode #fab-menu-left.fab-menu-fab,
html.nav-mode #fab-menu-right.fab-menu-fab,
html.tour-on:not(.nav-mode) #fab-menu-left.fab-menu-fab,
html.tour-on:not(.nav-mode) #fab-menu-right.fab-menu-fab {
  width: 46px !important;
  height: 46px !important;
}

/* 5) MENUS ANCRÉS À LA FENÊTRE pendant la nav / tournée : ils ne
   dépendent plus d'un ancêtre display:none (header / map-topbar). */
/* Bureau / tablette MAQUETTE GRANDE : le menu-1 était relatif au
   .header-tools — retaché près du coin droit, même bulle. */
@media (min-width: 900px) {
  .header-more-menu.mm-in-map,
  .mobile-actions.mm-in-map {
    position: fixed !important;
    top: 4.6rem !important;
    right: 0.8rem !important;
    left: auto !important;
    width: 320px !important;
    max-height: calc(100vh - 7rem) !important;
    overflow-y: auto !important;
    z-index: 3000 !important;
    /* v272.297 (Bob : « les images que tu montres sont horribles, boutons
       mal placés partout ») — MESURE LIVE 987x770 : en mm-in-map ≥900px,
       le menu-1 perdait son panneau : background reste transparent
       (rgba(0,0,0,0)) → ses rangées flottaient SUR la carte et les pubs.
       Désormais le skin menu-2 (panneau opaque, bord, rayon, ombre) est
       posé DANS ce bloc : chaque état ≥900px affiche un panneau plein. */
    background: var(--panel, #fff) !important;
    border: 1px solid var(--line, #e4e7ec) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px -12px rgba(16, 24, 40, 0.35) !important;
  }
}
@media (max-width: 899px) {
  /* v272.282 : en nav, les deux menus descendent sous la pastille-compteur
     (top 5.7rem de la maquette v272.237 passerait DERRIÈRE la bannière). */
  /* v272.284 : sélecteur renforcé (#id) — l'ancien (.header-more-menu.
     mm-in-map = 0,3,1) perdait contre #header-more-menu (1,0,0) :
     le menu restait à top 5.7rem en nav, SUR la pastille compteur. */
  html.nav-mode #header-more-menu.mm-in-map,
  html.nav-mode #mobile-actions.mm-in-map {
    top: calc(13.4rem + env(safe-area-inset-top, 0px)) !important;
  }
}

/* ============================================================
   v272.284 (Bob : « refais les menus menu-1 et menu-2 dans le même
   design, le X à la même place, des belles pastilles à l'intérieur,
   un beau texte qui ne chevauche et n'empiète pas ») — UN SEUL skin
   pour les deux menus, appliqué DERRIÈRE tout le reste (cette feuille
   charge en dernier) → le menu-1 et le menu-2 sont identiques dans
   TOUS les modes : accueil, navigation, livraison. Le HTML ne bouge
   pas (aucun handler cassé) : uniquement l'ordonnancement déjà rentré
   dans index.html + l'habillage ici.
   ============================================================ */
#header-more-menu, #mobile-actions {
  padding: 0.45rem 0.5rem 0.6rem !important;
}
/* --- Titre des menus : bandeau identique (menu-1 en hérite d'un
   ::before, menu-2 a son .ma-title natif) --- */
#header-more-menu::before {
  content: "Menu · Réglages";
  display: block;
  min-height: 2.4rem;
  align-self: center;
  font: 800 0.72rem/1 var(--font-display, inherit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft, #667085);
  padding: 0.45rem 0.55rem 0.35rem;
}
.mobile-actions > .ma-title {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  font: 800 0.72rem/1 var(--font-display, inherit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft, #667085);
  padding: 0.45rem 0.55rem 0.35rem;
}
/* --- LE X : pastille ronde rouge A CHEVAL sur le coin haut-droit du
   panneau, moitie AU-DESSUS (v272.386, Bob photo tablette 15 nov : le X
   « pas encore assez haut », telephone + tablette). fixed = meme
   referentiel que le panneau (fixed lui aussi) : le X suit son panneau,
   reste visible quand le menu defile. DOM inchange (handlers + drag
   intacts), seule la peinture bouge. --- */
#header-more-menu > .hm-close,
#mobile-actions > .ma-close {
  position: fixed !important;
  float: none !important;
  left: auto !important;
  right: calc(0.7rem + 2px) !important;
  top: calc(5.7rem - 21px) !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #e2492f !important;
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px -4px rgba(226, 73, 47, 0.55) !important;
  z-index: 3005 !important;
  cursor: pointer !important;
}
/* NAV <=899 : les panneaux descendent a 13.4rem, le X suit. */
@media (max-width: 899px) {
  html.nav-mode #header-more-menu > .hm-close,
  html.nav-mode #mobile-actions > .ma-close {
    top: calc(13.4rem - 21px) !important;
  }
}
/* >=900 (mm-in-map) : panneau 320px, top 4.6rem, right 0.8rem. */
@media (min-width: 900px) {
  #header-more-menu.mm-in-map > .hm-close,
  #mobile-actions.mm-in-map > .ma-close {
    top: calc(4.6rem - 21px) !important;
    right: calc(0.8rem + 2px) !important;
  }
}
#header-more-menu > .hm-close span,
#mobile-actions > .ma-close span {
  /* libellé gardé pour les lecteurs d'écran, caché à l'écran : le X rond
     reste carré et ne pousse PAS le titre (zéro empiètement). */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#header-more-menu > .hm-close:active,
#mobile-actions > .ma-close:active { transform: scale(0.94); }
/* --- Rangées : PASTILLES pleines (boîtes douces), même rayon, même
   hauteur tactile 46px+, texte sans troncature ni débordement --- */
#header-more-menu .hm-row:not(.hm-close),
#mobile-actions .ma-row:not(.ma-close) {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  width: 100% !important;
  min-height: 47px !important;
  box-sizing: border-box !important;
  background: var(--panel-2, rgba(102, 112, 133, 0.08)) !important;
  border: 1px solid var(--line, #e4e7ec) !important;
  border-radius: 13px !important;
  padding: 0.5rem 0.65rem !important;
  margin: 0 0 0.3rem 0 !important;
  font-weight: 600 !important;
  color: var(--ink, #101828) !important;
  text-align: left !important;
  cursor: pointer !important;
}
#header-more-menu .hm-row span,
#mobile-actions .ma-row span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.25;
}
#header-more-menu a.hm-row,
#mobile-actions a.ma-row { text-decoration: none !important; }
#header-more-menu .hm-row:active,
#mobile-actions .ma-row:active { background: rgba(226, 73, 47, 0.10) !important; }
/* --- Badges d'état : pastilles vertes/grises propres, jamais écrasées --- */
#header-more-menu .hm-row b,
#mobile-actions .ma-row .ma-state,
#mobile-actions .ma-row b {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #1c8a4c !important;
  background: rgba(28, 138, 76, 0.12) !important;
  border-radius: 999px !important;
  padding: 0.18rem 0.5rem !important;
  white-space: nowrap !important;
}
#mobile-actions .ma-row.off .ma-state,
#mobile-actions .ma-row b#ma-urgent-state:not([data-on]) { color: var(--ink-soft, #667085) !important; background: rgba(102, 112, 133, 0.12) !important; }
/* --- Organisation : rangées classification, séparateur discret --- */
#header-more-menu .hm-sep,
#mobile-actions .ma-sep {
  height: 1px !important;
  background: var(--line, #e4e7ec) !important;
  margin: 0.35rem 0.55rem 0.45rem !important;
  opacity: 0.7;
}
#header-more-menu .hm-lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.05rem 0 0.2rem !important;
}
#header-more-menu .hm-lang .hm-row { margin: 0 !important; }
/* v272.284b (capture Bob) : la section MODES (Entraves · GPS · Mixte ·
   Nav) écrasée par la grille 2 colonnes — retour FLEX pleine largeur :
   les 4 pastilles tiennent sur une rangée, lisibles. */
#mobile-actions .ma-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.15rem 0.35rem 0.45rem;
}
#mobile-actions .ma-row:focus-visible { outline: 2px solid var(--accent, #e2492f); outline-offset: 1px; }
/* --- Version : rangée discrète, pas de bordure pointillée criarde --- */
#mobile-actions #ma-version,
#header-more-menu #hm-version {
  opacity: 0.75;
  font-size: 0.8rem !important;
}
/* --- Sombre : les pastilles suivent le thème (déjà via vars) + lisible --- */
html.dark #header-more-menu .hm-row,
html.dark #mobile-actions .ma-row:not(.ma-close) {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f3f4f6 !important;
}
html.dark #header-more-menu > .hm-close,
html.dark #mobile-actions > .ma-close { background: #e2492f !important; color: #fff !important; }
/* v272.284 : en NAV, le menu tient SOUS la pastille compteur —
   max-height = hauteur de l'écran − (top 13.4rem + pastille 4.1rem +
   61px de pastille + 8px de marge) : aucun chevauchement, mesuré. */
html.nav-mode #header-more-menu,
html.nav-mode #mobile-actions {
  max-height: calc(100vh - 13.4rem - 4.1rem - 61px - 8px) !important;
}
/* v272.284 : les rangées fmm-grid de la section « LA CARTE » du
   menu-1 prennent le MÊME skin pastille que toutes les rangées (une
   seule famille visuelle, aucun texte tronqué). */
#header-more-menu .fmm-grid {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  width: 100% !important;
  min-height: 47px !important;
  box-sizing: border-box !important;
  background: var(--panel-2, rgba(102, 112, 133, 0.08)) !important;
  border: 1px solid var(--line, #e4e7ec) !important;
  border-radius: 13px !important;
  padding: 0.5rem 0.65rem !important;
  margin: 0 0 0.3rem 0 !important;
  color: var(--ink, #101828) !important;
  cursor: pointer !important;
}
#header-more-menu .fmm-grid:active { background: rgba(226, 73, 47, 0.10) !important; }
html.dark #header-more-menu .fmm-grid {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f3f4f6 !important;
}
/* v272.284b : la rangée SEGMENTÉE des modes (Entraves · GPS · Mixte ·
   Nav) redevient pleine largeur.lu et tactile (44 px min) sur téléphone
   — chaque segment occupe 1/4, texte lisible, aucun écrasement. */
#mobile-actions [data-ma="mode"] .mode-seg,
#mobile-actions [data-ma="mode"] .mode-seg .mode-seg-inner { width: 100%; }
#mobile-actions [data-ma="mode"] .mode-seg button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 44px !important;
  font-size: 0.78rem !important;
  padding-inline: 0.3rem !important;
  white-space: nowrap !important;
}
#mobile-actions [data-ma="mode"] .mode-seg button span { display: inline !important; }
/* v272.284c : la SECTION des modes est contraite à ~216px par une
   règle antérieure — pleine largeur forcée (le panel fait 298px). */
#mobile-actions .ma-section[data-ma="mode"] {
  width: 100% !important;
  box-sizing: border-box !important;
}
#mobile-actions .ma-section[data-ma="mode"] .mode-seg {
  width: 100% !important;
}

/* ============================================================
   v272.286 (Bob, 23 oct : 4 retouches du matin)
   ============================================================ */
/* 1) LA LUNE : RONDE partout (Bob : « le bouton lune est octogone au
   lieu de rond ») — elle quitte la famille octogonale : l'écran
   320px la voit sur la carte, l'écran large dans l'en-tête. */
.theme-toggle,
#theme-toggle,
#map .theme-toggle,
.fab-float.theme-toggle,
.fab-float-page.theme-toggle {
  clip-path: none !important;
  border-radius: 999px !important;
}
/* 2) DRAG CONFORT (Bob : « mets les boutons plus facile à déplacer ») :
   pendant la glissade le bouton prend un HALO visible et passe
   AU-DESSUS de tout (la pose left/top reste la seule source de
   position — le halo ne déplace rien). */
.dragging {
  z-index: 5600 !important;
  box-shadow: 0 10px 26px -6px rgba(16, 24, 40, 0.55), 0 0 0 10px rgba(226, 73, 47, 0.14) !important;
  cursor: grabbing !important;
  transition: box-shadow 0.12s ease !important;
}
/* 3) EN-TÊTE 320px : menu-1 · Québec · menu-2 CENTRÉS à côté de la
   pastille logo (Bob : « centrer le menu-1, la pastille des provinces
   et le menu-2 ») — les deux marges auto répartissent l'espace
   restant EGALEMENT autour du trio. */
@media (max-width: 899px) {
  .header-legacy { margin-left: auto !important; }
  .header-tools { margin-right: auto !important; }
}
/* 4) MENU-1 : même COULEUR que menu-2 (Bob) — pastille orange
   identique, texte blanc, même forme ronde ; le libellé reste
   « menu-1 » pour differencier dans le titre. */
@media (max-width: 560px) {
  #header-more {
    background: #f29900 !important;
    color: #fff !important;
    border: 2px outset #000 !important;
    min-height: 30px !important;
    padding: 0 0.42rem !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-radius: 999px !important;
  }
  #header-more b { font-weight: 800 !important; }
}

/* ============================================================
   v272.286 (suite, 23 oct PM) — RANGÉE 1 QUI TIENT EN 320px :
   mesuré en direct (350+320 : le trio wrappait). Compacts : logo
   96px · menu-1 53px · Québec 72px · menu-2 58px = 279px + gaps
   auto → TIENT sur la rangée du logo, centré. (Les tailles
   antérieures 0.8rem cramponnaient la rangée → menu-2 tombait
   sous menu-1, capture du 23 oct 13h05.)
   ============================================================ */
@media (max-width: 560px) {
  header .brand { margin-right: 0 !important; }
  header .brand .logo {
    font-size: 0.74rem !important;
    padding: 2px 3px 2px !important;
    border: 2px outset #000 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
  }
  #header-more, #fab-more.header-menu2 {
    height: 40px !important;
    min-height: 40px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    font-size: 0.68rem !important;
    border: 2px outset #000 !important;
  }
  /* v272.286 : display EXPLICITE — sur cache froid la règle de base
     #fab-more { display:none } (mobile-actions.css) gagnait selon
     l'ordre des feuilles et le menu-2 disparaissait de la rangée 1. */
  #fab-more.header-menu2 { display: inline-flex !important; }
  .header-legacy .header-more { align-self: center !important; }
}

/* ============================================================
   v272.287 (23 oct PM) — BOUTONS PLUS FACILES À DÉPLACER ET POSER
   (Bob, retour après son test du vieux cache 285)
   ============================================================ */
/* 1) RETOUR TACTILE LE PREMIER PIXEL : dès le doigt, le bouton se
   réveille (halo + léger grossissement). Classe posée/retirée par
   drag.js au pointerdown et pointerup — aucun effet sur le tap. */
.drag-press {
  box-shadow: 0 6px 18px -6px rgba(16, 24, 40, 0.55), 0 0 0 8px rgba(226, 73, 47, 0.12) !important;
  transform: scale(1.08);
  transition: box-shadow 0.1s ease, transform 0.1s ease;
  z-index: 5600 !important; /* toujours AU-DESSUS de tout dès le contact */
}
.drag-press.dragging { transform: none; } /* en glissade : pas de scale, pose exacte */
.drag-press::after { content: none !important; } /* jamais de décoration parasite */

/* ============================================================
   v272.288 (23 oct PM bis, Bob : « pourquoi les deux menus sont
   identiques ») — REDISTINCTION des deux menus :
   menu-2 (Options de la carte) garde le skin PASTILLE (rangées-boîtes
   v272.284) ; menu-1 (Réglages) redevient une LISTE CLASSIQUE compacte
   (avant 284) : rangées transparentes, fines, hover discret. Le menu
   sombre suit le thème via les variables. Le X rond et le titre restent
   en haut de chaque panneau (le X était la demande 272.286). */
#header-more-menu .hm-row:not(.hm-close),
#header-more-menu .fmm-grid {
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  padding: 0.4rem 0.55rem !important;
  margin: 0 !important;
  gap: 0.5rem !important;
  color: var(--ink, #101828) !important;
  font-weight: 600 !important;
  text-align: left !important;
}
#header-more-menu .hm-row:not(.hm-close):hover {
  background: rgba(226, 73, 47, 0.06) !important;
}
#header-more-menu .hm-row:not(.hm-close):active {
  background: rgba(226, 73, 47, 0.10) !important;
}
/* Panneau menu-1 : légèrement différent du panneau menu-2 (liseré
   supérieur orange discret, rayons plus nets) — on voit d'un clin d'œil
   QUEL menu est ouvert même avant de lire le titre. */
#header-more-menu {
  border-top: 3px solid #f29900 !important;
  border-radius: 14px 14px 16px 16px !important;
}
#mobile-actions {
  border-top: 3px solid #e2492f !important;
}
html.dark #header-more-menu .hm-row:not(.hm-close) {
  background: transparent !important; /* le skin pastille sombre de 284 ne re-colle plus au menu-1 */
  color: #f3f4f6 !important;
}
html.dark #header-more-menu .fmm-grid {
  background: transparent !important;
  color: #f3f4f6 !important;
}

/* ============================================================
   v272.312 — LOT UNIFORMITÉ + KANGOUROU (Bob, 27 oct, 8 demandes)
   ============================================================ */
/* 1. GROSSEUR UNIFORME : tous les boutons de carte prennent 46 px —
   fini les gros/melanges à travers les modes. Le STOP (60), le 🦘 (60),
   la pastille de tournée (pleine largeur) et la colonne zoom gardent
   leurs règles dédiées ({！）ci-dessous contraigned par leurs propres blocs
   !important). */
#map .map-fab:not(#fab-menu-left):not(#fab-menu-right):not(#fab-more),
#map .traffic-live-btn,
#map .gps-chip {
  width: 40px !important;
  height: 40px !important;
  font-size: 1.1rem !important;
}
/* v272.314 — EXEMPTIONS ci-dessus (Bob, 27 oct : « le bouton du menu 2
   a changé de grosseur et n'est plus à la bonne place quand ça load ») :
   #fab-menu-left / #fab-menu-right (☰1/☰2 de tournée) et #fab-more (☰2
   topbar, mobile-actions.css) ont LEURS tailles et poses dédiées — la
   règle uniforme 46 ne doit plus les retoucher ni faire bouger #fab-more
   hors de son topbar. */
/* 2. BOUTON KANGOUROU 🦘 — même octogone que le STOP, jaune signal,
   posé DIRECTEMENT À GAUCHE du STOP (right = 1.5rem + 66 px de colonne). */
#nav-skip-fab {
  width: 60px !important;
  height: 60px !important;
  justify-content: center;
  padding: 0 !important;
  gap: 0 !important;
  /* v272.315 (Bob) : FOND NOIR — l'image kangourou tranche sur le noir,
     contrairement au jaune qu'il a refusé après test. Le liseré blanc
     ::before reste : l'octogone reste lisible de nuit. */
  background: #141414 !important;
  border: none !important;
  box-shadow: none !important;
  position: fixed !important;
  /* À sa création (aucune mémoire) : à GAUCHE du STOP, même rangée. */
  right: calc(1.5rem + 66px);
  left: auto;
  bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
  top: auto;
  z-index: 1500 !important;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%) !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
#nav-skip-fab::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: transparent;
  border: 2.2px solid rgba(255, 255, 255, 0.95);
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  pointer-events: none;
}
#nav-skip-fab span {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  line-height: 1;
  text-align: center;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  /* v272.316 (Bob) : le pictogramme reste BRUN-JAUNE à l'intérieur du
     bouton noir. L'emoji natif varie selon l'OS ; le filtre le force
     vers le brun-jaune signal (#e07b00, l'orange tournée de la carte)
     pour une lisibilité constante sur le fond noir, jour comme nuit. */
  color: #e07b00;
  filter: sepia(1) saturate(2.4) hue-rotate(-8deg) brightness(1.02);
}
/* v272.316 (Bob, 3e demande : « quand on appuie dessus souvent les
   fonctions (copy, paste, move) apparaissent car il y a du texte sur
   ou dans le bouton ») — la SÉLECTION de texte est tuée sur TOUS les
   boutons déplaçables (map-fab, octogones, pastilles, rangées ☰ et
   bannière) : -webkit-touch-callout éteint le menu copy/paste iOS,
   user-select:none éteint la sélection Android. Le texte du bouton
   reste AFFICHÉ mais n'est plus sélectionnable. */
.map-fab,
#nav-stop-fab,
#nav-skip-fab,
#gps-chip,
#mtl-zoom-h,
#planner-nav-chip,
#nav-go-btn,
.nav-banner .nav-mini,
.fab-float,
.fab-float-page,
.ma-row {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}
/* v272.386 (Bob, photo tablette 15 nov : ovale rouge autour des trois
   boutons de zoom) — le lisere orange du mode detache (.fab-float-page)
   faisait un anneau autour du bloc +/−/mode, confondu avec une route sur
   la carte. Le bloc zoom garde son ombre portee mais plus d'anneau. */
#mtl-zoom-h.fab-float-page {
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.25) !important;
}
/* 3. PASTILLE ROUGE « ENLEVER » — remontée JUSTE SOUS la pastille de
   compteur d'arrêt (Bob : « déplace-la juste en dessous de la pastille
   de compteur d'arrêt ») — elle est invisible sauf pendant un drag. */
.fab-remove-drop {
  bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px)) !important;
}
/* 4. BOÎTE CLÉ D'ACTIVATION — AU-DESSUS de la page d'ouverture de
   tournée (Bob : « elle empêchait le démarrage, cachée dessous ») : le
   bandeau 🔑 paticip au-dessus du panneau route-planner. */
.lic-bar {
  z-index: 5000 !important;
}
/* 5. AUCUNE SÉLECTION DE TEXTE sur les boutons (Bob : « copy, paste,
   move apparaissent, inutile et empêche de déplacer ») — complément du
   blocage contextmenu v272.312 dans drag.js. */
#map .map-fab,
.fab-float,
.fab-float-page,
.nav-banner .nav-mini,
#nav-stop-fab,
#nav-skip-fab,
#nav-tools,
#planner-nav-chip,
#mtl-back,
.mode-seg button,
.prov-gps-btn,
.theme-toggle,
.lang-btn {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* ============================================================
   v272.314 — STOP ET KANGOUROU : LA POSE EXACTE SOUS LE DOIGT
   ============================================================ */
/* (Bob, 27 oct 16h : « le STOP fait un move à droite avant de revenir
   à sa place » ; « le 🦘 n'est pas à la grosseur du STOP, difficile à
   déplacer, et une fois déplacé il a changé de forme ».)

   PREUVE MESURÉE EN PREVIEW (drag simulé au doigt, pointerdown → move
   → up, 27 oct) : dès que floatize(el) vide le transform inline, la
   règle de centrage v272.191b `transform: translateX(50%)` regagne —
   l'octogone se peint +30 px (une demi-largeur) à droite de son left
   inline, PENDANT et APRÈS le drag (relevé : computed transform
   matrix(1,0,0,1,30,0) ; rect 426 px pour un left inline de 396 px).
   Et le 🦘 flottant passait sous le plafond .fab-float
   max-width:44px (v272.125) : 44×60 = octogone APLATI dès qu'il est
   déplacé (le filtre max-width du STOP a été posé en v272.312 — le
   bloc du 🦘 l'a raté). */
#nav-stop-fab.fab-float,
#nav-stop-fab.fab-float-page,
#nav-skip-fab.fab-float,
#nav-skip-fab.fab-float-page {
  /* v272.315 : le `:not(.drag-press)` est RETIRÉ — pendant l'appui
     (tap sans drag), translateX(50%) reprenait la main et l'octogone
     se déplaçait à droite puis revenait au lâcher. Transform ne
     revient JAMAIS sur ces deux boutons, appui compris. */
  transform: none !important;
}
/* En pleine glissade : pose EXACTE, ni centrage ni scale. La règle
   générique .drag-press.dragging{transform:none} (SANS !important)
   PERDAIT contre le sélecteur ID #nav-stop-fab — relevé mesuré. */
#nav-stop-fab.drag-press.dragging,
#nav-skip-fab.drag-press.dragging {
  transform: none !important;
}
/* Le plafond max-width:44px (v272.125) ne touche JAMAIS ces deux
   octogones 60×60, flottants ou non. */
#nav-stop-fab.fab-float,
#nav-stop-fab.fab-float-page,
#nav-skip-fab.fab-float,
#nav-skip-fab.fab-float-page {
  max-width: none !important;
  max-height: none !important;
}
/* Le 🦘 au repos : centrage flex identique aux flottants (la règle
   v272.112b ne couvrait PAS les boutons sans classe). */
#nav-skip-fab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Et il SUIT le STOP dans sa place centrée, 8 px de gouttière entre
   les deux octogones : centre 🦘 = centre STOP - 68 px. MÊME ANCRAGE
   SANS TRANSFORM que le STOP (v272.315) : right = 50% + 38 px place le
   centre à 50% - 68 px aussi sec, sans translateX — plus aucun saut
   au tap sur ≤899px (téléphone et tablette). */
@media (max-width: 899px) {
  #nav-skip-fab {
    right: calc(50% + 38px) !important;
    left: auto;
    bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)) !important;
    transform: none;
  }
}

/* ============================================================
   v272.337 (Bob, 30 oct matin) — LE BANDEAU NAV : DEUX LIGNES ET
   RIEN DE PLUS, textes PLEINE LARGEUR, tout CENTRÉ. La ligne de
   stats re-wrappait sur 2 lignes à 320 px (padding 3.6/5.6rem
   hérités) → le bandeau grossissait (3 lignes) et empiétait sur
   la pastille de compteur d'arrêt. FIX : nowrap + texte réduit à
   une ligne avec ellipsis, les paddings latéraux hérités annulés,
   ligne 1 PLEINE LARGEUR centrée (icône / rue · sortie / distance),
   ligne 2 PLEINE LARGEUR centrée (⏱ · heure · km · km/h).
   ============================================================ */
.nav-banner .nav-turn {
  flex-wrap: nowrap !important;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}
.nav-banner .nav-road {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.nav-banner .nav-exit {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd166;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 0.08rem 0.35rem;
  font-family: var(--font-display, inherit);
}
.nav-banner .nav-dist { flex: 0 0 auto !important; }
.nav-banner .nav-stats {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  justify-content: center !important;
  text-align: center !important;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.nav-banner .nav-stats span { flex: 0 0 auto !important; }


/* ============================================================
   v272.339 - ROLLBACK BOUTONS A L ETAT DU 28 OCT 13h50 (v272.324,
   demande Bob : memes couleurs, memes boutons qu hier a la meme heure).
   Les trois blocs ajoutes APRES la 324 (bloc rond partiel v272.336,
   bloc rond etendu v272.337, palette hors-scope v272.337, pill 338)
   sont RETIRES entierement. Restent les regles d origine : degrades
   v251, v272.51/56, v272.59 gardes drag, v272.139b ronds #map,
   v272.141 pill menu-2, et le bandeau nav deux lignes v272.334
   (demande Bob, conserve). Le pill menu-2 est reaffirme ici une
   derniere fois pour battre toute regle anterieure du meme fichier.
   ============================================================ */
#fab-more,
#fab-more.header-menu2 {
  clip-path: none !important;
  border-radius: 999px !important;
}

/* ============================================================
   v272.340 — RESTAURATION des trois blocs coupes par le rollback 339
   (Bob : « Innocente tu m'a refoutue des boutons carré »). CAUSE:
   a l'ere 324, #fab-fullscreen et #fab-recenter portent octogone
   clip-path avec border-radius: 0 — sur le telephone SANS clip-path
   => CARRES PURS. Le dernier etat valide est rond + COLORE + pill:
   bloc rond etendu + palette + pill, remis ici a l'identique, la
   pill #fab-more restant la DERNIERE regle de la feuille.
   ============================================================ */
.map-fab:not(#nav-stop-fab):not(#nav-skip-fab):not(#fab-more),
.fab-float:not(#nav-stop-fab):not(#nav-skip-fab):not(#fab-more):not(#planner-nav-chip):not(#nav-go-btn):not(#nav-tools),
.fab-float-page:not(#nav-stop-fab):not(#nav-skip-fab):not(#fab-more):not(#planner-nav-chip):not(#nav-go-btn):not(#nav-tools),
.gps-chip,
#gps-chip,
#map .gps-chip,
body > .gps-chip,
#fab-recenter,
#fab-fullscreen,
.traffic-live-btn,
.buffy-badge {
  clip-path: none !important;
  border-radius: 50% !important;
}
#map .voice-btn,
#map .transport-fab,
#map .safety-fab,
#map .fs-fab,
#map .planner-fab,
#map .buffy-badge,
.voice-btn,
.transport-fab,
.safety-fab,
.fs-fab,
.planner-fab,
.buffy-badge,
.map-topbar .map-fab:not(#nav-stop-fab):not(#nav-skip-fab):not(#fab-more),
.mobile-actions .map-fab:not(#nav-stop-fab):not(#nav-skip-fab):not(#fab-more),
.nav-banner .nav-mini:not(#nav-stopall):not(#nav-stop-fab):not(#nav-skip-fab),
.nav-banner .nav-x,
#fab-menu-left,
#fab-menu-right,
#fab-recenter,
#fab-fullscreen,
#gps-chip,
.traffic-live-btn {
  clip-path: none !important;
  border-radius: 50% !important;
}
/* Palette rejoint le bouton meme quand drag.js le reparente hors
   #map (miroirs hors-scope, fin de feuille, memes degrades v251). */
.recenter-fab:not(#nav-stop-fab):not(#nav-skip-fab) {
  background: linear-gradient(150deg, #2f7bff 0%, #1a54d8 100%) !important;
  color: #fff !important;
  border-color: rgba(47, 123, 255, 0.5) !important;
  box-shadow: 0 8px 22px -6px rgba(47, 123, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.recenter-fab.on {
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.35), 0 8px 26px -6px rgba(47, 123, 255, 0.8) !important;
}
.fs-fab {
  background: linear-gradient(160deg, #ffffff, #e8eef7) !important;
  border: 1px solid #c9d4e3 !important;
  box-shadow: var(--shadow-md) !important;
}
.voice-btn:not(#nav-stop-fab):not(#nav-skip-fab) {
  background: linear-gradient(150deg, #e2492f 0%, #b93a24 100%) !important;
  color: #fff !important;
  border-color: rgba(226, 73, 47, 0.55) !important;
  box-shadow: 0 8px 22px -6px rgba(226, 73, 47, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.transport-fab {
  background: linear-gradient(150deg, #6366f1 0%, #4a4fd4 100%) !important;
  color: #fff !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 8px 22px -6px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.safety-fab {
  background: linear-gradient(150deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 8px 22px -6px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.planner-fab {
  background: linear-gradient(150deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #fff !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  box-shadow: 0 8px 22px -6px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.traffic-live-btn {
  background: linear-gradient(150deg, #12b76a 0%, #0a8f52 100%) !important;
  color: #fff !important;
  border-color: rgba(18, 183, 106, 0.5) !important;
  box-shadow: 0 8px 22px -6px rgba(18, 183, 106, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.traffic-live-btn:not(.active) {
  background: linear-gradient(150deg, #ffffff 0%, #eef1f6 100%) !important;
  color: #5d6b7e !important;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08), 0 10px 24px -8px rgba(16, 24, 40, 0.2) !important;
}
.gps-chip {
  background: linear-gradient(160deg, #eaf3ff, #d4e6ff) !important;
  color: #1a73e8 !important;
  box-shadow: var(--shadow-md) !important;
}

/* ============================================================
   v272.341 — LA PASTILLE COMPTeur D'ARRÊT ET LE GROS ▶ NAVIGUER
   RESTENT des PILLS 999px MÊME DRAGUÉS (Bob 29 oct : « la pastille
   est ovale, tu es allé chercher des versions trop loin »). CAUSE
   PRUVEE : les deux éléments sont des page-floats (drag.js) — quand drag.js
   les flotte, ils reçoivent .fab-float/.fab-float-page et le bloc rond 340
   leur imposait border-radius:50% sur une forme large (78vw/170px) =
   OVALE. FIX en FIN de feuille : exclusion explicite
   des deux ids dans les sélecteurs .fab-float/.fab-float-page du
   bloc rond (fait plus haut) + ré-affirmation de leur pill natif
   v272.201/206 ici. le coffre #nav-tools est aussi exclu : il garde
   son octogone d'origine, dragué ou pas (nature STOP/octogone).
   ============================================================ */
#planner-nav-chip,
#planner-nav-chip.fab-float,
#planner-nav-chip.fab-float-page,
#nav-go-btn,
#nav-go-btn.fab-float,
#nav-go-btn.fab-float-page {
  clip-path: none !important;
  border-radius: 999px !important;
}

/* ============================================================
   v272.354 — LE GROS OVALE PLEINE PAGE (Bob 1 nov : « en arrière-plan,
   de temps à autre, il y a un gros ovale qui prend toute la page »).
   CAUSE PRUVEE AU CODE : le bloc rond v272.139 (en tête de cette feuille,
   ligne 967) pose `border-radius: 50% !important` sur TOUT
   .fab-float/.fab-float-page — or drag.js flotte AUSSI des éléments
   LARGES : la pastille tournante #rep-cycler (≈100vw) et le sélecteur
   de mode #map3d-mode (≈210px). Un pill de 100vw avec des coins à 50 %
   = UN GROS OVALE SUR TOUTE LA PAGE. Le v272.341 exclusait les deux ids
   pills À LA MAIN — la même famille de bug remontée à chaque nouvel
   élément dragué large. DÉSORMAIS : garde UNIVERSELLE posée par drag.js
   tout seul — `fab-oval-guard` est ajouté à TOUT flottant plus large que
   96 px, et cette règle (en fin de feuille : elle gagne sur le
   bloc 139 comme l'exclusion 341) le remet en pill 999px, octogones
   pris (clip-path rien). Les vrais boutons ronds (≤ 96px) ne changent
   aucunément : ils n'ont jamais la classe.
   ============================================================ */
.fab-oval-guard,
.fab-oval-guard.fab-float,
.fab-oval-guard.fab-float-page {
  border-radius: 999px !important;
  clip-path: none !important;
}
/* ================================================================
   v272.358 — VRAIS BREAKPOINTS PAYSAGE (2 nov, Bob : « aucun breakpoint »)
   1) @media (min-width:900px) and (orientation:landscape) : les pubs
      sandwich de la colonne carte sontmasquées (la carte flex:1 prend
      toute la hauteur — il restent sur le téléphone/portrait).
   2) Rails slot-left/right : mangés seulement <1400px en paysage ;
      les grands desktop >=1400 les gardent (monétisation).
   ================================================================ */
@media (min-width: 900px) and (orientation: landscape) {
  #map-wrap .map-ad.slot-top, #map-wrap .map-ad.slot-bottom { display: none !important; }
  #map { min-height: 0 !important; }
}
@media (min-width: 900px) and (max-width: 1599px) and (orientation: landscape) {
  .map-ad.slot-left, .map-ad.slot-right { display: none !important; }
}

/* ================================================================
   v272.358 — FONDATIONS « PATTERN WAZE/SYGIC » (2 nov, étude Waze /
   Sygic / HERE WeGo / livres Leaflet-MapLibre-Mapbox, chercheurs web)
   1) html+body verrouillés : overscroll-behavior:none (plus de rebond
      ni de pull-to-refresh accidentel pendant la glisse de carte).
   2) Unités dvh : les blocs qui montent au 100vh passaient derriere
      la barre d'URL (web.dev : vh ne suit pas la chrome retractee).
      On répète les mêmes blocs en calc(...dvh) APRES (l'appareil qui
      ignore dvh garde la calc vh d'origine — dégradation douce).
   3) Barre de touches : interactive-widget=resizes-content dans les
      4 index.html (le clavier recad le viewport, la carte suit).
   Maquette <=899 et portrait : AUCUN changement visuel structurel.
   ================================================================ */
html, body { overscroll-behavior: none !important; }

@supports (height: 100dvh) {
  #mobile-actions { max-height: calc(100dvh - 6.45rem) !important; }
  #header-more-menu { max-height: calc(100dvh - 6.45rem) !important; }
  #pre-ad { max-height: 86dvh; }
}

main::-webkit-scrollbar, #list::-webkit-scrollbar { width: 0 !important; height: 0 !important; }

/* ================================================================
   v272.358D — ARCHITECTURE « COMME WAZE » au-dessus de 900px
   (mesure côte à côte 2 nov : Waze 1280×800 = carte 100% de
   l'écran + 1 panneau flottant ; mtltrafic prod = 2 colonnes qui
   scrollent + carte coincée entre les pubs). ENGAGEMENT :
   - la CARTE devient la page : #map-wrap prend TOUTE la zone
   - le SIDEBAR devient un PANNEAU FLOTTANT (overlay) ancré à
     gauche, qui scrolle À L'INTÉRIEUR de lui-même (overscroll
     contain), ombre + coins arrondis comme le panneau Waze
   - AUCUN changement <=899px (maquette téléphone intouchée)
   Ce n'est PAS un vrai plein-écran : la toolbar garde son rang.
   ================================================================ */
@media (min-width: 900px) {
  /* Le panneau vit DANS main (position absolute, ancre haut + bas de
     la zone carte) : il suit automatiquement la hauteur reelle de
     l'entete, sur toutes les tailles - pas de pixel magique. */
  #sidebar {
    position: absolute !important;
    top: 0.7rem !important;
    bottom: 0.7rem !important;
    left: 0.8rem !important;
    height: auto !important;
    width: clamp(340px, 26vw, 400px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 2980 !important;
    border-radius: 16px !important;
    border: 1px solid var(--line, #e4e7ec) !important;
    box-shadow: 0 14px 44px -12px rgba(15, 20, 32, 0.28) !important;
    padding: 0.6rem !important;
  }
  /* La carte rejettee a DROITE du panneau (gouttiere = largeur du
     panneau + air) : les boutons du doigt posés sur le bord gauche
     de la carte restent TOUJOURS visibles, jamais sous le panneau. */
  #map-wrap {
    flex: 1 1 auto !important;
    margin-left: calc(clamp(340px, 26vw, 400px) + 1.4rem) !important;
  }
  /* v272.359 — FIX DÉBORDEMENT « Waze » (mesuré au balayage nocturne :
     à 900×700, la règle mobile flex-direction:column débordait ici
     jusqu'au prochain breakpoint — marge gauche 362px ajoutée SUR la
     largeur pleine → scroll horizontal 1253 au lieu de 900). main
     repasse en LIGNE au-dessus de 900px, grandit pour remplir la
     fenêtre, et la carte remplit la hauteur qui reste. Mesuré en live
     : scrollX 1253→891 (plus de débordement), carte 521×291 à 900×700,
     aucun scroll vertical parasite, panneau flottant intact. */
  main {
    flex-direction: row !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }
  #map {
    flex: 1 1 auto !important;
    height: auto !important;
  }
  /* PASS 2 (balayage nocturne) : la barre d'outils de bureau déborde
     de son blog — légende map-colors mesurée jusqu'à r=2014 sur un
     écran de 1479 (scroll 1712) et rangée de modes r=1517 — DEUX
     barres de défilement horizontales parasites. Correctif aligné sur
     le précédent du bloc (max-height:640px) : la barre peut re-wraper,
     min-width:0 partout, et sous 1600px en paysage la légende revient
     aux libellés COURTS (règle 1280 reportée plus loin). */
  .map-topbar { min-width: 0 !important; max-width: 100% !important; flex-wrap: wrap !important; row-gap: 0.3rem !important; }
  .map-topbar .mode-seg { flex-wrap: wrap !important; max-width: 100% !important; min-width: 0 !important; }
  .map-topbar .map-colors { min-width: 0 !important; max-width: 100% !important; }
  /* Les modes sans panneau recouvrent TOUTE la largeur. */
  body.map-only #map-wrap, .nav-mode #map-wrap { margin-left: 0 !important; }
}

/* v272.359 — libellés COURTS de la légende sous 1600px paysage : à
   1479 les 8 pastilles + libellés longs dépassaient (mesuré r=2014,
   scroll 1712). Retour compact, comme sur le bloc 1193. */
@media (min-width: 900px) and (max-width: 1599px) and (orientation: landscape) {
  .map-topbar .map-colors .mc-item .mc-long { display: none !important; }
}

/* v272.359b — CONFORMITÉ 900-1279 : un SEUL bandeau « nid de poule ».
   À 900-1279 l'en-tête s'empile en colonne (flex-direction:column) :
   le petit conteneur sans classe qui porte le bouton pothole-open-btn
   s'empile SOUS la légende FAQ/FR et AFFICHE ENCORE « Signaler un nid
   de poule » UNE 3e FOIS (mesuré 10@207, 864x27 : +32px sous l'en-tête).
   Le domaine exige un seul bandeau d'alerte à la fois ; à >=1280 ce
   conteneur est déjà masqué par le design bureau. Correctif mesuré :
   en-tête 188->156, carte 224->256 à 900x700. :has() seul ciblable
   (conteneur SANS classe) ; support Chromium 105+/Safari 15.4+/FF 121+.
   Dégradation douce : si :has() absent, l'ancien empilement revient
   sans casser la page. */
@media (min-width: 900px) and (max-width: 1279px) {
  .header-actions > div:has(> button.pothole-open-btn) { display: none !important; }
}

/* v272.359c — RAILS : les emplacements VIDES (classe .ad-available) ne
   doivent pas remplir la moitié de la carte avec de grosses cartes
   blanches pleines. Les emplacements vendables restent en place, prêts
   pour les créas réelles (.ad-available n'existe QUE sur le placeholder) :
   compact en haut du rail, léger, bord pointillé discret. Mesuré banc:
   rail 365x807 -> placeholder ~230px, le reste du rail est transparent,
   la carte reste pleine (1498x821 à 1920x1080, scroll 1920x1080 pile). */
@media (min-width: 1400px) and (orientation: landscape) {
  .map-ad-rail .ad-slot.ad-available { height: auto !important; min-height: 0 !important; max-height: 240px !important; align-self: start; }
  .map-ad-rail .ad-slot.ad-available .ad-content { gap: 0.45rem !important; padding: 1rem 0.7rem !important; }
  .map-ad-rail .ad-slot.ad-available .ad-visual { width: 44px !important; height: 44px !important; font-size: 1.3rem !important; flex: 0 0 44px !important; }
  .map-ad-rail .ad-slot.ad-available .ad-title { font-size: 0.82rem !important; }
  .map-ad-rail .ad-slot.ad-available .ad-desc { -webkit-line-clamp: 1 !important; }
  .map-ad-rail .ad-slot.ad-available .ad-cta { margin-top: 0.2rem !important; font-size: 0.8rem !important; padding: 0.45rem 0.9rem !important; }
}
/* v272.359e — LA GRANDE PROPRIETE (Bob, 3 nov nuit : « regarde les boutons ») :
   à ≥900 le vieil accord v272.227b faisait revoir les 4 bandes natives
   (entrave / nid de poule / police / autre) EN PLUS de la pastille
   tournante — « on aurait 4 bandes noires » (v272.193, rejet) —
   exactement ce que Bob a pointé du doigt. La décision v272.276 de Bob
   (« seulement UNE pastille qui défile… les 4 vraies rangées restent
   dans le DOM mais cachées ») s'applique à TOUTES les tailles.
   SÉLECTEURS DOUBLÉS D'ID : spécificité (2,0,0) — au-dessus de toute
   règle simple-#pothole-bar existante, en FIN de cascade.
   Mesuré 1280×800 : wrap/pothole/rep184 → none, pastille (419-659).
   Le serveur de banc coupe l'octo-final à une Content-Length périmée :
   découpe octo-a + octo-e (chaque fichier < 105 640 / 70 219 octets).
*/
@media (min-width: 900px) {
  #pothole-bar#pothole-bar,
  #rep184-row#rep184-row.hidden-for-cycler,
  .header-actions .report-wrap.report-wrap { display: none !important; }
  .rep-cycler.rep-cycler { display: flex !important; }
}
/* v272.359f — L'EN-TÊTE REDEVIENT UNE LIGNE (Bob, 3 nov : « il y en a deux
   qui sont éparpillés partout »). La sonde montre : .header-actions reste
   en COLONNE (pastille 371,6 + FAQ/FR/lune 371,56 empilés dans 393 px de
   large) — le design ≤899 empilé débordait sur le bureau. Ici on remet
   la RANGÉE ≥900 : direction row, nowrap, largeurs auto. Les 4 bandes
   natives restent cachées (règles 359e au-dessus). Mesuré apres : à 900
   une seule ligne d'en-tête, pastille + FAQ/FR/lune sur la même ligne.
*/
@media (min-width: 900px) {
  .header-actions { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: .5rem !important; }
  .rep-cycler { width: auto !important; flex: 0 1 auto !important; max-width: 20rem !important; }
  .header-legacy { width: auto !important; flex: 0 0 auto !important; }
}

/* n17 (Bob, 14 nov) : [hidden] doit gagner sur les rangees des menus.
   Les regles display:flex !important des rangees ecrasaient l attribut
   hidden (specificite 0) : les 5 rangees masquees restaient visibles. */
#header-more-menu .hm-row[hidden],
#mobile-actions .ma-row[hidden] {
  display: none !important;
}
