/* LCH Hébergements Bridge — section blanche + parallax + titre hexagone */

.lch-heb-bridge {
	--lch-heb-bg: #ffffff;
	--lch-heb-ink: #f7f2ea;

	position: relative;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: var(--lch-heb-bg);
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3.5rem) 0;
	overflow: clip;
}

.lch-heb-bridge__frame {
	position: relative;
	width: 100%;
	height: clamp(16rem, 38vh, 24rem);
	min-height: 16rem;
	overflow: hidden;
	isolation: isolate;
	background: #1a1612;
}

.lch-heb-bridge__media {
	position: absolute;
	inset: -55% 0;
	z-index: 0;
	overflow: hidden;
	will-change: transform;
	transform: translate3d(0, var(--lch-heb-y, 0px), 0) scale(var(--lch-heb-scale, 1.18));
	transition: none;
}

.lch-heb-bridge__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	filter: saturate(1.06) contrast(1.03);
}

.lch-heb-bridge__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 50% 48%, rgba(18, 14, 10, 0.18) 0%, rgba(18, 14, 10, 0.42) 100%),
		linear-gradient(180deg, rgba(18, 14, 10, 0.12) 0%, transparent 28%, transparent 72%, rgba(18, 14, 10, 0.18) 100%);
}

.lch-heb-bridge__badge {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	pointer-events: none;
	opacity: 0;
	transform: translateY(18px) scale(0.97);
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
	text-decoration: none;
	color: inherit;
}

.lch-heb-bridge__badge--link {
	pointer-events: auto;
	cursor: pointer;
}

.lch-heb-bridge__badge--link:hover .lch-heb-bridge__title,
.lch-heb-bridge__badge--link:focus-visible .lch-heb-bridge__title {
	opacity: 0.92;
}

.lch-heb-bridge__badge--link:focus-visible {
	outline: 2px solid rgba(247, 242, 234, 0.85);
	outline-offset: -1.25rem;
}

.lch-heb-bridge.is-inview .lch-heb-bridge__badge {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.lch-heb-bridge__hex {
	position: absolute;
	width: min(34rem, 88vw);
	height: auto;
	color: rgba(247, 242, 234, 0.92);
	filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.25));
}

.lch-heb-bridge__title,
.wpcursor-component.lch-heb-bridge .lch-heb-bridge__title,
.lch-heb-bridge h2.lch-heb-bridge__title {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	max-width: min(18rem, 62vw);
	text-align: center;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 500 !important;
	font-size: clamp(0.95rem, 1.7vw, 1.25rem) !important;
	line-height: 1.35 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase !important;
	color: #fff !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
	transition: opacity 0.25s ease;
}

.lch-heb-bridge .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 720px) {
	.lch-heb-bridge {
		padding: 1.25rem 1rem 1.75rem;
	}

	.lch-heb-bridge__frame {
		height: clamp(13.5rem, 34vh, 18rem);
		min-height: 13.5rem;
	}

	.lch-heb-bridge__title,
	.wpcursor-component.lch-heb-bridge .lch-heb-bridge__title,
	.lch-heb-bridge h2.lch-heb-bridge__title {
		letter-spacing: 0.1em;
		font-size: clamp(1.15rem, 5.2vw, 1.45rem) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lch-heb-bridge__media {
		transform: none !important;
	}

	.lch-heb-bridge__badge {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
