/* ==========================================================================
   OUTIL « Plan canicule et grand froid : le registre de la mairie » (17/11/2026)
   Chargée sur la page de l'outil SEULEMENT (déclaration « css » du module
   inc/outils/registre-canicule.php), après outils.css. Variables de :root du
   site seulement. Cibles tactiles : 44 px (--outil-cible, outils.css).
   ========================================================================== */

:root {
  --registre-marge-lien: 10px;   /* zone sensible d'un lien en ligne : 24 px de ligne + 2 × 10 px = 44 px */
  --registre-retrait-liste: 1.2em; /* retrait des listes de la réponse, à la largeur d'une puce */
}

/* --- Les régions : un sommaire d'ancres, puis un titre par région -------- */

.registre-regions ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin: var(--gap-s) 0 0;
  padding: 0;
  list-style: none;
}

.registre-regions li {
  margin: 0;
}

.registre-regions a {
  display: inline-flex;
  align-items: center;
  min-height: var(--outil-cible);
  padding: 0 var(--gap-s);
  background: var(--blanc);
  border: 1.5px solid var(--voile-nuit-18);
  border-radius: var(--rayon-pilule);
  font-size: var(--taille-corps);
  font-weight: 500;
  text-decoration: none;
}

.registre-regions a:hover {
  border-color: var(--corail-texte);
}

.registre-region h3 {
  margin-top: var(--gap-l);
  scroll-margin-top: calc(var(--outil-entete) + var(--gap-s));
}

.registre-region + .outil-donnees {
  margin-top: 0;
}

/* --- Le tableau des villes --------------------------------------------------- */

.registre-dep {
  font-weight: 400;
  color: var(--texte-clair);
}

.registre-tableau a {
  color: var(--corail-texte);
  text-underline-offset: 3px;
}

/* Un lien de cellule est une cible tactile : sa zone sensible descend et monte de
   10 px (padding d'un élément EN LIGNE : la hauteur de la ligne ne bouge pas), soit
   44 px avec la ligne de 24 px. */
.registre-tableau a,
.registre-demarches a,
.registre-contacts a {
  padding: var(--registre-marge-lien) 0;
}

.registre-pages {
  display: block;
  margin-top: var(--gap-xs);
  font-size: var(--taille-corps);
  font-weight: 400;
}

.registre-tel span {
  white-space: nowrap;
}

@media (min-width: 640px) {
  /* Ville | S'inscrire | Téléphone (une ligne) | Un proche | Grand froid : la phrase
     « La page ne parle que de la canicule » tient en deux lignes, pas en quatre. */
  .registre-tableau tbody th {
    width: 22%;
  }

  .registre-tableau td:nth-of-type(1) {
    width: 24%;
  }

  .registre-tableau td:nth-of-type(3) {
    width: 14%;
  }

  .registre-tableau td:nth-of-type(4) {
    width: 22%;
  }
}

/* --- La réponse d'une ville ------------------------------------------------- */

.registre-demarches,
.registre-contacts,
.registre-a-savoir ul,
.registre-etapes {
  margin: 0;
  padding-left: var(--registre-retrait-liste);
}

.registre-demarches li,
.registre-contacts li,
.registre-a-savoir li {
  margin-bottom: var(--gap-xs);
}

.registre-demarches li::marker,
.registre-contacts li::marker,
.registre-a-savoir li::marker,
.registre-etapes li::marker {
  color: var(--corail-texte);
}

.registre-source {
  color: var(--texte-clair);
}

.registre-citation-courte,
.registre-dispositif {
  display: block;
  margin-top: var(--gap-xs);
}

.registre-citation-courte {
  color: var(--nuit);
}

.registre-a-savoir {
  padding: var(--gap-s);
  background: var(--blanc);
  border: 1px solid var(--voile-nuit-09);
  border-radius: var(--rayon-s);
}

.registre-a-savoir p {
  margin: 0 0 var(--gap-xs);
}

.registre-citation summary {
  display: flex;
  align-items: center;
  min-height: var(--outil-cible);
  font-weight: 500;
  color: var(--corail-texte);
  cursor: pointer;
}

.registre-citation blockquote {
  margin: var(--gap-xs) 0 0;
  padding-left: var(--gap-s);
  border-left: 2px solid var(--voile-nuit-18);
}

/* --- Les étapes générales et le modèle de lettre --------------------------- */

.registre-etapes li {
  margin-bottom: var(--gap-s);
}

/* La lettre est une feuille à recopier : une carte blanche, sans le filet corail
   des citations du site (.contenu blockquote), qui en ferait un onglet. */
.contenu .registre-lettre {
  margin: var(--gap-s) 0 var(--gap-m);
  padding: var(--gap-s);
  background: var(--blanc);
  border: 1px solid var(--voile-nuit-18);
  border-radius: var(--rayon-s);
}

.contenu .registre-lettre p:last-child {
  margin-bottom: 0;
}
