/* ==========================================================================
   CSS - HEADER & MENU MOBILE (APPLE x IMMERSIF BLEU)
   ========================================================================== */

/* --- SKIP TO CONTENT (A11Y) --- */
.skip-to-content {
    position: absolute; top: -100px; left: 20px;
    background: var(--primary-blue); color: white;
    padding: 12px 24px; z-index: 99999; font-weight: 700;
    border-radius: 8px; transition: top 0.3s; text-decoration:none;
}
.skip-to-content:focus { top: 20px; outline: none; }

/* --- HEADER FIXE (Glassmorphism) --- */
.site-header.glass-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; background: transparent; border-bottom: 1px solid transparent;
    transition: background 0.4s var(--transition), border-color 0.4s var(--transition), padding 0.4s var(--transition);
    will-change: background, padding;
}

.site-header.glass-header.scrolled {
    background: rgba(3, 4, 6, 0.75); /* var(--bg-dark) avec opacité */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container-edge {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 6vw; margin: 0 auto;
    transition: padding 0.4s var(--transition);
    gap: 20px;
}
.site-header.scrolled .header-container-edge { padding: 1rem 6vw; }

/* --- LOGO --- */
.site-logo { flex-shrink: 0; }
.site-logo a {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-size: clamp(1.1rem, 2vw, 1.4rem); outline: none;
}
.site-logo img {
    max-height: 40px; width: auto; object-fit: contain; display: block;
    filter: invert(1) hue-rotate(180deg) brightness(1.2); /* Maintien de l'astuce pour passer le logo en blanc/bleu */
    transition: filter 0.3s ease;
}
.logo-mark { font-weight: 900; font-size: 1.2em; }

/* --- NAV DESKTOP --- */
.nav-list { display: flex; gap: clamp(1rem, 2vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.nav-list a {
    position: relative; text-decoration: none;
    color: var(--text-muted); font-weight: 600;
    font-size: 0.95rem; transition: color 0.3s ease;
    padding: 0.5rem 0; white-space: nowrap;
}
.nav-list a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--secondary-cyan);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--transition);
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--text-main); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* --- ACTIONS HEADER --- */
.header-actions { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; }

.status-badge-cyber { 
    display: flex; align-items: center; gap: 8px; 
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted); 
    padding: 0.5rem 1.2rem; background: rgba(255,255,255,0.03); 
    border-radius: 100px; border: 1px solid rgba(255,255,255,0.05); 
}
.status-dot.green { width: 8px; height: 8px; border-radius: 50%; background-color: #10b981; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.pulse-anim { animation: pulse-green 2s infinite; }

.btn-header-outline, .btn-header-solid {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 30px; font-weight: 700; text-decoration: none;
    transition: all 0.3s ease; padding: 0.6rem 1.4rem; font-size: 0.9rem;
}
.btn-header-outline { color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-header-outline:hover { background: rgba(0, 180, 216, 0.1); border-color: var(--secondary-cyan); }
.btn-header-solid { background: linear-gradient(135deg, var(--primary-blue), #004d99); color: #fff; box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3); }
.btn-header-solid:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4); }

/* --- GESTION MOBILE --- */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

/* BURGER MOBILE */
.cyber-burger {
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; padding: 10px;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    z-index: 1001; position: relative; outline: none;
}
.cyber-burger .line {
    width: 24px; height: 2px; background: var(--text-main);
    transition: transform 0.4s var(--transition), opacity 0.4s ease;
}
.cyber-burger.is-active .line-1 { transform: translateY(4px) rotate(45deg); background: var(--secondary-cyan); }
.cyber-burger.is-active .line-2 { transform: translateY(-4px) rotate(-45deg); background: var(--secondary-cyan); }

/* --- MENU OVERLAY MOBILE --- */
.mobile-menu-overlay {
    position: fixed; inset: 0; background: var(--bg-black-deep); 
    z-index: 999; display: flex; flex-direction: column;
    padding: 120px 8vw 2rem; transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: transform 0.5s var(--transition), opacity 0.5s ease, visibility 0.5s;
    overflow-y: auto; will-change: transform, opacity;
}
.mobile-menu-overlay.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu-content { display: flex; flex-direction: column; height: 100%; }

.mobile-status { font-size: 0.9rem; color: var(--text-muted); display:flex; align-items:center; gap:10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.8rem; }
.mobile-nav-list a {
    display: inline-block; text-decoration: none;
    font-size: clamp(2rem, 8vw, 3rem); font-weight: 900;
    color: var(--text-main); letter-spacing: -0.02em; 
    transition: color 0.3s, transform 0.3s ease;
}
.mobile-nav-list a:hover { color: var(--secondary-cyan); transform: translateX(10px); }

@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .header-container-edge { padding: 1rem 6vw; }
}