@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');


header{
    box-shadow: 0 .15em .15em 0 #0000003c;
    z-index: 10;
    position: sticky;
    top:0px;
    background-color: #ffffff;
    width: 100vw;
}

.header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin:0 min(3em, 4vw);
    height: 6em;
    z-index: 50;

}


.header_wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap:3vw;
    height: inherit;
}


#header_logo{
    width: 7em;
}

.header_section_texte{
    font-size: 1.1em;
    color: #494949;
    font-weight: 600;
    text-decoration: none;
}

#header_produits, #header_a_propos{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .3em;
    height: 6em;
}

.header_down_arrow{
    height: .6em;
}


.dropdown .contenu_dropdown{
    display: none;
    position: absolute;
    top:5.9em;
    box-shadow: 0 .8em 1em rgba(0,0,0,0.2); /* Add some shadow for a 3D effect */
    z-index: 6;/*on sait jamais avec le carroussel*/
    background-color: #ffffff;
    padding:1em;
    width: 15em;
}
.contenu_dropdown a{

    border-bottom: 1px solid #939393;
    color: #494949;
    padding-bottom:.5em;
    width: 100%;
    text-decoration: none;
}

.dropdown:hover .contenu_dropdown{
    display: flex;
    flex-direction: column;
    gap:1.7em;
}


#header_connexion{
    color: #494949;
    text-decoration: none;  
}
#header_connexion:visited{
    color: #494949;
}

#compte{
    display: flex;
    align-items: center;
    gap: .7em;
    color: #494949;
    text-decoration: none;
}

#icon_panier{
    height: 2.1em;
    margin-right: .5em;
    border-right: 2px solid #494949;
    padding-right: 1em;
}


#panier{
    text-decoration: none;
}
#pastille_panier{
    position: relative;
    height: 0;
}
#pastille_panier_texte{
    position: relative;
    background-color: #71B498;
    color: #fff;
    border-radius: 1em;
    text-align: center;
    font-size: .8em;
    font-weight: 700;
    bottom: 3.4em;
    left:1.6em;
    margin-right: 2em;
    width: 1.5em;
    height: 1.25em;
    padding: .12em 0;
}
#pastille_panier:visited{
    text-decoration: none;
}


#icon_compte{
    height: 2.1em;
}

#texte_salutation{
    color: #777777;
    font-weight: 600;
    font-size: .9em;

}
#prenom_salutation{
    color: #494949;
    font-weight: 600;
    font-size: .9em;
}

#header_burger{
    display: none;
}
#header_sidebar_telephone{
    display: none;
}

.invisible{
    transform:translateX(0) !important;
}


#header_a_propos_telephone, #header_produits_telephone{
    display: flex;
    align-items: center;
    gap:.5em;
}

#header_sandwich_bouton_invisible{
    display: none;
    border: none;
    background: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: none;
    transition: .5s;
}
.header_sandwich_bouton_invisible_actif{
    display: block !important;
    box-shadow: inset 0 2em 100vw 10em rgba(0,0,0,0.4) !important; 

}

@media screen and (max-width: 800px){
    .dropdown, .header_ordinateur{
        display: none;
    }
    .header{
        height: 5em;
    }
    .header_wrapper{
        width: calc(50vw + 1.5em);
        justify-content: space-between;
    }
    
    #header_burger{
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }
    #header_burger>button{
        border: none;
        background: none;
    }
    #burger{
        height: 2.5em;
    }

    #header_logo{
        width: 6em;
    }
    #panier{
        display: none;
    }

    #icon_compte{
        height: 1.7em;
    }
    #header_sidebar_telephone{
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 1.5em;
        padding: 3em min(2em, 5vw) 0 1em;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #ffffff;
        box-shadow: none; 
        height: 100vh;
        width: min(12em, 70vw);
        transform:translateX(calc(-100vw - min(2em, 5vw) - 1em));
        transition: transform .3s;
        z-index: 10;
    }

    #header_sidebar_telephone >button{
        border: none;
        background: none;
    }
    #header_telephone_fermer{
        height: 1.7em;
        filter:invert(0.28);/*pour le rendre gris */
        margin-bottom: 1em;
    }

    .dropdown_telephone{
        display: flex;
        flex-direction: column;
        gap: .7em;
    }
    .contenu_dropdown_telephone{
        display: none;
    }
    .dropdown_telephone:hover .contenu_dropdown_telephone{
        display: flex;
        flex-direction: column;
        gap: .7em;
    }
    .contenu_dropdown_telephone a, #panier_telephone{
        color: #494949;
        text-decoration: none;
    }
    .header_section_texte{
        font-size: 1.05em;
    }

}
