/* Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Video */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

/* Blurred Circles with Requested Colors */
.circle {
    position: absolute;
    width: 350px;  /* Circle size increased */
    height: 350px; /* Circle size increased */
    border-radius: 50%;
    filter: blur(80px);
    animation: float 10s ease-in-out infinite;
    z-index: -1;
}

/* Circle 1 - Center */
.circle:nth-child(1) {
    background: linear-gradient(135deg, rgba(0, 0, 139, 0.6), rgba(138, 43, 226, 0.6)); /* Dark Blue and Violet */
    top: 50%;    /* Center */
    left: 50%;   /* Center */
    transform: translate(-50%, -50%);
}

/* Circle 2 - Top Left */
.circle:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.6), rgba(75, 0, 130, 0.6)); /* Pink and Violet */
    top: 10%;
    left: 10%;
}

/* Circle 3 - Bottom Right */
.circle:nth-child(3) {
    background: linear-gradient(135deg, rgba(186, 85, 211, 0.6), rgba(255, 20, 147, 0.6)); /* Deep Violet and Pink */
    top: 75%;
    left: 80%;
}

/* Circle 4 - Top Right */
.circle:nth-child(4) {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(255, 105, 180, 0.6)); /* Purple and Pink */
    top: 5%;
    left: 85%;
}

/* Circle 5 - Bottom Left */
.circle:nth-child(5) {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.6), rgba(0, 191, 255, 0.6)); /* Violet and Light Blue */
    top: 85%;
    left: 5%;
}

/* Circle 6 - Center, slightly displaced */
.circle:nth-child(6) {
    background: linear-gradient(135deg, rgba(0, 0, 139, 0.6), rgba(255, 105, 180, 0.6)); /* Blue and Pink */
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Circle 7 - Random Position */
.circle:nth-child(7) {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.6), rgba(186, 85, 211, 0.6)); /* Light Blue and Violet */
    top: 25%;
    left: 75%;
}

/* Circle 8 - Random Position */
.circle:nth-child(8) {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.6), rgba(255, 0, 255, 0.6)); /* Pink and Violet */
    top: 50%;
    left: 25%;
}

/* Float Animation for Circles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(50px);
    }
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo a {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.logo a:hover {
    color: #1e90ff;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
}

.nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: 60px;
    right: 40px;
    background-color: rgba(26, 26, 26, 0.8);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-links.active {
    display: flex;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.hero-content {
    max-width: 600px;
    animation: fadeIn 2s ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content img {
    margin-top: 20px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

/* Sections */
.section {
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service {
    display: inline-block;
    width: 30%;
    margin: 10px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.service h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service p {
    font-size: 1rem;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(18, 18, 18, 0.9);
    color: #aaa;
    margin-top: auto;
}

.discord-link {
    display: block;
    margin-top: 10px;
    color: #1e90ff;
    transition: color 0.3s;
}

.discord-link:hover {
    color: #ff4500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button Animations */
.btn-primary {
    padding: 10px 20px;
    color: #fff;
    background: #1e90ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff4500;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

/* user circle */
.auth-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 18px; /* Donne une taille similaire au bouton bleu */
    border-radius: 6px; /* Arrondi les coins */
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #5865F2; /* Bleu */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: fixed;
    right: 20px;
    top: 20px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    width: auto; /* Ajuste la largeur automatiquement */
    height: auto; /* Ajuste la hauteur automatiquement */
    min-width: 120px; /* Minimum pour être lisible */
    text-align: center; /* Centre le texte */
    line-height: normal; /* Corrige l'alignement du texte */
}


.auth-circle:hover {
    background-color: #4752C4;
    transform: scale(1.05);
}

.auth-circle.logged-in {
    background-color: #4CAF50; /* Vert pour les utilisateurs connectés */
}

.auth-circle.not-logged-in {
    background-color: #f44336; /* Rouge pour les utilisateurs non connectés */
    font-size: 0.9rem;
}

/* discord */
.discord-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #5865F2, #4752C4);
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3);
}

.discord-link:hover {
    background: linear-gradient(45deg, #4752C4, #5865F2);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(88, 101, 242, 0.5);
    color: #fff !important; /* Garde le texte blanc */
}

.discord-icon {
    margin-right: 8px;
    font-size: 20px;
}

/* Masquer les éléments dynamiques par défaut */
.hidden {
    display: none;
}

/* Style de l'avatar circulaire */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5865F2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

/* Style du menu déroulant */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 150px;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease-in-out;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
}

/* login - sing up */
/* Conteneur de l'authentification */
#auth-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px; /* Espacement entre le bouton et le cercle */
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Style du bouton Se connecter */
#login-button {
    text-decoration: none;
    color: white;
    background-color: #5865F2;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
    white-space: nowrap; /* Évite que le texte soit coupé */
}

#login-button:hover {
    background-color: #4752C4;
}

/* Style du cercle utilisateur */

/* Effet au survol */
.auth-circle:hover {
    transform: scale(1.1);
}

/* Conteneur de l'authentification */
#auth-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: fixed; /* Utilise fixed pour que le conteneur reste en haut */
    top: 15px;
    right: 30px; /* Ajuste cet écart pour éloigner du bord */
    z-index: 1000;
}

/* Bouton de connexion */
#auth-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #5865F2;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    min-width: 120px;
    text-align: center;
    line-height: normal;
    position: relative; /* Il se positionnera par rapport au conteneur */
}

/* Hover effect */
#auth-circle:hover {
    background-color: #4752C4;
    transform: scale(1.05);
}

/* Responsive adjustments pour le conteneur */
@media screen and (max-width: 1024px) { /* Tablette */
    #auth-container {
        right: 25px;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    #auth-container {
        right: 20px;
    }
}

@media screen and (max-width: 480px) { /* Petit écran */
    #auth-container {
        right: 15px;
    }
}


/* ========================
   1. Styles Généraux
   ======================== */
   
   body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================
   2. Header & Navigation
   ======================== */

/* ========================
   3. Authentification & Bouton Connexion
   ======================== */

/* ========================
   4. Hero Section
   ======================== */

/* ========================
   5. Sections Principales
   ======================== */

/* ========================
   6. Animations et Effets
   ======================== */

/* ========================
   7. Pied de Page (Footer)
   ======================== */

/* ========================
   8. Styles Spécifiques (boutons, liens, responsive)
   ======================== */
