:root {
    --cyber-neon: #D4FF00;
    --anim-speed: 0.6s;
    --anim-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE (FIX WPAUTOP) --- */
/* Si WordPress force un <p>, on "détruit" sa boîte avec contents pour que Flexbox fonctionne */
.cyber-header-wrapper p { display: contents !important; }
.cyber-header-wrapper br { display: none !important; }

.cyber-header-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
}
/* --- BARRE DE PROGRESSION SCROLL (CYBER) --- */
#cyber-scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%; /* Commence à 0% */
    height: 3px; /* Épaisseur de la ligne */
    background-color: var(--cyber-neon); /* Utilise la couleur néon de ton thème */
    z-index: 100000; /* Toujours au premier plan */
    transition: width 0.1s ease-out, height 0.3s var(--anim-curve), box-shadow 0.3s ease;
    box-shadow: 0 0 8px var(--cyber-neon); /* Effet néon lumineux (optionnel, très sympa pour ce thème) */
}
.header-phantom-spacer { height: 115px; background: #000; }


/* Quand la fusion est active (classe ajoutée par le JS) */
.fusion-active #cyber-scroll-progress-bar {
    height: 4px; /* On épaissit légèrement la barre */
    box-shadow: 0 0 15px var(--cyber-neon), 0 0 30px var(--cyber-neon);
}

/* Animation des liens lors de la fusion */
.fusion-active .compact-link {
    color: #fff !important;
    text-shadow: 0 0 8px var(--cyber-neon);
    animation: cyber-flicker 2s infinite;
}

/* Ligne de séparation qui s'illumine lors de la fusion */
.fusion-active .is-sticky .compact-nav.desktop-only {
    border-left-color: var(--cyber-neon);
    box-shadow: -5px 0 10px rgba(212, 255, 0, 0.2);
}

/* Animation de scintillement cybernétique */
@keyframes cyber-flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45% { opacity: 0.3; }
    46% { opacity: 1; }
}


/* --- LOGO IMAGE SVG --- */
.cyber-logo { display: flex; align-items: center; text-decoration: none !important; }
.cyber-logo-img { height: 150px; width: auto; display: block; transition: height var(--anim-speed) var(--anim-curve); }

/* --- BARRE TOP (NEWS) --- */
.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    height: 42px;
    z-index: 100;
    border-bottom: 1px solid #111;
    position: relative;
}

.ticker-container-flex { 
    flex: 1; 
    min-width: 0; 
    overflow: hidden; 
}

/* --- BARRE MAIN (LOGO + NAV) --- */
.header-main-bar {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    height: 80px; 
    overflow: hidden;
    border-bottom: 1px solid #222;
    z-index: 50;
    transition: transform var(--anim-speed) var(--anim-curve), opacity var(--anim-speed) var(--anim-curve), height var(--anim-speed) var(--anim-curve);
}

.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 25px; height: 100%; display: flex; justify-content: space-between; align-items: center; }

/* --- NAVIGATIONS DESKTOP --- */
.full-nav { display: flex; align-items: center; gap: 20px; }
.nav-item { color: #aaa; text-decoration: none; font-size: 12px; font-weight: bold; transition: color 0.3s; font-family: 'Share Tech Mono', monospace; }
.nav-item:hover { color: var(--cyber-neon); }

.system-status { 
    font-size: 10px; color: var(--cyber-neon); border: 1px solid var(--cyber-neon); 
    padding: 4px 10px; border-radius: 3px; font-weight: bold; letter-spacing: 1px;
    font-family: 'Share Tech Mono', monospace; white-space: nowrap;
}

/* NAV COMPACTE (AU SCROLL) */
.compact-nav {
    display: flex; height: 100%; align-items: center; gap: 12px;
    max-width: 0; opacity: 0; overflow: hidden;
    transition: opacity var(--anim-speed) var(--anim-curve), max-width var(--anim-speed) var(--anim-curve);
}
.compact-link { color: #666; text-decoration: none; font-size: 9px; font-weight: bold; white-space: nowrap; font-family: 'Share Tech Mono', monospace; }
.compact-link:hover { color: var(--cyber-neon); }

/* --- ÉTAT STICKY DESKTOP --- */
.is-sticky .header-main-bar { transform: translateY(-100%); height: 0; opacity: 0; pointer-events: none; }
.is-sticky .header-top-bar { border-bottom-color: var(--cyber-neon); }
.is-sticky .compact-nav.desktop-only { max-width: 600px; opacity: 1; padding: 0 20px; border-left: 1px solid #222; }

/* ================================================== */
/*                MENU MOBILE & HAMBURGER               */
/* ================================================== */

.cyber-hamburger {
    display: none; 
    background: transparent;
    border: none;
    border-left: 1px solid #222;
    padding: 0 15px;
    height: 42px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0; 
}

.cyber-hamburger .line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--cyber-neon);
    transition: all 0.3s ease-in-out;
}

.cyber-hamburger.active .line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cyber-hamburger.active .line:nth-child(2) { opacity: 0; }
.cyber-hamburger.active .line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Panneau Mobile */
.mobile-nav-panel {
    position: absolute;
    top: 42px; 
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 2px solid var(--cyber-neon);
    max-height: 0;
    overflow: hidden;
    z-index: 90;
    transition: max-height 0.4s var(--anim-curve);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.mobile-nav-panel.open {
    max-height: 400px; 
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    padding: 15px 25px;
    border-bottom: 1px solid #222;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(212, 255, 0, 0.1);
    color: var(--cyber-neon);
}

.mobile-status {
    padding: 15px 25px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #666;
    line-height: 1.5;
}

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

@media (max-width: 1024px) {
    .cyber-logo-img { height: 100px; }
    .header-main-bar { height: 70px; }
    .header-phantom-spacer { height: 112px; }
    .full-nav { gap: 15px; }
}

@media (max-width: 768px) {
    .cyber-hamburger { display: flex !important; }
    .desktop-only { display: none !important; }
    
    .cyber-logo-img { height: 70px; }
    .header-main-bar { height: 60px; }
    .header-phantom-spacer { height: 102px; }
    
    .full-nav { display: none; } 
    .cyber-logo { width: 100%; justify-content: center; } 
}

@media (max-width: 480px) {
    .header-inner { padding: 0 15px; }
    .cyber-logo-img { height: 50px; }
    .header-main-bar { height: 60px; }
    .header-phantom-spacer { height: 102px; }
    .ticker-label { padding: 0 8px; font-size: 9px; }
}