/**
 * Home Page Styles - Page d'accueil
 */

/* Hero section pour la page d'accueil */
.home .site-main {
	margin-bottom: 0;
}

.home-hero {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: #fff;
	padding: 4rem 2rem;
	border-radius: var(--radius-lg);
	margin-bottom: 3rem;
	text-align: center;
}

.home-hero h1 {
	color: #fff;
	font-size: 2.5rem;
	margin: 0 0 1rem;
}

.home-hero p {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	opacity: 0.95;
}

.home-hero .cta-button {
	display: inline-block;
	padding: 1rem 2rem;
	background: #fff;
	color: var(--primary-color);
	font-weight: 600;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: all 0.2s ease;
}

.home-hero .cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Articles grid sur la page d'accueil */
.home .posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
}

@media (min-width: 768px) {
	.home .posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.home .posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.home .post {
	background: #fff;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.home .post:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.home .post-thumbnail {
	margin-bottom: 0;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.home .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.3s ease;
}

.home .post:hover .post-thumbnail img {
	transform: scale(1.05);
}

.home .entry-header {
	padding: 1.5rem 1.5rem 0;
	margin-bottom: 1rem;
}

.home .entry-title {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.home .entry-meta {
	font-size: 0.8rem;
	margin-bottom: 0;
}

.home .entry-content,
.home .entry-summary {
	padding: 0 1.5rem;
	margin: 0.5rem 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home .entry-footer {
	padding: 1rem 1.5rem 1.5rem;
	margin-top: 1rem;
	border-top: none;
}

.home .more-link {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: var(--primary-color);
	color: #fff;
	border-radius: var(--radius-md);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.2s ease;
	margin-top: 0;
}

.home .more-link:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
}

/* Featured posts section */
.home-featured {
	background: #f9fafb;
	padding: 3rem 2rem;
	border-radius: var(--radius-lg);
	margin-bottom: 3rem;
}

.home-featured h2 {
	text-align: center;
	margin-bottom: 2rem;
}

/* Categories showcase */
.home-categories {
	margin-bottom: 3rem;
}

.home-categories h2 {
	text-align: center;
	margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
	.categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.category-card {
	background: #fff;
	padding: 2rem;
	border-radius: var(--radius-lg);
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
	border-color: var(--primary-color);
}

.category-card h3 {
	margin: 0 0 0.5rem;
	color: var(--primary-color);
}

.category-card p {
	margin: 0;
	color: #6b7280;
	font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
	.home-hero {
		padding: 2rem 1rem;
	}

	.home-hero h1 {
		font-size: 1.75rem;
	}

	.home-hero p {
		font-size: 1rem;
	}

	.home-featured {
		padding: 2rem 1rem;
	}
}
