/* Styles pour la section actualités */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-card .card-text {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.news-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.news-card .btn-outline-primary {
    border-color: #FF6B35;
    color: #FF6B35;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-card .btn-outline-primary:hover {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
    transform: translateY(-1px);
}

/* Modal styles */
#newsModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#newsModal .modal-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

#newsModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#newsModal .btn-close {
    filter: brightness(0) invert(1);
}

#newsModal .modal-body {
    padding: 2rem;
    line-height: 1.7;
}

#newsModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-card .card-body {
        padding: 1.25rem;
    }
    
    .news-card .card-title {
        font-size: 1rem;
    }
    
    .news-card .card-text {
        font-size: 0.85rem;
    }
    
    #newsModal .modal-body {
        padding: 1.5rem;
    }
    
    #newsModal .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.news-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error state */
.news-error {
    text-align: center;
    padding: 3rem 1rem;
}

.news-error .alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Section title styling */
.news-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.news-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .news-section .section-title {
        font-size: 2rem;
    }
    
    .news-section .section-subtitle {
        font-size: 1rem;
    }
}
