/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #070B19;
  --bg-2:        #101935;
  --bg-3:        #1B2B5A;
  --cream:       #F5F1E8;
  --cream-dim:   rgba(245,241,232,0.65);
  --cream-muted: rgba(245,241,232,0.38);
  --gold:        #C9952A;
  --grey:        #B7BCCB;
  --white:       #ffffff;

  --btn-bg:      #1B2B5A;
  --btn-hover:   #243370;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius:    1.5rem;
  --radius-sm: 0.875rem;
  --trans:     0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== STARS ===== */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%       { opacity: var(--op, 0.5); transform: scale(1); }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  transition: background var(--trans), backdrop-filter var(--trans);
}
.nav.scrolled {
  background: rgba(7,11,25,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,241,232,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { text-decoration: none; }
.nav-logo-full {
  height: 56px;
  width: auto;
  display: block;
  opacity: 0.95;
}
.nav-connexion {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--trans);
}
.nav-connexion:hover { color: var(--cream); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans);
  border: none;
  white-space: nowrap;
}
.btn-hero {
  background: transparent;
  color: #C9B79A;
  border: 1.5px solid rgba(201,183,154,0.7);
  box-shadow: none;
  letter-spacing: 0.06em;
  font-size: 0.9375rem;
  border-radius: 100px;
  padding: 0.9rem 2.75rem;
  font-weight: 400;
}
.btn-hero:hover {
  background: rgba(201,183,154,0.08);
  border-color: #C9B79A;
  color: #DDD0B8;
  transform: translateY(-1px);
}
.btn-full { width: 100%; }
.btn-large { padding: 1.125rem 2.75rem; font-size: 1.0625rem; }

.btn-disabled {
  background: rgba(255,255,255,0.06);
  color: var(--cream-muted);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: default;
  font-size: 0.9rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* Outline button (legacy) */
.btn-outline {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid rgba(245,241,232,0.2);
}
.btn-outline:hover {
  background: rgba(245,241,232,0.05);
  border-color: rgba(245,241,232,0.4);
  color: var(--cream);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #070B19 0%, #0E1830 55%, #080F1F 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,11,25,0.62) 0%,
    rgba(7,11,25,0.45) 38%,
    rgba(7,11,25,0.15) 62%,
    rgba(7,11,25,0.0) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 4rem 3rem max(4rem, 8vw);
  max-width: 720px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: #F6F1E6;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}

.hero-lock {
  margin-top: 1.125rem;
  font-size: 0.8125rem;
  color: rgba(201,183,154,0.45);
  letter-spacing: 0.02em;
}

.hero-sep {
  width: 48px;
  height: 2px;
  background: #C9B79A;
  margin: 1.5rem 0;
  border-radius: 2px;
}

.hero-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.0625rem, 1.75vw, 1.3rem);
  color: rgba(246,241,230,0.72);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}


/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(217,185,122,0.5), transparent);
}

/* ===== ADVANTAGES (inside hero) ===== */
.hero-advantages {
  flex-shrink: 0;
  border-top: 1px solid rgba(246,241,230,0.12);
  background: rgba(7,11,25,0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 2rem;
}
.adv-item {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 0 2.5rem;
}
.adv-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.85;
}
.adv-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #F6F1E6;
  margin-bottom: 0.4rem;
}
.adv-item p {
  font-size: 0.8125rem;
  color: rgba(246,241,230,0.6);
  line-height: 1.55;
}
.adv-divider {
  width: 1px;
  height: 60px;
  background: rgba(246,241,230,0.12);
  flex-shrink: 0;
}

/* ===== BRAND SEPARATOR ===== */
.brand-sep {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.brand-sep-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}
.brand-sep-wave {
  width: 280px;
  height: 40px;
  margin-top: 1.25rem;
  opacity: 0.5;
}

.brand-sep-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--cream-muted);
  letter-spacing: 0.01em;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
}
.section-dark { background: rgba(16,25,53,0.5); }
.section-quote { padding: 5rem 1.5rem; }

.container         { max-width: 1100px; margin: 0 auto; }
.container-narrow  { max-width: 720px; margin: 0 auto; }
.text-center       { text-align: center; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  background: rgba(27,43,90,0.5);
  border: 1px solid rgba(217,185,122,0.2);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.badge-gold {
  background: rgba(217,185,122,0.1);
  border-color: rgba(217,185,122,0.3);
  color: var(--gold);
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 0 1.5rem;
}
.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.step-icon    { font-size: 2.25rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; }
.step-icon-img { width: 80px; height: 80px; object-fit: contain; }
.step-title   { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--cream); }
.step-desc    { color: var(--cream-dim); font-size: 0.9375rem; line-height: 1.65; }
.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
  align-self: center;
  margin-top: -3rem;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.feature-card-large { grid-column: 1 / 2; grid-row: 1 / 3; }
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  transition: all var(--trans);
}
.feature-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(217,185,122,0.18);
  transform: translateY(-3px);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.375rem; display: block; }
.feature-icon-img {
  width: 72px; height: 72px; object-fit: contain;
  filter: sepia(1) saturate(1.8) hue-rotate(5deg) brightness(1.1);
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--cream); }
.feature-card p  { color: var(--cream-dim); font-size: 0.9375rem; line-height: 1.55; }

/* Waveform */
.feature-visual { margin-top: 2rem; }
.waveform { display: flex; align-items: center; gap: 4px; height: 48px; }
.wave-bar {
  flex: 1;
  height: var(--h, 60%);
  background: linear-gradient(to top, var(--gold), rgba(217,185,122,0.5));
  border-radius: 100px;
  animation: wave-anim 1.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.1s);
  opacity: 0.65;
}
.wave-bar:nth-child(1){--i:0}.wave-bar:nth-child(2){--i:1}.wave-bar:nth-child(3){--i:2}
.wave-bar:nth-child(4){--i:3}.wave-bar:nth-child(5){--i:4}.wave-bar:nth-child(6){--i:5}
.wave-bar:nth-child(7){--i:6}.wave-bar:nth-child(8){--i:7}.wave-bar:nth-child(9){--i:8}
.wave-bar:nth-child(10){--i:9}.wave-bar:nth-child(11){--i:10}.wave-bar:nth-child(12){--i:11}
@keyframes wave-anim {
  0%, 100% { transform: scaleY(0.6); opacity: 0.45; }
  50%       { transform: scaleY(1.2); opacity: 0.9; }
}

/* ===== QUOTE ===== */
.quote {
  text-align: center;
  border: 1px solid rgba(217,185,122,0.18);
  background: rgba(27,43,90,0.15);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
}
.quote-stars   { color: var(--gold); font-size: 1rem; letter-spacing: 0.3em; margin-bottom: 1.5rem; opacity: 0.8; }
.quote p       { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.35rem); line-height: 1.7; color: var(--cream); margin-bottom: 1.5rem; }
.quote cite    { font-size: 0.875rem; color: var(--cream-muted); font-style: normal; }

/* ===== PRICING ===== */
.pricing-grid   { display: flex; justify-content: center; }
.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(217,185,122,0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.2);
}
.pricing-card-disabled { opacity: 0.42; pointer-events: none; }
.pricing-badge {
  display: inline-block;
  background: rgba(217,185,122,0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(217,185,122,0.25);
}
.pricing-price  { margin-bottom: 0.75rem; }
.price-amount   { font-family: var(--font-display); font-size: 3.25rem; font-weight: 600; color: var(--cream); }
.price-period   { font-size: 1rem; color: var(--cream-muted); }
.pricing-desc   { color: var(--cream-dim); font-size: 0.9375rem; margin-bottom: 2rem; }
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.pricing-features li {
  font-size: 0.9375rem;
  color: var(--cream-dim);
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--cream-muted); }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(245,241,232,0.06);
  padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo-full { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.5; }
.footer-tagline   { color: var(--cream-muted); font-size: 1rem; font-family: var(--font-display); font-style: italic; text-align: center; margin-top: 0.625rem; line-height: 1.6; }
.footer-links     { display: flex; gap: 2rem; }
.footer-links a   { color: var(--cream-muted); text-decoration: none; font-size: 0.875rem; transition: color var(--trans); }
.footer-links a:hover { color: var(--cream); }
.footer-copy      { color: rgba(245,241,232,0.25); font-size: 0.8125rem; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(12px);
  text-align: center;
}
.login-logo-full    { height: 40px; width: auto; display: block; margin: 0 auto 1.5rem; filter: brightness(0) invert(1); opacity: 0.9; }
.login-title        { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--cream); }
.login-subtitle     { color: var(--cream-dim); font-size: 0.9375rem; margin-bottom: 2.5rem; }
.form-group         { text-align: left; margin-bottom: 1.25rem; }
.form-label         { display: block; font-size: 0.875rem; font-weight: 500; color: var(--cream-dim); margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: all var(--trans);
  outline: none;
}
.form-input::placeholder { color: rgba(245,241,232,0.3); }

/* Écrase l'autofill jaune iOS/Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px rgba(16,25,53,0.98) inset !important;
  -webkit-text-fill-color: #F6F1E6 !important;
  border-color: rgba(201,149,42,.5) !important;
  caret-color: #F6F1E6;
  transition: background-color 9999s ease-in-out 0s;
}
.form-input:focus {
  border-color: rgba(201,149,42,0.7);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(201,149,42,0.12);
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--cream-muted);
  font-size: 0.8125rem;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.login-footer   { margin-top: 1.5rem; font-size: 0.875rem; color: var(--cream-muted); }
.login-footer a { color: var(--gold); text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.coming-soon-notice {
  background: rgba(217,185,122,0.07);
  border: 1px solid rgba(217,185,122,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--gold);
  line-height: 1.5;
}
.auth-message { border-radius: 0.75rem; padding: 0.875rem 1rem; font-size: 0.875rem; margin-bottom: 1.25rem; line-height: 1.5; }
.auth-error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.auth-success { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); color: #86efac; }
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
.desktop-only { display: none; }

@media (min-width: 768px) {
  .desktop-only { display: inline; }
  .step-connector { display: block; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.25rem); }
  .hero-content {
    padding: 8rem 1.75rem 10rem 1.75rem;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-end;
  }
  .hero-sep { margin: 1.25rem 0; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
  .hero-lock { font-size: 0.75rem; }
  .hero-bg img { object-position: 80% center; }
  .hero-advantages {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 0;
    padding: 2rem 1rem;
  }
  .adv-divider { display: none; }
  .adv-item { flex: 1; padding: 0 0.5rem; text-align: center; }
  .adv-icon svg { width: 18px; height: 18px; }
  .adv-item h3 { font-size: 0.8rem; }
  .adv-item p { font-size: 0.7rem; }

  /* Steps compacts */
  .step { padding: 0 1rem; max-width: 100%; }
  .step-number { margin-bottom: 0.375rem; }
  .step-icon { margin-bottom: 0.375rem; }
  .step-icon-img { width: 64px; height: 64px; }
  .step-title { margin-bottom: 0.375rem; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-card-large { grid-column: auto; grid-row: auto; }
  .feature-card { padding: 2rem 1.75rem; }
  .pricing-grid-3 { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 700px) {
  .steps { flex-direction: column; align-items: center; gap: 2.5rem; padding: 0 1rem; }
  .step-connector { display: none; }
  .step { width: 100%; max-width: 320px; }
  .features-grid { gap: 1.25rem; }
  .feature-card { padding: 1.75rem 1.5rem; }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .hero-advantages { padding: 2rem 1.25rem; gap: 1.25rem; }
  .brand-sep { padding: 3rem 1.5rem; }
  .container { padding: 0 1.25rem; }
}
