/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Animations d'éclairs */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.lightning {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: transparent;
    animation: lightning 8s linear infinite;
}

.lightning.white {
    animation-delay: 2s;
    box-shadow: 0 0 100px 10px rgba(255, 255, 255, 0.8);
}

.lightning.blue {
    animation-delay: 4s;
    box-shadow: 0 0 100px 10px rgba(88, 101, 242, 0.8);
}

.lightning.purple {
    animation-delay: 6s;
    box-shadow: 0 0 100px 10px rgba(114, 137, 218, 0.8);
}

.lightning.pink {
    animation-delay: 8s;
    box-shadow: 0 0 100px 10px rgba(255, 115, 253, 0.8);
}

@keyframes lightning {
    0%, 8%, 10%, 20%, 24%, 65%, 70%, 72%, 80%, 85%, 92%, 100% {
        opacity: 0;
    }
    9%, 21%, 71%, 81%, 93% {
        opacity: 1;
    }
}

/* Orage et pluie */
.storm {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.thunder {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0) 70%);
    animation: thunder 10s infinite;
    opacity: 0;
}

.rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="20" viewBox="0 0 2 20"><path fill="%23586bf2" d="M0,0 L2,0 L2,8 L0,8 Z" opacity="0.2"/></svg>');
    animation: rain 0.5s linear infinite;
    opacity: 0.3;
}

@keyframes thunder {
    0%, 30%, 33%, 63%, 65%, 100% {
        opacity: 0;
    }
    31%, 32%, 64% {
        opacity: 0.5;
    }
}

@keyframes rain {
    to {
        background-position: 0 20px;
    }
}

/* Contenu principal */
.content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 0 auto;
}

.glitch {
    font-size: 10rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    color: #fff;
    margin-bottom: 1rem;
    animation: glitch 5s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: #5865F2;
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: #ff73fd;
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7289da;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.home-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #5865F2, #FF73FD);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    position: relative;
    overflow: hidden;
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.6);
}

.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.home-btn:hover::before {
    left: 100%;
}

/* Thème Discord animé */
.discord-theme {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.circle.blue {
    width: 300px;
    height: 300px;
    background: #5865F2;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle.purple {
    width: 400px;
    height: 400px;
    background: #7289da;
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

.circle.pink {
    width: 250px;
    height: 250px;
    background: #FF73FD;
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(5deg);
    }
    50% {
        transform: translate(0, 100px) rotate(0deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(-5deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 6rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}