/* JS – Chiffres Clés — v1.0.0
 * Architecture anti-débordement de la suite : racine overflow-x clip,
 * min-width:0, overflow-wrap, pas de vw / marges négatives / largeurs fixes,
 * défauts responsive des colonnes portés par le plugin (4/2/2), AA sur les
 * quatre designs.
 */

.js-n {
	--js-pad-x: 0px;
	--js-n-cols: 4;
	--js-n-accent: #c6ea9e;
	--js-n-num: #ffffff;
	--js-n-label: #c3cbbd;
	--js-n-sep: rgba(255, 255, 255, .12);

	position: relative;
	max-width: 100%;
	overflow-x: clip;
	padding: 44px var(--js-pad-x);
	font-family: 'Noto Sans', sans-serif;
	border-radius: 24px;
}
.js-n :where(ul, li, p, span) { margin: 0; padding: 0; letter-spacing: normal; }
.js-n :where(*) { min-width: 0; }
.js-n :where(span, li) { overflow-wrap: anywhere; }

/* Designs. */
.js-n--nuit { background: linear-gradient(160deg, #000101, #0d1a0b); }
.js-n--vert {
	/* Dégradé assombri : AA garanti même au point le plus clair (#3e6d2c). */
	background: linear-gradient(135deg, #1d5416, #3e6d2c 55%, #3e6d2c);
	--js-n-accent: #fff0b3; /* or très pâle : AA sur le point le plus clair du dégradé */
	--js-n-label: #e8f5e3;
	--js-n-sep: rgba(255, 255, 255, .22);
}
.js-n--sauge {
	background: transparent;
	padding-top: 0;
	padding-bottom: 0;
	--js-n-accent: #3e6d2c;
	--js-n-num: #000101;
	--js-n-label: #5b6a56;
	--js-n-sep: transparent;
}
.js-n--ligne {
	background: transparent;
	border-radius: 0;
	padding-top: 20px;
	padding-bottom: 20px;
	--js-n-accent: #3e6d2c;
	--js-n-num: #000101;
	--js-n-label: #5b6a56;
	--js-n-sep: rgba(0,1,1, .12);
}

.js-n__list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(var(--js-n-cols), minmax(0, 1fr));
	gap: 26px 0;
}
.js-n__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px 18px;
	min-width: 0;
}
.js-n--sep .js-n__item + .js-n__item { border-left: 1px solid var(--js-n-sep); }
/* En 2 colonnes, pas de séparateur sur le 1er de chaque rangée (impairs). */
.js-n--sauge .js-n__item {
	background: #f1f5ec;
	border-radius: 18px;
	padding: 26px 18px 22px;
	margin: 0 9px;
	box-shadow: 0 3px 14px rgba(0,1,1, .05);
}

.js-n__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .1);
	color: var(--js-n-accent);
	font-size: 20px;
	margin-bottom: 12px !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.js-n--sauge .js-n__icon, .js-n--ligne .js-n__icon {
	background: #eaf2df;
	box-shadow: inset 0 0 0 1px rgba(62,109,44, .12);
}
.js-n__icon i, .js-n__icon i::before, .js-n__icon svg { line-height: 1 !important; vertical-align: middle; }
.js-n__icon svg { width: 1em; height: 1em; fill: currentColor; }
.js-n--no-icons .js-n__icon { display: none; }

.js-n__value {
	display: inline-flex;
	align-items: baseline;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 1.05;
	color: var(--js-n-num);
}
.js-n__prefix, .js-n__suffix { font-size: 27px; color: var(--js-n-accent); font-weight: 700; }
.js-n__prefix { margin-right: 3px !important; }
.js-n__suffix { margin-left: 3px !important; }
.js-n__label {
	margin-top: 7px !important;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--js-n-label);
}

/* Défauts responsive PORTÉS PAR LE PLUGIN (4/2/2). */
@media (max-width: 1024px) {
	.js-n { --js-n-cols: 2; }
	/* Séparateurs : seulement entre colonnes d'une même rangée. */
	.js-n--sep .js-n__item:nth-child(odd) { border-left: 0; }
	.js-n--sauge .js-n__item { margin: 0 7px; }
}
@media (max-width: 767px) {
	.js-n { --js-n-cols: 2; padding-top: 34px; padding-bottom: 34px; }
	.js-n__value { font-size: 34px; }
	.js-n__prefix, .js-n__suffix { font-size: 21px; }
	.js-n__item { padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.js-n *, .js-n *::before, .js-n *::after { transition: none !important; animation: none !important; }
}
