@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');
/* Page d'accueil publique de MOEX Métré, au design de l'appli (moex.css) :
   gris et blanc, un seul bleu d'action, chiffres en chasse fixe.
   Mise en page : une colonne large, le DPGF comme seule « carte » de la page. */
:root {
  --ui: Switzer, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --bg: #ffffff; --bg-2: #f7f7f8; --surface: #ffffff; --hover: #f4f4f6;
  --line: #ebebef; --line-2: #dededf;
  --ink: #16161a; --ink-2: #62626c; --ink-3: #96969f; --ink-4: #b8b8bf;
  --acc: #1d4ed8; --acc-hover: #1740b4; --acc-soft: #eef2fd; --acc-ink: #ffffff;
  --ok: #2f7d5b; --warn: #9a6a10; --warn-bg: #fbf4e5;
  --pdf: #c0392f; --xlsx: #217346; --docx: #2b579a; --pptx: #dc6a0c; --zip: #6e46b4;
  --r: 6px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0e0e11; --bg-2: #141417; --surface: #161619; --hover: #1f1f24;
  --line: #26262b; --line-2: #33333a;
  --ink: #f2f2f4; --ink-2: #a2a2ac; --ink-3: #75757e; --ink-4: #5a5a63;
  --acc: #7d9bff; --acc-hover: #96afff; --acc-soft: #171d33; --acc-ink: #0d1122;
  --ok: #66b891; --warn: #d3a04a; --warn-bg: #241d10;
  --pdf: #c9483e; --xlsx: #2b8554; --docx: #3a6bb3; --pptx: #e37a1c; --zip: #8a64d0;
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e11; --bg-2: #141417; --surface: #161619; --hover: #1f1f24;
  --line: #26262b; --line-2: #33333a;
  --ink: #f2f2f4; --ink-2: #a2a2ac; --ink-3: #75757e; --ink-4: #5a5a63;
  --acc: #7d9bff; --acc-hover: #96afff; --acc-soft: #171d33; --acc-ink: #0d1122;
  --ok: #66b891; --warn: #d3a04a; --warn-bg: #241d10;
  --pdf: #c9483e; --xlsx: #2b8554; --docx: #3a6bb3; --pptx: #e37a1c; --zip: #8a64d0;
}

body { background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; }
.brand small { font-weight: 500; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit; transition: background .12s, border-color .12s; }
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: var(--acc-hover); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--hover); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--hover); }
.btn-lg { padding: 12px 20px; font-size: 14.5px; }

/* Accroche */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-block: 72px 64px; }
.eyebrow { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
.hero .lede { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero .note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* Le DPGF : la seule carte de la page */
.dpgf { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px -28px rgb(22 22 26 / .28); overflow: hidden; min-width: 0; }
.dpgf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.dpgf-head b { font-weight: 600; font-size: 13.5px; }
.dpgf-head span { color: var(--ink-3); }
.dpgf-scroll { overflow-x: auto; }
.dpgf table { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 520px; }
.dpgf th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 11px; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dpgf td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dpgf tr.lot td { background: var(--bg-2); font-weight: 600; font-size: 12px; }
.dpgf td.num, .dpgf th.num { text-align: right; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dpgf .detail { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 1px; }
.dpgf .edited { background: var(--acc-soft); color: var(--acc); border-radius: 3px; padding: 0 4px; }
.dpgf-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; font-size: 12px; color: var(--ink-3); }
.dpgf-foot b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; }

/* Sections */
section.band .wrap { padding-block: 72px; }
section.band + section.band .wrap { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; margin-bottom: 40px; align-items: end; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.sec-head p { color: var(--ink-2); max-width: 56ch; }

/* Parcours : une vraie suite d'étapes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.step { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.step:not(:nth-child(4n+1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step h3 { font-size: 15.5px; margin-top: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.step.mark .n { color: var(--acc); }

/* Livrables */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.doc b { font-weight: 500; }
.doc span.sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.fmts { display: inline-flex; gap: 4px; flex-shrink: 0; }
.fmt { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: #fff; border-radius: 3px; padding: 2px 6px; letter-spacing: .02em; }
.fmt.pdf { background: var(--pdf); } .fmt.xlsx { background: var(--xlsx); } .fmt.docx { background: var(--docx); } .fmt.pptx { background: var(--pptx); } .fmt.zip { background: var(--zip); }

/* Apprentissage */
.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.learn h3 { font-size: 16px; }
.learn p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.learn .k { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.wall { margin-top: 36px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--ink-2); }
.wall b { color: var(--ink); font-weight: 600; }
.wall svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--acc); margin-top: 1px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.plan { padding: 20px 20px 4px 0; display: flex; flex-direction: column; gap: 12px; }
.plan + .plan { padding-left: 20px; border-left: 1px solid var(--line); }
.plan h3 { font-size: 15px; }
.plan .price { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.plan .price small { font-family: var(--ui); font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.plan ul li::before { content: "·"; color: var(--ink-4); margin-right: 8px; }
.plan .btn { align-self: flex-start; margin-top: 4px; }
.small-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* Inscription */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.signup h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.signup .lede { color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.signup ol { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.signup ol li { counter-increment: s; display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); }
.signup ol li::before { content: counter(s); font-family: var(--mono); font-size: 12px; color: var(--acc); width: 18px; flex-shrink: 0; padding-top: 2px; }
form.sf { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field input { width: 100%; box-sizing: border-box; padding: 10px 12px; font-family: var(--ui); font-size: 14.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.field input.mono { font-family: var(--mono); letter-spacing: .04em; }
.field input:focus { outline: none; border-color: var(--ink); }
.legal { font-size: 12px; color: var(--ink-3); }

/* Questions */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* Pied */
footer { border-top: 1px solid var(--line); background: var(--bg-2); }
footer .wrap { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap, .sec-head, .signup { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .step:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .docs, .learn { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan + .plan { padding-left: 0; border-left: 0; }
  .plan:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .actions .btn { padding: 8px 11px; font-size: 13px; }
  .court-cache { display: none; }
  .steps, .plans { grid-template-columns: 1fr; }
  .step:nth-child(2n), .plan:nth-child(2n) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.flash { padding: 12px 14px; border-radius: var(--r); font-size: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.flash.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ink); }
.flash.err { border-color: color-mix(in srgb, var(--pdf) 40%, var(--line)); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
