/* ---------- SEARCH ---------- */

/* Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.search-overlay.active {
  display: flex;
}

/* Boîte blanche */
.search-form {
  position: relative;
  background: var(--white);
  width: 50%;
  height: 30%;
  min-height: 277px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Formulaire */
.search-form form {
  height: 100%;
  width: 80%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Input */
.search-form input[type="text"],
.search-page input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .search-form input[type="text"],
  .search-page input[type="text"],
  .search-form input[type="text"]:focus,
  .search-page input[type="text"]:focus {
    border-width: 1px !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

.search-page input[type="text"] {
  padding: 5px;
}

.search-form button:not(.close-search),
.search-page button {
  white-space: nowrap;
  width: 150px;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1.1rem;
  opacity: .8;
  border-radius: 6px;
  height: 50px !important;
  border: none;
  font-weight: bold;
  color: var(--white);
  background-color: var(--btn);
}

.search-page button {
  padding: 5px 20px;
  height: 40px !important;
}

.search-form .close-search {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
}

.search-form .close-search i {
  color: var(--dark);
}

@media (max-width: 991.98px) {
  .search-form {
    width: calc(100% - 20px);
  }

  .buttons {
    display: flex;
    gap: 10px;
  }

  .buttons button {
    width: clamp(120px, 120px + .5rem, 150px);
    padding: 10px;
    margin: 5px;
    font-size: clamp(.9rem, 2vw + .2rem, 1.1rem);
  }
}

