/**
 * Déroulement étude NA — fond clair · navy #022b60 · orange #fbaf3f
 * Feuilles flottantes en perspective, révélation one-shot (pas de sticky).
 */
html:has(.wpcursor-deroulement-na) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-deroulement-na {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-muted: #5b6b82;
	--sr-white: #ffffff;
	--sr-bg: #f7f8fa;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-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);
	--sr-ease-sheet: cubic-bezier(0.16, 1, 0.3, 1);
	background:
		radial-gradient(ellipse 55% 50% at 92% 88%, rgba(2, 43, 96, 0.06), transparent 70%),
		var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: clip;
	padding: clamp(3.5rem, 7vw, 5.75rem) 0 clamp(3.25rem, 6vw, 5rem);
	scroll-margin-top: 5.5rem;
	width: 100%;
}

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

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__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-na .wpcursor-deroulement-na__inner {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
	margin: 0 auto;
	padding: 0 var(--sr-gutter);
	width: 100%;
}

/* ---------- Copy ---------- */
.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__copy {
	max-width: 34rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__eyebrow {
	color: var(--sr-orange) !important;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.65rem, 3.2vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0 0 1rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__intro {
	color: var(--sr-muted) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0 0 2rem;
	max-width: 30rem;
}

/* ---------- Steps ---------- */
.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__steps {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step {
	margin: 0;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step-btn {
	align-items: stretch;
	background: transparent;
	border: 0;
	border-radius: 0.35rem;
	color: inherit;
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 0.85rem 1rem;
	grid-template-columns: 2.1rem 2px minmax(0, 1fr);
	margin: 0;
	padding: 0.7rem 0.35rem 0.7rem 0;
	text-align: left;
	transition: opacity 0.3s ease;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step-num {
	color: var(--sr-orange);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding-top: 0.1rem;
	transition: color 0.25s ease, opacity 0.25s ease;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step-rail {
	align-self: stretch;
	background: rgba(251, 175, 63, 0.25);
	border-radius: 2px;
	display: block;
	min-height: 100%;
	position: relative;
	transition: background-color 0.3s ease, transform 0.3s var(--sr-ease);
	width: 2px;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step.is-active .wpcursor-deroulement-na__step-rail {
	background: var(--sr-orange);
	transform: scaleY(1.02);
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step-heading {
	color: var(--sr-navy);
	display: block;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	margin: 0 0 0.35rem;
	transition: color 0.25s ease;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step-text {
	color: var(--sr-muted);
	display: block;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.55;
	transition: color 0.25s ease, opacity 0.25s ease;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step:not(.is-active) .wpcursor-deroulement-na__step-num {
	opacity: 0.55;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step:not(.is-active) .wpcursor-deroulement-na__step-heading {
	color: rgba(2, 43, 96, 0.72);
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step:not(.is-active) .wpcursor-deroulement-na__step-text {
	opacity: 0.78;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__step-btn:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 4px;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__cta-wrap {
	margin: 0;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__cta {
	align-items: center;
	border-bottom: 2px solid var(--sr-orange);
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700;
	gap: 0.45rem;
	line-height: 1.35;
	padding-bottom: 0.15rem;
	text-decoration: none !important;
	transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__cta:hover,
.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__cta:focus-visible {
	border-bottom-color: var(--sr-orange-hover);
	color: var(--sr-navy-deep) !important;
	gap: 0.7rem;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__cta:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 4px;
}

/* ---------- Visual / sheets ---------- */
.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__visual {
	margin: 0;
	min-width: 0;
	position: relative;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__compose {
	border-radius: 0.75rem;
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__stage {
	display: none;
}

/* Desktop : scène 3D des feuilles */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__inner {
		align-items: center;
		gap: 2rem 3rem;
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__compose {
		display: none;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__stage {
		display: block;
		height: min(32rem, 62vh);
		isolation: isolate;
		overflow: visible;
		perspective: 1400px;
		perspective-origin: 50% 45%;
		position: relative;
		transform-style: preserve-3d;
		width: 100%;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet {
		backface-visibility: hidden;
		position: absolute;
		transform-origin: 50% 55%;
		transform-style: preserve-3d;
		transition: filter 0.45s var(--sr-ease), opacity 0.45s var(--sr-ease);
		width: 42%;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet-img {
		display: block;
		height: auto;
		width: 100%;
	}

	/* Composition : les images portent déjà la perspective isométrique */
	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet--1 {
		left: 2%;
		top: 0;
		z-index: 1;
		transform: translate3d(0, 0, -36px);
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet--2 {
		left: 28%;
		top: 14%;
		width: 44%;
		z-index: 2;
		transform: translate3d(0, 0, 0);
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet--3 {
		left: 52%;
		top: 30%;
		width: 46%;
		z-index: 3;
		transform: translate3d(0, 0, 40px);
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet.is-active {
		filter: brightness(1.04);
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet:not(.is-active) {
		filter: brightness(0.92) saturate(0.88);
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__sheet--3.is-active .wpcursor-deroulement-na__sheet-img {
		filter: drop-shadow(0 22px 36px rgba(2, 43, 96, 0.2)) drop-shadow(0 0 18px rgba(251, 175, 63, 0.28));
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__link {
		height: 100%;
		inset: 0;
		opacity: 0.9;
		overflow: visible;
		pointer-events: none;
		position: absolute;
		width: 100%;
		z-index: 4;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__link-path {
		stroke: var(--sr-orange);
		stroke-dasharray: 0.028 0.032;
		stroke-linecap: round;
		stroke-opacity: 0.9;
		stroke-width: 0.5;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__link-dot {
		fill: var(--sr-orange);
	}
}

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

@keyframes sr-dna-sheet-1 {
	from {
		opacity: 0;
		transform: translate3d(-48px, 72px, -160px) rotateY(8deg) scale(0.88);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, -36px) rotateY(0deg) scale(1);
	}
}

@keyframes sr-dna-sheet-2 {
	from {
		opacity: 0;
		transform: translate3d(-18px, 84px, -110px) rotateY(6deg) scale(0.88);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
	}
}

@keyframes sr-dna-sheet-3 {
	from {
		opacity: 0;
		transform: translate3d(28px, 96px, -70px) rotateY(5deg) scale(0.86);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 40px) rotateY(0deg) scale(1);
	}
}

@keyframes sr-dna-link-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 0.9;
	}
}

@keyframes sr-dna-draw {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}

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

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-deroulement-na.is-inview .wpcursor-deroulement-na__header > * {
		animation: sr-dna-rise 0.75s var(--sr-ease) both;
	}

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

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

	.wpcursor-component.wpcursor-deroulement-na.is-inview .wpcursor-deroulement-na__steps {
		animation: sr-dna-rise 0.7s var(--sr-ease) 0.22s both;
	}

	.wpcursor-component.wpcursor-deroulement-na.is-inview .wpcursor-deroulement-na__cta-wrap {
		animation: sr-dna-rise 0.65s var(--sr-ease) 0.35s both;
	}

	@media (min-width: 992px) {
		/*
		 * Feuilles masquées dès is-armed (posé au boot JS),
		 * puis révélées une par une via is-sheet-N.
		 * L’animation gagne sur opacity/transform (fill-mode both).
		 */
		.wpcursor-component.wpcursor-deroulement-na.is-armed:not(.is-sheet-1) .wpcursor-deroulement-na__sheet--1,
		.wpcursor-component.wpcursor-deroulement-na.is-armed:not(.is-sheet-2) .wpcursor-deroulement-na__sheet--2,
		.wpcursor-component.wpcursor-deroulement-na.is-armed:not(.is-sheet-3) .wpcursor-deroulement-na__sheet--3 {
			opacity: 0;
			pointer-events: none;
			visibility: hidden;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-armed:not(.is-linked) .wpcursor-deroulement-na__link {
			opacity: 0;
			visibility: hidden;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-armed:not(.is-drawn) .wpcursor-deroulement-na__link-path {
			stroke-dasharray: 1;
			stroke-dashoffset: 1;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-armed:not(.is-linked) .wpcursor-deroulement-na__link-dot {
			opacity: 0;
			transform-box: fill-box;
			transform-origin: center;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-sheet-1 .wpcursor-deroulement-na__sheet--1 {
			animation: sr-dna-sheet-1 1.15s var(--sr-ease-sheet) both;
			pointer-events: auto;
			visibility: visible;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-sheet-2 .wpcursor-deroulement-na__sheet--2 {
			animation: sr-dna-sheet-2 1.15s var(--sr-ease-sheet) both;
			pointer-events: auto;
			visibility: visible;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-sheet-3 .wpcursor-deroulement-na__sheet--3 {
			animation: sr-dna-sheet-3 1.2s var(--sr-ease-sheet) both;
			pointer-events: auto;
			visibility: visible;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-linked .wpcursor-deroulement-na__link {
			animation: sr-dna-link-in 0.4s ease both;
			visibility: visible;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-linked .wpcursor-deroulement-na__link-path {
			animation: sr-dna-draw 1.1s cubic-bezier(0.45, 0, 0.2, 1) both;
			stroke-dasharray: 1;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-linked.is-drawn .wpcursor-deroulement-na__link-path {
			stroke-dasharray: 0.028 0.032;
			stroke-dashoffset: 0;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-linked .wpcursor-deroulement-na__link-dot {
			animation: sr-dna-dot 0.5s var(--sr-ease) both;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-linked .wpcursor-deroulement-na__link-dot:nth-of-type(2) {
			animation-delay: 0.22s;
		}

		.wpcursor-component.wpcursor-deroulement-na.is-linked .wpcursor-deroulement-na__link-dot:nth-of-type(3) {
			animation-delay: 0.42s;
		}
	}

	@media (max-width: 991px) {
		.wpcursor-component.wpcursor-deroulement-na.is-inview .wpcursor-deroulement-na__compose {
			animation: sr-dna-rise 0.85s var(--sr-ease) 0.2s both;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__compose {
		display: block !important;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__stage {
		display: none !important;
	}

	.wpcursor-component.wpcursor-deroulement-na .wpcursor-deroulement-na__cta {
		transition: none;
	}
}
