/**
 * Bâtiments Nouvelle-Aquitaine — fond marine #011833 · blanc · orange #fbaf3f
 * Illustration image + overlay SVG (scan + pins). Interaction focus/survol.
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

html:has(.wpcursor-batiments-na) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-batiments-na {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--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);
	background: var(--sr-navy-deep);
	box-sizing: border-box;
	color: var(--sr-white);
	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-batiments-na *,
.wpcursor-component.wpcursor-batiments-na *::before,
.wpcursor-component.wpcursor-batiments-na *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-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-batiments-na .wpcursor-batiments-na__inner {
	margin: 0 auto;
	padding: 0 var(--sr-gutter);
	position: relative;
	width: 100%;
}

/* ---------- Top : texte + illustration (fond, hors conteneur) ---------- */
.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__top {
	display: block;
	margin: 0 0 clamp(2rem, 4.5vw, 3.25rem);
	position: relative;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__copy {
	max-width: 34rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-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-batiments-na .wpcursor-batiments-na__title {
	color: var(--sr-white) !important;
	font-family: var(--sr-serif);
	font-size: clamp(1.85rem, 3.8vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 1.15rem;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__intro {
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
	max-width: 30rem;
}

/* ---------- Illustration : grand fond décoratif, pas de boîte ---------- */
.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__figure {
	background: transparent;
	margin: 1.25rem 0 0;
	min-width: 0;
	pointer-events: none;
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__frame {
	aspect-ratio: 16 / 10;
	background: transparent;
	isolation: isolate;
	overflow: visible;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__img {
	display: block;
	height: 100%;
	object-fit: contain;
	object-position: center right;
	user-select: none;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__overlay {
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__scan {
	stroke: var(--sr-orange);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin {
	pointer-events: auto;
	cursor: default;
	transition: opacity 0.35s ease, transform 0.35s var(--sr-ease);
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin-ring {
	fill: none;
	stroke: var(--sr-orange);
	stroke-opacity: 0.45;
	stroke-width: 0.45;
	transition: stroke-opacity 0.25s ease, stroke-width 0.25s ease;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin-dot {
	fill: var(--sr-orange);
	stroke: var(--sr-white);
	stroke-width: 0.35;
	transition: transform 0.25s var(--sr-ease);
	transform-box: fill-box;
	transform-origin: center;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin.is-active .wpcursor-batiments-na__pin-ring {
	stroke-opacity: 1;
	stroke-width: 0.7;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin.is-active .wpcursor-batiments-na__pin-dot {
	transform: scale(1.35);
}

/* ---------- Critères ---------- */
.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__bottom {
	display: grid;
	gap: 1.75rem;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__points {
	display: grid;
	gap: clamp(1.35rem, 3vw, 2rem);
	grid-template-columns: 1fr;
	margin: 0;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point {
	border: 0;
	border-radius: 0;
	cursor: default;
	display: grid;
	gap: 0.85rem 1.15rem;
	grid-template-columns: auto minmax(0, 1fr);
	margin: 0;
	max-width: 28rem;
	outline: none;
	padding: 0.15rem 0 0.35rem;
	transition: opacity 0.35s ease, transform 0.35s var(--sr-ease);
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point-num {
	color: var(--sr-orange);
	font-family: var(--sr-font);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	padding-top: 0.2rem;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point-title {
	color: var(--sr-white) !important;
	font-family: var(--sr-serif);
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	margin: 0 0 0.45rem;
	padding-bottom: 0.35rem;
	position: relative;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point-title::after {
	background: var(--sr-orange);
	bottom: 0;
	content: "";
	height: 2px;
	left: 0;
	opacity: 0;
	position: absolute;
	transform: scaleX(0.35);
	transform-origin: left center;
	transition: opacity 0.25s ease, transform 0.3s var(--sr-ease);
	width: 3.25rem;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point.is-active .wpcursor-batiments-na__point-title::after,
.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point:hover .wpcursor-batiments-na__point-title::after,
.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point:focus-visible .wpcursor-batiments-na__point-title::after {
	opacity: 1;
	transform: none;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point-text {
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point:focus-visible {
	outline: 2px solid var(--sr-orange);
	outline-offset: 6px;
}

.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__cta-wrap {
	margin: 0.35rem 0 0;
	text-align: left;
}

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

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

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

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-batiments-na {
		overflow: clip;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__inner {
		isolation: isolate;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__top {
		min-height: clamp(24rem, 42vw, 32rem);
		padding-right: min(52%, 36rem);
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__figure {
		/* top/height : pas de transform (l’anim rise l’écraserait) */
		height: clamp(28rem, 52vw, 40rem);
		margin: 0;
		max-width: none;
		pointer-events: none;
		position: absolute;
		right: calc(var(--sr-gutter) * -0.55);
		top: -1.5rem;
		width: min(70vw, 56rem);
		z-index: 0;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__frame {
		aspect-ratio: auto;
		height: 100%;
		min-height: 0;
		overflow: visible;
		width: 100%;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__img {
		height: 100%;
		object-fit: contain;
		object-position: right center;
		width: 100%;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__overlay {
		pointer-events: none;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin {
		pointer-events: auto;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__bottom {
		align-items: end;
		gap: 2rem;
		grid-template-columns: minmax(0, 1fr) auto;
		position: relative;
		z-index: 2;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__points {
		gap: 1.75rem 2.5rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point {
		max-width: none;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__cta-wrap {
		justify-self: end;
		margin: 0;
		padding-bottom: 0.35rem;
		text-align: right;
	}
}

@media (max-width: 991px) {
	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__frame {
		aspect-ratio: 16 / 10;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__img {
		object-position: center;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__scan {
		stroke-width: 2;
	}
}

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

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

@keyframes sr-bna-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__scan {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin {
		opacity: 0;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}

	.wpcursor-component.wpcursor-batiments-na.is-inview .wpcursor-batiments-na__copy > * {
		animation: sr-bna-rise 0.75s var(--sr-ease) both;
	}

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

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

	.wpcursor-component.wpcursor-batiments-na.is-inview .wpcursor-batiments-na__figure {
		animation: sr-bna-fade 0.9s var(--sr-ease) 0.12s both;
	}

	.wpcursor-component.wpcursor-batiments-na.is-inview .wpcursor-batiments-na__frame {
		animation: sr-bna-rise 0.9s var(--sr-ease) 0.12s both;
	}

	.wpcursor-component.wpcursor-batiments-na.is-scan .wpcursor-batiments-na__scan {
		animation: sr-bna-draw 1s cubic-bezier(0.45, 0, 0.25, 1) both;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin.is-visible {
		animation: sr-bna-fade 0.4s ease both;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point.is-visible {
		animation: sr-bna-rise 0.55s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-batiments-na.is-inview .wpcursor-batiments-na__cta-wrap {
		animation: sr-bna-rise 0.6s var(--sr-ease) 1.55s both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__scan {
		stroke-dasharray: none;
		stroke-dashoffset: 0;
	}

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin,
	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__point {
		opacity: 1;
		transform: none;
	}

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

	.wpcursor-component.wpcursor-batiments-na .wpcursor-batiments-na__pin-dot {
		transition: none;
	}
}
