.bac-bar {
	/* Variables à ajuster par site (dans le CSS du thème, ou via un plugin
	   de custom CSS) pour coller à la charte graphique du client. */
	--bac-bg: #ffffff;
	--bac-text: #1c1c1c;
	--bac-muted: #65676b;
	--bac-accent: #c1440e;
	--bac-card-bg: #ffffff;
	--bac-card-radius: 12px;
	--bac-card-width: 340px;
	--bac-gap: 1.5rem;

	position: relative;
	background: var(--bac-bg);
	color: var(--bac-text);
	border-block: 1px solid rgba(0, 0, 0, 0.08);
	padding: 1.75rem 3.5rem;
}

.bac-track {
	display: flex;
	gap: var(--bac-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
	cursor: grab;
}

.bac-track:active {
	cursor: grabbing;
}

.bac-track::-webkit-scrollbar {
	height: 6px;
}

.bac-track::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.15);
	border-radius: 3px;
}

.bac-item {
	scroll-snap-align: start;
	flex: 0 0 var(--bac-card-width);
	background: var(--bac-card-bg);
	border-radius: var(--bac-card-radius);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bac-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.bac-item__media {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f0f2f5;
	overflow: hidden;
}

.bac-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bac-item__body {
	padding: 1rem 1.25rem 1.25rem;
}

.bac-item__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.bac-item__excerpt {
	margin: 0 0 0.6rem;
	font-size: 1rem;
	color: var(--bac-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bac-item__date {
	font-size: 0.9rem;
	color: var(--bac-accent);
	font-weight: 500;
}

.bac-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bac-nav--prev {
	left: 0.5rem;
}

.bac-nav--next {
	right: 0.5rem;
}

.bac-nav:hover {
	background: #f0f2f5;
}

@media (max-width: 600px) {
	.bac-bar {
		--bac-card-width: 280px;
		padding-inline: 0.75rem;
	}

	/* Le swipe tactile natif suffit sur mobile, les flèches gênent plus qu'autre chose. */
	.bac-nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bac-track {
		scroll-behavior: auto;
	}
}
