/**
 * EEC — Section « Chiffres clés » (glassmorphism, fond photo floutée).
 */

.eec-stats {
	position: relative;
	padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 1.5rem);
	background-color: var(--eec-blue-deep);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	/* Empêche le flou backdrop des cartes de « fuir » hors section ; ne pas mettre le média en z-index négatif :
	   sinon il passerait sous ce fond opaque et disparaîtrait (cf. empilement CSS). */
	isolation: isolate;
}

.eec-stats__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	min-height: 100%;
	pointer-events: none;
}

.eec-stats__bg-picture {
	display: block;
	width: 100%;
	height: 100%;
}

.eec-stats__bg-picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: blur(14px);
	transform: scale(1.06);
}

.eec-stats__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* Photo lisible en transparence (~25–28 % du motif) ; ajuster si besoin */
	background: linear-gradient(
		135deg,
		rgba(20, 44, 82, 0.78) 0%,
		rgba(27, 58, 107, 0.72) 50%,
		rgba(20, 44, 82, 0.8) 100%
	);
	pointer-events: none;
}

.eec-stats__container {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin-inline: auto;
}

/* --- En-tête --- */
.eec-stats__header {
	text-align: center;
	margin-block-end: clamp(2.25rem, 5vw, 3.5rem);
	color: var(--eec-white);
}

.eec-stats__eyebrow {
	font-family: Lato, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--eec-yellow);
	margin: 0 0 0.75rem;
}

.eec-stats__title {
	font-family: "Playfair Display", "Playfair Fallback", Georgia, serif;
	font-size: clamp(1.75rem, 4vw, 2.625rem);
	font-weight: 700;
	color: var(--eec-white);
	margin: 0 0 1rem;
	line-height: 1.2;
}

.eec-stats__lead {
	font-size: clamp(1rem, 2.5vw, 1.0625rem);
	color: rgba(255, 255, 255, 0.85);
	max-width: 42rem;
	margin: 0 auto;
	line-height: 1.65;
}

/* --- Grille --- */
.eec-stats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 3vw, 1.25rem);
	margin-block-end: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 36rem) {
	.eec-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 52rem) {
	.eec-stats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 75rem) {
	.eec-stats__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* --- Cartes glass --- */
.eec-stats__card {
	position: relative;
	padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem) clamp(1.35rem, 2.5vw, 1.75rem);
	text-align: center;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.35s ease,
		border-color 0.35s ease,
		background-color 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.eec-stats__card:hover {
		transform: translateY(-6px);
		box-shadow: 0 16px 40px rgba(15, 36, 68, 0.35);
		border-color: rgba(244, 208, 63, 0.35);
		background: rgba(255, 255, 255, 0.09);
	}
}

/* --- Icônes (cercles dorés) --- */
.eec-stats__icon-wrap {
	width: 52px;
	height: 52px;
	margin-inline: auto;
	margin-block-end: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--eec-yellow) 0%, var(--eec-yellow-deep) 100%);
	box-shadow: 0 4px 14px rgba(244, 208, 63, 0.35);
	color: var(--eec-blue-deep);
	font-size: 1.25rem;
}

.eec-stats__number-wrap {
	min-height: 3.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block-end: 0.65rem;
}

.eec-stats__number {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.08em;
	font-family: "Playfair Display", "Playfair Fallback", Georgia, serif;
	font-size: clamp(1.65rem, 3.8vw, 2.1rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--eec-white);
	font-variant-numeric: lining-nums tabular-nums;
}

.eec-stats__count {
	color: var(--eec-white);
}

.eec-stats__suffix {
	color: var(--eec-yellow);
	font-weight: 700;
}

.eec-stats__label {
	font-family: Lato, system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.96);
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.eec-stats__subtitle {
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
}

/* --- CTA --- */
.eec-stats__cta {
	text-align: center;
}

.eec-stats__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 3rem;
	padding: 0.65rem 1.75rem;
	font-family: Lato, system-ui, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	color: var(--eec-blue-deep);
	background: linear-gradient(180deg, var(--eec-yellow) 0%, var(--eec-yellow-deep) 100%);
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eec-stats__btn:hover {
	color: var(--eec-blue-deep);
}

@media (prefers-reduced-motion: no-preference) {
	.eec-stats__btn:hover {
		animation: eec-stats-btn-bounce 0.85s ease-in-out infinite;
		box-shadow: 0 10px 28px rgba(244, 208, 63, 0.45);
	}

	.eec-stats__btn:focus-visible {
		outline: 3px solid var(--eec-yellow-light);
		outline-offset: 3px;
	}
}

@keyframes eec-stats-btn-bounce {
	0%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-6px);
	}

	55% {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eec-stats__btn:hover {
		animation: none;
	}

	.eec-stats__bg-picture img {
		filter: blur(8px);
	}
}
