/* ------------------------------------ GENERAL */
:root{
    --white: white;
    --grey: #F8F9FA;
    --darkgrey: #F2F2F2;
    --darker: #DADCE0;
    --black: #202124;
}
*{
    padding: 0;
    margin: 0;
}
html{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    color: var(--black);
    font-weight: lighter;
}
body{
    max-width: 100vw;
    max-height: 100vh;
    overflow-y: scroll;
    background-color: var(--white);
}
header, #searchbar, #links{
    display: flex;
    justify-content: space-between;
}
button, a{
    text-decoration: none;
    border: 0;
    background-color: transparent;
}
button:hover{
    cursor: pointer;
    background-color: var(--darkgrey);
}
a{
    cursor: pointer;
    color: var(--black);
    white-space: nowrap;
}
a:hover{
    text-decoration: underline;
}
img{
    width: 100%;
    height: auto;
}

/* ------------------------------------ HEADER */
header{
    padding: 1.5em 1.1em;
}
header div>*{
    padding: 0em .6em;
}
header button{
    border-radius: 50px;
    width: fit-content;
    height: fit-content;
}
header img{
    width: 3em;
    height: auto;
}
#compte{
    padding: 0em .5em;
    font-size: 10pt;
    display: flex;
    align-items: center;
}
#points{
    transform: scale(.4);
}
#profil{
    border-radius: 50px;
}

/* ------------------------------------ SEARCHBAR */
#main>*{
    width: fit-content;
    margin: 0 auto;
}
#main{
    width: fit-content;
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.logo{
    margin: 0 auto !important;
    max-width: 19em;
    width: 19em;
    padding-left: 2em;
    padding-bottom: 2em;
    height: auto;
}
#searchbar{
    margin: 0 auto;
    background-color: var(--white);
    border: .05em solid var(--darker);
    box-shadow: var(--darker) 0px 1px 3px;
    padding: 0em 1.2em;
    border-radius: 50px;
    max-width: 38em;
    height: 3.5em;
    line-height: 18px;
    justify-content: space-evenly;
    gap: 2em;
    align-items: center;
}
#searchbar:hover{
    box-shadow: var(--darker) 0px 1px 12px;
}
#searchbar img{
    width: auto;
    height: 1.2em;
}
textarea{
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 8px solid transparent;
    overflow-x: hidden;
    resize: none;
    background-color: transparent;
    border: none;
    width: 30em;
    outline: none;
    line-height: 20px;
    padding-top: 20px;
}
textarea:focus{
    border: 0;
}
#buttons *{
    font-size: 11pt;
    color: var(--black);
    background-color: var(--grey);
    padding: .5em 1em;
    border-radius: 5px;
    border: .1em solid var(--grey);
}
#buttons{
    padding: 1em 0em;
    width: fit-content;
    margin: 0 auto;
    display: flex;
    gap: 1em;
}
#buttons *:hover{
    border: .1em solid var(--darker);
    box-shadow: 0px 0px 10px var(--darkgrey);
}

/* ------------------------------------ FOOTER */
footer{
    position: fixed;
    bottom: 0;
    background-color: var(--darkgrey);
    width: 100%;
}
footer>*:not(hr){
    padding: 1em;
}
.footer-link *{
    padding: 0em .8em;
}
#links, footer p{
    padding: 1em 1.8em;
}
#links div:last-of-type{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 30%;
    order: 3;
}
#ecolo{
    width: fit-content;
    margin: 0 auto;
}
hr{
    border: 0.05px solid var(--darker);
}

/* ------------------------------------ RESPONSIVE N°1 */
@media screen and (max-width:1200px) {
    #links{
        display: block;
    }
    #links div{
        margin: 0 auto;
        width: fit-content;
    }
    #links a{
        line-height: 3;
    }
}

/* ------------------------------------ RESPONSIVE N°2 */
@media screen and (max-width:600px) {
    #main{
        max-width: 80vw;
        left: 47%;
    }
    #searchbar{
        max-width: 100%;
    }
}