/* Styles spécifiques au blog */
.blog-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-content {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.blog-card h2 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.blog-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.blog-post {
    padding: 120px 0 60px;
}

.blog-post .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
}

.blog-post-standalone .container {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.post-header {
    margin-bottom: 3rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
}

.post-date {
    color: var(--text-light);
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: var(--background-alt);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.code-block {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block h4 {
    color: #50fa7b;
    margin-bottom: 1rem;
}

.code-block pre {
    margin: 0;
}

.cta-box {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.post-sidebar {
    padding-left: 2rem;
}

.author-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.related-posts,
.newsletter-signup {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.related-posts ul {
    list-style: none;
}

.related-posts li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-posts a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-posts a:hover {
    color: var(--primary-color);
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-signup input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .blog-post .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        padding-left: 0;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
}