/* Vitrine MonMatos : mêmes jetons que la PWA (direction A « Registre »), polices hébergées ici. */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-latin-opsz-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --surface-2: #ece7db;
  --line: #ddd5c5;
  --line-strong: #a89e8a;
  --ink: #1b1f26;
  --ink-2: #4a505a;
  --primary: #1e3a5f;
  --primary-hover: #16304f;
  --on-primary: #ffffff;
  --primary-soft: #e3e9f1;
  --accent: #1d6a39;
  --ok-fg: #155a2f;
  --ok-bg: #e4efe5;
  --warn-fg: #6b3f00;
  --warn-bg: #f5e8d0;
  --band: #ece7db;
  --focus: #1e3a5f;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --radius: 12px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #211f1c;
    --surface-2: #2c2a26;
    --line: #3a3732;
    --line-strong: #6d675c;
    --ink: #efeadf;
    --ink-2: #bfb8aa;
    --primary: #afc7ea;
    --primary-hover: #c7d8f1;
    --on-primary: #111a2e;
    --primary-soft: #24324a;
    --accent: #8fd1a4;
    --ok-fg: #9fd9b0;
    --ok-bg: #1d3325;
    --warn-fg: #edbb6e;
    --warn-bg: #33291a;
    --band: #1d1c19;
    --focus: #afc7ea;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
}
img, svg { max-width: 100%; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; font-weight: 650; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 650; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 650; }
p { margin: 0; }

/* Ancres : l’en-tête collant ne recouvre pas le titre de la section. */
section[id] { scroll-margin-top: 88px; }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* En-tête */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; line-height: 0; }
.logo-page { fill: var(--surface); stroke: var(--primary); }
.logo-ink { stroke: var(--primary); }
.logo-accent { stroke: var(--accent); }
.logo-word { fill: var(--primary); font-family: var(--font-display); font-size: 36px; }
.bar nav { margin-left: auto; }
.bar nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.bar nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  font: 700 17px/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--primary); }
.btn-light:hover { background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.note, .fine { font-size: 15px; color: var(--ink-2); }
.fine { max-width: 80ch; }

/* Hero */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hero-text { display: grid; gap: 22px; }

.card-demo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: 0 24px 48px -28px rgb(30 58 95 / 0.35);
}
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-id { font: 700 17px/1 var(--font-mono); letter-spacing: 0.02em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.pill svg { width: 18px; height: 18px; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); border: 1.5px solid currentColor; }
.demo-title { font: 650 30px/1.15 var(--font-display); }
.demo-sub { color: var(--ink-2); font-size: 16px; }
.demo-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 6px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.demo-facts div { background: var(--surface); padding: 10px 12px; }
.demo-facts dt { font-size: 13px; color: var(--ink-2); }
.demo-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.demo-alert { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 10px 12px; font-size: 15.5px; }
.demo-alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.card-demo figcaption { font-size: 14px; color: var(--ink-2); }

/* Sections */
.section, .band-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px var(--gutter);
  display: grid;
  gap: 32px;
}
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 70ch; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 18.5px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 17px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); }
td:first-child { width: 45%; font-weight: 600; }

.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features article { background: var(--surface); padding: 24px; display: grid; gap: 8px; align-content: start; }
.features p { color: var(--ink-2); font-size: 17px; }

.split { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.split > div { display: grid; gap: 14px; align-content: start; }
.split p:not(.kicker) { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* Tarifs */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.plan-main { border: 2px solid var(--primary); }
.plan-tag { justify-self: start; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary); padding: 4px 10px; border-radius: 999px; }
.plan-for { color: var(--ink-2); font-size: 16px; }
.price { font: 650 24px/1.2 var(--font-display); color: var(--accent); margin-top: 8px; }
.price-note { color: var(--ink-2); font-size: 16px; }
.plan ul { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 16.5px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 80ch; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; padding: 12px 18px; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; margin-left: auto; padding-left: 16px; font: 400 26px/1 var(--font-body); color: var(--ink-2); }
details[open] summary::after { content: '−'; }
details p { padding: 0 18px 18px; color: var(--ink-2); }

/* Appel final */
.cta {
  background: var(--primary);
  color: var(--on-primary);
  padding: 64px var(--gutter);
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}
.cta h2 { color: var(--on-primary); }
.cta p { max-width: 56ch; opacity: 0.9; }
.cta .actions { justify-content: center; }
.contact { font-weight: 700; user-select: all; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: 1160px; margin: 0 auto; padding: 32px var(--gutter) 48px; display: grid; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.foot nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
