/* Listes, communes, activités et recherche, d'après les maquettes 1a de Claude Design (05/10/2026, docs/design-claude/ :
   Categorie, Commune, Communes, Toutes les activites, Recherche, Etats) : bandeau nuit, puis fond crème sous des cartes
   blanches. Le relief de la direction « Le relief » (partiels/relief-carte.php) : la commune et ses voisines sur le
   relief grossi, ou tout le 66 avec un point par commune dont l'aire suit le nombre d'adresses. Les cartes d'adresses
   (carte_fiche()) sont dans app.css. Feuille chargée aussi par l'agenda et /professionnels pour le relief. */

/* Page : fond crème sous des cartes blanches */
main:has(> .page-liste) { background: var(--cel); }
main:has(> .page-liste) + .pied { margin-top: 0; }
.liste-page { max-width: var(--largeur); margin: 0 auto; padding: 1.75rem 1rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.liste-encart { padding: 1.5rem 1.5rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); }
.liste-encart > h2, .liste-encart-tete h2 { margin: 0 0 0.75rem; font-size: 1.625rem; font-weight: 600; }
/* Titre de bloc et lien « Les N adresses » : le titre se coupe avant de pousser le lien ; sur téléphone, le lien a sa
   propre ligne sous le titre (audit du 05/10/2026 : il passait sous un titre long, 35 px plus bas) */
.liste-encart-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 0.5rem; }
.liste-encart-tete h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--t-section); }
.liste-encart-tete a { flex: none; font-weight: 500; font-size: 0.9375rem; }
@media (max-width: 48rem) {
  .liste-encart-tete { flex-direction: column; align-items: flex-start; gap: 0; }
  .liste-encart-tete a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
.liste-encart > :last-child { margin-bottom: 0; }
/* Recherche et page de commune : pas de coque de section (unslop du 10/11/2026) */
.recherche-grille .liste-encart, .page-commune .liste-grille .liste-encart, .recherche-grille .liste-colonne .liste-encart, .page-commune .liste-grille .liste-colonne .liste-encart { padding: 0; background: none; border: 0; border-radius: 0; }
.page-commune .liste-principal { gap: 2rem; }
.page-commune .tuile-activite { background: var(--fons); border: 1px solid var(--linia); }

/* Bandeau nuit : fil d'Ariane, titre, introduction chiffrée */
.liste-bandeau { background: var(--nuit); color: var(--creme); }
.liste-bandeau-dedans { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 1.5rem 2.5rem; max-width: var(--largeur); margin: 0 auto; padding: 1.5rem 1rem 2.25rem; }
.liste-bandeau .ariane, .liste-bandeau .ariane a { color: var(--creme); font-size: 0.875rem; }
.liste-bandeau h1 { max-width: 51rem; margin: 1rem 0; color: var(--neu); font-size: var(--t-page); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }
.liste-bandeau .intro-liste { max-width: 51rem; margin: 0; color: var(--creme); font-size: 1rem; line-height: 1.6; }
.liste-bandeau a { color: var(--neu); text-decoration-color: currentColor; }
.liste-bandeau .intro-liste a { font-weight: 500; }
.liste-bandeau a:hover { color: var(--or-clair); }
.page-commune .liste-bandeau h1 { font-size: var(--t-hero); line-height: 1.02; }

/* Règle du classement, au-dessus des adresses (L111-7-2 : critères publiés) */
.liste-regle { margin: 0; padding: 0.25rem 0.125rem; color: var(--tinta); font-size: 0.9375rem; line-height: 1.5; }

/* Pastilles (« Par commune », « Autres activités ») : un fond crème, le nombre en gris */
.jetons { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jetons a { display: inline-flex; align-items: baseline; gap: 0.375rem; padding: 0.5rem 0.75rem; background: var(--cel); border-radius: var(--rayon); color: var(--tinta); font-size: 0.9375rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.jetons li { max-width: 100%; }
.jetons a { flex-wrap: wrap; max-width: 100%; white-space: normal; }   /* 320 px : un libellé long passe à la ligne au lieu de déborder */
.jetons a > span:not(.compte) { text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: 0.25em; }
.jetons a .compte { color: var(--gris); font-size: 0.9375rem; font-weight: 400; }
.jetons a .ico { display: none; }
.jetons a:hover { color: var(--sang); }
.jetons a:hover > span:not(.compte) { text-decoration-color: currentColor; }
.jetons .jeton-tout a { background: none; padding-inline: 0.25rem; color: var(--sang); }
.jetons .jeton-tout a > span { text-decoration-color: currentColor; }

/* « Par commune » en deux exemplaires sur la page 1 d'une activité (pages/liste.php, recette du 14/10/2026, VI-03) : en
   tête sur ordinateur, sous l'appel aux professionnels sur téléphone. display: none le retire aussi des lecteurs d'écran. */
.liste-communes-bas { display: none; }
@media (max-width: 47.99rem) {
  .liste-communes-haut { display: none; }
  .liste-communes-bas { display: block; }
}

/* Liste et relief collant à droite (activité, activité × commune) */
.liste-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 1.75rem; align-items: start; }
.liste-principal { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.liste-principal > .pagination { margin-top: 1.25rem; }
.liste-relief-cote { display: none; }

/* La carte en relief */
.carte-relief { margin: 0; }
.carte-relief-vue { position: relative; }
.carte-relief-zoom .carte-relief-vue { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--rayon); background-color: var(--nuit); background-image: var(--relief, url("/assets/img/relief.svg")); background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--filet-or); }   /* --relief : l'adresse versionnée posée par le gabarit (FO-05) */
.carte-relief-entier .carte-relief-vue img { display: block; width: 100%; height: auto; opacity: 0.7; }
.point { position: absolute; left: var(--x); top: var(--y); width: var(--d, 8px); height: var(--d, 8px); transform: translate(-50%, -50%); }
.point::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 2px var(--nuit); }
.point > span { position: absolute; left: calc(100% + 0.4rem); top: 50%; transform: translateY(-50%); white-space: nowrap; color: var(--creme); font-size: 0.8125rem; font-weight: 600; line-height: 1;
  text-shadow: 0 0 3px var(--nuit), 0 0 6px var(--nuit), 0 0 10px var(--nuit); }
.point-centre { --d: 13px; }
.point-centre::before { background: var(--or-clair); box-shadow: 0 0 0 3px var(--nuit), 0 0 0 4.5px var(--creme); }
.point-centre > span { left: calc(100% + 0.55rem); font-family: var(--titre); font-size: 1.1875rem; font-style: italic; font-weight: 600; }
.point-voisin { --d: 6px; }
.point-voisin::before { background: var(--creme-2); box-shadow: 0 0 0 1.5px var(--nuit); }
.point-voisin > span { color: var(--creme-2); font-size: 0.8125rem; font-weight: 500; }   /* 13 px au moins (VI-06) */
.point-mesure::before { background: var(--creme); box-shadow: 0 0 0 2px var(--nuit); }
.point-seul::before { display: none; }
/* Relief entier : le nom posé par-dessus les points, sur un cartouche nuit plein (recette du 14/10/2026, VI-04 : autour de
   Perpignan, des points de la même crème hachaient les lettres ; pour un lecteur daltonien, seule la forme les séparait) */
.point-seul > span { padding: 0.25rem 0.375rem; border-radius: var(--rayon); background: var(--nuit); text-shadow: none; }
.point-seul > span { left: calc(100% + 0.1rem); }
.point-seul.point-gauche > span { left: auto; right: calc(100% + 0.1rem); }
.point-gauche > span { left: auto; right: calc(100% + 0.4rem); }
.point-centre.point-gauche > span { right: calc(100% + 0.55rem); }

/* Liste liée au relief (03/10/2026, assets/js/relief-liste.js) : survoler une adresse allume sa commune (relief
   entier) ou son adresse (relief grossi). Sur grand écran seulement, où le relief quitte le bandeau pour suivre la
   liste dans une colonne collante : sans cela, il sort de l'écran dès les premières adresses. */
.point-adresse { --d: 11px; opacity: 0; transition: opacity 0.18s var(--courbe); }
.point-adresse::before { background: var(--or-clair); box-shadow: 0 0 0 2.5px var(--nuit), 0 0 0 4px var(--creme); }
.point.allume { z-index: 2; opacity: 1; }
.point-mesure.allume::before { background: var(--or-clair); box-shadow: 0 0 0 2px var(--nuit), 0 0 0 3.5px var(--or-clair); transform: scale(1.3); }
.point::before { transition: transform 0.18s var(--courbe), background-color 0.18s var(--courbe); }
/* Le nom allumé s'écrit sous la carte : posé à côté du point, il débordait de la colonne */
.relief-legende { min-height: 1.4em; margin: 1rem 0 0; color: var(--creme); font-family: var(--titre); font-size: 1.1875rem; font-style: italic; font-weight: 600; line-height: 1.3; }
.relief-legende:empty::before { content: "Survolez une adresse pour la situer."; color: var(--creme); font-family: var(--texte); font-size: 0.9375rem; font-style: normal; font-weight: 400; }
.liste-relief-cote .point-mesure { width: calc(var(--d) * 0.6); height: calc(var(--d) * 0.6); }   /* une centaine de communes dans 21 rem */
@media (prefers-reduced-motion: reduce) { .point-adresse, .point::before { transition: none; } }
@media (max-width: 48rem) { .carte-relief { max-width: 30rem; } }   /* agenda, professionnels */

/* Relief du bandeau : entre 48 et 62 rem pour les listes (au-delà, il suit la liste à droite) ; dès 48 rem sur une
   page commune, où il situe la commune à droite du titre. Sur téléphone, comme sur la maquette : pas de relief. */
.liste-relief-entete { display: none; }
@media (min-width: 48rem) {
  .liste-bandeau-dedans:has(> .liste-relief-entete) { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
  .liste-relief-entete { display: block; }
  .page-commune .liste-bandeau-dedans:has(> .liste-relief-entete) { grid-template-columns: minmax(0, 1fr) minmax(0, 27.5rem); }
}
@media (min-width: 62rem) {
  /* « Par commune » au-dessus du relief, dans la colonne de droite (VI-03) ; le relief reste collant sous lui */
  .liste-grille-relief:has(> .liste-communes) { grid-template-rows: auto 1fr; }
  .liste-grille-relief > .liste-communes { grid-column: 2; grid-row: 1; }
  .liste-grille-relief:has(> .liste-communes) > .liste-principal { grid-column: 1; grid-row: 1 / span 2; }
  .liste-grille-relief:has(> .liste-communes) > .liste-relief-cote { grid-column: 2; grid-row: 2; }
  .liste-grille-relief > .liste-communes .communes-toutes { columns: 2; }
  .page-liste:not(.page-commune) .liste-relief-entete { display: none; }
  .page-liste:not(.page-commune) .liste-bandeau-dedans { grid-template-columns: minmax(0, 1fr); }
  .liste-grille-relief { grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem); }
  .liste-relief-cote { display: block; position: sticky; top: 1.25rem; padding: 1.25rem; background: var(--nuit); border-radius: var(--rayon); color: var(--creme); }
}

/* Appel aux professionnels (03/10/2026, partiels/appel-pro.php) : un encart en pointillés or. Décision D1 du 05/10/2026 :
   en tête sur ordinateur, après la 3e adresse sur téléphone (la première adresse était à 950 px sur /garages). Deux
   emplacements dans la page, un seul affiché : display: none le retire aussi des lecteurs d'écran. */
.appel-pro-haut { display: none; }
@media (min-width: 48rem) {
  .appel-pro-haut { display: block; }
  .appel-pro-bas { display: none; }
}
.appel-pro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 1.25rem; align-items: start; padding: 1.25rem 1.5rem; background: var(--cel); border: 1px dashed var(--or); border-radius: var(--rayon); }
.appel-pro p { margin: 0; }
.appel-pro-question { max-width: 14rem; font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--tinta); }
.appel-pro-detail { color: var(--tinta); font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 40rem) { .appel-pro { grid-template-columns: auto minmax(0, 1fr); } }

/* Maillage sous la liste : communes voisines, autres activités, même famille */
.liste-maillage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 48rem) { .liste-maillage:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Communes voisines (page commune, activité × commune) : nom, puis la distance à droite */
.voisines { list-style: none; padding: 0; margin: 0; }
.voisines li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; padding: 0.5rem 0; border-top: 1px solid var(--linia); font-size: 0.9375rem; }
.voisines li > span { color: var(--gris); }
.voisines-detail li { display: block; }
.voisines-detail a { font-weight: 500; }
.voisines-detail li > span { display: block; font-size: 0.875rem; }
/* Téléphone : 44 px par lien (recette du 14/10/2026, VI-02 : 23 et 19 px) */
@media (max-width: 48rem) {
  .voisines li { padding: 0; }
  .voisines a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .voisines-detail li { padding: 0.25rem 0 0.5rem; }
  .voisines-detail a { display: flex; }
}

/* Page commune : relief dans le bandeau, activités en tuiles, un bloc par activité, colonne collante */
.page-commune .liste-grille { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .page-commune .liste-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 21.25rem); } }
.liste-colonne { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 62rem) { .liste-colonne { position: sticky; top: 1.25rem; } }
.liste-colonne .liste-encart { padding: 1.25rem 1.5rem; }
.liste-colonne .liste-encart > h2 { margin-bottom: 0.375rem; font-size: 1.1875rem; }
.tuiles-activites { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 48rem) { .tuiles-activites { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tuiles-activites > li { display: flex; }
.tuile-activite { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; padding: 1rem 1rem; background: var(--cel); border-radius: var(--rayon); color: var(--tinta); text-decoration: none; }
.tuile-activite strong { font-family: var(--titre); font-size: var(--t-section); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.tuile-activite span { color: var(--sang); font-size: 1rem; font-weight: 500; line-height: 1.3; text-decoration: underline; text-underline-offset: 0.18em; }
.tuile-activite:hover { color: var(--tinta); background: var(--linia); }
.tuile-activite:hover span { color: var(--sang-fonce); }
.tuiles-autres { margin-top: 0.75rem; }
.tuiles-autres > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; width: fit-content; max-width: 100%; padding: 0.5rem 0; cursor: pointer; color: var(--sang); font-weight: 600; list-style: none; }
.tuiles-autres > summary > span:not(.compte) { text-decoration: underline; text-underline-offset: 0.18em; }
.tuiles-autres > summary .compte { color: var(--gris); font-weight: 400; }
.tuiles-autres > summary::-webkit-details-marker { display: none; }
.tuiles-autres > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 600; line-height: 1; }
.tuiles-autres[open] > summary::before { content: "−"; }
.tuiles-autres > .jetons { margin-top: 0.5rem; }
/* « Les 81 autres communes » d'une activité : toutes, en colonnes, par ordre alphabétique */
.communes-toutes { list-style: none; padding: 0; margin: 0.5rem 0 0; columns: 4 11rem; column-gap: 1.5rem; }
.communes-toutes li { display: flex; align-items: baseline; gap: 0.375rem; padding: 0.375rem 0; break-inside: avoid; font-size: 0.9375rem; }
.communes-toutes a { color: var(--tinta); text-decoration-color: var(--trait); }
.communes-toutes a:hover { color: var(--sang); text-decoration-color: currentColor; }
.communes-toutes .compte { color: var(--gris); font-size: 0.8125rem; }   /* 13 px (0,85 em donnait 12,75 px) */
.bloc-activite .cartes { margin-top: 0.25rem; }
/* Téléphone : quatre adresses par bloc, comme sur la maquette (les deux suivantes restent dans la page pour l'ordinateur,
   où le bloc en montre six sur deux colonnes). Au-delà du sixième bloc (Perpignan seulement : activités dont la liste a
   plusieurs pages), le bloc se réduit à son titre et à ses pages : la page reste courte, chaque page reste liée. */
@media (max-width: 48rem) {
  .bloc-activite .cartes > li:nth-child(n+5), .bloc-court .cartes { display: none; }
}
/* Liste de plusieurs pages : un lien par page du classement (« 31 à 60 »), pour que toute adresse soit à deux clics.
   De simples liens soulignés : sur téléphone, des pastilles prenaient trois lignes par bloc. */
.bloc-pages { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-top: 1rem; font-size: 0.9375rem; }
.bloc-pages > p { margin: 0; color: var(--gris); }
.bloc-pages ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.bloc-pages a { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 48rem) {
  .bloc-pages { margin-top: 0.5rem; }
  .bloc-pages ul { row-gap: 0; }
  .bloc-pages a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* Prochains événements (partiels/agenda-commune.php) : les entrées d'agenda/entree dans un encart, comme les blocs
   d'activité. Règles reprises d'agenda.css (05/10/2026) et préfixées : la page commune ne charge plus cette feuille. */
.agenda-commune .evts { list-style: none; padding: 0; margin: 0.25rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .agenda-commune .evts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@media (max-width: 48rem) { .agenda-commune .evt:nth-child(n+5) { display: none; } }
.agenda-commune .evt { position: relative; padding: 1rem 0; border-bottom: 1px solid var(--linia); }
.agenda-commune .evt-marge { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.agenda-commune .evt p { margin: 0; }
.agenda-commune .evt-titre { font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.agenda-commune .evt-titre a { color: var(--tinta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.agenda-commune .evt-titre a::after { content: ""; position: absolute; inset: 0; }
.agenda-commune .evt-titre a:focus-visible { outline: none; }
.agenda-commune .evt-titre a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--rayon); }
.agenda-commune .evt:hover .evt-titre a, .agenda-commune .evt-titre a:focus-visible { color: var(--sang); }
.agenda-commune .evt-infos, .agenda-commune .evt-quand { margin-top: 0.25rem; font-size: 0.875rem; }
.agenda-commune .evt-infos { color: var(--gris); }
.agenda-commune .evt-type { font-weight: 600; color: var(--tinta); }
.agenda-commune .evt-quand { color: var(--or-texte); font-weight: 500; }
.agenda-commune .evt-date { display: flex; flex-direction: column; align-items: center; padding-top: 0.125rem; line-height: 1.15; text-align: center; }
.agenda-commune .evt-date-haut, .agenda-commune .evt-date-bas { font-size: 0.8125rem; font-weight: 600; }
.agenda-commune .evt-date-haut { color: var(--sang); }
.agenda-commune .evt-date-bas { color: var(--gris); }
.agenda-commune .evt-date-haut.evt-date-fin { text-transform: none; white-space: nowrap; }
.agenda-commune .evt-date-num { font-family: var(--titre); font-size: 1.625rem; font-weight: 600; line-height: 1.05; color: var(--tinta); }
/* Appel aux gérants : l'aplat sang de la maquette, bouton or clair */
.liste-gerant { padding: 1.5rem; background: var(--sang); border-radius: var(--rayon); color: var(--creme); }
.liste-gerant h2 { margin: 0; color: var(--neu); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.liste-gerant p { margin: 0.5rem 0 1rem; font-size: 0.9375rem; line-height: 1.5; }
.liste-gerant-bouton { display: block; padding: 0.75rem; background: var(--or-clair); border-radius: var(--rayon); color: var(--tinta); font-size: 0.9375rem; font-weight: 600; text-align: center; text-decoration: none; }
.liste-gerant-bouton:hover { background: var(--creme); color: var(--tinta); }
.liste-gerant-bouton:focus-visible { outline-color: var(--neu); }
/* Téléphone : les activités en liste compacte, le libellé puis le nombre d'adresses (audit du 05/10/2026 : quinze tuiles
   de deux colonnes à Collioure, trois écrans) */
@media (max-width: 48rem) {
  .tuiles-activites, .page-commune .tuiles-activites { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tuile-activite { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 2.75rem;
    padding: 0.5rem 0; background: none; border-bottom: 1px solid var(--linia); border-radius: 0; }
  .page-commune .tuile-activite { background: none; border: 0; border-bottom: 1px solid var(--linia); }
  .tuiles-activites > li:last-child .tuile-activite { border-bottom: 0; }
  .tuile-activite strong { flex: none; font-family: var(--texte); font-size: 1rem; font-weight: 500; color: var(--gris); }
  .tuile-activite:hover { background: none; }
}

/* État vide d'une liste */
.liste-vide p { max-width: 70ch; margin: 0.25rem 0; }

/* Les 226 communes : index de A à Z, filet pointillé entre le nom et le nombre d'adresses */
.index-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.index-filtre { flex: 1 1 18rem; max-width: 26.25rem; }
.index-filtre input { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; background: var(--fons); }
.index-tri { display: flex; gap: 0.5rem; }
.index-tri a { padding: 0.5rem 0.75rem; background: var(--fons); border-radius: var(--rayon); color: var(--tinta); font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: 0.25em; }
.index-tri a:hover { color: var(--sang); text-decoration-color: currentColor; }
.index-tri a[aria-current] { background: var(--nuit); color: var(--neu); text-decoration: none; }
.index-az { padding: 1.5rem 1.75rem; columns: 3 15rem; column-gap: 2.5rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); }
.index-az h2 { margin: 0.375rem 0 0.25rem; color: var(--sang); font-size: 1.625rem; font-weight: 600; break-after: avoid; }
.index-az ul, .index-az ol { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.index-ligne { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.375rem 0; break-inside: avoid; }
.index-ligne a { color: var(--tinta); }
.index-ligne a:hover { color: var(--sang); }
.index-ligne::after { content: ""; order: 1; flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--gris); transform: translateY(-0.25rem); }
.index-ligne[hidden], .index-az [hidden] { display: none; }
.index-ligne .compte { order: 2; color: var(--gris); font-size: 1rem; font-weight: 400; }
.index-ligne .sans { color: var(--gris); }
/* Téléphone : 44 px de pas entre deux communes (cibles tactiles) */
@media (max-width: 48rem) {
  .index-ligne { padding: 0; }
  .index-ligne > a, .index-ligne > .sans { padding-block: 0.75rem; }
}
.index-ligne:has(.sans)::after { display: none; }
.index-note { margin: 0; color: var(--tinta); font-size: 0.9375rem; }
.index-aucune { margin: 0; font-weight: 500; }
.index-aucune:empty { position: absolute; }   /* vide : hors du flux, mais toujours une zone d'annonce (role="status") */
.index-az[hidden] { display: none; }

/* Toutes les activités : lettres, puis une carte par activité */
.index-lettres { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.index-lettres a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); color: var(--tinta); font-family: var(--titre); font-size: 1rem; font-weight: 600; text-decoration: none; }
.index-lettres a:hover { border-color: var(--sang); color: var(--sang); text-decoration: underline; }
@media (max-width: 48rem) { .index-lettres a { width: 2.75rem; height: 2.75rem; } }   /* 44 px (VI-02 : 36 px) */
.activites-cartes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 0.75rem; }
.activite-carte { position: relative; display: flex; flex-direction: column; gap: 0.375rem; padding: 1.25rem 1.5rem; background: var(--fons); border: 1px solid var(--linia); border-radius: var(--rayon); scroll-margin-top: 1rem; }
.activite-carte:hover { border-color: var(--bord-champ); }
.activite-carte-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: 0; }
.activite-carte-nom { font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.activite-carte-nom a { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--trait); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.activite-carte-nom a::after { content: ""; position: absolute; inset: 0; }
.activite-carte:hover .activite-carte-nom a { color: var(--sang); text-decoration-color: currentColor; }
.activite-carte-nom a:focus-visible { outline: none; }
.activite-carte-nom a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--rayon); }
.activite-carte-tete .compte { flex: none; color: var(--gris); font-size: 0.9375rem; font-weight: 400; white-space: nowrap; }
.activite-carte-communes { position: relative; z-index: 1; margin: 0; color: var(--gris); font-size: 0.875rem; line-height: 1.6; }
.activite-carte-communes a { color: var(--tinta); text-decoration-color: var(--trait); }
.activite-carte-communes a:hover { color: var(--sang); text-decoration-color: currentColor; }

/* Recherche : la boîte blanche sur le bandeau nuit, les résultats groupés par type, la colonne « Élargir » */
.recherche-bandeau .liste-bandeau-dedans { padding-top: 1.75rem; padding-bottom: 2rem; }
.recherche-bandeau h1 { margin-top: 0; font-size: var(--t-bandeau); }
.recherche-boite { display: flex; gap: 0.25rem; max-width: 47.5rem; padding: 0.375rem; background: var(--fons); border-radius: var(--rayon); }
.recherche-boite:focus-within { outline: 3px solid var(--or-clair); outline-offset: 3px; }
.recherche-boite input { flex: 1; min-width: 0; padding: 0.75rem 1rem; border: 0; background: transparent; font-size: 1.0625rem; }
.recherche-boite input:focus { outline: none; }
.recherche-boite button { padding: 0 1.5rem; border: 0; border-radius: var(--rayon); background: var(--sang); color: var(--neu); font: inherit; font-weight: 600; cursor: pointer; }
.recherche-boite button:hover { background: var(--sang-fonce); }
.recherche-resume { margin: 1rem 0 0; color: var(--creme); font-size: 1rem; }
.recherche-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 1.75rem; align-items: start; }
@media (min-width: 62rem) { .recherche-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); } }
.recherche-principal { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.recherche-principal > .sponsos { margin: 0; }
.resultats-note { margin: 0 0 0.75rem; color: var(--gris); font-size: 0.9375rem; max-width: 70ch; }
.resultats-sous-titre { margin: 1.5rem 0 0.375rem; font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; }
.recherche-pages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 48rem) { .recherche-pages:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.recherche-pages h2 { margin: 0 0 0.5rem; font-size: 1.375rem; }
.recherche-pages a { font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; }
.recherche-pages p { margin: 0.125rem 0 0; color: var(--gris); font-size: 0.9375rem; }
.recherche-pages p + a { display: inline-block; margin-top: 0.5rem; }
/* Suite et fin des résultats (60 par page) ; « concert » sans entreprise : les pages de l'agenda */
.resultats-suite, .resultats-fin { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--linia); font-size: 0.9375rem; color: var(--gris); }
.resultats-suite a { font-weight: 500; }
.resultats-fin a { color: var(--sang); font-weight: 500; }
.recherche-agenda { list-style: none; padding: 0; margin: 0 0 1rem; }
.recherche-agenda li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; padding: 0.375rem 0; }
.recherche-agenda a { font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; }
.recherche-agenda .compte { color: var(--gris); }
.recherche-vide h1 { margin: 0 0 0.5rem; font-size: var(--t-bandeau); line-height: 1.15; overflow-wrap: anywhere; }
.recherche-vide > p { margin: 0 0 1rem; color: var(--gris); font-size: 1.0625rem; line-height: 1.55; }
.recherche-vide .jetons a > span:not(.compte) { text-decoration-color: var(--trait); }
.parcourir { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.parcourir li { padding: 0.125rem 0; }

/* Téléphone : pastilles et dépliants de 44 px (cibles tactiles) */
@media (max-width: 48rem) {
  .jetons a { align-items: center; min-height: 2.75rem; }
  .tuiles-autres > summary { min-height: 2.75rem; }
  .communes-toutes li { padding: 0; }
  .communes-toutes a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .parcourir li { padding: 0; }
  .index-tri a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .parcourir a, .resultats-suite a, .resultats-fin a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .recherche-pages a { display: inline-flex; align-items: center; min-height: 2.75rem; }   /* PV-14 : 27 px */
}
@media (max-width: 40rem) {
  .liste-page { padding: 0.75rem 0.75rem 2rem; gap: 0.75rem; }
  /* « Par commune » : les six communes les plus fournies, puis le dépliant (plus de bande qui défile : elle cachait 13
     communes sur 16). Un nom de commune ne se coupe jamais : le jeton passe entier à la ligne (recette du 14/10/2026,
     VI-07 : « Argelès-sur- / Mer », « Saint- / Cyprien »). */
  .liste-communes > h2 { margin-bottom: 0.5rem; font-size: 1.1875rem; }
  .liste-communes .jetons { gap: 0.375rem; }
  .liste-communes .jetons a { padding: 0.375rem 0.5rem; font-size: 0.9375rem; line-height: 1.25; white-space: nowrap; }
  .communes-toutes { columns: 2; }
  .liste-bandeau-dedans { padding: 1.25rem 1rem 1.5rem; }
  .liste-encart { padding: 1rem 1rem; }
  .index-az { padding: 1rem 1rem; }
  .recherche-bandeau .liste-bandeau-dedans { padding: 1rem 0.75rem 1rem; }
  .recherche-boite button { padding: 0 1rem; }
  .recherche-resume { font-size: 0.875rem; margin-top: 0.5rem; }
}
/* Jetons d'une liste : le nom d'une commune ou d'une activité ne se coupe pas à son trait d'union, le jeton passe entier
   à la ligne (VI-07). Le plus long (« Coiffure, beauté et bien-être ») tient à 320 px. */
.jetons a > span:not(.compte) { white-space: nowrap; }
.liste-principal .pagination a { background: var(--fons); }

/* Guide de la commune (18/11/2026) : présentation, chiffres clés, mairie, « À voir et à faire » (partiels/commune-*.php).
   Pas de coque, des filets, comme le reste de la page commune. Aucune information par la seule couleur (Charles est
   daltonien) : chaque chiffre porte son libellé écrit. */
.commune-presentation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--linia); }
@media (min-width: 48rem) { .commune-presentation { grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem); } }
.commune-texte > h2, .commune-avoir > h2 { margin: 0 0 0.75rem; font-size: var(--t-section); font-weight: 600; }
.commune-texte p { max-width: 42rem; margin: 0 0 0.75rem; line-height: 1.6; overflow-wrap: anywhere; }
.commune-texte > .commune-saut { margin-bottom: 0.5rem; font-weight: 500; }
.commune-source { margin: 0.5rem 0 0; color: var(--gris); font-size: 0.8125rem; line-height: 1.45; }
.commune-texte > .commune-source { max-width: 42rem; }
.commune-chiffres { margin: 0; border-top: 1px solid var(--linia); }
.commune-chiffres > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--linia); }
.commune-chiffres dt { color: var(--gris); font-size: 0.9375rem; }
.commune-chiffres dd { margin: 0; font-family: var(--titre); font-size: 1.1875rem; font-weight: 600; font-variant-numeric: lining-nums; text-align: right; overflow-wrap: anywhere; }
.commune-chiffres .commune-epci dd { flex-basis: 100%; font-family: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; text-align: left; }
.commune-mairie { margin-top: 1.25rem; }
.commune-mairie h3 { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: 600; }
.commune-mairie p { margin: 0 0 0.5rem; font-size: 0.9375rem; line-height: 1.5; }
.commune-mairie .commune-source { font-size: 0.8125rem; }
.commune-mairie-tel a { font-size: 1.0625rem; font-weight: 600; }
.commune-horaires { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.commune-horaires summary { cursor: pointer; font-weight: 500; }
.commune-horaires dl { margin: 0.375rem 0 0; }
.commune-horaires dl > div { padding: 0.25rem 0; border-top: 1px dotted var(--trait); }
.commune-horaires dt { font-weight: 500; }
.commune-horaires dd { margin: 0; color: var(--gris); }
.commune-themes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; margin-top: 1rem; }
@media (min-width: 48rem) { .commune-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commune-theme h3 { margin: 0 0 0.375rem; padding-top: 0.75rem; border-top: 1px solid var(--linia); font-size: 1.1875rem; font-weight: 600; }
.commune-theme ul { margin: 0; padding: 0; list-style: none; }
.commune-theme li { padding: 0.25rem 0; line-height: 1.4; overflow-wrap: anywhere; }
.commune-theme details { margin-top: 0.25rem; }
.commune-theme summary { cursor: pointer; color: var(--sang); font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 48rem) {
  .commune-mairie-tel a, .commune-mairie-site a, .commune-saut a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .commune-horaires summary, .commune-theme summary { padding: 0.6875rem 0; }   /* 44 px, marqueur du dépliant gardé */
  .commune-theme li { padding: 0; }
  .commune-theme li a { display: block; padding: 0.625rem 0; }
}
