/* Polices Poppins (titres) / Open Sans (corps) : auto-hébergées via « Aegis+ › Réglages généraux »
   (upload de typo, aucun appel à Google Fonts). Sans téléversement : repli sur les polices système. */
/* Aegis-Avis — mur d'avis Google. Classes aav-* (jamais celles du thème). Titres Poppins, corps Open Sans, palette maquette. */

.aav-reviews {
	--aav-accent: #51B148;
	--aav-ink: #171B1F;
	max-width: 1200px;
	margin: 0 auto;
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* En-tête */
.aav-reviews__head { text-align: center; margin-bottom: 34px; }
.aav-reviews__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	color: #5E6468;
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.aav-reviews__title {
	margin: 0 0 16px;
	color: var(--aav-ink);
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 800;
	line-height: 1.1;
}
.aav-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
.aav-rating__score { font-weight: 800; font-size: 1.3rem; color: var(--aav-ink); }
.aav-rating__count { color: #5E6468; font-size: 1rem; }

/* Étoiles */
.aav-stars { display: inline-flex; align-items: center; gap: 2px; font-size: 18px; line-height: 0; }
.aav-star { width: 1em; height: 1em; }
.aav-star--on { color: var(--aav-accent); }
.aav-star--off { color: #E2E5E8; }
.aav-rating .aav-stars { font-size: 22px; }

/* Grille */
.aav-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* Carte */
.aav-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	padding: 26px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
	transition: transform .22s ease, box-shadow .22s ease;
	/* Empêche l'item de grille d'imposer sa largeur intrinsèque (min-width:auto par défaut)
	   et donc d'élargir la piste → débordement horizontal sur petits écrans. */
	min-width: 0;
	max-width: 100%;
}
.aav-card__stars { margin-bottom: 14px; }
.aav-card__text {
	margin: 0;
	color: #2B3033;
	font-size: 1rem;
	line-height: 1.55;
	flex: 1 1 auto;
	overflow-wrap: anywhere;
	word-break: break-word;
}
/* Limite de lignes optionnelle (--aav-clamp) */
.aav-card__text[style*="--aav-clamp"] {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--aav-clamp);
	line-clamp: var(--aav-clamp);
	overflow: hidden;
}
.aav-card__sep {
	display: block;
	height: 1px;
	background: #EFF2F5;
	margin: 20px 0 16px;
}
.aav-card__author { display: flex; align-items: center; gap: 12px; }
.aav-card__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--aav-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	object-fit: cover;
}
.aav-card__avatar--img { background: none; }
.aav-card__meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.aav-card__name { font-weight: 700; color: var(--aav-ink); overflow-wrap: anywhere; }

/* Sécurité images : jamais plus large que leur conteneur (hors avatar à taille fixe). */
.aav-reviews img:not(.aav-card__avatar) { max-width: 100%; height: auto; }
.aav-card__time { color: #5E6468; font-size: .88rem; }

/* Bouton */
.aav-reviews__cta-wrap { text-align: center; margin-top: 36px; }
.aav-reviews__cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 30px;
	background: #fff;
	color: var(--aav-ink);
	border: 1px solid #E2E5E8;
	font-weight: 600;
	font-size: 1rem;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.aav-reviews__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, .1); }

/* Style minimal */
.aav-bare .aav-card { background: none; box-shadow: none; border: 0; padding: 0; }
.aav-bare .aav-reviews__cta { background: none; box-shadow: none; }

/* Responsive de secours.
   Elementor génère « .elementor-element-XXXX .aav-grid { grid-template-columns: repeat(N,1fr) } »
   SANS media query (contrôle « Colonnes »). Pour les instances configurées avant l'ajout des
   valeurs responsives, le mobile hérite du nombre de colonnes desktop → cartes qui débordent.
   Cette règle-ci n'a pas de spécificité par ID ; on force donc « !important » sur le breakpoint
   téléphone pour battre la règle Elementor quelle que soit sa spécificité (elle n'est pas !important). */
@media (max-width: 1024px) { .aav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  {
	.aav-grid { grid-template-columns: 1fr !important; }
	/* Gouttière latérale : les cartes ne collent plus les bords de l'écran. */
	.aav-reviews { padding-left: 16px; padding-right: 16px; }
}

.aav-reviews__title, .aav-card__name, .aav-rating__score { font-family: 'Poppins', system-ui, -apple-system, sans-serif; }
