/* === RESET ET CONFIGURATION DE BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #051a05 100%);
    color: #00ff41;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* === EFFET DE GRILLE CYBERPUNK === */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* === CONTENEUR PRINCIPAL === */
body > div:first-of-type {
    text-align: center;
    z-index: 10;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    animation: glitchBox 3s infinite;
}

@keyframes glitchBox {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

/* === TITRE H1 === */
h1 {
    font-size: 4rem;
    color: #00ff41;
    text-shadow: 
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 30px #00ff41,
        0 0 40px #00ff41;
    margin-bottom: 20px;
    animation: glitchText 2s infinite;
    font-weight: bold;
    letter-spacing: 5px;
}

@keyframes glitchText {
    0%, 90%, 100% {
        text-shadow: 
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 30px #00ff41;
    }
    92% {
        text-shadow: 
            2px 0 10px #00ff00,
            -2px 0 20px #00ff41;
        transform: translate(-2px, 0);
    }
    94% {
        text-shadow: 
            -2px 0 10px #00aa00,
            2px 0 20px #00ff41;
        transform: translate(2px, 0);
    }
}

/* === PARAGRAPHE === */
p {
    font-size: 1.2rem;
    color: #00ff41;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 0 5px #00ff41;
}

/* === BOUTON === */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #00ff41, #00aa00);
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #00ff41;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    background: linear-gradient(45deg, #00aa00, #00ff41);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.8),
        0 0 40px rgba(0, 255, 65, 0.6);
    transform: scale(1.05);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* === TERMINAL DÉFILANT === */
.terminal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #00ff41;
    padding: 15px 0;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 255, 65, 0.3);
}

.terminal span {
    display: inline-block;
    color: #00ff41;
    font-size: 1rem;
    white-space: nowrap;
    animation: scroll 15s linear infinite;
    text-shadow: 0 0 10px #00ff41;
    font-weight: bold;
}

@keyframes scroll {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* === EFFET DE CLIGNOTEMENT === */
.terminal::before {
    content: '█';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff41;
    font-size: 1.2rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* === PARTICULES FLOTTANTES === */
body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 255, 65, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 255, 0, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 255, 65, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 255, 0, 0.2), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    body > div:first-of-type {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .terminal span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}