/* ═══════════════════════════════════════════════════
   FragScope — Landing Page CSS
   Palette : #07070e bg · #2563eb blue · #7c3aed purple
             #00f5a0 accent · #ff4655 red · #ff8c42 orange
═══════════════════════════════════════════════════ */

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

:root {
  --bg:      #07070e;
  --bg2:     #0d0d1a;
  --card:    #0f0f1e;
  --border:  #1c1c30;
  --dim2:    #1a1a2e;
  --dim:     #555570;
  --text:    #f0f0ff;
  --blue:    #2563eb;
  --purple:  #7c3aed;
  --accent:  #00f5a0;
  --red:     #ff4655;
  --orange:  #ff8c42;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue); color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost {
  background: var(--dim2); color: var(--dim);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-outline {
  background: transparent; color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover { background: rgba(124,58,237,.15); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; margin-top: auto; }

/* ── Sections communes ── */
.section-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
section { padding: 96px 0; }
.section-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: rgba(124,58,237,.15); color: var(--purple);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 14px;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--dim); font-size: 1.05rem; margin-bottom: 52px; }

/* ════════════════════════════════════
   NAV
════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(7,7,14,.85); border-color: var(--border);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.logo-text { font-weight: 800; font-size: 1.1rem; }
.logo { flex: 1; }
#nav-auth-btns { flex: 1; justify-content: flex-end; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { color: var(--dim); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  padding: 148px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,.12) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: rgba(37,99,235,.15); color: var(--blue);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 22px;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; line-height: 1.15; margin-bottom: 22px; }
.gradient {
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: var(--dim); font-size: 1.15rem; max-width: 560px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 64px;
}
.stat { text-align: center; padding: 0 36px; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-lbl { font-size: .85rem; color: var(--dim); }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* Mockup */
.app-mockup {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  max-width: 760px; margin: 0 auto;
  text-align: left;
}
.mockup-bar {
  background: var(--bg2); padding: 12px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red    { background: var(--red); }
.dot.yellow { background: var(--orange); }
.dot.green  { background: var(--accent); }
.mockup-title { margin-left: 8px; font-size: .85rem; color: var(--dim); font-weight: 600; }
.mockup-body { display: flex; height: 360px; }
.mockup-sidebar {
  width: 150px; background: var(--bg2); border-right: 1px solid var(--border);
  padding: 16px 0; flex-shrink: 0;
}
.mockup-logo {
  width: 36px; height: 36px; border-radius: 9px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.mockup-nav {
  padding: 7px 16px; font-size: .78rem; color: var(--dim); cursor: default;
}
.mockup-nav.active { color: var(--accent); background: var(--dim2); }
.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.mockup-kills { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.kill-line {
  font-size: .78rem; font-family: 'Consolas', monospace;
  color: var(--accent); display: flex; gap: 8px; align-items: center;
}
.skip-line { color: var(--dim); }
.kill-icon { font-size: .9rem; }
.mockup-stats {
  display: flex; gap: 8px;
}
.ms {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; text-align: center;
}
.ms-val { font-size: 1.3rem; font-weight: 800; }
.ms-val.blue   { color: var(--blue); }
.ms-val.purple { color: var(--purple); }
.ms-val.accent { color: var(--accent); }
.ms-lbl { font-size: .65rem; color: var(--dim); }

/* ════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════ */
.how { background: var(--bg2); }
.how .section-inner { text-align: center; }
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap; width: 100%;
}
.step {
  flex: 1; min-width: 200px; max-width: 280px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 24px; text-align: center; margin: 0 auto;
}
.step-num {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  margin: 0 auto 18px;
}
.step-num.blue   { background: var(--blue); }
.step-num.purple { background: var(--purple); }
.step-num.accent { background: var(--accent); color: var(--bg); }
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p  { color: var(--dim); font-size: .9rem; }
.step-arrow {
  font-size: 1.5rem; color: var(--border);
  align-self: center; padding: 0 12px;
  flex-shrink: 0;
}

/* ════════════════════════════════════
   FEATURES GRID
════════════════════════════════════ */
.features-grid {
  display: grid; width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  text-align: left;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 16px;
}
.feature-icon.blue   { background: rgba(37,99,235,.2);   color: var(--blue); }
.feature-icon.purple { background: rgba(124,58,237,.2);  color: var(--purple); }
.feature-icon.accent { background: rgba(0,245,160,.15);  color: var(--accent); }
.feature-icon.orange { background: rgba(255,140,66,.15); color: var(--orange); }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p  { color: var(--dim); font-size: .9rem; }

/* ════════════════════════════════════
   PRICING
════════════════════════════════════ */
.pricing { background: var(--bg2); }
.pricing .section-inner { text-align: center; }
.pricing-grid {
  display: grid; width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 28px;
}
.pricing-card {
  text-align: left;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(124,58,237,.08) 0%, var(--card) 100%);
  box-shadow: 0 0 0 1px var(--purple), 0 20px 60px rgba(124,58,237,.2);
}
.plan-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: var(--purple); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  margin-bottom: 12px; align-self: flex-start;
}
.plan-badge.economy { background: var(--accent); color: var(--bg); }
.plan-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 2.4rem; font-weight: 900; color: var(--text); }
.plan-price .plan-per { font-size: 1rem; font-weight: 400; color: var(--dim); }
.plan-note { color: var(--dim); font-size: .85rem; margin-bottom: 4px; }
.plan-divider { height: 1px; background: var(--border); margin: 20px 0; }
.plan-features { list-style: none; text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.plan-features li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.plan-features li.nok::before { content: "✗"; color: var(--red); }
.plan-features li.nok { color: var(--dim); }
.pricing-note { color: var(--dim); font-size: .85rem; }

/* ════════════════════════════════════
   VIDEO
════════════════════════════════════ */
.video-section .section-inner { text-align: center; }
.video-placeholder {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; height: 360px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  cursor: pointer; transition: border-color .2s;
}
.video-placeholder:hover { border-color: var(--blue); }
.video-play {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; color: #fff;
  box-shadow: 0 0 40px rgba(37,99,235,.4);
}
.video-label { color: var(--dim); font-size: .95rem; }

/* ════════════════════════════════════
   COMPAT SECTION (logiciels)
════════════════════════════════════ */
.compat-section { background: var(--bg2); text-align: center; }
.compat-list {
  max-width: 680px; width: 100%; margin: 40px 0 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.compat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.compat-row:last-child { border-bottom: none; }
.compat-name { font-weight: 700; font-size: .95rem; color: var(--text); white-space: nowrap; }
.compat-desc { font-size: .85rem; color: var(--dim); text-align: right; }

/* ════════════════════════════════════
   FAQ
════════════════════════════════════ */
.faq .section-inner { max-width: 760px; text-align: center; }
.faq-list { text-align: left; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: border-color .2s;
}
.faq-item:hover, .faq-item.open { border-color: var(--blue); }
.faq-q {
  padding: 18px 20px; font-weight: 700; font-size: .97rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--dim); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--blue); }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 20px; color: var(--dim); font-size: .92rem;
  transition: max-height .35s ease, padding .35s;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* ════════════════════════════════════
   CTA FINAL
════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(124,58,237,.1));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--dim); margin-bottom: 32px; font-size: 1.05rem; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer { background: var(--bg2); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 60px 24px 32px; }
.footer-top { display: flex; gap: 64px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-desc { color: var(--dim); font-size: .9rem; margin-top: 12px; max-width: 240px; }
.footer-links-group { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-weight: 700; font-size: .85rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.footer-col a { color: var(--dim); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--dim); font-size: .85rem;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-sep { width: 60px; height: 1px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links-group { gap: 24px; }
}
