@import url('reset.css');
@import url('variable.css');
@import url('color.css');
@import url('police.css');

body{
    margin: 0;
}

/* LOCK SCROLL QUAND LE MENU EST OUVERT */

body.nav-open {
    overflow: hidden;
}

nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    gap: 20px;
    margin: 0;
    padding: 20px 0 0 0;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.navUp{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px 0 40px;
}

.navButton{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.navRegister{
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Afacad';
    font-size: 20px;
    font-weight: 500;
    color: black;
    width: 180px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #000;
    border-radius: 100px;
    transition: 0.3s ease;
}

.navRegister:hover{
    transform: scale(1.05);
}

.navLogin{
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Afacad';
    font-size: 20px;
    font-weight: 500;
    color: black;
    width: 180px;
    height: 48px;
    background-color: #FEF2F4;
    border-radius: 100px;
    box-shadow: 
    0px 1px 4px 0px rgba(0, 0, 0, 0.25),
    inset 0px 4px 10px 6px rgba(255, 255, 255, 0.35),
    inset 0px -4px 4px 0px rgba(0, 0, 0, 0.15),
    inset -1px 0px 4px 0px rgba(0, 0, 0, 0.25),
    inset 3px 0px 6px 2px rgba(255, 255, 255, 0.25);
    transition: 0.3s ease;
}

.navLogin:hover{
    transform: scale(1.05);
}

.burger{
    display: none;
}

.navNav{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}

.navLink{
    display: inline-block;
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s ease;
}

.navLink:hover{
    color: #4d3dff;
    transform: translateY(-1px);
    opacity: 0.9;
}



.navMobile{
    display: none;
}





@media (max-width: 833px){
    
    .navButton, .navDown{
        display: none;
    }

    .navMobile{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: fixed;
        inset: 0;
        background-color: #F4F4F4;
        padding: 60px 0 60px 0;
        transform: translateX(100%); 
        transition: transform 0.5s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100;
    }

    .mobile-menu{
        transform: translateX(0);
    }

    .no-scroll {
        overflow: hidden; 
    }

    .navMobileUp{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .navMobileDown{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .navMobileUp p, .navMobileDown p{
        font-size: 28px;
        font-family: 'Afacad';
        color: #000;
        font-weight: 500;
        text-align: left;
        width: 320px;
        margin: 40px 0 0 0;
    }

    .accordionContent {
        display: none;
        flex-direction: column;
        gap: 12px;
    }

    .accordionHeader{
        cursor: pointer;
    }

    .accordionHeader svg{
        transition: transform .3s ease;
        font-size: 20px;
    }

    .accordionHeader.active svg{
        transform: rotate(90deg);
    }

    .buttonNavMobile{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px 0 10px;
        width: 300px;
        height: 32px;
        background-color: white;
        border: 1px solid #CECECE;
        border-radius: 15px;
        text-decoration: none;
        color: #000;
        font-family: 'Afacad';
        
    }

    .burger {
        display: block;
        width: 35px;
        height: 32px;
        cursor: pointer;
        position: relative;
        margin: 0;
        z-index: 999;
    }

    .burger:before, .burger span, .burger:after {
        width: 100%;
        height: 4px;
        display: block;
        background: #000000;
        border-radius: 2px;
        position: absolute;
        opacity: 1;
    }

    .burger:before, .burger:after {
        transition: top .35s cubic-bezier(.23,1,.32,1),transform .35s cubic-bezier(.23,1,.32,1),opacity .35s cubic-bezier(.23,1,.32,1),background-color 1.15s cubic-bezier(.86,0,.07,1);
        -webkit-transition: top .35s cubic-bezier(.23,1,.32,1),-webkit-transform .35s cubic-bezier(.23,1,.32,1),opacity .35s cubic-bezier(.23,1,.32,1),background-color 1.15s cubic-bezier(.86,0,.07,1);
        content: "";
    }

    .burger:before {
        top: 4px;
    }

    .burger span {
        top: 15px;
    }

    .burger:after {
        top: 26px;
    }

    .burger:hover:before {
        top: 7px;
    }

    .burger:hover:after {
        top: 23px;
    }

    .burger.cross span {
        opacity: 0;
    }

    .burger.cross:before, .burger.cross:after {
        top: 40%;
    }

    .burger.cross:before {
        -webkit-transform: rotate(45deg); 
        -moz-transform: rotate(45deg);  
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=5); 
    }

    .burger.cross:after {
        -webkit-transform: rotate(-45deg); 
        -moz-transform: rotate(-45deg);  
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=-5); 
    }

    .burger:focus {
        outline: none;
    }

}



