/* ==========================================================================
   Daytona ANIMA - Recherche header (icone loupe + panneau deroulant)
   daytona-header-search-v1.1.0.css
   v1.1.0 : masque la version mobile du widget dans le panneau + style Daytona soigne
   ========================================================================== */

/* Conteneur recherche */
.daytona-header .search-toggle-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Icone loupe header */
.daytona-header .dp-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.daytona-header .dp-search-toggle .material-icons {
  font-size: 26px;
  line-height: 1;
}
.daytona-header .dp-search-toggle:hover { opacity: 0.7; }

/* Panneau deroulant */
.daytona-header .header-search-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 360px;
  max-width: 86vw;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  border-radius: 2px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 1200;
}
.daytona-header .search-toggle-wrap.open .header-search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.daytona-header .header-search-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.06);
}

/* ===== MASQUER la version MOBILE du widget (bouton loupe + Annuler en double) ===== */
.daytona-header .header-search-panel .ps-searchbar--mobile {
  display: none !important;
}
/* Forcer l'affichage de la version desktop (qui a d-none d-md-flex) dans notre panneau */
.daytona-header .header-search-panel #_desktop_ps_searchbar {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== Habillage du formulaire desktop au style Daytona ===== */
.daytona-header .header-search-panel .ps-searchbar,
.daytona-header .header-search-panel #ps_searchbar {
  width: 100%;
}
.daytona-header .header-search-panel .ps-searchbar__form {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0 10px;
  transition: border-color 0.2s;
}
.daytona-header .header-search-panel .ps-searchbar__form:focus-within {
  border-color: #eb6100;
}
.daytona-header .header-search-panel .ps-searchbar__magnifier {
  color: #eb6100;
  font-size: 22px;
}
.daytona-header .header-search-panel .ps-searchbar__input {
  flex: 1 1 auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 12px 8px;
  font-family: "Khand", sans-serif;
  font-size: 17px;
  color: #1a1a1a;
  background: transparent;
}
.daytona-header .header-search-panel .ps-searchbar__input::placeholder {
  color: #aaa;
  font-family: "Khand", sans-serif;
}
.daytona-header .header-search-panel .ps-searchbar__clear {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #bbb;
  padding: 0 4px;
}
.daytona-header .header-search-panel .ps-searchbar__clear:hover { color: #888; }

/* Dropdown resultats (autocompletion) */
.daytona-header .header-search-panel .ps-searchbar__dropdown {
  margin-top: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.daytona-header .header-search-panel .ps-searchbar__result-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Khand", sans-serif;
}
.daytona-header .header-search-panel .ps-searchbar__result-link:hover {
  background: #f7f7f7;
}
.daytona-header .header-search-panel .ps-searchbar__result-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.daytona-header .header-search-panel .ps-searchbar__result-name {
  margin: 0;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .daytona-header .header-search-panel {
    width: 92vw;
    right: -10px;
  }
}
