/* Styles pour la liste d'articles en grille */

.articles-list-wrapper {
    padding: 4rem 0;
}

/* Grille d'articles - Utilise Bootstrap Grid avec améliorations */
#articles-grid {
    margin-top: 2rem;
}

#articles-grid .blog-card {
    margin-bottom: 0;
}

/* Carte d'article */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Thumbnail de l'article */
.blog-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.blog-thumbnail a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

/* Contenu de la carte */
.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Auteur et date sur une ligne */
.blog-author-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #666;
}

.blog-author,
.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-author i,
.blog-date i {
    font-size: 0.8rem;
    color: #999;
}

/* Snippet (meta description) */
.blog-snippet {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary, #0056b3);
    background: rgba(0, 86, 179, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(0, 86, 179, 0.15);
    color: var(--color-primary-dark, #004085);
}

/* Titre de l'article */
.blog-title {
    margin: 0 0 1rem 0;
    font-size: 1.875rem !important;
    font-weight: 600;
    line-height: 1.4;
}

.blog-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--color-primary, #0056b3);
}

/* Footer de la carte */
.blog-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-read-more {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--color-primary, #0056b3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--color-primary-dark, #004085);
    gap: 0.75rem;
}

.blog-read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* Filtres */
.gallery-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.gallery-filters .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.gallery-filters .form-control,
.gallery-filters .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gallery-filters .form-control:focus,
.gallery-filters .form-select:focus {
    border-color: var(--color-primary, #0056b3);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    outline: none;
}

/* Responsive */
@media (max-width: 991px) {
    .articles-list-wrapper {
        padding: 3rem 0;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-snippet {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    
    .blog-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    #articles-grid {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .articles-list-wrapper {
        padding: 2rem 0;
    }
    
    .gallery-filters {
        padding: 1rem;
    }
    
    .gallery-filters .row {
        margin: 0;
    }
    
    .gallery-filters .col-lg-4,
    .gallery-filters .col-lg-3,
    .gallery-filters .col-lg-2,
    .gallery-filters .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-author-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .blog-read-more {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        border: 1px solid rgba(0, 86, 179, 0.2);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .blog-read-more:hover {
        background: rgba(0, 86, 179, 0.05);
        border-color: var(--color-primary, #0056b3);
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#articles-grid > div {
    animation: fadeInUp 0.5s ease forwards;
}

#articles-grid > div:nth-child(1) { animation-delay: 0.1s; }
#articles-grid > div:nth-child(2) { animation-delay: 0.2s; }
#articles-grid > div:nth-child(3) { animation-delay: 0.3s; }
#articles-grid > div:nth-child(4) { animation-delay: 0.4s; }
#articles-grid > div:nth-child(5) { animation-delay: 0.5s; }
#articles-grid > div:nth-child(6) { animation-delay: 0.6s; }

#articles-grid > div {
    opacity: 0;
}

