/**
 * Déroulement étude PACA — fond navy #011833/#022b60 · blanc · orange #fbaf3f
 * Sticky scroll desktop natif · pile mobile · rail horizontal cliquable
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

html:has(.wpcursor-deroulement-paca) {
	overflow-x: clip;
}

body:has(.wpcursor-deroulement-paca) {
	overflow-x: clip !important;
	overflow-y: visible !important;
}

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

.wpcursor-component.wpcursor-deroulement-paca {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-white: #ffffff;
	--sr-muted: rgba(255, 255, 255, 0.72);
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, 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-admin-h: var(--wp-admin--admin-bar--height, 0px);
	--sr-header-h: 4.5rem;
	--sr-rail-progress: 0%;
	background:
		radial-gradient(ellipse 42% 36% at 88% 12%, rgba(251, 175, 63, 0.12) 0%, rgba(251, 175, 63, 0) 70%),
		linear-gradient(165deg, var(--sr-navy-deep) 0%, var(--sr-navy) 55%, #011a3a 100%);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	position: relative;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

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

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__pin,
.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__scene {
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__scene {
	padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__inner {
	align-items: start;
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: 100%;
	padding: 0 var(--sr-gutter);
	width: 100%;
}

/* ---------- Copy gauche ---------- */
.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__copy {
	max-width: 28rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__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-paca .wpcursor-deroulement-paca__title {
	color: var(--sr-white) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	margin: 0 0 0.85rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__hook {
	color: var(--sr-white) !important;
	font-family: var(--sr-serif);
	font-size: clamp(1.7rem, 3.4vw, 2.55rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 1rem;
	max-width: 12ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__intro {
	color: var(--sr-muted) !important;
	font-size: clamp(0.95rem, 1.2vw, 1.04rem);
	line-height: 1.55;
	margin: 0;
	max-width: 30rem;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__vrail {
	background: var(--sr-orange);
	border-radius: 2px;
	display: none;
	height: 4.5rem;
	margin-top: 1.75rem;
	width: 2px;
}

/* ---------- Story ---------- */
.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__story {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panels {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
	position: relative;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel {
	margin: 0;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__num {
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1.5px var(--sr-orange);
	color: transparent;
	font-family: var(--sr-serif);
	font-size: clamp(3.5rem, 8vw, 5.5rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 0.9;
	margin: 0 0 0.65rem;
	paint-order: stroke fill;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel-title {
	color: var(--sr-white) !important;
	font-family: var(--sr-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.65rem;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel-text {
	color: var(--sr-muted) !important;
	font-size: clamp(0.95rem, 1.15vw, 1.05rem);
	line-height: 1.55;
	margin: 0 0 1.25rem;
	max-width: 36rem;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__illu {
	margin: 0.5rem 0 0;
	max-width: 28rem;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__frame {
	aspect-ratio: 1 / 1;
	background:
		radial-gradient(ellipse 70% 55% at 50% 42%, rgba(251, 175, 63, 0.08) 0%, rgba(251, 175, 63, 0) 72%),
		linear-gradient(165deg, #ffffff 0%, #f3f5f8 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1.15rem;
	box-shadow:
		0 1.25rem 2.75rem rgba(0, 8, 24, 0.35),
		0 0 0 1px rgba(1, 24, 51, 0.06) inset;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__frame::after {
	border: 1px solid rgba(2, 43, 96, 0.06);
	border-radius: inherit;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__img {
	display: block;
	height: 100%;
	object-fit: contain;
	object-position: center 58%;
	padding: 6% 8% 4%;
	width: 100%;
}

/* ---------- Rail ---------- */
.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail {
	align-items: flex-start;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 0.5rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-track {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 2px;
	grid-column: 1 / -1;
	height: 2px;
	left: 8%;
	overflow: hidden;
	position: absolute;
	right: 8%;
	top: 1.05rem;
	z-index: 0;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-progress {
	background: var(--sr-orange);
	display: block;
	height: 100%;
	transform-origin: left center;
	transition: width 0.45s var(--sr-ease);
	width: var(--sr-rail-progress);
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-btn {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--sr-white);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font: inherit;
	gap: 0.55rem;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	position: relative;
	text-align: center;
	z-index: 1;
}

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

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-dot {
	align-items: center;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	color: var(--sr-white);
	display: inline-flex;
	height: 2.15rem;
	justify-content: center;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
	width: 2.15rem;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-btn.is-active .wpcursor-deroulement-paca__rail-dot {
	background: var(--sr-orange);
	border-color: var(--sr-orange);
	color: var(--sr-navy-deep);
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-num {
	font-family: var(--sr-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-label {
	font-family: var(--sr-serif);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-btn.is-active .wpcursor-deroulement-paca__rail-label {
	opacity: 1;
}

/* ---------- Desktop sticky ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__inner {
		align-items: stretch;
		gap: 2.5rem 3.5rem;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
	}

	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__vrail {
		display: block;
	}

	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__copy {
		border-right: 0;
		padding-right: 0.5rem;
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__scene {
		position: sticky;
		top: calc(var(--sr-admin-h) + var(--sr-header-h));
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__inner {
		align-items: center;
		min-height: calc(100vh - var(--sr-admin-h) - var(--sr-header-h) - 2rem);
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__panels {
		display: grid;
		gap: 0;
		grid-template-columns: 1fr;
		min-height: 28rem;
	}

	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__illu {
		max-width: 26rem;
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__panel {
		grid-area: 1 / 1;
		opacity: 0;
		pointer-events: none;
		transform: translate3d(0, 12px, 0);
		transition: opacity 0.4s var(--sr-ease), transform 0.4s var(--sr-ease);
		visibility: hidden;
		z-index: 0;
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__panel.is-active {
		opacity: 1;
		pointer-events: auto;
		transform: none;
		visibility: visible;
		z-index: 1;
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__panel:not(.is-active) .wpcursor-deroulement-paca__illu {
		display: none;
	}
}

@media (max-width: 991px) {
	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panels {
		gap: 0;
	}

	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel + .wpcursor-deroulement-paca__panel {
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		margin-top: 1.75rem;
		padding-top: 1.75rem;
	}

	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail {
		margin-top: 0.25rem;
	}

	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__hook {
		max-width: 16ch;
	}
}

@media (prefers-reduced-motion: no-preference) {
	@media (max-width: 991px) {
		.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel {
			animation: sr-dpaca-rise 0.65s var(--sr-ease) both;
		}

		.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel:nth-child(2) {
			animation-delay: 0.08s;
		}

		.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__panel:nth-child(3) {
			animation-delay: 0.16s;
		}
	}
}

@keyframes sr-dpaca-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 14px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-deroulement-paca .wpcursor-deroulement-paca__rail-progress {
		transition: none;
	}

	.wpcursor-component.wpcursor-deroulement-paca.is-sticky .wpcursor-deroulement-paca__panel {
		transition: none;
	}
}
