@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700 &family=Share+Tech+Mono&display=swap');

:root {
    --primary: #6d8b83;
    --secondary: #aa0000;
    --bg: #050810;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    font-family: 'Share Tech Mono', monospace;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Grille animée en arrière-plan */
.grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: moveGrid 10s linear infinite;
    z-index: 0;
    top: -50%;
}

@keyframes moveGrid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 50px;
    }
}

.logoBrand {
    height: 5em;
    width: auto;
}

/* Conteneur principal Glassmorphism */
.main-card {
    position: relative;
    z-index: 10;
    background: rgba(51, 78, 78, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
}

/* Animation des personnages SVG */
.character-box {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.robot {
    width: 80px;
    filter: drop-shadow(0 0 10px var(--primary));
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.loader-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.loader-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 15px var(--primary);
}

.timer {
    font-size: 2rem;
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    margin: 15px 0;
    text-shadow: 0 0 10px var(--secondary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 30px var(--primary);
}