
:root {
  --bg-dark: #05020a;
  --accent: #ffb86c;
  --accent-strong: #ff7b3b;
  --accent-soft: rgba(255, 184, 108, 0.18);
  --text-light: #fdfdfd;
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

/* ---------- GENERIC ---------- */

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
}


/* ---------- LOADER ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(255, 184, 108, 0.22), rgba(2, 0, 8, 1));
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  border-radius: 24px;
  background: rgba(5, 0, 16, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(255, 184, 108, 0.25);
}

.loader-logo img {
  width: 220px;
  max-width: 70vw;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 184, 108, 0.9));
  animation: loaderGlow 2.1s ease-in-out infinite alternate;
}

.loader-bar-wrap {
  width: min(380px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.loader-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.8);
}

.loader-bar-progress {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb86c, #ff7b3b, #ffb86c);
  background-size: 200% 100%;
  animation: loaderBarShimmer 1.1s linear infinite;
}

.loader-text {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  opacity: 0.96;
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
}

@keyframes loaderGlow {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 14px rgba(255, 184, 108, 0.8));
  }
  100% {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 28px rgba(255, 184, 108, 1));
  }
}

@keyframes loaderBarShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* ---------- HEADER ---------- */


.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  z-index: 40;
  pointer-events: none;
}

.site-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  pointer-events: auto;
}

.logo-wrapper img {
  height: 96px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}

.logo-wrapper img:hover {
  transform: scale(1.04);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header auth links */
.header-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0.9;
  position: relative;
  padding-inline: 0.15rem;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffb86c, rgba(255, 184, 108, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
  opacity: 0.85;
}

.header-link:hover::after {
  transform: scaleX(1);
}

.header-link:hover {
  opacity: 1;
}


/* Join button */

.join-btn {
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff, #f2edf7);
  color: #1b1030;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 14px 35px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
}

.join-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transform: translateX(-130%);
  transition: transform 0.55s ease-out;
}

.join-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

.join-btn:hover::before {
  transform: translateX(130%);
}

/* ---------- HAMBURGER ---------- */

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(8, 3, 21, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease-out, background 0.25s ease-out, box-shadow 0.25s ease-out;
}

.hamburger-bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.hamburger-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease-out, opacity 0.2s ease-out, top 0.25s ease-out, bottom 0.25s ease-out;
}

.hamburger-bar:nth-child(1) {
  top: 0;
}

.hamburger-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-bar:nth-child(3) {
  bottom: 0;
}

.hamburger:hover {
  transform: translateY(-1px);
  background: rgba(15, 5, 40, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.hamburger.open .hamburger-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ---------- OVERLAY MENU ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 184, 108, 0.28), rgba(6, 0, 24, 0.96));
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  z-index: 30;
}

.menu-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-overlay-inner {
  width: min(92vw, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.menu-link {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.3rem;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb86c, #ff7b3b);
  transform: translateX(-50%);
  transition: width 0.25s ease-out;
}

.menu-link:hover::after {
  width: 100%;
}

.menu-meta {
  opacity: 0.7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- HERO SECTION ---------- */

.section-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 55%),
              linear-gradient(to bottom, rgba(8, 0, 22, 0.15), rgba(1, 0, 10, 0.95));
  z-index: -1;
}

.hero-content {
  position: relative;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-inline: 1.5rem;
  padding-bottom: 6rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Scroll down button */

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  cursor: pointer;
  background: transparent;
}

.scroll-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.92;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 0, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
}

.scroll-arrow {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateX(-50%) rotate(45deg);
  animation: arrowBounce 1.4s ease-in-out infinite;
}

@keyframes arrowBounce {
  0% { transform: translate(-50%, 0) rotate(45deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate(-50%, 7px) rotate(45deg); opacity: 1; }
  100% { transform: translate(-50%, 14px) rotate(45deg); opacity: 0; }
}

/* ---------- WHY SECTION ---------- */

.section-why {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background-color: #020008;
  background-image: url("../assets/img/Rejoindre.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-why::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.35), transparent 55%),
    linear-gradient(to bottom, rgba(2, 0, 10, 0.65), rgba(1, 0, 8, 0.9));
  z-index: -1;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 32%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 32%),
    radial-gradient(circle at top, rgba(0, 0, 0, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(2, 0, 10, 0.6), rgba(1, 0, 8, 0.95));
  z-index: -1;
}

.why-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.why-heading-wrapper {
  text-align: center;
  margin-bottom: 0.5rem;
}

.why-heading-small {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.7rem;
}

.why-heading-main {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  text-shadow:
    0 0 15px rgba(255, 184, 108, 0.65),
    0 0 30px rgba(255, 123, 59, 0.6);
  animation: floatTitle 2.4s cubic-bezier(0.37, 0.01, 0.21, 1) infinite alternate;
}

.why-heading-main span:nth-child(1) {
  color: #ffffff;
}

.why-heading-main span:nth-child(2) {
  background: linear-gradient(120deg, #ffb86c, #ff7b3b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes floatTitle {
  0% { transform: translateY(0); text-shadow: 0 0 16px rgba(255, 184, 108, 0.85); }
  100% { transform: translateY(-6px); text-shadow: 0 0 26px rgba(255, 123, 59, 0.9); }
}

/* Cards */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.why-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: 20px;
  background: rgba(6, 0, 18, 0.76);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 184, 108, 0.08);
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(255, 184, 108, 0.2), transparent 60%);
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
}

.why-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(240, 240, 255, 0.9);
}

.why-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffb86c;
  box-shadow:
    0 0 10px rgba(255, 184, 108, 0.85),
    0 0 20px rgba(255, 123, 59, 0.9);
  margin-bottom: 0.7rem;
}


/* ---------- PARTNERS SLIDER ---------- */

.partners-section {
  padding: 2.5rem 1.5rem 2.8rem;
  background: radial-gradient(circle at top, rgba(255, 64, 64, 0.09), rgba(3, 0, 10, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partners-title-wrap {
  text-align: center;
}

.partners-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 80, 80, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: #ffeaea;
  background: radial-gradient(circle at top, rgba(255, 80, 80, 0.35), rgba(10, 0, 20, 0.96));
  box-shadow:
    0 0 22px rgba(255, 80, 80, 0.9),
    0 18px 45px rgba(0, 0, 0, 0.8);
  animation: partnersGlow 1.9s cubic-bezier(0.4, 0.0, 0.2, 1) infinite alternate;
}

@keyframes partnersGlow {
  0% {
    box-shadow:
      0 0 12px rgba(255, 80, 80, 0.7),
      0 10px 28px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
  }
  100% {
    box-shadow:
      0 0 26px rgba(255, 80, 80, 1),
      0 22px 55px rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
  }
}

.partners-marquee {
  margin-top: 1.4rem;
  overflow: hidden;
  position: relative;
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 2;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, #02000a, transparent);
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, #02000a, transparent);
}

.partners-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: partnersScroll 18s linear infinite;
}

.partners-item img {
  height: 54px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
  opacity: 0.95;
  transform-origin: center;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.partners-item img:hover {
  transform: scale(1.06) translateY(-2px);
  opacity: 1;
}

@keyframes partnersScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: 1.2rem 1.5rem 1.5rem;
  background: radial-gradient(circle at top, rgba(255, 184, 108, 0.12), #02000a);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .site-header {
    padding-inline: 1rem;
  }

  .logo-wrapper img {
    height: 64px;
  }

  .join-btn {
    padding-inline: 1rem;
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    gap: 0.6rem;
  }

  .join-btn {
    display: none; /* si tu veux la garder sur mobile, supprime cette ligne */
  }

  .why-card {
    padding: 1.1rem 1.15rem 1rem;
  }
}



/* ---------- AUTH PAGES ---------- */
body.page-auth {
  background: var(--bg-dark);
}

/* Hero block with bg.webp */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
  background: url("../assets/img/bg.webp") center/cover no-repeat;
}

/* Center section */
.auth-section {
  width: 100%;
  max-width: 520px;
}

/* New card style: dark, glassy, elegant */
.auth-card {
  padding: 2.1rem 2rem 1.9rem;
  border-radius: 26px;
  background: rgba(4, 2, 10, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.35;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 184, 108, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(115, 206, 255, 0.28), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.auth-card-inner {
  position: relative;
  z-index: 1;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.3rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-field input:focus {
  border-color: rgba(255, 184, 108, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 184, 108, 0.55);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #ffb86c;
}

.auth-submit {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: linear-gradient(120deg, #ffb86c, #ff7b3b);
  color: #1b1030;
  cursor: pointer;
  transition: transform 0.13s ease-out, box-shadow 0.13s ease-out, filter 0.13s ease-out;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
  filter: saturate(1.1);
}

.auth-switch {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.auth-switch a {
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .auth-section {
    max-width: 100%;
  }

  .auth-card {
    padding: 1.6rem 1.35rem 1.45rem;
    border-radius: 22px;
  }
}
/* Intro text under "Pourquoi nous rejoindre" */
.why-intro {
  max-width: 650px;
  margin: 0.2rem auto 0.3rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
