/* Stores Isol Vérandas — Bloc « avis » — chargé seulement sur les pages qui l'utilisent. Dépend de global.css. */

.siv-reviews .siv-heading--center {
	margin-bottom: 40px;
}

/* Le widget vient de l'extension « Widgets pour Google Reviews » : son style est le sien. */
.siv-reviews__widget {
	min-width: 0;
}

/* Avis saisis à la main (sans shortcode) : carrousel aimanté, 3 avis visibles, 2 en tablette, 1 en mobile.
   position: relative retient les textes masqués (screen-reader-text) dans le carrousel. */
.siv-reviews__grid {
	position: relative;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 4px 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.siv-reviews__grid::-webkit-scrollbar {
	display: none;
}

.siv-review {
	display: flex;
	flex: 0 0 calc((100% - 48px) / 3);
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	scroll-snap-align: start;
}

.siv-review__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.siv-review__score {
	color: var(--siv-orange);
	font-size: 13px;
	font-weight: 700;
}

.siv-review__quote {
	color: var(--siv-noir);
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
}

.siv-review__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
}

.siv-review__avatar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	background: var(--siv-orange-10);
	color: var(--siv-orange);
	font-size: 12px;
	font-weight: 700;
}

.siv-review__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: normal;
}

.siv-review__name {
	color: var(--siv-noir);
	font-size: 14px;
	font-weight: 700;
}

.siv-review__meta {
	color: var(--siv-texte);
	font-size: 13px;
}

.siv-reviews__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.siv-reviews__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--siv-bord);
	cursor: pointer;
	transition: width 0.2s, background-color 0.2s;
}

.siv-reviews__dot.is-active {
	width: 24px;
	background: var(--siv-orange);
}

.siv-reviews__dot:focus-visible {
	outline: 2px solid var(--siv-orange);
	outline-offset: 2px;
}

@media (max-width: 1023px) {
	.siv-review {
		flex-basis: calc((100% - 24px) / 2);
	}
}

@media (max-width: 767px) {
	.siv-reviews__grid {
		gap: 16px;
		margin-right: calc(-1 * var(--siv-gouttiere));
		margin-left: calc(-1 * var(--siv-gouttiere));
		padding: 4px var(--siv-gouttiere);
		scroll-padding-inline: var(--siv-gouttiere);
	}

	.siv-review {
		flex-basis: 85%;
		padding: 20px;
	}
}
