/* Latest News Section - Design Moderne */

.news-section {
	padding: 100px 0;
	background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
	position: relative;
}

/* Section Header */
.news-header {
	text-align: center;
	margin-bottom: 60px;
	animation: fadeInUp 0.6s ease;
}

.news-header h2 {
	font-size: 42px;
	font-weight: 700;
	color: #2C3E50;
	margin-bottom: 15px;
}

.news-header h2 .highlight {
	color: #8B1538;
	position: relative;
	display: inline-block;
}

.news-header h2 .highlight::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #8B1538 0%, #A91D4A 100%);
	border-radius: 2px;
}

.news-header p {
	font-size: 18px;
	color: #6c757d;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
}

/* News Card */
.news-card {
	position: relative;
	background: white;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
	cursor: pointer;
}

.news-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #8B1538 0%, #A91D4A 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
	z-index: 2;
}

.news-card:hover::before {
	transform: scaleX(1);
}

.news-card:hover {
	transform: translateY(-15px);
	box-shadow: 0 20px 60px rgba(139, 21, 56, 0.2);
}

/* News Image */
.news-image {
	position: relative;
	height: 280px;
	overflow: hidden;
	background: #e9ecef;
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
	transform: scale(1.15);
}

/* Badge catégorie */
.news-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(139, 21, 56, 0.95);
	backdrop-filter: blur(10px);
	color: white;
	padding: 8px 20px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

/* Overlay gradient sur l'image */
.news-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
	opacity: 1;
}

/* News Content */
.news-content {
	padding: 30px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-content h3 {
	font-size: 22px;
	font-weight: 700;
	color: #2C3E50;
	margin-bottom: 15px;
	line-height: 1.4;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card:hover .news-content h3 {
	color: #8B1538;
}

.news-content h3 a {
	color: inherit;
	text-decoration: none;
}

/* News Meta */
.news-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.news-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #6c757d;
}

.news-meta-item i {
	color: #8B1538;
	font-size: 14px;
}

/* News Excerpt */
.news-excerpt {
	font-size: 15px;
	color: #6c757d;
	line-height: 1.7;
	margin-bottom: 20px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Read More Button */
.news-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #8B1538;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-top: auto;
}

.news-read-more i {
	transition: transform 0.3s ease;
}

.news-read-more:hover {
	color: #A91D4A;
	gap: 12px;
}

.news-read-more:hover i {
	transform: translateX(5px);
}

/* More News Button */
.news-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 40px;
	background: linear-gradient(135deg, #8B1538 0%, #A91D4A 100%);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(139, 21, 56, 0.3);
	margin-top: 30px;
}

.news-more-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(139, 21, 56, 0.4);
	color: white;
	text-decoration: none;
}

.news-more-btn i {
	transition: transform 0.3s ease;
}

.news-more-btn:hover i {
	transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.news-card {
	animation: fadeInUp 0.6s ease forwards;
	opacity: 0;
}

.news-card:nth-child(1) {
	animation-delay: 0.1s;
}

.news-card:nth-child(2) {
	animation-delay: 0.2s;
}

.news-card:nth-child(3) {
	animation-delay: 0.3s;
}

.news-card:nth-child(4) {
	animation-delay: 0.4s;
}

.news-card:nth-child(5) {
	animation-delay: 0.5s;
}

.news-card:nth-child(6) {
	animation-delay: 0.6s;
}

/* Loading skeleton (optionnel) */
.news-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* Responsive */
@media (max-width: 992px) {
	.news-section {
		padding: 80px 0;
	}

	.news-header h2 {
		font-size: 36px;
	}

	.news-image {
		height: 250px;
	}

	.news-content {
		padding: 25px;
	}

	.news-content h3 {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	.news-section {
		padding: 60px 0;
	}

	.news-header {
		margin-bottom: 40px;
	}

	.news-header h2 {
		font-size: 32px;
	}

	.news-header p {
		font-size: 16px;
		padding: 0 15px;
	}

	.news-card {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 30px;
	}

	.news-image {
		height: 220px;
	}

	.news-badge {
		font-size: 12px;
		padding: 6px 16px;
		top: 15px;
		right: 15px;
	}

	.news-content {
		padding: 25px 20px;
	}

	.news-content h3 {
		font-size: 19px;
		margin-bottom: 12px;
	}

	.news-meta {
		gap: 15px;
	}

	.news-meta-item {
		font-size: 12px;
	}

	.news-excerpt {
		font-size: 14px;
		margin-bottom: 18px;
	}

	.news-read-more {
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.news-section {
		padding: 50px 0;
	}

	.news-header h2 {
		font-size: 28px;
	}

	.news-header p {
		font-size: 15px;
	}

	.news-card {
		border-radius: 15px;
		margin-bottom: 25px;
	}

	.news-image {
		height: 200px;
	}

	.news-badge {
		font-size: 11px;
		padding: 5px 14px;
	}

	.news-content {
		padding: 20px 18px;
	}

	.news-content h3 {
		font-size: 18px;
	}

	.news-meta {
		gap: 12px;
	}

	.news-meta-item {
		font-size: 11px;
	}

	.news-meta-item i {
		font-size: 12px;
	}

	.news-excerpt {
		font-size: 13px;
		line-height: 1.6;
		-webkit-line-clamp: 2;
	}

	.news-read-more {
		font-size: 13px;
	}

	.news-more-btn {
		padding: 14px 35px;
		font-size: 15px;
		width: 100%;
		margin-top: 20px;
	}
}

@media (max-width: 400px) {
	.news-image {
		height: 180px;
	}

	.news-content h3 {
		font-size: 17px;
	}
}
