/* ==========================================================================
   Bantu Perspectives — by Innoventia HUB
   Les sélecteurs sont préfixés par .bp-perspectives pour ne pas être
   écrasés par les styles du thème (JNews).
   ========================================================================== */

.bp-perspectives {
	--bp-accent: #b3181e;
	--bp-text: #1c1c1c;
	--bp-muted: #5f6368;
	--bp-soft: #8a8f95;
	--bp-line: #e2e4e7;
	--bp-card-bg: #ffffff;
	--bp-radius: 12px;

	color: var(--bp-text);
	margin: 0 0 48px;
}

.bp-perspectives *,
.bp-perspectives *::before,
.bp-perspectives *::after {
	box-sizing: border-box;
}

.bp-perspectives a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	transition: color .2s ease;
}

.bp-perspectives p {
	margin: 0;
}

/* ---------- En-tête de section ---------- */
.bp-perspectives .bp-header {
	position: relative;
	border-bottom: 1px solid var(--bp-line);
	padding-bottom: 12px;
	margin-bottom: 36px;
}

.bp-perspectives .bp-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 3px;
	background: var(--bp-accent);
}

.bp-perspectives .bp-section-title {
	margin: 0;
	padding: 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bp-accent);
}

.bp-perspectives .bp-section-title a {
	color: var(--bp-accent);
}

/* ---------- Avatar (conteneur rond, indépendant du thème) ---------- */
.bp-perspectives .bp-avatar {
	position: relative;
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 50%;
	background: #e6e8eb;
	border: 3px solid #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.bp-perspectives .bp-avatar--md { width: 64px; height: 64px; }
.bp-perspectives .bp-avatar--lg { width: 88px; height: 88px; }

.bp-perspectives .bp-avatar img,
.bp-perspectives .bp-avatar .bp-avatar__img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center top;
}

/* ---------- Article à la une ---------- */
.bp-perspectives .bp-featured {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: center;
	padding-bottom: 40px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--bp-line);
}

.bp-perspectives .bp-author {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--bp-line);
}

.bp-perspectives .bp-author__meta {
	min-width: 0;
}

.bp-perspectives .bp-author__name {
	display: block;
	margin-bottom: 4px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--bp-text);
}

.bp-perspectives .bp-author__bio {
	font-size: 14px;
	line-height: 1.55;
	font-style: italic;
	color: var(--bp-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bp-perspectives .bp-featured__title {
	margin: 0 0 18px;
	padding: 0;
	font-size: 34px;
	line-height: 1.18;
	font-weight: 400;
	letter-spacing: -.005em;
	color: var(--bp-text);
}

.bp-perspectives .bp-featured__title a:hover,
.bp-perspectives .bp-card__title a:hover {
	color: var(--bp-accent);
}

.bp-perspectives .bp-featured__excerpt {
	font-size: 17px;
	line-height: 1.65;
	color: var(--bp-muted);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bp-perspectives .bp-featured__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	background: #e9ebee;
}

.bp-perspectives .bp-featured__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transition: transform .6s ease;
}

.bp-perspectives .bp-featured__media:hover img {
	transform: scale(1.03);
}

/* ---------- Grille de cartes ---------- */
.bp-perspectives .bp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.bp-perspectives .bp-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-perspectives .bp-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bp-perspectives .bp-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	gap: 20px;
	align-items: center;
	padding: 24px;
	background: var(--bp-card-bg);
	border: 1px solid var(--bp-line);
	border-top: 3px solid var(--bp-accent);
	border-radius: var(--bp-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
	transition: box-shadow .25s ease, transform .25s ease;
}

.bp-perspectives .bp-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, .09);
	transform: translateY(-3px);
}

.bp-perspectives .bp-card__body {
	min-width: 0;
}

.bp-perspectives .bp-card__cat {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--bp-accent);
}

.bp-perspectives .bp-card__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 400;
	color: var(--bp-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bp-perspectives .bp-card__author {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 400;
	color: var(--bp-accent);
}

.bp-perspectives .bp-card__bio {
	font-size: 13px;
	line-height: 1.5;
	color: var(--bp-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bp-perspectives .bp-notice {
	padding: 12px 16px;
	border-left: 4px solid #b3181e;
	background: #fff4f4;
}

/* ---------- Polices forcées (Réglages) — sinon polices du thème ---------- */
.bp-perspectives.bp-font-heading .bp-section-title,
.bp-perspectives.bp-font-heading .bp-featured__title,
.bp-perspectives.bp-font-heading .bp-card__title {
	font-family: var(--bp-font-heading) !important;
}

.bp-perspectives.bp-font-body,
.bp-perspectives.bp-font-body .bp-author__name,
.bp-perspectives.bp-font-body .bp-author__bio,
.bp-perspectives.bp-font-body .bp-featured__excerpt,
.bp-perspectives.bp-font-body .bp-card__cat,
.bp-perspectives.bp-font-body .bp-card__author,
.bp-perspectives.bp-font-body .bp-card__bio {
	font-family: var(--bp-font-body) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.bp-perspectives .bp-featured { gap: 36px; }
	.bp-perspectives .bp-featured__title { font-size: 28px; }
	.bp-perspectives .bp-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.bp-perspectives .bp-featured {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.bp-perspectives .bp-featured__media { order: -1; }
	.bp-perspectives .bp-grid,
	.bp-perspectives .bp-grid--cols-3,
	.bp-perspectives .bp-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Aucun gras (ordinateur et mobile), même si le thème en applique un. */
.bp-perspectives .bp-section-title,
.bp-perspectives .bp-section-title a,
.bp-perspectives .bp-featured__title,
.bp-perspectives .bp-featured__title a,
.bp-perspectives .bp-card__title,
.bp-perspectives .bp-card__title a,
.bp-perspectives .bp-card__cat,
.bp-perspectives .bp-author__name,
.bp-perspectives .bp-card__author {
	font-weight: 400 !important;
}

/* Mobile : l'article à la une prend la forme d'une carte, comme les suivants. */
.bp-perspectives .bp-card--mobile-only {
	display: none;
}

@media (max-width: 767px) {
	.bp-perspectives .bp-section-title { font-size: 21px; }
	.bp-perspectives .bp-header { margin-bottom: 24px; }
	.bp-perspectives .bp-featured { display: none; }
	.bp-perspectives .bp-card--mobile-only { display: grid; }
	.bp-perspectives .bp-grid,
	.bp-perspectives .bp-grid--cols-2,
	.bp-perspectives .bp-grid--cols-3,
	.bp-perspectives .bp-grid--cols-4 { grid-template-columns: 1fr; gap: 16px; }
	.bp-perspectives .bp-card { grid-template-columns: minmax(0, 1fr) 72px; padding: 20px; }
	.bp-perspectives .bp-avatar--lg { width: 72px; height: 72px; }
}

/* ---------- Mode sombre JNews ---------- */
.jnews-dark-mode .bp-perspectives {
	--bp-text: #f2f2f2;
	--bp-muted: #c4c4c4;
	--bp-soft: #a0a0a0;
	--bp-line: #34363a;
	--bp-card-bg: #1f2124;
}

.jnews-dark-mode .bp-perspectives .bp-avatar {
	border-color: #2a2c30;
}
