/* Accueil — logo hero (plus petit pour laisser voir la photo) */
.flash-hero-hub-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(72vw, 340px);
	max-height: min(28vh, 200px);
	object-fit: contain;
}

/* Accueil — vidéo hero (background) + fallback image */
.flash-front-hero__video,
.flash-front-hero__fallback-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.flash-front-hero__layout {
	position: relative;
	height: 100%;
	width: 100%;
}

.flash-front-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.flash-front-hero__panel {
	position: relative;
	z-index: 10;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flash-front-hero__panel .flash-hero-content {
	width: 100%;
}

.flash-front-hero__video {
	object-fit: cover;
	object-position: center;
	z-index: 0;
	opacity: 0;
	transition: opacity 0.45s ease;
}

/* Première frame / poster tant que la vidéo charge */
.flash-front-hero__fallback-img {
	object-fit: cover;
	object-position: center;
	z-index: 1;
	display: block;
	opacity: 1;
	transition: opacity 0.45s ease;
}

.flash-front-hero__media--video-ready .flash-front-hero__video {
	opacity: 1;
}

.flash-front-hero__media--video-ready .flash-front-hero__fallback-img {
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.flash-front-hero__video {
		display: none;
	}
	.flash-front-hero__fallback-img {
		display: block;
		opacity: 1;
	}
	.flash-front-hero__media--video-ready .flash-front-hero__fallback-img {
		opacity: 1;
	}
}

/* Desktop: split 50/50 (media gauche, contenu droite) */
@media (min-width: 1011px) {
	.flash-front-hero__layout {
		display: flex;
	}

	.flash-front-hero__media {
		position: relative;
		inset: auto;
		width: 50%;
		height: 100%;
	}

	.flash-front-hero__panel {
		width: 50%;
		justify-content: flex-start;
		text-align: left;
		padding: 0 clamp(1.5rem, 4vw, 4rem);
		background: rgba(14, 14, 14, 0.55);
		backdrop-filter: blur(6px);
	}

	.flash-front-hero__panel .flash-hero-content {
		max-width: 42rem;
		padding-left: 0;
		padding-right: 0;
	}

	.flash-front-hero__panel .flash-hero-hub-logo-wrap {
		justify-content: flex-start;
	}

	.flash-front-hero__panel h1 {
		margin-left: 0;
		margin-right: 0;
	}

	.flash-front-hero__panel .flex.flex-col.md\\:flex-row {
		justify-content: flex-start;
	}
}

@media (max-width: 1010px) {
	.flash-hero-hub-logo {
		max-width: min(68vw, 260px);
		max-height: min(22vh, 150px);
	}

	.flash-hero-hub-logo-wrap {
		margin-bottom: 1rem !important;
	}

	.flash-hero-content h1 {
		font-size: 1.125rem;
		line-height: 1.35;
	}

	.flash-hero-content .flex.flex-col {
		margin-top: 1.5rem;
		gap: 1rem;
	}
}

@media (max-width: 640px) {
	.flash-hero-hub-logo {
		max-width: min(78vw, 200px);
		max-height: min(16vh, 110px);
	}

	.flash-hero-hub-logo-wrap {
		margin-bottom: 0.75rem !important;
	}
}

/* Accueil — boutons section « Voir tous… » */
a.flash-section-cta,
a.flash-section-cta:visited {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	background: #ffffff;
	color: #0e0e0e !important;
	border: 1px solid rgba(14, 14, 14, 0.15);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.flash-section-cta:hover,
a.flash-section-cta:focus-visible {
	background: #f0f0f0;
	color: #0e0e0e !important;
	border-color: rgba(14, 14, 14, 0.35);
}

.flash-section-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.flash-section-cta-row--after {
	margin-top: 1.75rem;
	margin-bottom: 0;
}
