/* Paladines — la feuille de style de l'appli (v31, refaite de zéro).
 *
 * Chaque écran commence par un bandeau bleu nuit, avec le plan des rues de Lille en filigrane
 * (img/bandeau-lille.webp, dessiné à partir de data/chemins.json). Dessous, une feuille gris clair
 * qui chevauche le bandeau, avec des cartes blanches arrondies, comme sur iPhone.
 * Peu de couleurs, chacune un seul sens :
 *   bleu nuit Paladines = la marque, les boutons principaux ; vert = ouvert, appeler ;
 *   rouge = urgences ; bleu vif = itinéraire, position, liens ; orange = ferme bientôt.
 * Police du téléphone (SF Pro, Roboto…), tailles en rem, cibles de 44 px au moins, contraste AA.
 * Téléphone : onglets en capsule de verre en bas. Ordinateur (≥ 1024 px) : onglets en haut à
 * droite, pages plus larges, carte à droite des listes et des fiches.
 */

/* ============ 1. Couleurs et mesures ============ */
:root {
  color-scheme: light;
  --nuit: #0b1b36;
  --nuit-2: #14306f;
  --fond: #f2f2f7;
  --carte: #ffffff;
  --texte: #0b1b36;
  --texte-2: #5d6472;
  --separateur: rgb(60 60 67 / 0.16);
  --gris-plein: rgb(118 118 128 / 0.12);
  --tuile: #eef2f9;
  --vert: #248a3d;
  --femmes: #a21f6b; /* onglet et page « Femmes » : magenta, contraste AA avec le blanc */
  --vert-texte: #1e7a35;
  --rouge: #d70015;
  --rouge-texte: #c40013;
  --bleu: #0a66d8;
  --bleu-texte: #0a5fcc;
  --orange: #a64b00;
  --sur-nuit-2: rgb(255 255 255 / 0.8);
  --verre-nuit: rgb(255 255 255 / 0.12);
  --verre-plein: rgb(37 58 104 / 0.94);
  --r: 22px;
  --r-petit: 14px;
  --gouttiere: 16px;
  --onglets-h: 64px;
  /* Écart entre les onglets et le bas de l'écran (plus petit dans l'appli installée, comme dans les applis d'Apple) */
  --onglets-bas: max(10px, env(safe-area-inset-bottom, 0px) - 12px);
  --ombre: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 20px -14px rgb(11 27 54 / 0.28);
  --ombre-flottante: 0 2px 6px rgb(0 0 0 / 0.08), 0 16px 36px -14px rgb(11 27 54 / 0.45);
  --flou: blur(22px) saturate(180%);
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Geeza Pro", "Noto Sans Ethiopic", system-ui, sans-serif;
  --police-titre: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Geeza Pro", "Noto Sans Ethiopic", system-ui, sans-serif;
  /* Noms gardés pour affiche.html */
  --accent-texte: var(--nuit);
}

/* ============ 2. Bases ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fond);
}
/* Appli et page de l'équipe : fond bleu nuit. Safari 26 (iPhone, Mac) ne lit plus theme-color et
 * colore la zone de l'heure avec le fond de la page : en gris, il y faisait une bande blanche floue.
 * Ce fond ne se voit nulle part ailleurs (.fond-page le couvre, .teinte-bas colore le bas). */
html:has(.teinte-haut) {
  background: var(--nuit);
}
body {
  margin: 0;
  overflow-x: clip;
  background: transparent;
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* La zone de l'heure. Safari (iPhone) la peint lui-même, d'une seule couleur : celle d'un élément fixe,
 * opaque, collé en haut, de 6 px au moins (celui-ci : 12 px, car env(safe-area-inset-top) vaut 0 dans
 * Safari), sinon celle du fond de la page. Safari le lit même transparent (opacity: 0) : il ne se
 * voit donc pas, le plan du bandeau monte jusqu'en haut de la page, sans bande.
 * Appli installée sur iPhone : la page passe sous l'heure (écrite en blanc), sans aucun voile (voir plus bas). */
.teinte-haut {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: max(12px, env(safe-area-inset-top, 0px));
  background: var(--nuit);
  opacity: 0;
  pointer-events: none;
}
/* Safari : la zone de l'heure prend la couleur de ce qu'il y a dessous, pour qu'on ne la remarque pas
 * (v39) : bleu nuit sur le bandeau, gris clair quand la feuille arrive en haut, couleur du plan sur la carte. */
body.defile .teinte-haut {
  background: var(--fond);
}
body.sur-carte .teinte-haut {
  background: #f2f3f0;
}
/* Appli installée : l'écran va jusqu'en haut, derrière l'heure, sans aucun voile (ni bande en défilant,
 * ni dégradé sur la carte, ni fondu en haut du bandeau). Demandé par l'équipe en v36. */
@media (display-mode: standalone) {
  .teinte-haut {
    display: none;
  }
  html .bande {
    background:
      radial-gradient(120% 70% at 100% 0%, rgb(37 86 196 / 0.55), rgb(37 86 196 / 0) 60%),
      linear-gradient(180deg, rgb(11 27 54 / 0.25), rgb(11 27 54 / 0.6)),
      url("../img/bandeau-lille.webp") 42% 40% / max(100%, 46rem) auto no-repeat,
      var(--nuit);
  }
}
/* Le bas de l'écran, autour de la barre de Safari : gris clair, couleur du plan sur la carte (avec le
 * fond bleu nuit, une bande bleue s'y voyait). Inutile dans l'appli installée et sur ordinateur. */
.teinte-bas {
  position: fixed;
  z-index: 39;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--fond);
  opacity: 0; /* lu par Safari, invisible sur la page */
  pointer-events: none;
}
body.sur-carte .teinte-bas {
  background: #f2f3f0;
}
@media (display-mode: standalone), (min-width: 1024px) {
  .teinte-bas {
    display: none;
  }
}
/* Quand la page rebondit (iPhone) : bleu nuit au-dessus du bandeau, gris clair sous la feuille */
.fond-page {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, var(--nuit) 50%, var(--fond) 50%);
}
@media print {
  .teinte-haut,
  .teinte-bas,
  .fond-page {
    display: none;
  }
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--bleu-texte);
}
button,
input,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 2px;
}
/* Titre ou page rejoints par le programme après un changement d'écran (lecteurs d'écran) : pas de cadre */
[tabindex="-1"]:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.25em;
}
.chevron {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.5;
}
[dir="rtl"] .chevron,
[dir="rtl"] .retour .ic {
  transform: scaleX(-1);
}
.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sauter {
  position: absolute;
  z-index: 100;
  top: -100px;
  inset-inline-start: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--nuit);
  font-weight: 600;
}
.sauter:focus {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
}
.piege {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.noscript {
  margin: 16px;
  padding: 16px;
  border-radius: var(--r);
  background: #fff;
}
.horsligne {
  position: fixed;
  z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(11 27 54 / 0.85);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--ombre-flottante);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.statut,
.ligne-dist,
.urgence-num,
.horaires,
.guide-dist,
.guide-temps {
  font-variant-numeric: tabular-nums;
}
.aide {
  color: var(--texte-2);
  font-size: 0.9375rem;
}
.ok {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vert-texte);
  font-weight: 600;
}
.etiquette {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.etiquette .ic {
  width: 0.95rem;
  height: 0.95rem;
}
/* Pas d'espacement entre les lettres en arabe, dari et pachto (l'écriture serait coupée) */
[dir="rtl"] .etiquette,
[dir="rtl"] .moment-eti,
[dir="rtl"] .bande-date {
  letter-spacing: 0;
}

/* ============ 3. Boutons ============ */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--nuit);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
@media (hover: hover) {
  .bouton:hover {
    filter: brightness(1.1);
  }
}
.bouton:active {
  transform: scale(0.97);
}
.bouton .ic {
  width: 1.15rem;
  height: 1.15rem;
}
.bouton--blanc {
  background: #fff;
  color: var(--nuit);
}
@media (hover: hover) {
  .bouton--blanc:hover {
    filter: brightness(0.96);
  }
}
.bouton--vert {
  background: var(--vert);
}
.bouton--rouge {
  background: var(--rouge);
}
.bouton--bleu {
  background: var(--bleu);
}
.bouton--gris {
  background: var(--gris-plein);
  color: var(--nuit);
}
@media (hover: hover) {
  .bouton--gris:hover {
    filter: brightness(0.95);
  }
}
.bouton--danger {
  color: var(--rouge-texte);
}
.bouton--verre {
  background: var(--verre-nuit);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}
.bouton--large {
  width: 100%;
  min-height: 54px;
  font-size: 1.0625rem;
}
.bouton--petit {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}
.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Rond de verre sur le bandeau (langue, garder, envoyer) */
.rond-verre {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--verre-nuit);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
  color: #fff;
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
@media (hover: hover) {
  .rond-verre:hover {
    background: rgb(255 255 255 / 0.2);
  }
}
.rond-verre .ic {
  width: 1.3rem;
  height: 1.3rem;
}
.rond-verre[aria-pressed="true"] {
  background: #fff;
  color: var(--nuit);
}
.rond-verre[aria-pressed="true"] .ic {
  fill: currentColor;
}

/* Puces : capsules de verre sur le bandeau ; choisie = blanche */
.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.puce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--verre-plein);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.puce::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.puce .ic {
  width: 1.05rem;
  height: 1.05rem;
}
@media (hover: hover) {
  .puce:hover {
    background: rgb(255 255 255 / 0.2);
  }
}
.puce[aria-pressed="true"],
.puce[aria-expanded="true"] {
  background: #fff;
  color: var(--nuit);
}
.puce[aria-pressed="true"] .ic {
  color: var(--bleu);
}
/* Sur fond clair */
.puce--claire,
.puces--claires .puce {
  background: var(--carte);
  box-shadow: var(--ombre);
  color: var(--nuit);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (hover: hover) {
  .puce--claire:hover,
  .puces--claires .puce:hover {
    background: var(--tuile);
  }
}
.puce--claire[aria-pressed="true"] {
  background: var(--nuit);
  color: #fff;
}
.puces--claires {
  margin-top: 0;
}

/* ============ 4. Bandeau ============ */
.bande {
  position: relative;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) var(--gouttiere) 54px;
  color: #fff;
  /* Le plan monte jusqu'en haut, avec un léger fondu sur les 24 premiers pixels */
  background:
    linear-gradient(180deg, var(--nuit), rgb(11 27 54 / 0) 24px),
    radial-gradient(120% 70% at 100% 0%, rgb(37 86 196 / 0.55), rgb(37 86 196 / 0) 60%),
    linear-gradient(180deg, rgb(11 27 54 / 0.25), rgb(11 27 54 / 0.6)),
    url("../img/bandeau-lille.webp") 42% 40% / max(100%, 46rem) auto no-repeat,
    var(--nuit);
}
.bande-in {
  max-width: 70rem;
  margin-inline: auto;
}
.bande-haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin-bottom: 8px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.marque-logo {
  width: 30px;
  height: 38px;
  fill: currentColor;
}
.bande-date {
  color: var(--sur-nuit-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bande-titre {
  margin: 4px 0 20px;
  font-family: var(--police-titre);
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.bande-titre span {
  display: block;
  color: #8fb0ef;
}
/* Recherche : un champ blanc */
.recherche {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 16px 10px;
  border-radius: 16px;
  background: #fff;
  color: var(--texte-2);
  box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.6);
}
.recherche:focus-within {
  box-shadow: 0 0 0 3px rgb(143 176 239 / 0.9), 0 10px 24px -14px rgb(0 0 0 / 0.6);
}
.recherche > .ic {
  width: 1.2rem;
  height: 1.2rem;
}
.recherche input {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--texte);
  font-size: 1.0625rem;
}
.recherche input::placeholder {
  color: #6b7280;
  opacity: 1;
}
/* « Ouvert maintenant, près de moi » : verre sur le bandeau */
.proche {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin-top: 12px;
  padding-block: 8px;
  padding-inline: 10px 16px;
  border-radius: 18px;
  background: var(--verre-plein);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 0 0 1px rgb(255 255 255 / 0.16);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .proche:hover {
    background: rgb(255 255 255 / 0.18);
  }
}
.proche:active {
  transform: scale(0.985);
}
.proche-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--bleu);
}
.proche-ic .ic {
  width: 1.4rem;
  height: 1.4rem;
}
.proche-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.proche-txt strong {
  font-weight: 600;
  line-height: 1.25;
}
.proche-txt small {
  color: var(--sur-nuit-2);
  font-size: 0.8125rem;
}
.proche .chevron {
  opacity: 0.75;
}
/* En-tête des autres pages */
.retour {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-block: 4px 6px;
  margin-inline-start: -6px;
  padding-inline: 4px 8px;
  color: #fff;
  font-size: 1.0625rem;
  text-decoration: none;
}
.retour .ic {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 2.4;
}
.page-tete {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-tete h1 {
  font-family: var(--police-titre);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.page-sous {
  margin-top: 4px;
  color: var(--sur-nuit-2);
  font-size: 0.9375rem;
}
.page-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--verre-nuit);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}
.page-ic .ic {
  width: 1.75rem;
  height: 1.75rem;
}
.page-ic--bleu {
  background: var(--bleu);
  box-shadow: none;
}
.page-ic--blanc {
  background: #fff;
  color: var(--nuit);
}
.page-ic--rouge {
  background: var(--rouge);
  box-shadow: none;
}
.position-msg {
  margin-top: 10px;
  color: var(--sur-nuit-2);
  font-size: 0.8125rem;
}
.puces--sous {
  margin-top: 16px;
}

/* ============ 5. La feuille claire sous le bandeau ============ */
.feuille {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 40vh;
  margin-top: -28px;
  padding: 20px var(--gouttiere) calc(var(--onglets-h) + 44px + env(safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0;
  background: var(--fond);
}
.feuille > *,
.col-principale > * {
  min-width: 0;
}
.col-principale {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.col-carte {
  display: none;
}
/* Une carte blanche */
.carte {
  border-radius: var(--r);
  background: var(--carte);
  box-shadow: var(--ombre);
}
.texte {
  padding: 16px;
  font-size: 0.9375rem;
}
.titre-section {
  margin: 8px 4px 0;
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.groupe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note-bas {
  padding: 8px 8px 0;
  color: var(--texte-2);
  font-size: 0.8125rem;
  text-align: center;
}
.note-bas--gauche {
  text-align: start;
}
.note-bas a {
  color: var(--texte-2);
}
.vide {
  padding: 32px 16px;
  color: var(--texte-2);
  text-align: center;
}
.rappel,
.lien-ligne,
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.9375rem;
}
.rappel > .ic,
.lien-ligne > .ic:first-child,
.note > .ic {
  flex: none;
  margin-top: 2px;
  color: var(--bleu);
}
.lien-ligne {
  align-items: center;
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
}
.lien-ligne span {
  flex: 1;
}
.note {
  background: #eef2f9;
}
.note--ferme {
  background: rgb(215 0 21 / 0.08);
}
.note--ferme > .ic {
  color: var(--rouge-texte);
}

/* ============ 6. Accueil ============ */
.accueil-grille {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* « Pour les femmes » : la grande carte bleu nuit */
.carte-femmes {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(37 86 196 / 0.95), rgb(37 86 196 / 0) 70%),
    var(--nuit);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgb(11 27 54 / 0.85);
  transition: transform 0.15s ease;
}
.carte-femmes:active {
  transform: scale(0.985);
}
.carte-femmes-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--nuit);
}
.carte-femmes-ic .ic {
  width: 1.5rem;
  height: 1.5rem;
}
.carte-femmes-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.carte-femmes-txt .etiquette {
  color: var(--sur-nuit-2);
}
.carte-femmes-txt strong {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.carte-femmes-txt small {
  color: var(--sur-nuit-2);
  font-size: 0.9375rem;
}
.carte-femmes .chevron {
  opacity: 0.7;
}
/* Les besoins : des icônes, comme sur l'écran d'accueil de l'iPhone */
.grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 8px;
}
.tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--texte);
  text-align: center;
  text-decoration: none;
}
.tuile-ic {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--cat, var(--carte));
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 18px -12px rgb(11 27 54 / 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tuile-ic .ic {
  width: 1.85rem;
  height: 1.85rem;
}
@media (hover: hover) {
  .tuile:hover .tuile-ic {
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 14px 24px -12px rgb(11 27 54 / 0.5);
  }
}
.tuile:active .tuile-ic {
  transform: scale(0.93);
}
.tuile-nom {
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.tuile-nb {
  margin-top: -3px;
  color: var(--texte-2);
  font-size: 0.6875rem;
  font-weight: 500;
}
.tuile-nb--ouvert {
  color: var(--vert-texte);
}
.lien-toutes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--bleu-texte);
  font-weight: 600;
  text-decoration: none;
}
.lien-toutes .chevron {
  opacity: 1;
}
.section-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 0;
}
.section-tete h2 {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* « En ce moment » : des cartes qui défilent ; une barre se remplit sous la carte en cours */
.moment {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.moment-pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gris-plein);
  color: var(--nuit);
}
.moment-pause .ic {
  width: 1rem;
  height: 1rem;
}
.moment-piste {
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--gouttiere) * -1);
  padding: 4px var(--gouttiere) 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gouttiere);
  scrollbar-width: none;
}
.moment-piste::-webkit-scrollbar {
  display: none;
}
.moment-carte {
  flex: none;
  width: min(86%, 22rem);
  scroll-snap-align: start;
}
.moment-lien {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 170px;
  padding: 16px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: var(--nuit);
  box-shadow: 0 16px 30px -20px rgb(11 27 54 / 0.9);
}
/* Chaque sorte d'info a sa lueur, sur le même bleu nuit (assez légère pour garder le texte blanc lisible, AA) */
.moment-lien::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(110% 90% at 100% 0%, var(--lueur, rgb(37 86 196 / 0.9)), transparent 68%);
}
.moment--froid,
.moment--hiver {
  --lueur: rgb(90 170 255 / 0.5);
}
.moment--chaleur {
  --lueur: rgb(255 149 0 / 0.5);
}
.moment--pluie,
.moment--meteo {
  --lueur: rgb(62 140 230 / 0.55);
}
.moment--dormir,
.moment--nuit {
  --lueur: rgb(122 92 230 / 0.7);
}
.moment--manger {
  --lueur: rgb(52 199 89 / 0.45);
}
.moment--laver {
  --lueur: rgb(48 176 199 / 0.5);
}
.moment--femmes {
  --lueur: rgb(37 86 196 / 0.95);
}
.moment--rouvre {
  --lueur: rgb(52 199 89 / 0.45);
}
.moment-haut {
  display: flex;
  align-items: center;
  gap: 10px;
}
.moment-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}
.moment-ic .ic {
  width: 1.3rem;
  height: 1.3rem;
}
.moment-eti {
  color: var(--sur-nuit-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.moment-txt {
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.moment-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.moment-action--appel {
  background: var(--vert);
  box-shadow: none;
}
.moment-action .chevron {
  opacity: 0.8;
}
.moment-barres {
  display: flex;
  gap: 6px;
  padding-inline: 4px;
}
.moment-barres span {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(11 27 54 / 0.12);
}
.moment-barres i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--nuit);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
[dir="rtl"] .moment-barres i {
  transform-origin: 100% 50%;
}
.moment-barres .passe i {
  transform: none;
}
.moment-barres .actif i {
  animation: remplir 6s linear forwards;
}
.moment.en-pause .moment-barres .actif i {
  animation-play-state: paused;
}
@keyframes remplir {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}

/* ============ 7. Listes ============ */
.filtres-plus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.filtres-plus .puce--claire {
  box-shadow: inset 0 0 0 1px var(--separateur);
}
.compte {
  padding-inline: 6px;
  color: var(--texte-2);
  font-size: 0.8125rem;
}
.liste {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--carte);
  box-shadow: var(--ombre);
}
.ligne {
  position: relative;
  display: flex;
  align-items: center;
}
.ligne + .ligne::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 70px 0;
  height: 0.5px;
  background: var(--separateur);
}
.ligne-lien {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-block: 12px;
  padding-inline: 14px 8px;
  color: var(--texte);
  text-decoration: none;
}
@media (hover: hover) {
  .ligne-lien:hover {
    background: #f7f8fb;
  }
}
.ligne-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cat, var(--nuit)) 13%, #fff);
  color: var(--cat, var(--nuit));
}
.ligne-ic .ic {
  width: 1.4rem;
  height: 1.4rem;
}
.ligne-corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.ligne-cat {
  color: var(--texte-2);
  font-size: 0.8125rem;
}
.ligne-nom {
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ligne-femmes {
  color: var(--texte-2);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.ligne-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
}
.ligne-dist {
  color: var(--texte-2);
  font-size: 0.9375rem;
}
.statut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.statut::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.statut--ouvert {
  color: var(--vert-texte);
}
.statut--bientot {
  color: var(--orange);
}
.statut--ferme,
.statut--inconnu {
  color: var(--texte-2);
}
.badge-femmes {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--tuile);
  color: var(--nuit);
  font-size: 0.8125rem;
  font-weight: 700;
}
/* Appeler depuis la liste : un rond vert */
.ligne-appel {
  display: grid;
  place-items: center;
  flex: none;
  align-self: stretch;
  width: 60px;
  color: #fff;
}
.ligne-appel .ic {
  box-sizing: content-box;
  width: 1.15rem;
  height: 1.15rem;
  padding: 11px;
  border-radius: 50%;
  background: var(--vert);
}
@media (hover: hover) {
  .ligne-appel:hover .ic {
    filter: brightness(1.1);
  }
}

/* ============ 8. Fiche d'un lieu ============ */
.fiche-cat {
  color: var(--sur-nuit-2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.fiche-nom {
  margin: 4px 0 12px;
  font-family: var(--police-titre);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.pastille-statut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--verre-nuit);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}
.pastille-statut::before {
  content: none;
}
.pastille-statut i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aab4c4;
}
.pastille-statut.statut--ouvert i {
  background: #4cd964;
}
.pastille-statut.statut--bientot i {
  background: #ffb340;
}
.fiche-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.fiche-actions .bouton {
  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  font-size: 1.0625rem;
}
.fiche-actions:empty {
  display: none;
}
.bande-ronds {
  display: flex;
  gap: 8px;
}
.infos-lieu {
  overflow: hidden;
}
.info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
}
.info + .info {
  border-top: 0.5px solid var(--separateur);
}
.info > .ic {
  flex: none;
  color: var(--nuit);
}
.info > span {
  flex: 1;
  min-width: 0;
}
.adresse-txt {
  font-weight: 600;
}
.bouton-mini {
  position: relative;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tuile);
  color: var(--nuit);
  font-size: 0.9375rem;
  font-weight: 600;
}
.bouton-mini::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.lien-tel {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.bloc,
.bloc-femmes,
.avis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.bloc h2,
.bloc-femmes h2,
.avis h2,
.etape h2 {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bloc-femmes {
  align-items: flex-start;
}
.bloc-femmes h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.horaires {
  width: 100%;
  border-collapse: collapse;
}
.horaires th,
.horaires td {
  padding: 10px 0;
  border-top: 0.5px solid var(--separateur);
  font-weight: 400;
  text-align: start;
  vertical-align: top;
}
.horaires tr:first-child th,
.horaires tr:first-child td {
  border-top: 0;
}
.horaires td {
  color: #3c4350;
  text-align: end;
}
.horaires tr.auj th,
.horaires tr.auj td {
  color: var(--nuit);
  font-weight: 700;
}
.puces-txt {
  display: grid;
  gap: 6px;
  padding-inline-start: 1.1em;
  list-style: disc;
  font-size: 0.9375rem;
}
.puces-txt li::marker {
  color: var(--texte-2);
}
.criteres {
  display: grid;
  gap: 8px;
}
.criteres li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.criteres .ic {
  color: var(--vert-texte);
}
.avis .boutons .bouton {
  flex: 1;
}
/* Signaler : une ligne qui s'ouvre */
.signaler > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.signaler > summary::-webkit-details-marker {
  display: none;
}
.signaler > summary > .ic:first-child {
  color: var(--bleu);
}
.signaler > summary .chevron {
  margin-inline-start: auto;
  transition: transform 0.2s ease;
}
.signaler[open] > summary .chevron {
  transform: rotate(90deg);
}
.form-signaler {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}
.signaler--page .form-signaler {
  padding-top: 16px;
}
.form-signaler fieldset {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-signaler legend {
  margin-bottom: 4px;
  padding: 0;
  font-weight: 700;
}
.choix-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 0.5px solid var(--separateur);
}
.choix-ligne input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--nuit);
}
.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-petit);
  background: var(--gris-plein);
  color: var(--texte);
  font-size: 1.0625rem;
  resize: vertical;
}
.merci {
  color: var(--vert-texte);
  font-weight: 600;
}
.merci--erreur {
  color: var(--rouge-texte);
}

/* ============ 9. Urgences, sécurité ============ */
.bouton-securite {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin-top: 20px;
  padding: 0 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--rouge-texte);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.7);
}
.bouton-securite span {
  flex: 1;
}
.bouton-securite > .ic:first-child {
  width: 1.5rem;
  height: 1.5rem;
}
.urgences {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.urgence {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
  padding-inline: 16px 14px;
}
.urgence-num {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  min-width: 4.2ch;
  color: var(--nuit);
  font-family: var(--police-titre);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.urgence--forte .urgence-num {
  color: var(--rouge-texte);
}
.urgence-txt {
  flex: 1;
  min-width: 0;
  color: #3c4350;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.urgence-actions {
  display: flex;
  gap: 8px;
}
.rond-action {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--vert);
  color: #fff;
}
.rond-action .ic {
  width: 1.25rem;
  height: 1.25rem;
}
.rond-action--gris {
  background: var(--gris-plein);
  color: var(--nuit);
}
.etapes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.etape {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}
.etape p {
  color: #3c4350;
  font-size: 0.9375rem;
}
.surs {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.surs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.surs li + li {
  border-top: 0.5px solid var(--separateur);
}
.surs-txt {
  display: flex;
  flex: 1 1 140px;
  flex-direction: column;
  min-width: 0;
}
.surs-txt small {
  color: var(--texte-2);
  font-size: 0.8125rem;
}

/* ============ 10. Infos, réglages, à propos ============ */
.fiches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fiche > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.fiche > summary::-webkit-details-marker {
  display: none;
}
.fiche-tete {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fiche-titre {
  font-weight: 600;
  line-height: 1.3;
}
.fiche-resume {
  color: var(--texte-2);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.fiche > summary .chevron {
  transition: transform 0.2s ease;
}
.fiche[open] > summary .chevron {
  transform: rotate(90deg);
}
.fiche .puces-txt {
  padding-block: 0 4px;
  padding-inline: calc(14px + 44px + 12px + 1.1em) 16px;
}
.fiche .boutons {
  padding: 10px 14px 16px;
}
.liens {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.liens a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--texte);
  text-decoration: none;
}
.liens a + a {
  border-top: 0.5px solid var(--separateur);
}
@media (hover: hover) {
  .liens a:hover {
    background: #f7f8fb;
  }
}
.liens a > .ic:first-child {
  color: var(--nuit);
}
.liens a span {
  flex: 1;
}
.bloc-nu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.langues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
}
.langue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-petit);
  background: none;
  text-align: start;
}
@media (hover: hover) {
  .langue:hover {
    background: #f4f5f9;
  }
}
.langue[aria-pressed="true"] {
  background: var(--tuile);
  color: var(--nuit);
  font-weight: 700;
}
.langue .ic {
  color: var(--bleu);
}
.effacer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.qr-telephone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.qr {
  flex: none;
  width: 132px;
  padding: 8px;
  border-radius: var(--r-petit);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--separateur);
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.apropos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apropos h2 {
  margin-top: 6px;
  font-family: var(--police-titre);
  font-size: 1.25rem;
}
.apropos code {
  font-size: 0.875em;
}

/* ============ 11. Onglets : capsule de verre en bas ============ */
.onglets {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: var(--onglets-bas);
  display: flex;
  width: min(100% - 28px, 26rem);
  height: var(--onglets-h);
  padding: 6px;
  transform: translateX(-50%);
  border-radius: 32px;
  background: rgb(255 255 255 / 0.76);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 0 0 0.5px rgb(0 0 0 / 0.08), 0 12px 30px -10px rgb(11 27 54 / 0.45);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.onglets a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  border-radius: 26px;
  color: #3c4350;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.12s ease;
}
/* Cinq onglets : le nom peut tenir sur deux lignes (« Infos pratiques ») */
.onglets a span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* L'onglet « Femmes » : en couleur, toujours */
.onglets .onglet-femmes {
  background: var(--femmes);
  color: #fff;
}
.onglets .onglet-femmes[aria-current="page"] {
  background: var(--femmes);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.85), 0 0 0 2px var(--femmes);
}
.onglets .ic {
  width: 1.5rem;
  height: 1.5rem;
}
.onglets a[aria-current="page"] {
  background: rgb(11 27 54 / 0.08);
  color: var(--nuit);
}
.onglets .onglet-urg {
  color: var(--rouge-texte);
}
.onglets .onglet-urg[aria-current="page"] {
  background: rgb(215 0 21 / 0.08);
}
.onglet-langue {
  display: none;
}
/* Menu des langues */
.menu-langue {
  position: fixed;
  z-index: 70;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  inset-inline-end: 12px;
  display: grid;
  width: min(100% - 24px, 17rem);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--ombre-flottante), 0 0 0 0.5px rgb(0 0 0 / 0.08);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.menu-titre {
  padding: 8px 12px 4px;
  color: var(--texte-2);
  font-size: 0.8125rem;
  font-weight: 600;
}
.menu-langue button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: start;
}
@media (hover: hover) {
  .menu-langue button:hover {
    background: rgb(11 27 54 / 0.06);
  }
}
.menu-langue button[aria-checked="true"] {
  font-weight: 700;
}
.menu-langue .ic {
  color: var(--bleu);
}

/* ============ 12. Carte ============ */
.vue-carte {
  position: fixed;
  z-index: 5;
  inset: 0;
  background: #eceff1;
}
.plan {
  position: absolute;
  inset: 0;
  direction: ltr;
  background: #eceff1;
}
.plan .fond-tuiles {
  filter: saturate(0.45) contrast(0.95);
}
.leaflet-container {
  font-family: var(--police);
  font-size: 0.8125rem;
}
.carte-haut {
  position: absolute;
  z-index: 500;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.carte-haut > * {
  pointer-events: auto;
}
.carte-puces {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.puce-carte,
.rond-carte,
.calque {
  border: 0;
  color: var(--nuit);
}
.puce-carte {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 8px 20px -10px rgb(11 27 54 / 0.45);
  font-size: 0.9375rem;
  font-weight: 600;
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.puce-carte::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}
.puce-carte .ic {
  width: 1.05rem;
  height: 1.05rem;
}
.puce-carte[aria-pressed="true"] {
  background: var(--nuit);
  color: #fff;
}
.carte-ronds {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rond-carte {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.84);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 8px 20px -10px rgb(11 27 54 / 0.45);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.rond-carte .ic {
  width: 1.35rem;
  height: 1.35rem;
}
.rond-carte--bleu {
  color: var(--bleu);
}
.rond-carte[aria-expanded="true"] {
  background: var(--nuit);
  color: #fff;
}
.menu-calques {
  position: absolute;
  top: 56px;
  inset-inline-end: 56px;
  display: grid;
  width: 14rem;
  padding: 6px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: var(--ombre-flottante), 0 0 0 0.5px rgb(0 0 0 / 0.08);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.menu-sources {
  top: 112px;
}
.sources-carte {
  padding: 4px 12px 10px;
  color: var(--texte-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.sources-carte a {
  color: var(--nuit);
}
.calque {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  background: none;
  font-weight: 600;
  text-align: start;
}
.calque span {
  flex: 1;
}
.calque .coche {
  color: var(--bleu);
  visibility: hidden;
}
.calque[aria-pressed="true"] .coche {
  visibility: visible;
}
@media (hover: hover) {
  .calque:hover {
    background: rgb(11 27 54 / 0.06);
  }
}
.carte-msg {
  position: absolute;
  z-index: 500;
  top: calc(env(safe-area-inset-top, 0px) + 112px);
  left: 12px;
  right: 12px;
  max-width: 28rem;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: var(--r-petit);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--ombre-flottante);
  font-size: 0.9375rem;
}
/* Le panneau : verre blanc en bas de l'écran, juste au-dessus des onglets ; petit, pour voir la carte */
.panneau-carte {
  position: absolute;
  z-index: 600;
  left: 8px;
  right: 8px;
  bottom: calc(var(--onglets-bas) + var(--onglets-h) + 6px); /* juste au-dessus des onglets */
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 34rem;
  margin-inline: auto;
  padding: 10px;
  border-radius: 26px;
  background: rgb(255 255 255 / 0.86);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 16px 36px -14px rgb(11 27 54 / 0.5);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.pc-cherche {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  background: var(--gris-plein);
  color: var(--texte-2);
}
.pc-cherche .ic {
  width: 1.15rem;
  height: 1.15rem;
}
.pc-cherche input {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--texte);
  font-size: 1.0625rem;
}
.pc-cherche:focus-within {
  box-shadow: 0 0 0 2px var(--bleu);
}
/* Les catégories : une rangée de capsules qu'on fait défiler */
.pc-rang {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* De gauche à droite seulement. Les 3 px en haut et en bas : la zone à toucher des capsules, qui sinon défilait */
.pc-cats {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  margin-inline-end: -10px;
  padding: 3px 0;
  padding-inline-end: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}
/* Le petit panneau ne fait pas bouger la page derrière la carte */
.panneau-carte:not(.panneau-carte--choix, .panneau-carte--lieu) {
  touch-action: pan-x;
}
.pc-cats::-webkit-scrollbar {
  display: none;
}
.pc-cat {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 19px;
  background: rgb(11 27 54 / 0.07);
  color: var(--nuit);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.pc-cat::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}
.pc-cat .ic {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--cat, currentColor);
}
.pc-cat[aria-pressed="true"] {
  background: var(--cat, var(--nuit));
  color: #fff;
}
.pc-cat[aria-pressed="true"] .ic {
  color: #fff;
}
/* Le lieu touché, dans le panneau */
.panneau-carte--lieu {
  display: block;
  padding: 14px;
}
.pl-tete {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.pl-titre {
  flex: 1;
  min-width: 0;
}
.pl-titre h2 {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pl-fermer {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--gris-plein);
  color: var(--texte-2);
}
.pl-fermer::after {
  content: "";
  position: absolute;
  inset: -6px;
}
.pl-fermer .ic {
  width: 1rem;
  height: 1rem;
}
.panneau-carte--lieu > .statut,
.panneau-carte--lieu > .aide,
.panneau-carte--lieu > .badge-femmes {
  margin-top: 4px;
}
.pl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pl-actions .bouton {
  flex: 1 1 0;
  min-width: max-content;
  min-height: 46px;
  padding: 0 14px;
  font-size: 0.9375rem;
}
/* Repères */
.marqueur-boite {
  border: 0;
  background: none;
}
.marqueur {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cat, var(--nuit));
  color: #fff;
  box-shadow: 0 1px 4px rgb(11 27 54 / 0.35);
  transition: transform 0.15s ease;
}
.marqueur,
.marqueur-eq {
  position: relative;
}
/* Repères de 36 et 30 px : zone à toucher de 44 px autour */
.marqueur::after,
.marqueur-eq::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}
.marqueur-eq::after {
  inset: -8px;
}
.marqueur .ic {
  width: 1.1rem;
  height: 1.1rem;
}
/* Fermé : fond blanc, pictogramme de la couleur de la catégorie */
.marqueur--ferme {
  border-color: #d5dce8;
  background: #fff;
  color: var(--cat, #3d4b63);
}
.marqueur--protege {
  border-style: dashed;
}
.marqueur--choisi {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--bleu), 0 6px 14px -4px rgb(11 27 54 / 0.6);
}
.moi {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 0 0 8px rgb(10 132 255 / 0.22), 0 1px 4px rgb(0 0 0 / 0.3);
}
/* Faisceau de la boussole : là où l'on regarde (comme dans Plans) */
.moi-cap {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: conic-gradient(from -32deg, rgb(10 132 255 / 0.55) 0deg 64deg, transparent 64deg);
  -webkit-mask: radial-gradient(circle, #000 18%, rgb(0 0 0 / 0.6) 42%, transparent 70%);
  mask: radial-gradient(circle, #000 18%, rgb(0 0 0 / 0.6) 42%, transparent 70%);
  opacity: 0;
  transform: rotate(var(--cap, 0deg));
  transition: transform 0.15s linear, opacity 0.3s ease;
}
.moi--cap .moi-cap {
  opacity: 1;
}
/* Une flèche au bord du point bleu, dans le sens du regard */
.moi-fleche {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 11px;
  margin: -5.5px 0 0 -7px;
  fill: #0a84ff;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0;
  transform: rotate(var(--cap, 0deg)) translateY(-20px);
  transition: transform 0.15s linear, opacity 0.3s ease;
}
.moi--cap .moi-fleche {
  opacity: 1;
}
.marqueur-eq {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--nuit);
  border-radius: 50%;
  background: #fff;
  color: var(--nuit);
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.5);
}
.marqueur-eq .ic {
  width: 1rem;
  height: 1rem;
}
.marqueur-eq--eau {
  color: var(--bleu);
}
.marqueur-eq--police,
.marqueur-eq--urgences {
  border-color: var(--bleu);
  background: var(--bleu);
  color: #fff;
}
.leaflet-bar {
  overflow: hidden;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: var(--ombre-flottante) !important;
}
.leaflet-bar a,
@media (hover: hover) {
  .leaflet-bar a:hover {
    width: 44px !important;
    height: 44px !important;
    border-bottom-color: var(--separateur) !important;
    background: rgb(255 255 255 / 0.92) !important;
    color: var(--nuit) !important;
    line-height: 44px !important;
  }
}
.leaflet-control-zoom {
  display: none;
}

/* ============ 13. Guidage à pied ============ */
body.en-guide .onglets,
.vue-carte.en-guide .carte-puces,
.vue-carte.en-guide .panneau-carte,
.vue-carte.en-guide .carte-msg,
.vue-carte.en-guide [data-action="calques"],
.vue-carte.en-guide .menu-calques,
.vue-carte.en-guide #btn-localiser:not(.btn-localiser--visible) {
  display: none !important;
}
.vue-carte.en-guide .carte-haut {
  top: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 170px);
  justify-content: flex-end;
}
.guide-haut,
.guide-bas {
  position: absolute;
  z-index: 650;
  left: 10px;
  right: 10px;
  max-width: 34rem;
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: var(--ombre-flottante);
}
.guide-haut {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 16px;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(37 86 196 / 0.9), rgb(37 86 196 / 0) 70%),
    var(--nuit);
}
.guide-haut--arrivee {
  background: var(--vert);
}
.guide-haut--erreur {
  background: rgb(255 255 255 / 0.95);
  color: var(--texte);
}
.guide-fleche {
  flex: none;
  width: 48px;
  height: 48px;
}
.guide-texte {
  min-width: 0;
}
.guide-dist {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
}
.guide-consigne {
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.guide-puis {
  margin-top: 6px;
  font-size: 0.9375rem;
  opacity: 0.85;
}
.guide-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.guide-msg .ic {
  flex: none;
  color: var(--bleu);
}
.guide-attente {
  flex: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgb(255 255 255 / 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tourne 0.9s linear infinite;
}
@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}
.guide-bas {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
}
.guide-resume {
  min-width: 0;
}
.guide-temps {
  color: var(--vert-texte);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
.guide-detail,
.guide-dest {
  margin-top: 2px;
  color: var(--texte-2);
  font-size: 0.9375rem;
}
.guide-dest {
  overflow-wrap: anywhere;
}
.guide-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Boutons du guidage (noms de classes repris de la version précédente) */
.guide-boutons .btn,
.guide-bas > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--nuit);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.guide-boutons .btn--doux,
.guide-bas > .btn--doux {
  background: var(--gris-plein);
  color: var(--nuit);
}
.guide-boutons .btn--appel {
  background: var(--vert);
  color: #fff;
}
.guide-boutons .btn .ic {
  width: 1.1rem;
  height: 1.1rem;
}
.guide-voix[aria-pressed="true"] {
  background: var(--nuit) !important;
  color: #fff !important;
}
.guide-autre {
  flex-basis: 100%;
  color: var(--texte-2);
  font-size: 0.9375rem;
}

/* ============ 14. Mouvements ============ */
/* Retour dès qu'on touche (pas au relâchement) : fond pour les lignes, léger rétrécissement pour les boutons */
.ligne-lien:active,
.liens a:active,
.lien-ligne:active,
.langue:active,
.calque:active,
.menu-langue button:active,
.fiche > summary:active,
.signaler > summary:active {
  background: rgb(11 27 54 / 0.06);
}
.puce,
.pc-cat,
.puce-carte,
.rond-verre,
.rond-carte,
.rond-action,
.moment-pause,
.bouton-mini,
.pl-fermer,
.ligne-appel .ic {
  transition: transform 0.12s ease;
}
.puce:active,
.pc-cat:active,
.puce-carte:active,
.rond-verre:active,
.rond-carte:active,
.rond-action:active,
.moment-pause:active,
.bouton-mini:active,
.pl-fermer:active,
.onglets a:active,
.ligne-appel:active .ic,
.moment-lien:active {
  transform: scale(0.95);
}
.moment-lien {
  transition: transform 0.15s ease;
}
/* Changement d'écran : fondu du contenu seulement (la barre d'onglets ne bouge pas) */
.vue.fondu {
  animation: fondu-page 0.18s ease-out;
}
@keyframes fondu-page {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .guide-attente {
    animation-duration: 2s;
  }
  .moment-barres {
    display: none;
  }
  .vue.fondu {
    animation: none;
  }
  /* Pas de rétrécissement au toucher : le fond qui change suffit */
  .puce:active,
  .pc-cat:active,
  .puce-carte:active,
  .rond-verre:active,
  .rond-carte:active,
  .rond-action:active,
  .moment-pause:active,
  .bouton-mini:active,
  .pl-fermer:active,
  .onglets a:active,
  .ligne-appel:active .ic,
  .moment-lien:active,
  .bouton:active,
  .proche:active,
  .carte-femmes:active,
  .tuile:active .tuile-ic {
    transform: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .onglets,
  .panneau-carte,
  .menu-langue,
  .menu-calques,
  .puce-carte,
  .rond-carte,
  .guide-bas,
  .carte-msg {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Verre sur le bandeau bleu nuit : bleu plein */
  .puce:not([aria-pressed="true"]):not([aria-expanded="true"]),
  .rond-verre:not([aria-pressed="true"]),
  .proche,
  .pastille-statut,
  .page-ic:not(.page-ic--bleu):not(.page-ic--blanc):not(.page-ic--rouge),
  .bouton--verre,
  .horsligne {
    background: #283548;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-transparency: reduce) and (min-width: 1024px) {
  .onglets {
    background: var(--nuit);
  }
}

/* ============ 15. Petits écrans (320 px) ============ */
@media (max-width: 359px) {
  :root {
    --gouttiere: 14px;
  }
  .bande-titre {
    font-size: 1.75rem;
  }
  .tuile-ic {
    width: 60px;
    height: 60px;
    border-radius: 19px;
  }
  .fiche-actions .bouton {
    padding: 0 10px;
    font-size: 0.9375rem;
  }
}

/* ============ 16. Tablette ============ */
@media (min-width: 640px) {
  :root {
    --gouttiere: 24px;
  }
  .grille {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ============ 17. Ordinateur ============ */
@media (min-width: 1024px) {
  :root {
    --gouttiere: 32px;
    --onglets-h: 54px;
  }
  /* Les onglets passent en haut à droite, en capsule de verre sombre */
  .onglets {
    top: 16px;
    bottom: auto;
    left: auto;
    inset-inline-end: 24px;
    width: auto;
    height: 54px;
    gap: 2px;
    padding: 5px;
    transform: none;
    background: rgb(11 27 54 / 0.82);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 12px 30px -12px rgb(0 0 0 / 0.5);
  }
  .onglets a,
  .onglet-langue {
    flex: none;
    flex-direction: row;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    color: #fff;
    font-size: 0.9375rem;
  }
  .onglets .ic {
    width: 1.2rem;
    height: 1.2rem;
  }
  .onglets a:hover,
  .onglet-langue:hover {
    background: rgb(255 255 255 / 0.12);
  }
  .onglets a[aria-current="page"] {
    background: #fff;
    color: var(--nuit);
  }
  .onglets .onglet-urg {
    color: #ffb4ae;
  }
  .onglets .onglet-urg[aria-current="page"] {
    background: #fff;
    color: var(--rouge-texte);
  }
  .onglet-langue {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: none;
    font-weight: 600;
  }
  .menu-langue {
    top: 76px;
    inset-inline-end: 24px;
  }
  .bande {
    padding-top: 22px;
    padding-bottom: 76px;
  }
  .bande-haut [data-action="menu-langue"] {
    display: none;
  }
  .bande--accueil .bande-in > :not(.bande-haut) {
    max-width: 46rem;
  }
  .page-tete h1 {
    font-size: 2.125rem;
  }
  .bande--page .bande-in > :not(.bande-haut):not(.retour) {
    max-width: 52rem;
  }
  .feuille {
    margin-top: -40px;
    padding: 24px max(var(--gouttiere), calc((100% - 70rem) / 2)) 64px;
    border-radius: 34px 34px 0 0;
  }
  .feuille--etroite > * {
    width: 100%;
    max-width: 46rem;
  }
  /* Accueil : « Pour les femmes » et les besoins côte à côte */
  .accueil-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 16px;
  }
  .carte-femmes {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 24px;
  }
  .carte-femmes-txt strong {
    font-size: 1.75rem;
  }
  .besoins {
    padding: 18px 12px 6px;
    border-radius: var(--r);
    background: var(--carte);
    box-shadow: var(--ombre);
  }
  .tuile-ic {
    box-shadow: none;
  }
  .moment-piste {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .moment-carte {
    width: calc((100% - 24px) / 3);
  }
  /* Listes et fiches : la liste à gauche, la carte de ses lieux à droite */
  .colonnes {
    display: grid;
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .col-carte {
    position: sticky;
    top: 84px;
    display: block;
    height: calc(100vh - 100px);
    min-height: 360px;
  }
  body.avec-panneau .col-carte .vue-carte {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--ombre-flottante), 0 0 0 0.5px rgb(0 0 0 / 0.06);
  }
  body.avec-panneau .vue-carte .carte-puces,
  body.avec-panneau .vue-carte .panneau-carte,
  body.avec-panneau .vue-carte [data-action="calques"],
  body.avec-panneau .vue-carte .menu-calques {
    display: none;
  }
  body.avec-panneau .vue-carte .carte-haut {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: auto;
  }
  body.avec-panneau .vue-carte .carte-msg {
    top: 12px;
  }
  .leaflet-control-zoom {
    display: block;
  }
  /* Onglet Carte : le panneau à gauche, la carte autour */
  body.sur-carte .panneau-carte {
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
    width: 380px;
    max-width: none;
    margin: 0;
  }
  body.sur-carte .pc-rang {
    flex-wrap: wrap;
  }
  body.sur-carte .pc-cats {
    display: contents;
  }
  [dir="rtl"] body.sur-carte .panneau-carte {
    left: auto;
    right: 16px;
  }
  body.sur-carte .carte-haut {
    top: 84px;
    left: 412px;
    right: 24px;
  }
  [dir="rtl"] body.sur-carte .carte-haut {
    left: 24px;
    right: 412px;
  }
  .carte-puces {
    flex-direction: row;
  }
  body.sur-carte .carte-msg {
    top: 84px;
    left: 412px;
  }
  .guide-haut {
    top: 84px;
  }
}

/* ============ 18. v34 : transports, installation, qui sommes-nous ============ */
/* Lignes de métro, tram et bus en pastilles (couleurs des lignes Ilévia pour le métro) */
.lignes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}
.ligne-tc {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #e6e7ee;
  color: var(--nuit);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ligne-tc--m1 {
  background: #f6c400;
  color: #1c1c1e;
}
.ligne-tc--m2 {
  background: #d4001c;
  color: #fff;
}
.ligne-tc--tram {
  background: #0b7a3e;
  color: #fff;
  border-radius: 11px;
}
.arrets h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.arrets ul {
  display: flex;
  flex-direction: column;
}
.arrets li + li {
  border-top: 0.5px solid var(--separateur);
}
.arrets li a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 52px;
  padding: 10px 0;
  color: var(--texte);
  text-decoration: none;
}
.arret-nom {
  flex: 1 1 8rem;
  min-width: 0;
  font-weight: 600;
}
.arret-min {
  color: var(--texte-2);
  font-size: 0.9375rem;
}
.marqueur-eq--arret {
  color: var(--nuit);
}
/* Installation pas à pas */
.etapes-install {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.etapes-install li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.etape-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nuit);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Le dessin du bouton à toucher, comme sur le téléphone */
.etape-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  border-radius: 12px;
  background: var(--gris-plein);
  color: var(--bleu);
}
.etape-ic .ic {
  width: 1.4rem;
  height: 1.4rem;
}
/* Qui sommes-nous, JUNIA, partenaires */
.junia-bandeau {
  display: block;
  width: 150px;
  height: auto;
  margin-top: 20px;
}
.qui p + p {
  margin-top: 10px;
}
.valeurs {
  display: flex;
  flex-direction: column;
  padding: 6px 16px;
}
.valeurs li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
}
.valeurs li + li {
  border-top: 0.5px solid var(--separateur);
}
.partenaires {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 10px;
}
.partenaires li > * {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px;
  border-radius: var(--r);
  background: var(--carte);
  box-shadow: var(--ombre);
  color: var(--texte);
  text-decoration: none;
}
.partenaires img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}
.partenaires small {
  color: var(--texte-2);
  font-size: 0.8125rem;
}
.carte-junia {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--nuit);
  color: #fff;
  text-decoration: none;
}
.carte-junia img {
  flex: none;
  width: 92px;
  height: auto;
}
.carte-junia span {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.carte-junia small {
  color: var(--sur-nuit-2);
  font-size: 0.9375rem;
}
.carte-junia .chevron {
  opacity: 0.75;
}
@media (min-width: 1024px) {
  .onglets a span {
    display: inline;
    white-space: nowrap;
  }
}

/* ============ 19. v40 : la carte demande d'abord ce qu'on cherche ============ */
.panneau-carte--choix {
  max-height: calc(100dvh - var(--onglets-h) - var(--onglets-bas) - 90px);
  overflow-y: auto;
  padding: 14px;
}
.choix-titre {
  margin: 2px 4px 0;
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.choix-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
/* En tapant une recherche, on n'a plus besoin des catégories */
.panneau-carte--choix:has(#q-carte:not(:placeholder-shown)) .choix-cats,
.panneau-carte--choix:has(#q-carte:not(:placeholder-shown)) .choix-autres {
  display: none;
}
.choix-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--texte);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.12s ease;
}
.choix-cat:active {
  transform: scale(0.95);
}
.choix-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cat, var(--nuit));
  color: #fff;
}
.choix-ic .ic {
  width: 1.4rem;
  height: 1.4rem;
}
.choix-autres {
  display: flex;
  gap: 8px;
}
.choix-autres button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 22px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.choix-femmes {
  background: var(--femmes);
  color: #fff;
}
.choix-tout {
  background: var(--gris-plein);
  color: var(--nuit);
}
@media (prefers-reduced-motion: reduce) {
  .choix-cat:active {
    transform: none;
  }
}

/* v41 : carte fluide. Pas de flou de verre au-dessus d'une carte qui se redessine à chaque image (très coûteux). */
body.sur-carte .onglets,
.panneau-carte,
.puce-carte,
.rond-carte,
.menu-calques {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.sur-carte .onglets,
.puce-carte:not([aria-pressed="true"]),
.rond-carte:not([aria-expanded="true"]) {
  background-color: rgb(255 255 255 / 0.96);
}
/* Plusieurs lieux proches, vus de loin : un rond avec leur nombre */
.marqueur--groupe {
  width: 42px;
  height: 42px;
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1024px) {
  body.sur-carte .onglets {
    background-color: rgb(11 27 54 / 0.94);
  }
}

/* ============ 20. v42 : installer l'appli, bien visible ============ */
.installer-haut {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 0;
  border-radius: 16px;
  background: #ffcf3f;
  color: var(--nuit);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: start;
}
.installer-haut span {
  flex: 1;
}
.installer-haut:active {
  transform: scale(0.98);
}
/* Le message d'arrivée : seul, devant l'accueil flouté */
.avis-installer {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: flex;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
  background: rgb(11 27 54 / 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.avis-installer[hidden] {
  display: none;
}
html:has(.avis-installer:not([hidden])) {
  overflow: hidden;
}
.avis-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 28rem;
  margin: auto;
  padding: 20px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 60px -10px rgb(0 0 0 / 0.6);
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: center;
}
.avis-carte > img {
  align-self: center;
  border-radius: 15px;
}
.avis-carte h2 {
  font-family: var(--police-titre);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.avis-carte > p {
  color: var(--texte-2);
}
.avis-carte .etapes-install {
  gap: 10px;
  margin: 10px 0;
  text-align: start;
}
.avis-carte .pl-fermer {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
}
@media (prefers-reduced-transparency: reduce) {
  .avis-installer {
    background: var(--nuit);
  }
}
@media (prefers-reduced-motion: reduce) {
  .installer-haut:active {
    transform: none;
  }
}

/* ============ 21. v44 : finitions ============ */
/* Sous la carte, la couleur du plan : le fond bleu nuit de la page y faisait un rectangle bleu en bas
 * quand l'iPhone donne un écran plus court que le vrai */
html:has(body.sur-carte),
body.sur-carte .fond-page {
  background: #eceff1;
}
.panneau-carte {
  background-color: #fff;
}
/* Le panneau change de contenu (menu, catégories, lieu) : il arrive en douceur */
@media (prefers-reduced-motion: no-preference) {
  .panneau-carte {
    animation: panneau-liste 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .panneau-carte--choix {
    animation-name: panneau-choix;
  }
  .panneau-carte--lieu {
    animation-name: panneau-lieu;
  }
}
@keyframes panneau-liste {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes panneau-choix {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes panneau-lieu {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
/* Longues listes : seules les lignes à l'écran sont mises en page */
.vue:not(.entiere):is([data-vue="rubrique"], [data-vue="cat"], [data-vue="proche"], [data-vue="recherche"]) .ligne {
  content-visibility: auto;
  contain-intrinsic-size: auto 104px;
}
/* « En ce moment » : l'ombre des cartes n'est plus coupée */
.moment-piste {
  margin-bottom: -18px;
  padding-bottom: 32px;
}

/* ============ 22. v48 : notifications, un interrupteur par sujet ============ */
.alertes button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: var(--texte);
  font-size: 1.0625rem;
  text-align: start;
}
.alertes button + button {
  border-top: 0.5px solid var(--separateur);
}
.alertes button span {
  flex: 1;
}
.alertes button:disabled {
  opacity: 0.5;
}
.inter {
  flex: none;
  width: 52px;
  height: 32px;
  padding: 3px;
  border-radius: 16px;
  background: #8a8f9a;
  transition: background-color 0.2s ease;
}
.inter::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.alertes [aria-checked="true"] .inter {
  background: var(--vert);
}
.alertes [aria-checked="true"] .inter::before {
  transform: translateX(20px);
}
[dir="rtl"] .alertes [aria-checked="true"] .inter::before {
  transform: translateX(-20px);
}
#alertes-recues {
  display: grid;
  gap: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .inter,
  .inter::before {
    transition: none;
  }
}
