@font-face {
    font-family: 'Carnas-bold';
    src: url('../lib/fonts/carnas-bold.eot');
    /* Chemin vers le fichier .eot */
    src: url('../lib/fonts/carnas-bold.eot?#iefix') format('embedded-opentype'),
        url('../lib/fonts/carnas-bold.woff2') format('woff2'),
        url('../lib/fonts/carnas-bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carnas-reg';
    src: url('../lib/fonts/carnas-reg.eot');
    /* Chemin vers le fichier .eot */
    src: url('../lib/fonts/carnas-reg.eot?#iefix') format('embedded-opentype'),
        url('../lib/fonts/carnas-reg.woff2') format('woff2'),
        url('../lib/fonts/carnas-reg.woff') format('woff');
    font-weight: lighter;
    font-style: normal;
}

:root {
    --background-color: #078D33;
    --font-size: 18px;
    --color: #484848;
    --font-family: 'Carnas-reg';
    --background-color-mobil: #078D33;
    --background-color-widget: rgb(43, 43, 43);
}

* {
    font-size: var(--font-size);
    color: var(--color);
    font-family: var(--font-family);
}



html,
body {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    min-width: 800px;
    min-height: 600px;
}






body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    background-size: cover;
    /* Couvre toute la page */
    background-repeat: no-repeat;
    /* Ne répète pas l'image */
    background-attachment: fixed;
    /* L'image reste fixe lors du défilement */
    background-position: center;
    /* Centre l'image */
    z-index: -1;
    /* Place l'image derrière le contenu */
}


/*Main container*/

#mainbody {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-height: 100vh;
    height: fit-content;
    overflow-y: hidden;
    flex: 1;
}


#mainContainer {
    min-height: 540px;
    height: 98vh;
    width: 100%;
    position: relative;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Centre horizontalement */
    border-radius: 10px;
    margin: 0.5em;
    background-color: white;
    transition: transform 0.5s ease-in-out, width 0.5s ease-in-out;
    transform: translateY(110%);
    z-index: 9999;
    min-width: 540px;
}

.mainContent {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: white;
}


.main-container .content {
    flex: 1;
    /* Take up remaining space */
    width: 100%;
    /* Ensure content takes full width */
    height: 100%;
}





.body {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
}

.container {
    display: flex;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
    flex-direction: column;
    /* Stack items vertically */
    margin: 0;
    width: 100%;
    --height-container: 100%;
    /* 5% de la hauteur de .container */
    height: 100%;


}

.container>* {
    width: 100%;
    /* Ajustez cette valeur selon vos besoins */
    left: 0;
    margin-left: 0;

}











#loading,
#loadingSource {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

#loadingSource {
    display: inline-block;
    position: absolute;
    right: 150px;
    /* Positionne l'indicateur de chargement à droite */
    top: 15px;
    /* Centre verticalement l'indicateur de chargement */
    transform: translateY(-50%);
    /* Ajuste la position pour centrer parfaitement */
    font-size: 18px;
    color: #333;
}


.loading-indicator {
    position: relative;
    border: 2px solid #f3f3f3;
    /* Light grey */
    border-top: 2px solid #000000;
    /* Blue */
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    /* Align vertically with the button */
}

.loading-indicator.hidden {
    opacity: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



#overlay {
    display: none;
    /* Initialement caché */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Couleur de l'ombre */
    z-index: 999;
    /* Assure que l'overlay est au-dessus des autres éléments */
    opacity: 0;
    /* Initialement transparent */
    transition: opacity 0.25s ease;
    /* Transition pour l'opacité */
}

@media screen and (max-width: 768px) and (max-height: 1024px) {

    .body {
        height: 100%;

    }






    #mainbody,
    #mainbody #mainContainer,
    #bodyContainer,
    body {
        min-width: 0px;
        min-height: 0px;
        max-height: 100%;
        width: 100%;
        height: 100%;
        margin-right: 0;
        position: absolute;
        top: 0;
        right: 0;
        padding: 0;
        border-radius: 0%;
    }


}

.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 5rem;
    height: 5rem;
    border: 0.5rem solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 0.5rem solid #ffffff;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}