/* ===========================
   Waitlist page
   =========================== */

/* Préfixe Safari pour le flou du header (backdrop-filter) */
.header {
  -webkit-backdrop-filter: blur(8px);
}

.wl-hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 200px);
}


.wl-hero__content,
.wl-hero__visual {
  position: relative;
}

.wl-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  margin-bottom: 1.25rem;
}

/* Animation accentuée de « gratuitement » dans le sous-titre (scopée waitlist) */
.wl-subtitle .hero-glow {
  animation: wl-glow-pulse 3.6s ease-in-out infinite;
}

@keyframes wl-glow-pulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(108, 92, 231, 0);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 6px rgba(108, 92, 231, 0.2);
  }
}

.wl-hero__content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.wl-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Form */

.wl-form {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.wl-input {
  flex: 1 1 auto;
  max-width: 340px;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wl-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 122, 232, 0.12);
}

.wl-input--error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Hint d'erreur — overlay absolu (comme le succès) : il prend la place de la
   trust line sans jamais décaler l'ebook ni le teaser en dessous. */
.wl-hint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding-left: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c53030;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wl-hint.is-visible {
  opacity: 1;
}

/* Message de confirmation — overlay absolu : aucun décalage du reste du site */
.wl-success[hidden] { display: none; }

.wl-success {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: wl-fadein 0.3s ease;
}

/* Pastille ronde verte avec check */
.wl-success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #2f9e44;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.wl-success--out {
  opacity: 0;
}

@keyframes wl-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wl-success,
  .wl-hint,
  .wl-trust {
    transition: none;
    animation: none;
  }
}

.wl-input::placeholder {
  color: var(--text-light);
}

.wl-btn {
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.nav-logo__text--primary {
  color: var(--primary);
}

.wl-status {
  position: relative;
}

.wl-trust {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: opacity 0.3s ease;
}

/* Pendant l'affichage du succès ou d'une erreur, la trust line se fond dessous */
.wl-status--success .wl-trust,
.wl-status--error .wl-trust {
  opacity: 0;
}

/* Mention de consentement RGPD sous le formulaire */
.wl-consent {
  margin: 1rem 0 0;
  padding-left: 0.5rem;
  max-width: 460px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-light);
}

.wl-consent a {
  color: var(--text-mid);
  text-decoration: underline;
}

.wl-consent a:hover {
  color: var(--primary);
}

/* Ebook mockup */

.wl-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wl-ebook {
  position: relative;
  width: 300px;
  filter: drop-shadow(0 32px 64px rgba(139, 122, 232, 0.4));
  transform: perspective(800px) rotateY(-10deg) rotateX(2deg);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.wl-ebook:hover {
  transform: perspective(800px) rotateY(-5deg) rotateX(1deg) translateY(-8px);
  filter: drop-shadow(0 40px 72px rgba(139, 122, 232, 0.5));
}

.wl-ebook__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 10px 10px 4px;
}

/* Teaser pill */

.wl-teaser {
  padding: 1rem 2rem 5rem;
  display: flex;
  justify-content: center;
}

.wl-teaser__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
}

.wl-teaser__label {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.wl-teaser__text {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  margin: 0;
}

/* Footer minimal */

.footer--minimal {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer--minimal .footer__copy {
  font-size: 0.7rem;
}

.footer--minimal .footer__copy a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer--minimal .footer__copy a:hover {
  color: var(--primary);
}

/* Responsive */

/* Entre 831 et 950px : on réduit un peu la couverture (≤830px garde la taille responsive) */
@media (max-width: 950px) {
  .wl-ebook {
    width: 260px;
  }
}

@media (max-width: 830px) {
  .wl-success {
    justify-content: center;
  }

  .wl-hero {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    min-height: auto;
    gap: 3rem;
  }

  .wl-hero__visual {
    order: -1;
  }

  /* Header compact : 4 icônes + logo doivent tenir sans déborder */
  .nav {
    padding: 0.85rem 1.1rem;
  }

  .nav-logo__text {
    font-size: 0.82rem;
  }

  .nav-socials {
    gap: 0.6rem;
  }

  .nav-social-link {
    width: 34px;
    height: 34px;
  }

  .wl-hero__content h1 {
    font-size: 2.4rem;
  }

  .wl-subtitle {
    margin: 0 auto 2rem;
  }

  .wl-consent {
    margin: 1rem auto 0;
    padding-left: 0;
  }

  .wl-form {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .wl-input,
  .wl-btn {
    width: 100%;
    max-width: 340px;
  }

  .wl-ebook {
    transform: perspective(800px) rotateY(-4deg) rotateX(1deg);
    width: 240px;
  }

  .wl-teaser {
    padding: 1rem 1.5rem 4rem;
  }

  .wl-teaser__inner {
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    padding: 1rem 1.25rem;
    text-align: center;
    gap: 0.6rem;
  }
}
