/**
 * CTA final Pays de la Loire — navy #022b60 · orange #fbaf3f
 * Texte gauche · photo droite en découpe courbe · filet orange.
 */
html:has(.wpcursor-cta-pdl) {
	overflow-x: clip;
}

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

body:has(.wpcursor-cta-pdl) #page {
	min-height: 0 !important;
}

body:has(.wpcursor-cta-pdl) #page .site-content {
	flex-grow: 0 !important;
}

body:has(.wpcursor-cta-pdl) #primary.content-area,
body:has(.wpcursor-cta-pdl) #primary,
body:has(.wpcursor-cta-pdl) .site-content > .ast-container,
body:has(.wpcursor-cta-pdl) .entry-content,
body:has(.wpcursor-cta-pdl) .entry-content > *:last-child,
body:has(.wpcursor-cta-pdl) article.page {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.wpcursor-component.wpcursor-cta-pdl {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--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);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: hidden;
	position: relative;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

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

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-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-cta-pdl .wpcursor-cta-pdl__panel {
	display: grid;
	gap: 0;
	grid-template-columns: 1fr;
	position: relative;
	width: 100%;
}

/* ---------- Copy ---------- */
.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(3rem, 7vw, 4.5rem) var(--sr-gutter) clamp(2.5rem, 5vw, 3.5rem);
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__title {
	color: var(--sr-white) !important;
	font-size: clamp(1.65rem, 3.2vw, 2.45rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0 0 1.15rem;
	max-width: 18ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__text {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0 0 1.75rem;
	max-width: 34rem;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__action {
	margin: 0 0 0.95rem;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn {
	align-items: center;
	background: var(--sr-orange);
	border-radius: 999px;
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700;
	gap: 0.55rem;
	justify-content: center;
	line-height: 1.25;
	min-height: 3.15rem;
	padding: 0.9rem 1.55rem;
	text-decoration: none !important;
	transition: background-color 0.22s ease, transform 0.18s ease;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn-arrow {
	display: inline-block;
	line-height: 1;
	transform: translate3d(0, 0, 0);
	transition: transform 0.28s var(--sr-ease);
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:hover,
.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:focus-visible {
	background: var(--sr-orange-hover);
	color: var(--sr-navy) !important;
	transform: translateY(-1px);
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:hover .wpcursor-cta-pdl__btn-arrow,
.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:focus-visible .wpcursor-cta-pdl__btn-arrow {
	transform: translate3d(5px, 0, 0);
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:focus-visible {
	outline: 2px solid var(--sr-white);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__note {
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 0.9rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.45;
	margin: 0;
	max-width: 28rem;
}

/* ---------- Visual ---------- */
.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__visual {
	margin: 0;
	min-height: 14rem;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__defs {
	position: absolute;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__stage {
	height: 100%;
	inset: 0;
	min-height: inherit;
	position: absolute;
	width: 100%;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__frame {
	height: 100%;
	inset: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: 62% center;
	opacity: 0;
	transform: translate3d(18px, 0, 0) scale(1.04);
	width: 100%;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__edge {
	height: 100%;
	inset: 0;
	opacity: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__stroke {
	stroke: var(--sr-orange);
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	stroke-linecap: round;
	stroke-width: 1.75;
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__panel {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		min-height: clamp(26rem, 52vh, 34rem);
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__copy {
		padding: clamp(3.5rem, 6vw, 5.5rem) 2.5rem clamp(3.5rem, 6vw, 5.5rem) var(--sr-gutter);
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__visual {
		min-height: 100%;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__edge {
		display: block;
	}
}

@media (max-width: 899.98px) {
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__title {
		max-width: none;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn {
		width: 100%;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__visual {
		min-height: clamp(13rem, 42vw, 18rem);
		order: 3;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__frame {
		/* Sur mobile : courbe plus douce / moins agressive */
		-webkit-clip-path: ellipse(120% 100% at 70% 50%) !important;
		clip-path: ellipse(120% 100% at 70% 50%) !important;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__edge {
		display: none;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__copy {
		padding-bottom: 1.75rem;
	}
}

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

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

.wpcursor-component.wpcursor-cta-pdl.is-inview .wpcursor-cta-pdl__img {
	opacity: 1;
	transform: none;
	transition: opacity 0.95s var(--sr-ease), transform 1s var(--sr-ease);
}

.wpcursor-component.wpcursor-cta-pdl.is-inview .wpcursor-cta-pdl__edge {
	opacity: 1;
	transition: opacity 0.3s ease 0.2s;
}

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

	.wpcursor-cta-pdl.is-inview .wpcursor-cta-pdl__copy > * {
		animation: sr-ctapdl-rise 0.75s var(--sr-ease) both;
	}

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

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

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

	.wpcursor-cta-pdl.is-inview .wpcursor-cta-pdl__stroke {
		animation: sr-ctapdl-draw 0.9s var(--sr-ease) 0.28s both;
	}

	.wpcursor-cta-pdl.is-inview .wpcursor-cta-pdl__img {
		transition-delay: 0.12s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__copy > *,
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__img,
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__edge {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__stroke {
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn,
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn-arrow {
		transition: none;
	}

	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:hover,
	.wpcursor-component.wpcursor-cta-pdl .wpcursor-cta-pdl__btn:focus-visible {
		transform: none;
	}
}
