/* ===== STYLES POUR LA PAGE BLOG ===== */

/* Bannière Hero Blog */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero .hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero .hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.blog-stats .stat {
    text-align: center;
}

.blog-stats .number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.blog-stats .label {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
}

/* Section Blog Principale */
.blog-main {
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Filtres blog */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-filters .filter-btn {
    padding: 10px 25px;
    border: 2px solid #FF9800;
    background: transparent;
    color: #FF9800;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
    background-color: #FF9800;
    color: white;
}

/* Grille d'articles */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF9800;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.read-more {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #FF9800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #FF9800;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.article-stats {
    display: flex;
    gap: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background-color: #FF9800;
    color: white;
    border-color: #FF9800;
}

.pagination-next {
    padding: 12px 20px;
    border: 2px solid #FF9800;
    background: transparent;
    color: #FF9800;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pagination-next:hover {
    background-color: #FF9800;
    color: white;
}

.pagination-dots {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #666;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF9800;
}

/* Recherche */
.search-box {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 12px 15px;
    background: #FF9800;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #FF9800;
}

/* Catégories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #555;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #FF9800;
}

.category-count {
    background: #f0f4f8;
    color: #FF9800;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Articles populaires */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.post-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h4 a:hover {
    color: #FF9800;
}

.post-date {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #666;
}

/* Newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, #FF9800, #FF9800);
    color: white;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-widget p {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 15px;
    background: white;
    color: #FF9800;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f4f8;
    color: #FF9800;
    border-radius: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #FF9800;
    color: white;
}

/* Section Newsletter principale */
.blog-newsletter {
    background: #f8f9fa;
    padding: 80px 0;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.newsletter-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.newsletter-main-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #FF9800;
}

.input-group button {
    padding: 15px 25px;
    background: #FF9800;
    color: white;
    border: 2px solid #FF9800;
    border-radius: 0 5px 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group button:hover {
    background: #FF9800;
    border-color: #FF9800;
}

.newsletter-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #666;
    text-align: left;
}

.newsletter-agreement input[type="checkbox"] {
    margin-top: 3px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-hero .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .blog-stats {
        gap: 30px;
    }
    
    .blog-stats .number {
        font-size: 2rem;
    }
    
    .blog-filters {
        gap: 10px;
    }
    
    .blog-filters .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-pagination {
        flex-wrap: wrap;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        border-right: 2px solid #e9ecef;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .input-group button {
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 80px 0 50px;
    }
    
    .blog-main, .blog-newsletter {
        padding: 50px 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .popular-post {
        flex-direction: column;
    }
    
    .post-image {
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
    }
}