/* Gestion du footer */


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 60px 0;
}




















.top-bar {
  position: fixed; /* Ajoutez cette propriété pour que le menu soit fixe */
  top: 0; /* Définissez la position du menu en haut de la page */
  left: 0; /* Définissez la position du menu à gauche de la page */
  right: 0; /* Définissez la position du menu à droite de la page */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #2c3e50;
  z-index: 1000; /* Ajoutez cette propriété pour que le menu soit affiché au-dessus des autres éléments */
  height: 50px; /* Ajoutez cette propriété pour définir la hauteur du menu */
}

#menu-btn {
  background-color: #ffffff;
  border-radius: 5px;
  border: 2px solid #d1af2b; /* Ajoute un contour de 2px de largeur et de couleur #d1af2b */
  padding: 0px 20px; /* Ajoute un remplissage interne de 10px verticalement et 20px horizontalement pour agrandir le bouton */
  font-size: 16px; /* Vous pouvez ajuster la taille de la police selon vos préférences */
  color : #d1af2b;
  cursor: pointer;
    display: inline-block; /* Ajoutez cette propriété pour aligner les boutons horizontalement */
}

#change-store-link, .user-info a, .menu-panier a, .logo p {
  color: #ffffff;
  text-decoration: none; /* Supprime le surlignage des éléments sélectionnés */
  font-size: 16px;
}

.user-info p {
  color: white;
}

.panier-img {
  vertical-align: middle; /* Aligne l'image verticalement au milieu */
  margin-right: 5px; /* Ajoute un espace entre l'image et le texte, ajustez selon vos préférences */
   font-size: 24px;
   color :white;
}

.panier-text {
  vertical-align: middle; /* Aligne le texte verticalement au milieu */
}


.menu-panier {
  border-radius: 5px; /* Ajoute des coins arrondis à l'élément */
}
















.logo {
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 10px;
}

.logo p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.logo a {
  margin-left: 10px;
  font-size: 14px;
  font-weight: normal;
}

.logo-site a {
color: white;
text-decoration: none;

}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;

}

.search-bar form {
  display: flex;
  width: 100%;
}

.search-bar input[type="text"] {
  flex-grow: 1;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
}

.search-bar button[type="submit"] {
  padding: 15px;
  background-color: #d1af2b;
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}


.user-info, .cart {
  display: flex;
  align-items: center;
}

.user-info a, .cart a {
  margin-left: 10px;
  font-weight: normal;
}


#cart-total {
  display: flex;
  align-items: center;
  justify-content: center;
}




/* Gestion de la pop up lorsqu'on change de magasin */
.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.custom-dialog.hidden {
    opacity: 0;
    pointer-events: none;
}

.dialog-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dialog-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.dialog-buttons button {
    cursor: pointer;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    margin: 0 5px;
}

.cancel-button {
    background-color: #f44336;
}


















/* Menu principal */

.main-menu {
  position: fixed;
  left: 0;
  width: auto;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  margin-top: 0px; /* ajouter une marge supérieure égale à la hauteur de la top bar */
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
      max-height: 100vh; /* Ajustez cette valeur selon vos besoins */
  overflow-y: auto;
  z-index: 999;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: red;
}


.menu, .submenu {
  list-style: none;
  list-style-type: none; /* pour plus de sécurité */
}

.main-menu.show {
  transform: translateX(0);
  margin-bottom: 100px;
  border-radius:20px;
  margin-top:70px;
}

.menu {
  display: block;
  flex-direction: column;
  justify-content: flex-start;
}

.menu-item {
  position: relative;
  padding: 10px 0;
  cursor: pointer;
}

.menu-link {
/*  display: block;*/
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  padding: 5px 0;
}


/* Désactiver le scroll de la page lorsque le menu est ouvert */
body.menu-open {
  overflow: hidden;  /* Empêche le scroll de la page */
}

/* Sous-menu */

.submenu {
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  display: none;
}


/* Sous-menu visible lorsque la classe "open" est ajoutée */
.submenu.open {
  display: block;
}

/* Icône de la flèche */
.submenu-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

.submenu-toggle i {
  transition: transform 0.3s ease;
}

/* Flèche tournée vers le haut lorsque le sous-menu est ouvert */
.submenu.open + .submenu-toggle i {
  transform: rotate(180deg);
}





.submenu-item {
  padding: 10px 0;
  cursor: pointer;
    background-color: #fff;
}

.submenu-item a {
  display: block;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 5px 0;
  font-size : 0.9rem;
    font-weight: bold;
}

/* Effet de survol */

.menu-item:hover .menu-link,
.submenu-item:hover a {
  color: #d1af2b;
}

.hover .submenu {
  display: block;
}










.footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 60px 0;

}

.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.footer-item {
  flex: 1 1 30%;
  margin-bottom: 30px;
}

.footer-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-item ul {
  list-style: none;
  padding: 0;
}

.footer-item li {
  margin-bottom: 10px;
}

.footer-item a {
  color: #ffffff;
  text-decoration: none;
}

.footer-item a:hover {
  color: #d1af2b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-item {
    flex: 1 1 48%;
  }

}

@media (max-width: 480px) {
  .footer-item {
    flex: 1 1 100%;
  }
  .main-menu {
    width:100%;
    height:100%;
  }
}


/* Cacher l'icône de loupe par défaut */
.search-icon {
  display: none;
}

.menu-toggle {
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  padding: 10px;
}

#home-btn {
  display: none;
}

  #change-store-icon {
    display: block;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    order: 2;
  }



.compte-user {
  vertical-align: middle; /* Aligne l'image verticalement au milieu */
  margin-right: 5px; /* Ajoute un espace entre l'image et le texte, ajustez selon vos préférences */
   font-size: 24px;
   color :white;
}

.logout {
  vertical-align: middle; /* Aligne l'image verticalement au milieu */
  margin-right: 5px; /* Ajoute un espace entre l'image et le texte, ajustez selon vos préférences */
   font-size: 24px;
   color :white;
}





@media screen and (max-width: 1600px) {
  .top-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2c3e50;
    z-index: 1000;
    height: 50px;
  }

  #home-btn {
    display: block;
    color: #ffffff;
    font-size: 24px;
    order: 1;
  }

/*  .menu-toggle {
    display: block;
    order: 3;
     font-size: 24px;
  }*/

  .search-icon {
    color: #ffffff;
    display: block;
    order: 4;
    cursor: pointer;
     font-size: 24px;
  }

  .search-bar {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
    display: none;
  }

  .logo a {
    display: none;
  }

  #menu-btn {
    display: none;
  }

  .nom-magasin-titre {
    display: none;
  }

  .user-info,
  .cart {
    display: flex;
    align-items: center;
    order: 5;
  }

  #change-store-icon {
    display: block;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    order: 2;
  }

  .menu-panier {
    order: 6;
  }
}






