/**
 * Avant l’intervention — fond clair · navy #022b60 · orange #fbaf3f
 */
html:has(.wpcursor-avant-interv) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-avant-interv {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-muted: #5b6b82;
	--sr-bg: #f6f4ef;
	--sr-white: #ffffff;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1.15rem, 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-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: clip;
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-avant-interv *,
.wpcursor-component.wpcursor-avant-interv *::before,
.wpcursor-component.wpcursor-avant-interv *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__inner {
	margin: 0 auto;
	max-width: 100%;
	padding: 0 var(--sr-gutter);
	width: 100%;
}

/* ---------- Intro ---------- */
.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__intro {
	max-width: 44rem;
	opacity: 0;
	transform: translate3d(0, 16px, 0);
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__eyebrow {
	align-items: center;
	color: var(--sr-orange) !important;
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 700;
	gap: 0.75rem;
	letter-spacing: 0.12em;
	line-height: 1.35;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__eyebrow-mark {
	background: var(--sr-orange);
	display: inline-block;
	flex: 0 0 auto;
	height: 2px;
	width: 1.6rem;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.55rem, 3.4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.18;
	margin: 0 0 1rem;
	max-width: 22ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__text {
	color: var(--sr-muted) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
	max-width: 40rem;
}

/* ---------- Visual ---------- */
.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__visual {
	margin: clamp(2rem, 5vw, 3.25rem) 0 0;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__stage {
	isolation: isolate;
	margin: 0 auto;
	max-width: 58rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__building {
	filter: blur(0.55px);
	margin: 0 auto;
	max-width: 28rem;
	opacity: 0;
	position: relative;
	transform: scale(0.96) translate3d(0, 12px, 0);
	width: min(100%, 28rem);
	z-index: 1;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__img {
	display: block;
	height: auto;
	width: 100%;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__scan,
.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__leaders {
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__scan {
	left: 50%;
	max-width: 28rem;
	opacity: 0;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(100%, 28rem);
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__scan-arc {
	stroke-dashoffset: 0.72;
	transform-box: fill-box;
	transform-origin: center;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__leader {
	opacity: 0.92;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__pin {
	background: var(--sr-orange);
	border: 2px solid var(--sr-white);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(251, 175, 63, 0.22);
	height: 0.7rem;
	opacity: 0;
	position: absolute;
	transform: translate(-50%, -50%) scale(0.55);
	width: 0.7rem;
	z-index: 3;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__markers {
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
	position: absolute;
	z-index: 4;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker {
	max-width: 12.5rem;
	opacity: 0;
	position: absolute;
	transform: translate3d(0, 10px, 0);
	width: max-content;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker--left {
	padding-right: 0.65rem;
	text-align: left;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker--right {
	padding-left: 0.65rem;
	text-align: left;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker-anchor {
	height: 1px;
	pointer-events: none;
	position: absolute;
	top: 0.7rem;
	width: 1px;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker--left .wpcursor-avant-interv__marker-anchor {
	right: 0;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker--right .wpcursor-avant-interv__marker-anchor {
	left: 0;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker-label {
	color: var(--sr-navy) !important;
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 0.35rem;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker-text {
	color: var(--sr-muted) !important;
	display: block;
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.4;
	max-width: 12rem;
}

/* Liste mobile (toujours dans le DOM pour a11y selon breakpoint) */
.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__list {
	display: none;
	flex-direction: column;
	gap: 1rem;
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__item {
	align-items: flex-start;
	display: flex;
	gap: 0.85rem;
	opacity: 0;
	transform: translate3d(0, 12px, 0);
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__item-dot {
	background: var(--sr-orange);
	border: 2px solid var(--sr-white);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(251, 175, 63, 0.2);
	flex: 0 0 auto;
	height: 0.7rem;
	margin-top: 0.35rem;
	width: 0.7rem;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__item-label {
	color: var(--sr-navy) !important;
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.3rem;
}

.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__item-text {
	color: var(--sr-muted) !important;
	font-size: 0.92rem;
	line-height: 1.45;
	margin: 0;
}

/* ---------- Reveal ---------- */
.wpcursor-component.wpcursor-avant-interv.is-ready .wpcursor-avant-interv__intro {
	opacity: 1;
	transform: none;
	transition: opacity 0.55s var(--sr-ease), transform 0.55s var(--sr-ease);
}

.wpcursor-component.wpcursor-avant-interv.is-building .wpcursor-avant-interv__building {
	filter: none;
	opacity: 1;
	transform: none;
	transition: opacity 0.7s var(--sr-ease), transform 0.75s var(--sr-ease), filter 0.75s var(--sr-ease);
}

.wpcursor-component.wpcursor-avant-interv.is-building .wpcursor-avant-interv__scan {
	opacity: 1;
	transition: opacity 0.6s var(--sr-ease) 0.15s;
}

.wpcursor-component.wpcursor-avant-interv.is-scan .wpcursor-avant-interv__scan-arc {
	animation: srAvantScan 4.8s linear infinite;
}

.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__pin {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.35s ease, transform 0.45s var(--sr-ease);
	transition-delay: calc(var(--i) * 0.22s);
}

.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__leader {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.55s var(--sr-ease);
}

.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__leader[data-sr-avant-leader="support"] { transition-delay: 0.08s; }
.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__leader[data-sr-avant-leader="regles"] { transition-delay: 0.3s; }
.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__leader[data-sr-avant-leader="acces"] { transition-delay: 0.52s; }
.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__leader[data-sr-avant-leader="intervenants"] { transition-delay: 0.74s; }

.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__marker {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s ease, transform 0.5s var(--sr-ease);
	transition-delay: calc(0.18s + var(--i) * 0.22s);
}

.wpcursor-component.wpcursor-avant-interv.is-markers .wpcursor-avant-interv__item {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s ease, transform 0.5s var(--sr-ease);
	transition-delay: calc(0.12s + var(--i) * 0.14s);
}

@keyframes srAvantScan {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__stage {
		min-height: 28rem;
		padding: 0.5rem 0 1rem;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__building {
		max-width: 30rem;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__list {
		display: none !important;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 959px) {
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__markers--desktop,
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__leaders {
		display: none !important;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__pin {
		/* Points restent visibles comme indices sur l’illustration */
		height: 0.55rem;
		width: 0.55rem;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__list {
		display: flex;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__building {
		max-width: 22rem;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__title {
		max-width: none;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__intro,
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__building,
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__scan,
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__pin,
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__marker,
	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__item {
		filter: none !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__pin {
		transform: translate(-50%, -50%) !important;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__leader {
		stroke-dasharray: none !important;
		stroke-dashoffset: 0 !important;
		transition: none !important;
	}

	.wpcursor-component.wpcursor-avant-interv .wpcursor-avant-interv__scan-arc {
		animation: none !important;
	}
}
