.scroll-to-top {
  position: relative;
  /* Ajouté pour permettre un décalage vers le bas */
  bottom: -20px;
  /* Ajustez cette valeur pour chevaucher l'élément en dessous */
  background-color: #555;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  text-decoration: none;
  opacity: 0.7;
  /* Ajusté pour une meilleure visibilité */
  z-index: 9999;
  transition: all 0.2s ease-in-out;
  /* Modifié de 'opacity' à 'all' pour inclure tous les changements de style */
  border-radius: 8px;
  /* Ajouté pour des coins arrondis */
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  /* Ajouté pour une ombre douce, donnant une sensation de profondeur */
}

.scroll-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  /* Ajusté pour une ombre plus prononcée au survol */
}



/*# sourceMappingURL=theme.css.map */
.navbar-no-scroll-erudit {
  animation: slid-up 1s;
}

@keyframes slid-up {
  from {
    box-shadow: 0 7px 27px 0 rgb(16 66 97 / 7%);
    /* background: rgb(255, 255, 255); */
  }

  to {
    box-shadow: 0 7px 27px 0 rgb(16 66 97 / 0%);
    /* background: rgba(255, 255, 255, 0); */
  }
}

.navbar-erudit {
  background: rgba(255, 255, 255, 0);
  z-index: 999999999999;
}

.navbar-scroll-erudit {
  background: #fff;
  position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
  position: sticky !important;
  top: 0px;
  width: 100%;
  display: block;
  z-index: 999999999999;
  /* box-shadow: 0 7px 27px 0 rgb(16 66 97 / 7%); */
  animation-duration: 0.5s;
  animation-name: slid-down;
}

@keyframes slid-down {
  from {
    top: -50px;
  }

  to {
    top: 0px;
  }
}

.navbar-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-links li {
  display: inline-block;
  margin-right: 20px;
}

.navbar-links li:last-child {
  margin-right: 0;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.navbar-search input[type="text"] {
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 18px;
  width: 250px;
}

.navbar-search button[type="submit"] {
  padding: 10px 20px;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  color: #000;
  cursor: pointer;
}

.navbar-icons li {
  display: inline-block;
  margin-left: 20px;
}

.navbar-icons li:first-child {
  margin-left: 0;
}

.navbar-icons a {
  display: block;
}

.navbar-icons img {
  height: 30px;
}

/* .form {

  position: relative;
} */

.form .fa-search {

  position: absolute;
  top: 6.5px;
  left: 20px;
  color: #9ca3af;

}

.form span {
  right: 17px;
  top: 13px;
  padding: 2px;
}

.left-pan {
  padding-left: 7px;
}

.left-pan i {

  padding-left: 10px;
}

.form-input {

  height: 28px;
  text-indent: 33px;
  border-radius: 30px;
}

.form-input:focus {

  box-shadow: none;
  border: none;
}

.natA {
  text-decoration: none;
}

#product-result {
  border: none;
  padding: 0px;
  overflow-y: auto;
  max-height: 400px;
}

/* Pour Firefox */
#product-result::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#product-result::-webkit-scrollbar-thumb {
  background-color: rgb(131, 131, 131);
  border-radius: 5px;
}

/* Pour Chrome, Edge et Safari */
#product-result::-webkit-scrollbar-track {
  background-color: transparent;
}

#product-result::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Conteneur principal */
.form {
  position: relative;
  display: inline-block;
  height: 100%; /* Prendre la hauteur totale de la colonne */
  transition: width 0.3s ease;
}

/* Icône de recherche centrée dans la case */
#search-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Centre l'icône horizontalement et verticalement */
  cursor: pointer;
  z-index: 2;
  transition: right 0.3s ease;
}

/* Barre de recherche masquée par défaut */
.form-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 35px;
  transition: width 0.3s ease, opacity 0.3s ease;
  text-indent: 10px;
  border-radius: 15px;
}

/* Au survol du conteneur : étendre la barre de recherche */
.form:hover, .form:focus-within {
  width: 400px; /* Largeur étendue au survol */
}

.form:hover .form-input,.form:focus-within .form-input {
  width: 100%;
  opacity: 1;
  padding: 5px 10px;
  border: 1px solid #ccc;
}

.form:hover #search-icon,
.form:focus-within #search-icon {
  visibility: hidden !important;
  opacity: 0 !important;
}
/* Focus sur l'input : suppression de l'ombre */
.form-input:focus {
  box-shadow: none;
  border: 1px solid #999;
}

@media (max-width: 768px) {
  .form {
    flex-grow: 1; /* Laisse la barre de recherche prendre tout l’espace restant */
    max-width: 40% !important; /* Ajuste la largeur maximale */
    height: 50%;
  }

  .natA {
    text-align: left;
    max-width: 20%; /* Réduit la largeur des autres colonnes */
    padding-left: 5px;
  }
  #product-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0; 
    width: 350px; 
    z-index: 1000; 
    border: 1px solid #ccc; 
    background-color: #fff; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  #search-icon {
    position: static;  /* Annule position: absolute */
    left: auto;        /* Annule left: 50% */
    top: auto;         /* Annule top: 50% */
    transform: none;   /* Annule transform: translate(-50%, -50%) */
    text-align: left !important;
  }
}
#product-result-mobile {
  max-height: 60vh;
  overflow-y: auto;
  position: absolute;
  top: 115%;
  left: 0;
  width: 80vw;
  z-index: 1050;
  padding: 0px;
}

/* Pour supprimer la marge du premier élément dans les résultats */
#product-result-mobile .dropdown-item:first-child {
  margin-top: 0 !important;
  border-top: none !important;
}
