/**
 * Bâtiments Grand Est — fond clair #f7f8fa · navy #022b60 · orange #fbaf3f
 * Titres centrés, mosaïque asymétrique 3 photos, précision sous filet.
 */
html:has(.wpcursor-batiments-ge) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-batiments-ge {
	--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);
	--sr-gap: 0.55rem;
	background: var(--sr-bg);
	box-sizing: border-box;
	color: var(--sr-navy);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow-x: clip;
	padding: clamp(3.75rem, 8vw, 6.5rem) 0;
	scroll-margin-top: 5.5rem;
	width: 100%;
}

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

/* ---------- Intro centrée ---------- */
.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto clamp(2.25rem, 4.5vw, 3.25rem);
	max-width: min(56rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0 var(--sr-pad);
	text-align: center;
	width: 100%;
}

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

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__title {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1.15rem;
	max-width: none;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__text {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(0.98rem, 1.35vw, 1.08rem);
	font-weight: 400;
	line-height: 1.65;
	margin: 0;
	max-width: min(46rem, 100%);
	opacity: 0.92;
}

/* ---------- Mosaïque asymétrique ---------- */
.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__mosaic {
	display: grid;
	gap: var(--sr-gap);
	grid-template-columns: 1.15fr 1fr;
	grid-template-rows: 1fr 1fr;
	margin: 0 auto clamp(2rem, 4vw, 2.85rem);
	max-width: min(72rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile {
	isolation: isolate;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--industrie {
	grid-column: 1;
	grid-row: 1 / span 2;
	min-height: clamp(22rem, 48vw, 34rem);
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--logistique,
.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--bac {
	min-height: clamp(10.5rem, 23vw, 16.5rem);
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__mask {
	height: 100%;
	inset: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--industrie .wpcursor-batiments-ge__img {
	object-position: 42% 48%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--logistique .wpcursor-batiments-ge__img {
	object-position: 50% 42%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--bac .wpcursor-batiments-ge__img {
	object-position: 50% 55%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__caption {
	background: linear-gradient(180deg, transparent 0%, rgba(2, 43, 96, 0.82) 55%, rgba(2, 43, 96, 0.94) 100%);
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 2.4rem 1.15rem 0.95rem;
	position: absolute;
	right: 0;
	z-index: 2;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__caption-label {
	color: var(--sr-white) !important;
	display: block;
	font-family: var(--sr-font);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.25;
	text-transform: uppercase;
}

/* ---------- Outro ---------- */
.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__outro {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto;
	max-width: min(40rem, calc(100% - 2 * var(--sr-pad)));
	padding: 0 var(--sr-pad);
	text-align: center;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__rule {
	background: var(--sr-orange);
	border-radius: 999px;
	display: block;
	flex: 0 0 auto;
	height: 2px;
	margin: 0 0 1.2rem;
	width: 2.85rem;
}

.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__closing-text {
	color: var(--sr-navy) !important;
	font-family: var(--sr-font);
	font-size: clamp(0.95rem, 1.25vw, 1.05rem);
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	max-width: min(46rem, 100%);
	opacity: 0.9;
}

/* ---------- Animations ---------- */
@keyframes sr-bge-fade {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sr-bge-mask {
	from {
		clip-path: inset(0 0 100% 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes sr-bge-caption {
	from {
		opacity: 0;
		transform: translate3d(0, 8px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpcursor-component.wpcursor-batiments-ge:not(.is-inview) .wpcursor-batiments-ge__eyebrow,
	.wpcursor-component.wpcursor-batiments-ge:not(.is-inview) .wpcursor-batiments-ge__title,
	.wpcursor-component.wpcursor-batiments-ge:not(.is-inview) .wpcursor-batiments-ge__text {
		opacity: 0;
		transform: translate3d(0, 10px, 0);
	}

	.wpcursor-component.wpcursor-batiments-ge:not(.is-outro) .wpcursor-batiments-ge__outro {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__mask {
		clip-path: inset(0 0 100% 0);
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__caption {
		opacity: 0;
	}

	.wpcursor-component.wpcursor-batiments-ge.is-inview .wpcursor-batiments-ge__eyebrow,
	.wpcursor-component.wpcursor-batiments-ge.is-inview .wpcursor-batiments-ge__title,
	.wpcursor-component.wpcursor-batiments-ge.is-inview .wpcursor-batiments-ge__text {
		animation: sr-bge-fade 0.8s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-batiments-ge.is-inview .wpcursor-batiments-ge__title {
		animation-delay: 0.08s;
	}

	.wpcursor-component.wpcursor-batiments-ge.is-inview .wpcursor-batiments-ge__text {
		animation-delay: 0.16s;
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile.is-visible .wpcursor-batiments-ge__mask {
		animation: sr-bge-mask 0.85s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile.is-caption .wpcursor-batiments-ge__caption {
		animation: sr-bge-caption 0.55s var(--sr-ease) both;
	}

	.wpcursor-component.wpcursor-batiments-ge.is-outro .wpcursor-batiments-ge__outro {
		animation: sr-bge-fade 0.8s var(--sr-ease) both;
	}
}

/* ---------- Mobile : pile ---------- */
@media (max-width: 767px) {
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__mosaic {
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
		max-width: calc(100% - 2 * var(--sr-pad));
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile {
		min-height: 0;
		position: relative;
		width: 100%;
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--industrie,
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--logistique,
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__tile--bac {
		aspect-ratio: 16 / 10;
		grid-column: auto;
		grid-row: auto;
		min-height: 0;
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__title {
		font-size: clamp(1.4rem, 6.2vw, 1.85rem);
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__eyebrow,
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__title,
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__text,
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__caption,
	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__outro {
		opacity: 1;
		transform: none;
		animation: none !important;
	}

	.wpcursor-component.wpcursor-batiments-ge .wpcursor-batiments-ge__mask {
		clip-path: none;
		animation: none !important;
	}
}
