/**
 * Styles pour la page Articles / Blog
 * Design cohérent avec le thème YB Advice
 */

/* ============================================
   ARTICLES PAGE WRAPPER
   ============================================ */

.articles-wrapper {
	padding-top: 120px;
	padding-bottom: 80px;
	min-height: calc(100vh - 200px);
}

.articles-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ============================================
   ARTICLES HERO / HEADER
   ============================================ */

.articles-hero {
	text-align: center;
	margin-bottom: 4rem;
	padding: 2rem 0 3rem;
	position: relative;
}

.articles-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 3px;
	background: linear-gradient(90deg, transparent, #4A9EFF, transparent);
	border-radius: 2px;
}

.articles-label {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #4A9EFF;
	background: rgba(74, 158, 255, 0.1);
	border: 1px solid rgba(74, 158, 255, 0.25);
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	margin-bottom: 1.5rem;
	animation: fadeInUp 0.6s ease-out;
}

.articles-title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(2rem, 6vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 1.25rem;
	color: #ffffff;
	background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 40px rgba(74, 158, 255, 0.4);
	animation: fadeInUp 0.8s ease-out;
}

.articles-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	max-width: 700px;
	margin: 0 auto;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ============================================
   ARTICLES LAYOUT (GRID + SIDEBAR)
   ============================================ */

.articles-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 3rem;
	align-items: start;
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */

.articles-filters {
	margin-bottom: 2.5rem;
	animation: fadeInUp 0.8s ease-out 0.3s both;
}

.filters-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 1rem;
	display: block;
}

.filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.filter-item {
	margin: 0;
}

.filter-link {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: all 0.3s ease;
}

.filter-link:hover {
	background: rgba(74, 158, 255, 0.1);
	border-color: rgba(74, 158, 255, 0.3);
	color: #4A9EFF;
	transform: translateY(-2px);
}

.filter-link.active {
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.4rem;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50px;
	font-size: 0.7rem;
	font-weight: 700;
	margin-left: 0.5rem;
}

.filter-link.active .filter-count {
	background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   ARTICLES MAIN CONTENT
   ============================================ */

.articles-main {
	min-width: 0;
}

/* ============================================
   ARTICLES GRID
   ============================================ */

.articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

/* ============================================
   ARTICLE CARD
   ============================================ */

.article-card {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s ease;
	animation: fadeInUp 0.6s ease-out both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.15s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.25s; }
.article-card:nth-child(5) { animation-delay: 0.3s; }
.article-card:nth-child(6) { animation-delay: 0.35s; }
.article-card:nth-child(7) { animation-delay: 0.4s; }
.article-card:nth-child(8) { animation-delay: 0.45s; }
.article-card:nth-child(9) { animation-delay: 0.5s; }

.article-card:hover {
	transform: translateY(-8px);
	border-color: rgba(74, 158, 255, 0.3);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(74, 158, 255, 0.1);
}

.article-card-image {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/10;
}

.article-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
	transform: scale(1.08);
}

.article-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.article-card:hover .article-card-overlay {
	opacity: 0.4;
}

/* Placeholder pour articles sans image */
.article-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16/10;
	background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
}

.article-card-placeholder i {
	font-size: 3rem;
	color: rgba(74, 158, 255, 0.4);
}

.article-card-content {
	padding: 1.75rem;
}

.article-card-category {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #4A9EFF;
	background: rgba(74, 158, 255, 0.1);
	padding: 0.35rem 0.85rem;
	border-radius: 50px;
	margin-bottom: 1rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.article-card-category:hover {
	background: rgba(74, 158, 255, 0.2);
	color: #6BB3FF;
}

.article-card-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 0.75rem;
}

.article-card-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.article-card-title a:hover {
	color: #4A9EFF;
}

.article-card-excerpt {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.article-card-meta {
	display: flex;
	gap: 1rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}

.article-card-meta i {
	color: #4A9EFF;
	margin-right: 0.35rem;
}

.article-read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #4A9EFF;
	text-decoration: none;
	transition: all 0.3s ease;
}

.article-read-more i {
	transition: transform 0.3s ease;
}

.article-read-more:hover {
	color: #6BB3FF;
}

.article-read-more:hover i {
	transform: translateX(4px);
}

/* ============================================
   SIDEBAR
   ============================================ */

.articles-sidebar {
	position: sticky;
	top: 100px;
}

.sidebar-widget {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 1.75rem;
	margin-bottom: 1.5rem;
	animation: fadeInUp 0.8s ease-out both;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.4s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.5s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.6s; }

.sidebar-widget:last-child {
	margin-bottom: 0;
}

.sidebar-widget-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid rgba(74, 158, 255, 0.3);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sidebar-widget-title i {
	color: #4A9EFF;
}

.sidebar-text {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 1rem;
}

.sidebar-text:last-child {
	margin-bottom: 0;
}

.sidebar-text strong {
	color: #ffffff;
}

.sidebar-objective {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #4A9EFF;
	padding: 1rem;
	background: rgba(74, 158, 255, 0.08);
	border-left: 3px solid #4A9EFF;
	border-radius: 0 12px 12px 0;
	margin-top: 1rem;
}

/* Sidebar Author */
.sidebar-author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.sidebar-author-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	flex-shrink: 0;
}

.sidebar-author-info {
	flex: 1;
}

.sidebar-author-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 0.25rem;
}

.sidebar-author-role {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	color: #4A9EFF;
	margin: 0;
}

/* Sidebar CTA */
.sidebar-cta {
	background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
	border-color: rgba(74, 158, 255, 0.2);
}

.sidebar-cta-button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 1rem 1.5rem;
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	border: none;
	border-radius: 50px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
	transition: all 0.3s ease;
	margin-top: 1rem;
}

.sidebar-cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(74, 158, 255, 0.5);
	color: #ffffff;
}

/* ============================================
   PAGINATION
   ============================================ */

.articles-pagination {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.articles-pagination .nav-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.articles-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	height: 3rem;
	padding: 0 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: all 0.3s ease;
}

.articles-pagination .page-numbers:hover {
	background: rgba(74, 158, 255, 0.1);
	border-color: rgba(74, 158, 255, 0.3);
	color: #4A9EFF;
	transform: translateY(-2px);
}

.articles-pagination .page-numbers.current {
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.articles-pagination .prev,
.articles-pagination .next {
	gap: 0.5rem;
}

/* ============================================
   NO POSTS FOUND
   ============================================ */

.no-articles-found {
	text-align: center;
	padding: 4rem 0;
	grid-column: 1 / -1;
}

.no-articles-card {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 3rem;
	max-width: 500px;
	margin: 0 auto;
	text-align: center;
}

.no-articles-card .bi-journal-text {
	font-size: 4rem;
	color: rgba(74, 158, 255, 0.5);
	margin-bottom: 1.5rem;
}

.no-articles-card h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1rem;
}

.no-articles-card p {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
	font-size: 1rem;
}

.btn-back-home {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	border: none;
	border-radius: 50px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
	transition: all 0.3s ease;
}

.btn-back-home:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(74, 158, 255, 0.6);
	color: #ffffff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1199.98px) {
	.articles-layout {
		grid-template-columns: 1fr 320px;
		gap: 2rem;
	}
}

@media (max-width: 991.98px) {
	.articles-wrapper {
		padding-top: 100px;
		padding-bottom: 60px;
	}

	.articles-layout {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.articles-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 1.5rem;
	}

	.sidebar-widget {
		margin-bottom: 0;
	}
}

@media (max-width: 767.98px) {
	.articles-hero {
		padding: 1.5rem 0 2rem;
		margin-bottom: 2rem;
	}

	.articles-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.articles-filters {
		margin-bottom: 2rem;
	}

	.filters-list {
		gap: 0.5rem;
	}

	.filter-link {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}

	.article-card-content {
		padding: 1.25rem;
	}

	.article-card-title {
		font-size: 1.1rem;
	}

	.article-card-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.articles-pagination .page-numbers {
		min-width: 2.5rem;
		height: 2.5rem;
		font-size: 0.85rem;
	}

	.articles-sidebar {
		grid-template-columns: 1fr;
	}

	.sidebar-widget {
		padding: 1.5rem;
	}
}

/* ============================================
   FEATURED ARTICLE (premier article mis en avant)
   ============================================ */

.article-card.featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	border: 1px solid rgba(74, 158, 255, 0.2);
}

.article-card.featured .article-card-image {
	aspect-ratio: auto;
	min-height: 300px;
}

.article-card.featured .article-card-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.5rem;
}

.article-card.featured .article-card-title {
	font-size: 1.5rem;
}

.article-card.featured .article-card-excerpt {
	-webkit-line-clamp: 4;
	font-size: 0.95rem;
}

.featured-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.4rem 1rem;
	background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
	border-radius: 50px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #ffffff;
	z-index: 10;
}

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

	.article-card.featured .article-card-image {
		min-height: 200px;
	}

	.article-card.featured .article-card-content {
		padding: 1.75rem;
	}

	.article-card.featured .article-card-title {
		font-size: 1.25rem;
	}
}

