.ictp-wrap {
	--ictp-logo-h: 28px;
	--ictp-bg: transparent;
	--ictp-col-h: 320px;
	background: var(--ictp-bg);
	padding: 28px 0;
	border-radius: 16px;
	overflow: hidden;
}

div#ictp-1 {
    padding: 0px;
}

.ictp-wrap.ictp-fade {
	-webkit-mask-image:
		linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%),
		linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%),
		linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
	mask-composite: intersect;
}

.ictp-columns {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 16px;
}

.ictp-col {
	overflow: hidden;
	height: var(--ictp-col-h);
}

.ictp-col-track {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	height: max-content;
	animation: ictp-scroll-up var(--ictp-duration, 20s) linear infinite;
	will-change: transform;
}

.ictp-col:hover .ictp-col-track {
	animation-play-state: paused;
}

@keyframes ictp-scroll-up {
	from { transform: translateY(0); }
	to   { transform: translateY(-50%); }
}

.ictp-logo-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #fff;
	border-radius: 14px;
	padding: 8px 16px;
	box-shadow: 0 1px 6px rgba(20, 30, 50, 0.08);
	text-decoration: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ictp-logo-tile:hover {
	box-shadow: 0 4px 14px rgba(20, 30, 50, 0.14);
	transform: translateY(-2px);
}

.ictp-logo-tile img {
	height: var(--ictp-logo-h);
	width: auto;
	object-fit: contain;
	filter: grayscale(100%) opacity(0.65);
	transition: filter 0.25s ease, opacity 0.25s ease;
	display: block;
}

.ictp-logo-tile:hover img {
	filter: none;
	opacity: 1;
}

.ictp-no-grayscale .ictp-logo-tile img {
	filter: none;
	opacity: 1;
}

.ictp-empty {
	color: #5c6470;
	font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
	.ictp-col-track {
		animation: none;
	}
}

/*
 * Sur mobile, garder toutes les colonnes configurées (ex: 6) les tasse
 * trop étroitement et les logos deviennent illisibles. On n'affiche que
 * les premières colonnes : elles contiennent chacune la liste complète
 * des logos (voir class-render.php), donc rien n'est perdu, seulement
 * moins de colonnes en parallèle.
 */
@media (max-width: 780px) {
	.ictp-wrap {
		padding: 20px 0;
	}

	.ictp-columns {
		gap: 12px;
	}

	.ictp-col:nth-child(n + 4) {
		display: none;
	}
}

@media (max-width: 480px) {
	.ictp-col:nth-child(n + 3) {
		display: none;
	}
}
