/* Contenu sous la carte et pages départements. DA : sobre, blanche, police système. */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --encre: #1d1d1f;
    --discret: #555;
    --lien: #0062cc;
    --accent: #007AFF;
    --filet: #e3e3e6;
    --fond-doux: #f5f5f7;
}
body.page-contenu {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--encre);
    background: #fff;
    line-height: 1.55;
}
.site-nav {
    height: 50px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-nav .title { margin: 0; font-size: 18px; font-weight: bold; }
.site-nav .title a { color: var(--encre); text-decoration: none; }
.contenu {
    max-width: 62rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    line-height: 1.55;
}
.contenu h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.5rem 0 0.75rem; }
.contenu h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
.contenu p { margin: 0.5rem 0; }
.contenu a { color: var(--lien); }
.contenu a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--lien);
    outline-offset: 2px;
}
.fil-ariane { font-size: 0.9rem; color: var(--discret); margin: 0.25rem 0 0; }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fil-ariane li + li::before { content: "/"; margin-right: 0.25rem; color: var(--discret); }
.reponse { font-size: 1.05rem; }
.source { font-size: 0.875rem; color: var(--discret); border-top: 1px solid var(--filet); margin-top: 2rem; padding-top: 1rem; }

/* Tableaux : défilement dans leur propre conteneur. position: relative est indispensable :
   sans lui, les textes .sr-only (position absolue) échappent au conteneur et élargissent la page. */
.table-scroll { position: relative; max-width: 100%; min-width: 0; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--filet); border-radius: 8px; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-scroll caption { text-align: left; padding: 0.5rem 0.75rem; font-weight: 600; }
.table-scroll th, .table-scroll td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--filet); }
.table-scroll td, .table-scroll tbody th { white-space: nowrap; }
.table-scroll thead th { white-space: normal; vertical-align: bottom; }
.table-scroll th { background: var(--fond-doux); position: sticky; top: 0; }
.table-scroll td.nb, .table-scroll th.nb { text-align: right; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

/* Liste des départements */
.liste-departements { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.25rem 1rem; }
.liste-departements li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--filet); }
.liste-departements .nb { color: var(--discret); font-size: 0.9rem; white-space: nowrap; }

/* Bloc Ma commune */
.bloc-commune { background: var(--fond-doux); border-radius: 12px; padding: 1rem; margin-top: 1.5rem; }
.bloc-commune h2 { margin-top: 0; }
.bloc-commune label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.bloc-commune input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #767676;
    border-radius: 8px;
    background: #fff;
    color: var(--encre);
}
.suggestions { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggestions button {
    font: inherit;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--accent);
    background: #fff;
    color: var(--lien);
    border-radius: 999px;
    cursor: pointer;
}
.suggestions button:hover { background: #eaf3ff; }
.resultat-commune { margin-top: 1rem; }
.resultat-commune h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.liste-boites { list-style: none; margin: 0.75rem 0 0; padding: 0; max-height: 24rem; overflow-y: auto; background: #fff; border: 1px solid var(--filet); border-radius: 8px; }
.liste-boites li { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--filet); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.liste-boites li:last-child { border-bottom: 0; }
.liste-boites .heures { color: var(--discret); font-size: 0.9rem; }
.message { color: var(--discret); }

/* FAQ */
.faq-q { margin-top: 1.75rem; }

footer.pied { font-size: 0.875rem; color: var(--discret); }

@media (max-width: 30em) {
    .contenu h1 { font-size: 1.4rem; }
    .contenu { padding: 1rem 0.75rem 2rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.contenu h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }

/* Publicité (MLB-42, motif de mlebret.fr) : masquée tant que le portier n'a pas retiré ads-off (local, autre hôte,
   sans JavaScript), place réservée pour qu'aucune annonce ne fasse sauter la page, jamais collante ni superposée. */
.ml-ad { margin: 3rem 0 2.5rem; } /* 3rem au-dessus : loin du dernier lien « voir sur la carte » d'un tableau */
.ml-ad__caption { margin: 0 0 8px; color: #595959; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.ml-ad__slot { min-height: 100px; }
.ml-ad:not(.ml-ad--bandeau) .adsbygoogle { display: block; width: 100%; }
html.ads-off .ml-ad { display: none !important; }
.ml-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
@media print { .ml-ad { display: none !important; } }
@media (min-width: 768px) { .ml-ad__slot { min-height: 280px; } }

/* Bandeau du haut (MLB-43) : petite annonce de taille fixe entre l'introduction et le tableau. Sa taille vient du <style>
   de la page (méthode documentée par Google), jamais d'ici : la place est réservée par la hauteur du ins lui-même.
   Il garde sa place quand Google ne sert rien, pour ne pas faire remonter le tableau sous les yeux du lecteur
   (même choix que pour le blog, MLB-38). Plus de 100 px d'écart avec le premier lien du tableau. */
.ml-ad--bandeau { margin: 1.25rem 0 1.75rem; }
.ml-ad--bandeau .ml-ad__slot { min-height: 0; display: flex; justify-content: center; }
.ml-ad--bandeau:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: block; }
@media (max-width: 359.98px) { .ml-ad--bandeau { display: none !important; } }
