/* Abeilles-care · Bandeau Actualités
   Reprend le design du composant NewsTicker (home-v2.jsx).
   Les couleurs et la vitesse sont injectées via variables CSS inline. */

.acb-auto-wrap {
	width: 100%;
}

.acb-bandeau {
	--acb-accent: #a89bc9;
	--acb-actu: #c9885a;
	--acb-bg: #E5DBC4;
	--acb-text: #2c3522;
	--acb-speed: 38s;

	box-sizing: border-box;
	width: 100%;
	background: var(--acb-bg);
	color: var(--acb-text);
	border-top: 1px solid color-mix(in srgb, var(--acb-text) 10%, transparent);
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	overflow: hidden;
}

.acb-bandeau * {
	box-sizing: border-box;
}

/* Collé en bas du viewport : hors flux, n'ajoute aucune hauteur scrollable.
   Idéal pour une page d'accueil plein écran sans scroll. */
.acb-bandeau.acb-pos-fixed {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

/* Dans le flux normal (placement manuel via shortcode). */
.acb-bandeau.acb-pos-flow {
	position: relative;
}

.acb-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 11px 45px;
	width: 100%;
	margin: 0;
}

/* ── Label « Actualités » + pastille pulse ── */
.acb-label {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: none;
}

.acb-pulse {
	position: relative;
	width: 10px;
	height: 10px;
	display: inline-block;
}

.acb-pulse-ring {
	position: absolute;
	inset: 0;
	border-radius: 99px;
	background: var(--acb-actu);
	animation: acb-pulse-ring 1.8s ease-out infinite;
}

.acb-pulse-dot {
	position: absolute;
	inset: 2px;
	border-radius: 99px;
	background: var(--acb-actu);
}

.acb-label-text {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--acb-actu);
	white-space: nowrap;
}

.acb-sep {
	width: 1px;
	height: 14px;
	background: color-mix(in srgb, var(--acb-text) 20%, transparent);
	margin-left: 4px;
}

/* ── Piste défilante ── */
.acb-track-mask {
	flex: 1;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.acb-track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	animation: acb-marquee var(--acb-speed) linear infinite;
	will-change: transform;
}

.acb-track:hover,
.acb-track:focus-within {
	animation-play-state: paused;
}

/* Variante sans défilement (pulse only / liste statique) */
.acb-static {
	flex: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0;
	min-width: 0;
}

.acb-anim-pulse .acb-static,
.acb-anim-scroll .acb-static {
	white-space: nowrap;
}

/* ── Élément article ── */
.acb-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: 18px;
	text-decoration: none;
	color: var(--acb-text);
	font-size: 13px;
	letter-spacing: 0.1px;
}

.acb-item-meta {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
}

.acb-date {
	font-weight: 600;
}

.acb-dot {
	opacity: 0.5;
	margin: 0 10px;
}

.acb-title {
	font-weight: 500;
	transition: color 0.18s ease, opacity 0.18s ease;
}

.acb-excerpt {
	opacity: 0.7;
}

/* Effet léger au survol du nom d'un article */
.acb-item:hover .acb-title,
.acb-item:focus-visible .acb-title {
	color: var(--acb-actu);
	opacity: 0.9;
}

.acb-item:focus-visible {
	outline: 2px solid var(--acb-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Petite bille de séparation entre les articles */
.acb-bullet {
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 99px;
	background: var(--acb-accent);
	opacity: 0.5;
	margin-right: 18px;
	flex: none;
}

/* ── Bouton « Voir tout » ── */
.acb-showall {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--acb-text);
	text-decoration: none;
	padding: 6px 11px;
	border-radius: 99px;
	border: 1px solid color-mix(in srgb, var(--acb-text) 15%, transparent);
	white-space: nowrap;
	transition: background-color 0.18s ease;
}

.acb-showall:hover,
.acb-showall:focus-visible {
	background: color-mix(in srgb, var(--acb-text) 8%, transparent);
}

.acb-arrow {
	flex: none;
}

/* ── Message « aucun article » ── */
.acb-empty {
	flex: 1;
	font-size: 13px;
	opacity: 0.75;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Animations ── */
@keyframes acb-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes acb-pulse-ring {
	0% { transform: scale(0.6); opacity: 0.9; }
	100% { transform: scale(2.6); opacity: 0; }
}

/* ── Accessibilité : mouvement réduit ── */
@media (prefers-reduced-motion: reduce) {
	.acb-track {
		animation: none;
		transform: none;
	}
	.acb-pulse-ring {
		animation: none;
	}
	.acb-track-mask {
		overflow-x: auto;
	}
}

/* ── Responsive ── */
@media (max-width: 640px) {
	.acb-inner {
		gap: 10px;
		padding: 9px 14px;
	}
	.acb-showall {
		display: none;
	}
}
