/**
 * Hero Entretien Cool Roof — navy #022b60 · orange #fbaf3f · titre blanc
 */
html:has(.wpcursor-hero-entretien) {
	overflow-x: clip;
}

/* Astra laisse un .entry-header vide (titre désactivé) avec margin-top:2em. */
body:has(.wpcursor-hero-entretien) .entry-header,
body:has(.wpcursor-hero-entretien) .entry-header.ast-header-without-markup {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/*
 * wpautop : <p></p> / <br> entre shortcodes → bandes blanches entre sections.
 * Astra : p { margin-bottom: 1.75em }.
 */
body:has(.wpcursor-hero-entretien) .entry-content > p:empty,
body:has(.wpcursor-hero-entretien) .entry-content > p:first-child:has(+ .wpcursor-hero-entretien),
body:has(.wpcursor-hero-entretien) .entry-content > p:first-child:has(+ .wpcursor-component.wpcursor-hero-entretien),
body:has(.wpcursor-hero-entretien) .entry-content > br,
body:has(.wpcursor-hero-entretien) .entry-content > p:has(> br:only-child) {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
}

body:has(.wpcursor-hero-entretien) .entry-content > .wpcursor-component {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body:has(.wpcursor-hero-entretien) .entry-content > .wpcursor-hero-entretien:first-child,
body:has(.wpcursor-hero-entretien) .entry-content > .wpcursor-component.wpcursor-hero-entretien:first-child {
	margin-top: 0;
}

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

.wpcursor-component.wpcursor-hero-entretien {
	--sr-navy: #022b60;
	--sr-orange: #fbaf3f;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: rgba(255, 255, 255, 0.78);
	--sr-line: rgba(255, 255, 255, 0.22);
	--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-gutter: max(var(--sr-pad), calc((100vw - min(100vw, var(--sr-content))) / 2 + var(--sr-pad)));
	background: var(--sr-navy);
	box-sizing: border-box;
	color: var(--sr-white);
	font-family: var(--sr-font);
	isolation: isolate;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

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

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__shell {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: 100%;
	min-height: 34rem;
	position: relative;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem var(--sr-pad) 2.25rem;
	position: relative;
	z-index: 2;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb ol {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb li {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.84rem;
	line-height: 1.4;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 0.3rem;
	opacity: 0.7;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb a {
	color: rgba(255, 255, 255, 0.78) !important;
	text-decoration: none !important;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb a:hover,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb a:focus-visible {
	color: var(--sr-orange) !important;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb li[aria-current="page"] {
	color: var(--sr-white);
	font-weight: 600;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__eyebrow {
	align-items: center;
	color: var(--sr-orange) !important;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.65rem;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__eyebrow-line {
	background: var(--sr-orange);
	border-radius: 999px;
	display: inline-block;
	height: 2px;
	width: 1.65rem;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__title {
	color: var(--sr-white) !important;
	font-size: clamp(1.7rem, 4.2vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 0.9rem;
	max-width: 14ch;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__text {
	color: var(--sr-muted);
	font-size: 1.02rem;
	line-height: 1.55;
	margin: 0 0 1.45rem;
	max-width: 34rem;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.95rem 1.35rem;
	margin-bottom: 1.5rem;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__btn {
	align-items: center;
	background: var(--sr-orange);
	border-radius: 0.55rem;
	color: var(--sr-white) !important;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	gap: 0.45rem;
	line-height: 1.25;
	min-height: 44px;
	padding: 0.85rem 1.2rem;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, gap 0.2s ease;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__btn:hover,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__btn:focus-visible {
	background: var(--sr-orange-hover);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	color: var(--sr-white) !important;
	gap: 0.65rem;
	outline: none;
	transform: translateY(-2px);
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__link {
	align-items: center;
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
	color: var(--sr-white) !important;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	gap: 0.35rem;
	line-height: 1.3;
	min-height: 44px;
	text-decoration: none !important;
	transition: color 0.2s ease, gap 0.2s ease, border-color 0.2s ease;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__link:hover,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__link:focus-visible {
	border-bottom-color: var(--sr-orange);
	color: var(--sr-orange) !important;
	gap: 0.55rem;
	outline: none;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tags {
	border-top: 1px solid var(--sr-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 1.1rem 0 0;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tag {
	align-items: center;
	color: var(--sr-white);
	display: inline-flex;
	font-size: 0.84rem;
	font-weight: 600;
	gap: 0.5rem;
	line-height: 1.3;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tag:not(:last-child) {
	border-right: 1px solid var(--sr-line);
	padding-right: 1.25rem;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tag-icon {
	color: var(--sr-orange);
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__visual {
	isolation: isolate;
	margin: 0;
	min-height: 16rem;
	overflow: hidden;
	position: relative;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__visual img {
	display: block;
	height: 100%;
	min-height: 16rem;
	object-fit: cover;
	object-position: 68% center;
	width: 100%;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__badge {
	align-items: center;
	background: var(--sr-white);
	border-radius: 0.65rem;
	box-shadow: 0 10px 28px rgba(2, 43, 96, 0.22);
	color: var(--sr-navy) !important;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	gap: 0.5rem;
	left: 50%;
	line-height: 1.3;
	max-width: calc(100% - 1.5rem);
	opacity: 0;
	padding: 0.6rem 0.9rem 0.6rem 0.65rem;
	position: absolute;
	top: 0.9rem;
	transform: translateX(-50%) translateY(0.6rem);
	transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
	z-index: 2;
}

/* Entrée : copy + badge masqués jusqu’au balayage */
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__eyebrow,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__title,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__text,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__actions,
.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tags {
	opacity: 0;
	transform: translateY(0.85rem);
	transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__eyebrow {
	transition-delay: 0s;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__title {
	transition-delay: 0.08s;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__text {
	transition-delay: 0.16s;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__actions {
	transition-delay: 0.24s;
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tags {
	transition-delay: 0.32s;
}

.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__eyebrow,
.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__title,
.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__text,
.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__actions,
.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__tags,
.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__eyebrow,
.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__title,
.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__text,
.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__actions,
.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__tags,
.wpcursor-component.wpcursor-hero-entretien.is-inview.is-complete .wpcursor-hero-entretien__eyebrow,
.wpcursor-component.wpcursor-hero-entretien.is-inview.is-complete .wpcursor-hero-entretien__title,
.wpcursor-component.wpcursor-hero-entretien.is-inview.is-complete .wpcursor-hero-entretien__text,
.wpcursor-component.wpcursor-hero-entretien.is-inview.is-complete .wpcursor-hero-entretien__actions,
.wpcursor-component.wpcursor-hero-entretien.is-inview.is-complete .wpcursor-hero-entretien__tags {
	opacity: 1;
	transform: translateY(0);
}

.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__badge,
.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__badge {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__badge-icon {
	align-items: center;
	background: rgba(251, 175, 63, 0.18);
	border-radius: 0.4rem;
	color: var(--sr-orange);
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.7rem;
	justify-content: center;
	width: 1.7rem;
}

@media (min-width: 900px) {
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__shell {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		min-height: min(38rem, calc(100vh - 4.5rem));
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__copy {
		padding: 3.25rem 2.5rem 3.25rem var(--sr-gutter);
		padding-right: clamp(2rem, 5vw, 4rem);
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__visual {
		clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
		min-height: 100%;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__visual img {
		min-height: 100%;
		object-position: 62% center;
		position: absolute;
		inset: 0;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__badge {
		left: auto;
		right: 1.35rem;
		top: 1.25rem;
		transform: translateY(0.6rem);
	}

	.wpcursor-component.wpcursor-hero-entretien.is-scanned .wpcursor-hero-entretien__badge,
	.wpcursor-component.wpcursor-hero-entretien.is-complete .wpcursor-hero-entretien__badge {
		transform: translateY(0);
	}
}

@media (max-width: 899px) {
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__title {
		max-width: none;
		font-size: clamp(1.45rem, 6.2vw, 2rem);
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__breadcrumb li {
		font-size: 0.75rem;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__copy {
		padding: 1.5rem var(--sr-pad) 1.75rem;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__shell {
		min-height: 0;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__actions {
		align-items: flex-start;
		flex-direction: column;
		width: 100%;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__btn {
		justify-content: center;
		min-height: 2.75rem;
		width: 100%;
		white-space: normal;
		text-align: center;
		line-height: 1.3;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tags {
		flex-direction: column;
		gap: 0.75rem;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tag:not(:last-child) {
		border-right: 0;
		border-bottom: 1px solid var(--sr-line);
		padding-bottom: 0.75rem;
		padding-right: 0;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__media {
		min-height: 14rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__btn,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__link,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__eyebrow,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__title,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__text,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__actions,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__tags,
	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__badge {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__badge {
		transform: translateX(-50%) !important;
	}

	@media (min-width: 900px) {
		.wpcursor-component.wpcursor-hero-entretien .wpcursor-hero-entretien__badge {
			transform: none !important;
		}
	}
}
