:root {
  --blue: #254597;
  --navy: #2e3191;
  --yellow: #ffca05;
  --orange: #f9a51a;
  --text: #1f2440;
  --muted: #5b6283;
  --bg: #f4f5fb;
  --card: #ffffff;
  --border: #e3e6f2;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barre de navigation ---------- */
.topbar {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.topbar .logo img { height: 40px; width: auto; display: block; }
.topbar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  opacity: .9;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { opacity: 1; color: var(--yellow); }

/* ---------- Accueil : hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero .app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 20px 0 12px; }
.hero h1 span { color: var(--yellow); }
.hero p.lead { font-size: 1.15rem; opacity: .92; margin: 0 0 28px; max-width: 520px; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.pill.primary { background: var(--yellow); color: var(--navy); }
.pill.ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.pill:hover { filter: brightness(1.06); }
.hero .phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: #fff; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title h2 { color: var(--navy); font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
section.block.alt .feature { background: var(--bg); border-color: transparent; }
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #e8ecf8;
  color: var(--blue);
  margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.screens figure { margin: 0; text-align: center; }
.screens img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(37, 69, 151, .15);
  display: block;
  width: 100%;
  height: auto;
}
.screens figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); font-weight: 500; }

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.trust ul { list-style: none; padding: 0; margin: 0; }
.trust li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.trust li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3191' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.trust .box {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.trust .box h3 { margin: 0 0 10px; color: var(--yellow); }
.trust .box p { margin: 0 0 20px; opacity: .92; }

.support-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.support-card .mail { font-weight: 700; font-size: 1.1rem; word-break: break-all; }

/* ---------- Page politique ---------- */
.page-header {
  background: var(--blue);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.page-header .container { max-width: 880px; padding-top: 36px; padding-bottom: 44px; }
.page-header h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; }
.page-header p { margin: 0; opacity: .85; }
main.policy { max-width: 880px; margin: -18px auto 0; padding: 0 16px 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px clamp(20px, 4vw, 44px);
  box-shadow: 0 6px 24px rgba(37, 69, 151, .06);
}
.updated {
  display: inline-block;
  background: #fff6cc;
  color: #6b5300;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 8px;
}
nav.toc { background: var(--bg); border-radius: 12px; padding: 16px 22px; margin: 20px 0 8px; }
nav.toc strong { color: var(--navy); }
nav.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
nav.toc li { break-inside: avoid; font-size: .95rem; }
nav.toc a { text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }
.card h2 { color: var(--navy); font-size: 1.3rem; margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 84px; }
.card h2::before {
  content: "";
  display: inline-block;
  width: 6px; height: 1.05em;
  background: var(--yellow);
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: -3px;
}
.card h3 { color: var(--blue); font-size: 1.05rem; margin: 22px 0 6px; }
.card ul { padding-left: 22px; margin: 8px 0 14px; }
.card li { margin: 4px 0; }
.note {
  border-left: 4px solid var(--blue);
  background: #eef2fb;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 14px 0;
}
.contact { font-weight: 600; word-break: break-all; }

/* ---------- Pied de page ---------- */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: .9rem; }
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}
footer.site-footer a { color: #fff; text-decoration: none; margin-left: 18px; }
footer.site-footer a:hover { color: var(--yellow); }
footer.site-footer .brand { display: flex; align-items: center; gap: 10px; }
footer.site-footer .brand img { width: 32px; height: 32px; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .badge-row { justify-content: center; }
  .hero .phone { width: min(260px, 80%); }
  .features { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar .container { flex-direction: column; justify-content: center; padding-top: 10px; padding-bottom: 10px; min-height: 0; gap: 6px; }
  .topbar nav { gap: 16px; justify-content: center; }
  .topbar .logo img { height: 34px; }
  .topbar { position: static; }
  .features { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
  nav.toc ol { columns: 1; }
  footer.site-footer .container { justify-content: center; text-align: center; }
  footer.site-footer a { margin: 0 9px; }
}
@media print {
  .topbar, footer.site-footer, nav.toc { display: none; }
  .page-header { background: none; color: var(--text); border-bottom: 2px solid var(--blue); }
  .card { box-shadow: none; border: none; padding: 0; }
}
