/* MC Bandeau Marques — défilement continu type zooplus */

.mc-brands {
	width: 100%;
	max-width: 1790px;
	margin: 0 auto;
	padding: 70px 24px;
	background: #fff;
	box-sizing: border-box;
}

.mc-brands-title {
	margin: 0 0 24px;
	padding: 0 16px;
	text-align: center;
	font-family: Nunito, sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
	color: #222;
}

.mc-brands-title-block {
	margin: 0;
	padding: 0;
	text-align: center;
}

.mc-brands-title .text-color,
.mc-brands-title span.text-color {
	color: #fa8400 !important;
}

.mc-brands-title font {
	color: #237803;
}

.mc-brands-viewport {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.mc-brands-mask {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.mc-brands-track {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: max-content;
	gap: 64px;
	animation: mc-brands-scroll var(--mc-brands-duration, 35s) linear infinite;
	will-change: transform;
}

.mc-brands--pause-hover:hover .mc-brands-track,
.mc-brands.is-paused .mc-brands-track {
	animation-play-state: paused;
}

@keyframes mc-brands-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.mc-brands-logo {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 180px;
	height: 88px;
	padding: 8px 12px;
	box-sizing: border-box;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mc-brands-logo:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.mc-brands-logo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 160px;
	max-height: 64px;
	object-fit: contain;
	object-position: center;
}

.mc-brands-placeholder {
	display: block;
	width: 160px;
	height: 72px;
	border-radius: 12px;
	background: linear-gradient(135deg, #e4e4e4 0%, #cfcfcf 100%);
}

.mc-brands-placeholder-label {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 140px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: #555;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.mc-brands-nav {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #ececec;
	color: #444;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
	z-index: 2;
}

.mc-brands-nav svg {
	width: 16px;
	height: 16px;
}

.mc-brands-nav:hover {
	background: #227403;
	color: #fff;
}

.mc-brands-nav:active {
	transform: scale(0.96);
}

.mc-brands-nav:focus-visible {
	outline: 2px solid #fa8400;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.mc-brands {
		padding: 50px 16px;
	}

	.mc-brands-title {
		font-size: 26px;
	}

	.mc-brands-track {
		gap: 48px;
	}

	.mc-brands-logo {
		width: 150px;
		height: 76px;
	}

	.mc-brands-logo img {
		max-width: 140px;
		max-height: 56px;
		width: 100%;
		height: 100%;
	}

	.mc-brands-placeholder {
		width: 140px;
		height: 56px;
	}
}

@media (max-width: 767px) {
	.mc-brands {
		padding: 40px 8px;
	}

	.mc-brands-title {
		font-size: 22px;
		margin-bottom: 18px;
	}

	.mc-brands-viewport {
		gap: 6px;
	}

	.mc-brands-nav {
		width: 34px;
		height: 34px;
	}

	.mc-brands-mask {
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
	}

	.mc-brands-track {
		gap: 32px;
	}

	.mc-brands-logo {
		width: 120px;
		height: 64px;
		padding: 6px 8px;
	}

	.mc-brands-logo img {
		max-width: 110px;
		max-height: 48px;
		width: 100%;
		height: 100%;
	}

	.mc-brands-placeholder {
		width: 110px;
		height: 48px;
		border-radius: 10px;
	}

	.mc-brands-placeholder-label {
		font-size: 11px;
		max-width: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-brands-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		transform: none;
	}

	.mc-brands-track .mc-brands-logo:nth-child(n + 8) {
		display: none;
	}
}
