/* ============================================================
   header.css — Styles UNIQUEMENT du bloc header
   ============================================================ */

header {
    background-color: #0d0d0d;
    border-bottom: 3px solid var(--couleur-bordure);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* --- Étoiles scintillantes --- */
.star {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
    animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
    0%,  100% { opacity: 0.1;  transform: scale(0.8) translate(0px, 0px); }
    30%        { opacity: 0.85; transform: scale(1.4) translate(1px, -1px); }
    65%        { opacity: 0.3;  transform: scale(1.0) translate(-1px, 1px); }
}

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

/* --- Logo / indicatif --- */
.header-logo-img {
    height: 90px;
    width: 90px;
    object-fit: contain;
    border-radius: 50%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.header-logo .callsign {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--couleur-accent2);
    letter-spacing: 2px;
    line-height: 1;
}

.header-logo .subtitle {
    font-size: 0.75rem;
    color: #ffffff;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0d0d0d;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--rayon);
    border: 2px solid transparent;
    background-color: var(--couleur-accent2);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

nav a.actif {
    box-shadow: 0 0 0 3px #ffffff;
    transform: scale(1.05);
}

nav a:hover {
    box-shadow: 0 0 0 3px #ffffff;
    transform: scale(1.05);
}

/* Canvas oscilloscope */
nav a .oscillo-cv {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

nav a:hover .oscillo-cv {
    opacity: 1;
}

nav a span {
    position: relative;
    z-index: 1;
}

/* --- Canvas signal bas du header --- */
.header-signal-canvas {
    display: block;
    width: 100%;
    height: 28px;
    position: relative;
    z-index: 1;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.actif {
    display: flex;
}

.lightbox img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.8rem 0;
        gap: 0.6rem;
    }

    .header-logo-img {
        height: 38px;
        width: 38px;
    }

    .header-logo .callsign {
        font-size: 1.4rem;
    }

    .header-logo .subtitle {
        font-size: 0.65rem;
    }

    nav ul {
        gap: 1rem;
    }
}
