:root {
    --marge-screen: 1rem;
    --analyse-text-area-height: 20rem;
}
*{
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}
body{
    background-color: black;
}
a, button, input[type="submit"]{
    cursor: pointer;
}
textarea:focus {
    outline: none;
}
.main-block{
    display: flex;
    max-width: 100%;
    overflow-x: hidden;
}

/*--General Nav Bar--*/
.nav-bar{
    width: 15rem;
    height: 100vh;
    padding: var(--marge-screen);
    overflow: hidden;
    transition: 100ms ease-in-out;
}
.nav-bar.hide{
    transform: translateX(-100%);
    width: 0;
    padding: 0;
}
.nav-bar *{
    color: white;
}
.nav-bar .logo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.nav-bar .logo img{
    width: 70%;
    height: auto;
    object-fit: contain;
}
.nav-bar .hamburger{
    height: 1.8rem;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: 100ms ease-in-out;
}
.nav-bar .hamburger:hover{
    transform: scale(110%);
}
.nav-bar ul{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.nav-bar ul a{
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgb(26, 26, 26);
    padding: .75rem;
    border-radius: .5rem;
    font-size: .9rem;
    transition: 100ms ease-in-out;
}
.nav-bar ul a:hover{
    background-color: rgb(31, 31, 31);
    transform: scale(110%);
}
.nav-bar svg{
    height: .8rem;
    width: .8rem;
}
.nav-bar .liens-primaires ul > li:nth-child(1) svg{
    stroke: #A3CB38;
}
.nav-bar .liens-primaires ul > li:nth-child(2) svg{
    stroke: #0652DD;
}
.nav-bar .liens-primaires ul > li:nth-child(3) svg{
    stroke: #EA2027;
}
.nav-bar .liens-primaires ul > li:nth-child(4) svg{
    stroke: #FFC312;
}
.nav-bar .liens-primaires ul > li:nth-child(5) svg{
    stroke: #9980FA;
}

.nav-bar .liens-primaires{
    margin-bottom: 4rem;
}

.nav-bar .liens-secondaires{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.nav-bar .liens-secondaires > span{
    opacity: .5;
}
.square{
    height: .8rem;
    width: .8rem;
    border-radius: .2rem;
    background-color: white;
}
.nav-bar .liens-secondaires ul > li:nth-child(1) .square{
    background-color: #576574;
}
.nav-bar .liens-secondaires ul > li:nth-child(2) .square{
    background-color: #5f27cd;
}
.nav-bar .liens-secondaires ul > li:nth-child(3) .square{
    background-color: #ff9f43;
}
.nav-bar .liens-secondaires ul > li:nth-child(4) .square{
    background-color: #66CDAA;

}
.nav-bar .liens-secondaires ul > li:nth-child(5) .square{
    background-color: #1E90FF;
}

/*--General Main Content--*/
.main-content{
    position: relative;
    height: calc(100vh - (var(--marge-screen) * 2));
    background-color: white;
    flex: 1;
    margin: var(--marge-screen);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.main-content header{
    padding: var(--marge-screen) calc(var(--marge-screen) * 2);
    width: 100%;
    border-bottom: #0000005b solid 1px;
    box-shadow: #00000026 0 0 10px;
    transition: 100ms ease-in-out;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.main-content header .hamburger{
    display: none;
    cursor: pointer;
    height: 1.8rem;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: 100ms ease-in-out;
}
.main-content header .hamburger:hover{
    transform: scale(110%);
}
.main-content.hide header .hamburger{
    display: block;
}
.main-content h1{
    font-size: 1.5rem;
}

/*--Home--*/
.main-content .home-block{
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: var(--marge-screen);
    height: 100vh;
}
.main-content .home-block .home-bubble{
    border-radius: 1rem;
    padding: var(--marge-screen);
    width: 80%;
    line-height: 1.5rem;
}
.main-content .home-block .logo{
    margin-top: 2rem;
    width: 50vw;
    max-width: 30rem;
    height: auto;
}
.credits{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    height: 100%;
    width: 100%;
}
.credits > div{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.credits a{
    display: flex;
    height: 100%;
    width: 100%;
    align-items: flex-end;
}
.credits a img{
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}
.main-content .menu{
    display: flex;
}
.main-content .menu a{
    display: block;
    padding: 1rem;
    background-color: black;
    border-radius: 1rem;
    color: white;
    transition: 100ms ease-in-out;
}

/*--About us*/
.block-photo{
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 70%;
}
.main-content .home-block .photo{
    width: 15rem;
    height: 15rem;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
}
.line{
    width: 65%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.432);
}
/*--Analyse--*/
.main-content .analyse-block{
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: var(--marge-screen);
    max-height: calc(100% - (var(--analyse-text-area-height) + (var(--marge-screen) * 4)));
}
.main-content .analyse-block .analyse-bubble{
    border-radius: 1rem;
    border: #0000005b solid 1px;
    padding: var(--marge-screen);
    width: 80%;
    line-height: 1.5rem;
    margin-bottom: 2rem;
}
#text-bienvenue{
    font-style: italic;
}
#text-bienvenue img{
    height: 2rem;
    width: auto;
    vertical-align: middle;
}
.main-content .text-input{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--marge-screen);
    margin: var(--marge-screen);
    display: flex;
    flex-direction: column;
    border: #0000005b solid 1px;
    border-radius: 1rem;
    height: var(--analyse-text-area-height);
    background-color: white;
}
.main-content .text-input form{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-content .text-input form .buttons{
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.main-content .text-input form .buttons label{
    padding: 1rem;
    background-color: black;
    border-radius: 1rem;
    color: white;
}
.file-container input[type="file"], .file-container #next-btn {
    display: none;
    padding: 0;
    height: 0;
}
.file-container {
    cursor: pointer;
}

.file-container i {
    font-size: 1.4rem;
    transition: 100ms ease-in-out;
}
.file-container i:hover{
    color: rgb(31, 31, 31);
    transform: scale(110%);
}
.main-content textarea{
    border: none;
    resize: none;
    width: 100%;
    height: 100%;
}
#block-counter{
    position: absolute;
    right: 0;
    bottom: 0;
    padding: var(--marge-screen);
}
#counter{
    display: block;
    font-size: .8rem;
    opacity: 0.8;
    text-align: right;
}
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    border-radius: 1rem;
    max-width: 400px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.modal-header{
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border-bottom: #0000005b solid 1px;
    box-shadow: #00000026 0 0 10px;
    padding: var(--marge-screen);
}
.modal-header h2{
    font-size: 1.2rem;
}
.close {
    font-size: 1.4rem;
    cursor: pointer;
}
.checkboxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: var(--marge-screen);
}
.checkboxes li{
    display: flex;
    align-items: center;
    width: 100%;
    gap: .5rem;
}
.checkboxes input[type="checkbox"]{
    width: 1rem;
    height: 1rem;
}
.checkboxes input[type="submit"]{
    padding: 0.7rem 1rem;
    border: none;
    color: white;
    background-color: black;
    border-radius: .5rem;
    height: fit-content;
    width: fit-content;
}


/*--Resultat--*/
.preformatted-text {
    white-space: pre-wrap;
}


.center {
	margin: auto;
	text-align: center;
}
.main-content .chat-block{
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: var(--marge-screen);
    padding-bottom: 5rem;
}
.main-content .chat-block .bubble-left{
    display: flex;
    justify-content: flex-start;
}
.main-content .chat-block .bubble-right{
    display: flex;
    justify-content: flex-end;
}
.main-content .chat-block .bubble-center{
    display: flex;
    justify-content: center;
    /*margin: auto;
	text-align: center;*/
}

.main-content .chat-block  .bubble-left .chat-bubble{
    border-radius: 1rem;
    padding: var(--marge-screen);
    max-width: 80%;
    line-height: 1.5rem;
    display: flex;
    flex-direction: column;
	background-color: #F0F8FF;
    border: #0000005b solid 2px;
}
.main-content .chat-block  .bubble-right .chat-bubble{
    border-radius: 1rem;
    padding: var(--marge-screen);
    max-width: 80%;
    line-height: 1.5rem;
    display: flex;
    flex-direction: column;
	background-color: #0080FF;
	border: #0000005b solid 2px;
	color: #ffffff;
}	
.main-content .chat-block  .bubble-center .chat-bubble{
    border-radius: 1rem;
    padding: var(--marge-screen);
    max-width: 80%;
    line-height: 1.5rem;
    display: flex;
    flex-direction: column;
	background-color: #FFE5CC;
	border: #0000005b solid 2px;
	color: #FF8000;
}
.main-content .text-input.resultat{
    height: 5rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    border: none;
    margin: 0;
    background: transparent;
}
.main-content .text-input.resultat a{
    display: block;
    padding: 1rem;
    background-color: black;
    border-radius: 1rem;
    color: white;
    transition: 100ms ease-in-out;
}
.main-content .text-input.resultat a:hover{
    background-color: rgb(31, 31, 31);
    transform: scale(105%);
}

/*--Newsletter*/
.main-content .newsletter-block{
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--marge-screen);
}
.main-content .newsletter-block .newsletter-bubble{
    max-width: 500px;
    border-radius: 1rem;
    border: #0000005b solid 1px;
    padding: var(--marge-screen);
    width: 70%;
    line-height: 1.5rem;
    margin-bottom: 2rem;
}
.main-content .newsletter-block .newsletter-bubble form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-content .newsletter-block .newsletter-bubble form p{
    display: flex;
    justify-content: space-between;
    gap: 1rem;

}
.main-content .newsletter-block .newsletter-bubble form p input{
    width: 70%;
    border: none;
    border-bottom: 1px solid black;
    padding: 0.5;
}
.main-content .newsletter-block .newsletter-bubble h2{
    margin-bottom: 2rem;
}
.main-content .newsletter-block .newsletter-bubble button{
    padding: 1rem;
    background-color: black;
    border-radius: 1rem;
    color: white;
    border: none;
}

/*--ScrollBar--*/
/* Universal style */
::-webkit-scrollbar {
    width: 8px; /* Adjust width as needed */
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Adjust color as needed */
    border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; /* Adjust color as needed */
    border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Adjust color as needed */
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

@media screen and (max-width: 480px) {
    .main-content .home-block .home-bubble{
        width: 100%;
    }
    .main-content .analyse-block .analyse-bubble {
        width: 100%;
    }
    .modal-content {
        max-width: calc(100% - (var(--marge-screen) * 2));
    }
    .main-content .chat-block .chat-bubble {
        max-width: 85%;
    }
    .block-photo {
        flex-direction: column;
    }
    .nav-bar {
        width: 100%;
    }
    :root {
        --marge-screen: .5rem;
        --analyse-text-area-height: 15rem;
    }
}

.img-loading{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-loading img{
    object-fit: contain;
    width: 10rem;
    height: 10rem;
}