/* ========================================
   DERNIÈRES NEWS - Style 2025 épuré
   Cards modernes sur 2 colonnes
======================================== */

.latest-news-section {
    margin: 3rem 3rem;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700; /* Jaune gaming */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   GRILLE 3 COLONNES (15 news)
======================================== */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========================================
   CARDS MODERNES ÉPURÉES
======================================== */
.news-card-modern {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(227, 6, 19, 0.3);
    border-color: #9D1313;
}

.news-card-link {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========================================
   IMAGE + BADGE
======================================== */
.news-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0a0a0a;
}

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

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

/* Badge catégorie - Style Eurogamer */
.news-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Note circulaire (pour tests) - Positionné en haut à droite */
.news-card-modern .test-rating {
    position: absolute;
    top: 1rem;
    right: 1rem; /* À droite pour éviter conflit avec badge catégorie */
    left: auto;
    width: 50px;
    height: 50px;
    z-index: 10;
}

.news-card-modern .rating-value {
    font-size: 1.2rem;
}

/* ========================================
   CONTENU DE LA CARD
======================================== */
.news-card-content {
    padding: 0.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #9D1313;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3 lignes max pour le titre */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
    margin-bottom: 0.5rem;
}

.news-card-modern:hover .news-card-title {
    color: #FFD700;
}

/* Extrait de l'article (3 lignes) */
.news-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: black;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3 lignes max pour l'extrait */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

/* ========================================
   META (date + heure)
======================================== */
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #2a2a2a;
}

.news-meta-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.news-meta-datetime svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ========================================
   BOUTON CTA "Voir toutes les actualités"
======================================== */
.news-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.news-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #E30613 0%, #c00510 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.news-cta-button:hover {
    background: linear-gradient(135deg, #ff0015 0%, #E30613 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.5);
}

.news-cta-button svg {
    transition: transform 0.3s ease;
}

.news-cta-button:hover svg {
    transform: translateX(4px);
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablette (< 1024px) */
@media (max-width: 1024px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .news-card-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

/* Tablette portrait (< 768px) */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card-image {
        height: 200px;
    }
    
    .news-card-content {
        padding: 1rem;
    }
    
    .news-cta-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 800px) {
    .latest-news-section {
        margin: 1rem 1rem;
        padding: 0 0rem;
    }
}

/* Mobile (< 480px) */
@media (max-width: 480px) {
    .latest-news-section {
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    
    .news-card-excerpt {
        display: none; /* Masquer l'extrait sur mobile pour gagner de la place */
    }
    
    .news-card-meta {
        font-size: 0.75rem;
    }
}

