*{
    margin: 0;
}

body {
    overflow-x: hidden;
    margin: 0px;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    padding-top: 92px;
    font-variation-settings:
        "wdth" 100;
}

img {
    height: auto;
}

.flex {
    display: flex;
    flex-direction: row;
}

/* /////////////////////////////////// barre de menu //////////////////////////////////// */

.bar_menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
}

.bar_menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    margin-top: 15px;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    transform: translateY(0%);
    transition-duration: 500ms;
}

.bar_menu a {
    display: block;
    text-decoration: none;
    color: black;
    font-size: 1.5em;
    background-color: aliceblue;
    text-align: center;
    height: 60px;
    width: 151px;
}

.bar_menu.scroll_down {
    transform: translateY(-155%);
    transition-duration: 500ms;
}

/* /////////////////////////////////// fonction de recherche //////////////////////////////////// */

.search, .btnCompte {
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.popSearch {
    display: none;
    position: fixed;
    transform: translateY(-50%);
    margin: auto;
    top: 50%;
    z-index: 1002;
    border-radius: 20px;
    height: 70%;
    width: 90%;
    overflow-y: scroll;
}

.popSearch.showS {
    display: block;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* légèrement sombre */
    backdrop-filter: blur(5px);       /* flou du fond */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 1001;
}

.overlay.showOverlay {
    opacity: 1;
    visibility: visible;
}

body.no_scroll {
    overflow: hidden;
}

.searchInPop {
    width: max-content;
    margin: auto;
    margin-bottom: 30px;
}

.Catalogue div {
    border: 1px black solid;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-left: 2em;
    margin-right: 2em;
}

#produits .element {
    width: 18em;
    border: 2px black solid;
    border-radius: 10px;
    margin: 1.5em;
}

#produitsCatalogue .element {
    width: 20em;
    border: 2px black solid;
    border-radius: 10px;
    margin: 1.5em;
}

.element a {
    display: block;
    max-width: 100%;
    text-decoration: none;
    color: black;
}

.Catalogue img {
    width: 80%;
    margin: 2em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.Catalogue h2, .Catalogue h3 {
    margin: 2em;
    margin-top: 0.5em;
    margin-bottom: 0;
}

.Catalogue p {
    margin: 1em;
    margin-top: 0;
}

.btnCommande {
    padding: 10px;
    background-color: orange;
    margin: auto;
    cursor: pointer;
    transition-duration: 500ms;
}

.btnCommande:hover {
    background-color: rgb(255, 184, 51);
    transition-duration: 300ms;
}

.btnCommande:active {
    transform: scale(0.95);
    background-color: greenyellow;
    transition-duration: 100ms;
}

.selection {
    min-width: 15vw;
    border: 1px solid black;
}

.Catalogue {
    display: flex;
    flex-direction: row;
}

.descriptionPro {
    height: 90px;
    overflow-y: hidden;
    white-space: pre-line;
}

/* /////////////////////////////////////// bouton compte ////////////////////////////////////// */

.popCompte {
    display: none;
    position: fixed;
    margin: auto;
    transform: translateY(-50%);
    top: 50%;
    z-index: 1002;
    border-radius: 20px;
    height: 70%;
    width: 90%;
    overflow-y: scroll;
}

.popCompte.showC {
    display: block;
}

.btnCompte img {
    width: 40px;
    height: 40px;
}

.btnCompte p {
    margin: 0;
}

/* //////////////////////////////////////////// bas de page ///////////////////////////////////////// */

.ML_content {
    width: max-content;
    margin: auto;
    border: black solid 1px;
}

.ML_content p {
    border: black solid 1px;
    margin: 0;
    width: 25vw;
    padding: 0.2vw;
    font-size: 1.2vw;
}

.ML_content div {
    display: flex;
}

.basDePage {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border-top: 3px solid black;
    align-items: center;
}

.basDePage img {
    margin: 20px;
}

.popupML {
    display: none;
    position: fixed;
    margin: auto;
    transform: translateY(-50%);
    top: 50%;
    z-index: 1002;
    border-radius: 20px;
    height: 70%;
    width: 90%;
}

.popupML.showML {
    display: block;
}
