/* Fiche établissement — ACF sections rendered by the [apsh_fiche_*] shortcodes. */
.apsh-fiche { display: flex; flex-direction: column; gap: 40px; font-family: Inter, sans-serif; color: #1f2430; }
.apsh-fiche__title { margin: 0 0 16px; font-size: 32px; line-height: 1.2; font-weight: 700; color: #304495; }
.apsh-fiche__text { font-size: 17px; line-height: 1.6; }
.apsh-fiche__text p { margin: 0 0 12px; }
.apsh-fiche__text ul, .apsh-fiche__text ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.apsh-fiche__section--public_concerne .apsh-fiche__text,
.apsh-fiche__section--objectifs .apsh-fiche__text { background: #f3f4f6; border-radius: 12px; padding: 24px; }
.apsh-fiche__section--conditions_acces ol { counter-reset: step; list-style: none; padding: 0; }
.apsh-fiche__section--conditions_acces ol li { counter-increment: step; position: relative; padding-left: 48px; min-height: 32px; }
.apsh-fiche__section--conditions_acces ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #304495; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.apsh-infos p { margin: 0 0 8px; }
.apsh-infos a { color: #304495; text-decoration: underline; }

.apsh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: #0f6eb4; color: #fff !important; font-weight: 600; text-decoration: none; }
.apsh-btn:hover, .apsh-btn:focus-visible { background: #304495; }
.apsh-btn:focus-visible, .apsh-liees__link:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

/* Related fiches: one row of up to 4 cards on desktop, 2 per row on tablet, 1 on mobile (Elementor breakpoints). */
.e-grid > .elementor-widget:has(> .apsh-liees), .e-grid > .elementor-widget-loop-grid { grid-column: 1 / -1; }
.apsh-liees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .apsh-liees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .apsh-liees { grid-template-columns: minmax(0, 1fr); } }
.apsh-liees__card { background: #fff; border: 1px solid #e3e6ec; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.apsh-liees__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.apsh-liees__tag { align-self: flex-start; background: #bdcfe5; color: #1f2430; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.apsh-liees__tag--antenne { background: #304495; color: #fff; }
.apsh-liees__title { margin: 0; font-size: 18px; line-height: 1.3; color: #304495; }
.apsh-liees__prestation { margin: 0; font-size: 14px; line-height: 1.4; color: #5c6066; }
.apsh-liees__link { margin-top: auto; color: #0f6eb4; font-weight: 600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The Elementor kit sets a small body size on <p>/<li>: restore the reading size of the mockup. */
.elementor .apsh-fiche__text p, .elementor .apsh-fiche__text li { font-size: 17px; line-height: 1.6; color: #1f2430; }
.elementor .apsh-infos p { font-size: 20px; line-height: 25px; }
.elementor .apsh-infos .apsh-infos__name strong { font-weight: 600; }

/* Antenne template: the criteria list of "Pour qui ?" shows one card per item (mockup Antenne). */
.apsh-list-cards ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.apsh-list-cards li { background: #f6f7ec; border-radius: 15px; padding: 30px 30px 30px 54px; position: relative; font-size: 20px; line-height: 1.3; font-weight: 700; color: #5c6066; }
.apsh-list-cards li::before { content: ""; position: absolute; left: 34px; top: 40px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 767px) {
	.apsh-list-cards ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.apsh-list-cards li { padding: 20px 20px 20px 40px; font-size: 16px; }
	.apsh-list-cards li::before { left: 22px; top: 28px; }
}

/* Search results and 404 (search.php, 404.php) */
.apsh-page { background: #fff; padding: 64px 16px 96px; font-family: Inter, sans-serif; color: #1f2430; }
.apsh-page__inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.apsh-page__eyebrow { margin: 0; color: #9d1b64; font-weight: 700; }
.apsh-page__title { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; color: #304495; }
.apsh-page__count { margin: 0; font-weight: 600; }
.apsh-page .search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.apsh-page .search-form input[type="search"] { flex: 1 1 260px; padding: 12px 16px; border: 1px solid #aeb4c0; border-radius: 8px; font-size: 16px; }
.apsh-page .search-form input[type="submit"] { padding: 12px 20px; border: 0; border-radius: 8px; background: #0f6eb4; color: #fff; font-weight: 600; cursor: pointer; }
.apsh-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.apsh-results__item { border: 1px solid #e3e6ec; border-radius: 12px; padding: 24px; display: grid; gap: 8px; }
.apsh-results__type { justify-self: start; background: #bdcfe5; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.apsh-results__title { margin: 0; font-size: 22px; line-height: 1.3; }
.apsh-results__title a, .apsh-links a, .apsh-page p a { color: #304495; }
.apsh-results__excerpt { margin: 0; line-height: 1.6; }
.apsh-links { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 18px; }
.apsh-page .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.apsh-page .page-numbers { padding: 8px 12px; border: 1px solid #e3e6ec; border-radius: 6px; color: #304495; }
.apsh-page .page-numbers.current { background: #304495; color: #fff; }

@media (max-width: 767px) {
	.apsh-fiche__title { font-size: 26px; }
	.apsh-page__title { font-size: 30px; }
	.apsh-page { padding: 40px 16px 64px; }
}
