/* Blog Styles */

/* Blog Hero */
.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.1);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Search */
.blog-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

.blog-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-date,
.article-category,
.article-read-time {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-category {
    color: var(--primary-color);
    font-weight: 600;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    gap: 15px;
    color: var(--secondary-color);
}

/* Blog Grid */
.blog-grid-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.article-category-badge {
    display: none !important; /* Badges retirés - force hide */
}

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

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: var(--secondary-color);
}

/* Load More */
.blog-load-more {
    text-align: center;
}

.btn-load-more {
    padding: 15px 40px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,102,204,0.3);
}

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

.newsletter-card {
    background: white;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.newsletter-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-newsletter {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,168,232,0.4);
}

.newsletter-privacy {
    color: #6c757d;
    font-size: 0.9rem;
}

.newsletter-privacy i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }

    .blog-subtitle {
        font-size: 1.1rem;
    }

    .blog-categories {
        padding: 0 15px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content {
        padding: 25px;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .newsletter-card {
        padding: 40px 20px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .btn-newsletter {
        width: 100%;
    }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        grid-template-columns: 1fr;
    }
}