/* FFJJB - Carte d'action - conforme à la maquette FFJJB (desktop : horizontal 60/40, hauteur flexible) */

.ffjjb-action-card {
	display: flex;
	align-items: stretch;
	min-height: 230px;
	background-color: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ffjjb-action-card__body {
	flex: 0 0 65%;
	min-width: 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ffjjb-action-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #c7c7cc;
	color: #0b1f3a;
	font-size: 16px;
}

.ffjjb-action-card__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #0b1f3a;
	margin: 0;
	word-break: normal;
	overflow-wrap: normal;
}

.ffjjb-action-card__desc {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.4;
	color: #000000;
	margin: 0;
	max-width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ffjjb-action-card__link {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: #0b1f3a;
	text-decoration: none;
	margin-top: auto;
}

.ffjjb-action-card__link:hover {
	color: #ff6600;
}

.ffjjb-action-card__thumb {
	position: relative;
	flex: 0 0 35%;
}

.ffjjb-action-card__thumb::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 18px;
	height: 100%;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.25) 45%,
		rgba(255, 255, 255, 0) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.ffjjb-action-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Tablette : layout horizontal conservé (le passage 2+1 est piloté par le flex-basis par carte) */

@media (max-width: 600px) {
	.ffjjb-action-card {
		flex-direction: column;
		min-height: 0;
	}

	.ffjjb-action-card__body {
		flex: 1 1 auto;
		width: 100%;
	}

	.ffjjb-action-card__desc {
		-webkit-line-clamp: unset;
		overflow: visible;
	}

	.ffjjb-action-card__thumb {
		flex: 0 0 auto;
		width: 100%;
		height: 180px;
	}

	.ffjjb-action-card__thumb::before {
		display: none;
	}
}
