.lf-hero {
	position: relative;
	padding: clamp(3rem, 8vw, 6rem) 1.5rem;
	text-align: center;
	color: var(--lf-white);
	background: linear-gradient(135deg, var(--lf-navy) 0%, var(--lf-navy-dark) 55%, var(--lf-orange) 140%);
	overflow: hidden;
}

.lf-hero::before {
	content: "";
	position: absolute;
	top: -20%;
	right: -10%;
	width: min(50vw, 420px);
	height: min(50vw, 420px);
	background: radial-gradient(circle, rgba(var(--lf-orange-rgb), 0.45) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.lf-hero__inner {
	position: relative;
	z-index: 1;
	width: min(100%, 48rem);
	margin: 0 auto;
}

.lf-hero__badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.35rem 1rem;
	font-family: var(--lf-font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 999px;
}

.lf-hero__title {
	font-family: var(--lf-font-subtitle);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.lf-hero--activite .lf-hero__title,
.lf-page-hero__title {
	font-family: var(--lf-font-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.lf-heading--split {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	font-family: inherit;
	font-weight: inherit;
	letter-spacing: normal;
}

.lf-heading__brand {
	display: block;
	font-family: var(--lf-font-display);
	font-weight: 500;
	line-height: 1.05;
	font-size: clamp(2.5rem, 7vw, 4.5rem);
	letter-spacing: -0.01em;
}

.lf-heading__tagline {
	display: block;
	max-width: 36rem;
	font-family: var(--lf-font-subtitle);
	font-size: clamp(1.05rem, 2.4vw, 1.5rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	opacity: 0.94;
}

.lf-hero--front .lf-hero__title:not(.lf-heading--split) {
	font-family: var(--lf-font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.lf-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2.25rem, 6vw, 4rem);
	color: var(--lf-white);
}

.lf-hero__lead {
	margin: 0 auto 1.75rem;
	max-width: 36rem;
	font-size: 1.15rem;
	opacity: 0.92;
}

.lf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

/* Bouton secondaire sur fond sombre du hero */
.lf-hero .lf-btn--secondary,
.lf-hero .lf-btn--outline {
	background: rgba(255, 255, 255, 0.12);
	color: var(--lf-white) !important;
	border-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(4px);
}

.lf-hero .lf-btn--secondary:hover,
.lf-hero .lf-btn--outline:hover {
	background: var(--lf-white);
	color: var(--lf-navy) !important;
	border-color: var(--lf-white);
}

.lf-hero--activite {
	text-align: center;
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.lf-hero--activite .lf-hero__inner {
	width: min(100% - 2rem, 48rem);
	margin-inline: auto;
	text-align: center;
}

.lf-hero--activite.lf-hero--has-image {
	min-height: clamp(18rem, 42vh, 26rem);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lf-hero--activite.lf-hero--has-image::before {
	display: none;
}

.lf-hero--activite.lf-hero--has-image .lf-hero__overlay {
	background: linear-gradient(
		135deg,
		rgba(38, 39, 98, 0.88) 0%,
		rgba(38, 39, 98, 0.65) 50%,
		rgba(38, 39, 98, 0.45) 100%
	);
}

.lf-hero--activite.lf-hero--has-image .lf-hero__lead {
	margin-inline: auto;
	color: var(--lf-white);
	opacity: 0.95;
}

.lf-hero--activite.lf-hero--has-image .lf-hero__actions {
	justify-content: center;
}

.lf-hero--has-image {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 28%;
	background-image: linear-gradient(135deg, rgba(38, 39, 98, 0.88), rgba(38, 39, 98, 0.55)), var(--lf-hero-image);
}

.lf-hero--has-image .lf-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(38, 39, 98, 0.4) 100%);
}

.lf-hero--has-image .lf-hero__inner {
	position: relative;
	z-index: 1;
}

/* Bannière accueil - diaporama */
.lf-hero--slideshow {
	background: var(--lf-navy);
}

.lf-hero--slideshow.lf-hero--has-image {
	background-image: none;
}

.lf-hero--slideshow .lf-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.lf-hero--slideshow .lf-hero__bg-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 28%;
	opacity: 0;
	transition: opacity 1s ease;
	will-change: opacity;
}

.lf-hero--slideshow .lf-hero__bg-slide.is-active {
	opacity: 1;
}

.lf-hero--slideshow::before {
	z-index: 1;
}

.lf-hero--slideshow .lf-hero__overlay {
	z-index: 2;
	background: linear-gradient(135deg, rgba(38, 39, 98, 0.82), rgba(38, 39, 98, 0.5));
}

.lf-hero--slideshow .lf-hero__inner {
	z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
	.lf-hero--slideshow .lf-hero__bg-slide {
		transition: none;
	}
}

.lf-hero--quiz-room:not(.lf-hero--has-image) {
	background: linear-gradient(135deg, var(--lf-quiz-blue), var(--lf-quiz-cyan));
}

.lf-hero--quiz-room.lf-hero--has-image {
	background-image: linear-gradient(135deg, rgba(0, 74, 155, 0.85), rgba(11, 187, 239, 0.65)), var(--lf-hero-image);
}

.lf-hero--karaoke:not(.lf-hero--has-image) {
	background: linear-gradient(135deg, var(--lf-navy), var(--lf-karaoke-pink));
}

.lf-hero--karaoke.lf-hero--has-image {
	background-image: linear-gradient(135deg, rgba(38, 39, 98, 0.85), rgba(221, 167, 165, 0.7)), var(--lf-hero-image);
}

.lf-hero--ceramique:not(.lf-hero--has-image) {
	background: linear-gradient(135deg, var(--lf-navy), var(--lf-accent));
	color: var(--lf-navy);
}

.lf-hero--ceramique:not(.lf-hero--has-image) .lf-hero__title {
	color: var(--lf-navy);
}

.lf-hero--ceramique.lf-hero--has-image {
	background-image: linear-gradient(135deg, rgba(38, 39, 98, 0.75), rgba(251, 228, 185, 0.65)), var(--lf-hero-image);
	color: var(--lf-white);
}

.lf-hero--ceramique.lf-hero--has-image .lf-hero__title,
.lf-hero--ceramique.lf-hero--has-image .lf-hero__lead {
	color: var(--lf-white);
}

.lf-page-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(14rem, 36vh, 22rem);
	padding: clamp(3.5rem, 9vw, 6rem) 1.5rem;
	text-align: center;
	background: var(--lf-navy-dark);
	border-bottom: 1px solid var(--lf-border);
	overflow: hidden;
}

.lf-page-hero--has-image {
	color: var(--lf-white);
	border-bottom: none;
}

.lf-page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.lf-page-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Favorise les visages / sujet haut de cadre (évite têtes coupées) */
	object-position: center 28%;
	transform: scale(1.02);
}

.lf-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			165deg,
			rgba(23, 27, 81, 0.45) 0%,
			rgba(23, 27, 81, 0.58) 42%,
			rgba(23, 27, 81, 0.82) 100%
		),
		radial-gradient(ellipse 80% 60% at 50% 100%, rgba(155, 76, 52, 0.22) 0%, transparent 65%);
}

.lf-page-hero__inner {
	position: relative;
	z-index: 2;
	width: min(100%, 42rem);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lf-page-hero--has-image .lf-page-hero__title,
.lf-page-hero--has-image .lf-page-hero__lead {
	color: var(--lf-white);
}

.lf-page-hero--has-image .lf-page-hero__lead {
	color: rgba(255, 255, 255, 0.88);
}

.lf-page-hero__title {
	margin: 0;
	font-size: clamp(2.5rem, 7vw, 4.25rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
	color: var(--lf-navy);
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.22);
}

.lf-page-hero__title::after {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3px;
	margin: 1rem auto 0;
	background: linear-gradient(90deg, transparent, var(--lf-orange) 15%, var(--lf-sand) 85%, transparent);
	border-radius: 999px;
}

.lf-page-hero__lead {
	margin: 1.15rem auto 0;
	max-width: 34rem;
	font-family: var(--lf-font-body);
	font-size: clamp(1.02rem, 2vw, 1.2rem);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0.01em;
	text-wrap: balance;
	color: var(--lf-muted);
}

.lf-page-hero__lead p {
	margin: 0;
}

.lf-page-hero__lead p + p {
	margin-top: 0.65rem;
}

.lf-page-content {
	width: min(100% - 2rem, var(--lf-max));
	margin: 0 auto;
	padding: 2rem 0 4rem;
}

/* -------------------------------------------------------------------------
 * Hero accueil - logo + tâche sur diaporama (sans glass card)
 * ------------------------------------------------------------------------- */

.lf-hero--front {
	min-height: clamp(26rem, 72vh, 40rem);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 10vw, 6.5rem);
}

.lf-hero--front.lf-hero--has-image::before {
	display: none;
}

.lf-hero--front .lf-hero__inner {
	width: min(100%, 36rem);
}

.lf-hero--logo-only .lf-hero__brand-mark {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	isolation: isolate;
	padding: clamp(0.5rem, 2vw, 1.25rem);
	/* Pas de glass card : logo + badge + CTA flottent sur le diaporama */
	background: transparent;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
}

.lf-hero--logo-only .lf-hero__badge {
	margin: 0;
	padding: 0.45rem 1.1rem;
	font-family: var(--lf-font-body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lf-sand);
	background: rgba(23, 27, 81, 0.45);
	border: 1px solid rgba(251, 228, 185, 0.35);
	border-radius: 999px;
}

.lf-hero--logo-only .lf-hero__logo {
	position: relative;
	z-index: 1;
	display: block;
	width: min(100%, 28rem);
	height: auto;
	max-height: min(48vh, 20rem);
	object-fit: contain;
	filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.28));
}

.lf-hero--logo-only .lf-hero__logo-fallback {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: var(--lf-font-display);
	font-size: clamp(2.5rem, 8vw, 4.5rem);
	font-weight: 500;
	color: var(--lf-white);
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.lf-hero--logo-only .lf-hero__actions {
	margin-top: 0.35rem;
}

.lf-hero--logo-only .lf-btn--hero {
	padding: 0.9rem 2.1rem;
	font-size: 1rem;
	box-shadow: 0 10px 28px rgba(155, 76, 52, 0.38);
}

.lf-hero--logo-only .lf-btn--hero-secondary {
	padding: 0.9rem 1.65rem;
	font-size: 0.95rem;
}

.lf-hero--front.lf-hero--slideshow .lf-hero__overlay {
	background:
		linear-gradient(
			165deg,
			rgba(23, 27, 81, 0.55) 0%,
			rgba(23, 27, 81, 0.22) 45%,
			rgba(23, 27, 81, 0.5) 100%
		);
}

.lf-hero--front.lf-hero--slideshow .lf-hero__bg-slide.is-active {
	transform: scale(1.03);
	transition: opacity 1.2s ease, transform 8s ease;
}

.lf-hero--front.lf-hero--slideshow .lf-hero__bg-slide {
	transition: opacity 1.2s ease;
}

@media (max-width: 640px) {
	.lf-hero--front {
		min-height: clamp(22rem, 70vh, 32rem);
		padding-top: clamp(4.5rem, 14vw, 6rem);
		padding-bottom: clamp(3rem, 10vw, 4.5rem);
	}

	.lf-hero--logo-only .lf-hero__logo {
		width: min(100%, 18rem);
		max-height: min(40vh, 15rem);
	}

	.lf-hero--logo-only .lf-hero__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.lf-hero--logo-only .lf-btn--hero,
	.lf-hero--logo-only .lf-btn--hero-secondary {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lf-hero--front.lf-hero--slideshow .lf-hero__bg-slide.is-active {
		transform: none;
		transition: none;
	}
}
