/* --- Styles Généraux --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.noise {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* --- Utilitaires de positionnement --- */
.profile-scroller {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.-z-10 { z-index: -10; }
.pointer-events-none { pointer-events: none; }

/* --- Conteneur du Profil (Hero) --- */
.hero-container {
    min-height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.profile-card-wrapper {
    max-width: 560px;
    width: 100%;
    perspective: 900px;
}

.profile-card {
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.06);
    max-width: 560px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* --- Disposition initiale : Avatar au-dessus, texte en dessous --- */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* --- Avatar & En-tête --- */
.avatar-container {
    position: relative;
    width: 7rem;
    height: 7rem;
    margin: 0 auto;
}

.avatar-wrapper {
    width: 7rem;
    height: 7rem;
    overflow: hidden;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-decoration {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 124%;
    height: 124%;
    max-width: none;
    pointer-events: none;
    z-index: 10;
}

/* --- Pseudo --- */
.user-info {
    text-align: center;
    width: 100%;
    container-type: inline-size; 
}

.username {
    text-align: center;
    font-size: clamp(1.5rem, 12cqw, 3.5rem); 
    font-weight: 800;
    letter-spacing: -0.025em;
    color: rgb(172, 231, 155);
    width: 100%;
}