/**
 * Epilfit — blocs de contenu éditorial (FAQ, engagements).
 * Chargé sur tout le site : ces blocs peuvent vivre ailleurs que sur l'accueil.
 */

.epf-faq,
.epf-engagements {
	--epf-c-taupe: #a1907e;
	--epf-c-taupe-dark: #85735f;
	--epf-c-cream: #f8f5f1;
	--epf-c-line: #e8e0d6;
	--epf-c-ink: #2e2a26;
	--epf-c-muted: #857b72;
	--epf-c-ui: "Spartan", var(--theme-font-menu_font-family, ui-sans-serif), -apple-system, sans-serif;
	--epf-c-display: var(--theme-font-p_font-family, "Marcellus", Georgia, serif);

	max-width: 780px;
	margin: 0 auto;
	text-align: left;
}

/* ---------------------------------------------------------------------- FAQ */

.epf-faq-item {
	border-bottom: 1px solid var(--epf-c-line);
}

.epf-faq-item summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 17px 2px;
	cursor: pointer;
	list-style: none;
	font-family: var(--epf-c-display);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--epf-c-ink);
	transition: color 0.16s ease;
}

.epf-faq-item summary::-webkit-details-marker {
	display: none;
}

.epf-faq-item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	margin-top: 6px;
	border-right: 1.6px solid var(--epf-c-taupe);
	border-bottom: 1.6px solid var(--epf-c-taupe);
	transform: rotate(45deg);
	transition: transform 0.22s ease;
}

.epf-faq-item[open] summary {
	color: var(--epf-c-taupe-dark);
}

.epf-faq-item[open] summary::after {
	transform: rotate(-135deg);
	margin-top: 10px;
}

.epf-faq-item summary:hover {
	color: var(--epf-c-taupe-dark);
}

.epf-faq-body {
	padding: 0 2px 20px;
}

.epf-faq-body p {
	margin: 0;
	font-family: var(--epf-c-ui);
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--epf-c-muted);
}

@media (prefers-reduced-motion: reduce) {
	.epf-faq-item summary::after { transition: none; }
}

/* ------------------------------------------------------------------- Chiffre

   Remplace le compteur animé du thème, qui restait bloqué à 0. */

.epf-fact {
	--epf-c-taupe: #a1907e;
	--epf-c-ink: #2e2a26;
	--epf-c-muted: #857b72;
	--epf-c-ui: "Spartan", ui-sans-serif, -apple-system, sans-serif;
	--epf-c-display: var(--theme-font-p_font-family, "Marcellus", Georgia, serif);

	display: flex;
	align-items: baseline;
	gap: 12px;
	text-align: left;
}

.epf-fact-num {
	font-family: var(--epf-c-display);
	font-size: 42px;
	line-height: 1;
	color: var(--epf-c-taupe);
	font-variant-numeric: tabular-nums;
}

.epf-fact-label {
	font-family: var(--epf-c-ui);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--epf-c-muted);
	max-width: 15ch;
}

/* -------------------------------------------------------------- Engagements */

.epf-engagements {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 700px) {
	.epf-engagements {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

.epf-engagement {
	padding: 22px 24px;
	background: var(--epf-c-cream);
	border: 1px solid var(--epf-c-line);
	border-radius: 14px;
}

.epf-engagement h3 {
	margin: 0 0 8px;
	font-family: var(--epf-c-display);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--epf-c-ink);
}

.epf-engagement p {
	margin: 0;
	font-family: var(--epf-c-ui);
	font-size: 13px;
	line-height: 1.7;
	color: var(--epf-c-muted);
}

.epf-engagement-num {
	display: block;
	margin-bottom: 10px;
	font-family: var(--epf-c-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: var(--epf-c-taupe);
}
