/* Styles pour la section nouvelles sur la page d'accueil */
.recent-nouvelles {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.recent-nouvelles h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #00587C;
    font-size: 2rem;
}

.nouvelles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.nouvelle-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nouvelle-card.has-thumbnail {
    padding: 0;
}

.nouvelle-card:not(.has-thumbnail) {
    padding: 25px;
}

.nouvelle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nouvelle-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.nouvelle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nouvelle-thumbnail.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
}

.nouvelle-thumbnail.no-image i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.nouvelle-thumbnail.no-image p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.nouvelle-card:hover .nouvelle-thumbnail img:not([src$=".svg"]) {
    transform: scale(1.05);
}

.nouvelle-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nouvelle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: #6c757d;
}

.nouvelle-header time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nouvelle-source {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.nouvelle-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.nouvelle-title a {
    color: #00587C;
    text-decoration: none;
    display: flex;
    align-items: start;
    gap: 8px;
}

.nouvelle-title a:hover {
    color: #00416d;
    text-decoration: underline;
}

.nouvelle-title .fa-external-link-alt {
    font-size: 0.75rem;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: 4px;
}

.nouvelle-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex: 1;
}

.nouvelle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: auto;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nouvelles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nouvelle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .nouvelle-card {
        padding: 20px;
    }
}