/**
 * Bâtiments Cool Roof Professionnel — navy #022b60 · orange #fbaf3f
 * Fond bleu pleine largeur ; photo uniquement dans le conteneur droit.
 */
html:has(.wpcursor-batiments-pro) {
	overflow-x: clip;
}

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

.wpcursor-component.wpcursor-batiments-pro {
	--sr-navy: #022b60;
	--sr-navy-deep: #011a3d;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: rgba(255, 255, 255, 0.72);
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-pad: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
	--sr-content: 84rem;
	--sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sr-admin-h: 0px;
	--sr-batiments-pin: 0px;
	--sr-batiment-i: 1;
	background: var(--sr-navy);
	box-sizing: border-box;
	color: var(--sr-white);
	scroll-margin-top: 5.5rem;
	font-family: var(--sr-font);
	isolation: isolate;
	/* overflow:hidden casse sticky → bande navy vide */
	overflow: visible;
	position: relative;
	width: 100%;
}

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

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__inner {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: var(--sr-content);
	padding: 2.75rem var(--sr-pad) 3rem;
	position: relative;
	width: 100%;
	z-index: 1;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel {
	max-width: 34rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__eyebrow {
	align-items: center;
	color: var(--sr-orange) !important;
	display: flex;
	font-size: 0.76rem;
	font-weight: 700;
	gap: 0.7rem;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 0.9rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__eyebrow-line {
	background: var(--sr-orange);
	display: inline-block;
	flex: 0 0 auto;
	height: 2px;
	width: 1.6rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__title {
	color: var(--sr-white) !important;
	font-size: clamp(1.45rem, 3vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.85rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__text {
	color: var(--sr-muted);
	display: grid;
	font-size: 1.02rem;
	gap: 0.75rem;
	line-height: 1.55;
	margin: 0 0 1.35rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__text p {
	margin: 0;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0 0 1.5rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 0.7rem;
	color: var(--sr-white);
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 0.75rem;
	grid-template-columns: auto 1fr auto;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	text-align: left;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab:hover,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab:focus-visible {
	background: rgba(251, 175, 63, 0.08);
	border-color: rgba(251, 175, 63, 0.45);
	outline: none;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab.is-active,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab[aria-selected="true"] {
	background: rgba(251, 175, 63, 0.1);
	border-color: var(--sr-orange);
	box-shadow: 0 0 0 1px rgba(251, 175, 63, 0.25);
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab-icon {
	align-items: center;
	color: var(--sr-orange);
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.5rem;
	justify-content: center;
	width: 1.5rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab-label {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.3;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab-chevron {
	color: var(--sr-orange);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1;
	opacity: 0.85;
	transition: transform 0.2s ease;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab.is-active .wpcursor-batiments-pro__tab-chevron {
	transform: rotate(90deg);
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel-mobile {
	color: var(--sr-muted);
	font-size: 0.92rem;
	line-height: 1.5;
	margin: -0.15rem 0 0.35rem;
	padding: 0 0.85rem 0.55rem 3.1rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel-mobile[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel-mobile p {
	margin: 0;
}

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

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__cta:hover,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__cta:focus-visible {
	color: var(--sr-orange-hover) !important;
	gap: 0.65rem;
	outline: none;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__visual {
	min-width: 0;
	position: relative;
	z-index: 1;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__stage {
	background: var(--sr-navy-deep);
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	isolation: isolate;
	margin: 0;
	overflow: hidden;
	position: relative;
	contain: paint;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__stage-img {
	aspect-ratio: 2 / 1;
	display: none;
	height: auto;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__stage-img.is-active {
	display: block;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__note {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.78rem;
	line-height: 1.45;
	margin: 0.7rem 0.15rem 0;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pins {
	pointer-events: none;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin {
	background: transparent;
	border: 0;
	cursor: pointer;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	pointer-events: auto;
	position: absolute;
	transform: translate(-50%, -100%);
	width: 2.5rem;
	z-index: 3;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin-wrap {
	position: relative;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__scene-sticky {
	width: 100%;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin-wrap,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__scene-sticky {
	height: auto;
	position: relative;
}

@media (min-width: 992px) {
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__visual {
		transform: scale(calc(1 + var(--sr-batiment-i) * 0.012));
		transition: transform 0.55s var(--sr-ease);
	}
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel > *,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__visual {
	opacity: 0;
	transform: translateY(0.85rem);
	transition: opacity 0.5s var(--sr-ease), transform 0.5s var(--sr-ease);
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > * {
	opacity: 1;
	transform: none;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > *:nth-child(1) {
	transition-delay: 0.05s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > *:nth-child(2) {
	transition-delay: 0.12s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > *:nth-child(3) {
	transition-delay: 0.18s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > *:nth-child(4) {
	transition-delay: 0.24s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > *:nth-child(5),
.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__panel > *:nth-child(6) {
	transition-delay: 0.3s;
}

/* Tabs intercalés avec panel-mobile → nth-of-type(button), pas nth-child */
.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__tab {
	opacity: 1;
	transform: none;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__tab:nth-of-type(1) {
	transition-delay: 0.22s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__tab:nth-of-type(2) {
	transition-delay: 0.28s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__tab:nth-of-type(3) {
	transition-delay: 0.34s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__tab:nth-of-type(4) {
	transition-delay: 0.4s;
}

.wpcursor-component.wpcursor-batiments-pro.is-inview .wpcursor-batiments-pro__visual {
	opacity: 1;
	transform: none;
	transition-delay: 0.2s;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin:not(.is-active) .wpcursor-batiments-pro__pin-dot {
	animation: srBatimentsPinPulse 2.4s ease-in-out infinite;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin-dot {
	background: var(--sr-orange);
	border: 2px solid var(--sr-white);
	border-radius: 50% 50% 50% 0;
	box-shadow: 0 6px 16px rgba(2, 43, 96, 0.28);
	display: block;
	height: 1.15rem;
	margin: 0 auto;
	transform: rotate(-45deg);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 1.15rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin.is-active .wpcursor-batiments-pro__pin-dot,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin:hover .wpcursor-batiments-pro__pin-dot,
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin:focus-visible .wpcursor-batiments-pro__pin-dot {
	box-shadow: 0 0 0 10px rgba(251, 175, 63, 0.28), 0 8px 18px rgba(2, 43, 96, 0.3);
	outline: none;
	transform: rotate(-45deg) scale(1.12);
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card {
	align-items: flex-start;
	background: rgba(1, 26, 61, 0.95);
	border: 1px solid rgba(251, 175, 63, 0.4);
	border-radius: 0.85rem;
	box-shadow: 0 14px 32px rgba(1, 20, 45, 0.4);
	color: var(--sr-white);
	display: none;
	gap: 0.75rem;
	bottom: auto;
	left: auto;
	margin: 0.75rem;
	max-width: none;
	opacity: 0;
	padding: 0.75rem 0.85rem;
	pointer-events: none;
	position: relative;
	right: auto;
	top: auto;
	transform: none;
	transition: opacity 0.18s ease;
	width: auto;
	z-index: 4;
}

/* Ancrage horizontal : rester dans le cadre */
.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--center {
	left: clamp(8.5rem, var(--sr-pin-x), calc(100% - 8.5rem));
	transform: translate(-50%, calc(-100% - 1.2rem));
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--right {
	left: calc(var(--sr-pin-x) + 0.85rem);
	transform: translate(0, calc(-100% - 1.2rem));
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--left {
	left: calc(var(--sr-pin-x) - 0.85rem);
	transform: translate(-100%, calc(-100% - 1.2rem));
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--below.wpcursor-batiments-pro__card--center {
	transform: translate(-50%, 1.25rem);
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--below.wpcursor-batiments-pro__card--right {
	transform: translate(0, 1.25rem);
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--below.wpcursor-batiments-pro__card--left {
	transform: translate(-100%, 1.25rem);
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card::after {
	display: none;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 9px solid rgba(1, 26, 61, 0.95);
	bottom: -8px;
	content: "";
	height: 0;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 0;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--right::after {
	left: 1.4rem;
	transform: none;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--left::after {
	left: auto;
	right: 1.4rem;
	transform: none;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card--below::after {
	border-bottom: 9px solid rgba(1, 26, 61, 0.95);
	border-top: 0;
	bottom: auto;
	top: -8px;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card.is-active {
	display: flex;
	opacity: 1;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card[hidden] {
	display: none !important;
	opacity: 0;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card-icon {
	color: var(--sr-orange);
	flex: 0 0 auto;
	margin-top: 0.1rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.25rem;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card-text {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.8rem;
	line-height: 1.4;
	margin: 0;
}

.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__seo {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Mobile / tablette : infos dans l’accordéon, pas de carte flottante */
@media (max-width: 959px) {
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__card {
		display: none !important;
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin {
		height: 2.75rem;
		width: 2.75rem;
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab {
		min-height: 2.75rem;
	}
}

@media (min-width: 960px) {
	.wpcursor-component.wpcursor-batiments-pro {
		--sr-pad: clamp(1.25rem, 3.5vw, 2.75rem);
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__inner {
		align-items: center;
		gap: clamp(1.5rem, 3vw, 3rem);
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
		padding: 3.75rem var(--sr-pad) 4rem;
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel-mobile {
		display: none !important;
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab.is-active .wpcursor-batiments-pro__tab-chevron {
		transform: none;
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__stage {
		box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
	}

}

@keyframes srBatimentsPinPulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(251, 175, 63, 0.35);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 0 0 10px rgba(251, 175, 63, 0);
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab,
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__tab-chevron,
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin-dot,
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__cta,
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__panel > *,
	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__visual {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.wpcursor-component.wpcursor-batiments-pro .wpcursor-batiments-pro__pin:not(.is-active) .wpcursor-batiments-pro__pin-dot {
		animation: none;
	}
}
