:root {
    --bg: #050505;
    --accent: #00ff9d; /* Vert néon sécurité */
    --text: #e2e8f0;
    --subtext: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)), 
                      url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: backgroundFlicker 15s infinite alternate; /* Ajout de l'animation de flicker */
}

/* Grille de fond technologique */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--glass) 1px, transparent 1px),
                      linear-gradient(90deg, var(--glass) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* Animation de scan laser */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
    z-index: 10;
    pointer-events: none;
    opacity: 0.5;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-10vh); }
    100% { transform: translateY(110vh); }
}

.content {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 0;
    color: var(--text);
}

.subtitle {
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--subtext);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.timer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.time-block {
    display: flex;
    flex-direction: column;
}

.time-block span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent),
                 0 0 20px rgba(0, 255, 157, 0.4);
}

.time-block label {
    font-size: 0.8rem;
    color: var(--subtext);
    text-transform: uppercase;
}

.input-group {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    border-bottom: 2px solid var(--glass);
    padding: 5px;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--accent);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
}

button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.8;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; letter-spacing: 4px; }
    .subtitle { font-size: 0.9rem; letter-spacing: 2px; }
    .timer { gap: 0.8rem; flex-wrap: wrap; }
    .time-block span { font-size: 2rem; }
    .input-group { width: 100%; }
}

/* Animation de flicker pour le fond */
@keyframes backgroundFlicker {
    0%, 100% {
        filter: brightness(1) opacity(1);
    }
    10%, 30%, 50%, 70%, 90% {
        filter: brightness(0.95) opacity(0.98);
    }
    20%, 40%, 60%, 80% {
        filter: brightness(1.05) opacity(1.02);
    }
}
