:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #4a5568;
  --line: #e3e7ee;
  --line-strong: #cbd5e1;
  --brand: #1d4e89;
  --brand-dark: #153a66;
  --brand-soft: #eaf1fa;
  --accent: #2a9d8f;
  --accent-soft: #e6f4f2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06);
  --shadow-hover: 0 10px 24px rgba(20, 33, 61, .10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724;
    --surface: #162133;
    --text: #e8edf5;
    --muted: #a9b4c4;
    --line: #26344a;
    --line-strong: #3a4a63;
    --brand: #6ea8e8;
    --brand-dark: #8dbbf0;
    --brand-soft: #1a2a42;
    --accent: #4cc3b3;
    --accent-soft: #15302f;
    --shadow: none;
    --shadow-hover: 0 10px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav ul a:hover { color: var(--brand); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }

/* Boutons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Bandeau */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.5fr 1fr; } }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 16px 0 14px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }

/* Illustration de tableau de bord (bandeau) */
.dash {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-hover); padding: 18px;
}
.dash-top { display: flex; gap: 6px; margin-bottom: 14px; align-items: center; }
.dash-top em { margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--text); }
.dash-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dash-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.dash-kpi { background: var(--brand-soft); border-radius: 10px; padding: 10px; }
.dash-kpi b { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-kpi span { display: block; height: 14px; width: 80%; background: var(--brand); border-radius: 4px; opacity: .85; }
.dash-kpi:nth-child(2) span { background: var(--accent); width: 65%; }
.dash-kpi:nth-child(3) span { width: 50%; }
.dash svg { width: 100%; height: auto; display: block; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

/* Activités : 3 x 2 */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.grid .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Produit Dzoso */
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1.1fr; } }
.product ul { margin: 12px 0 20px; padding-left: 20px; color: var(--muted); }

/* Maquette de l'application Dzoso */
.browser { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #f6f8f7; box-shadow: var(--shadow-hover); font-size: 13px; color: #1f2937; }
.browser-bar { background: #e9edf1; padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c3cad3; display: block; }
.browser-bar span { margin-left: 10px; background: #fff; border-radius: 6px; padding: 2px 10px; font-size: 11px; color: #6b7280; }
.app { padding: 14px; }
.app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.app-head b { font-size: 14px; color: #14532d; }
.app-pill { background: #16a34a; color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 700; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.app-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px; }
.app-kpi small { display: block; color: #6b7280; font-size: 10px; }
.app-kpi strong { font-size: 14px; }
.app-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 10px; margin-top: 6px; }
.app-row small { color: #6b7280; font-size: 11px; }
.st { font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.st-ok { background: #dcfce7; color: #166534; }
.st-part { background: #fef3c7; color: #92400e; }
.st-late { background: #fee2e2; color: #991b1b; }
.caption { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Contact */
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info .card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-info .card h3 { margin-bottom: 4px; }
.contact-info a { font-weight: 700; text-decoration: none; }
form.card { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--surface); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); text-decoration: underline; }

/* Mentions légales */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: 32px; margin: 0 0 24px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin: 0; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 220px 1fr; } }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 8px; color: var(--muted); }
.legal p { color: var(--muted); }

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

.figure { margin: 0; }
.lg-collecte { background: #2a9d8f; opacity: .5; }
.lg-objectif { background: #1d4e89; }
