/**
 * Clients — Carousel logos défilant infini
 * Plugin PlaneteWP
 * Pur CSS, pas de JS
 */

.pwp-clients {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.pwp-clients__track {
	display: flex;
	align-items: center;
	gap: 3rem;
	width: max-content;
	animation: pwp-scroll var(--pwp-scroll-speed, 30s) linear infinite;
}

.pwp-clients__track:hover {
	animation-play-state: paused;
}

.pwp-clients__item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
}

.pwp-clients__item img {
	max-height: 60px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: filter 0.3s, opacity 0.3s;
}

/* Mode grayscale (color="no") */
.pwp-clients--grayscale .pwp-clients__item img {
	filter: grayscale(100%);
	opacity: 0.6;
}

.pwp-clients--grayscale .pwp-clients__item:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

@keyframes pwp-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.pwp-clients__track {
		gap: 2rem;
	}

	.pwp-clients__item {
		height: 40px;
	}

	.pwp-clients__item img {
		max-height: 40px;
		max-width: 120px;
	}
}
