/**
 * Bloc de réassurance du hero d'accueil.
 *
 * La moyenne reprend l'ivypresto-display des titres, le reste la neue-haas-unica
 * légère du paragraphe. Séparateurs et filet en taupe de charte.
 */

.glow-hero-reassurance {
	--glow-taupe: #846f57;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 30px;
	font-family: neue-haas-unica, sans-serif;
	font-weight: 300;
}

.glow-hero-reassurance__points {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.glow-hero-reassurance__point {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: rgba(0, 0, 0, 0.62);
	white-space: nowrap;
}

.glow-hero-reassurance__avis {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid rgba(132, 111, 87, 0.28);
}

/* Le visuel des visages se termine par une pastille « +2k » que l'on masque,
   le nombre réel d'avis étant affiché juste à côté. */
.glow-hero-reassurance__visages {
	display: block;
	flex: 0 0 auto;
	width: 112px;
	overflow: hidden;
}

.glow-hero-reassurance__visages img {
	display: block;
	width: 132px;
	max-width: none;
	height: auto;
	margin: 0 !important;
}

.glow-hero-reassurance__note .gr-summary-rating {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.glow-hero-reassurance__note .gr-summary-rating-average {
	font-family: ivypresto-display, serif;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.01em;
	color: #000;
}

.glow-hero-reassurance__note .gr-summary-rating-separator {
	font-family: ivypresto-display, serif;
	font-size: 15px;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.4);
}

.glow-hero-reassurance__note .gr-summary-rating-text {
	display: flex;
	align-items: baseline;
	gap: 5px;
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-transform: none;
	color: rgba(0, 0, 0, 0.62);
}

.glow-hero-reassurance__note .gr-summary-rating-count,
.glow-hero-reassurance__note .gr-summary-rating-suffix {
	font-family: neue-haas-unica, sans-serif;
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-transform: none;
	color: inherit;
}

.glow-hero-reassurance__note .gr-summary-rating-count::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 12px 0 6px;
	border-radius: 50%;
	vertical-align: 3px;
	background: var(--glow-taupe);
	opacity: 0.75;
}

@media (min-width: 768px) {

	.glow-hero-reassurance__points {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0;
	}

	.glow-hero-reassurance__point + .glow-hero-reassurance__point::before {
		content: "";
		display: inline-block;
		width: 3px;
		height: 3px;
		margin: 0 12px;
		border-radius: 50%;
		vertical-align: 3px;
		background: var(--glow-taupe);
		opacity: 0.75;
	}
}

@media (max-width: 767px) {

	.glow-hero-reassurance {
		margin-top: 24px;
		gap: 16px;
	}

	.glow-hero-reassurance__note .gr-summary-rating-average {
		font-size: 26px;
	}
}

/* Variante pour un hero sombre (texte clair sur fond foncé). */
.glow-hero-reassurance--sombre {
	--glow-taupe: #d8c4aa;
}

.glow-hero-reassurance--sombre .glow-hero-reassurance__point {
	color: rgba(255, 255, 255, 0.78);
}

.glow-hero-reassurance--sombre .glow-hero-reassurance__avis {
	border-top-color: rgba(255, 255, 255, 0.28);
}

.glow-hero-reassurance--sombre .glow-hero-reassurance__note .gr-summary-rating-average {
	color: #fff;
}

.glow-hero-reassurance--sombre .glow-hero-reassurance__note .gr-summary-rating-separator {
	color: rgba(255, 255, 255, 0.5);
}

.glow-hero-reassurance--sombre .glow-hero-reassurance__note .gr-summary-rating-text {
	color: rgba(255, 255, 255, 0.78);
}

.glow-hero-reassurance__note a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.glow-hero-reassurance__note a:hover,
.glow-hero-reassurance__note a:focus-visible {
	border-bottom-color: currentColor;
}

/*
 * Bouton « Réductions » du hero, mobile uniquement : sur grand écran la
 * pastille du menu principal remplit déjà ce rôle. Taupe plein pour se
 * distinguer du bouton blanc principal sans lui disputer la première place.
 */
.wp-block-button.glow-hero-promo .wp-block-button__link {
	background-color: #846f57;
	color: #fff;
	border: 0;
}

.wp-block-button.glow-hero-promo .wp-block-button__link:hover,
.wp-block-button.glow-hero-promo .wp-block-button__link:focus {
	background-color: #6d5b47;
	color: #fff;
}

.wp-block-button.glow-hero-promo .wp-block-button__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* 17/09/2026 : le bouton est aussi affiché sur ordinateur (il était masqué au-delà de 992 px). */

/*
 * Les deux boutons du hero prennent la largeur du plus large : la grille est
 * dimensionnée sur son contenu (max-content) et ses éléments s'y étirent.
 * Mobile seulement : sur ordinateur les deux boutons gardent leur largeur naturelle.
 */
@media (max-width: 992px) {
	.wp-block-buttons:has(.glow-hero-promo) {
		display: grid;
		grid-auto-flow: row;
		width: max-content;
		max-width: 100%;
	}

	.wp-block-buttons:has(.glow-hero-promo) .wp-block-button,
	.wp-block-buttons:has(.glow-hero-promo) .wp-block-button__link {
		width: 100%;
	}
}
