/* BIHA Partners — styles autonomes (préfixe .bp-, fonctionnent avec ou sans Biha_Theme) */
.bp {
	--bp-h: 60px;
	--bp-gap: clamp(16px, 3vw, 40px);
	--bp-cols: 0;
	--bp-duration: 30s;
	--bp-ink: #1b1d21;
	--bp-muted: #5f656d;
	position: relative;
	width: 100%;
	min-width: 0;
}
.bp ul { list-style: none; margin: 0; padding: 0; }
.bp .bp-item { margin: 0; padding: 0; border: 0; }
.bp-title {
	margin: 0 0 12px;
	font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--bp-ink);
}

/* Carte d'un partenaire */
.bp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 100%;
	padding: 6px 8px;
	color: inherit;
	text-decoration: none;
	text-align: center;
	border-radius: 8px;
	transition: background .15s, transform .15s;
}
a.bp-card:hover { background: rgba(0, 0, 0, .04); }
a.bp-card:focus-visible { outline: 2px solid #FDDA24; outline-offset: 2px; }
.bp-logo-wrap { display: flex; align-items: center; justify-content: center; height: var(--bp-h); }
.bp-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: var(--bp-h);
	max-width: calc(var(--bp-h) * 3);
	object-fit: contain;
	filter: grayscale(.15);
	transition: filter .15s, transform .15s;
}
a.bp-card:hover .bp-logo { filter: none; transform: scale(1.04); }
.bp-logo--text {
	display: flex; align-items: center;
	font-weight: 800; font-size: 15px; color: var(--bp-ink);
	max-width: none; filter: none;
}
.bp-name { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--bp-ink); }
.bp-text { font-size: 13px; line-height: 1.35; color: var(--bp-muted); max-width: 22ch; }

/* --- Statique --- */
.bp-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 12px var(--bp-gap);
}
.bp-grid .bp-item { flex: 0 1 auto; }
.bp--static[style*="--bp-cols"] .bp-grid {
	display: grid;
	grid-template-columns: repeat(var(--bp-cols), minmax(0, 1fr));
	gap: 12px;
}

/* --- Défilant (boucle continue, pause au survol) --- */
.bp-viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.bp-track {
	display: flex;
	align-items: stretch;
	gap: var(--bp-gap);
	width: max-content;
	animation: bp-scroll var(--bp-duration) linear infinite;
}
.bp-track .bp-item { flex: none; }
.bp--scroll:hover .bp-track,
.bp--scroll:focus-within .bp-track { animation-play-state: paused; }
@keyframes bp-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - var(--bp-gap) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
	.bp-track { animation: none; }
	.bp-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.bp-track .bp-item[aria-hidden="true"], .bp-track [aria-hidden="true"] { display: none; }
}

/* --- Emplacements --- */
/* Sous le menu : bande fine et claire */
.bp--ctx-header { padding: 8px 0; }
.bp--ctx-header .bp-title { font-size: 14px; margin: 0 0 4px; text-align: center; color: var(--bp-muted); }
.bp--ctx-header .bp-card { padding: 2px 6px; }

/* Accueil : bloc blanc dans la colonne principale */
.bp--ctx-home {
	background: #fff;
	border-radius: 6px;
	padding: 18px 20px;
	box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 6px 18px rgba(17,17,17,.06);
}

/* Widget : pas de masque de bord, cartes centrées */
.bp--ctx-widget .bp-grid { justify-content: center; }
.bp--ctx-widget.bp--static .bp-card { background: #f6f7f9; }
.bp--ctx-widget.bp--static a.bp-card:hover { background: #eceef1; }

@media (max-width: 640px) {
	.bp { --bp-gap: 18px; }
	.bp--ctx-home { padding: 14px 12px; }
	.bp--static[style*="--bp-cols"] .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bp-logo { max-width: calc(var(--bp-h) * 2.4); }
}
