/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #080E1A;
  --bg2:       #0D1525;
  --bg3:       #111D32;
  --blue:      #1A6EFF;
  --blue-light:#4D9FFF;
  --blue-glow: rgba(26,110,255,0.18);
  --text:      #E8EEF8;
  --muted:     #6B7B99;
  --border:    rgba(255,255,255,0.07);
  --radius:    16px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utilitaires ───────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,110,255,0.12);
  border: 1px solid rgba(26,110,255,0.3);
  color: var(--blue-light);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 100px;
  letter-spacing: 0.05em;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: block; }

/* ── Fond animé ────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26,110,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,110,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-glow {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse, rgba(26,110,255,0.12) 0%, transparent 70%);
}

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(8,14,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text strong {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px;
}
.nav-logo-text span {
  display: block; font-size: 10px;
  color: var(--blue-light); letter-spacing: 3px;
  margin-top: -2px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-size: 14px; color: var(--muted);
  transition: color 0.2s; font-weight: 400;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 10px 22px; border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { background: #2878ff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,110,255,0.35); }
.btn-outline {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); box-shadow: none; }
.nav-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.nav-menu-btn svg line { transition: transform 0.25s ease, opacity 0.25s ease; transform-box: fill-box; transform-origin: center; }
nav.menu-open .nav-menu-btn svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.menu-open .nav-menu-btn svg line:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.menu-open .nav-menu-btn svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  padding: 180px 0 120px;
  text-align: center;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; color: #fff;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4D9FFF 0%, #1A6EFF 50%, #0047CC 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 560px; margin: 0 auto 44px;
  font-weight: 300; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.hero-stats {
  margin-top: 80px;
  display: flex; justify-content: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  overflow: hidden; max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-stat {
  flex: 1; padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 28px; font-weight: 800;
  color: #fff; letter-spacing: -1px;
}
.hero-stat span { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

/* ── LOGO SVG animé dans le hero ──────────────────────── */
.hero-logo-wrap {
  margin: 0 auto 48px;
  width: 80px; height: 80px;
  position: relative;
}
.hero-logo-wrap svg { animation: pulse-node 3s ease-in-out infinite; }
@keyframes pulse-node {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(26,110,255,0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(26,110,255,0.7)); }
}

/* ── SECTION TITRE ─────────────────────────────────────── */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1px;
  color: #fff; margin-top: 14px;
}
.section-header p {
  font-size: 17px; color: var(--muted);
  max-width: 500px; margin: 14px auto 0;
}

/* ── OFFRES ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.pricing-card.featured {
  border-color: rgba(26,110,255,0.5);
  background: linear-gradient(145deg, #0D1525 0%, #0f1e3a 100%);
  box-shadow: 0 0 0 1px rgba(26,110,255,0.2), inset 0 0 60px rgba(26,110,255,0.04);
}
.pricing-card.featured:hover { box-shadow: 0 20px 60px rgba(26,110,255,0.2); }
.featured-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 16px; border-radius: 100px;
  white-space: nowrap;
}
.pricing-name {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.pricing-desc { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.pricing-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.pricing-price strong {
  font-family: var(--font-head);
  font-size: 52px; font-weight: 800;
  color: #fff; letter-spacing: -2px;
}
.pricing-price sup { font-size: 20px; color: var(--muted); margin-top: 8px; }
.pricing-price sub { font-size: 14px; color: var(--muted); }
.pricing-annual { font-size: 12px; color: var(--blue-light); margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 36px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓'; color: var(--blue);
  font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.btn-full { width: 100%; justify-content: center; }

/* ── ARGUMENTS ─────────────────────────────────────────── */
.args-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.arg-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s;
}
.arg-card:hover { border-color: rgba(26,110,255,0.3); }
.arg-icon {
  width: 48px; height: 48px;
  background: rgba(26,110,255,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.arg-card h3 {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 700;
  color: #fff; margin-bottom: 10px;
}
.arg-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── COMPARAISON ───────────────────────────────────────── */
.compare-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  padding: 20px 24px; text-align: left;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.05em;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.compare-table th.highlight { color: var(--blue-light); }
.compare-table td {
  padding: 16px 24px; font-size: 14px; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--text); }
.compare-table td.yes { color: #4CAF82; font-weight: 500; }
.compare-table td.no { color: var(--muted); opacity: 0.5; }
.compare-table td.hl { color: var(--blue-light); font-weight: 600; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-q {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700; color: #fff;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-q .icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: rgba(26,110,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--blue); transition: transform 0.25s;
}
.faq-item.open .icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding-top 0.25s;
}
.faq-item.open .faq-a { max-height: 200px; padding-top: 14px; }

/* ── CONTACT FORM ──────────────────────────────────────── */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(26,110,255,0.5);
  box-shadow: 0 0 0 3px rgba(26,110,255,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(76,175,130,0.1);
  border: 1px solid rgba(76,175,130,0.3);
  color: #4CAF82;
}
.form-feedback.error {
  display: block;
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff5050;
}

/* ── BILLING TOGGLE ────────────────────────────────────── */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.billing-pills {
  display: inline-flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
}
.billing-pill {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}
.billing-pill--active {
  background: #fff;
  color: #080E1A;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.billing-savings {
  font-size: 13px;
  color: var(--blue-light);
  font-weight: 500;
  transition: opacity 0.2s;
}
.billing-savings--hidden { opacity: 0; pointer-events: none; }

.pricing-nudge {
  display: none;
  font-size: 12px;
  color: var(--blue-light);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 32px;
}
.pricing-nudge:hover { color: #fff; }

.pricing-price strong {
  transition: opacity 0.12s ease;
}
.pricing-price strong.price-fade { opacity: 0; }

/* ── CTA FINAL ─────────────────────────────────────────── */
.cta-section {
  position: relative; z-index: 1;
  padding: 100px 0;
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, #0D1525 0%, #0f1e3a 100%);
  border: 1px solid rgba(26,110,255,0.3);
  border-radius: 24px;
  padding: 72px 40px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(26,110,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1px;
  color: #fff; margin-bottom: 16px;
}
.cta-box p { font-size: 17px; color: var(--muted); margin-bottom: 40px; }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER LÉGAL ──────────────────────────────────────── */
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-legal a,
.footer-legal span {
  font-size: 12px;
  color: var(--muted);
}
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* ── PAGES LÉGALES ─────────────────────────────────────── */
.legal-hero {
  position: relative; z-index: 1;
  padding: 140px 0 56px;
  text-align: center;
}
.legal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-top: 16px;
}
.legal-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.legal-content {
  position: relative; z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 48px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.legal-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-content ul li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: #fff; }
.legal-todo {
  background: rgba(255,193,7,0.1);
  border: 1px solid rgba(255,193,7,0.3);
  color: #ffc107;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left strong {
  font-family: var(--font-head); font-weight: 800; color: #fff;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); margin-top: 24px; text-align: center; }

/* ── ANIMATIONS ENTRÉE ─────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  nav.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 9, 20, 0.99);
    border-bottom: none;
  }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
    background: rgba(5, 9, 20, 0.99);
    padding: 28px 24px 48px;
    gap: 0;
    border-top: 1px solid rgba(26, 110, 255, 0.45);
    box-shadow: inset 0 40px 80px -20px rgba(26, 110, 255, 0.07);
    overflow-y: auto;
    z-index: 9999;
    animation: menuIn 0.2s ease-out;
  }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open a:not(.btn) {
    color: rgba(232, 238, 248, 0.72);
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.02em;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: none;
    transition: color 0.15s, padding-left 0.15s;
  }
  .nav-links.open a:not(.btn):last-of-type { border-bottom: none; }
  .nav-links.open a:not(.btn):hover {
    color: #fff;
    padding-left: 8px;
  }
  .nav-links.open .btn {
    margin-top: 10px; justify-content: center;
    padding: 16px 22px; font-size: 16px; border-radius: 12px;
  }
  .nav-links.open .btn:first-of-type { margin-top: 32px; }
  .nav-links.open .btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
  }
  .nav-menu-btn { display: block; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
  footer .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-row { grid-template-columns: 1fr; }
}

/* ── COOKIE CONSENT BANNER ─────────────────────────────── */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: rgba(8, 14, 26, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 24px;
  animation: cookieIn 0.3s ease-out;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-content {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-banner-content p {
  margin: 0; font-size: 14px; color: var(--muted);
  line-height: 1.6; flex: 1; min-width: 240px;
}
.cookie-banner-content a { color: var(--blue-light); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie-banner-content { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}
