/* ===== STYLES SPÉCIFIQUES BLOG ===== */

/* Hero Section - Blog */
.hero-section {
    background: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
}

/* Categories Grid */
.categories-grid .card {
    text-align: center;
    cursor: pointer;
}

.categories-grid .card:hover {
    border-color: var(--primary);
}

.article-count {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Articles Grid */
.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px auto 0 auto;
    justify-content: center;
}


@media (max-width: 1024px) {
    .article-card {
        flex: 0 0 300px;
        width: 300px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        gap: 20px;
    }
    
    .article-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.article-card {
    flex: 0 0 350px;
    width: 350px;
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast) ease;
}

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

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.article-image i {
    font-size: 3rem;
    opacity: 0.8;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-modified {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.article-category {
    text-align: center;
    background: rgba(254, 163, 71, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    width: 180px;        
    margin-right: 15px;   /* largeur fixe du conteneur */
    white-space: nowrap;    /* empêche le texte de passer à la ligne */
    overflow: hidden;       /* cache le texte qui dépasse */
    text-overflow: ellipsis;/* ajoute "..." à la fin si le texte est trop long */
}

.article-title {
    display: -webkit-box;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;   /* nombre maximal de lignes */
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    height: 100px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Footer des cartes d'articles (page blog) */
.article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    margin-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.featured-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.featured-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-meta i {
    color: var(--primary);
}

.featured-image {
    height: 300px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.featured-image i {
    font-size: 5rem;
    opacity: 0.7;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

/* Newsletter Signup */
.newsletter-signup {
    text-align: center;
    background: var(--surface);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 0;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 2px solid rgba(254, 163, 71, 0.2);
    border-radius: var(--border-radius-xl);
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast) ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 163, 71, 0.2);
}

.newsletter-form .btn {
    padding: 15px 30px;
    white-space: nowrap;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-content {
        padding: 20px;
    }

    .featured-article {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .newsletter-signup {
        padding: 40px 25px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-input {
        min-width: auto;
        width: 100%;
    }

    .newsletter-form .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .featured-article {
        padding: 30px 20px;
    }
    
    .featured-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ===== STYLES POUR L'AFFICHAGE D'UN ARTICLE INDIVIDUEL ===== */

/* Article Header Section */
.article-header-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.article-breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-header-content .article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-header-content .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-header-content .article-meta i {
    color: var(--primary);
}

.article-header-content .article-category {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.article-header-content .article-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.article-header-content .article-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags .tag {
    background: rgba(254, 163, 71, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(254, 163, 71, 0.2);
}

.article-tags .tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 163, 71, 0.3);
}

/* Article Content Section */
.article-content-section {
    padding: 0;
    background: var(--background);
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.article-main .article-content {
    padding: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-main .article-content h1,
.article-main .article-content h2,
.article-main .article-content h3,
.article-main .article-content h4,
.article-main .article-content h5,
.article-main .article-content h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 2.5em 0 1em 0;
    font-family: 'Playfair Display', serif;
}

.article-main .article-content h1 {
    font-size: 2.5em;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
}

.article-main .article-content h2 {
    font-size: 2em;
    color: var(--primary);
}

.article-main .article-content h3 {
    font-size: 1.5em;
}

.article-main .article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.article-main .article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-main .article-content a:hover {
    border-bottom-color: var(--primary);
    color: var(--secondary);
}

.article-main .article-content blockquote {
    background: rgba(254, 163, 71, 0.05);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
}

.article-main .article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.article-main .article-content ul,
.article-main .article-content ol {
    padding-left: 30px;
    margin: 1.5em 0;
}

.article-main .article-content li {
    margin-bottom: 0.8em;
}

.article-main .article-content ul li::marker {
    color: var(--primary);
}

.article-main .article-content ol li::marker {
    color: var(--primary);
    font-weight: 600;
}

.article-main .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-medium);
}

.article-main .article-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.article-main .article-content pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 25px;
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin: 30px 0;
}

.article-main .article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Article Footer */
.article-footer {
    padding: 40px 50px;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.article-share {
    text-align: center;
    margin-bottom: 40px;
}

.article-share h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Author Bio */
.author-bio {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(254, 163, 71, 0.1);
}

.author-bio h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.author-bio h5 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.author-bio p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border-top: 4px solid var(--primary);
}

.sidebar-widget h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-article {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.5);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-article:hover {
    background: white;
    border-color: rgba(254, 163, 71, 0.2);
    transform: translateX(5px);
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--primary);
}

.related-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, rgba(254, 163, 71, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.newsletter-widget p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-widget .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-widget input {
    padding: 15px;
    border: 2px solid rgba(254, 163, 71, 0.2);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-widget input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 163, 71, 0.1);
}

/* CTA Widget */
.cta-widget {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-top: none;
}

.cta-widget h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-widget .btn {
    background: white;
    color: var(--primary);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-widget .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Article Navigation */
.article-navigation {
    padding: 40px 0;
    background: var(--surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Responsive pour article individuel */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-header-section {
        padding: 30px 0;
    }
    
    .article-header-content .article-title {
        font-size: 2.2rem;
    }
    
    .article-header-content .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .article-featured-image img {
        height: 250px;
    }
    
    .article-main .article-content {
        padding: 30px 25px;
        font-size: 1rem;
    }
    
    .article-footer {
        padding: 30px 25px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .article-header-content .article-title {
        font-size: 1.8rem;
    }
    
    .article-header-content .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-main .article-content {
        padding: 25px 20px;
    }
    
    .article-footer {
        padding: 25px 20px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
    }
    
    .related-article {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
    }
}

/* ===== IMAGES PAR DÉFAUT POUR ARTICLES ===== */

/* Images de placeholder avec gradients colorés */
.article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.article-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
}

.article-placeholder-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-placeholder-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.article-placeholder-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.article-placeholder-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Hero placeholder pour page article individuel */
.article-hero-placeholder {
    height: 400px;
    border-radius: var(--border-radius-lg);
}

.placeholder-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.placeholder-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .article-hero-placeholder {
        height: 300px;
    }
    
    .placeholder-content h2 {
        font-size: 1.8rem;
    }
    
    .placeholder-content i {
        font-size: 3rem;
    }
}

/* ===== STYLES POUR LA RECHERCHE ===== */

.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 30px;
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.search-container {
    position: relative;
    flex: 1;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(254, 163, 71, 0.2);
    border-radius: var(--border-radius-lg);
    background: white;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 163, 71, 0.1), var(--shadow-medium);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    right: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: var(--primary);
}

.search-loader {
    position: absolute;
    right: 15px;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Conteneur des articles avec transition */
#articlesContainer {
    transition: opacity 0.3s ease;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.search-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-empty p {
    font-size: 1.1rem;
    margin: 0;
}


/* Catégories Select */
.blog-filters select {
    padding: 15px 20px;
    border: 2px solid rgba(254, 163, 71, 0.2);
    border-radius: var(--border-radius-lg);
    background: white;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.blog-filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 163, 71, 0.1), var(--shadow-medium);
}

/* Responsive pour les filtres */
@media (min-width: 768px) {
    .blog-filters {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .search-container {
        flex: 2;
    }
    
    .blog-filters select {
        flex: 1;
        min-width: auto;
    }
}

/* Messages d'alerte pour newsletter */
.newsletter-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STYLES POUR LAYOUT CLASSIQUE DE L'ARTICLE ===== */

.article-classic-layout {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.article-main-classic {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-main-classic .article-content {
    padding: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-main-classic .article-content h1,
.article-main-classic .article-content h2,
.article-main-classic .article-content h3,
.article-main-classic .article-content h4,
.article-main-classic .article-content h5,
.article-main-classic .article-content h6 {
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

.article-main-classic .article-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.article-main-classic .article-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.article-main-classic .article-content p {
    margin-bottom: 1.5em;
}

.article-main-classic .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2em 0;
    box-shadow: var(--shadow-medium);
}

.article-main-classic .article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 30px;
    margin: 2em 0;
    background: rgba(254, 163, 71, 0.05);
    border-radius: var(--border-radius);
    font-style: italic;
    color: var(--text-secondary);
}

.article-main-classic .article-content ul,
.article-main-classic .article-content ol {
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.article-main-classic .article-content li {
    margin-bottom: 0.5em;
}

/* Footer classique de l'article */
.article-footer-classic {
    background: rgba(248, 250, 252, 0.8);
    padding: 40px 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.article-footer-classic .article-share {
    text-align: center;
    margin-bottom: 40px;
}

.article-footer-classic .article-share h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.article-footer-classic .share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.article-footer-classic .share-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    overflow: hidden;
}

.article-footer-classic .share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.article-footer-classic .share-btn:hover::before {
    left: 100%;
}

.article-footer-classic .share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.article-footer-classic .share-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.article-footer-classic .share-btn:hover i {
    transform: rotate(10deg);
}

.article-footer-classic .share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.article-footer-classic .share-btn.facebook:hover {
    background: linear-gradient(135deg, #166fe5 0%, #3b94e0 100%);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.article-footer-classic .share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #29b6f6 100%);
}

.article-footer-classic .share-btn.twitter:hover {
    background: linear-gradient(135deg, #1991db 0%, #26a0de 100%);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.article-footer-classic .share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.article-footer-classic .share-btn.linkedin:hover {
    background: linear-gradient(135deg, #006ba1 0%, #0090c4 100%);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.article-footer-classic .share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #4fce5d 100%);
}

.article-footer-classic .share-btn.whatsapp:hover {
    background: linear-gradient(135deg, #22c55e 0%, #46bb52 100%);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Bio auteur classique */
.author-bio-classic {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(254, 163, 71, 0.1);
}

.author-avatar {
    font-size: 4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.author-bio-classic .author-info h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.author-bio-classic .author-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Section articles similaires */
.related-articles-section {
    padding: 80px 0;
    background: var(--surface);
    position: relative;
}

.related-articles-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 200px;
    background: linear-gradient(to left, var(--surface), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .related-articles-section::after {
        opacity: 1;
    }
}

.related-articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px auto 0 auto;
    justify-content: center;
}

.related-article-card {
    flex: 0 0 300px;
    width: 300px;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast) ease;
}

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

.related-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.related-card-content {
    padding: 25px;
}

.related-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.related-card-category {
    background: rgba(254, 163, 71, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.related-card-date {
    color: var(--text-secondary);
}

.related-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: var(--primary);
}

.related-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.related-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Newsletter section en bas */
.newsletter-section-bottom {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.newsletter-content-bottom {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.newsletter-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.newsletter-form-bottom {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-form-group input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
}

.newsletter-form-group input::placeholder {
    color: var(--text-secondary);
}

.newsletter-form-group button {
    padding: 18px 30px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form-group button:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section CTA Contact */
.cta-contact-section {
    padding: 80px 0;
    background: var(--surface);
}

.cta-contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-contact-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-contact-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Responsive pour layout classique */
@media (max-width: 768px) {
    .article-classic-layout {
        width: 95%;
        padding: 20px 0;
    }

    .article-content-section .container {
        max-width: 100%;
        padding: 0;
    }

    .article-main-classic {
        width: 100%;
        margin: 0;
        border-radius: 10px;
    }

    .article-main-classic .article-content {
        padding: 20px 5%;
        font-size: 1rem;
    }

    .article-footer-classic {
        padding: 20px 5%;
    }

    .article-footer-classic .share-buttons {
        gap: 8px;
        justify-content: center;
    }

    .article-footer-classic .share-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .article-footer-classic .share-btn i {
        font-size: 1rem;
    }

    .author-bio-classic {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 20px 15px;
        gap: 15px;
    }

    .author-avatar {
        font-size: 2.5rem;
    }

    .author-bio-classic .author-info h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .author-bio-classic .author-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .related-articles-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 10px 5px;
        margin: 30px 0;
        justify-content: flex-start;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) rgba(254, 163, 71, 0.1);
    }

    .related-articles-grid::-webkit-scrollbar {
        height: 8px;
    }

    .related-articles-grid::-webkit-scrollbar-track {
        background: rgba(254, 163, 71, 0.1);
        border-radius: 10px;
    }

    .related-articles-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .related-articles-grid::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
    }

    .related-article-card {
        flex: 0 0 280px;
        width: 280px;
        scroll-snap-align: start;
    }
    
    .newsletter-text h3 {
        font-size: 1.8rem;
    }
    
    .newsletter-form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-contact-text h3 {
        font-size: 1.8rem;
    }
    
    .cta-contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ===== MODE SOMBRE POUR LES ARTICLES ===== */

body.dark-mode .article-classic-layout {
    background: var(--background);
}

body.dark-mode .article-main-classic {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(254, 163, 71, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 1px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .article-main-classic .article-content {
    color: var(--text-primary);
}

body.dark-mode .article-main-classic .article-content h1,
body.dark-mode .article-main-classic .article-content h2,
body.dark-mode .article-main-classic .article-content h3,
body.dark-mode .article-main-classic .article-content h4,
body.dark-mode .article-main-classic .article-content h5,
body.dark-mode .article-main-classic .article-content h6 {
    color: var(--text-primary);
}

body.dark-mode .article-main-classic .article-content h2 {
    border-bottom-color: var(--primary);
}

body.dark-mode .article-main-classic .article-content h3 {
    color: var(--primary);
}

body.dark-mode .article-main-classic .article-content blockquote {
    background: rgba(254, 163, 71, 0.1);
    border-left-color: var(--primary);
    color: var(--text-secondary);
}

body.dark-mode .article-footer-classic {
    background: rgba(30, 30, 46, 0.8);
    border-top: 1px solid rgba(254, 163, 71, 0.1);
}

body.dark-mode .article-footer-classic .article-share h4 {
    color: var(--text-primary);
}

body.dark-mode .article-footer-classic .share-btn {
    border: 2px solid rgba(254, 163, 71, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(254, 163, 71, 0.1);
}

body.dark-mode .article-footer-classic .share-btn:hover {
    border-color: rgba(254, 163, 71, 0.4);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(254, 163, 71, 0.3),
        0 0 20px rgba(254, 163, 71, 0.1);
    transform: translateY(-3px) scale(1.05);
}

body.dark-mode .article-footer-classic .share-btn.facebook:hover {
    box-shadow: 
        0 8px 30px rgba(24, 119, 242, 0.3),
        0 0 0 1px rgba(254, 163, 71, 0.3),
        0 0 20px rgba(24, 119, 242, 0.2);
}

body.dark-mode .article-footer-classic .share-btn.twitter:hover {
    box-shadow: 
        0 8px 30px rgba(29, 161, 242, 0.3),
        0 0 0 1px rgba(254, 163, 71, 0.3),
        0 0 20px rgba(29, 161, 242, 0.2);
}

body.dark-mode .article-footer-classic .share-btn.linkedin:hover {
    box-shadow: 
        0 8px 30px rgba(0, 119, 181, 0.3),
        0 0 0 1px rgba(254, 163, 71, 0.3),
        0 0 20px rgba(0, 119, 181, 0.2);
}

body.dark-mode .article-footer-classic .share-btn.whatsapp:hover {
    box-shadow: 
        0 8px 30px rgba(37, 211, 102, 0.3),
        0 0 0 1px rgba(254, 163, 71, 0.3),
        0 0 20px rgba(37, 211, 102, 0.2);
}

body.dark-mode .author-bio-classic {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(254, 163, 71, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 1px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .author-bio-classic .author-info h4 {
    color: var(--text-primary);
}

body.dark-mode .author-bio-classic .author-info p {
    color: var(--text-secondary);
}

body.dark-mode .author-avatar {
    color: var(--primary);
}

/* Articles similaires en mode sombre */
body.dark-mode .related-articles-section {
    background: var(--background);
}

body.dark-mode .related-article-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(254, 163, 71, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 1px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .related-article-card:hover {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .related-card-category {
    background: rgba(254, 163, 71, 0.2);
    color: var(--primary);
}

body.dark-mode .related-card-date {
    color: var(--text-secondary);
}

body.dark-mode .related-card-title a {
    color: var(--text-primary);
}

body.dark-mode .related-card-title a:hover {
    color: var(--primary);
}

body.dark-mode .related-card-excerpt {
    color: var(--text-secondary);
}

body.dark-mode .read-more-btn {
    color: var(--primary);
}

body.dark-mode .read-more-btn:hover {
    color: var(--secondary);
}

/* Newsletter section en mode sombre */
body.dark-mode .newsletter-section-bottom {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

body.dark-mode .newsletter-form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(254, 163, 71, 0.3);
    color: var(--text-primary);
}

body.dark-mode .newsletter-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .newsletter-form-group button {
    background: var(--primary);
    color: var(--background);
}

body.dark-mode .newsletter-form-group button:hover {
    background: var(--accent);
}

/* CTA Contact en mode sombre */
body.dark-mode .cta-contact-section {
    background: var(--background);
}

body.dark-mode .cta-contact-text h3 {
    color: var(--text-primary);
}

body.dark-mode .cta-contact-text p {
    color: var(--text-secondary);
}

/* Messages newsletter en mode sombre */
body.dark-mode .newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

body.dark-mode .newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Header d'article en mode sombre */
body.dark-mode .article-header-section {
    background: var(--background);
}

body.dark-mode .article-breadcrumb a {
    color: var(--primary);
}

body.dark-mode .article-breadcrumb span {
    color: var(--text-secondary);
}

body.dark-mode .article-meta {
    color: var(--text-secondary);
}

body.dark-mode .article-title {
    color: var(--text-primary);
}

body.dark-mode .article-excerpt {
    color: var(--text-secondary);
}

body.dark-mode .article-category {
    background: rgba(254, 163, 71, 0.2);
    color: var(--primary);
}

body.dark-mode .article-modified {
    color: var(--text-secondary);
}

body.dark-mode .tag {
    color: var(--primary);
}

body.dark-mode .tag:hover {
    color: var(--secondary);
}

/* Section content en mode sombre */
body.dark-mode .article-content-section {
    background: var(--surface);
}