/* ====== GLOBAL STYLES ====== */
html {
    overflow: hidden; /* Cache les barres de défilement globales */
    height: 100%; /* Garantit que tout le contenu soit contenu dans la page */
	    overflow-x: hidden; /* Empêche le défilement horizontal */
    max-width: 100vw; /* Assure que le contenu ne dépasse pas */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: url('/test/testfond.webp') no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    overflow-y: auto; /* Permet le défilement tout en masquant la barre */
    scrollbar-width: none; /* Cache la barre sur Firefox */
    -ms-overflow-style: none; /* Cache la barre sur Internet Explorer */
}

body::-webkit-scrollbar {
    display: none; /* Cache la barre sur Chrome, Edge, et Safari */
}

main {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* ====== HEADER ====== */
nav.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
    background: rgba(20, 20, 20, 0.9); /* Opacité plus forte */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav.header img {
    height: 60px;
    transition: transform 0.3s ease;
}

nav.header img:hover {
    transform: scale(1.1);
}

nav.header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

nav.header ul a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav.header ul a:hover {
    background: linear-gradient(90deg, #6C32C1, #9146FF);
    color: #ffffff;
    box-shadow: 0px 0px 10px rgba(145, 70, 255, 0.8);
}

nav.header .burger-menu {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}













/* ====== ANIMATIONS BOUTON JOUER ====== */

/* Effet de brillance qui traverse */
@keyframes crystalShine {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(50%); }
    100% { opacity: 0; transform: translateX(150%); }
}

/* Effet de lueur néon pulsante */
@keyframes neonGlow {
    0% { box-shadow: 0 0 5px #9146FF, 0 0 10px #D14FFF, 0 0 15px #9146FF; }
    50% { box-shadow: 0 0 10px #D14FFF, 0 0 20px #9146FF, 0 0 30px #D14FFF; }
    100% { box-shadow: 0 0 5px #9146FF, 0 0 10px #D14FFF, 0 0 15px #9146FF; }
}

/* Effet d'étincelle */
@keyframes sparkle {
    0% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 0; transform: scale(0.5) rotate(360deg); }
}

/* ====== STYLE DU BOUTON "JOUER MAINTENANT" ====== */
.btn.play-now {
    background: linear-gradient(90deg, #6C32C1, #9146FF);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 10px;
    text-transform: uppercase;
    animation: neonGlow 2s infinite alternate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: none;
    overflow: hidden; /* CORRECTION : limite uniquement la brillance */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Effet de brillance traversant le bouton */
.btn.play-now::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    animation: crystalShine 3s infinite;
}

/* Étincelles : On retire l'effet overflow du bouton */
.sparkle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('/test/sparkle.png') no-repeat center;
    background-size: contain;
    animation: sparkle 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 20;
}

/* Étincelle en haut à gauche */
.sparkle-top {
    top: -20px;
    left: -20px;
}

/* Étincelle en bas à droite */
.sparkle-bottom {
    bottom: -20px;
    right: -20px;
}

.btn.play-now {
    position: relative; /* Assure que le z-index fonctionne */
    z-index: 10; /* Plus haut que les étincelles */
}

.sparkle {
    pointer-events: none; /* Empêche les étincelles de bloquer le clic */
    z-index: 5; /* Plus bas que le bouton */
}












/* Conteneur des boutons */
.account-buttons {
    display: flex;
    gap: 20px; /* Espacement horizontal entre les boutons */
    justify-content: center;
    align-items: center;
    margin-top: 40px; /* Ajoute un espace sous le texte */
    flex-wrap: wrap; /* Permet aux boutons de passer en colonne si manque d'espace */
}

/* Style du bouton "Voir mon compte" */
.btn.account {
    background: linear-gradient(90deg, #6C32C1, #9146FF);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 10px;
    text-transform: uppercase;
    animation: neonGlow 2s infinite alternate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ajout des cristaux scintillants (réduits) */
.btn.account::before,
.btn.account::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('/test/sparkle.png') no-repeat center;
    background-size: contain;
    animation: sparkle 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 20;
    opacity: 0.8;
}

/* Cristal en haut à gauche */
.btn.account::before {
    top: -5px;
    left: -5px;
}

/* Cristal en bas à droite */
.btn.account::after {
    bottom: -5px;
    right: -5px;
}

/* Style du bouton "Me déconnecter" */
.btn.logout {
    background: linear-gradient(90deg, #4A4A4A, #222222);
    color: #cccccc;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 10px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6);
}

/* Ajustement du texte et de l'icône */
.btn.logout i {
    margin-right: 10px;
}

/* Effet au survol du bouton "Me déconnecter" */
.btn.logout:hover {
    background: linear-gradient(90deg, #555555, #333333);
    color: white;
}

/* Correction pour mobile */
@media (max-width: 768px) {
    .account-buttons {
        flex-direction: column; /* Force les boutons à être en colonne sur mobile */
        gap: 15px; /* Espacement vertical sur mobile */
    }

    .btn.account, .btn.logout {
        width: 100%; /* Prend toute la largeur pour éviter les problèmes de placement */
        max-width: 250px;
    }
}

/* Correction pour s'assurer que le bouton est bien cliquable */
.btn.account,
.btn.logout {
    position: relative;
    z-index: 10; /* Place le bouton au-dessus des autres éléments */
    pointer-events: auto; /* S'assure que le bouton peut être cliqué */
}

/* Correction des étincelles qui bloquaient le clic */
.btn.account::before,
.btn.account::after {
    pointer-events: none; /* Empêche les décorations de bloquer le clic */
}

/* Ajustement du bouton pour être bien cliquable */
.account-buttons a {
    display: inline-block;
    width: fit-content; /* Ajuste la largeur à celle du bouton */
}

/* Ajout d'un espace entre les deux boutons */
.account-buttons {
    display: flex;
    gap: 20px; /* Ajoute un espace entre les boutons */
    justify-content: center; /* Centre les boutons horizontalement */
    flex-wrap: wrap; /* Évite l'empilement sur mobile */
}

/* Ajout d'un espace entre l'icône et le texte */
.btn.account i,
.btn.logout i {
    margin-right: 10px; /* Espace entre l'icône et le texte */
}

/* Ajustement spécifique pour la version PC */
@media (min-width: 768px) {
    .account-buttons {
        gap: 30px; /* Espace plus grand sur PC */
    }
}






































/* ====== ANIMATION DES ÉTOILES FIXES SCINTILLANTES ====== */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Style des étoiles fixes */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: starTwinkle 1.5s infinite alternate;
    filter: drop-shadow(0 0 6px white);
}

/* ====== ANIMATION DES ÉTOILES ALÉATOIRES ====== */
@keyframes blinkStar {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* Style des étoiles aléatoires */
.blinking-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: blinkStar 2s infinite alternate;
    filter: drop-shadow(0 0 8px white);
}

/* ====== ANIMATION DES ÉTOILES FILANTES ====== */
@keyframes shootingStar {
    0% { opacity: 0; transform: translateX(0) translateY(0) scale(1); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-120vw) translateY(120vh) scale(0.5); }
}

/* Style des étoiles filantes */
.shooting-star {
    position: absolute;
    width: 3px;
    height: 100px; /* Augmente la longueur */
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    filter: drop-shadow(0 0 8px white);
    opacity: 0;
    animation: shootingStar 3s linear infinite;
}

























/* ====== STYLE DU HEADER ====== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Conteneur du logo + bouton */
.header-left {
    display: flex;
    align-items: center;
}

/* Style du logo */
.header-left img {
    height: 50px;
    margin-right: 15px;
}

/* Style du bouton "S'inscrire" */
.btn.signup {
    background: linear-gradient(90deg, #FF6B6B, #FF3B3B);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.btn.signup:hover {
    background: linear-gradient(90deg, #FF3B3B, #D12C2C);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.8);
}















/* ====== CORRECTION DU HEADER DÉCALÉ ====== */
nav.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0; /* Assure qu'il commence à gauche */
    width: 100%; /* Prend toute la largeur */
    z-index: 1000;
    box-sizing: border-box; /* Évite que le padding pousse le header */
}

/* Correction du conteneur gauche */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px; /* Ajuste si nécessaire */
}

/* Correction de la liste de navigation */
nav.header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Ajoute un espace à gauche si besoin */
nav.header ul a {
    padding: 5px 15px;
}


























/* ====== ANIMATION DE LA FUMÉE VIOLETTE DIFFUSE ====== */
@keyframes smokeEffect {
    0% { opacity: 0.2; transform: translateX(-20px) translateY(10px) scale(1); filter: blur(20px); }
    25% { opacity: 0.3; transform: translateX(25px) translateY(-10px) scale(1.4); filter: blur(25px); }
    50% { opacity: 0.4; transform: translateX(-30px) translateY(-20px) scale(1.6); filter: blur(30px); }
    75% { opacity: 0.3; transform: translateX(20px) translateY(5px) scale(1.4); filter: blur(25px); }
    100% { opacity: 0.2; transform: translateX(-20px) translateY(10px) scale(1); filter: blur(20px); }
}

/* Conteneur du titre et de la fumée */
.smoke-container {
    position: relative;
    display: inline-block;
    text-align: center;
    z-index: 2;
}

/* Titre principal */
.hero h1 {
    position: relative;
    font-size: 56px;
    background: linear-gradient(90deg, #9146FF, #D14FFF, #9146FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0px 0px 20px rgba(145, 70, 255, 0.8), 0px 0px 40px rgba(209, 79, 255, 0.6);
    letter-spacing: 3px;
    z-index: 3;
}

/* Fumée violette plus diffuse */
.smoke {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(209, 79, 255, 0.2) 30%, rgba(145, 70, 255, 0) 90%);
    animation: smokeEffect 3s infinite alternate ease-in-out;
    z-index: 1;
    pointer-events: none;
    filter: blur(35px);
    opacity: 0.3;
}

/* Ajout de plusieurs zones de fumée pour une meilleure répartition */
.smoke-1 { top: -30px; left: -80px; animation-duration: 2.5s; }
.smoke-2 { top: -20px; left: 20px; animation-duration: 2.7s; }
.smoke-3 { top: -40px; left: 120px; animation-duration: 3s; }
.smoke-4 { top: -10px; left: 220px; animation-duration: 2.8s; }
.smoke-5 { top: -30px; right: -80px; animation-duration: 2.6s; }
.smoke-6 { top: -20px; right: 20px; animation-duration: 2.9s; }
.smoke-7 { top: -40px; right: 120px; animation-duration: 3.1s; }
.smoke-8 { top: -10px; right: 220px; animation-duration: 2.7s; }
.smoke-bottom { bottom: -50px; left: 50%; transform: translateX(-50%); width: 400px; height: 200px; animation-duration: 3.2s; }

/* Fumée en arrière-plan plus douce */
.smoke-bg {
    position: absolute;
    width: 500px;
    height: 350px;
    background: radial-gradient(circle, rgba(209, 79, 255, 0.15) 30%, rgba(145, 70, 255, 0) 90%);
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    animation: smokeEffect 5s infinite alternate ease-in-out;
    opacity: 0.2;
    filter: blur(40px);
}












































/* ====== HERO SECTION ====== */
.hero {
    margin-top: 80px;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.7); /* Augmenter l'opacité pour une meilleure lisibilité */
    border-radius: 15px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: 52px;
    background: linear-gradient(90deg, #9146FF, #D14FFF, #9146FF); /* Dégradé magique */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: magicGlow 5s infinite alternate; /* Animation magique */
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0px 0px 15px rgba(145, 70, 255, 0.6), 0px 0px 30px rgba(209, 79, 255, 0.8);
    letter-spacing: 2px; /* Espacement pour un style moderne */
}

.hero h2 {
    font-size: 28px;
    color: #D8B4FF; /* Violet doux */
    text-shadow: 0px 0px 8px rgba(216, 180, 255, 0.8), 0px 0px 20px rgba(173, 128, 255, 0.6);
    animation: subtitleGlow 3s infinite alternate; /* Animation subtile */
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

/* Animation pour l'effet magique */
@keyframes magicGlow {
    0% {
        text-shadow: 0px 0px 15px rgba(145, 70, 255, 0.6), 0px 0px 30px rgba(209, 79, 255, 0.8);
    }
    100% {
        text-shadow: 0px 0px 25px rgba(209, 79, 255, 0.8), 0px 0px 40px rgba(255, 128, 255, 0.9);
    }
}

/* Animation pour un effet plus léger sur le sous-titre */
@keyframes subtitleGlow {
    0% {
        text-shadow: 0px 0px 8px rgba(216, 180, 255, 0.8);
    }
    100% {
        text-shadow: 0px 0px 15px rgba(173, 128, 255, 0.6);
    }
}


.hero h1, .hero h2, .about h3, .lore h3, .community h3 {
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Une ombre noire légère */
    color: #ffeb3b; /* Garder le jaune lisible */
    font-family: 'Orbitron', sans-serif;
}


.about h3, .lore h3, .community h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    color: #ffeb3b;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7); /* Une ombre noire légère */
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero button {
    margin-top: 20px;
}









/* ====== ABOUT AND LORE SECTIONS ====== */
.about, .lore, .community, .lore-popup {
    margin-top: 40px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.8); /* Plus opaque pour une meilleure lisibilité */
    border-radius: 10px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);
}

.about h3, .lore h3, .community h3 {
    font-size: 22px;
    color: #9146FF;
    margin-bottom: 10px;
}

.about p, .lore p, .community p {
    font-size: 16px;
    line-height: 1.6;
}

/* ====== BUTTON STYLES ====== */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 30px;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.1);
}

.btn.twitch {
    background: #9146FF;
    box-shadow: 0px 4px 10px rgba(145, 70, 255, 0.7);
}

.btn.discord {
    background: #5865F2;
    box-shadow: 0px 4px 10px rgba(88, 101, 242, 0.7);
}

.btn.animated-lore {
    background: linear-gradient(90deg, #9146FF, #D14FFF);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    box-shadow: 0px 4px 10px rgba(145, 70, 255, 0.7);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.animated-lore:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(209, 79, 255, 0.8);
}


/* ====== POPUP STYLES ====== */
.modal-content {
    position: fixed;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 15px;
    padding: 30px;
    width: 70%;
    height: 80vh;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    color: #fff;
    text-align: justify; /* Justifie le texte */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6), 0px 0px 10px rgba(145, 70, 255, 0.7);
    overflow-y: auto; /* Permet le défilement */
    scrollbar-width: none; /* Cache la barre sur Firefox */
    -ms-overflow-style: none; /* Cache la barre sur IE */
    font-family: 'Poppins', sans-serif; /* Ajoute la police Poppins */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Cache la barre sur Chrome, Edge et Safari */
}

.modal-content h3 {
    font-size: 52px;
    background: linear-gradient(90deg, #9146FF, #D14FFF, #9146FF); /* Ajout d'une boucle dans le dégradé */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0px 4px 10px rgba(145, 70, 255, 0.8), 0px 0px 20px rgba(209, 79, 255, 0.6); /* Ombre lumineuse */
    font-family: 'Orbitron', sans-serif; /* Utilise la police Orbitron pour les titres */
    letter-spacing: 2px; /* Espacement entre les lettres pour un effet moderne */
    text-transform: uppercase; /* Met le texte en majuscules */
    animation: glowEffect 2s infinite alternate, gradientShift 5s infinite; /* Ajoute deux animations */
}

/* Animation de lueur */
@keyframes glowEffect {
    from {
        text-shadow: 0px 4px 15px rgba(145, 70, 255, 0.8), 0px 0px 30px rgba(209, 79, 255, 0.6);
    }
    to {
        text-shadow: 0px 6px 20px rgba(145, 70, 255, 1), 0px 0px 40px rgba(209, 79, 255, 0.8);
    }
}

/* Animation de dégradé pour un effet dynamique */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.content-block {
    display: flex;
    align-items: center; /* Aligne verticalement */
    margin: 20px 0;
    gap: 20px; /* Ajoute de l'espace entre l'image et le texte */
}

.content-block img {
    flex-shrink: 0;
    width: 8%; /* Taille des images */
    height: auto; /* Conserve les proportions */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.content-block p {
    flex: 1;
    max-width: calc(100% - 10%); /* Réserve un espace pour l'image */
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
	font-size: 32px;
    padding: 0 20px; /* Ajoute un espace intérieur pour mieux centrer */
    font-family: 'Poppins', sans-serif; /* Police élégante et moderne */
}

/* Gestion des positions gauche/droite */
.content-block.left {
    flex-direction: row; /* Image à gauche */
}

.content-block.right {
    flex-direction: row-reverse; /* Image à droite */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif; /* Style cohérent pour le bouton */
}

.close:hover {
    color: #ffeb3b;
}







/* ====== MEDIA QUERIES ====== */
@media (max-width: 1024px) {
    nav.header {
        padding: 0 10px;
    }

    nav.header ul {
        display: none;
        flex-direction: column;
        background: rgba(20, 20, 20, 0.9);
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    nav.header ul.active {
        display: flex;
    }

    nav.header .burger-menu {
        display: block;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


























.burger-menu {
    display: none; /* Caché par défaut sur desktop */
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 768px) {
    /* Empêche le scroll horizontal */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Affichage et centrage du bouton burger */
    .burger-menu {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%); /* Centre verticalement */
        background: transparent;
        border: none;
        font-size: 32px; /* Augmente la taille */
        cursor: pointer;
        z-index: 1100;
        color: white;
        padding: 10px; /* Ajoute de l'espace pour un meilleur clic */
        width: 50px; /* Assure une taille correcte */
        height: 50px;
    }



    /* Cache le menu par défaut */
    nav.header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 250px;
        background: rgba(20, 20, 20, 0.95);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }

    /* Affiche le menu quand il est actif */
    nav.header ul.active {
        display: flex;
    }

    /* Stylisation des liens */
    nav.header ul a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 10px 15px;
        display: block;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav.header ul a:last-child {
        border-bottom: none;
    }
}


    /* 📌 Ajustement du Titre Principal */
    .hero h1 {
        font-size: 34px; /* Moins large */
        letter-spacing: 1px;
        text-shadow: 0px 0px 10px rgba(145, 70, 255, 0.7), 0px 0px 20px rgba(209, 79, 255, 0.6);
    }

    /* 📌 Fumée optimisée pour mobile */
    .smoke {
        width: 80px; /* Plus petite */
        height: 80px;
        filter: blur(20px); /* Moins dense */
    }
    .smoke-bottom {
        width: 300px;
        height: 150px;
    }

    /* 📌 Ajustement du Bouton */
    .btn.play-now {
        font-size: 14px;
        padding: 12px 25px;
    }

    /* 📌 Espacement général */
    .hero {
        padding: 30px 15px;
        margin-top: 60px;
    }

    /* 📌 Sections ajustées */
    .about, .lore, .community {
        padding: 15px;
    }

    /* 📌 Texte ajusté pour éviter les débordements */
    p {
        font-size: 14px;
    }

    /* 📌 Gestion des popups pour mobile */
    .modal-content {
        width: 90%;
        height: 70vh;
        padding: 20px;
    }

}




/* ====== STYLE DU MENU BURGER ====== */
.burger-menu {
    display: none; /* Caché sur desktop */
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 1100;
    color: white;
}

/* Styles pour la liste du menu en mode mobile */
nav.header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Masquer le menu par défaut en mobile */
@media (max-width: 768px) {
    nav.header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 250px;
        background: rgba(20, 20, 20, 0.95);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
    }

    nav.header ul a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 10px 15px;
        display: block;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav.header ul a:last-child {
        border-bottom: none;
    }

    /* Affichage du menu lorsque la classe 'active' est ajoutée */
    nav.header ul.active {
        display: flex;
    }

    /* Afficher le bouton burger uniquement sur mobile */
    .burger-menu {
        display: block;
    }
}







