/* Bloc Sélection — styles front */

.hsas {
	--hsas-thumb: 145px;
	max-width: 100%;
}

.hsas__heading {
	margin: 0 0 18px;
	color: #111;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hsas__list {
	display: flex;
	flex-direction: column;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Filet vertical pour deux blocs côte à côte. */
.hsas--separator .hsas__list {
	padding-left: 28px;
	border-left: 1px solid #111;
}

.hsas__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 0;
}

.hsas__thumb {
	--hsas-ratio: 16 / 11;
	position: relative;
	flex: 0 0 var(--hsas-thumb);
	aspect-ratio: var(--hsas-ratio);
	overflow: hidden;
	background-color: #ebebeb;
}

@supports not (aspect-ratio: 1 / 1) {
	.hsas__thumb {
		min-height: 90px;
	}
}

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

.hsas__item:hover .hsas__thumb .hsas__img {
	transform: scale(1.04);
}

/* Voile de couleur : au-dessus de l'image, sous les textes. */
.hsas__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: transparent;
	pointer-events: none;
}

.hsas__body {
	min-width: 0;
}

.hsas__eyebrow {
	margin: 0 0 6px;
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hsas__title {
	margin: 0;
	color: #111;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	text-wrap: balance;
	transition: color 200ms ease;
}

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

/* Toute la ligne devient cliquable sans imbriquer de lien. */
.hsas__permalink::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

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

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

/* Tablettes comprises : même comportement qu'en mobile. */
@media (max-width: 1024px) {
	.hsas {
		--hsas-thumb: 110px;
	}

	/* Le filet vertical n'a plus de sens quand les blocs s'empilent. */
	.hsas--separator .hsas__list {
		padding-left: 0;
		border-left: 0;
	}

	.hsas__title {
		font-size: 17px;
	}

	/* --- Maquette mobile : image au-dessus, texte centré --------------- */

	.hsas--m-stack .hsas__item {
		align-items: center;
		text-align: center;
	}

	.hsas--m-stack .hsas__thumb {
		flex: 0 0 auto;
		width: auto;
		align-self: stretch;
		margin-inline: var(--hsas-inset, 0);
	}

	.hsas--m-stack .hsas__body {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsas__title,
	.hsas__thumb .hsas__img {
		transition: none;
	}
}

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

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