/* Section « L'expérience propriétaire » en grille */
.avantages__grid {
	display: grid;
	gap: 14px;
	max-width: 1140px;
	margin: clamp(32px, 4vw, 48px) auto 0;
	padding: 0;
	list-style: none;
}

.avantages__item {
	padding: 7px;
	border-radius: 14px;
	background: #efede7;
}

.avantages__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 28px 22px 32px;
	border-radius: 10px;
	background: var(--c-white);
	text-align: center;
}

.avantages__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-gold);
	color: var(--c-white);
}

.avantages__icon .icon {
	width: 20px;
	height: 20px;
}

.avantages__title {
	width: 100%;
	margin-top: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--c-line);
	font-size: 1.125rem;
	font-weight: 500;
}

.avantages__text {
	margin-top: 16px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--c-text);
}

@media (min-width: 640px) {
	.avantages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.avantages__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Quatre cartes (ex : nos valeurs) : une seule ligne sur grand écran */
@media (min-width: 1024px) {
	.avantages__grid:has(> li:nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Huit cartes (ex : profils d'ambassadeurs) : 4 colonnes sur grand écran */
@media (min-width: 1024px) {
	.avantages__grid:has(> li:nth-child(8):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
