/* Opcodia — design system v0
   Sobre, éditorial, rapide. Une seule feuille pour tout le site.
   Palette : encre froide + cobalt précis. Pas de dégradés, pas de bruit. */

:root {
  --paper: #fafaf8;
  --panel: #ffffff;
  --ink: #15171a;
  --muted: #565c64;
  --hair: #e4e4df;
  --hair-strong: #cfcfc8;
  --accent: #2743e0;
  --accent-deep: #1d33b8;
  --soft: #eef0fc;
  --ok: #0e7a4f;
  --ok-soft: #e6f2ec;
  --radius: 10px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: var(--display);
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand .dot { color: var(--accent); }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 12px 6px; margin: -12px -6px; }
nav.main a:hover { color: var(--ink); }
nav.main a.cta {
  color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 8px;
  font-weight: 600;
}
nav.main a.cta:hover { background: var(--accent-deep); color: #fff; }
@media (max-width: 560px) { nav.main a:not(.cta) { display: none; } }

/* ---------- typographie ---------- */
h1 {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 18px; font-weight: 800; text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 14px; font-weight: 700; text-wrap: balance;
}
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
a { color: var(--accent-deep); }

/* ---------- sections ---------- */
section { padding: clamp(40px, 7vw, 72px) 0; }
section.tight { padding: clamp(28px, 5vw, 48px) 0; }
section + section { border-top: 1px solid var(--hair); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 12px;
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 96px); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.free-note { margin-top: 16px; font-size: 14.5px; color: var(--ok); font-weight: 600; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 9px; font-size: 16px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { color: var(--ink); border: 1.5px solid var(--hair-strong); background: var(--panel); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------- proof grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease;
}
a.card:hover { border-color: var(--accent); }
.card img {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--hair); aspect-ratio: 880 / 560; object-fit: cover;
}
.card .card-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.card .metier {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.card .name {
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.card .desc { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .link {
  margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent-deep);
}
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ok);
  background: var(--ok-soft); border-radius: 20px; padding: 2px 10px;
  width: fit-content;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 40px; }
@media (max-width: 680px) { .services { grid-template-columns: 1fr; } }
.service { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.service p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- pricing ---------- */
.prices { display: grid; gap: 0; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.price {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px;
  padding: 20px 22px; border-bottom: 1px solid var(--hair); align-items: baseline;
}
.price:last-child { border-bottom: none; }
.price .what { font-weight: 700; }
.price .detail { grid-column: 1; color: var(--muted); font-size: 14.5px; }
.price .amount {
  grid-column: 2; grid-row: 1 / span 2;
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.01em; white-space: nowrap; align-self: center;
  font-variant-numeric: tabular-nums;
}
.price .amount small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- checklist (pages métier) ---------- */
ul.check { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
ul.check li { padding-left: 30px; position: relative; }
ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}

/* ---------- bande CTA ---------- */
.band {
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: clamp(28px, 5vw, 44px); text-align: left;
}
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: #b9bec6; max-width: 56ch; }
.band .btn.primary { background: var(--accent); margin-top: 10px; }
.band .band-btn { border-color: #3a3f47; color: #fff; margin-right: 10px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--hair); padding: 28px 0 40px;
  font-size: 14px; color: var(--muted);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

/* ---------- divers ---------- */
.legal { max-width: 68ch; }
.legal h2 { font-size: 20px; margin-top: 32px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 20px; }
