/*
 * SECTION PARTENAIRES
 *
 * Bandeau sur fond teal avec carrousel défilant infini des logos partenaires.
 * Pause au survol, respect de prefers-reduced-motion.
 */

.partners {
	background: var(--teal);
	color: var(--white);
	padding: 40px 0;
	overflow: hidden;
}

.partners-inner {
	display: flex;
	align-items: center;
	gap: 176px;
}

.partners-label {
	font-size: 18px;
	font-weight: 700;
	max-width: 300px;
	line-height: 1.45;
	flex-shrink: 0;
}

.partners-marquee {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.partners-track {
	display: flex;
	align-items: center;
	gap: 80px;
	width: max-content;
	animation: scrollLogos 32s linear infinite;
}


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

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

.partner {
	display: inline-flex;
	align-items: center;
	color: var(--white);
	height: 56px;
	flex-shrink: 0;
}

/* === Logos partenaires uploadés via ACF === */
.partner > a {
	display: inline-flex;
	align-items: center;
	height: 100%;
	transition: opacity .2s ease;
}

.partner > a:hover {
	opacity: 0.75;
}

.partner-logo {
	max-height: 56px;
	width: auto;
	object-fit: contain;
	display: block;
}

/* === UdS - Université de Sherbrooke === */
.p-uds { gap: 12px; }

.p-uds .uds-mark {
	background: var(--white);
	color: var(--teal);
	font-weight: 800;
	font-size: 22px;
	padding: 6px 10px;
	border-radius: 4px;
	letter-spacing: -0.02em;
	line-height: 1;
}

.p-uds .uds-mark .lower { font-size: 18px; }

.p-uds .uds-name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

/* === CHUS - Centre de recherche === */
.p-chus { gap: 14px; }

.p-chus .cr-text {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-align: right;
}

.p-chus .vsep {
	width: 1px;
	height: 38px;
	background: rgba(255, 255, 255, 0.6);
}

.p-chus .chus-text {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.02em;
	font-style: italic;
	position: relative;
	padding-bottom: 4px;
}

.p-chus .chus-text::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 6px;
	border: 1.5px solid var(--white);
	border-top: none;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* === CIHR / IRSC === */
.p-cihr { gap: 10px; }

.p-cihr .cihr-icon {
	color: var(--white);
	flex-shrink: 0;
}

.p-cihr .cihr-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.p-cihr .cihr-main {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.p-cihr .cihr-sub {
	font-size: 7.5px;
	font-weight: 500;
	line-height: 1.3;
	opacity: 0.85;
}

/* === Santé Canada / Health Canada === */
.p-canada { gap: 10px; }

.p-canada .ca-flag { flex-shrink: 0; }

.p-canada .ca-text {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
	.partners { padding: 32px 0; }
	.partners-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.partners-label { max-width: none; font-size: 14px; }
	.partners-marquee { width: 100%; flex: none; }
	.partners-track { gap: 56px; animation-duration: 26s; }
}

@media (max-width: 540px) {
	.partners { padding: 28px 0; }
	.partners-label { font-size: 13px; line-height: 1.4; }
	.partners-track { gap: 44px; animation-duration: 22s; }
	.partner { height: 48px; }
	.partner-logo { max-height: 48px; }

	.p-uds .uds-mark { font-size: 18px; padding: 5px 8px; }
	.p-uds .uds-mark .lower { font-size: 15px; }
	.p-uds .uds-name { font-size: 12px; }

	.p-chus { gap: 10px; }
	.p-chus .cr-text { font-size: 10px; }
	.p-chus .vsep { height: 32px; }
	.p-chus .chus-text { font-size: 22px; }

	.p-cihr .cihr-icon { width: 34px; height: 34px; }
	.p-cihr .cihr-main { font-size: 12px; }
	.p-cihr .cihr-sub { font-size: 7px; }

	.p-canada .ca-flag { width: 30px; height: 18px; }
	.p-canada .ca-text { font-size: 11px; }

	.partners-marquee {
		mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
	}
}

@media (max-width: 380px) {
	.partners-track { gap: 36px; }
	.p-cihr .cihr-sub { display: none; }
}
