/* ============================================================
   Je Simule Mon Emprunt — site vitrine (Sylves Inc)
   Design system repris directement de l'app : navy profond, dégradé
   bleu -> violet, cartes flottantes. Space Grotesk pour les titres
   (caractère géométrique/technique), Inter pour le texte.
   ============================================================ */

:root {
  --bg: #0B1120;
  --bg-alt: #0E1526;
  --card: #161F32;
  --card-alt: #1D2740;
  --border: #263149;
  --text: #F3F6FB;
  --text-muted: #8B94A8;
  --text-faint: #5D6780;
  --accent: #4F8CFF;
  --accent-2: #7C5CFF;
  --success: #3DD9A4;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--text-muted); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(79, 140, 255, 0.55);
}
.btn-ghost {
  background: var(--card-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px; }
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero-sub { font-size: 18px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* Carte "résultats" flottante, reproduction fidèle de l'écran de l'app */
.mock-phone {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 340px;
}
.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  transform: rotate(-2deg);
}
.mock-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.mock-amount { font-family: "Space Grotesk", sans-serif; font-size: 34px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.mock-stat-label { font-size: 10.5px; color: var(--text-muted); margin-bottom: 3px; }
.mock-stat-value { font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 700; }
.mock-chart { height: 64px; border-radius: 12px; background: linear-gradient(180deg, rgba(79,140,255,0.18), transparent); position: relative; overflow: hidden; border: 1px solid var(--border); }
.mock-chart svg { position: absolute; inset: 0; }
.mock-badge {
  position: absolute;
  top: -16px;
  left: -16px;
  background: var(--success);
  color: #06231a;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  transform: rotate(-6deg);
  box-shadow: 0 10px 24px -8px rgba(61, 217, 164, 0.6);
}

/* ---------- Section shell ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { font-size: 16.5px; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Loan type strip ---------- */
.loan-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.loan-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.loan-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Privacy split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--text); }
.check-list li svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(79,140,255,0.08), var(--card) 40%);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-name { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.price-amount { font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700; margin-bottom: 4px; }
.price-period { font-size: 13.5px; color: var(--text-faint); margin-bottom: 22px; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; color: var(--text); }
.price-features li svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #16224a, #23163f);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--text-faint); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.blog-card:hover { border-color: var(--accent); }
.blog-tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 12px; }
.blog-card h3 { font-size: 19px; margin-bottom: 10px; }
.blog-date { font-size: 13px; color: var(--text-faint); margin-top: auto; padding-top: 14px; }
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* ---------- Article page ---------- */
.article-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.article-header h1 { font-size: clamp(28px, 4vw, 42px); }
.article-meta { font-size: 14px; color: var(--text-faint); margin-bottom: 18px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 17px; }
.article-body h2 { font-size: 24px; margin-top: 40px; }
.article-body h3 { font-size: 19px; margin-top: 28px; }
.article-body p, .article-body li { color: var(--text); font-size: 16.5px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 20px;
  color: var(--text-muted);
  font-style: italic;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 32px; }

/* ---------- Legal / policy pages ---------- */
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
@media (max-width: 640px) { .legal-card { padding: 28px 22px; } }
.legal-card h1 { font-size: 30px; }
.legal-updated { color: var(--text-faint); font-size: 14px; margin-bottom: 32px; }
.legal-card h2 { font-size: 19px; margin-top: 34px; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-card th, .legal-card td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.legal-card th { background: var(--card-alt); color: var(--text); }
.legal-card td { color: var(--text-muted); }
.legal-card ul { color: var(--text-muted); }
.contact-box { background: var(--card-alt); border-radius: 12px; padding: 18px 20px; margin-top: 8px; border: 1px solid var(--border); }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.lang-switch a { font-size: 12.5px; font-weight: 700; color: var(--text-faint); padding: 4px 9px; border-radius: 999px; transition: color 0.15s ease, background 0.15s ease; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.lang-current { color: var(--accent); background: rgba(79, 140, 255, 0.12); }
@media (max-width: 480px) { .lang-switch { display: none; } }
