/**
 * Hero À propos — fond clair, composition asymétrique, masque diagonal, tracé orange.
 * Typo : Poppins (titres et textes).
 */
html:has(.wpcursor-hero-a-propos) {
	overflow-x: clip;
}

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

body.page:has(.wpcursor-hero-a-propos) .entry-header,
body.page:has(.wpcursor-hero-a-propos) .ast-archive-description {
	display: none !important;
}

body:has(.wpcursor-hero-a-propos) .wpcursor-header-sr-spacer {
	display: none !important;
}

html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) {
	background-color: transparent;
}

.wpcursor-component.wpcursor-hero-a-propos {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-cream: #f4f6f8;
	--sr-white: #ffffff;
	--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-bar-h: 4.5rem;
	--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-exit: 0;
	background: var(--sr-cream);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	min-height: min(100svh, 56rem);
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-a-propos *,
.wpcursor-component.wpcursor-hero-a-propos *::before,
.wpcursor-component.wpcursor-hero-a-propos *::after {
	box-sizing: border-box;
}

/* Header clair au-dessus du fond crème — pas au survol (le header repasse navy) */
html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__logo-img--light {
	opacity: 0;
}

html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__logo-img--dark {
	opacity: 1;
}

html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__link,
html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__trigger,
html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__chevron-btn,
html:has(.wpcursor-hero-a-propos) .wpcursor-component.wpcursor-header-sr:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-nav-open):not(:has(.wpcursor-header-sr__item.is-open)) .wpcursor-header-sr__burger {
	color: var(--sr-navy, #022b60) !important;
}

/* ---------- Shell ---------- */
.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__shell {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
	margin: 0 auto;
	min-height: min(100svh, 56rem);
	padding: calc(var(--sr-bar-h) + 1.75rem) var(--sr-gutter) 5.25rem;
	position: relative;
	width: 100%;
	z-index: 1;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy {
	align-self: center;
	max-width: 34rem;
	position: relative;
	z-index: 2;
}

/* ---------- Textes ---------- */
.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__eyebrow {
	color: var(--sr-orange) !important;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.35;
	margin: 0 0 1.15rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.85rem, 3.8vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 1.2rem;
	max-width: 18ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__text {
	color: var(--sr-navy) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.06rem);
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 1.85rem;
	max-width: 32rem;
	opacity: 0.9;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__actions {
	margin: 0;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link {
	align-items: center;
	border-bottom: 2px solid var(--sr-orange);
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 0.98rem;
	font-weight: 600;
	gap: 0.45rem;
	line-height: 1.3;
	min-height: 44px;
	padding-bottom: 0.15rem;
	text-decoration: none !important;
	transition: color 0.2s ease, gap 0.2s ease, border-color 0.2s ease;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link-arrow {
	color: var(--sr-orange);
	display: inline-block;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.22s var(--sr-ease);
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link:hover,
.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link:focus-visible {
	color: var(--sr-navy-deep) !important;
	gap: 0.7rem;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link:hover .wpcursor-hero-a-propos__link-arrow,
.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link:focus-visible .wpcursor-hero-a-propos__link-arrow {
	transform: translateX(4px);
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 4px;
}

/* ---------- Visuel ---------- */
.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__visual {
	isolation: isolate;
	margin: 0;
	min-height: 16rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__defs {
	height: 0;
	position: absolute;
	width: 0;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__frame {
	height: 100%;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__depth {
	height: 100%;
	transform: translate3d(0, calc(var(--sr-exit) * 4%), 0) scale(calc(1.04 + var(--sr-exit) * 0.025));
	transform-origin: 62% 48%;
	will-change: transform;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__img {
	display: block;
	height: 100%;
	max-width: none;
	min-height: 16rem;
	object-fit: cover;
	object-position: 58% 45%;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__edge {
	display: block;
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__stroke {
	stroke: var(--sr-orange);
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.1;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__badge {
	background: rgba(255, 255, 255, 0.94);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(1, 24, 51, 0.12);
	color: var(--sr-navy) !important;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0;
	padding: 0.55rem 0.95rem;
	position: absolute;
	right: clamp(0.85rem, 2.5vw, 1.5rem);
	text-transform: uppercase;
	top: clamp(0.85rem, 2.5vw, 1.35rem);
	z-index: 3;
}

/* ---------- Scroll mouse ---------- */
.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__scroll {
	align-items: center;
	bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	left: 0;
	margin-inline: auto;
	opacity: calc(0.9 - var(--sr-exit) * 1.4);
	pointer-events: none;
	position: absolute;
	right: 0;
	width: max-content;
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__mouse {
	border: 1.5px solid rgba(2, 43, 96, 0.35);
	border-radius: 999px;
	display: block;
	height: 1.55rem;
	position: relative;
	width: 0.95rem;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__mouse-wheel {
	background: var(--sr-orange);
	border-radius: 999px;
	display: block;
	height: 0.35rem;
	left: 50%;
	position: absolute;
	top: 0.28rem;
	transform: translateX(-50%);
	width: 0.18rem;
}

.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__scroll-chevron {
	color: var(--sr-orange);
	font-size: 0.85rem;
	line-height: 1;
}

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__shell {
		align-items: stretch;
		gap: 0;
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
		padding-bottom: 0;
		padding-right: 0;
		padding-top: 0;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy {
		padding: calc(var(--sr-bar-h) + 2rem) 2.75rem 5.5rem 0;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__visual {
		align-self: stretch;
		height: min(100svh, 56rem);
		margin-top: 0;
		max-height: min(100svh, 56rem);
		min-height: 28rem;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__frame,
	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__depth,
	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__img {
		height: 100%;
		min-height: 100%;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__scroll {
		bottom: 1.5rem;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
	.wpcursor-component.wpcursor-hero-a-propos {
		min-height: 0;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__shell {
		gap: 1.75rem;
		min-height: 0;
		padding-bottom: 4.75rem;
		padding-top: calc(var(--sr-bar-h) + 1.35rem);
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__visual {
		aspect-ratio: 5 / 4;
		border-radius: 1.1rem 1.1rem 0.4rem 1.65rem;
		clip-path: none !important;
		-webkit-clip-path: none !important;
		overflow: hidden;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__frame {
		border-radius: inherit;
		clip-path: none !important;
		-webkit-clip-path: none !important;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__depth {
		transform: none;
		will-change: auto;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__img {
		min-height: 100%;
		object-position: 55% 42%;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__edge {
		display: none;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__visual::after {
		background: linear-gradient(90deg, transparent 0%, var(--sr-orange) 18%, var(--sr-orange) 82%, transparent 100%);
		bottom: 0;
		content: "";
		height: 2px;
		left: 10%;
		opacity: 0.95;
		position: absolute;
		right: 10%;
		z-index: 2;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__badge {
		font-size: 0.62rem;
		padding: 0.45rem 0.75rem;
	}
}

/* ---------- Animations ---------- */
@keyframes sr-ap-rise {
	from {
		opacity: 0;
		transform: translateY(0.85rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sr-ap-mask-in {
	from {
		-webkit-mask-image: linear-gradient(112deg, transparent 0%, transparent 72%, #000 72.5%);
		mask-image: linear-gradient(112deg, transparent 0%, transparent 72%, #000 72.5%);
		opacity: 0.35;
		transform: scale(1.04);
	}
	to {
		-webkit-mask-image: linear-gradient(112deg, transparent 0%, transparent 0%, #000 0%);
		mask-image: linear-gradient(112deg, transparent 0%, transparent 0%, #000 0%);
		opacity: 1;
		transform: none;
	}
}

@keyframes sr-ap-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes sr-ap-wheel {
	0%,
	100% {
		opacity: 0.45;
		transform: translateX(-50%) translateY(0);
	}
	50% {
		opacity: 1;
		transform: translateX(-50%) translateY(4px);
	}
}

@keyframes sr-ap-chevron {
	0%,
	100% {
		opacity: 0.45;
		transform: translateY(0);
	}
	50% {
		opacity: 1;
		transform: translateY(3px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy > * {
		animation: sr-ap-rise 0.85s var(--sr-ease) both;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy > :nth-child(1) {
		animation-delay: 0.05s;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy > :nth-child(2) {
		animation-delay: 0.16s;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy > :nth-child(3) {
		animation-delay: 0.28s;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__copy > :nth-child(4) {
		animation-delay: 0.38s;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__visual {
		animation: sr-ap-rise 1s var(--sr-ease) 0.2s both;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__frame {
		animation: sr-ap-mask-in 1.2s var(--sr-ease) 0.28s both;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__stroke {
		animation: sr-ap-draw 1.05s var(--sr-ease) 0.95s both;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__badge {
		animation: sr-ap-rise 0.8s var(--sr-ease) 1.05s both;
	}

	html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__scroll {
		animation: sr-ap-rise 0.8s var(--sr-ease) 1.2s both;
	}

	@media (hover: hover) and (pointer: fine) {
		html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__mouse-wheel {
			animation: sr-ap-wheel 1.7s ease-in-out 1.5s infinite;
		}

		html:not(.sr-pt-cover) .wpcursor-hero-a-propos .wpcursor-hero-a-propos__scroll-chevron {
			animation: sr-ap-chevron 1.7s ease-in-out 1.5s infinite;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-hero-a-propos {
		--sr-exit: 0 !important;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__depth {
		transform: none;
		will-change: auto;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__stroke {
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__link {
		transition: none;
	}
}

@media (max-width: 991px), (hover: none) {
	.wpcursor-component.wpcursor-hero-a-propos {
		--sr-exit: 0 !important;
	}

	.wpcursor-component.wpcursor-hero-a-propos .wpcursor-hero-a-propos__depth {
		transform: none;
		will-change: auto;
	}
}
