/* bandeau défilant des marques (page d'accueil) — resources/views/front/marque/bandeau.blade.php */

.mq-bandeau .mq-viewport {
	overflow: hidden;
	position: relative;
	/* fondu sur les bords */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	        mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.mq-bandeau .mq-track {
	display: flex;
	width: max-content;
	animation: mq-defile var(--mq-duree, 40s) linear infinite;
}

.mq-bandeau .mq-viewport:hover .mq-track,
.mq-bandeau .mq-viewport:focus-within .mq-track {
	animation-play-state: paused;
}

.mq-bandeau .mq-liste {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mq-bandeau .mq-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 90px;
	padding: 10px 20px;
}

.mq-bandeau .mq-item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .75;
	transition: filter .3s, opacity .3s;
}

.mq-bandeau .mq-item a:hover img,
.mq-bandeau .mq-item a:focus img {
	filter: none;
	opacity: 1;
}

.mq-bandeau .mq-toutes a {
	font-weight: bold;
}

@keyframes mq-defile {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
	.mq-bandeau .mq-item a {
		width: 120px;
		height: 70px;
		padding: 8px 14px;
	}
}

/* pas d'animation si l'utilisateur la refuse : défilement manuel */
@media (prefers-reduced-motion: reduce) {
	.mq-bandeau .mq-viewport {
		overflow-x: auto;
	}
	.mq-bandeau .mq-track {
		animation: none;
	}
	.mq-bandeau .mq-liste[aria-hidden="true"] {
		display: none;
	}
}
