/* ============================================================
   landing.css — Landing Pentest Mindmap
   Réutilise les MÊMES variables, composants et styles
   que css/style.css de l'application principale
   ============================================================ */

/* ── Variables — 100% identiques à style.css ── */
:root {
  --bg:      #020617;
  --panel:   #0f172a;
  --panel2:  #111827;
  --muted:   #94a3b8;
  --text:    #e5e7eb;
  --text2:   #cbd5e1;
  --border:  #334155;
  --accent:  #60a5fa;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Layout ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 700px; }

/* ══════════════════════════════════════════
   COMPOSANTS RÉUTILISÉS DE style.css
   (group, button, pill, .sub, .small, etc.)
   ══════════════════════════════════════════ */

/* .group — identique à l'app */
.group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.group:hover { border-color: rgba(96, 165, 250, 0.3); }

.group h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

/* .sub / .small — identique à l'app */
.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* .row — identique à l'app */
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Boutons — mêmes que l'app */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  text-align: center;
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
}

.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: #12203a;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(96,165,250,0.08); }

/* .pill — identique à l'app */
.pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  user-select: none;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.hot {
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--accent);
  background: rgba(96, 165, 250, 0.06);
}
.pill.more {
  border-style: dashed;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   NAV — même style que sidebar header
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(11, 18, 32, 0.95); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 7px 18px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #93c5fd !important; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ══════════════════════════════════════════
   HERO — glow bleu comme le radial de #canvas-wrap
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { position: relative; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ── Preview window — EXACTEMENT comme preview-window de style.css ── */
.hero-preview { perspective: 1200px; }

.preview-window {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: rotateX(2deg);
  transition: transform 0.4s;
}
.preview-window:hover { transform: rotateX(0); }

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: #12141c;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #e74c3c; }
.dot.yellow { background: #f39c12; }
.dot.green  { background: #27ae60; }

.preview-url {
  margin-left: 12px;
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.preview-body {
  display: flex;
  height: 260px;
}

/* Mini sidebar — même apparence que #sidebar */
.preview-sidebar {
  width: 170px;
  padding: 10px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.preview-search {
  padding: 8px 10px;
  background: #0b1324;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 11px;
}
.preview-cat {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  transition: background 0.15s;
}
.preview-cat.active {
  background: rgba(96, 165, 250, 0.12);
  color: var(--accent);
}
.preview-cat.dim { opacity: 0.35; }

/* Mini SVG mindmap */
.preview-main {
  flex: 1;
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 1) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-svg {
  width: 100%;
  height: 100%;
}

/* ── Stats bar ── */
.hero-stats {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
.section {
  padding: 80px 0;
}
.section-alt {
  background: linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
}

/* ── Feature grid — grille de .group ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ══════════════════════════════════════════
   DEMO MODAL — réplique exacte de .cmd-modal-box
   ══════════════════════════════════════════ */
.demo-modal {
  max-width: 820px;
  margin: 0 auto;
  background: #0d1b2a;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.demo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #1e293b;
}
.demo-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  display: block;
}
.demo-modal-desc {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.demo-modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.demo-modal-body {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .cmd-row identique */
.demo-cmd-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s;
}
.demo-cmd-row:hover { border-color: var(--border); }

.demo-cmd-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.demo-cmd-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-cmd-line code {
  flex: 1;
  background: #020c16;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  color: #7dd3fc;
  white-space: pre;
  overflow-x: auto;
}
.demo-copy-btn {
  background: rgba(99,179,237,0.08);
  border: 1px solid var(--border);
  color: #7dd3fc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
}
.demo-copy-btn:hover {
  background: rgba(99,179,237,0.2);
  color: #bae6fd;
}

.demo-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid #1e293b;
}
.demo-doc-link {
  color: var(--accent);
  font-size: 13px;
  transition: color 0.15s;
}
.demo-doc-link:hover { color: #93c5fd; }
.demo-hint {
  font-size: 11px;
  color: #475569;
}

/* ══════════════════════════════════════════
   CATEGORY CLOUD
   ══════════════════════════════════════════ */
.cat-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 700px;
  margin: 32px auto 0;
}

/* ══════════════════════════════════════════
   PRICING — style .group étendu
   ══════════════════════════════════════════ */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 0 60px rgba(96, 165, 250, 0.1);
}

.pricing-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pricing-amount {
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pricing-eur { font-size: 20px; font-weight: 700; }
.pricing-per { font-size: 18px; color: var(--muted); font-weight: 500; }

.pricing-trial {
  padding: 10px 14px;
  background: rgba(39, 174, 96, 0.10);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: 8px;
  font-size: 14px;
  color: #27ae60;
  margin: 16px 0 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.pricing-features li:last-child { border-bottom: none; }

/* Prix annuel — variante populaire */
.pricing-card-hot {
  border-color: var(--accent);
  position: relative;
  transform: scale(1.02);
  box-shadow: 0 0 80px rgba(96, 165, 250, 0.2);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.pricing-monthly-eq {
  font-size: 14px;
  color: #22c55e;
  margin-top: 4px;
  margin-bottom: 8px;
}

.pricing-save {
  background: #22c55e;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.pricing-toggle-btn {
  padding: 10px 24px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.pricing-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.pricing-toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ══════════════════════════════════════════
   FAQ — <details> dans des .group
   ══════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }

.faq-item .small {
  padding: 0 20px 16px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-text .row { justify-content: center; }
  .hero-preview { max-width: 520px; margin: 0 auto; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Pricing grid responsive */
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 400px !important; }
  .pricing-card-hot { transform: scale(1); }
}

@media (max-width: 640px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 54px; left: 0; right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 8px 0; }
  .nav-burger { display: block; }

  .hero { padding: 100px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .stat-sep { width: 40px; height: 1px; }

  .preview-sidebar { display: none; }

  .feat-grid { grid-template-columns: 1fr; }

  .section { padding: 48px 0; }
  .section-title { font-size: 22px; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   ANIMATIONS PREMIUM
   ══════════════════════════════════════════ */

/* ── Particules flottantes ── */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Gradient animé hero ── */
.hero-glow {
  animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { 
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% { 
    transform: translateX(-50%) scale(1.15);
    opacity: 0.7;
  }
}

/* ── Gradient animé sur le titre ── */
.hero h1 {
  background: linear-gradient(135deg, #e5e7eb 0%, #60a5fa 50%, #a78bfa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais pour cascade */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Compteur animé ── */
.stat-num {
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════
   TÉMOIGNAGES
   ══════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.testimonial:hover {
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-info {
  flex: 1;
}
.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testimonial-role {
  font-size: 12px;
  color: var(--muted);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   BADGES DE CONFIANCE
   ══════════════════════════════════════════ */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.trust-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.trust-badge .trust-icon {
  font-size: 20px;
}

/* ── Typing effect sur le badge hero ── */
.hero-badge {
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Bouton pulse ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* ── Preview window float ── */
.preview-window {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateX(2deg) translateY(0); }
  50% { transform: rotateX(2deg) translateY(-10px); }
}
