/**
 * Parcours projets Lyon — navy #011833 / #022b60 · orange #fbaf3f
 * Desktop : piste sticky + focus progressif. Mobile : pile verticale sans sticky.
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

/* overflow-x:hidden sur body casse position:sticky (cf. hero-accueil). */
html:has(.wpcursor-parcours-lyon) {
	overflow-x: clip;
}

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

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

.wpcursor-component.wpcursor-parcours-lyon {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: rgba(255, 255, 255, 0.78);
	--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-admin-h: 0px;
	--sr-progress: 0;
	--sr-step: 1;
	--sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	background: var(--sr-navy-deep);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	isolation: isolate;
	/* Pas d’overflow:clip ici : ça crée un contenant de scroll et casse le sticky. */
	scroll-margin-top: 5.5rem;
	width: 100%;
}

body.admin-bar .wpcursor-component.wpcursor-parcours-lyon {
	--sr-admin-h: var(--wp-admin--admin-bar--height, 32px);
}

.wpcursor-component.wpcursor-parcours-lyon *,
.wpcursor-component.wpcursor-parcours-lyon *::before,
.wpcursor-component.wpcursor-parcours-lyon *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__track,
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__sticky {
	display: block;
	width: 100%;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__inner {
	margin: 0 auto;
	max-width: 100%;
	padding: clamp(3rem, 6vw, 4.75rem) var(--sr-gutter) clamp(2.5rem, 5vw, 3.75rem);
	width: 100%;
}

/* ---------- En-tête ---------- */
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__header {
	margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
	max-width: 42rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__eyebrow {
	color: var(--sr-orange) !important;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	margin: 0 0 0.95rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__title {
	color: var(--sr-white) !important;
	font-family: var(--sr-serif);
	font-size: clamp(1.7rem, 3.5vw, 2.65rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0 0 0.9rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__intro {
	color: var(--sr-muted) !important;
	font-size: clamp(0.98rem, 1.35vw, 1.1rem);
	line-height: 1.55;
	margin: 0;
	max-width: 34rem;
}

/* ---------- Contrôles ---------- */
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 1.1rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--sr-font);
	font-size: 0.72rem;
	font-weight: 600;
	gap: 0.45rem;
	letter-spacing: 0.06em;
	line-height: 1.2;
	min-height: 40px;
	padding: 0.45rem 0.85rem 0.45rem 0.55rem;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab-num {
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.68rem;
	height: 1.45rem;
	justify-content: center;
	min-width: 1.45rem;
	padding: 0 0.35rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab.is-active,
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab[aria-selected="true"] {
	background: rgba(251, 175, 63, 0.16);
	border-color: var(--sr-orange);
	color: var(--sr-white);
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab.is-active .wpcursor-parcours-lyon__tab-num,
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab[aria-selected="true"] .wpcursor-parcours-lyon__tab-num {
	background: var(--sr-orange);
	color: var(--sr-navy);
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab:hover,
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab:focus-visible {
	border-color: rgba(251, 175, 63, 0.7);
	color: var(--sr-white);
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 3px;
}

/* ---------- Board / unités ---------- */
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__board {
	display: grid;
	gap: 1.5rem;
	isolation: isolate;
	position: relative;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit {
	display: grid;
	gap: 0.85rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__universe {
	margin: 0;
	overflow: hidden;
	position: relative;
	transition: filter 0.45s ease, opacity 0.45s ease, transform 0.55s var(--sr-ease);
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__img {
	aspect-ratio: 16 / 10;
	display: block;
	height: auto;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
	transition: transform 0.7s var(--sr-ease);
	width: 100%;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__veil {
	background: linear-gradient(180deg, rgba(1, 24, 51, 0.08) 0%, rgba(1, 24, 51, 0.15) 48%, rgba(1, 24, 51, 0.72) 100%);
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge {
	display: none;
	inset: auto 0 38%;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge-path {
	stroke: var(--sr-orange);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.4;
	/* pathLength=1 : offset piloté en JS (calc CSS transforme 1 en 1px). */
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

/* ---------- Panels ---------- */
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel {
	background: transparent;
	border-bottom: 3px solid transparent;
	padding: 0.15rem 0.1rem 0.35rem;
	position: relative;
	transition: opacity 0.4s ease, transform 0.45s var(--sr-ease), border-color 0.3s ease;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__label {
	color: var(--sr-orange) !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 0.55rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel-title {
	color: var(--sr-white) !important;
	font-family: var(--sr-serif);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
	margin: 0 0 0.55rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel-text {
	color: var(--sr-muted) !important;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 0.9rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link {
	align-items: center;
	color: var(--sr-white) !important;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 600;
	gap: 0.5rem;
	line-height: 1.3;
	min-height: 44px;
	text-decoration: none !important;
	transition: color 0.2s ease, gap 0.2s ease;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link:hover,
.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link:focus-visible {
	color: var(--sr-orange) !important;
	gap: 0.7rem;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 3px;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__bar {
	background: var(--sr-orange);
	bottom: 0;
	display: block;
	height: 3px;
	left: 0;
	opacity: 0;
	position: absolute;
	transform: scaleX(0.35);
	transform-origin: left center;
	transition: opacity 0.3s ease, transform 0.45s var(--sr-ease);
	width: 100%;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit.is-active .wpcursor-parcours-lyon__bar {
	opacity: 1;
	transform: scaleX(1);
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit.is-active .wpcursor-parcours-lyon__link {
	color: var(--sr-orange) !important;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__hint {
	align-items: center;
	color: rgba(255, 255, 255, 0.55) !important;
	display: none;
	font-size: 0.84rem;
	font-style: italic;
	gap: 0.45rem;
	justify-content: center;
	margin: 1.35rem 0 0;
}

.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__hint-ico {
	animation: sr-parcours-bounce 1.6s ease-in-out infinite;
	display: inline-block;
}

@keyframes sr-parcours-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(4px);
	}
}

/* ---------- Desktop sticky ---------- */
@media (min-width: 992px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__track {
		height: 320vh;
		position: relative;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__sticky {
		align-items: stretch;
		display: flex;
		height: calc(100vh - var(--sr-admin-h));
		max-height: 100dvh;
		overflow: hidden;
		position: sticky;
		top: var(--sr-admin-h);
		z-index: 1;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__inner {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		justify-content: center;
		min-height: 0;
		padding-bottom: 1.25rem;
		padding-top: clamp(3.5rem, 8vh, 4.75rem);
		width: 100%;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__header {
		margin-bottom: 1.35rem;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__stage {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__board {
		display: grid;
		flex: 1 1 auto;
		gap: 0 0;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: minmax(18rem, 1fr) auto;
		min-height: min(52vh, 30rem);
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit {
		display: contents;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__universe {
		filter: saturate(0.72) brightness(0.55);
		grid-row: 1;
		min-height: 0;
		opacity: 0.72;
		transform: translate3d(0, 8px, 0);
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:nth-child(1) .wpcursor-parcours-lyon__universe { grid-column: 1; }
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:nth-child(2) .wpcursor-parcours-lyon__universe { grid-column: 2; }
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:nth-child(3) .wpcursor-parcours-lyon__universe { grid-column: 3; }

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit.is-active .wpcursor-parcours-lyon__universe {
		filter: none;
		opacity: 1;
		transform: none;
		z-index: 1;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit.is-active .wpcursor-parcours-lyon__img {
		transform: scale(1.04);
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__img {
		aspect-ratio: auto;
		height: 100%;
		min-height: 18rem;
		object-position: center 40%;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__veil {
		background: linear-gradient(180deg, rgba(1, 24, 51, 0.05) 0%, rgba(1, 24, 51, 0.12) 42%, rgba(1, 24, 51, 0.88) 100%);
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge {
		align-self: end;
		display: block;
		grid-column: 1 / -1;
		grid-row: 1;
		height: 4.5rem;
		margin-bottom: 0;
		position: relative;
		z-index: 2;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel {
		align-self: start;
		grid-row: 2;
		opacity: 0.38;
		padding: 1.1rem 0.85rem 1rem;
		transform: translate3d(0, 12px, 0);
		z-index: 3;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:nth-child(1) .wpcursor-parcours-lyon__panel { grid-column: 1; }
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:nth-child(2) .wpcursor-parcours-lyon__panel { grid-column: 2; }
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:nth-child(3) .wpcursor-parcours-lyon__panel { grid-column: 3; }

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit.is-active .wpcursor-parcours-lyon__panel {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit:not(.is-active) .wpcursor-parcours-lyon__link {
		color: rgba(255, 255, 255, 0.72) !important;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit.is-active .wpcursor-parcours-lyon__bar {
		opacity: 1;
		transform: scaleX(1);
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__hint {
		display: inline-flex;
		margin-top: 0.85rem;
	}

	.wpcursor-component.wpcursor-parcours-lyon.is-complete .wpcursor-parcours-lyon__hint {
		opacity: 0;
	}
}

/* Desktop sans animation : tout visible, pas de sticky */
@media (min-width: 992px) and (prefers-reduced-motion: reduce),
	(min-width: 992px) and (max-height: 639px) {
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__board {
		display: grid;
		gap: 0.85rem 1rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__unit {
		display: grid;
		gap: 0.85rem;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__universe {
		filter: none;
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge {
		display: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge-path {
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__bar {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link {
		color: var(--sr-orange) !important;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__hint {
		display: none;
	}
}

@media (max-width: 991px) {
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab-text {
		max-width: 11rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__universe {
		border-radius: 0.2rem;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel {
		border-bottom-color: rgba(251, 175, 63, 0.35);
		padding-bottom: 1rem;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__bar {
		opacity: 1;
		transform: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link {
		color: var(--sr-orange) !important;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__hint {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__universe,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__img,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__panel,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__bar,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__link,
	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__tab {
		transition: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__hint-ico {
		animation: none;
	}

	.wpcursor-component.wpcursor-parcours-lyon .wpcursor-parcours-lyon__ridge-path {
		stroke-dashoffset: 0;
	}
}
