/* ===== BASE STYLES ===== */
/* Variables CSS et styles de base */

@font-face {
    font-family: 'Skyer';
    src: url('../assets/font/Skyer.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: rgba(255, 255, 255, 0.9);
    --accent-color: #6496ff;
    --accent-color-alpha: rgba(100, 150, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#galaxyCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Animations globales */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Loader pour le changement d'animation */
.animation-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.animation-loader.active {
    display: flex;
}

.animation-loader .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.animation-loader .message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
