/* ============================================================
   Section Avis Google — éditorial · carousel · accent Google discret
   ============================================================ */

.greviews {
	padding: var(--s-128) 0;
	background-color: #cacfc1;
	border-block: 1px solid rgba(74, 92, 74, 0.18);
	overflow: hidden;
}

.greviews__inner {
	padding-inline: var(--gutter);
}

.greviews__head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: var(--s-48) var(--s-64);
	margin-bottom: var(--s-64);
}

.greviews__badge {
	display: flex;
	align-items: center;
	gap: var(--s-12);
	margin-top: var(--s-32);
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* ---------- Mascotte Avis Google ----------
   Le fond de l'image (#cacfc1) est identique au fond de la section :
   la mascotte se fond dans la section, sans cadre ni bordure visible. */
.greviews__mascot {
	margin: 0;
	flex: none;
	justify-self: end;
	width: clamp(220px, 27vw, 360px);
	transition: transform 420ms var(--ease-out);
}

.greviews__mascot img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.greviews__mascot .greviews__site-logo {
	aspect-ratio: auto;
	object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
	.greviews__mascot:hover {
		transform: translateY(-6px);
	}
}

.greviews__google-mark {
	flex: none;
	width: 64px;
	height: auto;
	opacity: 0.92;
}

.greviews__badge-score {
	font-family: var(--font-display);
	font-size: clamp(28px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--text-heading);
}

.greviews__badge-stars {
	display: flex;
	align-items: center;
	gap: var(--s-8);
	margin-top: var(--s-4);
	font-size: 20px;
	color: #f5b301;
	letter-spacing: 0.04em;
}

.greviews__badge-count {
	margin-top: var(--s-4);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	letter-spacing: 0.01em;
}

/* ---------- Carousel ---------- */
.g-carousel {
	position: relative;
}

.g-carousel__viewport {
	overflow: hidden;
	padding-block: var(--s-4) var(--s-8);
}

.g-carousel__track {
	display: flex;
	gap: var(--s-24);
	will-change: transform;
	transition: transform 640ms var(--ease-out);
}

.g-carousel.is-dragging .g-carousel__track {
	transition: none;
}

.g-card {
	flex: 0 0 calc((100% - 2 * var(--s-24)) / 3);
	min-width: 0;
	margin: 0;
	padding: var(--s-32);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
	transition:
		transform 320ms var(--ease-out),
		box-shadow 320ms var(--ease-out),
		border-color 320ms var(--ease-out);
}

.g-card.is-active {
	border-color: color-mix(in srgb, var(--green-soft) 40%, var(--hairline));
}

.g-card__head {
	display: flex;
	align-items: center;
	gap: var(--s-12);
	margin-bottom: var(--s-24);
	padding-bottom: var(--s-16);
	border-bottom: 1px solid var(--hairline);
}

.g-card__avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface-muted);
	color: var(--text-heading);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.g-card__meta {
	flex: 1;
	min-width: 0;
}

.g-card__name {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	color: var(--text-body);
	margin: 0;
	letter-spacing: 0.01em;
}

.g-card__rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--s-8);
	margin-top: 3px;
	font-family: var(--font-body);
	font-size: 12px;
}

.g-card__stars {
	color: #f5b301;
	font-size: 18px;
	letter-spacing: 0.04em;
}

.g-card__date {
	color: var(--text-muted);
}

.g-card__date::before {
	content: "·";
	margin-right: var(--s-8);
	opacity: 0.5;
}

.g-card__quote {
	margin: 0;
	flex: 1;
	font-family: var(--font-display);
	font-style: normal;
	font-weight: 500;
}

.g-card__quote p {
	font-family: inherit;
	font-style: italic;
	font-size: clamp(16px, 1.35vw, 18px);
	line-height: 1.55;
	letter-spacing: -0.01em;
	color: var(--text-body);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.g-card__quote p::before {
	content: "«\00a0";
	color: var(--text-heading);
	font-style: normal;
}

.g-card__quote p::after {
	content: "\00a0»";
	color: var(--text-heading);
	font-style: normal;
}

@media (hover: hover) and (pointer: fine) {
	.g-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--shadow);
	}
}

/* Navigation */
.g-carousel__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-24);
	margin-top: var(--s-48);
}

.g-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hairline);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text-heading);
	font-family: var(--font-body);
	font-size: 16px;
	cursor: pointer;
	transition:
		background-color 220ms var(--ease-out),
		border-color 220ms var(--ease-out),
		color 220ms var(--ease-out),
		transform 220ms var(--ease-out);
}

.g-carousel__btn:hover {
	background: var(--green-soft);
	border-color: var(--green-soft);
	color: var(--white);
	transform: translateY(-1px);
}

.g-carousel__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.g-carousel__dots {
	display: flex;
	gap: var(--s-8);
}

.g-carousel__dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition:
		transform 220ms var(--ease-out),
		background-color 220ms var(--ease-out);
}
.g-carousel__dot::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	margin: 9px;
	border-radius: 50%;
	background: var(--hairline);
}

.g-carousel__dot.is-active {
	transform: scale(1.35);
}
.g-carousel__dot.is-active::before {
	background: var(--text-heading);
}

.greviews__cta {
	margin-top: var(--s-48);
	text-align: center;
}

.greviews__cta .btn {
	min-height: 48px;
}

.greviews--page {
	padding-bottom: var(--s-128);
}

@media (max-width: 1080px) {
	.g-card {
		flex-basis: calc((100% - var(--s-24)) / 2);
	}
}

@media (max-width: 860px) {
	.greviews {
		padding-block: var(--s-64);
	}
	.greviews__head {
		grid-template-columns: 1fr;
		gap: var(--s-32);
		margin-bottom: var(--s-48);
	}
	.greviews__badge {
		justify-self: start;
	}
	.greviews__mascot {
		justify-self: center;
		width: clamp(160px, 46vw, 240px);
	}
	.g-card {
		flex-basis: 100%;
		padding: var(--s-24);
		border-radius: 8px;
	}
	.g-carousel__nav {
		margin-top: var(--s-32);
		gap: var(--s-16);
	}
}

@media (prefers-reduced-motion: reduce) {
	.g-carousel__track {
		transition: none;
	}
}
