@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff006e;
    --neon-purple: #8b00ff;
    --neon-green: #39ff14;
    --dark-bg: #0a0e27;
    --darker-bg: #050816;
    --card-bg: rgba(20, 25, 50, 0.9);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Neural Network Canvas */
#neural-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

/* Navigation */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Main Content */
.veille-main {
    min-height: 100vh;
    padding: 8rem 4rem 4rem;
    position: relative;
    z-index: 2;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-purple);
    z-index: -2;
}

.glitch-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitch-1 2s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-purple);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Categories Navigation */
.categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.category-btn .icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--neon-purple));
}

.category-btn:hover {
    background: rgba(139, 0, 255, 0.1);
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.5);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: #fff;
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.8);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

/* Article Card */
.article-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2), transparent);
    opacity: 0;
    animation: pulse-wave 3s infinite;
}

@keyframes pulse-wave {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 243, 255, 0.6);
    border-color: var(--neon-pink);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-category {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.article-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 243, 255, 0.3);
}

.read-more {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateX(5px);
}

/* Resources Section */
.resources-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(5, 8, 22, 0.5);
    border: 1px solid var(--neon-cyan);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.resource-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.8rem;
}

.resource-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.resource-list a::before {
    content: '▶ ';
    color: var(--neon-pink);
    opacity: 0;
    margin-right: 5px;
    transition: opacity 0.3s ease;
}

.resource-list a:hover {
    color: var(--neon-pink);
    transform: translateX(10px);
}

.resource-list a:hover::before {
    opacity: 1;
}

/* Footer */
.cyber-footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--neon-cyan);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    box-shadow: 0 -5px 20px rgba(0, 243, 255, 0.2);
    margin-top: 4rem;
}

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

.article-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .veille-main {
        padding: 6rem 2rem 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .categories-nav {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}