/* ========================================
   PAGE D'ACCUEIL - Belgium Vidéo Gaming
   ======================================== */

/* ========================================
   PAGE D'ACCUEIL - Belgium Vidéo Gaming
   ======================================== */

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
.main-layout {
    position: relative;
    /* Suppression de la hauteur minimale qui créait de l'espace vide après le footer */
}

/* ========================================
   MAIN CONTENT - Surcharges spécifiques à l'accueil
   ======================================== */
.main-content {
    /* Surcharge du z-index pour éviter les conflits avec le footer */
    z-index: 1 !important;
    /* Ajout d'un espace avant le footer */
    margin-bottom: 2rem !important;
}

/* ========================================
   SECTIONS - Styles hérités de style.css
   ======================================== */
/* Les styles .section, .section-header, .section-line, .section-title 
   sont définis dans style.css et hérités automatiquement */

/* ========================================
   ARTICLES EN VEDETTE - GRID 3x3 PARFAIT
   ======================================== */
.featured-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: 200px 200px 200px !important;
    gap: 2px !important;
    height: 606px !important;
    min-height: 606px !important;
    max-height: none !important;
    border-radius: 8px;
    overflow: visible !important;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: var(--border);
    position: relative !important;
    width: 100% !important;
}

/* Force le grid pour tous les enfants */
.featured-grid > * {
    display: block !important;
}

/* Article principal - occupe A1, A2, B1, B2 */
.featured-main {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 3 !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.featured-main:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 10;
}

.featured-main:hover img {
    transform: scale(1.1);
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Positionnement des petites cartes dans le grid 3x3 */
.featured-c1 {
    grid-column: 3 !important; /* C1 */
    grid-row: 1 !important;
}

.featured-c2 {
    grid-column: 3 !important; /* C2 */
    grid-row: 2 !important;
}

.featured-d1 {
    grid-column: 1 !important; /* A3 */
    grid-row: 3 !important;
}

.featured-d2 {
    grid-column: 2 !important; /* B3 */
    grid-row: 3 !important;
}

.featured-d3 {
    grid-column: 3 !important; /* C3 */
    grid-row: 3 !important;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    transition: opacity 0.3s ease;
}

.featured-main:hover .featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.featured-content {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 5;
}

.featured-badge {
    background: var(--belgium-yellow);
    color: var(--belgium-black);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem; 
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.featured-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.featured-excerpt {
    color: #e5e5e5;
    font-size: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.featured-small {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.featured-small:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.featured-small:hover img {
    transform: scale(1.1);
}

.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-small .featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.featured-small:hover .featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.featured-small .featured-content {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.featured-small .featured-title {
    font-size: 0.9rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.8);
    font-weight: bold;
    margin-top: 0.25rem;
    color: white;
    display: block;
}

.featured-category {
    background: var(--belgium-red);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    max-width: 75px;
    text-align: center;
}

/* ========================================
   SECTION NEWS
   ======================================== */
   .news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.news-tabs {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.tab-trigger {
    padding: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-trigger.active {
    background: var(--belgium-yellow);
    color: var(--belgium-black);
}

.tab-content {
    display: none;
    padding: 1rem;
}

.tab-content.active {
    display: block;
}

/* ========================================
   CARTES D'ARTICLES
   ======================================== */
   .article-card {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
    margin-bottom: 0.75rem;
    height: 85px; /* Hauteur fixe plus compacte */
    background: white;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-image {
    width: 100px;
    height: 85px;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.15rem;
    padding-top: 0.6rem;
}

.article-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-test {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-news {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-guide {
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.badge-trailers {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-dossiers {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.badge-sponso {
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #f9a8d4;
}

.badge-actu {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-actualités {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-démos {
    background: #667589;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.article-date {
    font-size: 0.65rem;
    color: #666;
}

.article-card .article-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 0.75rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* ========================================
   SECTION TRAILERS
   ======================================== */
   .trailers-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trailers-icon {
    width: 20px;
    height: 20px;
    color: var(--belgium-red);
}

.trailers-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.trailers-container {
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.trailer-item {
    position: relative;
    height: 64px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.trailer-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.trailer-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.trailer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trailer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.trailer-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.trailer-item:hover .trailer-play {
    opacity: 1;
}

.trailer-play-icon {
    width: 24px;
    height: 24px;
    color: var(--belgium-yellow);
}

.trailer-duration {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: var(--belgium-red);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
    font-weight: 600;
}

.trailer-title {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    right: 3rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    color: #ccc;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1000px) {
    .theme-banner-left,
    .theme-banner-right {
        display: none;
    }
    
    .main-content {
        width: 100%;
        padding: 1.5rem 1rem;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .featured-grid {
        height: 500px;
        grid-template-rows: 160px 160px 160px;
    }
    
    .featured-main .featured-title {
        font-size: 1rem;
    }
    
    .featured-small .featured-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 100%;
    }
    
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 150px 150px;
        height: 500px;
        gap: 2px;
    }
    
    .featured-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .featured-c1 {
        grid-column: 1;
        grid-row: 2;
    }
    
    .featured-c2 {
        grid-column: 2;
        grid-row: 2;
    }
    
    .featured-d1 {
        grid-column: 1;
        grid-row: 3;
    }
    
    .featured-d2 {
        grid-column: 2;
        grid-row: 3;
    }
    
    .featured-d3 {
        display: none; /* On cache la 6ème carte sur mobile */
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 180px 120px 120px 120px 120px;
        height: 660px;
    }
    
    .featured-main {
        grid-column: 1;
        grid-row: 1;
    }
    
    .featured-c1 {
        grid-column: 1;
        grid-row: 2;
    }
    
    .featured-c2 {
        grid-column: 1;
        grid-row: 3;
    }
    
    .featured-d1 {
        grid-column: 1;
        grid-row: 4;
    }
    
    .featured-d2 {
        grid-column: 1;
        grid-row: 5;
    }
    
    .featured-d3 {
        display: none;
    }
}
