/* Styles spécifiques au blog */

.blog-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.blog-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.blog-hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
}

.blog-main {
    max-width: 1200px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Empêcher le débordement des enfants de la grille */
.blog-container {
    min-width: 0;
    overflow: hidden;
}

/* Filtres */
.blog-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.filter-btn:hover {
    background: #e8e8e8;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Articles */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: grid;
}

.blog-post-card.has-image {
    grid-template-columns: 300px 1fr;
}

.blog-post-card.no-image {
    grid-template-columns: 1fr;
}

.blog-post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-post-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-post-header {
    padding: 2rem;
    background: #fafafa;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-post-date {
    display: flex;
    align-items: center;
}

.blog-post-date::before {
    content: "📅";
    margin-right: 0.5rem;
}

.blog-post-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 1rem 0;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 0 2rem 2rem;
}

.blog-post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.blog-post-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-tag {
    background: #f0f0f0;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    margin-left: 0.5rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.6rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #e8e8e8;
}

.pagination-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.blog-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1.5rem;
    background: #fafafa;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.sidebar-widget p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 0.8rem;
}

.categories-list a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.categories-list a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s;
}

.recent-posts a:hover {
    color: var(--accent-color);
}

.recent-post-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 1rem;
        margin-top: 100px;
    }

    .blog-hero-content h1 {
        font-size: 2rem;
        letter-spacing: 1px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .blog-hero-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .blog-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
        padding: 0 1rem;
        max-width: 100%;
    }

    .blog-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .blog-sidebar {
        display: none;
    }

    .blog-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        letter-spacing: 0;
    }

    .blog-post-card,
    .blog-post-card.has-image,
    .blog-post-card.no-image {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .blog-post-image {
        height: 200px;
        width: 100%;
    }

    .blog-post-image img {
        max-width: 100%;
    }

    .blog-post-right {
        max-width: 100%;
        overflow: hidden;
    }

    .blog-post-title {
        font-size: 1.2rem;
        letter-spacing: 0;
    }

    .blog-post-header {
        padding: 1rem;
    }

    .blog-post-content {
        padding: 0 1rem 1rem;
    }

    .blog-pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}
