/* ===============================
   CONTENEUR GLOBAL
   =============================== */

.container {
  width: 100%;
  max-width: 980px;
}

/* ===============================
   TITRES
   =============================== */

h1 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 2rem;
}

h2 {
  margin-top: 0;
}

/* ===============================
   PANELS
   =============================== */

.panel {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95),
    rgba(2, 6, 23, 0.95)
  );
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;

  border: 1px solid rgba(148, 163, 184, 0.15);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ===============================
   FORMULAIRES
   =============================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.form-col.small input {
  text-align: center;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===============================
   BOUTONS
   =============================== */

button {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

button:hover {
  opacity: 0.9;
}
			
.suggestions button.best {
  background: #22c55e; /* vert */
  color: #020617;
}

.suggestions button.good {
  background: #38bdf8; /* bleu accent */
}

.suggestions button {
  opacity: 0.85;
}

.suggestions button:hover {
  opacity: 1;
}

/* ===============================
   AUTOCOMPLETE
   =============================== */

.autocomplete {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}

.dropdown div {
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.dropdown div:hover {
  background: rgba(56, 189, 248, 0.15);
}

/* ===============================
   SUGGESTIONS
   =============================== */

.suggestions {
  margin: 0.6rem 0 1rem;
}

.suggestions button {
  margin: 0.25rem 0.35rem 0 0;
}
