/**
 * Carte « opportunité » — design accent-corner (repris du template).
 * La couleur du triangle et des accents provient de la variable inline
 * --triangle-color (couleur du secteur).
 */
.opp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 420px;
	background: var(--snf-white, #fff);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
	text-decoration: none;
	transition: transform .35s, box-shadow .35s;
	--triangle-color: var(--snf-green, #00A8E8);
}
.opp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
/* Entrée échelonnée après filtrage AJAX (classes posées par opp-filter.js). */
.opp-card.snf-enter {
	opacity: 0;
	transform: translateY(14px);
}
.opp-card.snf-enter-active {
	opacity: 1;
	transform: none;
	transition: opacity .45s ease, transform .45s ease;
}
.opp-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 90px;
	height: 90px;
	background: var(--triangle-color);
	clip-path: polygon(100% 0, 0 0, 100% 100%);
	z-index: 3;
	transition: all .3s;
}

/* Bande image (visuel de l'opportunité) */
.oc-image-wrap {
	position: relative;
	width: 100%;
	height: 130px;
	overflow: hidden;
	background: #f0f0f0;
	flex-shrink: 0;
}
.oc-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
/* Zoom de l'image au survol (cohérence avec les cartes actualités). */
.opp-card:hover .oc-image {
	transform: scale(1.06);
}
.oc-image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 100%);
}
/* Repli en dégradé coloré (secteur) quand aucune image à la une */
.oc-image-wrap--placeholder {
	background: linear-gradient(135deg, var(--triangle-color), var(--snf-navy, #1A2A3A));
}

.oc-inner {
	position: relative;
	z-index: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	overflow: hidden;
}
.oc-cat {
	font-family: var(--fh, 'Josefin Sans', sans-serif);
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--triangle-color);
	margin-bottom: 4px;
	padding-right: 60px; /* laisse la place au triangle */
}
.oc-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.oc-badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--fh, 'Josefin Sans', sans-serif);
	font-size: .55rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 3px 8px;
	border-radius: 3px;
	background: rgba(0, 0, 0, .05);
	color: var(--triangle-color);
}
.oc-badge--status {
	background: rgba(0, 0, 0, .04);
	color: var(--snf-muted, #777);
}
.oc-badge--en-cours,
.oc-badge--en-cours-en {
	color: #1f9d55;
}
.oc-badge--cloture,
.oc-badge--cloture-en {
	color: #b32d2e;
}
.oc-title {
	font-family: var(--fh, 'Josefin Sans', sans-serif);
	font-size: .95rem;
	font-weight: 800;
	color: var(--snf-navy, #1A2A3A);
	line-height: 1.3;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.oc-desc {
	font-size: .78rem;
	color: var(--snf-muted, #777);
	line-height: 1.5;
	margin-bottom: 12px;
	/* Élément élastique : absorbe la variation de hauteur (titre 1 ou 2 lignes)
	   pour que le bloc financeur ne soit jamais rogné. Plafonné à 2 lignes. */
	flex: 1 1 auto;
	min-height: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Bloc financeur : mis en évidence, séparé du contenu par un filet léger. */
.oc-bailleur {
	flex-shrink: 0; /* jamais compressé/rogné : la description absorbe la variation. */
	padding-top: 10px;
	border-top: 1px solid rgba(0, 0, 0, .06);
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.oc-bailleur__logo {
	width: 30px;
	height: 30px;
	object-fit: contain;
	border-radius: 50%;
	background: #fff;
	padding: 3px;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, .08);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
.oc-bailleur__name {
	font-family: var(--fh, 'Josefin Sans', sans-serif);
	font-size: .9rem;
	font-weight: 700;
	color: var(--triangle-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.oc-footer {
	padding: 14px 18px;
	border-top: 1px solid var(--snf-border, #E8E2D8);
	background: var(--snf-white, #fff);
}
.oc-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}
.oc-amount {
	font-family: var(--fd, 'Josefin Sans', sans-serif);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--triangle-color);
}
.oc-deadline {
	font-family: var(--fh, 'Josefin Sans', sans-serif);
	font-size: .65rem;
	font-weight: 700;
	color: var(--snf-muted, #777);
	text-transform: uppercase;
	letter-spacing: .06em;
}
