/* MFR - Partenaires : affichage front responsive (logos entiers, sans déformation) */

.mfp-partners {
	--mfp-h: 90px;
	--mfp-gap: 40px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
}

.mfp-partners * { box-sizing: border-box; }

.mfp-partners-title {
	text-align: center;
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 700;
}

.mfp-carousel { position: relative; }
.mfp-viewport { overflow: visible; width: 100%; }

.mfp-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--mfp-gap);
}

/* Flèches du carousel : couleur #CDAC5F forcée dans TOUS les états */
.mfp-partners .mfp-arrow,
.mfp-partners .mfp-arrow:link,
.mfp-partners .mfp-arrow:visited,
.mfp-partners .mfp-arrow:hover,
.mfp-partners .mfp-arrow:focus,
.mfp-partners .mfp-arrow:active,
.mfp-partners .mfp-arrow:focus-visible {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50% !important;
	align-items: center;
	justify-content: center;
	z-index: 3;
	cursor: pointer;
	background: #CDAC5F !important;
	background-image: none !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
	text-shadow: none !important;
	outline: none !important;
	font-size: 24px !important;
	line-height: 1 !important;
	padding: 0 !important;
	font-family: inherit !important;
}
.mfp-arrow-prev { left: 0; }
.mfp-arrow-next { right: 0; }
.mfp-partners .mfp-arrow { display: none; }
.mfp-partners.mfp-is-carousel .mfp-arrow { display: flex; }

/* Mode carousel (activé en JS sur mobile) : 1 logo visible */
.mfp-is-carousel .mfp-viewport {
	overflow: hidden;
	padding: 0 50px;
}
.mfp-is-carousel .mfp-grid {
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0;
	transition: transform .3s ease;
	will-change: transform;
}
.mfp-is-carousel .mfp-item {
	flex: 0 0 100%;
	width: 100%;
}

/* Chaque logo garde ses proportions : hauteur uniforme, largeur libre. */
.mfp-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--mfp-h);
	max-width: 100%;
	text-decoration: none;
	transition: transform .15s ease, opacity .15s ease;
}

.mfp-item .mfp-logo,
.mfp-item img {
	display: block;
	height: auto;
	width: auto;
	max-height: var(--mfp-h);
	max-width: 100%;
	object-fit: contain;
}

/* Liens : léger effet au survol, sans déformer le logo */
a.mfp-item:hover { transform: translateY(-2px); }
a.mfp-item:focus-visible { outline: 2px solid #CDAC5F; outline-offset: 4px; border-radius: 4px; }

/* Option niveaux de gris (couleur au survol) */
.mfp-grayscale .mfp-item img { filter: grayscale(100%); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.mfp-grayscale .mfp-item:hover img,
.mfp-grayscale a.mfp-item:focus-visible img { filter: grayscale(0); opacity: 1; }

/* Responsive : hauteur réduite sur mobile pour rester lisible */
@media (max-width: 782px) {
	.mfp-partners { --mfp-gap: 28px; }
	.mfp-item { height: calc(var(--mfp-h) * 0.8); }
	.mfp-item img { max-height: calc(var(--mfp-h) * 0.8); }
}

@media (max-width: 480px) {
	.mfp-partners { --mfp-gap: 22px; }
	.mfp-item { height: calc(var(--mfp-h) * 0.68); }
	.mfp-item img { max-height: calc(var(--mfp-h) * 0.68); }
}
