/**
 * Contexte Normandie & Eure — fond clair, typo éditoriale, chiffre 27 dessin.
 * navy #022b60 · orange #fbaf3f · Poppins + Source Serif 4
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap");

html:has(.wpcursor-contexte-normandie) {
	overflow-x: clip;
}

.entry-content > .wpcursor-component.wpcursor-contexte-normandie,
.entry-content[data-ast-blocks-layout] > .wpcursor-component.wpcursor-contexte-normandie,
.wpcursor-component.wpcursor-contexte-normandie.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wpcursor-component.wpcursor-contexte-normandie {
	--sr-navy: #022b60;
	--sr-orange: #fbaf3f;
	--sr-slate: #7a8ba3;
	--sr-muted: #3d4f6a;
	--sr-bg: #f4f6f8;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sr-pad: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--sr-content: 84rem;
	--sr-gutter: max(var(--sr-pad), calc((100vw - min(100vw, var(--sr-content))) / 2 + var(--sr-pad)));
	--sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	background: var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	overflow: clip;
	padding: clamp(3.25rem, 7vw, 5.75rem) 0 clamp(3rem, 6vw, 5rem);
	scroll-margin-top: 6rem;
	width: 100%;
}

.wpcursor-component.wpcursor-contexte-normandie *,
.wpcursor-component.wpcursor-contexte-normandie *::before,
.wpcursor-component.wpcursor-contexte-normandie *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__inner {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: 100%;
	padding: 0 var(--sr-gutter);
	width: 100%;
}

/* ---------- Copie ---------- */
.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__copy {
	max-width: 36rem;
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__eyebrow {
	color: var(--sr-orange) !important;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.35;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.7rem, 3.5vw, 2.55rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 1.1rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__text {
	color: var(--sr-muted) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 1.65rem;
	max-width: 34rem;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__markers {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.15rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker {
	align-items: center;
	display: inline-flex;
	gap: 0.55rem;
	opacity: 0.38;
	padding: 0.15rem 0.7rem 0.15rem 0;
	transition: opacity 0.35s ease;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker.is-active {
	opacity: 1;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker-dot {
	background: var(--sr-orange);
	border-radius: 50%;
	flex: 0 0 auto;
	height: 0.38rem;
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.3s ease, transform 0.3s var(--sr-ease);
	width: 0.38rem;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker.is-active .wpcursor-contexte-normandie__marker-dot {
	opacity: 1;
	transform: scale(1);
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker-label {
	color: var(--sr-navy);
	font-size: clamp(0.68rem, 1.05vw, 0.76rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
	white-space: nowrap;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__note {
	color: var(--sr-navy) !important;
	font-family: var(--sr-serif);
	font-size: 0.95rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.45;
	margin: 0;
	opacity: 0.88;
}

/* ---------- Visuel 27 ---------- */
.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__visual {
	justify-self: stretch;
	margin: 0;
	max-width: 36rem;
	width: 100%;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__svg {
	display: block;
	height: auto;
	max-width: 100%;
	overflow: visible;
	width: 100%;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__digit {
	stroke: var(--sr-slate);
	stroke-width: 3.25;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__roof {
	stroke: var(--sr-orange);
	stroke-width: 2.75;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__dept {
	fill: var(--sr-navy);
	font-family: var(--sr-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	opacity: 0;
}

.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__region {
	fill: var(--sr-slate);
	font-family: var(--sr-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	opacity: 0;
}

.wpcursor-component.wpcursor-contexte-normandie.is-labeled .wpcursor-contexte-normandie__dept,
.wpcursor-component.wpcursor-contexte-normandie.is-labeled .wpcursor-contexte-normandie__region {
	opacity: 1;
	transition: opacity 0.45s ease;
}

.wpcursor-component.wpcursor-contexte-normandie.is-labeled .wpcursor-contexte-normandie__region {
	transition-delay: 0.12s;
}

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: clamp(2rem, 5vw, 4.5rem);
	}

	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__visual {
		justify-self: end;
		max-width: 100%;
	}
}

@media (max-width: 599px) {
	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker-label {
		letter-spacing: 0.08em;
		white-space: normal;
	}

	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__visual {
		max-width: 18.5rem;
	}

	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__digit {
		stroke-width: 4;
	}

	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__roof {
		stroke-width: 3.25;
	}
}

/* ---------- Entrée texte ---------- */
@keyframes sr-cn-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 16px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-contexte-normandie:not(.is-inview) .wpcursor-contexte-normandie__eyebrow,
	.wpcursor-component.wpcursor-contexte-normandie:not(.is-inview) .wpcursor-contexte-normandie__title,
	.wpcursor-component.wpcursor-contexte-normandie:not(.is-inview) .wpcursor-contexte-normandie__text,
	.wpcursor-component.wpcursor-contexte-normandie:not(.is-inview) .wpcursor-contexte-normandie__note {
		opacity: 0;
		transform: translate3d(0, 16px, 0);
	}

	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__eyebrow,
	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__title,
	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__text,
	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__note {
		animation: sr-cn-rise 0.75s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__title {
		animation-delay: 0.08s;
	}

	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__text {
		animation-delay: 0.16s;
	}

	.wpcursor-component.wpcursor-contexte-normandie.is-inview .wpcursor-contexte-normandie__note {
		animation-delay: 0.55s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__digit,
	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__roof {
		transition: none !important;
	}

	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__dept,
	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__region,
	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker {
		opacity: 1 !important;
	}

	.wpcursor-component.wpcursor-contexte-normandie .wpcursor-contexte-normandie__marker-dot {
		opacity: 1 !important;
		transform: none !important;
	}
}
