/* WB – 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.
 */

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

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

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

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

.wb-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(--wb-n-accent);
	font-size: 20px;
	margin-bottom: 12px !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.wb-n--sauge .wb-n__icon, .wb-n--ligne .wb-n__icon {
	background: #e4f3e2;
	box-shadow: inset 0 0 0 1px rgba(37, 107, 28, .12);
}
.wb-n__icon i, .wb-n__icon i::before, .wb-n__icon svg { line-height: 1 !important; vertical-align: middle; }
.wb-n__icon svg { width: 1em; height: 1em; fill: currentColor; }
.wb-n--no-icons .wb-n__icon { display: none; }

.wb-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(--wb-n-num);
}
.wb-n__prefix, .wb-n__suffix { font-size: 27px; color: var(--wb-n-accent); font-weight: 700; }
.wb-n__prefix { margin-right: 3px !important; }
.wb-n__suffix { margin-left: 3px !important; }
.wb-n__label {
	margin-top: 7px !important;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--wb-n-label);
}

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

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