:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --green: #15803d;
  --green-dark: #166534;
  --text: #0f172a;
  --muted: #475569;
  --muted-on-dark: #cbd5e1;
  --bg: #ffffff;
  --soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }
svg { width: 24px; height: 24px; flex-shrink: 0; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Marque */
.brand { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--amber); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.header-inner .brand { font-size: 1.25rem; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted-on-dark); font-weight: 500; }
.nav a:hover { color: #fff; }
.header-inner .btn { margin-left: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #fbbf24; }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); margin-top: 24px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px;
}

/* Bandeau d'accueil */
.hero { background: var(--navy); color: #fff; padding: 64px 0 72px; }
.eyebrow { color: var(--amber); font-style: italic; font-size: 1.15rem; font-weight: 600; }
.hero h1 { margin-top: 12px; font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -0.02em; max-width: 820px; }
.hero-text { margin-top: 20px; max-width: 640px; color: var(--muted-on-dark); font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding: 64px 0; }
section[id] { scroll-margin-top: 64px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .lead { color: var(--muted-on-dark); }
.section h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); letter-spacing: -0.01em; max-width: 760px; }
.center h2 { margin: 0 auto; }
.lead { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 999px; background: #dcfce7; color: var(--green-dark);
  font-size: .875rem; font-weight: 700;
}

/* Fonctionnalités */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.feature svg { color: var(--amber-dark); width: 28px; height: 28px; }
.feature h3 { margin-top: 14px; font-size: 1.125rem; }
.feature p { margin-top: 8px; color: var(--muted); }

.requirements { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--border); }
.requirements h3 { font-size: 1.125rem; }
.requirements ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.requirements li + li { margin-top: 6px; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
.price-card, .simulator { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.price-card { border: 2px solid var(--amber); }
.price-name { font-weight: 700; color: var(--amber-dark); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.price { margin-top: 8px; font-size: 2.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price small { font-size: 1.1rem; font-weight: 700; }
.price-unit { color: var(--muted); }
.checks { list-style: none; margin: 20px 0 24px; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li + li { margin-top: 8px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .45em;
  width: 12px; height: 7px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.simulator h3 { font-size: 1.25rem; margin-bottom: 8px; }
.simulator label { display: block; margin-top: 16px; font-weight: 600; }
.simulator input, .simulator select {
  width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #94a3b8; border-radius: 10px; background: #fff;
  font: inherit; color: inherit;
}
.sim-result { margin: 20px 0; padding: 16px; border-radius: 10px; background: var(--soft); }
.sim-total { font-size: 1.75rem; font-weight: 800; }
.sim-detail { color: var(--muted); font-size: .95rem; }
.note { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.contact-card:hover { border-color: var(--amber); }
.contact-card svg { grid-row: span 2; color: var(--amber); }
.contact-label { color: var(--muted-on-dark); font-size: .9rem; }
.contact-value { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }

/* Pied de page */
.site-footer { padding: 28px 0; background: #020617; color: var(--muted-on-dark); font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer .brand { color: #fff; }

/* Page 404 */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.page-404 h1 { font-size: 2rem; }
.page-404 p { margin: 12px 0 24px; color: var(--muted); }

@media (min-width: 720px) {
  .nav { display: flex; }
  .header-inner .btn { margin-left: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr 1fr; align-items: start; }
  .contacts { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 96px 0 104px; }
  .section { padding: 88px 0; }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
