@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap");

.rejoindre-page {
  --rj-blue: #60a5fa;
  min-height: 100vh;
  padding: 0 0 4.5rem;
  color: #f5f7fa;
  font-family: Outfit, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(180deg, #05070d 0%, #000 55%, #07070b 100%);
}

.rejoindre-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 7.5rem 1.5rem 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rejoindre-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.35) 0%, rgba(5, 7, 13, 0.92) 100%),
    url("../assets/hero-city-night.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: rejoindre-bg-drift 22s ease-in-out infinite alternate;
  filter: saturate(1.05) brightness(0.78);
}

.rejoindre-brand {
  width: 88px;
  height: auto;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 10px 28px rgba(37, 99, 235, 0.4));
  animation: rejoindre-rise 0.8s ease both;
}

.rejoindre-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rj-blue);
  animation: rejoindre-rise 0.85s 0.05s ease both;
}

.rejoindre-hero h1 {
  margin: 0 0 0.75rem;
  font-family: Syne, Outfit, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  animation: rejoindre-rise 0.9s 0.1s ease both;
}

.rejoindre-lead {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.1rem;
  line-height: 1.55;
  animation: rejoindre-rise 0.95s 0.15s ease both;
}

.rejoindre-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rejoindre-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.35rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(18px);
  animation: rejoindre-rise 0.7s ease forwards;
}

.rejoindre-step:nth-child(1) { animation-delay: 0.2s; }
.rejoindre-step:nth-child(2) { animation-delay: 0.32s; }
.rejoindre-step:nth-child(3) { animation-delay: 0.44s; }

.rejoindre-num {
  font-family: Syne, Outfit, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(160deg, #93c5fd, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.rejoindre-step h2 {
  margin: 0 0 0.45rem;
  font-family: Syne, Outfit, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
}

.rejoindre-step p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  max-width: 36rem;
}

.rejoindre-link {
  display: inline-flex;
  align-items: center;
  color: #93c5fd;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s, transform 0.2s;
}

.rejoindre-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.rejoindre-extra {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 1.75rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rejoindre-extra h2 {
  margin: 0 0 0.75rem;
  font-family: Syne, Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.rejoindre-extra ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.rejoindre-extra a {
  color: #93c5fd;
  text-decoration: none;
}

.rejoindre-extra a:hover {
  text-decoration: underline;
}

.rejoindre-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.rejoindre-note a {
  color: #93c5fd;
}

@keyframes rejoindre-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes rejoindre-bg-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-2%); }
}

@media (max-width: 640px) {
  .rejoindre-step {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.9rem;
  }
  .rejoindre-hero {
    padding-top: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rejoindre-hero-bg,
  .rejoindre-brand,
  .rejoindre-kicker,
  .rejoindre-hero h1,
  .rejoindre-lead,
  .rejoindre-step {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
