/* ============================================================
   RECHERCHE UNIVERSELLE — bouton navbar + modale de résultats
   ============================================================ */

.navbar__recherche-btn {
  background: none;
  border: 1px solid var(--gris-bordure, #e5e5e5);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gris-texte, #666);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.navbar__recherche-btn:hover {
  border-color: var(--vert);
  color: var(--vert);
}

.recherche-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 34, 0.35);
  backdrop-filter: blur(2px);
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

.recherche-modale {
  background: var(--blanc, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 75vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.recherche-input-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gris-bordure, #e5e5e5);
  flex-shrink: 0;
}

.recherche-input-zone svg {
  width: 20px;
  height: 20px;
  color: var(--gris-texte, #666);
  flex-shrink: 0;
}

#recherche-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-body);
  background: transparent;
}

.recherche-fermer {
  background: var(--gris-clair, #f5f5f5);
  border: none;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gris-texte, #666);
  flex-shrink: 0;
}

.recherche-resultats {
  overflow-y: auto;
  padding: 8px;
}

.recherche-section-titre {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gris-texte, #666);
  padding: 10px 12px 4px;
}

.recherche-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s ease;
}

.recherche-item:hover {
  background: var(--gris-clair, #f5f5f5);
}

.recherche-item__icone {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(26, 107, 60, 0.1);
  color: var(--vert);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recherche-item__texte {
  flex: 1;
  min-width: 0;
}

.recherche-item__titre {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--encre, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recherche-item__sous-titre {
  font-size: 0.78rem;
  color: var(--gris-texte, #666);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recherche-item__badge {
  flex-shrink: 0;
  background: #f59e0b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.recherche-etat {
  padding: 32px 20px;
  text-align: center;
  color: var(--gris-texte, #666);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .recherche-overlay {
    padding: 20px 12px;
  }
}
