/* ==========================================================================
   NOVA GROUP CV STUDIO - RECHERCHE PRÉDICTIVE INTELLIGENTE
   ========================================================================== */

.smart-search-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.smart-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.smart-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 40px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.smart-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.smart-search-clear {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.smart-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.smart-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  animation: ngSearchFadeIn 0.2s ease-out;
}

@keyframes ngSearchFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.smart-search-dropdown.active {
  display: block;
}

.smart-search-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.smart-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.smart-search-item:last-child {
  border-bottom: none;
}

.smart-search-item:hover,
.smart-search-item.highlighted {
  background-color: #eff6ff;
}

.smart-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.smart-search-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-search-item-title mark {
  background: #fef08a;
  color: #854d0e;
  border-radius: 2px;
  padding: 0 1px;
}

.smart-search-item-desc {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-search-item-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  margin-left: 8px;
}

.smart-search-tag-cv {
  background: #dbeafe;
  color: #1e40af;
}

.smart-search-tag-letter {
  background: #fef3c7;
  color: #92400e;
}

.smart-search-tag-feature {
  background: #e0e7ff;
  color: #3730a3;
}

.smart-search-tag-guide {
  background: #dcfce7;
  color: #166534;
}

.smart-search-empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* Footer Legal Links Styling */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #64748b;
  margin-top: 10px;
}

.footer-legal a,
.footer-legal button.cookie-settings-btn {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button.cookie-settings-btn:hover {
  color: #2563eb;
}
