/* ==========================================================================
   Page d'Accueil : Hero cinématique & Grille d'actualités
   ========================================================================== */

.hero-f1 {
	position: relative;
	overflow: hidden;
	background:
		repeating-linear-gradient(
			45deg,
			rgba(255, 255, 255, 0.015) 0px,
			rgba(255, 255, 255, 0.015) 2px,
			transparent 2px,
			transparent 8px
		),
		linear-gradient(135deg, #161b22 0%, #1c1014 60%, #2a0a0d 100%);
	border: 1px solid var(--border-color);
	border-left: 6px solid var(--f1-red);
	border-radius: var(--radius-lg);
	padding: 2.25rem;
	margin-bottom: 2rem;
	animation: fadeSlideUp 0.5s ease both;
}

.hero-f1::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -8%;
	width: 220px;
	height: 180%;
	background: linear-gradient(180deg, rgba(225, 6, 0, 0.16), transparent);
	transform: skewX(-18deg);
	pointer-events: none;
}

.hero-f1 .badge-red {
	animation: pulseBadge 2.4s infinite;
}

.hero-f1-cinematic {
	min-height: 430px;
	display: flex;
	align-items: flex-end;
	padding: 2.75rem;
}

.hero-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(13, 17, 23, 0.94) 0%,
		rgba(13, 17, 23, 0.76) 52%,
		rgba(13, 17, 23, 0.25) 100%
	);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 620px;
}

.hero-content h1 {
	color: #f0f6fc;
	margin-top: 0.6rem;
	margin-bottom: 0.75rem;
}

.hero-content p {
	color: #cbd5e1;
	font-size: 1.05rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.hero-btn-light {
	color: #f0f6fc;
	border-color: rgba(240, 246, 252, 0.45);
}

.hero-btn-light:hover {
	background-color: rgba(240, 246, 252, 0.14);
	border-color: #ffffff;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.15rem;
	margin-bottom: 2rem;
}

.news-card {
	background-color: var(--bg-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.news-card:hover {
	transform: translateY(-4px);
	border-color: var(--f1-red);
}

.news-card-featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 320px 1fr;
	align-items: stretch;
	border-left: 5px solid var(--f1-red);
}

.news-media {
	background-color: #f1f5f9;
	padding: 1rem;
	display: grid;
	place-items: center;
}

.news-media img {
	max-height: 130px;
	width: auto;
	object-fit: contain;
}

.news-body {
	padding: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.news-body h3 {
	margin: 0;
	font-size: 1.12rem;
}

.news-body p {
	margin: 0;
	font-size: 0.92rem;
}

@media (max-width: 900px) {
	.news-card-featured {
		grid-template-columns: 1fr;
	}

	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.hero-f1 {
		padding: 1.5rem;
	}

	.news-grid {
		grid-template-columns: 1fr;
	}
}
