/* Bandeau « périmètre géographique actif » (inc/geo-context.php). */
.b4y-geo-context { padding: 12px 0 0; }
.b4y-geo-context[hidden] { display: none; }
.b4y-geo-context .b4y-home-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #ecd3e0;
	border-left: 4px solid #B1264F;
	border-radius: 8px;
	background: #fdf5f9;
	color: #111827;
	font-size: 15px;
	line-height: 1.4;
}
.b4y-geo-context p { margin: 0; }
.b4y-geo-context__label { display: flex; align-items: center; gap: 8px; }
.b4y-geo-context__label svg { display: block; width: 18px; height: 18px; fill: none; stroke: #B1264F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b4y-geo-context__note,
.b4y-geo-context__warning { flex-basis: 100%; order: 3; font-size: 14px; color: #4b5563; }
.b4y-geo-context__warning { order: -1; color: #7a2e0e; }
.b4y-geo-context__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.b4y-geo-context__actions a { display: inline-flex; align-items: center; min-height: 40px; color: #8C1E3F; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.b4y-geo-context__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.b4y-geo-context__form label { font-weight: 600; font-size: 14px; }
.b4y-geo-context__form select { min-height: 40px; max-width: 100%; margin: 0; padding: 6px 10px; border: 1px solid #8b93a1; border-radius: 6px; background: #fff; color: #111827; font-size: 15px; }
.b4y-geo-context__form button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: #8C1E3F; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.b4y-geo-context a:focus-visible,
.b4y-geo-context select:focus-visible,
.b4y-geo-context button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
@media (max-width: 600px) {
	.b4y-geo-context__actions,
	.b4y-geo-context__form { width: 100%; }
	.b4y-geo-context__form select { flex: 1 1 180px; min-width: 0; }
}

/* Explication sous les vignettes quand une rubrique est vide dans la zone. */
.b4y-geo-empty-note { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: #374151; }
.b4y-geo-empty-note a { display: inline-flex; align-items: center; min-height: 44px; color: #8C1E3F; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.b4y-geo-empty-note a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

/* Fiche : lien de retour (aspect existant ; cible tactile et focus). */
a.back-link[data-b4y-back] { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; max-width: 100%; min-height: 44px; }
a.back-link[data-b4y-back]:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

/* Pages de pôle : une commune sans fiche (sans lien) se distingue des communes cliquables. */
body .b4y-pole-chips li:not(:has(a)) { background: transparent; border: 1px dashed #aab2c0; color: #4b5563; }
.b4y-pole-chips-note { margin: 10px 0 0; font-size: 13px; color: #4b5563; }

/* Annuaire avec filtres : même visuel que l'accueil de l'annuaire, en présentation compacte. */
.b4y-annuaire-hero.b4y-annuaire-hero--directory.b4y-annuaire-hero--compact { min-height: 0; padding-top: 28px; padding-bottom: 28px; background-position: right 42%; }
.b4y-annuaire-hero--directory.b4y-annuaire-hero--compact h1 { margin-top: 6px; margin-bottom: 8px; font-size: clamp(28px, 3vw, 40px); }
.b4y-annuaire-hero--directory.b4y-annuaire-hero--compact .b4y-annuaire-hero-intro p:not(.b4y-pill) { margin-bottom: 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 1359px) {
	.b4y-annuaire-hero.b4y-annuaire-hero--directory.b4y-annuaire-hero--compact { --b4y-strip: min(24vw, 190px); padding-top: calc(var(--b4y-strip) + 4px); padding-bottom: 22px; }
}
@media (max-width: 600px) {
	.b4y-annuaire-hero.b4y-annuaire-hero--directory.b4y-annuaire-hero--compact { --b4y-strip: 110px; padding-bottom: 16px; }
	.b4y-annuaire-hero--directory.b4y-annuaire-hero--compact .b4y-annuaire-hero-intro p:not(.b4y-pill) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}

/* Recherches « de garde » / « urgences » : disponibilité non vérifiée. */
.b4y-search-advisory { display: block; margin: 12px 0; padding: 12px 16px; border-left: 4px solid #b45309; border-radius: 8px; background: #fff7ed; color: #5c2608; font-size: 15px; line-height: 1.55; text-align: left; }
.b4y-search-advisory > span { display: block; }
.b4y-search-advisory > span + span { margin-top: 8px; }
.b4y-search-advisory a { color: #5c2608; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
