/* ============================================================
   MtlTrafic — v272.17 : BOUTON FLOTTANT « ✕ Retour à la carte »
   Sur CHAQUE page secondaire : 1 appui, on est de retour à la
   carte — plus jamais besoin de sortir/ré-ouvrir l'application.
   ============================================================ */
.back-to-map {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e2492f;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* v272.214 : leavespace pour le pied de page — le bouton flottant
   recouvrait les liens du footer en bas de page (constate 320x783). */
@media screen {
  body:has(.back-to-map) { padding-bottom: 5rem; }
  /* iOS Safari sans :has() : marge equivalente sur le footer */
  footer.appf { padding-bottom: 5rem; }
}
.back-to-map:active { transform: translateX(-50%) scale(0.95); }
.back-to-map .bx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 900;
}
