/* Styles personnalisés pour la section news - Image au-dessus du contenu */

.news-section .it-blog-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-section .it-blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(228, 33, 37, 0.15);
}

/* Wrapper pour l'image */
.news-section .it-blog-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-section .it-blog-thumb-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Style pour les images */
.news-section .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-section .it-blog-item:hover .news-image {
    transform: scale(1.08);
}

/* Style pour les vidéos YouTube */
.news-section .video-container-news {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.news-section .video-container-news iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Wrapper pour le contenu */
.news-section .it-blog-content-wrapper {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Meta (date) */
.news-section .it-blog-meta {
    margin-bottom: 15px;
}

.news-section .it-blog-meta span {
    color: #e42125;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-section .it-blog-meta svg {
    width: 16px;
    height: 16px;
}

/* Titre */
.news-section .it-blog-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 56px;
    font-weight: 700;
}

.news-section .it-blog-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-section .it-blog-title a:hover {
    color: #e42125;
}

/* Résumé */
.news-section .truncate-resume {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bouton */
.news-section .it-blog-btn {
    margin-top: auto;
}

/* Responsive pour tablettes */
@media (max-width: 991px) {
    .news-section .it-blog-thumb-wrapper {
        height: 240px;
    }
    
    .news-section .it-blog-content-wrapper {
        padding: 25px 20px;
    }
    
    .news-section .it-blog-title {
        font-size: 18px;
        min-height: auto;
    }
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .news-section .it-blog-thumb-wrapper {
        height: 220px;
    }
    
    .news-section .it-blog-content-wrapper {
        padding: 20px 18px;
    }
    
    .news-section .it-blog-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .news-section .truncate-resume {
        font-size: 14px;
        margin-bottom: 20px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* Cacher les anciennes classes si elles existent encore */
.news-section .row.gx-0 {
    display: none !important;
}
