/* Styles partagés du widget de recherche, utilisés par index.html et embed.html. */

.autocomplete {
  position: relative;
  width: 100%;
}

.autocomplete input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
}

.suggestions {
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #d0d7de;
  border-top: none;
  z-index: 10;
}

.suggestion {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
}

.suggestion:hover,
.suggestion-active {
  background: #f3f4f6;
}

/* Repère visuel de la suggestion sélectionnée au clavier */
.suggestion-active {
  box-shadow: inset 3px 0 0 #4f46e5;
}

.separator {
  text-align: center;
  font-size: 13px;
  color: #666;
}

.new-lieu {
  width: 100%;
  display: block;
  padding: 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.new-lieu:hover {
  background: #f3f4f6;
}

.card {
  width: 100%;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.card h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 500;
}

.card p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

.card button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  background: #fff;
  cursor: pointer;
}

.card button:hover {
  background: #f3f4f6;
}

.card button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 8px;
  font-size: 13px;
}

.status.success { color: #15803d; }
.status.error { color: #b91c1c; }
