/* Réparer à proximité — design maison (aucune maquette) : bleu d'atelier, ambre d'outil, fond papier. */

:root {
	--bleu: #1d4f66;
	--bleu-fonce: #12333f;
	--fond: #f7f5f1;
	--fond-carte: #fff;
	--bordure: #e3ded4;
	--accent: #cf7222;
	--encre: #22272a;
	--gris: #646e73;
	--rayon: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--encre); background: var(--fond); line-height: 1.62; }
a { color: var(--bleu); }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--bleu); color: #fff; padding: 13px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font-size: 1.32rem; font-weight: 700; }
.logo em { font-style: normal; font-weight: 400; opacity: .82; }
.logo-icon { margin-right: 3px; }
.recherche { display: flex; gap: 8px; }
.recherche input { border: none; border-radius: var(--rayon); padding: 9px 14px; min-width: 210px; font-size: 1rem; }
/* Recherche principale de l'accueil : le champ prend la largeur disponible, et le couple
   champ + bouton passe en colonne sous 420 px plutôt que de s'écraser. */
.recherche-large { display: flex; gap: 10px; }
.recherche-large input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--bordure); }
.recherche-large button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 420px) {
	.recherche-large { flex-direction: column; }
	.recherche-large button { width: 100%; }
}
.recherche button { border: none; border-radius: var(--rayon); background: var(--accent); color: #fff; padding: 9px 16px; font-size: 1rem; cursor: pointer; }

/* contenus */
main.wrap { padding: 26px 20px 46px; }
h1 { font-size: 1.85rem; line-height: 1.24; color: var(--bleu-fonce); margin: 0 0 6px; }
.sous-titre { color: var(--gris); margin-top: 0; }
.byline { color: var(--gris); font-size: .88rem; margin: -4px 0 20px; }
h2 { font-size: 1.28rem; color: var(--bleu-fonce); margin-top: 34px; }
h3 { font-size: 1.06rem; color: var(--bleu-fonce); margin-bottom: 4px; }

/* séance : l'information qui fait l'intérêt du site, traitée comme telle */
.seance { background: var(--fond-carte); border: 1px solid var(--bordure); border-left: 4px solid var(--accent); border-radius: var(--rayon); padding: 14px 18px; margin: 16px 0; }
.seance .date { font-size: 1.22rem; font-weight: 700; color: var(--bleu-fonce); display: block; }
.seance .regle { color: var(--gris); font-size: .92rem; }
.seance.pas-de-date { border-left-color: var(--bleu); }

.badge-objet { display: inline-block; background: #eef1ee; color: var(--bleu-fonce); border: 1px solid var(--bordure); border-radius: 999px; padding: 3px 13px; font-weight: 600; margin: 3px 6px 3px 0; font-size: .9rem; }
a.badge-objet { text-decoration: none; }
a.badge-objet:hover, a.badge-objet:focus { background: var(--bleu); color: #fff; border-color: var(--bleu-fonce); }
.badge-type { display: inline-block; background: var(--bleu); color: #fff; border-radius: 999px; padding: 3px 13px; font-weight: 600; font-size: .86rem; }
.badge-ess { display: inline-block; background: #eef4f6; color: var(--bleu-fonce); border: 1px solid var(--bordure); border-radius: 999px; padding: 3px 12px; font-size: .84rem; font-weight: 600; }

.carte-info { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px 20px; margin: 16px 0; }
.carte-info p { margin: 6px 0; }

/* grilles de cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 13px; padding: 0; margin: 16px 0; list-style: none; }
.grille li { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 13px 16px; }
.grille li a { font-weight: 600; text-decoration: none; }
.grille li .meta { color: var(--gris); font-size: .9rem; margin-top: 2px; }
.grille li .dist { display: inline-block; background: #eef1ee; color: var(--bleu-fonce); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 600; float: right; }
.grille li .prochaine { color: var(--accent); font-weight: 600; font-size: .9rem; }
/* Atelier listé mais sans fiche dédiée (gate anti-thin) : même place dans la liste, pas de lien. */
.grille li .sans-fiche { font-weight: 600; color: var(--gris); cursor: default; }

/* listes de départements / villes */
.liste-depts { columns: 3; gap: 22px; padding: 0; margin: 16px 0; list-style: none; }
.liste-depts li { margin: 4px 0; break-inside: avoid; }
.dept-inactif { color: var(--gris); cursor: default; }
@media (max-width: 720px) { .liste-depts { columns: 2; } }
@media (max-width: 480px) { .liste-depts { columns: 1; } }

/* tableau des communes d'un département */
table.communes { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--fond-carte); }
table.communes th, table.communes td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
table.communes th { color: var(--bleu-fonce); font-size: .92rem; }
table.communes td.nb { text-align: right; white-space: nowrap; color: var(--gris); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 10px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }

/* footer */
.site-footer { background: var(--bleu-fonce); color: #cfdbe1; padding: 24px 0; margin-top: 38px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.attribution { opacity: .82; }

.note { color: var(--gris); font-size: .9rem; }
.intro { font-size: 1.04rem; }
.maillage { line-height: 2; }

/* CTA géolocalisation */
.cta-autour { margin: 14px 0 6px; }
.cta-autour a { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--rayon); padding: 11px 20px; }
.geo-box { text-align: center; }
.geo-btn { border: none; border-radius: var(--rayon); background: var(--accent); color: #fff; padding: 13px 26px; font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.geo-btn:disabled { opacity: .6; cursor: default; }
.geo-hint { color: var(--gris); font-size: .9rem; margin-top: 10px; }
.geo-msg { margin: 14px 0; }

/* filtres par objet (outil géoloc et pages objet) */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.filtres button { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .92rem; }
.filtres button[aria-pressed="true"] { background: var(--bleu); color: #fff; border-color: var(--bleu-fonce); }
