/* Row Réassurance (module reassurance) : arguments (icône ou image, titre, description) rangés sur 1 à 6 colonnes. Site et éditeur. Couleurs du thème du projet (--theme-*) */

.rs {
	position: relative;
	width: 100%;
	container-type: inline-size;
}

.rs-title {
	margin: 0 0 2.8rem 0;
	font-family: var(--theme-font-title, inherit);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.rs[data-title-align="left"] .rs-title {
	text-align: left;
}

.rs[data-title-align="right"] .rs-title {
	text-align: right;
}

.rs-items {
	display: grid;
	grid-template-columns: repeat(var(--rs-n, 4), minmax(0, 1fr));
	gap: 1.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rs[data-cols="1"] { --rs-n: 1; }
.rs[data-cols="2"] { --rs-n: 2; }
.rs[data-cols="3"] { --rs-n: 3; }
.rs[data-cols="4"] { --rs-n: 4; }
.rs[data-cols="5"] { --rs-n: 5; }
.rs[data-cols="6"] { --rs-n: 6; }

/* Sur un petit écran (ou dans une colonne étroite) : moins de colonnes, d'après la largeur du bloc */
@container (max-width: 760px) {
	.rs[data-cols="4"] .rs-items,
	.rs[data-cols="5"] .rs-items,
	.rs[data-cols="6"] .rs-items {
		--rs-n: 3;
	}
}

@container (max-width: 560px) {
	.rs[data-cols="3"] .rs-items,
	.rs[data-cols="4"] .rs-items,
	.rs[data-cols="5"] .rs-items,
	.rs[data-cols="6"] .rs-items {
		--rs-n: 2;
	}
}

@container (max-width: 300px) {
	.rs .rs-items {
		--rs-n: 1;
	}
}

.rs-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	min-width: 0;
	text-align: center;
}

.rs-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--rs-icon, 2.5rem);
	color: var(--theme-primary, currentColor);
	margin-bottom: 1rem;
}

.rs-icon {
	font-size: var(--rs-icon, 2.5rem);
	line-height: 1;
}

.rs-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: calc(var(--rs-icon, 2.5rem) * 1.4);
	object-fit: contain;
}

.rs-t {
	margin: 0;
	font-family: var(--theme-font-title, inherit);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.rs-d {
	margin: 0;
	font-size: .95rem;
	line-height: 1.5;
	opacity: .75;
	overflow-wrap: anywhere;
}
