/* Styles pour la vue blog améliorée */
.blogposts {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blogpost {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 500px;
}

    .blogpost:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        text-decoration: none;
        color: inherit;
    }

.blogpost-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blogpost-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

    .blogpost-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.sponsor-image img {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
    object-fit: scale-down;
    transition: transform 0.3s ease;
}

.blogpost:hover .blogpost-image img {
    transform: scale(1.05);
}

.blogpost-content {
    padding: 1.5rem;
}

.blogpost-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blogpost-info {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
}

.blogpost-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-more {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blogpost-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1f2937;
}

.blogpost-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.reading-time {
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pagination */
.pagination {
    display: block;
    margin-top: 3rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1rem;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .nav-link:hover:not(.nav-link--disabled):not(.nav-link--current) {
        background: #f3f4f6;
        border-color: #d1d5db;
        transform: translateY(-1px);
    }

.nav-link--current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.nav-link--disabled {
    color: #9ca3af;
    border-color: #f3f4f6;
    cursor: not-allowed;
}

.nav-link--ellipsis {
    border: none;
    background: none;
    color: #6b7280;
    cursor: default;
}

.nav-link--prev:hover,
.nav-link--next:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 768px) {
    .blogposts {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .blogpost-meta {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .blogpost-content {
        padding: 1rem;
    }

    .blogpost-title {
        font-size: 1.25rem;
    }

    .pagination-controls {
        gap: 0.25rem;
    }

    .nav-link {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}
