/* ── Variables ── */
:root {
  --primary: #1e3a8a;
  --primary-dark: #1e2f6b;
  --accent: #f59e0b;
  --bg: #f9fafb;
  --bg-alt: #f3f4f6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --dark: #111827;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
}

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

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.125rem; margin-bottom: .5rem; }

p { color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: white; }
.section-dark h2, .section-dark p { color: white; }
.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}
.center { text-align: center; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
}
.logo {
  font-weight: 700; font-size: 1.25rem;
  color: var(--primary-dark);
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }
.btn-nav {
  background: var(--primary); color: white !important;
  padding: .5rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
}

/* ── Hero ── */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  text-align: center;
}
.badge {
  display: inline-block;
  background: rgba(30,58,138,.1); color: var(--primary);
  padding: .4rem 1rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.25rem; max-width: 720px;
  margin: 0 auto 2.5rem;
}
.hero-note { font-size: .875rem; margin-top: 1.5rem; color: var(--text-muted); }

/* ── Buttons ── */
.cta-group {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: white; color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Compare cards ── */
.compare-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.compare-highlight {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.compare-highlight::before {
  content: "Recommandé";
  position: absolute; top: -12px; right: 16px;
  background: var(--accent); color: white;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
}
.compare-card ul { list-style: none; margin-top: 1rem; }
.compare-card li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.compare-card li:last-child { border-bottom: none; }

.note {
  text-align: center; font-size: 1rem;
  background: rgba(245,158,11,.1);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem; border-radius: var(--radius);
  max-width: 800px; margin: 2rem auto 0;
}

/* ── Features ── */
.feature {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* ── Use cases ── */
.usecase {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid #374151;
  flex-wrap: wrap; gap: 2rem;
}
.footer strong { color: white; font-size: 1.125rem; }
.footer p { font-size: .875rem; margin-top: .5rem; color: #9ca3af; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #9ca3af; font-size: .875rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 1.5rem; font-size: .875rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn-nav) { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .footer-inner { flex-direction: column; }
}
