/* -------- Snowman -------- */
#snowman {
    position: fixed;
    bottom: 0;
    width: 540px;
    z-index: 9050;
    pointer-events: none;
    transform: translateY(40px);
    opacity: 0;
}

/* -------- Santa -------- */
#santa-flyby {
    position: fixed;
    height: auto;
    z-index: 9100;
    pointer-events: none;
}

/* -------- Explosion (POUF) -------- */
#poufImage {
    position: fixed;
    display: none;
    z-index: 9200;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.3s;
}

/* -------- Neige -------- */
.snow-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 800;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    background: radial-gradient(circle, #fff, rgba(255,255,255,0.4));
    border-radius: 50%;
    opacity: 0.9;
    animation: fall var(--duration, 10s) linear forwards;
}

@keyframes fall {
    0% { transform: translateY(-20px) translateX(0); opacity:1; }
    100% {
        transform: translateY(110vh) translateX(var(--drift, 40px));
        opacity:0;
    }
}


/* ----------------------------------------------------------
   FONT STAR WARS-LIKE : AUDIOWIDE
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

/* ----------------------------------------------------------
   STYLE POUR LE DASHBOARD NAV LABEL
   ---------------------------------------------------------- */
.dashboard-nav-label {
    font-family: 'Audiowide', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffe81f !important; /* jaune Star Wars */
    text-shadow:
            0 0 6px rgba(255, 232, 31, 0.55),
            0 0 12px rgba(255, 232, 31, 0.35);
    transition: 0.25s ease;
}

/* ----------------------------------------------------------
   État au survol : effet sabre laser
   ---------------------------------------------------------- */
.dashboard-nav-label:hover {
    color: #ffffff !important;
    text-shadow:
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 18px rgba(255, 255, 255, 0.7),
            0 0 26px rgba(255, 255, 255, 0.5);
    transform: translateX(2px);
}

/* ----------------------------------------------------------
   Option : version "active" dans le menu
   ---------------------------------------------------------- */
.dashboard-nav-label.active,
.dashboard-nav-label.router-link-active {
    color: #ffe81f !important;
    text-shadow:
            0 0 12px rgba(255, 232, 31, 1),
            0 0 20px rgba(255, 232, 31, 0.9),
            0 0 32px rgba(255, 232, 31, 0.7);
    transform: translateX(3px);
}

/* ----------------------------------------------------------
   Compatibilité si d'autres styles override la couleur
   ---------------------------------------------------------- */
.dashboard-nav-label * {
    font-family: 'Audiowide', sans-serif !important;
}

/* ----------------------------------------------------------
   Optionnel : un effet Glow dans le fond du menu (léger)
   ---------------------------------------------------------- */
.dashboard-nav-label::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #ffe81f;
    border-radius: 50%;
    box-shadow:
            0 0 6px rgba(255, 232, 31, 0.6),
            0 0 16px rgba(255, 232, 31, 0.4);
    opacity: 0;
    transition: opacity 0.25s;
}

.dashboard-nav-label:hover::before,
.dashboard-nav-label.router-link-active::before {
    opacity: 1;
}
/* Sabre vert super glow */
.snowman-saber-glow {
    position: absolute;
    z-index: 2;
    left: 3%;
    top: -3%;
    height: 68%;
    width: 12px;
    background: linear-gradient(
            to right,
            rgba(150, 255, 150, 0.1),
            #ffffff,
            rgba(150, 255, 150, 0.1)
    );
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(160,255,160,1),
    0 0 26px rgba(120,255,160,0.9),
    0 0 48px rgba(100,255,160,0.7);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: saberPulse 1.3s ease-in-out infinite alternate;
    transform: rotate(-12deg);
}

.snowman-saber-glow::after {
    content: '';
    position: absolute;
    inset: -32px; /* halo encore plus large */
    border-radius: inherit;

    background: radial-gradient(
            circle,
            rgba(0, 255, 140, 0.65),
            rgba(0, 255, 120, 0.25),
            transparent 70%
    );

    mix-blend-mode: screen;
    pointer-events: none;

    animation: saberFlicker 0.12s linear infinite alternate;
}

@keyframes saberPulse {
    0% {
        box-shadow:
                0 0 14px rgba(0, 255, 120, 0.7),
                0 0 34px rgba(0, 255, 130, 0.7),
                0 0 70px rgba(0, 255, 150, 0.55),
                0 0 110px rgba(0, 255, 150, 0.45);
    }
    100% {
        box-shadow:
                0 0 24px rgba(0, 255, 160, 1),
                0 0 60px rgba(0, 255, 170, 1),
                0 0 120px rgba(0, 255, 190, 0.95),
                0 0 180px rgba(0, 255, 200, 0.85);
    }
}

@keyframes saberFlicker {
    0%   { opacity: 0.75; }
    50%  { opacity: 1; }
    100% { opacity: 0.65; }
}

/* Effet glitch holographique VHS cassé */
.j11-random-glitch {
    position: fixed;
    pointer-events: none;
    z-index: 99999;

    opacity: 0;
    mix-blend-mode: screen;

    /* fond bleu + scanlines */
    background:
            linear-gradient(
                    to right,
                    rgba(60, 180, 255, 0.3),
                    rgba(120, 220, 255, 0.7),
                    rgba(60, 180, 255, 0.3)
            ),
            repeating-linear-gradient(
                    to bottom,
                    rgba(200, 240, 255, 0.45),
                    rgba(200, 240, 255, 0.45) 2px,
                    transparent 3px
            );

    animation:
            j11-glitch-fade 0.26s linear forwards,
            j11-glitch-slice 0.26s steps(3, end);
}

@keyframes j11-glitch-fade {
    0%   { opacity: 0; }
    25%  { opacity: 0.9; }
    100% { opacity: 0; }
}

/* effet “cassette qui saute” : décalages + morceaux manquants */
@keyframes j11-glitch-slice {
    0% {
        transform: translate(0,0) skewX(0deg);
        clip-path: inset(0 0 0 0);
        filter: hue-rotate(190deg) saturate(1.4) brightness(1.2);
    }
    25% {
        transform: translate(-4px, -1px) skewX(-4deg);
        clip-path: inset(0 0 55% 0);
        filter: hue-rotate(200deg) saturate(1.9) brightness(1.4);
    }
    50% {
        transform: translate(3px, 2px) skewX(3deg);
        clip-path: inset(40% 0 0 0);
        filter: hue-rotate(180deg) saturate(2.2) brightness(1.5);
    }
    75% {
        transform: translate(-2px, 1px) skewX(-6deg);
        clip-path: inset(10% 0 25% 0);
        filter: hue-rotate(210deg) saturate(2.4) brightness(1.3);
    }
    100% {
        transform: translate(0,0) skewX(0deg);
        clip-path: inset(0 0 0 0);
        filter: hue-rotate(190deg) saturate(1.6) brightness(1.2);
    }
}
/* ---------- Hyperespace overlay ---------- */
#hyperspace-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(40,60,100,0.8), #000 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 13000;
}

#hyperspace-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.hyperspace-countdown {
    font-family: 'Audiowide', sans-serif;
    font-size: 5rem;
    color: #ffffff;
    text-shadow:
            0 0 16px rgba(120, 200, 255, 0.9),
            0 0 36px rgba(120, 200, 255, 0.9);
}

.hyperspace-text {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #cbe9ff;
    text-align: center;
    font-family: 'Audiowide', sans-serif;
}

/* Étoiles d'hyperespace */
.hyperspace-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hyperspace-star {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(
            to top,
            rgba(200, 240, 255, 0),
            rgba(200, 240, 255, 0.95)
    );
    opacity: 0;
    transform-origin: center bottom;
}

.hyperspace-stars.hyperspace-go .hyperspace-star {
    animation: hyperspaceDash 0.6s linear forwards;
}

@keyframes hyperspaceDash {
    0% {
        transform: translate3d(0, 0, 0) scaleY(0.2);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translate3d(0, -140vh, 0) scaleY(1.6);
        opacity: 0;
    }
}



