/* ------------------------------------------------------------------ */
/* Widget : Avis Clients — mobile first                                */
/* ------------------------------------------------------------------ */

/* Le conteneur Swiper doit avoir overflow: hidden pour masquer les slides hors vue */
.lit-reviews__slider {
	overflow: hidden;
}

/* Track : flex horizontal requis par Swiper (et pour le fallback sans JS) */
.lit-reviews__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
}

/* Card -------------------------------------------------------------- */

.lit-reviews__card {
	background: #ffffff;
	border: 1px solid #DADADA;
	border-radius: 4px;
	padding: 20px 19px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	flex-shrink: 0; /* empêche la compression des slides Swiper */
	height: auto;
}

/* Stars ------------------------------------------------------------- */

.lit-reviews__stars {
	display: flex;
	gap: 4px;
	margin-bottom: 4px;
}

.lit-reviews__star {
	color: #DADADA;
	line-height: 0;
}

.lit-reviews__star--filled {
	color: #E94C38;
}

/* Typography -------------------------------------------------------- */

.lit-reviews__author,
.lit-reviews__heading,
.lit-reviews__text,
.lit-reviews__date {
	margin: 0;
	color: #01301B;
}

.lit-reviews__author {
	font-weight: 700;
	line-height: 1.44;
	letter-spacing: 0.0313em;
}

.lit-reviews__heading {
	font-weight: 700;
	line-height: 1.44;
	letter-spacing: 0.0313em;
}

.lit-reviews__text {
	font-size: .875em;
	line-height: 1.15;
	flex: 1;
}

.lit-reviews__date {
	font-size: .85em;
	font-weight: 400;
	line-height: 1.44;
	letter-spacing: 0.0313em;
	margin-top: auto;
}

/* Pagination (mobile) ----------------------------------------------- */

.lit-reviews__pagination {
	margin-top: 20px;
	text-align: center;
}

/* Lien "Lire la suite" (avis tronqués) ------------------------------ */

.lit-reviews .lit-reviews__readmore {
	color: inherit;
	font-size: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

/* Desktop ----------------------------------------------------------- */

@media (min-width: 1025px) {

	.lit-reviews__slider {
		overflow: hidden;
	}

	/* Remplace le flex de Swiper par une grille 3 colonnes / 2 lignes */
	.lit-reviews__track {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		transform: none !important;
		width: 100% !important;
	}

	.lit-reviews__card {
		width: auto !important;
		margin-right: 0 !important;
		height: auto;
	}

	.lit-reviews__pagination {
		display: none;
	}

}
