/* ========== MEMBRES ESPACE ========== */
.espace-hero {
  background: var(--navy-950);
  color: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.espace-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(183, 144, 68, 0.1), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.espace-lock {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--gold-400);
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.login-form {
  max-width: 420px;
  margin: 3rem auto 0;
  background: white;
  padding: 3rem;
  border: 1px solid var(--line);
  text-align: left;
  position: relative;
  z-index: 2;
}

.login-title {
  font-family: 'StraightHyphen', 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-sub {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* ========== AUTH SUPABASE ========== */
.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  margin-top: -1rem;
}

.login-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
  position: relative;
}

.login-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.login-tab:hover {
  color: var(--navy-950);
}

.login-tab.is-active {
  color: var(--navy-950);
}

.login-tab.is-active::after {
  transform: scaleX(1);
}

.auth-form .form-group {
  margin-bottom: 1.2rem;
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.auth-form .form-row .form-group {
  margin-bottom: 1.2rem;
}

.auth-submit {
  background: var(--navy-950);
  color: var(--cream);
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245, 239, 227, 0.3);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
}

.auth-submit.is-loading .auth-spinner {
  display: inline-block;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.auth-message {
  padding: 0.85rem 1rem;
  background: rgba(196, 69, 61, 0.08);
  border-left: 3px solid var(--red-500);
  color: #a23a32;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.auth-message.is-success {
  background: rgba(76, 145, 80, 0.08);
  border-left-color: var(--green-500);
  color: #2f6c33;
}

.auth-message.is-info {
  background: rgba(44, 70, 116, 0.08);
  border-left-color: #2c4674;
  color: #2c4674;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--navy-950);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--gold-500);
}

.auth-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 1.2rem;
  line-height: 1.5;
}

.auth-pending {
  text-align: center;
  padding: 1rem 0;
}

.auth-pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(192, 142, 44, 0.15);
  color: #c08e2c;
  margin-bottom: 1.2rem;
}

/* Lien adhésion sous le formulaire de connexion */
.login-cta {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.login-cta p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.6rem 0;
}

.login-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy-950);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 0.2rem;
  transition: all 0.25s ease;
}

.login-cta-link svg {
  transition: transform 0.3s ease;
}

.login-cta-link:hover {
  color: var(--gold-500);
}

.login-cta-link:hover svg {
  transform: translateX(3px);
}

.espace-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.espace-feature {
  padding: 2.5rem 2rem;
  background: white;
  border: 1px solid var(--line);
  text-align: left;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.espace-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.espace-feature:hover {
  background: var(--navy-950);
  color: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(1, 21, 45, 0.18);
  border-color: var(--gold-500);
}

.espace-feature:hover::before {
  transform: scaleX(1);
}

.espace-feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(183, 144, 68, 0.12);
  color: var(--gold-500);
  margin-bottom: 1.4rem;
  transition: all 0.35s ease;
}

.espace-feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.espace-feature:hover .espace-feature-icon {
  background: var(--gold-500);
  color: var(--navy-950);
  transform: rotate(-6deg) scale(1.08);
}

.espace-feature-title {
  font-family: 'StraightHyphen', 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.6rem 0;
  display: block;
  transition: color 0.35s ease;
}

.espace-feature:hover .espace-feature-title {
  color: var(--cream);
}

.espace-feature-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.espace-feature:hover .espace-feature-text {
  color: rgba(245, 239, 227, 0.75);
}
