/* Styles pour les pages de listing d'articles (tags et catégories) */

.blog-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.blog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.blog-card .card-body {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.blog-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.blog-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-category .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--secondary-color);
    font-weight: 500;
}

.blog-card .card-footer {
    position: relative;
    z-index: 1;
    background: transparent;
    border-top: none;
    padding-top: 0;
}

.blog-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.blog-card .btn-outline-primary {
    color: white;
    border-color: white;
}

.blog-card .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Styles pour la section d'en-tête */
.blog-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-weight: 700;
}

.blog-header .lead {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 767px) {
    .blog-card {
        height: 300px;
    }
    
    .blog-card .card-title {
        font-size: 1.3rem;
    }
}
