#actualites-recentes {
    padding: 80px 0;
    background-color: #f9f9f9;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(249,249,249,0.9)), url('images/background.png');
    background-attachment: fixed;
    background-size: cover;
}

#actualites-recentes h2 {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-size: 36px;
}

#actualites-recentes h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #e67e22;
    margin: 15px auto 0;
    border-radius: 2px;
}

.actualites-recentes-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.6;
    color: #555;
    font-size: 18px;
}

.actualites-recentes-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.actualite-recente-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    width: 30%;
    min-width: 280px;
    height: auto;
    min-height: 420px; /* Augmentation de la hauteur minimale */
}

.actualite-recente-image {
    height: 180px; /* Hauteur fixe pour l'image */
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.actualite-recente-texte {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Assure l'affichage des points de suspension */
}

.actualite-recente-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.15);
}

.actualite-recente-image {
    flex: 0 0 35%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.actualite-recente-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actualite-recente-item:hover .actualite-recente-image::before {
    opacity: 1;
}

.actualite-recente-content {
    flex: 0 0 65%;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.actualite-recente-date {
    font-size: 14px;
    color: #e67e22;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.actualite-recente-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    margin-right: 8px;
    font-weight: 900;
}

.actualite-recente-titre {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.actualite-recente-item:hover .actualite-recente-titre {
    color: #e67e22;
}

.actualite-recente-texte {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.actualite-recente-lien {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: #e67e22;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.actualite-recente-lien::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e67e22;
    transition: width 0.3s ease;
}

.actualite-recente-lien:hover {
    color: #d35400;
}

.actualite-recente-lien:hover::after {
    width: 100%;
}

.actualite-recente-lien i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.actualite-recente-lien:hover i {
    transform: translateX(5px);
}

.voir-toutes-actualites {
    text-align: center;
    margin-top: 20px;
}

.btn-voir-plus {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e67e22;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.btn-voir-plus:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4);
}

@media (max-width: 992px) {
    .actualite-recente-item {
        height: auto;
        flex-direction: column;
    }
    
    .actualite-recente-image {
        flex: 0 0 200px;
        height: 200px;
    }
    
    .actualite-recente-content {
        flex: 1;
    }
}

@media (max-width: 768px) {
    #actualites-recentes {
        padding: 60px 0;
    }
    
    #actualites-recentes h2 {
        font-size: 30px;
    }
    
    .actualites-recentes-intro {
        font-size: 16px;
    }
    
    .actualite-recente-titre {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .actualite-recente-image {
        height: 180px;
    }
    
    .actualite-recente-content {
        padding: 20px;
    }
    
    .actualite-recente-titre {
        font-size: 18px;
    }
    
    .actualite-recente-texte {
        font-size: 15px;
    }
}


.actualite-empty-message {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    color: #6c757d;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.actualite-empty-message i {
    color: #495057;
    animation: pulse 2s infinite;
}

.actualite-empty-message h3 {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 500;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}