/* ══════════════════════════════════════
   ONPITCH Landing Page — Custom CSS
   Reproduit fidèlement index.html
   ══════════════════════════════════════ */

/* Google Fonts import fallback */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

/* Brand tokens (locked 2026-04-10) */
:root {
  --brand-ink: #15271D;
  --brand-gold: #C8A84B;
  --brand-cream: #f3ede0;
}

/* ── Reset & base ── */
body,
body.page-template-elementor_header_footer,
body.elementor-page {
  background: #15271D !important;
  color: #F5F2EC;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Masquer titre WordPress */
.entry-title,
.page-title,
h1.entry-title,
.elementor-page-title {
  display: none !important;
}

/* ── Typographie globale ── */
.onpitch-heading {
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

/* ── Labels section (eyebrow) ── */
.onpitch-label {
  color: #C8A84B !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.onpitch-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #C8A84B;
}
/* Centered labels don't need the line */
.elementor-align-center .onpitch-label::before {
  display: none;
}

/* ── Boutons ── */
.onpitch-btn,
.elementor-button.onpitch-btn {
  background: #C8A84B !important;
  color: #15271D !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  padding: 16px 32px !important;
  border: none !important;
  transition: background 0.2s, transform 0.2s !important;
}
.onpitch-btn:hover,
.elementor-button.onpitch-btn:hover {
  background: #E8C96A !important;
  transform: translateY(-2px) !important;
}

/* ── Sections border ── */
.onpitch-section {
  border-top: 1px solid rgba(200,168,75,0.2);
}

/* ── Hero orbe lumineux ── */
.onpitch-hero {
  position: relative;
  overflow: hidden;
}
.onpitch-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,168,75,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.onpitch-hero > .elementor-container {
  position: relative;
  z-index: 1;
}

/* ── Noise texture overlay ── */
.has-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Waitlist section — lueur or centrale ── */
.onpitch-section:has(#waitlist) {
  position: relative;
}
.onpitch-section:has(#waitlist)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,168,75,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Formulaire waitlist ── */
.onpitch-form .elementor-field-group input[type="email"],
.onpitch-form .elementor-field-group input[type="text"] {
  background: rgba(255,255,255,0.04) !important;
  border: 0.5px solid rgba(200,168,75,0.3) !important;
  color: #F5F2EC !important;
  border-radius: 2px !important;
  padding: 16px 20px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
}
.onpitch-form .elementor-field-group input::placeholder {
  color: rgba(245,242,236,0.3) !important;
}
.onpitch-form .elementor-button {
  background: #C8A84B !important;
  color: #15271D !important;
  border-radius: 2px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  border: none !important;
  transition: background 0.2s !important;
}
.onpitch-form .elementor-button:hover {
  background: #E8C96A !important;
}
.onpitch-form .elementor-message.elementor-message-success {
  color: #C8A84B !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ── Step numbers ── */
.onpitch-step-num {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 80px !important;
  color: rgba(200,168,75,0.12) !important;
  line-height: 1 !important;
  margin-bottom: 16px !important;
}

/* ── Animations fade-up au scroll ── */
@keyframes onpitch-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elementor-section {
  animation: onpitch-fade-up 0.8s ease forwards;
}

/* Intersection Observer based animation (applied via JS) */
.onpitch-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.onpitch-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll indicator ── */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ── Responsive mobile ── */
@media (max-width: 768px) {
  .onpitch-hero-title {
    font-size: 18vw !important;
  }

  .onpitch-hero::before {
    width: 300px;
    height: 300px;
    top: -10%;
    right: -15%;
  }

  /* Stack columns on mobile */
  .elementor-section .elementor-container {
    flex-wrap: wrap;
  }

  /* Mockups full width on mobile */
  .elementor-widget-html {
    width: 100% !important;
  }

  /* Reduce section padding on mobile */
  .onpitch-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

@media (max-width: 480px) {
  .onpitch-hero::before {
    width: 200px;
    height: 200px;
  }
}

/* ── Nav bar styles (for header if using Elementor header) ── */
.onpitch-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.onpitch-nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #C8A84B;
  letter-spacing: 4px;
  text-decoration: none;
}

.onpitch-nav-btn {
  background: transparent;
  border: 0.5px solid rgba(200,168,75,0.4);
  color: #C8A84B;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.onpitch-nav-btn:hover {
  background: rgba(200,168,75,0.1);
}

/* ── Hero wordmark logo (brand locked) ── */
.onpitch-logo-hero {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
.onpitch-logo-hero img,
.onpitch-logo-hero svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Features list (2026 update) ── */
.onpitch-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.onpitch-features li {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--brand-cream);
  padding: 14px 18px;
  border: 0.5px solid rgba(200,168,75,0.25);
  border-radius: 2px;
  background: rgba(243,237,224,0.03);
  letter-spacing: 0.01em;
}
