/*
 * style.css — « Quel est mon quartier à Mulhouse ? »
 * Thème sombre, rouge #ff3b30 en accent unique. Les couleurs et tailles principales sont en haut (variables :root).
 * Police : Bricolage Grotesque (titres), hébergée sur le site (pas de Google Fonts, donc pas de pistage).
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"),
       url("./fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"),
       url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"),
       url("../../quartiers/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #050505;
  --surface: #0e0e10;
  --surface-2: #161618;
  --bord: #26262a;
  --bord-fort: #3a3a40;
  --texte: #f3f3f1;
  --doux: #b2b2ba;
  --faible: #8c8c95;
  --rouge: #ff3b30;
  --rouge-clair: #ff6b61;
  --papier: #fbfbfa;
  --encre: #121214;
  --encre-doux: #55555d;
  --jaune: #ffe500;

  --police-titre: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --marge: clamp(16px, 4vw, 40px);
  --rayon: 28px;
  --ombre: 0 24px 70px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte);
  background:
    radial-gradient(900px 480px at 85% -8%, rgba(255, 59, 48, .16), transparent 62%),
    radial-gradient(700px 420px at -10% 4%, rgba(255, 255, 255, .05), transparent 60%),
    var(--noir);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
body.plein-ecran { overflow: hidden; }
<header class="entete" oncontextmenu="return false;" style="background-image: linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.82)), url('https://www.lavieamulhouse.com/Accueil/collecte/images/Pitiric-benne.png'); background-repeat: no-repeat; background-position: center; background-size: contain;">
::selection { background: var(--rouge); color: #fff; }

button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, a, input { outline-offset: 3px; }
:focus-visible { outline: 3px solid #fff; }

.conteneur { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--marge); }
.sr-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100001; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }
.sans-js { margin: 24px var(--marge); padding: 16px; border: 1px solid var(--rouge); border-radius: 16px; color: #fff; }

/* ---------- En-tête ---------- */

.entete { position: relative; z-index: 20; padding: clamp(20px, 5vw, 44px) 0 24px; }

.titre {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 5.8rem);
  line-height: .88;
  letter-spacing: -.05em;
  text-transform: none;
}
.titre__collecte {
  display: block;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  color: #fff;
  letter-spacing: -.06em;
  text-shadow: 0 1px 0 rgba(255,255,255,.1);
}
.titre__fin { 
  display: block;
  font-weight: 300; 
  color: #e4e4e6; 
  letter-spacing: -.035em;
  font-size: 0.92em;
  margin-top: 2px;
}

.intro {
  margin: 18px 0 0;
  max-width: none;      /* même largeur que la carte */
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--doux);
}
.intro strong { color: var(--texte); font-weight: 500; }

/* Champ de recherche */
.recherche { position: relative; margin-top: 22px; }

.champ {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 0;
  border: 2px solid #7a7a84;          /* contour bien visible */
  border-radius: 22px;
  background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s;
}
.champ--focus, .champ:focus-within { border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(255, 59, 48, .14); }
.champ__loupe { flex: none; margin-left: 20px; color: var(--faible); }

#rue {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--texte);
  font: 400 17px/1 var(--police);   /* 16 px minimum : évite le zoom automatique sur iPhone */
  letter-spacing: -.01em;
}
#rue::placeholder { color: var(--faible); }

.btn-chercher {
  flex: none;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  transition: background-color .2s, color .2s;
}
.btn-chercher:hover { background: var(--rouge); color: #fff; }

/* Bouton Effacer */
.btn-effacer {
  flex: none;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #2c2c31;
  border-radius: 999px;
  background: #1a1a1e;
  color: #b2b2ba;
  font-weight: 600;
  font-size: 13px;
  margin-right: 4px;
}
.btn-effacer:hover { background: #26262a; color: #fff; border-color: #3a3a40; }
.btn-effacer[hidden] { display: none; }
@media (min-width: 768px) {
  .btn-effacer { height: 56px; padding: 0 18px; }
}


@media (min-width: 768px) {
  .champ { border-radius: 30px; }
  #rue { height: 76px; font-size: 20px; padding-left: 14px; }
  .btn-chercher { height: 56px; padding: 0 34px; font-size: 15px; }
  .champ__loupe { margin-left: 28px; }
}

/* Suggestions */
.suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--bord);
  border-radius: 18px;
  background: #0b0b0c;
  box-shadow: var(--ombre);
}
.suggestions[hidden] { display: none; }
.suggestions__liste { padding: 8px; }
.suggestion { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.suggestion:hover, .suggestion.actif { background: #1b1b1e; }
.suggestion__fleche { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #2c2c31; border-radius: 50%; background: #17171a; color: var(--faible); font-size: 11px; }
.suggestion.actif .suggestion__fleche, .suggestion:hover .suggestion__fleche { color: #fff; border-color: var(--rouge); }
.suggestion__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suggestion__texte strong { font-size: 15px; font-weight: 600; }
.suggestion__texte span { font-size: 12.5px; color: var(--faible); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions__pied { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid #1c1c1f; background: #111113; font-size: 11.5px; color: var(--faible); }

/* Barre d'état : exemples ou résultat */
.barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 40px; margin-top: 16px; }
.barre__lib { margin-right: 2px; font-size: 13px; color: var(--faible); }
.barre__erreur { color: #ffb4ae; font-size: 14px; }

.exemple, .btn-fin {
  padding: 8px 14px;
  border: 1px solid #2c2c31;
  border-radius: 999px;
  background: #101012;
  color: var(--doux);
  font-size: 13px;
  transition: color .2s, border-color .2s, background-color .2s;
}
.exemple:hover, .btn-fin:hover { color: #fff; border-color: var(--rouge); background: #19191b; }

.pilule { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 100%; padding: 7px 16px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; }
.pilule strong { font-weight: 700; }
.pilule__sep { width: 1px; height: 14px; background: rgba(0, 0, 0, .22); }
.pilule__detail { color: #4a4a50; }
.pilule--multi { box-shadow: 0 0 0 2px var(--rouge), 0 0 18px rgba(255, 59, 48, .45); }
.pilule__badge { padding: 2px 10px; border-radius: 999px; background: var(--jaune); border: 1px solid #000; font-size: 11.5px; font-weight: 800; }

/* ---------- Carte ---------- */

.principal { flex: 1; padding-bottom: 40px; }

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bord);
  border-radius: 24px;
  background: #080808;
}
@media (min-width: 768px) { .carte { border-radius: var(--rayon); } }

.carte__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--bord);
  background: #0b0b0d;
}
.carte__espace { flex: 1 1 0; }
.btn-carte {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #3a3a40;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 13px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.btn-carte:hover { border-color: #fff; }
.btn-carte--blanc { background: #fff; border-color: #fff; color: #000; font-weight: 700; }
.btn-carte--blanc:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn-carte--contour { border-color: #fff; font-weight: 700; }
.btn-carte--contour:hover { background: #fff; color: #000; }
@media (max-width: 767px) {
  /* téléphone : une seule rangée que l'on fait glisser du doigt */
  .carte__barre { flex-wrap: nowrap; gap: 6px; padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .carte__barre::-webkit-scrollbar { display: none; }
  .btn-carte { flex: none; padding: 0 14px; font-size: 12.5px; }
  .carte__espace { display: none; }
}

.carte__zone { position: relative; display: flex; flex-direction: column; isolation: isolate; }
.carte__vue { position: relative; flex: 1; min-height: 0; }

#carte-map { width: 100%; height: 56vh; min-height: 360px; background: #e8e4dc; font: inherit; }
@media (min-width: 768px) { #carte-map { height: 70vh; min-height: 560px; } }

.carte__erreur { margin: 0; padding: 32px 24px; background: #111; height: 100%; color: var(--doux); }
.carte__note { position: absolute; left: 14px; right: 14px; bottom: 56px; z-index: 1100; max-width: 340px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .85); color: #ddd; font-size: 12.5px; }
.carte__note[hidden] { display: none; }

/* Fiche posée sur la carte (ordinateur) / au-dessus de la carte (téléphone) */
.panneau { order: -1; padding: 12px; }
.panneau.panneau--vide { display: none; }

@media (min-width: 768px) {
  .panneau {
    order: 0;
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1100;
    width: min(430px, 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    pointer-events: none;      /* la carte reste utilisable autour de la fiche */
  }
  .panneau > * { pointer-events: auto; }
  }

.fiche {
  position: relative;
  max-height: 100%;
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: var(--papier);
  color: var(--encre);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .25);
  animation: entree .45s cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px) { .fiche { padding: 28px; border-radius: 28px; } }

.fiche__fermer { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; background: #fff; color: var(--encre); font-size: 16px; line-height: 1; }
.fiche__fermer:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.fiche--attente { padding: 22px; background: rgba(8, 8, 8, .62); color: #d6d6da; border: 1px dashed rgba(255, 255, 255, .16); box-shadow: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fiche--attente .fiche__etiquette { color: var(--faible); }
.fiche__texte { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; }

.fiche__tete { display: flex; align-items: center; gap: 10px; }
.fiche__etiquette { font-size: 13px; font-weight: 600; color: var(--encre-doux); }
.point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 12px var(--rouge); }
.point--doux { background: #9a9aa2; box-shadow: none; }

.fiche__titre { margin: 18px 0 0; font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: .98; letter-spacing: -.035em; }
.fiche__fin { display: block; font-weight: 300; font-size: .62em; line-height: 1.15; letter-spacing: -.02em; color: #3a3a40; margin-bottom: 4px; }
.fiche__nom { display: block; color: var(--rouge); overflow-wrap: anywhere; }
.fiche__desc { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--rouge); font-size: 14.5px; line-height: 1.5; color: #3f3f46; }
.fiche__compte { margin: 10px 0 0; font-size: 13px; color: var(--encre-doux); }
.fiche__question { margin: 18px 0 0; font-family: var(--police-titre); font-weight: 600; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.fiche__pied { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 12px; line-height: 1.4; color: var(--encre-doux); }

.adresse { margin-top: 22px; padding: 16px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 16px; background: #f2f1ee; }
.adresse__lib { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--encre-doux); }
.adresse__nom { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.adresse__detail { margin: 3px 0 0; font-size: 13px; color: var(--encre-doux); }
.adresse__als { margin: 8px 0 0; font-size: 13px; color: #3f3f46; }
.adresse__als em { font-style: italic; font-weight: 600; }
.adresse .puces { margin-top: 12px; }
.coord { padding: 4px 9px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 8px; background: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.coord--rouge { background: var(--rouge); border-color: var(--rouge); color: #fff; }

.autres { margin-top: 20px; }

.propositions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.proposition { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 12px; background: #f2f1ee; text-align: left; transition: border-color .2s, background-color .2s; }
.proposition:hover { border-color: var(--rouge); background: #fff; }
.proposition strong { font-size: 14.5px; }
.proposition span { font-size: 12.5px; color: var(--encre-doux); }
.lien { margin-top: 14px; padding: 6px 0; border: 0; background: none; font-size: 13px; font-weight: 600; text-decoration: underline; color: var(--encre); }

@keyframes entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { @keyframes entree { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } } }

/* Pastilles / puces (rues, quartiers) */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 999px; background: rgba(0, 0, 0, .05); color: inherit; font-size: 12.5px; transition: border-color .2s, background-color .2s; }
.puce:hover { border-color: var(--rouge); }
.puce--sombre { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #cfcfd4; }
.puce--sombre:hover { color: #fff; }
.puce--quartier { padding: 7px 14px; border-color: var(--bord); background: #111113; color: #d4d4d8; }
.puce--quartier:hover { color: #fff; background: #19191b; }
.puces--quartiers { margin-top: 16px; }
.fiche .puce--quartier { border-color: rgba(0, 0, 0, .12); background: #f2f1ee; color: var(--encre); }
.puce__nb { color: var(--faible); font-size: 11.5px; }
.pastille { flex: none; width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Légende, étiquettes, repère (dans la carte) ---------- */

.legende {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 252px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 160px);   /* laisse la place aux boutons +/− en bas à gauche */
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 16px;
  background: rgba(10, 10, 10, .9);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.legende:empty, .legende[hidden] { display: none; }
.legende__entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: none; text-align: left; font-size: 12.5px; font-weight: 600; }
.legende__entete:hover { background: rgba(255, 255, 255, .08); }
.legende__etat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border: 1px solid #4a4a50; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: #ddd; }
.legende__fleche { transition: transform .2s; }
.legende__entete:not(.ouvert) .legende__fleche { transform: rotate(180deg); }
.legende__liste { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 6px 6px; border-top: 1px solid #333; }
.legende__liste[hidden] { display: none; }
.legende__ligne { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 13px; font-weight: 500; }
.legende__ligne:hover, .legende__ligne.actif { background: rgba(255, 255, 255, .14); }
.legende__ligne.actif { font-weight: 700; }
.legende__ligne .pastille { width: 16px; height: 16px; border-radius: 5px; }
.legende__nb { margin-left: auto; flex: none; color: #a3a3a8; font-size: 11px; font-weight: 400; white-space: nowrap; }
.legende__tout { width: 100%; min-height: 42px; margin-top: 4px; border: 0; border-top: 1px solid #333; background: transparent; color: #ccc; font-size: 12.5px; }
.legende__tout:hover { color: #fff; }

.etiquette-quartier {
  padding: 1px 7px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(0, 0, 0, .68) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
}
.etiquette-quartier::before { display: none !important; }
.sans-etiquettes .etiquette-quartier { display: none; }

.repere { position: relative; display: grid; place-items: center; width: 34px; height: 34px; }
.repere__onde { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 59, 48, .32); animation: onde 1.8s infinite; }
.repere__point { position: relative; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 6px rgba(255, 59, 48, .25), 0 0 24px rgba(255, 59, 48, .9); }
.repere--secondaire { display: block; width: 14px; height: 14px; margin: 1px; border: 2px solid #fff; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 8px rgba(255, 59, 48, .8); }
@keyframes onde { 0% { transform: scale(.8); opacity: .8; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

.leaflet-container { background: #e8e4dc; font: inherit; }
.leaflet-bar { border: 0 !important; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .35) !important; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; background: #111; color: #fff; border-bottom: 1px solid #2a2a2a !important; font-size: 18px; }
.leaflet-bar a:hover { background: #1e1e1e; color: #fff; }
.leaflet-control-attribution { max-width: 70vw; background: rgba(255, 255, 255, .8) !important; font-size: 10.5px; }

/* Plein écran de la carte */
.carte.plein { position: fixed; inset: 0; z-index: 9999; border: 0; border-radius: 0; height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top); }
.carte.plein .carte__zone { flex: 1; min-height: 0; }
.carte.plein #carte-map { height: 100%; min-height: 0; }
.carte.plein .panneau { display: none; }

/* ---------- Informations sous la carte ---------- */

.infos { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .infos { grid-template-columns: 1.05fr .95fr; margin-top: 32px; } }

.info { padding: 20px; border: 1px solid #1f1f22; border-radius: 18px; background: #0a0a0b; }
.info--credit { display: flex; align-items: flex-start; gap: 16px; }
.info__fabriq { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--doux); }
.info__fabriq strong { color: var(--texte); font-weight: 600; }
.btn-lien { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 20px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.btn-lien:hover { background: var(--rouge-clair); }
.lien-texte { padding: 0; border: 0; background: none; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lien-texte:hover { color: var(--rouge-clair); }
.intro--fabriq { margin-top: 12px; }
.info__icone { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #222; border-radius: 50%; background: #111; color: var(--faible); }
.info__fort { margin: 0; font-size: 14px; font-weight: 600; }
.info__doux { margin: 2px 0 0; font-size: 13px; color: var(--faible); }
.info__titre { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--faible); }

/* ---------- Pied de page ---------- */

.pied { margin-top: auto; padding: 24px 0 32px; border-top: 1px solid #141416; font-size: 12.5px; color: var(--faible); }
.pied__ligne { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; text-align: center; }
@media (min-width: 768px) { .pied__ligne { flex-direction: row; text-align: left; } }
.pied__stat { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--doux); }

/* ---------- Fenêtres « La FabriQ » et « Histoire des quartiers » ---------- */

.fq-ov {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, .76);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overscroll-behavior: contain;
  touch-action: manipulation;
}
.fq-ov.on { display: flex; }
.fq-card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 800px; max-height: 100%; background: #111113; color: #e5e5e5; border: 1px solid #333; border-radius: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); animation: fq-entree .3s cubic-bezier(.16, 1, .3, 1); outline: 0; }
@keyframes fq-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fq-top { display: flex; justify-content: flex-end; flex: none; padding: 10px 12px 0; }
.fq-x { min-width: 48px; min-height: 48px; border: 1px solid #444; border-radius: 50%; background: #1c1c1e; color: #fff; font-size: 20px; line-height: 1; }
.fq-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px clamp(18px, 4vw, 36px) 12px; font-size: 17px; line-height: 1.65; }
.fq-ov h2 { margin: 0 0 16px; font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.45rem, 3.4vw, 1.95rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.fq-ov h3 { margin: 28px 0 8px; font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.3; color: #fff; }
.fq-ov p { margin: 0 0 14px; }
.fq-ov ul { margin: 0 0 14px; padding-left: 1.25em; }
.fq-ov li { margin: 0 0 8px; padding-left: .2em; }
.fq-ov li::marker { color: var(--rouge); }
.fq-ov strong { color: #fff; }
.fq-ov .fq-end { margin-top: 22px; padding: 16px 18px; border: 1px solid #2e2e32; border-radius: 16px; background: #1b1b1e; color: #fff; font-weight: 600; }
.fq-ov .categorie-quartier { margin: 0 0 14px; padding: 16px clamp(14px, 3vw, 22px) 6px; border: 1px solid #272729; border-radius: 18px; background: #161618; }
.fq-ov .categorie-quartier h3 { margin: 0 0 10px; }
.fq-ov .fq-src { margin: 4px 0 8px; font-size: 13px; color: #8a8a90; }
.fq-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2a2d; background: #111113; border-radius: 0 0 24px 24px; }
.fq-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--rouge); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.fq-cta:hover { background: var(--rouge-clair); }
.fq-close { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 15px; }
@media (max-width: 767px) {
  .fq-ov { align-items: flex-end; padding: 0; }
  .fq-card { max-height: 94%; border-width: 1px 0 0; border-radius: 22px 22px 0 0; }
  .fq-body { font-size: 16px; }
  .fq-cta { flex: 1 1 100%; order: -1; }
  .fq-close { flex: 1 1 100%; background: #222; color: #fff; border: 1px solid #444; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fiche, .fq-card, .repere__onde { animation: none; }
}

.version { color: #5c5c64; font-size: 11px; }

.fiche__info { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff3cc; color: #4a3d00; font-size: 12.5px; line-height: 1.45; }

.puces--quartiers { flex-direction: column; gap: 8px; }
.puce--detail { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 14px; border-radius: 14px; text-align: left; }
.puce__ligne { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.puce__comp { padding-left: 18px; font-size: 12.5px; color: var(--encre-doux); }

/* ---------- Curseur de défilement à droite : tablettes, iPad et téléphones ---------- */
.curseur { display: none; }
@media (pointer: coarse), (max-width: 1199px) {
  .curseur {
    position: fixed;
    right: max(4px, env(safe-area-inset-right));
    top: max(84px, calc(env(safe-area-inset-top) + 64px));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 36px;
    opacity: .6;
    transition: opacity .2s;
  }
  .curseur.actif, .curseur:hover, .curseur:focus-within { opacity: 1; }
  .curseur.cache { display: none; }
  body.plein-ecran .curseur { display: none; }

  .curseur__fleche {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(12, 12, 14, .88);
    color: #fff;
  }
  .curseur__fleche:active { background: var(--rouge); border-color: var(--rouge); }

  .curseur__piste {
    position: relative;
    flex: 1;
    min-height: 80px;
    width: 14px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: rgba(12, 12, 14, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    touch-action: none;
  }
  .curseur__pouce {
    position: absolute;
    top: 0;
    left: 50%;
    width: 34px;
    height: 58px;
    margin-left: -17px;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
    touch-action: none;
    cursor: grab;
  }
  .curseur__pouce::before {            /* trois petits traits : « poignée » */
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 50%;
    height: 12px;
    transform: translateY(-50%);
    background: linear-gradient(var(--rouge) 0 2px, transparent 2px 5px, var(--rouge) 5px 7px, transparent 7px 10px, var(--rouge) 10px 12px);
    border-radius: 2px;
  }
  .curseur.actif .curseur__pouce { background: var(--rouge); cursor: grabbing; }
  .curseur.actif .curseur__pouce::before { background: linear-gradient(#fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); }
}


/* ========== COLLECTE - Badges OM / TRI / horaires ========== */
.fiche__collecte { margin-top: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; border: 1px solid; letter-spacing: -.01em; }
.badge-om { background: #ff3b30; color: #fff; border-color: #ff3b30; }
.badge-tri { background: #ffe500; color: #121214; border-color: #ffe500; }
.badge-bio { background: #1a2e1a; color: #7cffb0; border-color: #2a4a2a; }
.badge-hora { background: #1a1a1e; color: #b2b2ba; border-color: #2a2a2e; font-weight: 500; font-size: 12px; }
.badge-secteur { background: #161618; color: #e5e5e5; border-color: #3a3a40; font-weight: 600; }

.fiche__collecte-detail { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #161618; border: 1px solid #26262a; }
.fiche__collecte-detail p { margin: 6px 0; font-size: 13.5px; line-height: 1.5; color: var(--doux); }
.fiche__collecte-detail strong { color: #fff; }

.collecte-legende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.collecte-legende span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faible); }
.collecte-legende i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Pastilles secteurs collecte - même style que quartiers */
.puces--collecte .puce { background: #161618; border-color: #26262a; }
.puces--collecte .puce:hover { border-color: #3a3a40; }

/* Responsive fiche collecte */
@media (max-width: 600px) {
  .badge { font-size: 12px; padding: 6px 11px; }
}
/* Mode grand format / plein écran interne */
.carte.plein-ecran-interne {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: #0e0e10 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.carte.plein-ecran-interne .carte__zone {
  height: calc(100vh - 60px) !important;
}