/* Cagou Connect — one-pager. Couleurs reprises du logo. */
:root {
  --navy: #0b2f6b;
  --navy-deep: #071f49;
  --blue: #0e96d4;
  --teal: #12b3a6;
  --green: #5bb946;
  --ink: #13233f;
  --muted: #4d5d78;
  --line: #dfe7f1;
  --bg: #ffffff;
  --tint: #f2f8fb;
  --radius: 18px;
  --grad: linear-gradient(100deg, var(--navy) 0%, var(--blue) 45%, var(--teal) 72%, var(--green) 100%);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--blue); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); font-size: 20px; font-weight: 700; }
.brand b { color: var(--navy); }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--navy); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }

/* Accroche */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--teal); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px;
}
h1 { font-size: clamp(36px, 4.9vw, 58px); color: var(--navy); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof {
  display: flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: 15px; color: var(--muted); font-weight: 600;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 5px rgba(91,185,70,.18); }
.hero-visual { position: relative; }


/* Bandeau constat */
.band { background: var(--navy); color: #fff; padding: 64px 0; position: relative; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.h2-light { color: #fff; font-size: clamp(26px, 3.4vw, 38px); max-width: 22em; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pain { border-top: 2px solid rgba(255,255,255,.25); padding-top: 16px; color: #c9d7ec; }
.pain-k { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 6px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 40em; }

/* Cartes fonctions */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card h3 { font-size: 18px; color: var(--navy); margin: 14px 0 6px; }
.card p { font-size: 15px; color: var(--muted); }
.ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,150,212,.12), rgba(91,185,70,.14));
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-feature {
  background: var(--navy); border-color: var(--navy);
  position: relative; overflow: hidden;
}
.card-feature::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.card-feature h3 { color: #fff; }
.card-feature p { color: #c9d7ec; }
.card-feature .ico { background: rgba(255,255,255,.1); }
.card-feature .ico svg { stroke: #fff; }

/* Feuille de route */
.road { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.road-step {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 26px 22px 24px; border: 1px solid var(--line);
}
.road-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--navy); border: 2px solid var(--navy);
  font-weight: 800; font-size: 15px;
}
.road-step.is-next { border-color: var(--teal); box-shadow: 0 10px 30px -18px rgba(18,179,166,.6); }
.road-step.is-next::before { background: var(--teal); border-color: var(--teal); color: #fff; }
.road-when { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--teal); margin: 6px 0 8px; }
.road-step h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.road-step p:last-child { font-size: 15px; color: var(--muted); }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.principle { padding-left: 20px; border-left: 4px solid; border-image: var(--grad) 1; }
.principle h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 16px; }

/* Rejoindre */
.join { background: var(--navy-deep); position: relative; overflow: hidden; }
.join::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(18,179,166,.35), transparent 70%);
}
.join .wrap { position: relative; }
.join h2 { color: #fff; max-width: 20em; }
.lead-light { color: #c9d7ec; }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; margin-top: 44px; }
.qr-card {
  background: #fff; border-radius: 22px; padding: 26px 26px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.qr-card img { width: 220px; height: 220px; }
.qr-card h3 { color: var(--navy); font-size: 21px; margin-top: 14px; }
.qr-card p { color: var(--muted); font-size: 15px; margin: 6px 0 16px; }
.qr-card .mail { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer b { color: var(--navy); }

/* Écrans moyens */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
}

/* Téléphones */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .pain-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; justify-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
