/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    /* On remplace height par min-height pour permettre le scroll si besoin */
    min-height: 100vh;
    /* On autorise le défilement vertical (scroll) */
    overflow-y: auto;
    overflow-x: hidden;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    /* Ajout d'un padding pour que le contenu ne touche pas les bords sur petit écran */
    padding: 40px 20px; 
}

/* --- BACKGROUND --- */
.background-image {
    position: fixed; /* Fixed pour que le fond ne bouge pas quand on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://wallpaper.forfun.com/fetch/58/58bb5fcb20f4e488c4fe30e90d48cfff.jpeg') no-repeat center center/cover;
    z-index: -2;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.overlay {
    position: fixed; /* Fixed aussi */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0, 20, 40, 0.8) 100%);
    z-index: -1;
}

/* --- CONTENU --- */
.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    /* Pas de padding ici, géré par le body */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* --- HEADER --- */
.server-status {
    display: inline-flex;
    align-items: center;
    background: rgba(100, 100, 100, 0.3); /* Couleur neutre par défaut (chargement) */
    color: #ddd;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Classes dynamiques ajoutées par le JS */
.server-status.online {
    background: rgba(0, 255, 0, 0.1);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.server-status.offline {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #aaa; /* Gris par défaut */
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s;
}

.server-status.online .status-dot {
    background-color: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

.server-status.offline .status-dot {
    background-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d;
    animation: none;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.subtitle {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.btn-play {
    text-decoration: none;
    color: white;
    background: #00aaff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-play:hover {
    background: transparent;
    border-color: #00aaff;
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.6);
    transform: translateY(-3px);
}

/* --- CARTES --- */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.card {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card:hover.shop-card {
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}
.card:hover.discord-card {
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00aaff;
    transition: transform 0.3s;
}

.shop-card .card-icon { color: #ffd700; }
.discord-card .card-icon { color: #5865F2; }

.card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.4;
}

.link-arrow {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- FOOTER --- */
footer {
    margin-top: 20px;
    color: #555;
    font-size: 0.8rem;
    padding-bottom: 10px;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; } /* Titre un peu plus petit sur mobile */
    .subtitle { font-size: 1rem; }
    
    .cards-container { 
        flex-direction: column; 
        align-items: center; 
        gap: 20px;
    }
    
    .card { 
        width: 100%; 
        max-width: 320px; 
    }
    
    /* On s'assure qu'on peut bien scroller jusqu'en bas */
    .content-wrapper {
        padding-bottom: 20px;
    }
}