/* ========================================
   BLOG MAIN STYLES
   ======================================== */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #660033 0%, #85e0e0 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Search Bar */
.blog-search {
    margin-top: 2.5rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

#blog-search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#blog-search-input:focus {
    outline: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Filters Section */
.blog-filters {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: #85e0e0;
    background: #f0fbfb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #660033, #85e0e0);
    color: white;
    border-color: transparent;
}

/* Articles Grid */
.blog-articles {
    padding: 60px 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Colors */
.article-category.telephonie-ip { color: #0066cc; background: rgba(0,102,204,0.1); }
.article-category.ia-integration { color: #7b2cbf; background: rgba(123,44,191,0.1); }
.article-category.crm { color: #00cc66; background: rgba(0,204,102,0.1); }
.article-category.securite { color: #dc3545; background: rgba(220,53,69,0.1); }
.article-category.comparatifs { color: #ff9500; background: rgba(255,149,0,0.1); }
.article-category.assistance { color: #85e0e0; background: rgba(133,224,224,0.1); }

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #660033;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.article-meta i {
    margin-right: 5px;
}

.article-read-more {
    color: #660033;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.article-read-more:hover {
    color: #85e0e0;
    transform: translateX(5px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    background: white;
    border: 2px solid #660033;
    color: #660033;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: #660033;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,0,51,0.3);
}

.btn-load-more i {
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(3px);
}

/* Newsletter Section */
.blog-newsletter {
    background: linear-gradient(135deg, #660033 0%, #85e0e0 100%);
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.btn-newsletter {
    background: white;
    color: #660033;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-newsletter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .filter-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text h2 {
        justify-content: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Container Narrow (for single articles) */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hidden class for filtering */
.article-card.hidden {
    display: none;
}

/* Empty State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1.1rem;
}
