﻿:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #e2e8f0;
}

.card {
  width: min(92vw, 440px);
  background: #1e293b;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

.hint {
  opacity: 0.8;
  margin-top: 4px;
  font-size: 0.85rem;
}

.row {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

input,
button {
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.actions:last-of-type {
  grid-template-columns: repeat(2, 1fr);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#registerState,
#callState {
  font-size: 0.9rem;
}

/* ── Champ de recherche avec résultats ── */
.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  box-sizing: border-box;
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.search-result-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid #1e293b;
}

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

.search-result-item:hover {
  background: #1e3a5f;
}

.search-no-result {
  padding: 10px 12px;
  color: #64748b;
  font-size: 0.85rem;
}

.selected-label {
  font-size: 0.82rem;
  color: #38bdf8;
  font-style: italic;
  min-height: 1.2em;
}

/* ── Inscription (details/summary) ── */
details {
  margin: 8px 0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
}

summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #94a3b8;
  user-select: none;
}

summary:hover {
  color: #e2e8f0;
}

.signup-inner {
  margin-top: 10px;
  margin-bottom: 4px;
}
