/*
 * Pages « Nous connaître » : Nos clochers, L'équipe paroissiale, Nous écrire,
 * Documents, Mentions légales, Vos données personnelles, recherche.
 */

/* ------------------------------------------------------------ Nos clochers */

/* Vignettes des quatre clochers, en haut de page. */
:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignettes { gap: 14px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignette > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignette .is-style-ep-arche img { aspect-ratio: 128 / 184; border-radius: 999px 999px 4px 4px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignette p { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignette p a { color: var(--ep-vert); text-decoration: none !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignette p a:hover { text-decoration: underline !important; }

/* Fiche de chaque clocher : un filet entre deux églises. */
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche { scroll-margin-top: 24px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche + .ep-nc-clocher-fiche { border-top: 1px solid var(--ep-trait); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .wp-block-columns { gap: 96px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .is-style-ep-chapeau { font-size: 19px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .is-style-ep-feuilles > li { font-size: 16px; padding-top: 10px; padding-bottom: 10px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .is-style-ep-feuilles > li::before { top: 15px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .is-style-ep-encart { padding: 24px 28px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .is-style-ep-encart h3 { font-size: 26px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .is-style-ep-encart p { font-size: 16px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-source { gap: 8px 24px; margin-top: 12px !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-source > * { margin: 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-source .wp-block-button__link { font-size: 15px; }

/* Adresse et sacristain. */
:is(.entry-content, .editor-styles-wrapper) .ep-nc-fiche > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-fiche .is-style-ep-etiquette { margin-bottom: 2px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-fiche .ep-nc-fiche-valeur + .is-style-ep-etiquette { margin-top: 18px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-fiche-valeur { font-family: var(--ep-titre); font-size: 24px; line-height: 1.3; color: var(--ep-encre); }
:is(.entry-content, .editor-styles-wrapper) .is-style-ep-lien.ep-nc-lien-encre .wp-block-button__link { color: var(--ep-encre); }
:is(.entry-content, .editor-styles-wrapper) .ep-boutons-ligne { gap: 12px 32px; }
:is(.entry-content, .editor-styles-wrapper) .ep-boutons-ligne .wp-block-button__link { font-size: 16px; }

/* Photo seule (chapelle) : une feuille posée en bas à gauche, crédit sous la photo. */
:is(.entry-content, .editor-styles-wrapper) .ep-nc-composition--seule { padding-bottom: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-composition--seule::before { right: auto; top: auto; left: 30px; bottom: -10px; width: 86px; height: 60px; transform: rotate(-12deg); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-composition--seule::after { display: none; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-credit { text-align: right; color: var(--ep-encre-douce); margin-top: 12px !important; }

:is(.entry-content, .editor-styles-wrapper) .ep-nc-s--sources { padding-bottom: 72px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-s--sources p { color: var(--ep-encre-douce); }

@media (max-width: 781px) {
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignettes { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-vignette p { font-size: 12px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .wp-block-columns { gap: 32px; }
	/* En mobile, la photo passe toujours avant le texte. */
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-photo-droite { flex-direction: column-reverse; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-fiche-valeur { font-size: 21px; }
}
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .wp-block-column > .is-style-ep-feuilles { margin-top: 22px; margin-bottom: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .wp-block-column > .ep-nc-fiche { margin-top: 28px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-clocher-fiche .wp-block-column > .wp-block-buttons { margin-top: 22px; }

/* -------------------------------------------------- L'équipe paroissiale */

:is(.entry-content, .editor-styles-wrapper) .ep-nc-image-heros { max-width: 420px; margin-left: auto !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-image-heros img { aspect-ratio: 420 / 500; }
:is(.entry-content, .editor-styles-wrapper) p.ep-nc-initiales--grand { width: 116px; height: 116px; font-size: 42px; }
@media (min-width: 782px) {
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretres { grid-template-columns: repeat(4, 1fr) !important; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-membres { grid-template-columns: repeat(5, 1fr) !important; }
}

:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretres { gap: 40px 32px; margin-top: 40px !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretre > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretre .is-style-ep-etiquette { margin-top: 18px; margin-bottom: 4px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretre h3 { font-size: 30px; line-height: 1.15; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretre h3 + p { margin-top: 10px; font-size: 16px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretre .wp-block-buttons { margin-top: 10px; }

:is(.entry-content, .editor-styles-wrapper) .ep-nc-membres { gap: 32px 24px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-membre { text-align: center; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-membre > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-membre p.ep-initiales { width: 94px; height: 94px; font-size: 36px; margin: 0 auto 16px; background: var(--ep-tilleul-pale); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-membre h4 { font-size: 22px; line-height: 1.2; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-membre .ep-petit { margin-top: 2px; color: var(--ep-encre-douce); }

:is(.entry-content, .editor-styles-wrapper) .ep-nc-personne--grande { gap: 24px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-personne--grande h3 { font-size: 30px; margin: 2px 0 6px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-personne--grande .is-style-ep-etiquette { margin-bottom: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-accueil h4 { font-size: 24px; margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-accueil .wp-block-column > * + * { margin-top: 8px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-accueil .wp-block-buttons { margin-top: 18px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-coordonnees a { color: var(--ep-encre-douce); text-decoration: none !important; }

:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-roles { gap: 40px; margin-top: 32px !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-roles { border-bottom: 1px solid var(--ep-trait); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-roles > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-role { border-top: 1px solid var(--ep-trait); padding: 18px 0 14px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-role > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-role .is-style-ep-etiquette { margin-bottom: 2px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-role .ep-nc-fiche-valeur { font-size: 26px; }
@media (max-width: 781px) {
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretres { grid-template-columns: 1fr 1fr !important; gap: 32px 20px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-pretre h3 { font-size: 24px; }
	:is(.entry-content, .editor-styles-wrapper) p.ep-nc-initiales--grand { width: 84px; height: 84px; font-size: 32px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-membre p.ep-initiales { width: 72px; height: 72px; font-size: 28px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-role .ep-nc-fiche-valeur { font-size: 22px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-membres { grid-template-columns: 1fr 1fr !important; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-roles { gap: 0; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-roles .wp-block-column:first-child .ep-nc-roles { border-bottom: 0; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-image-heros { margin-left: 0 !important; }
}

/* ------------------------------------------------------------ Nous écrire */

:is(.entry-content, .editor-styles-wrapper) .ep-nc-image-paysage img { aspect-ratio: 520 / 300; object-fit: cover; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-formulaire { gap: 80px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-bloc-contact > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-bloc-contact > * + * { margin-top: 6px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-bloc-contact h4 { font-size: 26px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-bloc-contact h3 { font-size: 28px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-liens-fleches a { font-weight: 600; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-liens-fleches a::after { content: '  →'; white-space: pre; display: inline-block; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-formulaire .wp-block-separator { margin: 24px 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-formulaire > .wp-block-column:last-child { padding-top: 8px; }
@media (max-width: 781px) {
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-formulaire { gap: 40px; }
}
/* Case d'accord : le lien « Vos données personnelles » suit le texte au lieu de former une colonne. */
.ep-nc-colonnes-formulaire .ep-formulaire .ep-accord label { display: block; position: relative; padding-left: 30px; }
.ep-nc-colonnes-formulaire .ep-formulaire .ep-accord input { position: absolute; left: 0; top: 0; margin: 2px 0 0; }

/* -------------------------------------------------------------- Documents */

:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents { gap: 96px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents h1 { margin-bottom: 18px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents > .wp-block-column:last-child { padding-top: 220px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-chapeau-large { max-width: none; font-size: 19px; margin-bottom: 48px !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sur-cette-page { margin-top: 0; padding-top: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sur-cette-page > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-etiquette-discrete { color: var(--ep-encre-douce); margin-bottom: 8px !important; }
:is(.entry-content, .editor-styles-wrapper) ul.ep-nc-sommaire { list-style: none; padding: 0; margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire li { position: relative; padding: 4px 0 4px 28px; font-size: 16px; font-weight: 600; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire li::before { content: ''; position: absolute; left: 0; top: 10px; width: 18px; height: 13px; background: var(--ep-feuille-svg) no-repeat center / contain; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire a { color: var(--ep-encre); text-decoration: none !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire a:hover { color: var(--ep-vert); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents .is-style-ep-niche { margin-top: 56px !important; padding: 72px 32px 40px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents .is-style-ep-niche h3 { font-size: 30px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents .is-style-ep-niche p:not(.is-style-ep-accroche) { font-size: 16px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents .is-style-ep-niche .is-style-ep-accroche { color: var(--ep-vert); }
/* Deux feuilles posées en haut à droite de la niche. */
:is(.entry-content, .editor-styles-wrapper) .ep-nc-niche-feuilles { position: relative; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-niche-feuilles::before { display: none; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-niche-feuilles::after {
	content: '';
	position: absolute;
	right: -14px;
	top: 18px;
	width: 92px;
	height: 60px;
	background:
		var(--ep-feuille-tilleul-svg) no-repeat 0 0 / 70px 46px,
		var(--ep-feuille-profonde-svg) no-repeat 52px 22px / 40px 28px;
}

/* La liste des documents (bloc « Documents de la paroisse »). */
.ep-documents__groupe { scroll-margin-top: 24px; margin-top: 48px; }
.ep-documents__titre { font-size: 32px !important; margin-bottom: 14px !important; }
.ep-documents .ep-documents__liste { list-style: none; padding: 0 !important; margin: 0 !important; }
.ep-documents .ep-document { border-top: 1px solid var(--ep-trait); margin: 0; }
.ep-documents .ep-document__lien { gap: 24px; padding: 22px 0; white-space: normal; font-weight: 400; }
.ep-documents .ep-document__icone {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 44px;
	height: 54px;
	padding-bottom: 7px;
	border: 1.5px solid var(--ep-brique);
	border-radius: 7px;
	color: var(--ep-brique);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: transparent;
}
.ep-documents .ep-document__icone::before { content: none; display: none; }
.ep-documents .ep-document__texte { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ep-documents .ep-document__titre { font-family: var(--ep-titre); font-size: 25px; line-height: 1.2; color: var(--ep-encre); }
.ep-documents .ep-document__meta { display: block; text-align: left; font-size: 14px; color: var(--ep-encre-douce); padding: 0 !important; }
.ep-documents .ep-document__resume { font-size: 16px; color: var(--ep-encre-douce); }
.ep-documents .ep-document__action { flex: 0 0 auto; color: var(--ep-vert); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.ep-documents .ep-document__action::after { content: '  ↓'; white-space: pre; display: inline-block; text-decoration: none; }
@media (max-width: 781px) {
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents { gap: 40px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents > .wp-block-column:last-child { padding-top: 0; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-sur-cette-page { display: none; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-chapeau-large { margin-bottom: 24px !important; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-documents .is-style-ep-niche { margin-top: 32px !important; }
	.ep-documents .ep-document__lien { display: grid; grid-template-columns: 36px 1fr; gap: 8px 16px; align-items: start; }
	.ep-documents .ep-document__icone { width: 36px; height: 44px; padding-bottom: 5px; font-size: 9px; }
	.ep-documents .ep-document__texte { min-width: 0; }
	.ep-documents .ep-document__titre { font-size: 21px; }
	.ep-documents .ep-document__action { grid-column: 2; padding-left: 0; }
}

/* ------------------------------- Mentions légales et données personnelles */

:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-texte { gap: 64px; margin-top: 24px !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-texte > .wp-block-column:last-child { max-width: 760px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire-colle { position: sticky; top: 32px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire-colle > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) ul.ep-nc-sommaire-texte { list-style: none; padding: 0; margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire-texte li { padding: 4px 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire-texte a { color: var(--ep-encre); text-decoration: none !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire-texte a:hover { color: var(--ep-vert); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique { border-top: 1px solid var(--ep-trait); padding: 28px 0 32px; margin: 0 !important; scroll-margin-top: 24px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique > * { margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique > * + * { margin-top: 12px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique h2 { font-size: 34px; margin-bottom: 14px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique p { font-size: 18px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique a { color: inherit; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique a[href^='/'] { color: var(--ep-vert); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique mark { background: none; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits { margin: 20px 0 16px !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits table { border-collapse: collapse; width: 100%; border: 0 !important; border-bottom: 1px solid var(--ep-trait) !important; margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits td { border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits td { border: 0; border-top: 1px solid var(--ep-trait); padding: 14px 16px 14px 0; vertical-align: top; font-size: 17px; color: var(--ep-encre); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits td:last-child { width: 32%; font-size: 14px; font-weight: 600; color: var(--ep-vert); padding-right: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique .ep-petit { color: var(--ep-encre-douce); font-size: 14px; }
@media (max-width: 781px) {
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-colonnes-texte { gap: 24px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-sommaire-colle { position: static; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique h2 { font-size: 28px; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits tr { display: block; border-top: 1px solid var(--ep-trait); padding: 12px 0; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits td { display: block; border: 0; padding: 0; width: auto !important; }
	:is(.entry-content, .editor-styles-wrapper) .ep-nc-tableau-credits td:last-child { margin-top: 4px; }
}
/* Trois engagements en ligne, précédés d'une feuille. */
:is(.entry-content, .editor-styles-wrapper) ul.ep-nc-engagements { list-style: none; padding: 0; margin: 28px 0 40px !important; display: flex; flex-wrap: wrap; gap: 8px 40px; }
:is(.entry-content, .editor-styles-wrapper) ul.ep-nc-puces-feuilles { list-style: none; padding: 0; margin: 16px 0 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-engagements li,
:is(.entry-content, .editor-styles-wrapper) .ep-nc-puces-feuilles li { position: relative; padding: 4px 0 4px 30px; margin: 0; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-puces-feuilles li { padding-top: 6px; padding-bottom: 6px; color: var(--ep-encre); font-size: 18px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-engagements li { font-size: 16px; font-weight: 600; color: var(--ep-vert); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-engagements li::before,
:is(.entry-content, .editor-styles-wrapper) .ep-nc-puces-feuilles li::before { content: ''; position: absolute; left: 0; top: 11px; width: 20px; height: 14px; background: var(--ep-feuille-svg) no-repeat center / contain; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-puces-feuilles li::before { top: 14px; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-engagements li:first-child::before { background-image: var(--ep-feuille-tilleul-svg); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-engagements li:last-child::before { background-image: var(--ep-feuille-profonde-svg); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-page-texte .ep-nc-chapeau-large { max-width: 760px; margin-bottom: 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique a[href^='mailto'], :is(.entry-content, .editor-styles-wrapper) .ep-nc-rubrique a[href*='cnil.fr/fr'] { color: var(--ep-vert); }
:is(.entry-content, .editor-styles-wrapper) .ep-nc-intro > * { margin-left: 0; margin-right: 0; }

/* -------------------------------------------------------------- Recherche */

.search.ep-page .site-content > .ast-container,
.search .site-content .ast-container { max-width: none; padding: 0; display: block; }
.ep-nc-page-recherche #primary { width: 100%; margin: 0; padding: 0; }
.ep-nc-page-recherche #secondary { display: none; }
.ep-nc-page-recherche .ast-header-search .astra-search-icon { border-color: var(--ep-vert); color: var(--ep-vert); }
.ep-nc-recherche .ep-s { padding-left: var(--ep-gouttiere); padding-right: var(--ep-gouttiere); }
.ep-nc-recherche .ep-nc-recherche-tete { padding-bottom: 0; }
.ep-nc-recherche-largeur { max-width: var(--ep-largeur); margin: 0 auto; }
.ep-nc-recherche .is-style-ep-accroche { margin-bottom: 14px; }

.ep-nc-recherche-form { display: flex; gap: 14px; align-items: center; max-width: 900px; }
.ep-nc-recherche-form__champ { position: relative; flex: 1; display: flex; align-items: center; }
.ep-nc-recherche-form__champ svg { position: absolute; left: 22px; color: var(--ep-encre); pointer-events: none; }
.ep-nc-recherche-form input[type='search'] {
	width: 100%;
	height: 64px;
	padding: 0 24px 0 56px;
	border: 2px solid var(--ep-vert);
	border-radius: 999px;
	background: var(--ep-blanc);
	font-family: var(--ep-texte);
	font-size: 20px;
	color: var(--ep-encre);
}
.ep-nc-recherche-form input[type='search']:focus { outline: 3px solid var(--ep-tilleul-pale); }
.ep-nc-recherche-form__bouton {
	flex: 0 0 auto;
	height: 56px;
	padding: 0 28px;
	border-radius: 999px;
	border: 1.5px solid var(--ep-vert);
	background: var(--ep-vert);
	color: var(--ep-creme);
	font-family: var(--ep-texte);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}
.ep-nc-recherche-form__bouton:hover { background: var(--ep-vert-logo); border-color: var(--ep-vert-logo); }
.ep-nc-recherche-form__bouton--contour { background: transparent; color: var(--ep-encre); border-color: rgba(28, 31, 26, 0.8); }
.ep-nc-recherche-form__bouton--contour:hover { background: var(--ep-encre); color: var(--ep-creme); border-color: var(--ep-encre); }

.ep-nc-recherche .ep-nc-recherche-titre { font-size: 36px; margin: 28px 0 18px; }
.ep-nc-recherche-filtres { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-nc-recherche-filtre {
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid rgba(28, 31, 26, 0.22);
	background: var(--ep-blanc);
	font-size: 15px;
	color: var(--ep-encre);
	text-decoration: none !important;
}
.ep-nc-recherche-filtre span { color: var(--ep-encre-douce); font-size: 13px; }
.ep-nc-recherche-filtre:hover { border-color: var(--ep-vert); color: var(--ep-vert); }
.ep-nc-recherche-filtre.is-actif { background: var(--ep-vert); border-color: var(--ep-vert); color: var(--ep-creme); }
.ep-nc-recherche-filtre.is-actif span { color: var(--ep-creme); }
.ep-nc-recherche-filtre.is-vide { color: rgba(85, 87, 77, 0.6); }

.ep-nc-recherche-corps { padding-top: 48px !important; }
.ep-nc-recherche-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; }
.ep-nc-recherche-groupe + .ep-nc-recherche-groupe { margin-top: 40px; }
.ep-nc-recherche-groupe__titre { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ep-vert); margin: 0 0 14px; }
.ep-nc-recherche-groupe__titre span { color: var(--ep-encre-douce); letter-spacing: 0.04em; }
.ep-nc-resultat { border-top: 1px solid var(--ep-trait); padding: 20px 0 22px; }
.ep-nc-recherche-groupe .ep-nc-resultat:last-child { border-bottom: 1px solid var(--ep-trait); }
.ep-nc-resultat > * { margin: 0; }
.ep-nc-resultat__fil { font-size: 14px; color: var(--ep-encre-douce); white-space: pre-wrap; }
.ep-nc-recherche .ep-nc-resultat__titre { font-size: 28px; line-height: 1.2; margin: 6px 0 6px; }
.ep-nc-resultat__titre a { color: var(--ep-encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ep-nc-resultat__titre a:hover { color: var(--ep-vert); }
.ep-nc-resultat__extrait { font-size: 17px; line-height: 1.6; color: var(--ep-encre-douce); }
.ep-nc-resultat__extrait mark { background: none; color: var(--ep-vert); font-weight: 700; padding: 0; }

.ep-nc-recherche-aside { position: sticky; top: 32px; }
.ep-nc-recherche-pistes { text-align: center; padding: 72px 28px 32px !important; }
.ep-nc-recherche-pistes .is-style-ep-accroche { font-size: 26px; justify-content: center; }
.ep-nc-recherche-pistes .is-style-ep-accroche::before { display: none; }
.ep-nc-recherche-pistes ul { list-style: none; margin: 16px 0 0; padding: 0; border-bottom: 1px solid var(--ep-trait); }
.ep-nc-recherche-pistes li { border-top: 1px solid var(--ep-trait); padding: 12px 0; }
.ep-nc-recherche-pistes li a { font-weight: 600; font-size: 16px; color: var(--ep-vert); }
.ep-nc-recherche-pistes li a::after { content: '  →'; white-space: pre; display: inline-block; }
.ep-nc-recherche-pistes__note { margin: 16px 0 0; font-size: 14px; color: var(--ep-encre-douce); }
.ep-nc-recherche-pistes__note a { color: inherit; text-decoration: none !important; }

/* Aucun résultat. */
.ep-nc-recherche-vide { padding-top: 56px !important; }
.ep-nc-recherche-grille--vide { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; }
.ep-nc-recherche-grille--vide > div > * { margin-top: 0; margin-bottom: 0; }
.ep-nc-recherche .ep-nc-recherche-vide__titre { font-size: 52px; line-height: 1.08; margin-bottom: 18px; }
.ep-nc-recherche-vide__texte { font-size: 20px; max-width: 620px; margin-bottom: 24px !important; }
.ep-nc-recherche-vide .is-style-ep-etiquette { margin-bottom: 12px !important; }
.ep-nc-recherche-frequentes { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-nc-recherche-frequentes a {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid rgba(28, 31, 26, 0.22);
	background: var(--ep-blanc);
	font-size: 15px;
	color: var(--ep-encre);
	text-decoration: none !important;
}
.ep-nc-recherche-frequentes a:hover { border-color: var(--ep-vert); color: var(--ep-vert); }
.ep-nc-recherche-vide hr { margin: 28px 0 !important; }
.ep-nc-recherche-vide .wp-block-buttons { margin-top: 16px !important; }
.ep-nc-recherche-vide__photo { position: relative; max-width: 340px; justify-self: end; margin: 0; }
.ep-nc-recherche-vide__photo img { border-radius: 999px 999px 6px 6px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; display: block; }
.ep-nc-recherche-vide__photo::before,
.ep-nc-recherche-vide__photo::after { content: ''; position: absolute; background-repeat: no-repeat; background-size: contain; }
.ep-nc-recherche-vide__photo::before { right: -28px; top: 16px; width: 92px; height: 62px; background-image: var(--ep-feuille-tilleul-svg); transform: rotate(-8deg); }
.ep-nc-recherche-vide__photo::after { right: -40px; top: 86px; width: 58px; height: 42px; background-image: var(--ep-feuille-profonde-svg); transform: rotate(-30deg); }

@media (max-width: 900px) {
	.ep-nc-recherche-grille, .ep-nc-recherche-grille--vide { grid-template-columns: 1fr; gap: 40px; }
	.ep-nc-recherche-aside { position: static; }
	.ep-nc-recherche-vide__photo { display: none; }
}
@media (max-width: 781px) {
	.ep-nc-recherche-form { flex-wrap: wrap; }
	.ep-nc-recherche-form input[type='search'] { height: 54px; font-size: 18px; }
	.ep-nc-recherche-form__bouton { display: none; }
	.ep-nc-recherche .ep-nc-recherche-titre { font-size: 28px; }
	.ep-nc-recherche .ep-nc-resultat__titre { font-size: 23px; }
	.ep-nc-recherche .ep-nc-recherche-vide__titre { font-size: 36px; }
	.ep-nc-recherche-vide__texte { font-size: 18px; }
}

/* ---------------------------------------------------- Page introuvable */

.error404 .site-content .ast-container { max-width: none; padding: 48px var(--ep-gouttiere) 72px; }
.error404 .ep-404 { max-width: 900px; margin: 0 auto; text-align: center; }
.error404 .ep-404__dessin { position: relative; max-width: 720px; margin: 0 auto 28px; padding-bottom: 14px; }
.error404 .ep-404__dessin img { width: 100%; height: auto; display: block; margin: 0; }
.error404 .ep-404__dessin::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--ep-vague-svg) no-repeat center / 100% 100%; }
.error404 .ep-404__oups { justify-content: center; font-size: 32px; margin: 0; }
.error404 .ep-404__oups::before { display: none; }
.error404 .ep-404 .page-title { font-size: 72px; line-height: 1.05; margin: 8px 0 18px; }
.error404 .ep-404__texte { font-size: 20px; max-width: 620px; margin: 0 auto 22px; color: var(--ep-encre-douce); }
.error404 .ep-404__chemins { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 0 0 28px; }
.error404 .ep-404__chemins a { font-weight: 600; color: var(--ep-vert); text-decoration: underline; text-underline-offset: 4px; }
.error404 .ep-404__chemins a::after { content: '  →'; white-space: pre; display: inline-block; text-decoration: none; }
.error404 .ep-404__boutons { justify-content: center; display: flex; }
.error404 .ep-404__boutons .wp-block-button__link { background: var(--ep-vert); color: var(--ep-creme); border-radius: 999px; padding: 15px 30px; font-weight: 600; text-decoration: none; }
/* Le dessin des clochers est déjà en haut de la page : le pied de page garde seulement la vague. */
.error404 .site-above-footer-wrap .ep-clochers { display: none; }
.error404 .site-above-footer-wrap { min-height: 0 !important; padding-top: 0 !important; }
.error404 .site-above-footer-wrap .ast-builder-grid-row { min-height: 0 !important; }
@media (max-width: 781px) {
	.error404 .ep-404 .page-title { font-size: 42px; }
	.error404 .ep-404__texte { font-size: 18px; }
	.error404 .ep-404__chemins { flex-direction: column; gap: 10px; }
}
.ep-nc-recherche .ep-nc-resultat > p, .ep-nc-recherche .ep-nc-recherche-groupe__titre { margin-top: 0; margin-bottom: 0; }
.ep-nc-recherche .ep-nc-recherche-groupe__titre { margin-bottom: 14px; }
.ep-nc-recherche-pistes li a { text-decoration: underline; text-underline-offset: 3px; }

/* Phrase « Votre message sera transmis à … » (formulaire Nous écrire). */
.ep-transmis { margin: -6px 0 22px; font-size: 15px; color: var(--ep-encre-douce); }
.ep-transmis strong { color: var(--ep-vert); font-weight: 600; }
