.search-bar-container {
    display: flex;
    justify-content: left;
    margin-top: 20px;
}

.search-form .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 33vw;
    max-width: 505px;
  }

.input-field {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0px 26px;
    margin-bottom: 0px !important;
  }

.input-field label {
    position: absolute;
    top: 7px;
    left: 25px;
    font-size: 17px;
    padding: 0 10px;
    color: #282753;
    font-weight: 600;
    font-family: Poppins;
  }

.input-field input {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0px 0;
    width: 100%;
}

.input-divider {
    height: 40px;
    width: 1px;
    background-color: #ccc;
}

.search-button {
    background-color: #e2e2f5;
    color: #282753;
    border: none;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 116px;
    cursor: pointer;
    margin-right: 5px;
    font-weight: 200;
    z-index: 3;
  }

.search-button i {
    font-size: 18px;
}

.block-sticky {
    margin: auto;
}

/* Arrondir les coins des champs */
.input-field:first-child input {
    border-radius: 50px 0 0 50px;
}

.input-field:last-child input {
    border-radius: 0 50px 50px 0;
}

input#quoi {
    padding-top: 0px;
    font-size: 13px;
    margin-left : 3%;
    border-radius: 90px;
  }

  input#ou {
    padding-top: 0px;
    font-size: 13px;
    margin-left: 3%;
  }

  /* Style pour l'autocomplétion */
.ui-autocomplete {
    background-color: #fff;  /* Fond blanc pour les suggestions */
    border: 1px solid #ddd;  /* Bordure légère */
    max-height: 200px;       /* Hauteur maximale pour les suggestions */
    overflow-y: auto;        /* Ajoute un scroll si le nombre de suggestions dépasse la hauteur */
    overflow-x: hidden;      /* Empêche le scroll horizontal */
    z-index: 9999;           /* Assure que les suggestions apparaissent au-dessus d'autres éléments */
    padding: 0;              /* Supprime le padding par défaut */
}

.ui-autocomplete li {
    list-style-type: none;   /* Supprime les puces */
    padding: 8px 12px;       /* Ajoute de l'espace entre les suggestions */
    cursor: pointer;         /* Change le curseur en pointeur */
    border-bottom: 1px solid #f1f1f1; /* Séparation des éléments */
}

.ui-autocomplete li:last-child {
    border-bottom: none;     /* Pas de bordure pour le dernier élément */
}

.ui-autocomplete li.ui-state-focus {
    background-color: #f1f1f1;  /* Change la couleur de fond lorsque l'élément est survolé */
}



/* Barre de recherche dans son état normal */
.search-bar-container {
    display: flex;
    justify-content: left;
    margin-top: 20px;
    padding: 10px;
    transition: all 0.5s ease; /* Transition plus longue pour un effet fluide */
    transform: scaleX(1); /* État initial, pleine largeur */
    transform-origin: center; /* Origine de la transformation au centre */
}

/* Barre de recherche lorsqu'elle devient sticky */
.search-bar-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    margin-top: 0px;
    transform: scaleX(1.05); /* Déploiement un peu plus large au sticky */
    transition: transform 0.5s ease, box-shadow 0.3s ease; /* Ajouter des transitions */
}

/* Ajustement du formulaire dans la barre de recherche sticky */
.search-bar-container.sticky .search-form {
    max-width: 100%;
    margin: 0 auto;
}

/* Ajuster la hauteur du header sticky */
.search-bar-container.sticky .input-group {
    height: 60px;
}

.input-field.with-icon i {
    position: absolute;
    left: 10px;
    font-size: 25px;
    color: #999;
    top: 30px;
  }

.input-field.with-icon {
    position: relative;
    display: flex;
    align-items: center;
}



.input-field.with-icon input {
    padding-left: 25px;
    width: 95%;
    border: 0px solid #ccc;
    border-radius: 4px;
    height: 40px;
    font-size: 16px;
  }

/* Ajouter une animation pour un effet plus dynamique */
@keyframes slide-in {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.search-bar-container.sticky {
    animation: slide-in 0.5s ease forwards; /* Déploiement latéral lorsque la barre devient sticky */
}


/* Cacher le logo par défaut */
.logo-container.hidden-logo {
    display: none;
}

.site-logo {
    width: 80px;
    height: 50px;
  }

/* Afficher le logo lorsque sticky */
.search-bar-container.sticky .logo-container {
    display: block;
    margin-left: 30px;
}

/* Ajuster la barre de recherche en sticky */
.search-bar-container.sticky {
    border-radius: 0px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Masquer le bloc sticky par défaut */
.block-sticky.hidden-sticky {
    display: none;
}

/* Afficher le bloc sticky lorsque sticky */
.search-bar-container.sticky .block-sticky {
    display: flex; /* ou block selon le design */
    width: 100%;
    margin: auto !important;
}

.search-bar-container.sticky .search-form .input-group {
    border: 1px solid #ccc !important;
    border-radius: 20px !important;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1) !important;
    width: 510px;
    max-width: 100%;
  }

  select {
    margin-left: 45px;
  }

  /* Style pour recherche filtres (pop up) */ 
 
  .popup-filtres {
      display: none; /* Masquer la popup par défaut */
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5); /* Fond semi-transparent */
  }

  .popup-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 80%;
      max-width: 500px;
      position: relative;
  }

  .close-popup { 
      color: #aaa;
      position: absolute;
      top: 10px;
      right: 20px;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
  }

  .close-popup:hover,
  .close-popup:focus {
      color: black;
      text-decoration: none;
      cursor: pointer;
  }

  .input-field {
      margin-bottom: 15px;
  }

  .input-field label {
      display: block;
      margin-bottom: 5px;
  }

  .button-apply-filters {
      background-color: #282753;
      color: #fff;
      padding: 10px 15px;
      border: none;
      cursor: pointer;
      margin-top : 15px
  }

  .button-apply-filters:hover {
      background-color: #005177;
  }

  .button-filtres {
      background-color: #282753;
      color: #fff;
      padding: 10px 15px;
      border: none;
      cursor: pointer;
  }

  .button-filtres:hover {
      background-color: #005177;
  }

/* Réinitialisation du box-sizing */
* {
    box-sizing: border-box;
}

/* Conteneur principal */
.search-bar-container.full-width {
    width: 100%;
    margin: 0px auto;
}

.search-form2 {
    background-color: #fff; /* Champ blanc */
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Pour contenir les flottants */
    width: 100%;
}

/* Ligne du formulaire */
.form-row {
    display: flex;
    flex-wrap: nowrap;
}

/* Groupes de formulaire */
.form-group {
    display: flex;
    align-items: center;
    padding: 0;
}

/* Colonnes avec des largeurs spécifiques */
.column-36 {
    flex: 0 0 36%;
    max-width: 36%;
}

.column-18 {
    flex: 0 0 18%;
    max-width: 18%;
}

.column-22 {
    flex: 0 0 22%;
    max-width: 22%;
}

/* Ajustement des pourcentages pour éviter le dépassement */
@media screen and (min-width: 869px) {
    .column-36 {
        flex: 0 0 40.5%;
        max-width: 40.5%;
    }

    .column-18 {
        flex: 0 0 24.5%;
        max-width: 24.5%;
    }

    .column-22 {
        flex: 0 0 21.5%;
        max-width: 21.5%;
    }
}

/* Champs de saisie */
.input-field2 {
    position: relative;
    width: 100%;
    color: #999;
    margin-left: 10px;
    font-size: 13px;
  }

.input-field2 input, 
.input-field2 select {
    padding: 0px 0px;
    font-size: 14px;
    border: none;
    background: transparent;
    color: #999;
  }

.input-field.with-icon2 input {
    padding-left: 10px;
}

.input-field i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* Bouton de recherche */
.search-button2 {
    padding: 15px;
    background-color: #8e2b01;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    height: 100%;
    border-radius: 0;
    text-align: left;
    position: absolute;
    right: 0px;
    height: 67px;
    border-radius: 0px 10px 10px 0px;
  }

.search-button i {
    margin-right: 5px;
}

/* Séparateurs entre les éléments */
.form-group:not(:last-child) {
    border-right: 1px solid #282753;
}

/* Ajustements pour éviter le dépassement */
.form-row {
    max-width: 100%;
}

/* Suppression des marges internes pour éviter le dépassement */
.form-group {
    margin: 0;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .form-row {
        flex-wrap: wrap;
    }
    .column-36, .column-18, .column-22 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-group:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}


div.form-group.column-12 {
    width: 20%;
}

div.form-group.column-30 {
    width: 30%;
}

.svg-icon {
    width: 45px;
    height: 45px;
    left: 0px;
    position: absolute;
    top: 7px;
  }


 .input-field2 .svg-icon {
    width: 45px;
    height: 45px;
    left: 0px;
    position: absolute;
    top: -15px;
  }

  .svg-icon-job {
    width: 25px;
    height: 25px;
    left: 8px;
    position: absolute;
    top: 19px;
  }


  .svg-icon-factory {
    width: 25px;
    height: 25px;
    left: 8px;
    position: absolute;
    top: 4px;
  }

  
  .search-bar-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.search-form-new {
    display: flex;
    width: 100%;
    max-width: 750px;
    background: transparent;
    border-radius: 999px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: 999px 999px 999px 999px;
    outline: none;
    background-color: white;
    color: #E6581D;
}

.search-input::placeholder {
    color: #E6581D;
    opacity: 0.7;
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 400;
  }


.search-button {
    padding: 12px 36px;
    background-color: #E6581D;
    color: white;
    border: none;
    border-radius: 999px 999px 999px 999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 400;
    margin-left: 16px;
  }

.search-button:hover {
    background-color: #cc4714;
}

