/**
 * Territoire Pays de la Loire — navy #081d3e · orange #fbaf3f
 * Texte à gauche, carte SVG à droite, tracé animé.
 */
html:has(.wpcursor-zones-pdl) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-zones-pdl {
	--sr-navy: #022b60;
	--sr-navy-deep: #081d3e;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1.5rem, 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-navy-deep);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: hidden;
	padding: clamp(3.75rem, 8vw, 6.25rem) 0;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

.wpcursor-component.wpcursor-zones-pdl *,
.wpcursor-component.wpcursor-zones-pdl *::before,
.wpcursor-component.wpcursor-zones-pdl *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__sr-only {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__inner {
	display: grid;
	gap: clamp(2.25rem, 5vw, 3.5rem);
	grid-template-columns: 1fr;
	margin: 0 auto;
	padding: 0 var(--sr-gutter);
	position: relative;
	width: 100%;
}

/* ---------- Copy ---------- */
.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__copy {
	max-width: 34rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__eyebrow {
	color: var(--sr-orange) !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.35;
	margin: 0 0 1.1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__title {
	color: var(--sr-white) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.55rem, 2.9vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1.25rem;
	max-width: 16ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__rule {
	background: var(--sr-orange);
	border-radius: 999px;
	display: block;
	height: 3px;
	margin: 0 0 1.45rem;
	width: 2.65rem;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__body {
	margin: 0 0 1.75rem;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__lead {
	color: var(--sr-white) !important;
	font-size: clamp(1.02rem, 1.4vw, 1.12rem);
	font-weight: 700;
	line-height: 1.55;
	margin: 0 0 0.85rem;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__text {
	color: rgba(255, 255, 255, 0.86) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.05rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
	max-width: 32rem;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__inline {
	color: var(--sr-white) !important;
	text-decoration: underline;
	text-decoration-color: rgba(251, 175, 63, 0.65);
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__inline:hover,
.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__inline:focus-visible {
	color: var(--sr-orange) !important;
	text-decoration-color: var(--sr-orange);
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__note {
	border: 1.5px solid var(--sr-orange);
	border-radius: 0.55rem;
	color: var(--sr-orange) !important;
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	padding: 0.85rem 1.15rem;
}

/* ---------- Carte ---------- */
.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__map {
	justify-self: center;
	margin: 0;
	max-width: 36rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__svg {
	display: block;
	height: auto;
	max-width: 100%;
	overflow: visible;
	width: 100%;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__outline {
	stroke: rgba(255, 255, 255, 0.92);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__outline.is-simple {
	display: none;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__loire {
	stroke: var(--sr-orange);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3.2;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker {
	cursor: default;
	outline: none;
	text-decoration: none;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker.is-link {
	cursor: pointer;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker-anim {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__halo {
	fill: rgba(251, 175, 63, 0.28);
	opacity: 0.55;
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__dot {
	fill: var(--sr-white);
	stroke: rgba(251, 175, 63, 0.9);
	stroke-width: 1.5;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker-label {
	fill: var(--sr-white);
	font-family: var(--sr-font);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.14em;
	paint-order: stroke;
	stroke: rgba(8, 29, 62, 0.55);
	stroke-width: 4px;
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker:hover .wpcursor-zones-pdl__halo,
.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker:focus-visible .wpcursor-zones-pdl__halo {
	opacity: 1;
	transform: scale(1.35);
}

.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker:focus-visible .wpcursor-zones-pdl__dot {
	outline: 2px solid var(--sr-orange);
	outline-offset: 3px;
}

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__inner {
		align-items: center;
		gap: 2.5rem 3.5rem;
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__map {
		justify-self: stretch;
		max-width: none;
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__title {
		max-width: 15ch;
	}
}

@media (max-width: 991px) {
	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__outline.is-detail {
		display: none;
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__outline.is-simple {
		display: block;
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__title {
		max-width: none;
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker-label {
		font-size: 22px;
	}
}

/* ---------- Animations ---------- */
@keyframes sr-zpdl-zones-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sr-zpdl-zones-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes sr-zpdl-zones-marker {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-zones-pdl:not(.is-inview) .wpcursor-zones-pdl__copy > *,
	.wpcursor-zones-pdl:not(.is-inview) .wpcursor-zones-pdl__map {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}

	.wpcursor-zones-pdl.is-inview .wpcursor-zones-pdl__copy > * {
		animation: sr-zpdl-zones-rise 0.8s var(--sr-ease) both;
	}

	.wpcursor-zones-pdl.is-inview .wpcursor-zones-pdl__copy > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.wpcursor-zones-pdl.is-inview .wpcursor-zones-pdl__copy > :nth-child(3) {
		animation-delay: 0.14s;
	}

	.wpcursor-zones-pdl.is-inview .wpcursor-zones-pdl__copy > :nth-child(4) {
		animation-delay: 0.2s;
	}

	.wpcursor-zones-pdl.is-inview .wpcursor-zones-pdl__copy > :nth-child(5) {
		animation-delay: 0.28s;
	}

	.wpcursor-zones-pdl.is-inview .wpcursor-zones-pdl__map {
		animation: sr-zpdl-zones-rise 0.9s var(--sr-ease) 0.12s both;
	}

	.wpcursor-zones-pdl.is-outline .wpcursor-zones-pdl__outline {
		animation: sr-zpdl-zones-draw 1.35s var(--sr-ease) both;
	}

	.wpcursor-zones-pdl.is-loire .wpcursor-zones-pdl__loire {
		animation: sr-zpdl-zones-draw 0.9s var(--sr-ease) both;
	}

	.wpcursor-zones-pdl.is-markers .wpcursor-zones-pdl__marker-anim {
		animation: sr-zpdl-zones-marker 0.55s var(--sr-ease) both;
	}

	.wpcursor-zones-pdl.is-markers .wpcursor-zones-pdl__marker--angers .wpcursor-zones-pdl__marker-anim {
		animation-delay: 0.16s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__outline,
	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__loire {
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__marker-anim {
		opacity: 1;
	}

	.wpcursor-component.wpcursor-zones-pdl .wpcursor-zones-pdl__halo {
		transition: none;
	}
}
