/**
 * IFS Logo carousel — sponsors / partenaires (front + éditeur).
 */
.ifs-logoc {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-inline: auto;
	padding-inline: clamp(3rem, 5vw, 5rem);
	overflow: hidden;
}

.ifs-logoc__viewport { overflow: hidden; }

.ifs-logoc__track {
	display: flex;
	align-items: center;
	transition: transform 0.5s ease;
	will-change: transform;
}

.ifs-logoc__cell {
	flex: 0 0 33.3333%;
	box-sizing: border-box;
	padding-inline: clamp(1rem, 2vw, 2.5rem);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

@media (max-width: 900px) { .ifs-logoc__cell { flex-basis: 50%; } }
@media (max-width: 560px) { .ifs-logoc__cell { flex-basis: 100%; } }

.ifs-logoc__img {
	/* Le logo remplit toute la largeur de sa cellule (très large en pleine
	   largeur) ; object-fit:contain garde le ratio sans déformer. Les fichiers
	   source contiennent du blanc autour du logo → on agrandit la boîte au max. */
	width: 100%;
	height: 200px;
	object-fit: contain;
	margin-inline: auto;
	display: block;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) { .ifs-logoc__img { height: 150px; } }

/* Couleur uniquement au survol du logo. */
.ifs-logoc__cell:hover .ifs-logoc__img,
.ifs-logoc__img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* Flèches */
.ifs-logoc__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--primary, #3558A2);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
}
.ifs-logoc__nav:hover { color: var(--wp--preset--color--orange, #FF9575); }
.ifs-logoc__prev { left: 0; }
.ifs-logoc__next { right: 0; }

/* Points */
.ifs-logoc__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}
.ifs-logoc__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cdd6e3;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.ifs-logoc__dot:hover { background: #a9b6cb; }
.ifs-logoc__dot[aria-current="true"] {
	background: var(--wp--preset--color--orange, #FF9575);
	transform: scale(1.15);
}
