body {
    overflow: hidden;
    margin: 0;
    background-color: var(--white);
}

/* --- LE LOADER TEXTUEL --- */
.glitchLoader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Ajout : évite que cette div bloque les clics plus tard */
}

.glitchDisplay {
    font-family: "Courier New", Courier, monospace;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.15em;
    white-space: nowrap;
    user-select: none;
    display: inline-block;
}

.nameDisplay {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
    user-select: none;
}

.name-clip {
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    line-height: 1;
}

.clip-ilhan { right: 100%; margin-right: 0.35em; }
.clip-boutboul { left: 100%; margin-left: 0.35em; }

.txt-ilhan,
.txt-boutboul {
    display: block;
    transform: translateY(100%);
}

/* --- LES VOLETS HAUT ET BAS --- */
.loaderTop {
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    height: 50vh;
}

.loaderBottom {
    z-index: 1000;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    height: 50vh;
}

/* --- LE CARROUSEL 3D ET UI --- */
.carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #E1EFE1; /* Ton bright green pour le fond 3D */
    z-index: 10;
}

#webgl-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-ui {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    pointer-events: none; /* Laisse passer les clics vers le Canvas 3D */
    z-index: 20;
    font-family: var(--hero);
    font-size: clamp(1.9rem, 5.4vw, 5.7rem);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Opacité et couleur gérées par le JS pour l'effet Focus Noir -> Flou Gris */
#ui-name, #ui-date {
    color: #000000;
    will-change: opacity, color;
}