/* Styles pour la section Actualités FNM */

:root {
    --fnm-primary: #ff4d1c;
    --fnm-primary-dark: #e63946;
    --fnm-primary-light: #ff6a3c;
    --fnm-secondary: #64748b;
    --fnm-success: #059669;
    --fnm-danger: #dc2626;
    --fnm-orange-50: #fff7ed;
    --fnm-orange-100: #ffedd5;
    --fnm-orange-200: #fed7aa;
    --fnm-orange-300: #fdba74;
    --fnm-orange-400: #fb923c;
    --fnm-orange-500: #f97316;
    --fnm-orange-600: #ea580c;
    --fnm-orange-700: #c2410c;
    --fnm-orange-800: #9a3412;
    --fnm-orange-900: #7c2d12;
}

/* Container principal */
.news-container {
    background: #f8fafc;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 77, 28, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 77, 28, 0.01) 0%, transparent 50%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Header de la page actualités */
.news-header {
    background: linear-gradient(135deg, var(--fnm-primary) 0%, var(--fnm-primary-dark) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 25px -5px rgba(255, 77, 28, 0.1), 0 10px 10px -5px rgba(255, 77, 28, 0.04);
}

.news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.news-header-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    text-align: center;
}

.news-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Statistiques */
.news-stats {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--fnm-primary);
}

.news-stats p {
    margin: 0;
    color: var(--fnm-secondary);
    font-weight: 500;
}

/* Grille des actualités */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Carte d'actualité */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 77, 28, 0.1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(255, 77, 28, 0.1), 0 10px 10px -5px rgba(255, 77, 28, 0.04);
    border-color: var(--fnm-primary);
}

/* Image de l'actualité */
.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fnm-orange-100) 0%, var(--fnm-orange-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder i {
    font-size: 3rem;
    color: var(--fnm-primary);
    opacity: 0.6;
}

/* Badge de date */
.news-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 1rem;
}

.news-date-badge span {
    background: var(--fnm-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Contenu de la carte */
.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fnm-orange-800);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--fnm-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de la carte */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.news-author {
    font-size: 0.75rem;
    color: var(--fnm-secondary);
    opacity: 0.8;
}

.news-read-more {
    color: var(--fnm-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.news-read-more:hover {
    color: var(--fnm-primary-dark);
    transform: translateX(4px);
}

.news-read-more svg {
    margin-left: 0.5rem;
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.news-read-more:hover svg {
    transform: translateX(2px);
}

/* État vide */
.news-empty {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px dashed var(--fnm-orange-200);
}

.news-empty i {
    font-size: 4rem;
    color: var(--fnm-orange-300);
    margin-bottom: 1rem;
}

.news-empty h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fnm-secondary);
    margin-bottom: 0.5rem;
}

.news-empty p {
    color: var(--fnm-secondary);
    opacity: 0.8;
}

/* Badge musée */
.museum-badge {
    background: var(--fnm-orange-100);
    color: var(--fnm-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .news-container {
        padding: 1rem 0;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .news-header-content {
        padding: 2rem 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-content {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(2) {
    animation-delay: 0.1s;
}

.news-card:nth-child(3) {
    animation-delay: 0.2s;
}

.news-card:nth-child(4) {
    animation-delay: 0.3s;
}

.news-card:nth-child(5) {
    animation-delay: 0.4s;
}

.news-card:nth-child(6) {
    animation-delay: 0.5s;
}
