/* =========================================================================
   N3XUS TACTICAL ARCHIVE V16 - MOBILE FIRST & GPU
   ========================================================================= */

.n3x-archive-root {
    background: var(--color-void, #050505);
    padding-top: 4rem;
}

/* --- HEADER HUD --- */
.n3x-archive-header {
    margin-bottom: 3rem;
}

.n3x-hud-line {
    width: 40px; height: 3px; background: var(--cyber-red, #ff2851);
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--cyber-red, #ff2851);
}

.n3x-page-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
}

.n3x-query-log {
    font-family: var(--font-mono, monospace);
    color: var(--text-mineral, #8b8b8f);
    font-size: 11px;
    margin-top: 10px;
    line-height: 1.5;
}

/* --- BANNIÈRE PUB HAUTE --- */
.n3x-ad-top-zone {
    margin: 0 auto 3rem auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- LAYOUT GRID (MOBILE FIRST) --- */
.n3x-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne par défaut sur mobile */
    gap: 3rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .n3x-dashboard-layout {
        grid-template-columns: 1fr 320px; /* Passage en mode Desktop + Sidebar */
    }
}

/* --- NEURAL GRID (CARTES ARTICLES) --- */
.n3x-main-stream {
    width: 100%;
}

.n3x-neural-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 col mobile */
    gap: 2rem;
}

@media (min-width: 768px) {
    .n3x-neural-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols tablette/desktop */
    }
}

/* --- DATA NODE (CARTE HOLO-TILT) --- */
.n3x-data-node {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0); /* Ignition GPU */
    transition: border-color 0.4s ease;
}

.node-link {
    display: block;
    width: 100%; height: 100%;
    text-decoration: none;
}

.n3x-data-node:hover {
    border-color: var(--cyber-red, #ff2851);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 40, 81, 0.1);
}

.node-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: grayscale(0.8) brightness(0.6) contrast(1.2);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.n3x-data-node:hover .node-image {
    filter: grayscale(0.1) brightness(0.9) contrast(1.1);
    transform: scale(1.05);
}

.node-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, #050505 5%, transparent 60%);
    z-index: 2;
}

.node-content {
    position: relative; z-index: 10;
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
}

.node-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.node-tag { color: var(--cyber-red, #ff2851); font-weight: 800; margin-right: 10px; text-transform: uppercase; }
.node-date { color: var(--text-mineral, #8b8b8f); }

.node-title { 
    color: white; 
    font-size: clamp(1.1rem, 2vw, 1.3rem); 
    font-weight: 800; 
    line-height: 1.25; 
    margin: 0; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

/* --- SIDEBAR STICKY (CONTROL PANEL) --- */
.n3x-side-panel {
    display: none; /* Masquée sur mobile pour focus le contenu */
}

@media (min-width: 1024px) {
    .n3x-side-panel { display: block; }
    .n3x-sticky-bundle {
        position: sticky;
        /* Le calcul s'adapte à la hauteur de ton header pour ne pas passer dessous au scroll */
        top: calc(var(--header-height, 75px) + 2rem);
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

.panel-header {
    font-family: var(--font-mono, monospace);
    color: var(--cyber-red, #ff2851); 
    font-size: 11px; 
    font-weight: 800;
    margin-bottom: 1.2rem; 
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.n3x-cat-list { list-style: none; padding: 0; margin: 0; }
.n3x-cat-list li { margin-bottom: 12px; }
.n3x-cat-list a { 
    font-family: var(--font-mono, monospace);
    color: var(--text-mineral, #8b8b8f); 
    text-decoration: none; 
    font-size: 12px; 
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.n3x-cat-list a:hover { 
    color: white; 
    transform: translateX(5px); /* Micro-interaction UI */
}

/* --- PAGINATION --- */
.n3x-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
.n3x-pagination .nav-links {
    display: flex; gap: 8px;
}
.n3x-pagination a, .n3x-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #0a0a0c; border: 1px solid rgba(255,255,255,0.1);
    color: white; font-family: var(--font-mono, monospace); font-weight: 700;
    text-decoration: none; transition: 0.3s;
}
.n3x-pagination .current, .n3x-pagination a:hover {
    border-color: var(--cyber-red, #ff2851);
    color: var(--cyber-red, #ff2851);
    background: rgba(255, 40, 81, 0.05);
}