/**
 * Hero homepage — calque 2026 (parité style-hero.css).
 */

.hero-section {
	position: relative;
	min-height: 84svh;
	display: flex;
	align-items: flex-end;
	overflow: clip;
	background-color: #080808;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-visual {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-visual-video {
	z-index: 1;
}

/* Fallback image : masqué tant que la vidéo tourne (pas de flash poster) */
.hero-visual-fallback-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
}

.hero-visual-fallback {
	z-index: 0;
}

.hero-media.is-video-failed .hero-visual-fallback-wrap,
.hero-media:not(:has(.hero-visual-video)) .hero-visual-fallback-wrap {
	opacity: 1;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.12) 10%, rgba(0, 0, 0, 0.62) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.12) 60%);
}

.hero-content {
	position: relative;
	z-index: 3;
	padding-top: clamp(110px, 18vh, 190px);
	padding-bottom: clamp(34px, 6vh, 80px);
	max-width: 740px;
	margin-left: 0;
	margin-right: auto;
	text-align: left;
	box-sizing: border-box;
}

.hero-subtitle {
	margin: 18px 0 0;
	max-width: 45ch;
	font-family: var(--font-main, "Space Grotesk", sans-serif);
	font-size: clamp(1rem, 2.5vw, 1.15rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.hero-section .impact-title {
	margin: 0;
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: clamp(2.3rem, 11vw, 6rem);
	font-weight: 700;
	line-height: 0.9 !important;
	letter-spacing: -0.02em;
	word-spacing: var(--headline-word-spacing, 0);
	text-transform: uppercase;
	color: #fff;
	background: none;
	padding: 0;
	display: block;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.hero-actions .btn-pill-shop {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-inline: 20px;
	text-decoration: none;
}

.hero-actions .btn-pill-shop::after {
	content: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.hero-visual-video {
		display: none !important;
	}

	.hero-visual-fallback-wrap {
		opacity: 1;
	}
}

/* Mobile / tablette : copy en haut centré, CTAs en bas de bloc */
@media (max-width: 1023px) {
	.hero-section {
		align-items: stretch;
	}

	.hero-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		padding-bottom: clamp(28px, 5vh, 48px);
		box-sizing: border-box;
	}

	.hero-section .impact-title {
		width: 100%;
	}

	.hero-subtitle {
		margin-left: auto;
		margin-right: auto;
		max-width: 34ch;
	}

	.hero-actions {
		margin-top: auto;
		width: 100%;
		max-width: 22rem;
		justify-content: center;
		padding-top: clamp(1.5rem, 4vh, 2.5rem);
	}

	.hero-actions .btn-pill-shop {
		width: 100%;
		white-space: normal;
	}
}

@media (min-width: 1024px) {
	.hero-section {
		min-height: min(95vh, 920px);
		align-items: center;
	}

	.hero-content {
		padding-top: 0;
		padding-bottom: clamp(60px, 8vh, 100px);
		padding-left: clamp(18px, 2.2vw, 42px);
		max-width: 820px;
		margin-left: 0;
		margin-right: auto;
		display: block;
		text-align: left;
		align-items: flex-start;
	}

	.hero-section .impact-title {
		font-size: clamp(3.4rem, 6.2vw, 6.8rem);
		line-height: 0.88 !important;
	}

	.hero-subtitle {
		margin-top: 22px;
		font-size: clamp(1.08rem, 1.5vw, 1.35rem);
		max-width: 52ch;
	}

	.hero-actions {
		margin-top: 32px;
		gap: 14px;
	}

	.hero-actions .btn-pill-shop {
		min-height: 54px;
		padding-inline: 26px;
		font-size: 0.9rem;
	}
}

/* --- Accueil BF : hero plein écran sous annonces + header transparent --- */
body:is(.home, .front-page).bf-header-2026 .main.home-experience {
	margin-top: 0;
}

body:is(.home, .front-page).bf-header-2026 .home-experience > .hero-section {
	margin-top: calc(-1 * var(--site-top-offset, 116px));
	min-height: 100svh;
	position: relative;
	z-index: 0;
}

body:is(.home, .front-page).bf-header-2026 .hero-content {
	padding-top: calc(var(--site-top-offset, 116px) + clamp(40px, 11vh, 100px));
	padding-left: var(--footer-pad-x, clamp(1.25rem, 4vw, 2.25rem));
	padding-right: var(--footer-pad-x, clamp(1.25rem, 4vw, 2.25rem));
	width: 100%;
}

@media (max-width: 1023px) {
	body:is(.home, .front-page).bf-header-2026 .home-experience > .hero-section {
		display: flex;
		flex-direction: column;
	}

	body:is(.home, .front-page).bf-header-2026 .hero-content {
		/* Sous le header transparent : titre en haut, boutons ancrés bas */
		padding-top: calc(var(--site-top-offset, 116px) + clamp(20px, 4vh, 36px));
		flex: 1 1 auto;
		min-height: 0;
	}
}

@media (min-width: 1024px) {
	body:is(.home, .front-page).bf-header-2026 .home-experience > .hero-section {
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}

	body:is(.home, .front-page).bf-header-2026 .hero-content {
		padding-top: calc(var(--site-top-offset, 136px) + clamp(24px, 4.5vh, 56px));
		max-width: min(820px, calc(100% - 2 * clamp(18px, 2.2vw, 42px)));
	}
}
