/* Saint-Mathieu, le site du quartier (Bernex)
   Identité propre : vert « salons végétaux » de l'esplanade, marron des marronniers, pierre claire des places.
   Pensé pour tous les âges : texte de base 17 px (un peu plus que le standard de 16 px), contrastes AAA pour le texte courant,
   zones à toucher d'au moins 48 px, liens soulignés, aucune information transmise par la couleur seule. */
:root {
  --encre: #1c2621;
  --texte-doux: #46524b;
  --vert: #1e5b45;
  --vert-fonce: #143f30;
  --vert-clair: #e3eee5;
  --marron: #9a3f17;
  --marron-clair: #f7e9de;
  --pierre: #f4f0e8;
  --pierre-fonce: #e8e1d4;
  --blanc: #fff;
  --bord: #cfc7b8;
  --rouge: #b3261e;
  --rouge-clair: #fbe6e4;
  --bleu: #1d4f91;
  --bleu-clair: #e5edf8;
  --tram: #c8102e;
  --focus: #f2b705;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(28, 38, 33, .06), 0 6px 18px rgba(28, 38, 33, .07);
  --police: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --largeur: 74rem;
}

/* --- Base ------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--police); font-size: 1rem; line-height: 1.6; color: var(--encre); background: var(--pierre);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--marron); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; color: var(--encre); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.2rem; margin-top: 1em; }
p { margin: 0 0 1em; }
.petit { font-size: .9rem; color: var(--texte-doux); }
.surtitre { display: block; margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--marron); }
.intro { font-size: 1.15rem; max-width: 44rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--blanc); padding: .6rem 1rem; }
[hidden] { display: none !important; }

/* --- En-tête ---------------------------------------------------------------------------------- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bord); position: relative; }
.entete-int { max-width: var(--largeur); margin: 0 auto; padding: .7rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.marque { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--encre); flex: 1 1 0; min-width: 0; }
.marque span { min-width: 0; }
.marque strong { white-space: nowrap; }
.marque img { width: 52px; height: 52px; flex: none; }
.marque strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.marque small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--marron); }
.outils-entete { display: flex; gap: .5rem; align-items: center; flex: none; }
.bouton-menu {
  min-height: 3rem; min-width: 3rem; padding: .4rem .9rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--vert); color: var(--blanc); border: 2px solid var(--vert);
}
/* Choix de la langue : toujours visible, à côté du bouton Menu sur téléphone */
.langues { display: flex; align-items: center; border: 2px solid var(--bord); border-radius: 999px; overflow: hidden; }
.langues a { display: flex; align-items: center; min-height: 2.75rem; padding: .3rem .75rem; font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--texte-doux); }
.langues a + a { border-left: 2px solid var(--bord); }
.langues a:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.langues a[aria-current="true"] { background: var(--vert-clair); color: var(--vert-fonce); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; }
.menu a { display: flex; align-items: center; gap: .35rem; min-height: 3rem; padding: .5rem .85rem; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--encre); }
.menu a:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.menu a[aria-current="page"] { background: var(--vert); color: var(--blanc); }
.pastille-nombre { display: inline-block; min-width: 1.5em; padding: 0 .45em; border-radius: 999px; background: var(--rouge); color: var(--blanc); font-size: .8rem; text-align: center; line-height: 1.6; }
@media (max-width: 1099px) {
  #menu-principal { width: 100%; }
  .menu-js #menu-principal { display: none; }
  .menu-js #menu-principal.ouvert { display: block; }
  .menu { flex-direction: column; gap: 0; }
  .menu a { font-size: 1.1rem; border-bottom: 1px solid var(--pierre-fonce); border-radius: 0; }
  .menu-compte { margin-top: .8rem; padding-bottom: .6rem; }
  .menu-compte li:first-child a { border-top: 3px solid var(--vert); }
}
@media (max-width: 479px) {
  .entete-int { gap: .5rem; padding: .6rem .75rem; }
  .marque { gap: .5rem; }
  .marque img { width: 42px; height: 42px; }
  .marque strong { font-size: 1.12rem; }
  .marque small { font-size: .66rem; letter-spacing: .08em; }
  /* Téléphone : un seul bouton, celui de l'autre langue */
  .langues a[aria-current="true"] { display: none; }
  .langues a + a { border-left: 0; }
  .langues a { padding: .3rem .8rem; }
  .bouton-menu { padding: .4rem .8rem; }
}
@media (max-width: 359px) {
  .entete-int { padding: .6rem .6rem; }
  .marque { gap: .4rem; }
  .marque img { width: 32px; height: 32px; }
  .marque strong { font-size: .92rem; }
  .marque small { font-size: .6rem; letter-spacing: .05em; }
  .outils-entete { gap: .35rem; }
  .bouton-menu { padding: .4rem .6rem; }
}
/* Ordinateur : 1re ligne logo, compte et langue ; 2e ligne les rubriques du site */
@media (min-width: 1100px) {
  .bouton-menu { display: none; }
  .entete-int { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "marque compte outils" "sections sections sections";
    gap: .5rem 1rem; padding-bottom: 0; }
  .marque { grid-area: marque; }
  .outils-entete { grid-area: outils; }
  #menu-principal { display: contents; }
  .menu-compte { grid-area: compte; justify-content: flex-end; gap: .5rem; }
  .menu-compte a { min-height: 2.75rem; padding: .35rem 1rem; border: 2px solid var(--bord); border-radius: 999px; font-size: .95rem; white-space: nowrap; }
  .menu-compte .lien-compte { border-color: var(--vert); }
  .menu-compte a[aria-current="page"] { border-color: var(--vert); }
  .menu-sections { grid-area: sections; flex-wrap: nowrap; gap: .25rem; border-top: 1px solid var(--bord); padding: .35rem 0; }
  .menu-sections a { padding: .45rem .8rem; font-size: 1rem; white-space: nowrap; }
}

/* --- Mise en page ----------------------------------------------------------------------------- */
.page { max-width: var(--largeur); margin: 0 auto; padding: 1rem 1rem 2rem; }
.bloc { margin: 1.5rem 0 3rem; }
.fil { margin: .3rem 0 1rem; font-weight: 700; }
.texte-long { max-width: 46rem; }
.texte-long li { margin: .35rem 0; }
.titre-actions { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.titre-actions h1, .titre-actions h2 { margin: 0; }
.titre-actions > a:not(.bouton) { font-weight: 700; }
.vide { background: var(--blanc); padding: 1rem 1.2rem; border-radius: var(--rayon); }
.compte { font-weight: 700; margin: 1rem 0 .6rem; }
.encadre { margin: 1.5rem 0; padding: 1.1rem 1.3rem; background: var(--marron-clair); border-radius: var(--rayon); }
.encadre h2 { font-size: 1.3rem; }
.encadre > :last-child { margin-bottom: 0; }
.panneau { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.2rem 1.3rem; }

/* --- Boutons et formulaires ------------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: .6rem 1.4rem;
  background: var(--vert); color: var(--blanc); border: 2px solid var(--vert); border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: var(--blanc); }
.bouton-secondaire { background: var(--blanc); color: var(--vert-fonce); }
.bouton-secondaire:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.bouton-danger { background: var(--rouge); border-color: var(--rouge); }
.bouton-danger:hover { background: #8c1d17; border-color: #8c1d17; }
.bouton-lien { background: none; border: 0; padding: .3rem 0; font: inherit; color: var(--vert); text-decoration: underline; cursor: pointer; }
.bouton-lien-danger { color: var(--rouge); }
.actions, .champ-boutons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.actions { margin-bottom: 1rem; }
form.en-ligne { display: inline; }
label { font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 3.1rem; padding: .55rem .85rem; font: inherit; color: var(--encre);
  background: var(--blanc); border: 2px solid #7d857f; border-radius: 10px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--vert); }
input[type="checkbox"], input[type="radio"] { width: 1.6rem; height: 1.6rem; flex: none; accent-color: var(--vert); margin: .1rem 0 0; }
input[type="file"] { font: inherit; max-width: 100%; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
legend { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.formulaire-etroit { max-width: 38rem; }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; margin-bottom: .3rem; }
.champ-case { display: flex; align-items: flex-start; gap: .7rem; }
.champ-case label { margin: 0; font-weight: 400; }
.aide, .aide-case { margin: 0 0 .3rem; font-size: .92rem; font-weight: 400; color: var(--texte-doux); }
.aide-case { display: block; }
.message-erreur { margin: 0 0 .3rem; font-weight: 700; color: var(--rouge); }
.champ-erreur input, .champ-erreur select, .champ-erreur textarea { border-color: var(--rouge); }
fieldset.cases { display: grid; gap: .5rem; }
.ligne-champs { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; align-items: center; margin-bottom: .5rem; }
.ligne-champs-egale { display: grid; gap: 0 .8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message { padding: .9rem 1.1rem; border-radius: var(--rayon); margin: 0 0 1rem; border-left: 6px solid; background: var(--blanc); }
.message-succes { background: var(--vert-clair); border-color: var(--vert); }
.message.message-erreur { background: var(--rouge-clair); border-color: var(--rouge); color: var(--encre); font-weight: 400; }
.message-info { background: var(--marron-clair); border-color: var(--marron); }
.zone-danger { margin: 2rem 0 1.5rem; padding: .9rem 1.1rem; border: 2px solid #e6b3ae; border-radius: var(--rayon); background: var(--blanc); }
.zone-danger summary, details summary { cursor: pointer; font-weight: 700; min-height: 2rem; }
.zone-danger summary { color: var(--rouge); }
details form { margin-top: .7rem; }
.deconnexion { margin-top: 2rem; }
.filtres { display: grid; gap: .2rem 1rem; background: var(--blanc); padding: 1.1rem 1.2rem .3rem; border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 1rem; }
.filtres .champ-boutons { margin-bottom: 1.1rem; }
@media (min-width: 760px) { .filtres { grid-template-columns: 2fr 1fr 1fr; align-items: end; } .filtres .champ-boutons { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .filtres { grid-template-columns: 2fr 1fr 1fr auto; } .filtres .champ-boutons { grid-column: auto; } }

/* --- Accueil ---------------------------------------------------------------------------------- */
.une { display: grid; gap: 1.5rem; align-items: center; margin: .5rem 0 2.5rem; }
.une h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; }
.une .intro p:last-child { margin-bottom: 0; }
.une-plan { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); background: var(--blanc); text-decoration: none; color: var(--encre); }
.une-plan figcaption { padding: .7rem 1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
@media (min-width: 900px) { .une { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }
.chiffres-quartier { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.chiffres-quartier li { background: var(--blanc); border-radius: var(--rayon); padding: 1rem 1.1rem; border-top: 5px solid var(--vert); }
.chiffres-quartier strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--vert-fonce); font-weight: 800; }
.tuiles { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tuile {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: .1rem .9rem; align-items: center; height: 100%; min-height: 5.5rem;
  padding: 1rem 1.1rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  text-decoration: none; color: var(--encre); border: 2px solid transparent;
}
.tuile:hover { border-color: var(--vert); color: var(--encre); }
.tuile .icone { grid-row: span 2; width: 3.2rem; height: 3.2rem; padding: .55rem; border-radius: 12px; background: var(--vert-clair); color: var(--vert-fonce); }
.tuile strong { font-size: 1.15rem; line-height: 1.2; }
.tuile small { font-size: .92rem; color: var(--texte-doux); }
.tuile-accent .icone { background: var(--marron-clair); color: var(--marron); }
.tuiles-chiffres { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.tuile-chiffre { display: block; padding: 1rem 1.2rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); text-decoration: none; color: var(--encre); border: 2px solid transparent; }
.tuile-chiffre strong { display: block; font-size: 2.1rem; line-height: 1.1; color: var(--vert-fonce); }
.tuile-chiffre:hover { border-color: var(--vert); }
.tuile-chiffre.a-traiter { background: var(--marron-clair); border-color: var(--marron); }

/* --- Cartes (annonces, commerces) ------------------------------------------------------------- */
.grille { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.carte {
  display: flex; flex-direction: column; height: 100%; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  overflow: hidden; text-decoration: none; color: var(--encre); border: 2px solid transparent;
}
.carte:hover { border-color: var(--vert); color: var(--encre); }
.carte-urgente { border-color: #e6b3ae; }
.carte-image { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pierre-fonce); }
.carte-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-image-large { aspect-ratio: 16 / 9; }
.carte-texte { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .8rem 1rem 1rem; }
.carte-nom { font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.carte-meta { font-size: .9rem; color: var(--texte-doux); }
.carte-prix, .prix { font-weight: 800; color: var(--vert-fonce); }
.prix { font-size: 1.35rem; }
.etiquettes { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .4rem; }
.etiquette { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--pierre-fonce); color: var(--encre); }
.etiquette-offre { background: var(--vert-clair); color: var(--vert-fonce); }
.etiquette-demande { background: var(--bleu-clair); color: var(--bleu); }
.etiquette-urgent { background: var(--rouge); color: var(--blanc); }
.numero-plan { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .3rem; border-radius: 999px; background: var(--marron); color: var(--blanc); font-weight: 800; font-size: .9rem; }

/* --- Fiches (annonce, commerce) ---------------------------------------------------------------- */
.fiche, .annonce-corps { display: grid; gap: 1.5rem; margin: 1rem 0; }
@media (min-width: 900px) {
  .fiche { grid-template-columns: 3fr 2fr; align-items: start; }
  .annonce-corps:has(.photo-principale) { grid-template-columns: 5fr 6fr; align-items: start; }
}
.photo-principale { display: block; margin: 0 0 1rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.photo-principale img { display: block; margin: 0 auto; max-height: 65vh; width: auto; }
.description p { margin: 0 0 .8em; }
.infos { display: grid; gap: 1rem 2rem; background: var(--blanc); padding: 1.1rem 1.3rem; border-radius: var(--rayon); box-shadow: var(--ombre); }
.infos h2 { font-size: 1.25rem; }
.horaires { border-collapse: collapse; width: 100%; }
.horaires th { text-align: left; padding: .3rem 1rem .3rem 0; font-weight: 700; }
.horaires td { padding: .3rem 0; }
.horaires tr + tr th, .horaires tr + tr td { border-top: 1px solid var(--pierre-fonce); }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--vert-fonce); font-weight: 800; }
.vignette { border-radius: var(--rayon); }
.details { border-collapse: collapse; width: 100%; margin: 1rem 0; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; }
.details th, .details td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--pierre-fonce); vertical-align: top; overflow-wrap: anywhere; }
.details th { width: 11rem; color: var(--texte-doux); font-weight: 400; }

/* --- Listes : offres, agenda, messages ---------------------------------------------------------- */
.liste-promos { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.liste-promos a { display: flex; flex-direction: column; height: 100%; padding: .9rem 1.1rem; background: var(--blanc); border-left: 6px solid var(--marron); border-radius: var(--rayon); text-decoration: none; color: var(--encre); box-shadow: var(--ombre); }
.liste-promos a:hover { background: var(--marron-clair); }
.liste-promos span { font-size: .92rem; color: var(--texte-doux); }
.encadre-promo { background: var(--blanc); border-left: 6px solid var(--marron); }
.encadre-promo h3 { margin-top: 0; }
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.agenda-ligne { display: grid; grid-template-columns: 4.8rem 1fr; gap: 1rem; padding: .9rem 1rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.agenda-ligne h3 { margin: 0 0 .2rem; }
.agenda-ligne p:last-child { margin-bottom: 0; }
.agenda-date { align-self: start; margin: 0; display: flex; flex-direction: column; align-items: center; padding: .45rem 0; background: var(--vert); color: var(--blanc); border-radius: 12px; line-height: 1.2; font-size: .85rem; }
.agenda-date strong { font-size: 1.7rem; }
.liste-conversations { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.liste-conversations a { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); text-decoration: none; color: var(--encre); border: 2px solid transparent; }
.liste-conversations a:hover, .liste-conversations a.non-lu { border-color: var(--vert); }
.liste-conversations span { font-size: .92rem; color: var(--texte-doux); }
.liste-conversations .pastille-nombre { align-self: flex-start; color: var(--blanc); }
.fil-messages { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .8rem; }
.fil-messages li { max-width: 88%; }
.fil-messages li.moi { justify-self: end; text-align: right; }
.fil-messages p.petit { margin: 0 0 .2rem; }
.bulle { padding: .7rem 1rem; border-radius: 18px; background: var(--blanc); box-shadow: var(--ombre); text-align: left; overflow-wrap: anywhere; }
.moi .bulle { background: var(--vert-clair); }
.bulle p { margin: 0 0 .5em; }
.bulle p:last-child { margin: 0; }
.liste-choix { list-style: none; padding: 0; margin: .6rem 0 1rem; }
.liste-choix li { padding: .6rem 0; border-bottom: 1px solid var(--pierre-fonce); }
.etapes { padding-left: 1.4rem; }
.etapes li { margin: .5rem 0; }
.chiffre-cle { font-size: 1.25rem; }

/* --- Plan du quartier ---------------------------------------------------------------------- */
.plan { margin: 0; background: var(--blanc); border-radius: 22px; box-shadow: var(--ombre); overflow: hidden; }
.plan-svg { display: block; width: 100%; height: auto; }
.plan figcaption { padding: .6rem 1rem; font-size: .85rem; color: var(--texte-doux); }
.plan-defilant { overflow: auto; }
@media (max-width: 700px) { .plan-defilant .plan-svg { width: 190%; max-width: none; } }
.pq-fond { fill: #f4f0e8; }
.pq-vert { fill: #d3e6cb; }
.pq-place { fill: #ebe2d1; }
.pq-bati { fill: #ddd6c9; stroke: #b6ad9e; stroke-width: .8; }
.pq-route { fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.pq-rue { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.pq-pieton { fill: none; stroke: #b3a385; stroke-width: 2; stroke-dasharray: 4 3; }
.pq-tram { fill: none; stroke: var(--tram); stroke-width: 3; }
.pq-nom { font: 700 12px var(--police); fill: #4f483e; text-anchor: middle; paint-order: stroke; stroke: #f4f0e8; stroke-width: 4px; stroke-linejoin: round; }
.pq-entree { font: 800 11px var(--police); fill: #9a3f17; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pq-arret rect { fill: var(--tram); }
.pq-arret text { font: 800 12px var(--police); fill: #fff; text-anchor: middle; }
.pq-arret .pq-arret-nom { fill: var(--tram); font-size: 12px; paint-order: stroke; stroke: #f4f0e8; stroke-width: 4px; }
.pq-repere circle { fill: var(--marron); stroke: #fff; stroke-width: 3; }
.pq-repere text { font: 800 15px var(--police); fill: #fff; text-anchor: middle; }
.pq-repere-local circle { fill: var(--vert); }
.pq-repere a:focus-visible circle, .pq-repere a:hover circle { stroke: var(--focus); stroke-width: 5; }
.legende-plan { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.legende-plan li { display: flex; gap: .7rem; align-items: flex-start; }
.legende-plan .numero-plan { flex: none; }
.legende-plan .numero-local { background: var(--vert); }
.plan-choix { cursor: crosshair; }
.plan-choix .pq-curseur circle { fill: var(--marron); stroke: #fff; stroke-width: 3; }

/* --- Tableau des trams (comme le panneau à l'arrêt) -------------------------------------------- */
.panneau-tram { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); padding: 1.1rem; border-radius: 18px; background: #14231c; color: #f4f0e8; }
.tram-arret { background: #1d3328; border-radius: 12px; padding: .9rem 1rem; }
.tram-arret h3 { margin: 0 0 .5rem; color: #fff; font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.tram-ligne { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; border-radius: 8px; background: var(--tram); color: #fff; font-weight: 800; }
.tram-direction { margin: .7rem 0 .3rem; font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c9d8cf; }
.tram-departs { list-style: none; margin: 0; padding: 0; }
.tram-departs li { display: flex; align-items: baseline; gap: .8rem; padding: .35rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.tram-attente { min-width: 6.5rem; font-size: 1.45rem; font-weight: 800; color: var(--focus); font-variant-numeric: tabular-nums; }
.tram-heure { color: #f4f0e8; font-variant-numeric: tabular-nums; }
.tram-retard { margin-left: auto; font-size: .85rem; font-weight: 700; color: #ffb4a8; }
.tram-vide { margin: 0; color: #f4f0e8; }
.tram-vide a, .tram-source a { color: #fff; }
.tram-source { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: #b9c9bf; }

/* --- Déchets ------------------------------------------------------------------------------------ */
.dechet { display: inline-block; margin: .15rem .3rem .15rem 0; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 700; border-left: 6px solid; background: var(--blanc); color: var(--encre); }
.dechet-ordures { border-color: #4a4a4a; }
.dechet-cuisine { border-color: #3c8d2f; }
.dechet-papier { border-color: #1d4f91; }
.dechet-verre { border-color: #0f8a8a; }
.dechet-jardin { border-color: #8a5a1e; }
.dechet-encombrants { border-color: #b3261e; }
.liste-dechets { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.liste-dechets li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .7rem 1rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.liste-dechets .dechet-demain { border: 3px solid var(--focus); }
.dechet-quand { min-width: 9.5rem; font-weight: 800; }
.dechet-types .dechet { background: var(--pierre); }
.acces { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-bottom: 1.5rem; }
.acces h3 { margin-top: 0; }
.acces ul { padding-left: 1.2rem; margin: 0 0 .6rem; }
.calendrier-nav { justify-content: center; gap: 1rem; }
.calendrier-nav h2 { min-width: 12rem; text-align: center; }
.calendrier-dechets { width: 100%; min-width: 44rem; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendrier-dechets th { font-size: .9rem; color: var(--texte-doux); }
.calendrier-dechets abbr { text-decoration: none; }
.calendrier-dechets td { vertical-align: top; height: 6.5rem; padding: .35rem; background: var(--blanc); border-radius: 10px; }
.calendrier-dechets td.vide-cal { background: transparent; }
.calendrier-dechets td.aujourdhui { outline: 3px solid var(--focus); }
.calendrier-dechets td.ferie { background: var(--pierre-fonce); }
.calendrier-dechets .dechet { display: block; margin: .2rem 0 0; font-size: .75rem; padding: .05rem .4rem; }
.num-jour { display: block; font-weight: 800; }
.jour-mobile { display: none; }
@media (max-width: 700px) {
  .calendrier-dechets { min-width: 0; border-spacing: 0 6px; }
  .calendrier-dechets thead { display: none; }
  .calendrier-dechets, .calendrier-dechets tbody, .calendrier-dechets tr { display: block; }
  .calendrier-dechets td { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; height: auto; padding: .6rem .8rem; }
  .calendrier-dechets td.vide-cal, .calendrier-dechets td.sans-levee { display: none; }
  .calendrier-dechets .num-jour { min-width: 7.5rem; }
  .calendrier-dechets .dechet { display: inline-block; font-size: .85rem; }
  .jour-mobile { display: inline; }
}

/* --- Le quartier : frise et places ----------------------------------------------------------- */
.frise { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--vert); }
.frise li { position: relative; margin: 0 0 1rem; }
.frise li::before { content: ""; position: absolute; left: -1.95rem; top: .45rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--blanc); border: 4px solid var(--vert); }
.frise strong { display: block; color: var(--vert-fonce); }
.places { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.places li { background: var(--blanc); border-radius: var(--rayon); padding: 1.1rem 1.2rem; box-shadow: var(--ombre); }
.places h3 { margin-top: 0; }
.sources { font-size: .9rem; color: var(--texte-doux); }

/* --- Gestion ------------------------------------------------------------------------------------ */
.onglets { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; }
.onglets a { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .4rem 1rem; border-radius: 999px; background: var(--blanc); border: 2px solid var(--bord); text-decoration: none; font-weight: 700; color: var(--encre); }
.onglets a[aria-current="page"] { background: var(--vert); border-color: var(--vert); color: var(--blanc); }
.tableau-defilant { overflow-x: auto; }
.tableau { border-collapse: collapse; width: 100%; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--pierre-fonce); vertical-align: top; }
.tableau thead th { background: var(--vert-clair); }
.tableau-serre th, .tableau-serre td { padding: .35rem .6rem; font-size: .9rem; }
.qr { display: inline-block; background: var(--blanc); padding: .6rem; border-radius: var(--rayon); box-shadow: var(--ombre); min-height: 3rem; }
.qr img { display: block; }
.cle-totp { font-size: 1.1rem; letter-spacing: .05em; word-break: break-all; }

/* --- Pied de page ------------------------------------------------------------------------------- */
.pied { margin-top: 3rem; background: var(--vert-fonce); color: #eef3ef; }
.pied-int { max-width: var(--largeur); margin: 0 auto; padding: 2rem 1rem; display: grid; gap: .5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pied a { color: #fff; }
.pied .petit { color: #c9d8cf; }

@media print {
  .entete, .pied, .evitement, .fil, .bouton { display: none !important; }
  body { background: #fff; }
}
