.flexible-project-chiffres {
	background: #0d0d0d;
	padding: 40px;
}

.flexible-project-chiffres__inner {
	max-width: 1360px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 60px;
}

.flexible-project-chiffres--centered .flexible-project-chiffres__inner {
	justify-content: center;
	gap: 60px;
}

.flexible-project-chiffres__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 15px;
	width: 220px;
}

.flexible-project-chiffres__item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 4px;
	bottom: 4px;
	right: -20px;
	width: 1px;
	background: rgba(255, 255, 255, 0.15);
}

.flexible-project-chiffres--centered .flexible-project-chiffres__item:not(:last-child)::after {
	right: -30px;
}

.flexible-project-chiffres__icon {
	width: 28px;
	height: 30px;
	object-fit: contain;
	margin-bottom: 6px;
}

.flexible-project-chiffres__title {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	color: var(--color-white);
	margin: 0;
	text-transform: uppercase;
}

.flexible-project-chiffres__subtitle {
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

@media (min-height: 1px) and (max-height: 800px) {
	.flexible-project-chiffres {
		padding: 24px 40px;
	}

	.flexible-project-chiffres__item {
		gap: 10px;
	}

	.flexible-project-chiffres__icon {
		width: 24px;
		height: 26px;
	}

	.flexible-project-chiffres__title {
		font-size: 17px;
	}

	.flexible-project-chiffres__subtitle {
		font-size: 14px;
	}
}

/* Cards en défilement horizontal sur une seule ligne pour mobile + tablette
   (aligné sur le seuil tablette du Hero, 1200px), plutôt qu'un empilement
   sur plusieurs lignes : chaque card garde une largeur fixe (flex: 0 0 auto)
   et le conteneur scrolle si tout ne tient pas. */
@media (max-width: 1200px) {
	.flexible-project-chiffres {
		padding: 36px 0;
	}

	.flexible-project-chiffres__inner,
	.flexible-project-chiffres--centered .flexible-project-chiffres__inner {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		gap: 16px;
		max-width: 100%;
		padding: 0 20px 6px;
		margin: 0;
		scrollbar-width: none;
		-ms-overflow-style: none;
		mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
	}

	.flexible-project-chiffres__inner::-webkit-scrollbar,
	.flexible-project-chiffres--centered .flexible-project-chiffres__inner::-webkit-scrollbar {
		display: none;
	}

	.flexible-project-chiffres__item {
		flex: 0 0 auto;
		width: 160px;
		height: 148px;
		padding: 18px 16px;
		gap: 6px;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 14px;
		justify-content: center;
		scroll-snap-align: start;
	}

	.flexible-project-chiffres__item:not(:last-child)::after {
		display: none;
	}

	.flexible-project-chiffres__icon {
		width: 24px;
		height: 26px;
		flex: 0 0 auto;
	}

	.flexible-project-chiffres__title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 17px;
		line-height: 1.2;
	}

	.flexible-project-chiffres__subtitle {
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.flexible-project-chiffres {
		padding: 28px 16px;
	}

	.flexible-project-chiffres__inner,
	.flexible-project-chiffres--centered .flexible-project-chiffres__inner {
		gap: 10px;
		padding: 0 16px 6px;
	}

	.flexible-project-chiffres__item {
		width: 140px;
		padding: 14px 12px;
	}

	.flexible-project-chiffres__title {
		font-size: 16px;
	}

	.flexible-project-chiffres__subtitle {
		font-size: 12px;
	}
}
