:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --brand: #2F6FEB;
  --brand-dark: #1a4fbf;
  --brand-soft: #eff4ff;
  --surface: #f8faff;
  --border: #e5eaf5;
  --radius: 16px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

a { color: var(--brand-dark); }

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

/* ── Header ── */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
}
header.site .logo {
  font-weight: 800; font-size: 20px; color: var(--brand);
  letter-spacing: -0.03em;
}
header.site nav a {
  margin-left: 20px; text-decoration: none; color: var(--muted);
  font-size: 15px; font-weight: 500;
}
header.site nav a:hover { color: var(--ink); }

/* ── Hero ── */
.hero {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08) 0%, transparent 60%);
}
.hero .container { position: relative; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px); line-height: 1.08;
  margin: 0 0 20px; letter-spacing: -0.03em; font-weight: 800;
  max-width: 700px;
}
.hero p {
  font-size: clamp(17px, 2.5vw, 20px); max-width: 580px;
  margin: 0 0 36px; color: rgba(255,255,255,.88); line-height: 1.55;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-dark);
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn.secondary {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ── Sections ── */
section { padding: 64px 0; }
section h2 {
  font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px;
  letter-spacing: -0.03em; font-weight: 800;
}
section .lead { color: var(--muted); margin: 0 0 40px; font-size: 18px; }

/* ── Features grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(47,111,235,.1); transform: translateY(-2px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ── Live section ── */
.live-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.commune-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; margin: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.commune-pill .dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }

/* ── Mairie section ── */
.mairie-section {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #dde9ff 100%);
}
.mairie-section h2 { color: var(--brand-dark); }
.feature-list { list-style: none; padding: 0; margin: 0 0 32px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 16px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 1px;
  color: #fff; font-size: 12px; font-weight: 700;
}

/* ── Download section ── */
.download-section { text-align: center; }
.download-section h2 { margin-bottom: 8px; }
.download-section .lead { margin-bottom: 32px; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 14px 24px; border-radius: 14px; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); color: #fff; }
.store-btn .label { display: flex; flex-direction: column; text-align: left; }
.store-btn .label small { font-size: 11px; color: rgba(255,255,255,.7); line-height: 1; margin-bottom: 2px; }
.store-btn .label strong { font-size: 17px; font-weight: 700; line-height: 1.2; }
.store-btn svg { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
.store-btn.coming {
  background: var(--surface); color: var(--muted);
  box-shadow: none; border: 1px solid var(--border); cursor: default;
}
.store-btn.coming:hover { transform: none; box-shadow: none; }
.store-btn.coming .label small,
.store-btn.coming .label strong { color: var(--muted); }
.store-btn.coming svg { fill: var(--muted); }

/* ── Footer ── */
footer.site {
  border-top: 1px solid var(--border); padding: 32px 0;
  color: var(--muted); font-size: 14px;
}
footer.site .container {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  justify-content: space-between; align-items: center;
}
footer.site a { color: var(--muted); text-decoration: none; margin-right: 16px; }
footer.site a:hover { color: var(--ink); }

/* ── Legal pages ── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-page h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-page .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal-page h2 { font-size: 20px; margin-top: 36px; margin-bottom: 8px; }
.legal-page .note {
  background: #fff8e6; border: 1px solid #f0e2b8; border-radius: 12px;
  padding: 12px 16px; font-size: 14px; color: #7a6a2e;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  header.site nav { display: none; }
  .hero { padding: 56px 0 72px; }
  section { padding: 48px 0; }
  .download-buttons { flex-direction: column; align-items: center; }
}
