/* Espace client — inscription / connexion / profil / dashboard
   S'appuie sur les variables de partner-theme.css (--gold, --bg, etc.) */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #1a1508 0%, var(--bg-card) 40%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 175, 55, 0.06);
  position: relative;
  overflow: hidden;
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-icon {
  text-align: center;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.auth-box h1 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.auth-box .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.auth-box .subtitle strong { color: var(--gold-light); }

.live-auth-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin: -0.75rem 0 1.5rem;
}
.live-auth-banner-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDotGreen 1.4s infinite;
}
.live-auth-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.live-auth-banner-text strong {
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-auth-banner-text span {
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4AF37' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.otp-code-input {
  width: 100%;
  padding: 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--gold-light);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}
.otp-code-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.btn-gold-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  text-decoration: none;
}
.btn-gold-block:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35); color: #000; }
.btn-gold-block:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-help {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.auth-help a { color: var(--gold); text-decoration: none; font-weight: 600; }
.auth-help a:hover { color: var(--gold-light); }

.resend-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.resend-link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* Pill selector (civilité, statut marital) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill-option { position: relative; }
.pill-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.pill-option span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: all 0.2s;
  background: var(--bg);
}
.pill-option input:checked + span {
  border-color: var(--gold);
  color: #000;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  font-weight: 700;
}
.pill-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }

/* Pseudo field with live availability */
.pseudo-wrap { position: relative; }
.pseudo-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pseudo-status.checking { color: var(--muted); }
.pseudo-status.available { color: #4ade80; }
.pseudo-status.taken { color: #f87171; }
.pseudo-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

/* ── Espace client dashboard ── */
.client-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.client-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.client-main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.dash-hero {
  background: linear-gradient(135deg, #1a1508 0%, var(--bg-card) 50%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dash-hero-text h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.dash-hero-text p { color: var(--muted); font-size: 0.9rem; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-badge.is-live {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.live-badge.is-offline {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.live-badge.is-live .live-dot { animation: pulseDotGreen 1.4s infinite; }

@keyframes pulseDotGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ── Pastille live compacte dans le header (un seul élément, cliquable) ── */
.nav-links a.live-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-links a.live-header-pill.is-offline {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171 !important;
  cursor: default;
}
.nav-links a.live-header-pill.is-live {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #04170a !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}
.nav-links a.live-header-pill.is-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.55);
}
.nav-links a.live-header-pill .live-dot { width: 6px; height: 6px; }

/* ── Historique des lives (espace client) ── */
.live-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.live-history-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
}
.live-history-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  color: var(--muted);
}
.live-history-icon.is-live {
  background: radial-gradient(circle, rgba(34,197,94,0.25), rgba(34,197,94,0.05));
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.live-history-info { flex: 1; min-width: 0; }
.live-history-info h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.live-history-info p {
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}
.live-history-ended {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .live-history-item { flex-wrap: wrap; }
  .live-history-info p { gap: 0.2rem; }
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.profile-grid .full-span { grid-column: 1 / -1; }

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
}

