/**
 * Déroulement Grand Est — fond clair · navy #022b60 · orange #fbaf3f
 * Composition typographique : grands numéros, filet orange, points, étapes.
 */
html:has(.wpcursor-deroulement-ge) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-deroulement-ge {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-white: #ffffff;
	--sr-bg: #f4f6f8;
	--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;
	--sr-num-h: clamp(3.5rem, 7vw, 5.25rem);
	background: var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow-x: clip;
	padding: clamp(3.75rem, 8vw, 6.5rem) 0;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-ge *,
.wpcursor-component.wpcursor-deroulement-ge *::before,
.wpcursor-component.wpcursor-deroulement-ge *::after {
	box-sizing: border-box;
}

/* ---------- Intro centrée ---------- */
.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto clamp(2.75rem, 5.5vw, 4rem);
	max-width: min(56rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0 var(--sr-pad);
	text-align: center;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__eyebrow {
	color: var(--sr-orange) !important;
	font-family: var(--sr-font);
	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-deroulement-ge .wpcursor-deroulement-ge__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1.15rem;
	max-width: none;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__lead {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(0.98rem, 1.35vw, 1.08rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
	max-width: min(46rem, 100%);
	opacity: 0.9;
}

/* ---------- Steps ---------- */
.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__steps-wrap {
	--sr-rail-left: 8%;
	--sr-rail-width: 84%;
	margin: 0 auto clamp(2.5rem, 4.5vw, 3.5rem);
	max-width: min(52rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail {
	display: none;
	height: 2px;
	left: var(--sr-rail-left);
	pointer-events: none;
	position: absolute;
	/* Desktop : au-dessus des numéros (recalé dans le media 900px). */
	top: calc(var(--sr-num-h) / 2);
	transform: translateY(-50%);
	width: var(--sr-rail-width);
	z-index: 0;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail-track {
	background: rgba(251, 175, 63, 0.2);
	border-radius: 999px;
	display: block;
	height: 100%;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail-fill {
	background: var(--sr-orange);
	border-radius: 999px;
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	transform: scaleX(var(--sr-rail));
	transform-origin: left center;
	transition: transform 0.55s var(--sr-ease);
	width: 100%;
}

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

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step {
	margin: 0;
	position: relative;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__num-row {
	align-items: center;
	display: flex;
	justify-content: flex-start;
	margin: 0 0 0.95rem;
	min-height: var(--sr-num-h);
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__num {
	color: transparent !important;
	font-family: var(--sr-font);
	font-size: var(--sr-num-h);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1;
	position: relative;
	-webkit-text-stroke: 1.4px var(--sr-navy);
	text-stroke: 1.4px var(--sr-navy);
	z-index: 1;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__dot {
	background: var(--sr-orange);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(244, 246, 248, 0.95);
	flex: 0 0 auto;
	height: 0.5rem;
	margin-left: -0.35rem;
	opacity: 0;
	position: relative;
	transform: scale(0.4);
	width: 0.5rem;
	z-index: 2;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__body {
	max-width: 18rem;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step-title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.08rem, 1.5vw, 1.22rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	margin: 0 0 0.4rem;
}

.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step-text {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(0.95rem, 1.2vw, 1.02rem);
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
	opacity: 0.88;
}

/* ---------- Closing ---------- */
.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__closing {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.05rem, 1.55vw, 1.2rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.4;
	margin: 0 auto;
	max-width: min(36rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0 var(--sr-pad);
	text-align: center;
	text-wrap: balance;
}

/* ---------- Desktop : 3 colonnes + rail horizontal au-dessus des numéros ---------- */
@media (min-width: 900px) {
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__steps-wrap {
		--sr-dot-size: 0.5rem;
		--sr-rail-gap: 0.7rem;
		padding-top: 0;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail {
		display: block;
		top: calc(var(--sr-dot-size) / 2);
		transform: translateY(-50%);
	}

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

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__num-row {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--sr-rail-gap);
		justify-content: flex-start;
		min-height: 0;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__dot {
		margin-left: 0.15rem;
		order: -1;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__body {
		max-width: 15.5rem;
	}
}

/* ---------- Mobile : pile + rail vertical ---------- */
@media (max-width: 899px) {
	.wpcursor-component.wpcursor-deroulement-ge {
		--sr-num-h: clamp(2.85rem, 12vw, 3.6rem);
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__steps-wrap {
		--sr-rail-left: calc(var(--sr-num-h) * 0.55);
		--sr-rail-width: 2px;
		--sr-rail-top: calc(var(--sr-num-h) / 2);
		--sr-rail-height: calc(100% - var(--sr-num-h));
		max-width: calc(100% - 2 * var(--sr-pad));
		padding-left: 0.25rem;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail {
		bottom: auto;
		display: block;
		height: var(--sr-rail-height);
		left: var(--sr-rail-left);
		right: auto;
		top: var(--sr-rail-top);
		transform: none;
		width: var(--sr-rail-width);
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail-track,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail-fill {
		width: 100%;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail-fill {
		height: 100%;
		transform: scaleY(var(--sr-rail));
		transform-origin: top center;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__steps {
		gap: 2rem;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__num {
		-webkit-text-stroke-width: 1.25px;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__dot {
		left: calc(var(--sr-num-h) * 0.55 - 0.25rem);
		margin-left: 0;
		position: absolute;
		top: 50%;
		transform: translateY(-50%) scale(0.4);
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step.is-dot .wpcursor-deroulement-ge__dot {
		transform: translateY(-50%) scale(1);
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__body {
		max-width: none;
		padding-left: 0.15rem;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__title {
		max-width: none;
	}
}

/* ---------- Animations ---------- */
@keyframes sr-dge-fade {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sr-dge-dot {
	from {
		opacity: 0;
		transform: scale(0.35);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes sr-dge-dot-mobile {
	from {
		opacity: 0;
		transform: translateY(-50%) scale(0.35);
	}
	to {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-deroulement-ge:not(.is-inview) .wpcursor-deroulement-ge__eyebrow,
	.wpcursor-component.wpcursor-deroulement-ge:not(.is-inview) .wpcursor-deroulement-ge__title,
	.wpcursor-component.wpcursor-deroulement-ge:not(.is-inview) .wpcursor-deroulement-ge__lead {
		opacity: 0;
		transform: translate3d(0, 10px, 0);
	}

	.wpcursor-component.wpcursor-deroulement-ge:not(.is-closing) .wpcursor-deroulement-ge__closing {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__num,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__body {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}

	.wpcursor-component.wpcursor-deroulement-ge.is-inview .wpcursor-deroulement-ge__eyebrow,
	.wpcursor-component.wpcursor-deroulement-ge.is-inview .wpcursor-deroulement-ge__title,
	.wpcursor-component.wpcursor-deroulement-ge.is-inview .wpcursor-deroulement-ge__lead {
		animation: sr-dge-fade 0.8s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-deroulement-ge.is-inview .wpcursor-deroulement-ge__title {
		animation-delay: 0.08s;
	}

	.wpcursor-component.wpcursor-deroulement-ge.is-inview .wpcursor-deroulement-ge__lead {
		animation-delay: 0.16s;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step.is-num .wpcursor-deroulement-ge__num {
		animation: sr-dge-fade 0.7s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step.is-dot .wpcursor-deroulement-ge__dot {
		animation: sr-dge-dot 0.4s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step.is-copy .wpcursor-deroulement-ge__body {
		animation: sr-dge-fade 0.65s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-deroulement-ge.is-closing .wpcursor-deroulement-ge__closing {
		animation: sr-dge-fade 0.75s var(--sr-ease) both;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__step.is-dot .wpcursor-deroulement-ge__dot {
		animation-name: sr-dge-dot-mobile;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-deroulement-ge {
		--sr-rail: 1 !important;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__eyebrow,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__title,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__lead,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__num,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__body,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__dot,
	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__closing {
		opacity: 1;
		transform: none;
		animation: none !important;
	}

	.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__rail-fill {
		transition: none;
	}

	@media (max-width: 899px) {
		.wpcursor-component.wpcursor-deroulement-ge .wpcursor-deroulement-ge__dot {
			transform: translateY(-50%) scale(1);
		}
	}
}
