:root {
  --bg-deep: #0b0918;
  --bg-mid: #1a1538;
  --card-bg: #1c1838cc;
  --emerald: #8b7cf0;
  --gold: #f0c869;
  --gold-glow: #f0c86955;
  --leaf-glow: #8b7cf040;
  --text: #ece6f5;
  --text-dim: #b9a6e8;
  --danger: #ff6b6b;
  --border: rgba(240, 200, 105, 0.35);
  --amber-dark: #a8720f;
  --ink: #2a2350;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #a9c3f0 0%, #cdb9f0 45%, #ffd9a0 78%, #ffc978 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Quicksand', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 15%, var(--leaf-glow), transparent 55%),
    radial-gradient(circle at 80% 85%, var(--gold-glow), transparent 55%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
}

.logo {
  font-family: 'Cinzel Decorative', 'Trebuchet MS', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 80px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--amber-dark);
  margin: 0 0 12px;
  font-weight: 600;
}

/* Sur fond de panneau sombre (hero, join, modales), l'eyebrow reprend l'or clair. */
.site-hero .eyebrow,
.join-section .eyebrow,
.card .eyebrow {
  color: var(--gold);
}

.title {
  font-family: 'Cinzel Decorative', 'Trebuchet MS', serif;
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffd77a, #a78bfa, #ffd77a, #a78bfa, #ffd77a);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradient 5s linear infinite;
}

.title.small {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--gold);
  animation: none;
}

@keyframes gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.bang {
  color: var(--gold);
}

.subtitle {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 36px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ffd77a, #c9b6ff);
  color: #2a1f4d;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--gold-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(167, 139, 250, 0.45);
  border-color: #fff;
}

.cta-button.full {
  width: 100%;
  text-align: center;
}

.cta-button.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
  box-shadow: none;
  margin-top: 8px;
}

.hint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, rgba(28, 24, 56, 0.97), rgba(13, 11, 30, 0.98));
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 25px 55px rgba(10, 8, 28, 0.5), inset 0 0 30px rgba(139, 124, 240, 0.1);
}

form {
  text-align: left;
  margin-top: 8px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 16px 0 6px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f0c869'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.1 1.02l-4.25 4.53a.75.75 0 01-1.1 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

select option {
  background: #1c1838;
  color: var(--text);
}

select:invalid {
  color: var(--text-dim);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 10px 0 0;
}

form .cta-button {
  margin-top: 24px;
}

.check-icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #ffd77a, #c9b6ff);
  color: #2a1f4d;
}

.auth-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(240, 200, 105, 0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

.auth-back {
  display: block;
  margin-top: 16px;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5c5286;
}
