/* Composant bandeau d'atouts (components/bandeau_atouts.php), sous le hero de l'accueil. */

.bandeau_atouts {
	/* pleine largeur malgre les marges du body */
	margin: 0 calc(-1 * var(--espace-m));
	background: var(--chr-blanc);
	border-bottom: 1px solid var(--chr-nappe);
}

.bandeau_atouts_liste {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 28px var(--gutter);
	box-sizing: border-box;
	list-style: none;
}

.bandeau_atouts_item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-4);
	text-align: center;
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.4;
	color: var(--chr-encre);
}

.bandeau_atouts_item + .bandeau_atouts_item {
	border-left: 1px solid var(--chr-nappe);
}

/* general.css force taille et couleur sur tous les elements (*) : le texte herite de l'item */
.bandeau_atouts_item span {
	font-size: inherit;
	color: inherit;
}

/* general.css force une couleur sur tous les elements (*) : les formes du SVG heritent de l'icone */
.bandeau_atouts_item svg {
	color: var(--chr-primary);
}

.bandeau_atouts_item svg * {
	color: inherit;
}

@media (max-width: 860px) {
	.bandeau_atouts_liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: var(--space-4);
	}

	.bandeau_atouts_item:nth-child(odd) {
		border-left: 0;
	}

	.bandeau_atouts_item:nth-child(even) {
		border-left: 1px solid var(--chr-nappe);
	}
}

@media (max-width: 560px) {
	.bandeau_atouts_item {
		font-size: var(--fs-body-s);
		padding: var(--space-2);
	}
}
