/**
 * Déroulement Pays de la Loire — navy #022b60 · orange #fbaf3f
 * Texte + vue plan annotée + étapes Observer / Vérifier / Définir.
 */
html:has(.wpcursor-deroulement-pdl) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-deroulement-pdl {
	--sr-navy: #022b60;
	--sr-orange: #fbaf3f;
	--sr-white: #ffffff;
	--sr-bg: #eef2f6;
	--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);
	--sr-rail: 0;
	background: var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	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-deroulement-pdl *,
.wpcursor-component.wpcursor-deroulement-pdl *::before,
.wpcursor-component.wpcursor-deroulement-pdl *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-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-deroulement-pdl .wpcursor-deroulement-pdl__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 3.75rem);
	margin: 0 auto;
	padding: 0 var(--sr-gutter);
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__top {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

/* ---------- Copy ---------- */
.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__copy {
	max-width: 34rem;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__eyebrow {
	color: var(--sr-orange) !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.55rem;
	letter-spacing: 0.16em;
	line-height: 1.35;
	margin: 0 0 1.1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__eyebrow-rule {
	background: var(--sr-orange);
	border-radius: 999px;
	display: block;
	height: 2px;
	width: 2.4rem;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__title {
	color: var(--sr-navy) !important;
	font-size: clamp(1.55rem, 2.9vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1.15rem;
	max-width: 18ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__text {
	color: var(--sr-navy) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.06rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
	max-width: 32rem;
	opacity: 0.9;
}

/* ---------- Visual ---------- */
.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__visual {
	margin: 0;
	max-width: 34rem;
	justify-self: center;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__frame {
	isolation: isolate;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__img {
	display: block;
	height: auto;
	opacity: 0;
	transform: translate3d(0, 14px, 0) scale(1.02);
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__grid {
	height: 100%;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__grid line {
	stroke: rgba(2, 43, 96, 0.12);
	stroke-width: 0.35;
}

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

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-line {
	stroke: var(--sr-orange);
	stroke-linecap: round;
	stroke-width: 1.5;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-dot {
	fill: var(--sr-orange);
	opacity: 0;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-labels {
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
	position: absolute;
	z-index: 3;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-label {
	color: var(--sr-navy) !important;
	font-size: clamp(0.72rem, 1.1vw, 0.84rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0;
	max-width: 9rem;
	opacity: 0;
	position: absolute;
	transform: translate(-8%, -110%);
	white-space: nowrap;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-label--support {
	transform: translate(4%, -110%);
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-label--acces {
	transform: translate(4%, 20%);
}

/* ---------- Steps ---------- */
.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__steps-wrap {
	margin: 0 auto;
	max-width: 52rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__rail {
	background: rgba(251, 175, 63, 0.22);
	border-radius: 999px;
	display: none;
	height: 2px;
	left: 12%;
	position: absolute;
	right: 12%;
	top: 0.95rem;
	z-index: 0;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__rail-fill {
	background: var(--sr-orange);
	border-radius: inherit;
	display: block;
	height: 100%;
	transform: scaleX(var(--sr-rail));
	transform-origin: left center;
	transition: transform 0.45s var(--sr-ease);
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__steps {
	display: grid;
	gap: 1.35rem;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step {
	margin: 0;
	opacity: 0;
	transform: translate3d(0, 12px, 0);
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step-num {
	color: var(--sr-orange) !important;
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0 0 0.45rem;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step-title {
	color: var(--sr-navy) !important;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	margin: 0 0 0.35rem;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step-text {
	color: var(--sr-navy) !important;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	max-width: 18rem;
	opacity: 0.88;
}

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

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__visual {
		justify-self: stretch;
		max-width: none;
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__rail {
		/* Centre du glyphe « 01 » → centre du glyphe « 03 ».
		   Deux interstices de 2rem, trois colonnes égales. */
		display: block;
		left: 0.58rem;
		right: auto;
		top: calc(1.05rem * 1.45 + 2.15rem - 1px);
		width: calc((100% - 4rem) * 2 / 3 + 4rem);
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__steps {
		gap: 1.5rem 2rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-top: 0;
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step {
		text-align: left;
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step-num {
		display: inline-block;
		line-height: 1.45;
		margin-bottom: 2.75rem;
	}
}

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

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-label {
		font-size: 0.7rem;
		max-width: 7.5rem;
		white-space: normal;
	}
}

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

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

@keyframes sr-zpdl-der-dot {
	to {
		opacity: 1;
	}
}

.wpcursor-component.wpcursor-deroulement-pdl.is-visual .wpcursor-deroulement-pdl__img,
.wpcursor-component.wpcursor-deroulement-pdl.is-visual .wpcursor-deroulement-pdl__grid {
	opacity: 1;
	transform: none;
	transition: opacity 0.85s var(--sr-ease), transform 0.85s var(--sr-ease);
}

.wpcursor-component.wpcursor-deroulement-pdl.is-visual .wpcursor-deroulement-pdl__grid {
	opacity: 0.9;
	transition-delay: 0.12s;
}

.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.55s var(--sr-ease), transform 0.55s var(--sr-ease);
}

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

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

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

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

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno-line {
		animation: sr-zpdl-der-draw 0.75s var(--sr-ease) both;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno--support .wpcursor-deroulement-pdl__anno-line {
		animation-delay: 0.12s;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno--acces .wpcursor-deroulement-pdl__anno-line {
		animation-delay: 0.24s;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno-dot {
		animation: sr-zpdl-der-dot 0.35s ease both;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno--support .wpcursor-deroulement-pdl__anno-dot {
		animation-delay: 0.28s;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno--acces .wpcursor-deroulement-pdl__anno-dot {
		animation-delay: 0.4s;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno-label {
		animation: sr-zpdl-der-dot 0.55s var(--sr-ease) both;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno-label--usage {
		animation-delay: 0.2s;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno-label--support {
		animation-delay: 0.32s;
	}

	.wpcursor-deroulement-pdl.is-annos .wpcursor-deroulement-pdl__anno-label--acces {
		animation-delay: 0.44s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-deroulement-pdl {
		--sr-rail: 1;
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__img,
	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__grid,
	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-dot,
	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-label,
	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__step {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__anno-line {
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-deroulement-pdl .wpcursor-deroulement-pdl__rail-fill {
		transition: none;
	}
}
