/* scifi_style.css */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0B0D17;
    /* Deep Space Blue */
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    pointer-events: none;
}

#viz-container {
    width: 100vw;
    height: 100vh;
    background-color: #0B0D17;
    /* Deep Space Blue/Black */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    letter-spacing: 5px;
    margin: 0;
    color: #E0E0FF;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.8);
}

#loading {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #00D2FF;
    animation: blink 1s infinite;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes rotate-right {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-left {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        r: 20px;
        opacity: 0.8;
    }

    50% {
        r: 25px;
        opacity: 0.4;
    }

    100% {
        r: 20px;
        opacity: 0.8;
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -100;
    }
}

@keyframes floating {
    0% {
        transform: translateY(0px);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.6;
    }

    100% {
        transform: translateY(0px);
        opacity: 0.3;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* SVG Classes that D3 will apply */
.node-group {
    cursor: pointer;
}

.glow-circle {
    /* Animation handled in CSS or D3 transition? CSS is smoother for infinite loops */
    /* D3 will apply the class */
}

.rotating-ring {
    transform-box: fill-box;
    transform-origin: center;
}

.rotate-cw {
    animation: rotate-right 60s linear infinite;
    /* Ralenti pour le background */
}

.rotate-ccw {
    animation: rotate-left 70s linear infinite;
    /* Ralenti pour le background */
}

/* Nouveaux Styles JS */
.tech-dust {
    animation: drift 20s ease-in-out infinite;
    transform-box: fill-box;
}

.interactive-tick {
    transition: all 0.3s ease;
    cursor: crosshair;
}

.interactive-tick:hover {
    stroke: #ffffff !important;
    stroke-width: 4 !important;
    filter: url(#glow);
}

.complex-svg-background path {
    /* Optionnel: animation de tracé ou pulse */
}

.circular-decorations .data-segment {
    /* Faire clignoter légèrement les segments de données */
    animation: blink 3s random infinite;
}

#viz-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}