/* Laza-Adina — barre de recherche moderne + autocompletion */

.lz-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 460px;
  max-width: 100%;
}

.lz-search-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.2;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lz-search-input::placeholder { color: #9aa5b4; }

.lz-search-input:focus {
  outline: none;
  border-color: #3EB3E5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(62, 179, 229, .18);
}

/* masque la croix native de type=search */
.lz-search-input::-webkit-search-decoration,
.lz-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.lz-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #9aa5b4;
  pointer-events: none;
}
.lz-search-input:focus ~ .lz-search-icon,
.lz-search:focus-within .lz-search-icon { color: #3EB3E5; }

.lz-search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #3EB3E5;
  color: #fff;
  cursor: pointer;
  transition: background .18s ease;
}
.lz-search-submit:hover { background: #2b9fd1; }

/* menu de suggestions */
.lz-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(20, 40, 70, .16);
  overflow: hidden;
  padding: 6px;
}
.lz-search-suggest[hidden] { display: none; }

.lz-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #1f2937;
}
.lz-suggest-item:hover,
.lz-suggest-item.is-active {
  background: #f2f8fd;
  text-decoration: none;
  color: #1f2937;
}
.lz-suggest-title {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-suggest-title mark {
  background: transparent;
  color: #2b9fd1;
  font-weight: 700;
  padding: 0;
}
.lz-suggest-badge {
  flex: none;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #6b7280;
  background: #eef2f7;
  border-radius: 6px;
  padding: 3px 8px;
}
.lz-suggest-badge[data-type="Sujet BAC"]   { background: #fdeceb; color: #d0574f; }
.lz-suggest-badge[data-type="Fiche"]       { background: #e9f7ef; color: #2f9e5f; }
.lz-suggest-badge[data-type="Cours / QCM"] { background: #eaf3fd; color: #2b7fd1; }
.lz-suggest-badge[data-type="Exercice"]    { background: #f3eefe; color: #7a53c9; }

.lz-suggest-empty {
  padding: 12px 14px;
  font-size: 0.86rem;
  color: #8a94a3;
}

/* responsive : la barre prend toute la largeur dans le menu replie */
@media (max-width: 991px) {
  .lz-search-item { width: 100%; margin: 8px 0; }
  .lz-search { width: 100%; }
}
