* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #00000A;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow: hidden;
}

.webgl { position: fixed; top: 0; left: 0; outline: none; }

#loader {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #A0A0C0;
    transition: opacity 0.5s ease;
}

#loader.hidden { opacity: 0; pointer-events: none; }

.back-link {
    position: fixed; top: 20px; left: 20px; z-index: 100;
    color: #A0A0C0; text-decoration: none;
    background-color: rgba(13, 13, 26, 0.5);
    padding: 10px 20px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}
.back-link:hover { background-color: rgba(54, 54, 123, 0.8); }

#ui-container {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 600px;
    max-height: 80vh;
    background-color: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#ui-container.hidden {
    opacity: 0; pointer-events: none;
    transform: translate(-50%, -45%);
}

#close-btn {
    position: absolute; top: 15px; right: 15px;
    font-size: 2rem; color: #A0A0C0;
    background: none; border: none; cursor: pointer;
}

#ui-content { padding: 2.5rem; overflow-y: auto; max-height: 80vh; }
#ui-content h2 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; color: #8A4FFF; }
#ui-content p { line-height: 1.6; color: #E0E0FF; margin-bottom: 1rem; }
#ui-content ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
#ui-content li {
    background-color: rgba(138, 79, 255, 0.1);
    color: #A577FF; padding: 0.3rem 0.8rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
/* =============================================
   STYLE DE LA CARTE DE PROFIL (AJOUT)
   ============================================= */
.profile-card {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem; /* Espace entre la photo et le texte */
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Image de profil ronde */
    border: 3px solid #8A4FFF; /* Bordure violette */
    object-fit: cover; /* S'assure que l'image remplit bien le cercle */
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    color: #8A4FFF; /* Titre violet */
    margin: 0;
}

.profile-age {
    font-size: 1rem;
    color: #A0A0C0; /* Couleur secondaire */
    margin-bottom: 0.5rem;
}

.profile-title {
    font-weight: 700;
    color: #E0E0FF;
    margin: 0;
}

.profile-description {
    line-height: 1.6;
    color: #E0E0FF;
}


#tutorial-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(13, 13, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    z-index: 200; /* Au-dessus de tout */
    transition: opacity 0.5s ease;
}

#tutorial-container p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #E0E0FF;
}

#tutorial-container.hidden {
    opacity: 0;
    pointer-events: none;
}

#start-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #8A4FFF;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

#start-btn:hover {
    transform: scale(1.05);
}

#warp-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    opacity: 0;
    pointer-events: none; /* Important pour ne pas bloquer les clics */
    z-index: 9999; /* Pour qu'il soit au-dessus de tout */
}