/* Design system — sobre, dans l'esprit eXp / Apple : fond marine profond,
   accent or discret, une seule police d'affichage (Fraunces) pour toute
   la personnalité, une police utilitaire (Inter) pour les interfaces. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0f16;
  --bg-panel: #111823;
  --bg-panel-2: #161f2c;
  --border: #232e3d;
  --text: #f4f1ea;
  --text-muted: #8c94a3;
  --gold: #c9a227;
  --gold-soft: #e3c567;
  --danger: #d97757;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --container: 720px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

a { color: inherit; }

p { color: var(--text-muted); margin: 0 0 1em; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav ------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav .brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.nav a.link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav a.link:hover { color: var(--text); }

/* --- Boutons / champs -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--gold);
  color: #14100a;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}
.btn:hover { background: var(--gold-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.secondary:hover { border-color: var(--gold); }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field { margin-bottom: 18px; }

/* --- Landing ---------------------------------------------------------- */
.hero {
  padding: 8vh 24px 6vh;
  max-width: var(--container);
  margin: 0 auto;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  max-width: 14ch;
}
.hero p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2em;
}
.steps {
  display: flex;
  gap: 0;
  margin-top: 6vh;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.step {
  flex: 1;
  padding-right: 20px;
  position: relative;
}
.step svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 12px; }
.step h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.step p { font-size: 0.9rem; margin: 0; }

/* --- Cartes / panneaux -------------------------------------------------- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-center {
  max-width: 420px;
  margin: 10vh auto;
}

/* --- Back-office -------------------------------------------------------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.pill-group { display: flex; gap: 8px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.pill[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(201, 162, 39, 0.08);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}
.photo-grid label {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid input { position: absolute; top: 8px; left: 8px; }
.photo-grid label.checked { border-color: var(--gold); }
.photo-grid label:not(.checked) img { opacity: 0.45; }

.room-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.65rem;
  background: rgba(10, 15, 22, 0.8);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
}

.steps-progress { list-style: none; padding: 0; margin: 20px 0; }
.steps-progress li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.steps-progress li.active { color: var(--text); }
.steps-progress li.done { color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex: none; }
.steps-progress li.active .dot { background: var(--gold); }
.steps-progress li.done .dot { background: var(--gold); }

video.preview {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 16px 0;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }

.stat-row { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 160px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat .value { font-family: var(--font-display); font-size: 2rem; }
.stat .label { color: var(--text-muted); font-size: 0.85rem; }

.error-msg {
  color: var(--danger);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

footer.small {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 640px) {
  .steps { flex-direction: column; gap: 20px; }
}
