/*
 * Bandeau PanneauPocket et footer.
 *
 * Reprise fidèle de la maquette, classes conservées telles quelles.
 * Écarts volontaires :
 *
 * 1. Titres de colonne du footer : opacité .55 au lieu de .45.
 *    4.44:1 → 5.68:1 sur le fond --ink.
 *
 * 2. Cibles tactiles. Le lien Facebook et les pastilles PanneauPocket font
 *    44 px. Les liens des colonnes et du bas font au moins 28 px, grâce à un
 *    rembourrage vertical compensé par l'écart entre eux : le rythme de la
 *    maquette est intact (WCAG 2.5.8 : 24 px minimum).
 *
 * 4. Bandeau PanneauPocket sous 760 px : le texte passe SOUS le logo. Avec
 *    « flex: 1 », sa base était nulle : il restait à côté du logo, dans une
 *    colonne de 64 px, et la page défilait horizontalement sur tous les
 *    téléphones (RGAA 10.11).
 *
 * 5. Bordure des pastilles PanneauPocket à .55 de blanc au lieu de .3 :
 *    2.5:1 → 3.4:1 sur --navy, comme .assoc-link.
 *
 * 3. Les titres de colonne sont des <h2> (la maquette employait des <h4> sans
 *    h3 au-dessus, ce qui crée un saut de niveau — RGAA 9.1). L'apparence est
 *    identique, seul le sélecteur change.
 *
 * Le CSS mort de la maquette (.footer-pp, .pp-card, .socials-card,
 * .socials-list) n'est pas repris : ces blocs ne figurent dans aucun HTML.
 * PanneauPocket vit uniquement dans le bandeau ci-dessous, alimenté par la page
 * d'options « Mairie » — le layout bandeau_cta est abandonné.
 */

/* ==========================================================================
   Bandeau PanneauPocket
   ========================================================================== */

.pp-banner {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid var(--line);
}

.pp-banner-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 0;
}

.pp-banner .pp-logo {
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--r-card);
  padding: 18px 26px;
  display: grid;
  place-items: center;
}

.pp-banner .pp-logo img { width: 190px; height: auto; display: block; }

.pp-banner .pp-body { flex: 1; min-width: 0; }

.pp-banner .pp-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 7px;
}

/* Titre du bandeau : un <h2> depuis l'audit du 16 novembre 2026, même rendu. */
.pp-banner .pp-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.pp-banner .pp-body span { font-size: 0.90625rem; color: rgba(255, 255, 255, 0.78); }

.pp-banner .pp-actions { display: flex; gap: 10px; flex-shrink: 0; }

.pp-banner .pp-actions a {
  padding: 12px 20px;
  min-height: var(--touch);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-pill);
  font-size: 0.84375rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, color .2s, border-color .2s;
}

.pp-banner .pp-actions a:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.pp-banner .pp-actions a:hover svg { color: var(--navy); }
.pp-banner .pp-actions svg { width: 15px; height: 15px; --icon-boost: 4px; }

/* Les deux liens mènent aux boutiques d'applications : le repère ↗ est utile
   mais alourdit la pastille, on le remplace par la mention dans aria-label. */
.pp-banner .pp-actions a::after { content: none; }

@media (max-width: 760px) {
  .pp-banner-inner { flex-wrap: wrap; gap: 20px; }
  /* Écart n° 4 : le texte prend toute la ligne, sous le logo. */
  .pp-banner .pp-body { flex: 1 1 100%; }
  .pp-banner .pp-logo img { width: 160px; }
  .pp-banner .pp-actions { width: 100%; }
  .pp-banner .pp-actions a { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: #c9c4b8;
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   Colonne d'identité
   -------------------------------------------------------------------------- */

.footer-brand { max-width: 340px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.5); }

.footer-brand p {
  font-size: 0.84375rem;
  margin-top: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.footer-fb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  margin-bottom: 18px;
  padding: 9px 16px 9px 12px;
  min-height: var(--touch);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84375rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}

.footer-fb svg { width: 17px; height: 17px; --icon-boost: 4px; }

.footer-fb:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

.footer-meta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-meta > div { display: flex; align-items: center; gap: 10px; }

.footer-meta svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.55);
  --icon-boost: 4px;
}

.footer-meta a { color: inherit; }
.footer-meta a:hover { color: #fff; }
.footer-meta strong { color: #fff; font-weight: 500; }

/* Horaires d'accueil : un jour par ligne, alignés sous le libellé. */
.footer-meta .footer-hours { align-items: flex-start; }
.footer-meta .footer-hours svg { margin-top: 2px; }
.footer-hours-day { display: block; }

/* --------------------------------------------------------------------------
   Colonnes de liens
   -------------------------------------------------------------------------- */

/* Écart n° 1 : .55 au lieu de .45 — 5.68:1. */
.footer-col h2 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 2px; }

/* Écart n° 2 : 4 px de rembourrage, 8 px d'écart en moins — même rythme. */
.footer-col a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.84375rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color .2s;
}

.footer-col a:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   Bas de footer
   -------------------------------------------------------------------------- */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom .links { display: flex; gap: 6px 24px; flex-wrap: wrap; align-items: center; }

/* Élément de liste (RGAA 9.3) : en flex, il épouse son lien sans interligne en plus. */
.footer-bottom .links > [role="listitem"] { display: flex; }

.footer-bottom .links a,
.footer-bottom .links button { display: inline-block; padding: 5px 0; }
.footer-bottom a:hover,
.footer-bottom button:hover { color: #fff; }

/* Le bouton de réouverture du bandeau cookies doit être visuellement identique
   aux liens voisins tout en restant un <button> : c'est une commande, pas une
   navigation (RGAA 9.x). */
.footer-bottom .cookies-link {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Sous 980 px
   ========================================================================== */

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { max-width: none; }
}

@media (max-width: 620px) {
  .footer { padding-top: 56px; }
  .footer-top { grid-template-columns: 1fr; }
}
