.nav-item > a {
    color: white;
}
.btn-menu-log{
    margin-left: 0px;
}
.btn-menu-reg{
    margin-left: 0px;
}
.mega-dropdown {
    position: static !important;
    width: auto;
}

.mega-menu {
    position: absolute;
    width: auto;
    left: 0px;
    transform: translateX(2%);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100vw; /* Limite la largeur pour éviter le débordement */
}
.mega-menu:before {
    content: "";
    border-bottom: 15px solid #fff;
    border-right: 17px solid transparent;
    border-left: 17px solid transparent;
    position: absolute;
    top: -15px;
    left: calc(50% - 23%);
    z-index: 10;
}

.mega-menu:after {
    content: "";
    border-bottom: 17px solid #ccc;
    border-right: 19px solid transparent;
    border-left: 19px solid transparent;
    position: absolute;
    top: -17px;
    left: calc(50% - 23%);
    z-index: 8;
}
@media (max-width: 767px) {
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 150px);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 150px);
        z-index: 8;
    }

}
@media (min-width: 767px) and (max-width:  992px) {
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 150px);
        z-index: 10;
        width: 100%;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 150px);
        z-index: 8;
        width: 100%;
    }

}

@media (min-width:  992px) and (max-width:  1024px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 37%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 37%);
        z-index: 8;
    }

    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(0.5%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}
@media (min-width:  1024px) and (max-width:  1200px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 40%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 40%);
        z-index: 8;
    }

    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(7%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width:  1200px) and (max-width:  1280px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 38%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 38%);
        z-index: 8;
    }

    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(2.5%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

}
@media (min-width:  1280px) and (max-width: 1300px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 37%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 37%);
        z-index: 8;
    }
    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(2%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width:  1300px) and (max-width: 1400px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 36%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 36%);
        z-index: 8;
    }
    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(2%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width:  1400px) and (max-width: 1600px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 40%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 40%);
        z-index: 8;
    }
    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(2%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 1600px) {
    .btn-menu-log{
        margin-left: 10px;
    }
    .btn-menu-reg{
        margin-left: 5px;
    }
    .mega-menu:before {
        content: "";
        border-bottom: 15px solid #fff;
        border-right: 17px solid transparent;
        border-left: 17px solid transparent;
        position: absolute;
        top: -15px;
        left: calc(50% - 45%);
        z-index: 10;
    }

    .mega-menu:after {
        content: "";
        border-bottom: 17px solid #ccc;
        border-right: 19px solid transparent;
        border-left: 19px solid transparent;
        position: absolute;
        top: -17px;
        left: calc(50% - 45%);
        z-index: 8;
    }
    .mega-menu {
        position: absolute;
        width: auto;
        left: 0px;
        transform: translateX(15%);
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}



.scroll-conteneur{
    overflow: hidden;
    white-space: nowrap;
}
.ma-navbar {
    height: 60px;
    /*background-color: #11a6ba;*/
    background-color: #353b3b;
    display: flex;
    align-items: center; /* Centre verticalement le contenu */


}
.secondary-navbar {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.secondary-navbar li a {
    color: white;
}

.secondary-navbar li:hover > a {
    color: black;
    cursor: pointer;
}

.secondary-navbar li {
    font-size: 14px;
    font-weight: 400;
    margin-right: 10px;
    padding: 5px 5px; /* Padding par défaut */
    border: 1px solid transparent; /* Bordure invisible par défaut */
    border-radius: 30px; /* Border-radius par défaut */
    white-space: nowrap;
    box-sizing: border-box; /* Inclure padding et border dans la taille */
    transition: all 0.3s ease; /* Transition fluide */
}

.secondary-navbar li:hover {
    background-color: white;
    color: black !important;
    border: 1px solid #fffdfd; /* Bordure visible lors du survol */
    opacity: 0.7;
}
@media (min-width: 200px) and (max-width:  500px) {
    .font-sm-17{
        font-size: 13px !important;
    }
}
@media (min-width: 501px) and (max-width:  720px) {
    .font-sm-17{
        font-size: 15px !important;
    }
}
@media (min-width: 721px) and (max-width:  1024px) {
    .font-sm-17{
        font-size: 17px !important;
    }
}

@media (max-width: 1024px) {
    .navbar-scroll {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        z-index: 1;
        padding: 20px 0;
        padding-top: 2rem!important;
        flex-wrap: nowrap; /* Ajout de cette ligne */
    }
}

/* Masquer la barre de défilement sur les navigateurs WebKit */
.navbar-scroll::-webkit-scrollbar {
    width: 0.5em;
    background-color: transparent;
}

.navbar-scroll::-webkit-scrollbar-thumb {
    background-color: transparent;
}

@media (max-width: 992px) {
    .secondary-navbar-visibility {
        display: none;
    }
}

.scroll-btn {
    background-color: #1a1919;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    padding: 4px;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    opacity: 0.9;
}

.scroll-left-btn {
    left: 0px;
}

.scroll-right-btn {
    right: 5px;
}

.hidden {
    display: none !important;
}
.remove-btn{
    display: none;
}
@media (max-width: 1024px) {
    .remove-btn{
        display: none;
    }
}
@media (min-width: 1024px) {
    .remove-btn{
        display: block;
    }
}

/*mobile version*/

.a-mobile-second-nav {
    list-style: none;
    display: flex;
    flex-direction: row; /* Alignement horizontal */
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
    overflow-x: auto; /* Scroll horizontal si besoin */
    white-space: nowrap; /* Empêche les éléments de se casser */
    padding-left: 0px !important;
    margin-left: 0px !important;
    max-width: 100%;
    padding-top: 15px;
    scrollbar-width: none; /* Cache la barre sur Firefox */
}

/* Masquer la barre de défilement sur les navigateurs WebKit */
.a-mobile-second-nav::-webkit-scrollbar {
    width: 0.5em;
    background-color: transparent;
}

.a-mobile-second-nav::-webkit-scrollbar-thumb {
    background-color: transparent;
}


.a-mobile-second-nav li a {
    color: white;
}

.a-mobile-second-nav li:hover > a {
    color: black;
    cursor: pointer;
}

.a-mobile-second-nav li {
    font-size: 14px;
    font-weight: 400;
    margin-right: 10px;
    padding: 5px 5px; /* Padding par défaut */
    border: 1px solid transparent; /* Bordure invisible par défaut */
    border-radius: 30px; /* Border-radius par défaut */
    white-space: nowrap;
    box-sizing: border-box; /* Inclure padding et border dans la taille */
    transition: all 0.3s ease; /* Transition fluide */
}

.a-mobile-second-nav li:hover {
    background-color: white;
    color: black !important;
    border: 1px solid #fffdfd; /* Bordure visible lors du survol */
    opacity: 0.7;
}
/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/*card*/
.m__cart{
    display: flex;
    padding: 20px 10px;
    border: 1px solid #d9d7d7;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.m__cart-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.m__cart-list li {

}


/*.m__money_auto{*/
/*    margin-left: auto;*/
/*}*/
.autocomplete-results {
    position: absolute;
    z-index: 10000000000000000; /* Valeur arbitraire pour s'assurer que le bloc est placé au-dessus des autres éléments */
    background-color: #fff; /* Fond blanc pour améliorer la lisibilité */
    width: calc(100% - 0px); /* Largeur égale à celle du champ de saisie du nom moins la bordure */
    max-height: 300px; /* Hauteur maximale pour limiter la taille du bloc d'autocomplétion */
    overflow-y: auto; /* Ajouter une barre de défilement verticale si nécessaire */
    border: 2px solid #20909F; /* Bordure pour correspondre au style du formulaire */
    border-top: none; /* Supprimer la bordure supérieure pour une apparence propre */
    border-radius: 0 0 5px 5px; /* Ajouter une légère courbure aux coins inférieurs */
}
.autocomplete-results {
    list-style-type: none;
    padding: 0;
}

.autocomplete-results li {
    padding: 8px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    /*background-color: #f9f9f9;*/
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    text-align: start;
}

.autocomplete-results li:hover {
    background-color: #11a6ba;
    color: white;
}

.autocomplete-results li img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}