/* Bloc Grand reportage — styles front */

.hsaf {
	position: relative;
	display: flex;
	max-width: 100%;
	min-height: 420px;
	margin-inline: auto;
	overflow: hidden;
	background-color: #101418;
	isolation: isolate;
}

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

/* Deux classes : indispensable pour passer devant « .elementor img { height: auto } ». */
.hsaf__media .hsaf__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transition: transform 600ms ease;
}

.hsaf--zoom:hover .hsaf__media .hsaf__img,
.hsaf--zoom:focus-within .hsaf__media .hsaf__img {
	transform: scale(1.03);
}

/* Aplat de couleur : sous le dégradé, pour que les deux se composent. */
.hsaf__veil {
	position: absolute;
	inset: 0;
	background-color: transparent;
	pointer-events: none;
}

.hsaf__overlay {
	--hsaf-overlay: rgba(0, 0, 0, 0.5);
	--hsaf-angle: 100deg;
	--hsaf-spread: 55%;
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		var(--hsaf-angle),
		var(--hsaf-overlay) 0%,
		transparent var(--hsaf-spread)
	);
}

.hsaf__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	width: 100%;
	padding: 42px 42px 38px;
}

.hsaf__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	max-width: 460px;
	min-height: 100%;
}

.hsaf__eyebrow {
	margin: 0;
	color: #f5b301;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hsaf__title {
	margin: 22px 0 0;
	color: #fff;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
	text-transform: uppercase;
	text-wrap: balance;
	transition: color 200ms ease;
}

.hsaf__permalink {
	color: inherit;
	text-decoration: none;
}

/* Tout le bandeau devient cliquable sans imbriquer de lien. */
.hsaf__permalink::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.hsaf__permalink:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.hsaf__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 40px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hsaf__arrow {
	transition: transform 200ms ease;
}

.hsaf:hover .hsaf__arrow {
	transform: translateX(4px);
}

.hsaf-empty {
	padding: 24px;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	text-align: center;
}

@media (max-width: 1024px) {
	.hsaf {
		min-height: 380px;
	}
}

/* Tablettes comprises : même comportement qu'en mobile. */
@media (max-width: 1024px) {
	.hsaf {
		min-height: 340px;
	}

	.hsaf__inner {
		padding: 24px;
	}

	.hsaf__content {
		max-width: 100%;
	}

	.hsaf__title {
		font-size: 22px;
	}

	/* --- Maquette mobile ------------------------------------------------ */

	.hsaf--m-center .hsaf__inner {
		align-items: center;
	}

	.hsaf--m-center .hsaf__content {
		align-items: center;
		text-align: center;
	}

	/* Le format l'emporte sur la hauteur : la photo garde ses proportions. */
	.hsaf--m-ratio {
		aspect-ratio: var(--hsaf-m-ratio, 3 / 4);
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsaf__title,
	.hsaf__arrow,
	.hsaf__media .hsaf__img {
		transition: none;
	}
}

/* Nom de catégorie cliquable : au-dessus du lien étiré de la carte. */
.hsaf__eyebrow a {
	position: relative;
	z-index: 3;
	color: inherit;
	text-decoration: none;
}

.hsaf__eyebrow a:hover,
.hsaf__eyebrow a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
