/* Conformité Section Refonte */
.refonte-conformite-section {
	width: 100%;
	/* max-width: 1600px; Remove max-width to let background span full width if needed, or keep it and center. Usually sections are full width. */
	margin: 0 auto;
	padding: 80px 0;
	/* Vertical padding */
	background: #EFF2F1;
	/* Light grey/green tint */
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
	/* Hide overflow from children if necessary */
}

.conformite-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin-bottom: 64px;
	text-align: center;
	max-width: 800px;
	padding: 0 24px;
}

.conformite-tag-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-bottom: 0;
}

.conformite-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.conformite-tag {
	display: inline-block;
	color: #657831;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.conformite-title {
	font-family: var(--font-primary);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.1;
	color: #003329;
	margin: 0;
	letter-spacing: -0.02em;
}

.conformite-description {
	font-family: var(--font-primary);
	font-size: 18px;
	line-height: 1.6;
	color: #181D27;
	margin: 0;
	opacity: 0.8;
	max-width: 680px;
	text-align: center;
}

/* Logos Carousel Container */
.logos-conformite-grid {
	display: flex;
	width: 100%;
	overflow: hidden;
	padding: 24px 0 40px 0;
	/* Increased top padding as requested */
	margin-bottom: 0;
	position: relative;
}

/* Masking gradients for smooth fade in/out on sides */
.logos-conformite-grid::before,
.logos-conformite-grid::after {
	content: "";
	position: absolute;
	top: 0;
	width: 100px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.logos-conformite-grid::before {
	left: 0;
	background: linear-gradient(to right, #EFF2F1, transparent);
}

.logos-conformite-grid::after {
	right: 0;
	background: linear-gradient(to left, #EFF2F1, transparent);
}

.conformite-logos-track {
	display: flex;
	gap: 24px;
	width: max-content;
	animation: scroll 40s linear infinite;
	padding-right: 24px;
	/* Essential for seamless loop: balances the gap so 50% width is exactly one set length */
	will-change: transform;
}

/* Removed hover pause to ensure movement is always visible */
/* .conformite-logos-track:hover { animation-play-state: paused; } */

@keyframes scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		/* With padding-right added, the total width is exactly 2 * (SetWidth + Gap).
		   We translate by 50% to move exactly 1 set. */
		transform: translateX(-50%);
	}
}

.logo-conformite-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	background: #FFFFFF;
	border-radius: 12px;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.02);
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* User requested fixed dimensions */
	width: 270px;
	min-width: 270px;
	height: 81px;
	min-height: 81px;

	box-sizing: border-box;
	flex: 0 0 auto;
}

/* User asked for NO effect on hover: "Il ne devrait rien se passer" */
/* Removing hover transform and shadow change */
/*
.logo-conformite-item:hover {
	transform: translateY(-4px);
	box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.08);
}
*/

.logo-conformite-item img {
	max-width: 100%;
	height: auto;
	max-height: 50px;
	object-fit: contain;
	width: auto;
	/* Force remove any grayscale */
	filter: none !important;
	opacity: 1;
	transition: none;
	/* No transition needed if no change */
}

/* User asked for NO color change on hover (implying always color) and NO interaction */
/*
.logo-conformite-item:hover img {
	transform: scale(1.05);
}
*/

.conformite-cta {
	display: flex;
	justify-content: center;
	margin-top: 24px;
	/* Added margin if we keep the CTA */
}

.btn-conformite {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background-color: #003329;
	padding: 12px 32px;
	border-radius: 100px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-conformite:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 51, 41, 0.3);
}

.btn-conformite span {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 400;
	color: #E6FFA3;
	line-height: 1;
}

@media (max-width: 1024px) {
	.refonte-conformite-section {
		padding: 64px 0;
	}

	.conformite-title {
		font-size: 32px;
	}

	.logo-conformite-item {
		min-width: 200px;
		height: 120px;
		padding: 0 24px;
	}
}

@media (max-width: 480px) {
	.refonte-conformite-section {
		padding: 48px 0;
	}

	.conformite-title {
		font-size: 28px;
	}

	.conformite-description {
		font-size: 15px;
		padding: 0 12px;
	}

	.logo-conformite-item {
		min-width: 150px;
		height: 90px;
		padding: 0 12px;
	}

	.btn-conformite {
		width: calc(100% - 24px);
		/* Full width minus margin */
		justify-content: center;
		padding: 12px 16px;
		margin: 0 12px;
		box-sizing: border-box;
	}
}