/* STYLES BLOG TOM */

/* En-tête du blog */
.blog-header {
    text-align: center;
    padding: 30px 20px 25px;
    background: linear-gradient(135deg, var(--tom-blue) 0%, var(--tom-blue-light) 100%);
    color: var(--white);
    border-radius: var(--radius-card);
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 48px;
    color: var(--yellow);
    margin-bottom: 15px;
}

.blog-subtitle {
    font-size: 20px;
    color: var(--white);
    opacity: 0.95;
}

/* Boîte newsletter */
.newsletter-box {
    background: linear-gradient(135deg, var(--tom-green) 0%, #6ab851 100%);
    padding: 30px;
    border-radius: var(--radius-card);
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    width: 100%;
}

.newsletter-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.newsletter-text {
    text-align: left;
    flex: 1;
}

.newsletter-box h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 8px;
}

.newsletter-box p {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 0;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 900px;
    width: 100%;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--tom-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
}

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

.newsletter-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
}

.newsletter-message.success {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: block;
}

.newsletter-message.error {
    background: rgba(203, 0, 0, 0.2);
    color: var(--white);
    border: 2px solid rgba(203, 0, 0, 0.4);
    display: block;
}

/* Grille d'articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: linear-gradient(135deg, var(--tom-blue-light) 0%, var(--tom-teal) 100%);
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.article-category {
    background: var(--tom-green);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.article-card h2 {
    font-size: 24px;
    color: var(--tom-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.article-read-more {
    color: var(--tom-blue);
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.article-card:hover .article-read-more {
    gap: 12px;
}

/* Message aucun article */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.no-articles p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Page article individuel */
.article-page {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.article-header h1 {
    font-size: 42px;
    color: var(--tom-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-header-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-card);
    margin-bottom: 40px;
}

.article-body {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
}

.article-body h2 {
    color: var(--tom-blue);
    font-size: 28px;
    margin: 40px 0 20px;
}

.article-body h3 {
    color: var(--tom-blue);
    font-size: 22px;
    margin: 30px 0 15px;
}

.article-body p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.article-body li {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.article-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.article-body pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-footer {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.back-to-blog {
    display: inline-block;
    padding: 15px 30px;
    background: var(--tom-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-button);
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.back-to-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 25px 15px 20px;
    }
    
    .blog-header h1 {
        font-size: 36px;
    }
    
    .newsletter-box {
        padding: 25px 20px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .newsletter-text {
        text-align: center;
    }
    
    .newsletter-icon {
        font-size: 48px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
    
    .article-body {
        padding: 30px 20px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-body p, .article-body li {
        font-size: 16px;
    }
}
