/* ============================================================
   Avis Google – Reviews Widget : styles front
   Visuel assuré par Bulma 1.0.3 ; ce fichier ne couvre que les
   styles spécifiques au plugin (carrousel, étoiles, avatars…).
   ============================================================ */

.grw-widget {
	--grw-accent: #1a73e8;
	--grw-cols: 3;
	max-width: 100%;
	font-family: inherit;
}

.grw-widget *,
.grw-widget *::before,
.grw-widget *::after {
	box-sizing: border-box;
}

/* ---------- Étoiles ---------- */
.grw-stars-inner { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.grw-star { display: block; }
.grw-rating-num { color: #e7711b; font-weight: 800; font-size: 1.1em; }

/* ---------- En-tête ---------- */
.grw-gmark svg { display: block; }
.grw-gmark--sm { opacity: .9; }
.grw-summary { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.grw-header-left { display: flex; align-items: center; }

/* ---------- Avatars ---------- */
.grw-avatar {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: #f1f3f4;
	flex-shrink: 0;
}
.grw-avatar--init {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	background: var(--grw-accent);
	font-size: 1em;
}

/* ---------- Auteur ---------- */
.grw-author { font-weight: 600; color: inherit !important; text-decoration: none !important; }
.grw-author:hover { text-decoration: underline !important; }

/* ---------- Lire la suite ---------- */
.grw-more {
	display: inline;
	margin-left: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--grw-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.grw-more:hover { text-decoration: underline; }

/* ---------- Conteneur piste : grille (défaut) ---------- */
.grw-layout-grid .grw-track {
	display: grid;
	grid-template-columns: repeat(var(--grw-cols, 3), minmax(0, 1fr));
	gap: 1rem;
}
.grw-layout-list .grw-track { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---------- Carrousel – piste ---------- */
.grw-layout-carousel .grw-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #d0d0d0 transparent;
	padding-bottom: .375rem;
	-webkit-overflow-scrolling: touch;
}
.grw-layout-carousel .grw-track::-webkit-scrollbar { height: 4px; }
.grw-layout-carousel .grw-track::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 2px; }

/* ---------- Carrousel – cartes ---------- */
.grw-layout-carousel .grw-card-item {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - 2rem) / 3);
	min-width: 260px;
}

/* ---------- Navigation du carrousel ---------- */
.grw-nav {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: .75rem;
}
.grw-nav .button {
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.4rem;
	padding: 0;
	line-height: 1;
}

/* ---------- Pied ---------- */
.grw-seeall { text-decoration: none; }
.grw-seeall:hover { text-decoration: underline; }

/* ---------- États ---------- */
.grw-empty { font-style: italic; padding: .5rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.grw-layout-grid .grw-track {
		grid-template-columns: repeat(min(var(--grw-cols, 3), 2), minmax(0, 1fr));
	}
	.grw-layout-carousel .grw-card-item {
		flex-basis: calc((100% - 1rem) / 2);
	}
}
@media (max-width: 600px) {
	.grw-layout-grid .grw-track { grid-template-columns: 1fr; }
	.grw-layout-carousel .grw-card-item { flex-basis: 86%; min-width: 0; }
}

/* ---------- Mode sombre ---------- */
@media (prefers-color-scheme: dark) {
	.grw-widget {
		--bulma-card-background-color: #1d1f23;
		--bulma-box-background-color: #1d1f23;
	}
	.grw-avatar { background: #2d2f33; }
}
