.box_backdrop {
    width: 100%;
    height: 100%;

    background-color: var(--col-blue-night-1);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    gap: 11%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;

    overflow: hidden;

    opacity: 1;
    transition: opacity 2s;
}

/*-----------------*/
.loading-text {
    font-family: system-ui;
    font-size: 0.8em;
    font-weight: 100;
    color: var(--col-white-1);
    text-align: center;
    /*text-shadow: 0 0 5px var(--col-white-1),
        0 0 10px var(--col-white-1),
        0 0 20px var(--col-white-1),
        0 0 40px var(--col-white-1);
    animation: glowPulse 2s infinite ease-in-out;*/
}

@keyframes glowPulse {
    0% {
        text-shadow:
            0 0 5px var(--col-white-1),
            0 0 10px var(--col-white-1),
            0 0 20px var(--col-white-1),
            0 0 40px var(--col-white-1);
        opacity: 0.8;
    }

    50% {
        text-shadow:
            0 0 10px var(--col-white-1),
            0 0 20px var(--col-white-1),
            0 0 40px var(--col-white-1),
            0 0 60px var(--col-white-1);
        opacity: 1;
    }

    100% {
        text-shadow:
            0 0 5px var(--col-white-1),
            0 0 10px var(--col-white-1),
            0 0 20px var(--col-white-1),
            0 0 40px var(--col-white-1);
        opacity: 0.8;
    }
}
/*-----------------*/

.backdrop_xb {
    border: solid 2px var(--col-gold-1);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 25px var(--col-gold-1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.backdrop_p_x {
    margin: 0px;
    color: var(--col-gold-1);
    display: flex;
    font-family: 'alex', sans-serif;
    font-size: 8em;
    justify-content: center;
    gap: 0;
    text-shadow: 0 0 15px var(--col-gold-1);
}

/* Animation des lettres */
.backdrop_p_x span {
    opacity: 0;
    transform: translateY(30px);
    animation: letterFade 1s ease forwards;
}

.backdrop_p_x span:nth-child(1) {
    animation-delay: 0.2s;
}

.backdrop_p_x span:nth-child(2) {
    animation-delay: 0.4s;
}

.backdrop_p_x span:nth-child(3) {
    animation-delay: 0.6s;
}

.backdrop_p_x span:nth-child(4) {
    animation-delay: 0.8s;
}

.backdrop_p_x span:nth-child(5) {
    animation-delay: 1s;
}

.backdrop_p_x span:nth-child(6) {
    animation-delay: 1.2s;
}

@keyframes letterFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Zone des étoiles */
.backdrop_box_stars {
    display: flex;
    gap: 30px;
}

/* Animation scintillante */
.icon-star {
    width: 16px;
    aspect-ratio: 1 / 1;
    fill: var(--col-gold-1);
    opacity: 0.6;
    animation: starTwinkle 2s infinite ease-in-out;
}

.icon-star:nth-child(1) {
    animation-delay: 0s;
}

.icon-star:nth-child(2) {
    animation-delay: 0.4s;
}

.icon-star:nth-child(3) {
    animation-delay: 0.8s;
}

.icon-star:nth-child(4) {
    animation-delay: 1.2s;
}

.icon-star:nth-child(5) {
    animation-delay: 1.6s;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/*----------------------*/

/* Fond étoilé séparé */
.night-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* pour ne pas gêner les interactions */
}

/* Style des points scintillants */
.night-sky .star {
    position: absolute;
    background-color: #ffe188;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 2s infinite ease-in-out;
}

/* Animation infinie */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/*----------MEDIA QUERY------------------*/

@media screen and (max-width: 450px) {
    .backdrop_p_x {
        font-size: 5em;
    }

    .backdrop_box_stars {
        gap: 20px;
    }

    .icon-star {
        width: 10px;
    }
}