html, body {
    overflow-x: hidden;
    overflow-anchor: none; /* Empêcher les layout shifts */
}

main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-wrapper {
    height: 100%;
    width: 50vw;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.reponse-container {
    padding: 10vw 0;
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.disable-scroll {
    -ms-overflow-style: none;  
    scrollbar-width: none;
}
.disable-scroll::-webkit-scrollbar { 
    display: none;
}

#reponse, #reponse-back {
    width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
    font-style: normal;
    font-size: 1.7rem;
    font-weight: 500;
    color: #333;
    word-wrap: break-word;
}

#reponse-back {
    position: absolute;
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
    transform: translate(100px, 100px);
}

.justify-text {
    text-align: justify;
    text-justify: inter-character;
}

@keyframes fadeInSimple {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.pointeur {
    width: 1em; 
    height: 1em; 
    vertical-align: middle;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.word {
    position: relative;
    top: 7px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.37, 0.57, 0.44, 0.9);
}

.pointeur-animation {
    transform: scale(1);
    opacity: 1;
}

.word-animation {
    top: 0px;
    opacity: 1;
}

.titre {
    font-size: 1.8rem;
    animation: fadeIn 1s;
    margin-bottom: 2rem;
    opacity: 0.4;
    text-transform: uppercase;
    text-align: left;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 0.4;
        transform: translateX(0);
    }
}

br {
    margin-left: 100px;
}


.indent {
    Padding-left:60px
}

/* center loader on the page */

.big-emoji {
    font-size: 7rem;
    filter: blur(7px);
    opacity: 0.5;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
} 

.reponse-wrapper {
    position: relative;
    width: 100%;
    margin: calc(20vh + 10vw) 0;
    contain: layout; /* Empêcher les layout shifts */
    will-change: transform;
}

.alert {
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 10px 20px;
    color: #757575;
    backdrop-filter: blur(10px);
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 200;
    text-transform:uppercase;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.alert p {
    animation: flash 0.5s ease-in-out infinite alternate;
}

@keyframes flash {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.show-alert {
    opacity: 1;
    transform: translate(-50%, -60%);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* RESPONSIVE */

@media (max-width: 800px) {

    #reponse, #reponse-back {
        font-size: 1.5rem;
    }

    .titre {
        font-size: 1.7rem;
        margin-bottom: 1.8rem;
    }

    .main-wrapper {
        width: calc(50vw + (800px - 100vw));
        max-width: 80vw
    }
}

@media (max-width: 476px) {
    .indent {
        Padding-left:10vw
    }
}  