/* ============================================================
   Repetita - Design System & Stylesheet Haute Conversion
   Prestige C-Suite, Éloquence & Répétition Espacée
   ============================================================ */

:root {
  --navy-deep: #060b18;
  --navy-surface: #0b132b;
  --navy-card: #0f1c3f;
  --navy-border: rgba(255, 255, 255, 0.08);
  --navy-border-hover: rgba(245, 158, 11, 0.4);

  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gold-glow: rgba(245, 158, 11, 0.25);

  --blue-accent: #38bdf8;
  --blue-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 30px rgba(245, 158, 11, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--navy-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at 50% 0%, #0d1b3e 0%, var(--navy-deep) 70%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   Conteneur & Grille
   ============================================================ */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header & Barre de Navigation (Zéro Retour à la Ligne)
   ============================================================ */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
  padding: 12px 0;
}

.landing-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 2px 10px var(--gold-glow);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--gold-primary);
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Boutons d'Action */
.btn-cta-gold {
  background: var(--gold-gradient);
  color: #0b132b;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  color: #000000;
}

.btn-cta-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cta-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   Section 1 : Hero C-Suite Prestigieux
   ============================================================ */
.hero-section {
  padding: 80px 0 60px 0;
  position: relative;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px rgba(245, 158, 11, 0.15);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  max-width: 960px;
  margin: 0 auto 20px auto;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--gold-primary);
}

/* ============================================================
   Section 2 : Démo Interactive Flashcard 3D
   ============================================================ */
.demo-section {
  padding: 60px 0 80px 0;
}

.demo-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.demo-pill-btn {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-pill-btn:hover, .demo-pill-btn.is-active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.demo-pill-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-pill-btn.is-active .demo-pill-badge {
  background: var(--gold-primary);
  color: #0b132b;
}

.demo-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
  perspective: 1200px;
}

.flashcard-wrapper {
  position: relative;
  width: 100%;
  min-height: 430px;
  border-radius: var(--radius-xl);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.flashcard-wrapper.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid var(--navy-border-hover);
  background: linear-gradient(145deg, #0f1c3f, #081026);
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #13244e, #0a132e);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-audio-btn:hover {
  background: var(--gold-primary);
  color: #000000;
}

.card-word-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-phonetic {
  font-size: 15px;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 14px;
}

.card-hint {
  font-size: 14px;
  color: var(--text-muted);
}

.card-instruction {
  font-size: 12.5px;
  color: var(--gold-primary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

.card-def-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-def-text {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-example-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.card-example-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-example-text {
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
}

.sm2-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.btn-sm2 {
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-sm2.btn-sm2-hard:hover {
  background: #dc2626;
  border-color: #ef4444;
}

.btn-sm2.btn-sm2-good:hover {
  background: #d97706;
  border-color: #f59e0b;
}

.btn-sm2.btn-sm2-perfect:hover {
  background: #16a34a;
  border-color: #22c55e;
}

/* ============================================================
   Section 3 : Les 3 Filières d'Éloquence
   ============================================================ */
.pillars-section {
  padding: 80px 0;
  border-top: 1px solid var(--navy-border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-border-hover);
  box-shadow: var(--shadow-gold);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.pillar-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-features li::before {
  content: "✔";
  color: var(--gold-primary);
  font-weight: 900;
}

/* ============================================================
   Section 4 : Vitrine des Badges d'Éloquence
   ============================================================ */
.badges-section {
  padding: 80px 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 28, 63, 0.6) 0%, transparent 80%);
  border-top: 1px solid var(--navy-border);
}

.badges-banner-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 36px auto;
  display: block;
  border-radius: var(--radius-xl);
  border: 2px solid var(--navy-border-hover);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 158, 11, 0.2);
}

/* ============================================================
   Section 5 : Grille Tarifaire
   ============================================================ */
.pricing-section {
  padding: 80px 0;
  border-top: 1px solid var(--navy-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card.is-featured {
  border-color: var(--gold-primary);
  background: linear-gradient(145deg, #13244e, #0a132e);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.25);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gold-gradient);
  color: #0b132b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.pricing-tier-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.pricing-tier-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-faint);
}

/* ============================================================
   Section 6 : FAQ
   ============================================================ */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--navy-border);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ============================================================
   Footer
   ============================================================ */
.landing-footer {
  padding: 50px 0 30px 0;
  border-top: 1px solid var(--navy-border);
  background: var(--navy-deep);
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
   Modale d'Authentification Sécurisée (Google & OTP Resend)
   ============================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  background: var(--navy-surface);
  border: 1.5px solid var(--navy-border-hover);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.auth-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-google-auth:hover {
  background: #f9fafb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-google-auth svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

.auth-input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s ease;
}

.auth-input-field:focus {
  border-color: var(--gold-primary);
}

.auth-feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}

.auth-feedback.is-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

.auth-feedback.is-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* ============================================================
   Push-up Flottant de Relance
   ============================================================ */
.pushup-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  max-width: 360px;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pushup-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.pushup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pushup-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.pushup-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 14px;
  cursor: pointer;
}

.pushup-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.pushup-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.pushup-cta {
  width: 100%;
  background: var(--gold-gradient);
  color: #0b132b;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
