/* Espace Gold Change : note et avis Google (widgets egc-note, egc-avis). */

.egc-note {
	display: flex; /* pas inline-flex : la ligne de texte invisible ajoute de la hauteur sous les étoiles */
	align-items: center;
	gap: 6px;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.egc-etoiles {
	--egc-etoile: 19px;
	--egc-etoile-ecart: -2px;
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	line-height: 0;
}

.egc-etoiles__fond,
.egc-etoiles__plein {
	display: inline-flex;
	gap: var(--egc-etoile-ecart);
	white-space: nowrap;
}

.egc-etoiles__fond {
	fill: #E6DCCB;
}

.egc-etoiles__plein {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	fill: var(--e-global-color-primary, #C59956);
}

.egc-etoiles svg {
	flex: 0 0 auto;
	width: var(--egc-etoile);
	height: var(--egc-etoile);
}

.egc-note__texte {
	display: block;
	white-space: nowrap;
}

/* ---------- Carrousel d'avis (widget egc-avis) ---------- */

.egc-avis {
	--egc-avis-vue: 3;
	--egc-avis-ecart: 31px;
	--egc-avis-or: var(--e-global-color-primary, #C59956);
	position: relative;
	display: grid;
	grid-template-columns: 53px minmax(0, 1fr) 53px;
	align-items: center;
	column-gap: 12px;
}

.egc-avis .egc-avis__piste {
	grid-column: 2;
	display: flex;
	gap: var(--egc-avis-ecart);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.egc-avis .egc-avis__piste::-webkit-scrollbar {
	display: none;
}

.egc-avis .egc-avis__carte {
	display: flex;
	flex-direction: column;
	gap: 18px;
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--egc-avis-vue) - 1) * var(--egc-avis-ecart)) / var(--egc-avis-vue));
	min-height: 0;
	margin: 0;
	padding: 32px 32px 30px;
	border: 3px solid var(--egc-avis-or);
	border-radius: 36px;
	background: #FFFFFF;
	scroll-snap-align: start;
}

.egc-avis .egc-avis__haut {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.egc-avis .egc-avis__haut .egc-etoiles {
	--egc-etoile: 24px;
	--egc-etoile-ecart: 0px;
}

.egc-avis .egc-avis__g {
	width: 28px;
	height: 28px;
}

.egc-avis .egc-avis__texte {
	flex-grow: 1;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: Roboto, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #000000;
}

.egc-avis .egc-avis__texte p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	overflow: hidden;
}

/* Avis déplié : texte entier. Les autres cartes gardent la hauteur d'avant (posée par le JS). */
.egc-avis .egc-avis__carte.est-deplie .egc-avis__texte p {
	display: block;
	-webkit-line-clamp: none;
	line-clamp: none;
	overflow: visible;
}

.egc-avis .egc-avis__piste.a-deplie {
	align-items: flex-start;
}

.egc-avis .egc-avis__piste.a-deplie .egc-avis__carte {
	min-height: var(--egc-avis-h, 0px);
}

/* Bouton « Lire la suite » : lien texte doré (le kit stylise tous les <button>, on neutralise). */
.egc-avis .egc-avis__suite {
	align-self: flex-start;
	margin: -10px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #85622E !important;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.egc-avis .egc-avis__suite[hidden] {
	display: none !important;
}

.egc-avis .egc-avis__suite:hover,
.egc-avis .egc-avis__suite:focus-visible {
	color: #231F20 !important;
}

.egc-avis .egc-avis__suite-moins,
.egc-avis .egc-avis__suite[aria-expanded="true"] .egc-avis__suite-plus {
	display: none;
}

.egc-avis .egc-avis__suite[aria-expanded="true"] .egc-avis__suite-moins {
	display: inline;
}

.egc-avis .egc-avis__texte p::before {
	content: "« ";
}

.egc-avis .egc-avis__texte p::after {
	content: " »";
}

.egc-avis .egc-avis__auteur {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid #E6DCCB;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #231F20;
}

.egc-avis .egc-avis__auteur strong {
	font-size: 16px;
	line-height: 22px;
}

.egc-avis .egc-avis__fleche {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 53px !important;
	height: 53px !important;
	min-width: 0 !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--egc-avis-or) !important;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.egc-avis .egc-avis__fleche svg {
	width: 53px;
	height: 53px;
}

.egc-avis .egc-avis__fleche--prec {
	grid-column: 1;
	grid-row: 1;
}

.egc-avis .egc-avis__fleche--prec svg {
	transform: scaleX(-1);
}

.egc-avis .egc-avis__fleche--suiv {
	grid-column: 3;
	grid-row: 1;
}

.egc-avis .egc-avis__fleche:hover,
.egc-avis .egc-avis__fleche:focus-visible {
	color: #85622E !important;
	outline: 0 !important;
}

.egc-avis .egc-avis__fleche:disabled {
	opacity: 0.35;
	cursor: default;
}

.egc-avis .egc-avis__points {
	grid-column: 1 / -1;
	display: none;
	justify-content: center;
	gap: 0; /* zones de 24 px : ronds espacés de 14 px */
	margin-top: 13px;
}

/* Zone tactile de 24 px (accessibilité), rond visible de 10 px dessiné par ::before. */
.egc-avis .egc-avis__points button {
	position: relative;
	width: 24px !important;
	height: 24px !important;
	min-width: 0 !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
}

.egc-avis .egc-avis__points button::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 7px;
	width: 10px;
	height: 10px;
	border: 1px solid var(--egc-avis-or);
	border-radius: 50%;
	box-sizing: border-box;
	background: transparent;
}

.egc-avis .egc-avis__points button[aria-current="true"]::before {
	background: var(--egc-avis-or);
}

.egc-avis a.egc-avis__google {
	grid-column: 1 / -1;
	justify-self: center;
	margin-top: 24px;
	color: #85622E;
	font-family: Roboto, sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tablette : flèches plus petites. Mobile : pas de flèches, points sous les avis, carte qui laisse voir la suivante. */
@media (max-width: 1024px) {
	.egc-avis {
		grid-template-columns: 36px minmax(0, 1fr) 36px;
		column-gap: 8px;
	}
	.egc-avis .egc-avis__fleche,
	.egc-avis .egc-avis__fleche svg {
		width: 36px !important;
		height: 36px !important;
	}
	.egc-avis .egc-avis__carte {
		min-height: 0;
		padding: 26px 24px 24px;
		border-radius: 30px;
	}
}

@media (max-width: 767px) {
	.egc-avis {
		grid-template-columns: minmax(0, 1fr);
	}
	.egc-avis .egc-avis__fleche {
		display: none !important;
	}
	.egc-avis .egc-avis__piste {
		grid-column: 1;
		margin-right: -15px;
		padding-right: 15px;
	}
	.egc-avis .egc-avis__carte {
		flex-basis: 86%;
		padding: 22px 20px 20px;
		border-radius: 26px;
	}
	.egc-avis .egc-avis__points {
		display: flex;
	}
}

/* Bande défilante : cadre de référence des éléments positionnés (pas de débordement de page sur mobile, 02/12/2026). */
.egc-avis .egc-avis__piste {
	position: relative;
}
