/* Feuille de style unique. Mobile d'abord : tout est dimensionne pour un iPhone tenu
   a une main, et l'ecran large n'est qu'un cas particulier traite a la fin.

   Les couleurs passent toutes par des variables. Le theme sombre n'est pas une
   surcouche : c'est le meme jeu de variables avec d'autres valeurs, ce qui evite
   les oublis de contraste. */

:root {
  --fond: #f6f6f8;
  --carte: #ffffff;
  --texte: #1a1a1f;
  --discret: #6a6a76;
  --bord: #e2e2ea;
  --accent: #ff2d6f;
  --accent-texte: #ffffff;
  --danger: #b3261e;
  --rayon: 14px;
  --ombre: 0 1px 3px rgba(0, 0, 0, .08);
  /* Marges de securite du materiel : encoche en haut, barre de geste en bas. */
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
}

[data-theme="sombre"] {
  --fond: #131316;
  --carte: #1e1e23;
  --texte: #f2f2f6;
  --discret: #9b9baa;
  --bord: #303038;
  --accent-texte: #ffffff;
  --danger: #f2b8b5;
  --ombre: none;
}

* { box-sizing: border-box; }

/* Le navigateur applique bien `display: none` a [hidden], mais avec la specificite
   d'un attribut : la moindre classe qui declare un display l'emporte et l'element
   cense etre cache reste affiche. Le bandeau de mise a jour ci-dessous en a fait les
   frais, et tout bloc replie derriere `hidden` aurait suivi. La regle globale ferme
   le piege une fois pour toutes, au lieu de le rouvrir a chaque nouveau conteneur. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Empeche Safari de grossir le texte en paysage. */
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(64px + var(--bas));
}

/* --- Entete ------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + var(--haut)) 16px 10px;
  background: color-mix(in srgb, var(--fond) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bord);
}

/* L'icone des pistes, a gauche du titre. Elle reste discrete tant qu'on n'est pas
   dessus : c'est un acces permanent, pas une destination du quotidien.

   Les 44 px sont repetes ici parce que la regle plus bas vise `button.icone` : un lien
   portant la meme classe n'en herite pas et retombe a la taille de l'emoji, soit
   22 px. Le defaut ne se voit pas a l'oeil, il se mesure. */
.entete-pistes {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin-left: -11px;
  font-size: 20px;
  text-decoration: none;
  opacity: .55;
  -webkit-tap-highlight-color: transparent;
}
.entete-pistes.actif { opacity: 1; }

.entete h1 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  /* Un titre qui passe a la ligne fait sauter la mise en page a chaque changement
     d'ecran. On le tronque plutot que de laisser l'entete respirer. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Vue ---------------------------------------------------------------- */

.vue { padding: 16px; display: grid; gap: 12px; }

.carte {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 14px 16px;
}

.carte h2 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.discret { color: var(--discret); font-size: 14px; }
.vide { text-align: center; color: var(--discret); padding: 32px 16px; }

.ligne { display: flex; align-items: center; gap: 12px; }
.ligne .titre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* --- Controles ---------------------------------------------------------- */

/* 44px : c'est la taille minimale d'une cible tactile confortable sur iPhone.
   En dessous, on rate le bouton une fois sur cinq en marchant. */
button, .bouton {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--carte);
  color: var(--texte);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  /* Supprime le surlignage bleu au tap, qui fait "page web" et pas "application". */
  -webkit-tap-highlight-color: transparent;
}

button.principal { background: var(--accent); color: var(--accent-texte); border-color: transparent; }
button.discret { background: none; border-color: transparent; color: var(--discret); }
button.danger { color: var(--danger); }
button:active { opacity: .7; }

button.icone {
  min-width: 44px;
  padding: 0;
  border-color: transparent;
  background: none;
  font-size: 20px;
}
button.icone.tourne { animation: tourner .8s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--fond);
  color: var(--texte);
  font-family: inherit;
  /* 16px exactement, et jamais moins : en dessous, Safari zoome automatiquement a la
     mise au point et l'utilisateur se retrouve avec une page decalee.
     A ecrire en proprietes separees : `font: 16px/1.4 inherit` est invalide (le
     raccourci n'accepte pas `inherit` comme famille) et le navigateur retombe alors
     sur sa taille par defaut, autour de 13px. */
  font-size: 16px;
  line-height: 1.4;
}
textarea { min-height: 96px; resize: vertical; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--discret); }

.champs { display: grid; gap: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Onglets ------------------------------------------------------------ */

.onglets {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  padding-bottom: var(--bas);
  background: color-mix(in srgb, var(--carte) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--bord);
}

.onglets a {
  flex: 1;
  padding: 12px 4px;
  text-align: center;
  text-decoration: none;
  color: var(--discret);
  font-size: 13px;
  font-weight: 550;
  -webkit-tap-highlight-color: transparent;
}
.onglets a.actif { color: var(--accent); }

/* --- Bandeaux ----------------------------------------------------------- */

.maj {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(8px + var(--haut)) 16px 8px;
  background: var(--accent);
  color: var(--accent-texte);
  font-size: 14px;
}
.maj span { flex: 1; }
.maj button { min-height: 36px; background: rgba(255, 255, 255, .18); border-color: transparent; color: inherit; }
/* Quand le bandeau est la, c'est lui qui absorbe l'encoche, plus l'entete. */
.maj:not([hidden]) ~ .entete { padding-top: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--bas));
  transform: translate(-50%, 12px);
  z-index: 20;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #1a1a1f;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* --- Pistes d'amelioration ------------------------------------------------ */

.bouton-mini { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; flex: none; }

/* Un champ qui se lit comme du texte tant qu'on n'y touche pas. */
.champ-discret { min-height: 0; padding: 2px 0; border: none; background: none; overflow: hidden; resize: none; }
.champ-discret:focus { outline: none; border-bottom: 1px solid var(--accent); }

.ligne-piste { padding: 10px 0; border-top: 1px solid var(--bord); }
.ligne-piste:first-of-type { border-top: none; }
/* La piste que vise le prochain Ctrl+V. Sans marque visible, la regle « la capture va
   la ou vous ecrivez » resterait une convention invisible, et une capture collee au
   mauvais endroit ne se remarquerait qu'apres coup. */
.piste-visee {
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.piste-haut { display: flex; align-items: flex-start; gap: 8px; }
.ligne-piste input[type="checkbox"] { width: 22px; height: 22px; min-height: 22px; flex: none; margin: 6px 0 0; accent-color: var(--accent); }
.piste-texte { flex: 1; font-size: 16px; }
.piste-faite .piste-texte { text-decoration: line-through; color: var(--discret); }
.piste-trombone { display: grid; place-items: center; cursor: pointer; }
.piste-limite { flex: none; font-size: 11px; color: var(--discret); align-self: center; }

/* Les captures jointes : assez grandes pour etre lisibles d'un coup d'oeil, assez
   petites pour que trois d'entre elles ne noient pas la liste. */
.piste-vignettes { display: flex; gap: 8px; margin: 8px 0 0 30px; flex-wrap: wrap; }
.piste-vignette { position: relative; }
.piste-vignette img {
  width: 84px;
  height: 128px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--bord);
  background: var(--fond);
}
.piste-vignette-retirer {
  position: absolute;
  top: -6px; right: -6px;
  width: 30px; height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  background: var(--carte);
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* --- La carte ------------------------------------------------------------ */

/* Le bloc de contenu ordinaire. Il porte un nom distinct de `.carte`, qui designe ici
   la carte geographique : deux sens pour un meme mot dans une application dont c'est
   l'objet principal se paierait a la premiere relecture. */
.carte-bloc {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 14px 16px;
}
.carte-bloc h2 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.carte-bloc h3 { margin: 12px 0 6px; font-size: 14px; font-weight: 650; color: var(--discret); }
.carte-bloc summary { cursor: pointer; font-weight: 550; }

/* L'hote de la carte est masque par defaut et occupe tout l'ecran sur la route Carte.
   Il n'est JAMAIS retire du document : un conteneur Leaflet detache puis rattache
   garde une animation de zoom inachevee et devient sourd a tout recadrage ensuite. */
.carte-hote { display: none; }

body.route-carte {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-bottom: 0;
  overflow: hidden;
}
body.route-carte .vue { display: none; }
body.route-carte .carte-hote {
  display: block;
  flex: 1;
  min-height: 0;
  position: relative;
}
body.route-carte .onglets { position: static; }

.carte-conteneur { height: 100%; width: 100%; background: var(--bord); }

/* Les commandes flottent sur la carte plutot que de lui prendre de la place : sur un
   telephone, chaque bandeau retire une bande de ville. */
.carte-filtres {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  z-index: 500;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.carte-filtres > * { pointer-events: auto; }

.filtres-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.filtres-ligne.secondaire { justify-content: flex-start; }

.filtre {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--bord);
  background: color-mix(in srgb, var(--carte) 92%, transparent);
  backdrop-filter: blur(8px);
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
/* Un filtre actif porte sa propre couleur de famille : c'est la meme que celle des
   reperes, donc on voit immediatement lesquels le bouton commande. */
.filtre.actif {
  background: var(--famille, var(--accent));
  border-color: transparent;
  color: #fff;
}
.filtre:not(.actif) { opacity: .82; }

/* Le filtre des retenus croise les trois familles au lieu d'en etre une quatrieme :
   il porte l'etoile des reperes retenus, pas une couleur de famille. */
.filtre-retenus.actif { background: #1a1a1f; color: #fff; }

.pastille {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--bord);
  background: color-mix(in srgb, var(--carte) 92%, transparent);
  backdrop-filter: blur(8px);
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.pastille.actif { background: var(--accent); border-color: transparent; color: var(--accent-texte); }

.carte-bas {
  position: absolute;
  left: 10px; bottom: 12px;
  z-index: 500;
  pointer-events: none;
}
.compteur {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--carte) 88%, transparent);
  backdrop-filter: blur(8px);
  color: var(--discret);
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* Le fond des transports est clair par nature, y compris quand l'application est en
   theme sombre. Les commandes posees dessus doivent rester lisibles. */
.carte-hote[data-fond="transports"] .filtre:not(.actif),
.carte-hote[data-fond="transports"] .pastille:not(.actif),
.carte-hote[data-fond="transports"] .compteur,
.carte-hote[data-fond="clair"] .filtre:not(.actif),
.carte-hote[data-fond="clair"] .pastille:not(.actif),
.carte-hote[data-fond="clair"] .compteur {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 0, 0, .12);
  color: #1a1a1f;
}

/* Leaflet dessine ses commandes en clair : on les rattache au theme. */
.leaflet-control-zoom a {
  background: var(--carte) !important;
  color: var(--texte) !important;
  border-color: var(--bord) !important;
}
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--carte) 82%, transparent) !important;
  color: var(--discret) !important;
  font-size: 10px;
}
.leaflet-control-attribution a { color: var(--discret) !important; }
.leaflet-container { font-family: inherit; }


/* --- Les noms de quartier sur la carte ------------------------------------ */

/* Du decor de fond : lisible, jamais dominant, et jamais cliquable. Le halo blanc est
   ce qui les rend lisibles sur un fond de carte charge de lignes de transport, sans
   avoir a poser un rectangle opaque qui masquerait la carte dessous. */
.etiquette-quartier {
  display: block;
  width: max-content;
  max-width: 140px;
  /* Sous le point de la station, et non dessus : les reperes des lieux sont ancres
     par leur pointe et occupent la place AU-DESSUS de leur point. Une etiquette centree
     se retrouvait donc regulierement cachee derriere un repere voisin. */
  transform: translate(-50%, 10px);
  color: #3d3d4a;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  text-shadow:
     0 0 3px #fff,  0 0 3px #fff,
     1px 1px 2px #fff, -1px -1px 2px #fff,
     1px -1px 2px #fff, -1px 1px 2px #fff;
}

.etiquette-quartier.niveau-arrondissement {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2b2b36;
}

.etiquette-quartier.niveau-quartier { font-size: 12px; }



/* --- Les stations de transport --------------------------------------------- */

/* Les symboles officiels de Berlin, reproduits plutot qu'inventes : le carre bleu du
   U-Bahn et le rond vert du S-Bahn sont ce qu'on cherche des yeux dans la rue. Les
   redessiner autrement obligerait a apprendre un second langage pour lire la meme
   information. */
.sym {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--sym-couleur, #0067B3);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
}
.sym-U { border-radius: 3px; }        /* carre  : U-Bahn */
.sym-S { border-radius: 50%; }        /* rond   : S-Bahn */

/* Le repere pose sur la carte : symboles puis nom, sur un fond clair qui le detache du
   plan sans le masquer. Non cliquable, tout est deja ecrit dessus. */
.station-carte {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 190px;
  padding: 3px 7px 3px 4px;
  border-radius: 999px;
  /* Centre sur le point de la station : un ancrage en pixels laisserait deborder les
     noms longs hors de l ecran, et Leaflet les couperait. */
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  pointer-events: none;
}
.station-carte .station-nom {
  color: #1a1a1f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sur le plan sombre, le meme repere en negatif. */

/* Dans la fiche du lieu : les symboles, le nom, puis les lignes en pastilles. */
.station-fiche { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.station-symboles { display: inline-flex; gap: 3px; }
.station-lignes { display: inline-flex; gap: 3px; flex-wrap: wrap; }

.ligne-puce {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--sym-couleur, #0067B3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
}

/* --- Les reperes ---------------------------------------------------------- */

.pin {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--pin-couleur, #94a3b8);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
}
.pin-symbole { transform: rotate(45deg); font-size: 16px; line-height: 1; }
/* Un lieu seulement envisage porte un contour en pointille : la difference avec un
   lieu decide doit se lire sans ouvrir la fiche. */
.pin-peutetre { border-style: dashed; }
/* Un lieu deja fait s'efface sans disparaitre : il reste sur la carte pour qu'on
   sache qu'on y est alle, mais il ne doit plus attirer l'oeil. */
.pin-fait { opacity: .45; }

.pin-pastille {
  position: absolute;
  top: -7px; right: -9px;
  transform: rotate(45deg);
  min-width: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1f;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* --- La feuille du bas ---------------------------------------------------- */

.feuille { position: fixed; inset: 0; z-index: 1000; }
.feuille-voile {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .2s;
}
.feuille.ouverte .feuille-voile { opacity: 1; }

.feuille-corps {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 86dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px calc(20px + var(--bas));
  background: var(--carte);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .28);
  transform: translateY(100%);
  transition: transform .22s ease-out;
}
.feuille.ouverte .feuille-corps { transform: translateY(0); }

/* La poignee est un vrai bouton et non un simple trait : c'est la zone qu'on vise
   pour refermer, et elle doit faire 44 px de haut comme toute cible tactile. */
.feuille-poignee {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: none;
  background: none;
  position: relative;
}
.feuille-poignee::after {
  content: "";
  position: absolute;
  left: 50%; top: 12px;
  transform: translateX(-50%);
  width: 42px; height: 5px;
  border-radius: 999px;
  background: var(--bord);
}

.feuille-corps h2 { margin: 4px 0 2px; font-size: 20px; }
.feuille-corps > label { margin-top: 12px; }

/* --- La bulle et la fiche ------------------------------------------------- */

.bulle { display: grid; gap: 12px; padding-bottom: 4px; }
.bulle-tete { display: flex; align-items: center; gap: 12px; }
.bulle-texte { display: grid; gap: 2px; min-width: 0; }
.bulle-texte strong { font-size: 17px; }

/* Le resume dans la bulle est coupe a trois lignes : au-dela, la bulle devient une
   fiche et la difference entre les deux disparait. La fiche complete reste a un tap. */
.bulle-resume {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bulle-savoir {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bulle-icone, .fiche-icone, .ligne-icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pin-couleur, #94a3b8) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--pin-couleur, #94a3b8) 45%, transparent);
  font-size: 19px;
}

button.large { width: 100%; }

.fiche-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fiche-tete h2 { margin: 0; }
.fiche-tete p { margin: 2px 0 0; }
.fiche-resume { margin: 12px 0; }

/* Les trois marques : trois cibles de meme poids, en ligne, atteignables au pouce
   sans ouvrir quoi que ce soit d'autre. */
.marques { display: flex; gap: 8px; }
.marque {
  flex: 1;
  min-height: 46px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 14px;
}
.marque.actif { background: var(--accent); color: var(--accent-texte); border-color: transparent; }

/* « A savoir » : les lignes qui changent une decision. Elles passent avant les
   informations pratiques, et se distinguent d'une simple liste a puces. */
.savoir { margin: 12px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.savoir li::marker { color: var(--accent); }

.details { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0; font-size: 15px; }
.details dt { color: var(--discret); font-size: 13px; padding-top: 2px; }
.details dd { margin: 0; }

.fiche-liens { display: grid; gap: 8px; margin: 16px 0 8px; }
.lien-bouton {
  display: block;
  min-height: 46px;
  line-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--fond);
  color: var(--texte);
  text-decoration: none;
  font-weight: 550;
  text-align: center;
}

.avertissement {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--texte);
  font-size: 13px;
  line-height: 1.45;
}

/* --- Listes --------------------------------------------------------------- */

.barre-recherche { position: sticky; top: calc(56px + var(--haut)); z-index: 5; }
.barre-recherche input { box-shadow: var(--ombre); }

.groupe { display: grid; gap: 2px; }
.groupe-titre {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--discret);
}

.resultats { display: grid; gap: 2px; }

.ligne-lieu {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--bord);
  border-radius: 0;
  background: none;
  text-align: left;
}
.ligne-lieu.fait { opacity: .5; }
.ligne-texte { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ligne-nom { font-weight: 600; }
.ligne-texte .discret { font-size: 13px; }
.ligne-note { font-size: 13px; font-style: italic; color: var(--texte); }
.ligne-par { font-size: 12px; }

.badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bord);
  font-size: 13px;
}
.badge-oui { background: var(--accent); color: var(--accent-texte); }

.compteurs { display: flex; gap: 8px; }
.compteur-case {
  flex: 1;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--carte);
  text-align: center;
}
.compteur-nombre { font-size: 18px; font-weight: 650; }

/* --- Ecran large -------------------------------------------------------- */

@media (min-width: 760px) {
  .entete, .vue, .onglets { max-width: 720px; margin-inline: auto; }
  .onglets { position: static; border-top: 1px solid var(--bord); }
  body.route-carte .carte-hote, body.route-carte .onglets { max-width: none; }
  body { padding-bottom: 24px; }
}

/* Respecte le reglage systeme d'animations reduites : sur une app qu'on ouvre
   vingt fois par jour, les animations decoratives finissent par lasser. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
