/* Avis Clients – grille de cases (avis gris + photos), inspirée de la page de référence */
.avis-clients {
	--avis-colonnes: 4;
	--avis-espace: 20px;
	--avis-fond: #f2f2f2;
	--avis-texte: #111111;
	display: grid;
	grid-template-columns: repeat(var(--avis-colonnes), minmax(0, 1fr));
	gap: var(--avis-espace);
	box-sizing: border-box;
	/* Occupe 100 % de la largeur du bloc / de la zone qui le contient */
	width: 100% !important;
	max-width: none !important;
	margin: 30px 0 !important;
}

.avis-case {
	min-height: 280px;
	box-sizing: border-box;
}

/* Case avis */
.avis-case--texte {
	background: var(--avis-fond);
	color: var(--avis-texte);
	padding: 30px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	text-align: left;
}
.avis-case--texte p {
	margin: 0 0 1.6em;
}
.avis-case--texte p:last-child {
	margin-bottom: 0;
}
.avis-client__date strong {
	font-weight: 700;
}
.avis-client__commentaire p {
	margin: 0 0 1em;
}
.avis-client__date {
	margin-bottom: 0.4em !important;
}
.avis-client__nom {
	margin-bottom: 1.6em !important;
}
.avis-client__commentaire p:last-child {
	margin-bottom: 0;
}

/* Case photo : remplit toute la case */
.avis-case--photo {
	position: relative;
	overflow: hidden;
}
.avis-case--photo img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0;
}

/* Tablette : 2 colonnes */
@media (max-width: 991px) {
	.avis-clients {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile : 1 colonne */
@media (max-width: 575px) {
	.avis-clients {
		grid-template-columns: 1fr;
	}
	.avis-case--photo {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

/* ------------------------------------------------------------------
 * « Lire la suite » (au-delà de 10 lignes)
 * ------------------------------------------------------------------ */
.avis-client__commentaire.is-coupe {
	overflow: hidden;
	position: relative;
}
.avis-client__commentaire.is-coupe::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3em;
	background: linear-gradient(to bottom, rgba(242, 242, 242, 0), var(--avis-fond));
	pointer-events: none;
}
.avis-client__suite {
	display: inline-block;
	margin: 12px 0 0;
	padding: 0;
	background: none !important;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: var(--avis-texte) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}
.avis-client__suite:hover,
.avis-client__suite:focus-visible {
	opacity: 0.7;
}

/* ------------------------------------------------------------------
 * Popup
 * ------------------------------------------------------------------ */
html.avis-popup-ouverte {
	overflow: hidden;
}
.avis-popup {
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	padding: 0;
	border: 0;
	background: transparent;
	color: #111111;
	overflow: visible;
}
.avis-popup::backdrop {
	background: rgba(0, 0, 0, 0.6);
}
.avis-popup__boite {
	position: relative;
	background: #f2f2f2;
	padding: 40px 36px 36px;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	box-sizing: border-box;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	text-align: left;
}
.avis-popup__contenu p {
	margin: 0 0 1em;
}
.avis-popup__contenu .avis-client__date {
	margin-bottom: 0.4em;
}
.avis-popup__contenu .avis-client__date strong {
	font-weight: 700;
}
.avis-popup__contenu .avis-client__nom {
	margin-bottom: 1.6em;
}
.avis-popup__contenu .avis-client__commentaire {
	max-height: none !important;
}
.avis-popup__contenu .avis-client__commentaire p:last-child {
	margin-bottom: 0;
}
.avis-popup__fermer {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	background: none !important;
	border: 0;
	color: #111111 !important;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.avis-popup__fermer:hover,
.avis-popup__fermer:focus-visible {
	opacity: 0.6;
}
@media (max-width: 575px) {
	.avis-popup__boite {
		padding: 36px 22px 24px;
	}
}
