:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --alt: #f4f7fe;
  --border: #e4e9f2;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.big { font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* Sélecteur de langue (FR | EN) : deux options texte, celle active est mise
   en évidence. Pas d'emoji drapeau : ils ne s'affichent pas sous Windows. */
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; flex-shrink: 0;
}
.lang-switch button {
  border: none; background: transparent; padding: 8px 12px; font-size: 13px;
  font-weight: 700; cursor: pointer; color: var(--muted);
}
.lang-switch button.active { background: var(--primary); color: #fff; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* Sur desktop, ce conteneur est transparent pour la mise en page : ses
   enfants (.nav-links, .nav-cta) restent des enfants flex directs de .nav,
   exactement comme avant. Il ne devient un vrai bloc (menu déroulant) que
   sous 900px, voir media query plus bas. */
.nav-collapse { display: contents; }

/* Bouton "hamburger" : masqué par défaut, affiché en mobile */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  font-size: 20px; line-height: 1; padding: 6px 10px; border-radius: 8px;
  color: var(--text);
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero {
  padding: 90px 24px 70px; text-align: center;
  background:
    radial-gradient(1000px 400px at 50% -100px, rgba(37,99,235,.10), transparent),
    linear-gradient(180deg, #fff, var(--alt));
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.badge-pill {
  display: inline-block; background: #eef2ff; color: var(--primary);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 22px;
}
.hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; }
.grad { background: linear-gradient(90deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: #334155; max-width: 700px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 50px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 32px; color: var(--primary); }
.hero-stats span { font-size: 14px; color: var(--muted); max-width: 160px; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
.section h2 { font-size: 34px; letter-spacing: -.8px; margin-bottom: 16px; }
.section .center.muted { max-width: 700px; margin: 0 auto 40px; }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.feature-ic { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 44px; align-items: stretch; }

.price-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 22px; margin-bottom: 12px; }
.price { margin-bottom: 20px; }
.price .amount { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.price .cur { font-size: 18px; font-weight: 700; color: var(--muted); }
.price .per { font-size: 15px; color: var(--muted); }
.price-feats { list-style: none; margin-bottom: 24px; flex: 1; }
.price-feats li { padding: 7px 0; font-size: 15px; border-bottom: 1px dashed var(--border); }
.price-feats li.yes { color: var(--text); }
.price-feats li.no { color: #b0b8c5; }

/* CTA final */
.cta-final {
  padding: 80px 24px; text-align: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
}
.cta-final h2 { font-size: 34px; margin-bottom: 12px; letter-spacing: -.8px; }
.cta-final .muted { color: rgba(255,255,255,.85); margin-bottom: 26px; }
.cta-final .btn-primary { background: #fff; color: var(--primary); }
.cta-final .btn-primary:hover { background: #f1f5ff; }

/* FAQ */
details {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 12px;
}
details summary { font-weight: 600; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; float: right; color: var(--primary); font-weight: 700; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 50px 0 24px; }
.footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-grid a { display: block; color: #94a3b8; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer .muted { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 20px; font-size: 13px; }
.disclaimer { color: #64748b; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }


/* Responsive */
@media (max-width: 900px) {
  .grid-3, .steps, .pricing, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .price-card.featured { transform: none; }

  .nav { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Sous 900px, .nav-collapse redevient un vrai conteneur : panneau
     déroulant qui regroupe les liens de section ET les boutons connexion/CTA,
     évitant que ces derniers ne soient écrasés dans la barre du haut. */
  .nav-collapse {
    display: none;
    flex-direction: column; align-items: stretch; gap: 10px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 14px 20px; z-index: 30;
  }
  .nav-collapse.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { flex-direction: column; gap: 8px; }
  .nav-cta .btn { width: 100%; }
}

/* Pages légales */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; letter-spacing: -.8px; }
.legal .updated { color: var(--muted); margin-bottom: 30px; font-size: 14px; }
.legal h2 { font-size: 22px; margin: 30px 0 10px; }
.legal p, .legal li { color: #334155; margin-bottom: 10px; }
.legal ul { margin-left: 20px; }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--primary); font-weight: 600; }
.legal .notice {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: 14px 16px; border-radius: 10px; margin: 20px 0; font-size: 14px;
}
