/**
 * Bâtiments Pays de la Loire — navy #022b60 · orange #fbaf3f
 * Fond clair, trois bandes photo chevauchées, traits orange, labels.
 */
html:has(.wpcursor-batiments-pdl) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-batiments-pdl {
	--sr-navy: #022b60;
	--sr-navy-deep: #011833;
	--sr-orange: #fbaf3f;
	--sr-white: #ffffff;
	--sr-bg: #f7f8fa;
	--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-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: hidden;
	padding: clamp(3.75rem, 8vw, 6.25rem) 0;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pdl *,
.wpcursor-component.wpcursor-batiments-pdl *::before,
.wpcursor-component.wpcursor-batiments-pdl *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2.25rem, 5vw, 3.5rem);
	margin: 0 auto;
	padding: 0 var(--sr-gutter);
	width: 100%;
}

/* ---------- Header ---------- */
.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__header {
	max-width: 40rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__eyebrow {
	color: var(--sr-orange) !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.35;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.55rem, 2.9vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1.15rem;
	max-width: 18ch;
	text-wrap: balance;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__text {
	color: var(--sr-navy) !important;
	font-size: clamp(0.98rem, 1.3vw, 1.06rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
	max-width: 36rem;
	opacity: 0.9;
}

/* ---------- Stack de bandes ---------- */
.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__stack {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0 auto;
	max-width: 72rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band {
	margin: 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--support {
	z-index: 3;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat {
	margin-top: -1.6rem;
	z-index: 2;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces {
	margin-top: -1.6rem;
	z-index: 1;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__mask {
	aspect-ratio: 2.7 / 1;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--support .wpcursor-batiments-pdl__mask {
	border-radius: 0.7rem 3.2rem 2.6rem 0.45rem;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat .wpcursor-batiments-pdl__mask {
	border-radius: 2.8rem;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces .wpcursor-batiments-pdl__mask {
	border-radius: 2.8rem 0.7rem 0.5rem 2.4rem;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__img {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center 42%;
	position: absolute;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat .wpcursor-batiments-pdl__img {
	object-position: center center;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces .wpcursor-batiments-pdl__img {
	object-position: 78% center;
}

/* ---------- Label + filet ---------- */
.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__label {
	color: var(--sr-orange) !important;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	margin: 0.55rem 0 0;
	opacity: 0;
	position: relative;
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__callout {
	display: none;
}

.wpcursor-component.wpcursor-batiments-pdl.is-labels .wpcursor-batiments-pdl__label {
	opacity: 1;
}

/* ---------- Closing ---------- */
.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__closing {
	color: var(--sr-navy) !important;
	font-size: clamp(1rem, 1.45vw, 1.15rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.45;
	margin: 0.5rem auto 0;
	max-width: 34rem;
	text-align: center;
	text-wrap: balance;
}

/* ---------- Desktop : labels à droite avec traits ---------- */
@media (min-width: 992px) {
	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__header {
		margin-left: 0;
		max-width: 38rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__stack {
		max-width: 76rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat {
		margin-top: -2.85rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces {
		margin-top: -2.85rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__mask {
		aspect-ratio: 4.25 / 1;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--support .wpcursor-batiments-pdl__mask {
		border-radius: 0.7rem 8rem 6.25rem 0.45rem;
		width: calc(100% - 9rem);
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat .wpcursor-batiments-pdl__mask {
		border-radius: 7rem;
		margin-left: 9.25rem;
		width: calc(100% - 18.25rem);
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces .wpcursor-batiments-pdl__mask {
		border-radius: 7rem 0.75rem 0.55rem 6rem;
		margin-left: 1.5rem;
		width: calc(100% - 10.5rem);
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__label {
		font-size: 1.15rem;
		margin: 0;
		padding-bottom: 0.4rem;
		position: absolute;
		top: 48%;
		transform: translateY(-50%);
		z-index: 5;
	}

	.wpcursor-component.wpcursor-batiments-pdl .is-label-right .wpcursor-batiments-pdl__label {
		right: 0;
		text-align: left;
		width: 8rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .is-label-left .wpcursor-batiments-pdl__label {
		left: 0;
		text-align: right;
		width: 8rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__callout {
		bottom: 0.05rem;
		display: block;
		height: 2px;
		pointer-events: none;
		position: absolute;
		top: auto;
	}

	.wpcursor-component.wpcursor-batiments-pdl .is-label-right .wpcursor-batiments-pdl__callout {
		left: -11.5rem;
		right: 0.15rem;
		transform: rotate(7deg) scaleX(0);
		transform-origin: right center;
	}

	.wpcursor-component.wpcursor-batiments-pdl .is-label-left .wpcursor-batiments-pdl__callout {
		left: 0.15rem;
		right: -5.6rem;
		transform: rotate(7deg) scaleX(0);
		transform-origin: left center;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__callout-line {
		background: var(--sr-orange);
		display: block;
		height: 2px;
		width: 100%;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__callout-dot {
		background: var(--sr-orange);
		border-radius: 50%;
		height: 0.55rem;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 0.55rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .is-label-right .wpcursor-batiments-pdl__callout-dot {
		left: 0;
		transform: translate(-50%, -50%);
	}

	.wpcursor-component.wpcursor-batiments-pdl .is-label-left .wpcursor-batiments-pdl__callout-dot {
		right: 0;
		transform: translate(50%, -50%);
	}

	.wpcursor-component.wpcursor-batiments-pdl.is-leaders .is-label-right .wpcursor-batiments-pdl__callout {
		transform: rotate(7deg) scaleX(1);
		transition: transform 0.55s var(--sr-ease);
	}

	.wpcursor-component.wpcursor-batiments-pdl.is-leaders .is-label-left .wpcursor-batiments-pdl__callout {
		transform: rotate(7deg) scaleX(1);
		transition: transform 0.55s var(--sr-ease);
	}
}

/* ---------- Mobile : empilement, labels sous chaque bande ---------- */
@media (max-width: 991px) {
	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__title {
		max-width: none;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--support .wpcursor-batiments-pdl__mask,
	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat .wpcursor-batiments-pdl__mask,
	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces .wpcursor-batiments-pdl__mask {
		border-radius: 1.35rem;
		margin-left: 0;
		width: 100%;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--etat,
	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band--acces {
		margin-top: 1.35rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__label {
		padding-left: 0.15rem;
	}

	.wpcursor-component.wpcursor-batiments-pdl.is-labels .wpcursor-batiments-pdl__label {
		opacity: 1;
	}
}

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

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

@keyframes sr-zpdl-bat-dot {
	to {
		opacity: 1;
	}
}

@keyframes sr-zpdl-bat-label {
	from {
		opacity: 0;
		transform: translate3d(8px, -50%, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, -50%, 0);
	}
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__mask {
	opacity: 0;
	transform: translate3d(0, 14px, 0);
	transition: opacity 0.7s var(--sr-ease), transform 0.7s var(--sr-ease);
}

.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__band.is-visible .wpcursor-batiments-pdl__mask {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-batiments-pdl:not(.is-inview) .wpcursor-batiments-pdl__header > *,
	.wpcursor-batiments-pdl:not(.is-inview) .wpcursor-batiments-pdl__closing {
		opacity: 0;
		transform: translate3d(0, 16px, 0);
	}

	.wpcursor-batiments-pdl.is-inview .wpcursor-batiments-pdl__header > * {
		animation: sr-zpdl-bat-rise 0.75s var(--sr-ease) both;
	}

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

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

	.wpcursor-batiments-pdl.is-inview .wpcursor-batiments-pdl__closing {
		animation: sr-zpdl-bat-rise 0.75s var(--sr-ease) 0.85s both;
	}

	.wpcursor-batiments-pdl.is-labels .wpcursor-batiments-pdl__label {
		animation: sr-zpdl-bat-label 0.55s var(--sr-ease) both;
		opacity: 1;
	}

	.wpcursor-batiments-pdl.is-labels .wpcursor-batiments-pdl__band--etat .wpcursor-batiments-pdl__label {
		animation-delay: 0.1s;
	}

	.wpcursor-batiments-pdl.is-labels .wpcursor-batiments-pdl__band--acces .wpcursor-batiments-pdl__label {
		animation-delay: 0.2s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__mask {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.wpcursor-component.wpcursor-batiments-pdl .wpcursor-batiments-pdl__callout {
		transform: none;
		transition: none;
	}
}

@media (max-width: 991px) and (prefers-reduced-motion: no-preference) {
	.wpcursor-batiments-pdl.is-labels .wpcursor-batiments-pdl__label {
		animation: sr-zpdl-bat-rise 0.55s var(--sr-ease) both;
	}
}
