/* Importation de la police Poppins depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Application de Poppins */
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 2rem;
}

h1 {
    font-size: 5rem;
    margin: 0;
    /* Couleur demandÃ©e pour le titre */
    color: #dde1e7; 
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

button {
    font-family: 'Poppins', sans-serif;
    background-color: #2a2a2a;
    color: white;
    border: 2px solid #3a3a3a;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

button:hover, button.active {
    background-color: #dde1e7; /* Ta nouvelle couleur */
    border-color: #dde1e7;
    color: #121212; /* On met le texte en sombre pour qu'il reste lisible sur le gris clair */
    box-shadow: 0 0 15px rgba(221, 225, 231, 0.3);
    transform: translateY(-2px);
}
main {
    width: 90%;
    max-width: 900px;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Animation du Logo Minecraft --- */
.server-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    
    /* On combine deux animations : 
       1. serverSpawn : l'apparition au clic (0.6s)
       2. serverFloat : le mouvement de flottement infini (3s) */
    animation: 
        serverSpawn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        serverFloat 3s ease-in-out infinite alternate;
    
    /* Optionnel : ajoute une légère lueur derrière le logo */
    filter: drop-shadow(0 0 15px rgba(221, 225, 231, 0.2));
}

/* Animation d'entrée (Zoom + Opacité) */
@keyframes serverSpawn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de flottement (Haut/Bas + légère lueur) */
@keyframes serverFloat {
    from {
        transform: translateY(0px);
        filter: drop-shadow(0 0 10px rgba(221, 225, 231, 0.1));
    }
    to {
        transform: translateY(-15px);
        filter: drop-shadow(0 0 25px rgba(221, 225, 231, 0.4));
    }
}
/* On ajuste un peu le titre pour éviter les sauts de hauteur trop brusques */
#main-title {
    min-height: 120px; /* Réserve de l'espace pour éviter que tout le site remonte/descende */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page { display: none; animation: fadeIn 0.4s; }
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style spÃ©cifique pour le bouton Twitch */
.twitch-link {
    display: inline-block;
    margin-bottom: 20px;
    background-color: #6441a5;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.twitch-link:hover {
    background-color: #7d5bbe;
    transform: scale(1.05);
}

.mc-container { text-align: center; }
.ip-box {
    background-color: #0d0d0d;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-family: monospace;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #333;
}

.ip-hint { font-size: 0.8rem; color: #888; margin: 10px 0 20px; }

.player-count {
    font-size: 1.1rem;
    padding: 10px 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Augment  de 280px   350px */
    gap: 20px;
}

iframe { 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Force le ratio vid o standard */
    border-radius: 8px; 
    border: none; 
}

/* --- Grille des rÃ©seaux sociaux --- */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    text-align: center;
    text-decoration: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, filter 0.2s;
}

.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

/* Couleurs des marques */
.twitch { background-color: #6441a5; }
.youtube { background-color: #ff0000; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tiktok { background-color: #000000; border: 1px solid #ffffff33; }