@import url('variables.css');

p{
    color: white;
}
body{
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

#layout{
    display: flex;
    flex-direction: row;
}

#left{
    width: 25%;
    max-width: 400px;
    height: 700px;
    background-color: var(--primary-color);
    padding-top: 30px;
    border: 1px solid var(--light);
    transition: transform 0.3s ease-in-out;
}

#switch{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 40%;
    margin: auto;
}

#switch a,#switch p{
    color: white;
    font-size: 16px;
    text-decoration: none;
    margin: 0;
}


#search {
    width: 70%;
    height: 100px;
    margin: auto;
    position: relative;
}

#search input{
    width: 100%;
    height: 30px;
    border: 1px solid var(--light);
    background-color: var(--primary-color);
    border-radius: 30px;
    margin-bottom: 40px;
    padding-left: 40px ;
    color: white;

}

#menu{
    width: 70%;
    margin: auto;
}
#menu>ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

#menu>ul>li>a{
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}
#right{
    width: 100%;
    height: auto;
}
main{
    background-color: var(--primary-color);
    margin: 0;
}

#main-close{
    min-height: 600px ;
}

#account{
    position: absolute;
    top: 0;
    right: 0;
    border-bottom: 1px solid white;
    border-left:1px solid white ;
    padding: 15px 20px 15px 20px;
    z-index:1000;
    background-color: var(--primary-color);
}
#account-connected{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:20px;
}
.quota{
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}
.menu-open #left {
    transform: translateX(0);
    width: 50% !important;
}

.notVisible{
    display: none !important;
}

#logo{
    width: 200px;
    height: 70px;
    object-fit: contain;
    margin: 30px auto 10px auto;
    
}

#switch-phone{
    display: none;
}

#logo-phone{
    display: none;
}


footer{
    width: 80%;
    margin: auto;
    height: 200px;
    border: 1px solid var(--light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1150px;
    margin-top: 100px;
}

#logo-footer{
    width: 150px;
    height: 50px;
}

#footer-top{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 30px;
    width: 70%;
    margin-left: 20px; 
}
#footer-top-menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 500px;
    margin-left: 30px;
}

#footer-top a,#footer-top p {
    color: white;
    font-size: 18px;
    font-weight: 400;
}

#footer-bottom{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 520px;
    margin: 0 auto;
    height: 50px;
}

#footer-bottom a, #footer-bottom p{
    color: white;
    font-size: 16px;
    font-weight: 400;
}
/*Icons*/

#search-icon{
    position: absolute;
    top: 40px;
    left: 5px; 
    transform: translateY(-50%);
    height: 30px;
    width: 30px;
    padding: 8px;
    cursor: pointer;
}

#account-icon{
    height: 25px;
    width: 25px;
}

#menu-icon{
    display: none;
}

#close-icon{
    display: none;
}

#switch-icon{
    height: 25px;
    width: 25px;
}

.ress-icone{
    width: 20px;
    height: 20px;
}

@media (max-width: 1400px){
    #left{
        width: 26%;
    }
    #right{
        width: 74%;
    }
}

@media (max-width: 1000px) {
    #left {
        transform: translateX(-400px);
        width: 0;
        height: auto;
    }
    #right{
        width: 100%;
        
    }
    #top{
        height: auto !important;
    }
    #menu-icon{
        display: block;
        width: 40px ;
        height: 40px;
        margin-left: 25px ;
        margin-top: 10px;
    }
    #close-icon{
        display: block;
        width: 30px ;
        height: 30px;
    }

    #switch {
        display: none !important;
    }
    
    #switch-phone{
        display: block;
        background-color: var(--light);
        width: 100px;
        height: 35px;
        border-radius: 30px;
        padding: 0 7px 0 7px;
        align-items: center;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    #switch-phone p {
        color: black;
    }

    #up-header-phone{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 30px 0 30px;
    }


    #logo-phone{
        display: block;
        width: 150px;
        height: 45px;
        position: absolute;
        top: 17px;
        right: 50%;
        transform: translateX(50%);
    }
    footer{
        width: 100%;
        height: 230px;
    }
    #footer-top{
        flex-direction: column;
        gap: 20px;
        align-items:flex-start;

    }
    #logo-footer{
        margin-right: auto;
        margin-left: 30px;
    }
    #footer-top-menu{
        justify-content: space-between;
        flex-wrap: wrap;
        margin-right: 20px;
    }
    #footer-bottom{
        flex-wrap: wrap;
        margin-left: 50px;
        margin-right: 20px;
        height: 70px;
        padding-bottom: 20px;
    }
    #footer-bottom a{
        width: 200px;
    }
}


@media (max-width: 750px){
    .menu-open #left {
        transform: translateX(0);
        width: 100% !important;
        padding-bottom: 100px;
    }
    .right-close {
        display: none;
    }
}
@media (max-width: 640px){
    #account-connected{
        flex-direction: column;
    }
}

@media (max-width: 600px){
    #footer-top-menu{
        width: 90%;
    }
    #footer-bottom{
        width: 90%;
    }
}

@media (max-width: 450px){
    footer{
        height: 260px;
    }
    #footer-bottom{
        height: 90px;
    }
}

/* Layout close */

#logo-close{
    display: block;
    width: 200px;
    height: 70px;
    position: absolute;
    top: 10px;
    right: 50%;
    transform: translateX(50%);
}
#close{
    position: absolute;
    top: 0;
    right: 0;
    padding: 30px 40px 30px 40px;
}
#close img, #back img{
    height: 35px;
    width: 35px;
}

#header-close{
    width: 100%;
    height: 150px;
}

#title{
    position: absolute;
    top: 50px;
    right: 50%;
    transform: translateX(50%);
    color: white;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    max-width: 350px;
}

#back{
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 15px;
    border: 1px white solid;
}

