/*!
 * JCM Annonces — bandeau frontend
 * Version: 1.0.0
 */

.jcma-banner-wrap {
	padding: 0 16px;
	margin: 16px auto 24px;
	max-width: 100%;
}

.jcma-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	color: inherit;
}

.jcma-banner--linked {
	cursor: pointer;
}

.jcma-banner--linked:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	text-decoration: none;
}

.jcma-banner--linked:active {
	transform: translateY(0);
}

.jcma-banner__icon {
	flex-shrink: 0;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
}

.jcma-banner__body {
	flex: 1;
	min-width: 0;
}

.jcma-banner__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 2px;
}

.jcma-banner__desc {
	font-size: 13px;
	line-height: 1.4;
	opacity: 0.85;
}

.jcma-banner__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.jcma-banner--linked:hover .jcma-banner__cta {
	background: rgba(0, 0, 0, 0.12);
}

.jcma-banner__cta-arrow {
	transition: transform 0.15s ease;
}

.jcma-banner--linked:hover .jcma-banner__cta-arrow {
	transform: translateX(2px);
}

/* Mobile : le CTA passe en dessous sur petits écrans */
@media (max-width: 480px) {
	.jcma-banner {
		flex-wrap: wrap;
	}
	.jcma-banner__cta {
		margin-top: 4px;
		margin-left: auto;
	}
}

/* Accessibilité : focus visible */
.jcma-banner--linked:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
