/* ==========================================================================
   Accessibility & Conformité — stylesheet
   Flat colors only. No gradients, no glows, no glassmorphism.
   Palette: paper #FAFAF7 · ink #10100E · accent #0B4F9E (6.9:1 on paper)
   ========================================================================== */

:root {
  --paper:   #FAFAF7;
  --paper-2: #F1F1EB;
  --ink:     #10100E;
  --ink-2:   #52524B;
  --line:    #E3E3DB;
  --line-2:  #CBCBC1;
  --accent:  #0B4F9E;
  --accent-2:#083E7C;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1060px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- utility ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
p { margin: 0 0 14px; max-width: 64ch; }
strong { font-weight: 650; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  text-decoration: none; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--accent);
  pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  justify-content: space-between; padding: 14px 0;
}
.brand {
  font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  text-decoration: none; font-size: 15px;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.langs { display: flex; gap: 6px; }
.langs a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px;
  color: var(--ink-2); text-decoration: none;
}
.langs a:hover { border-color: var(--ink); color: var(--ink); }
.langs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 28px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px;
}
h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.06; letter-spacing: -0.028em; font-weight: 720;
  margin: 0 0 18px; max-width: 18ch;
}
.lede { font-size: 1.07rem; color: var(--ink-2); max-width: 52ch; }
.hero .lede strong { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15.5px;
  text-decoration: none; border: 1.5px solid var(--accent);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: #EEF3FA; }
.micro { font-size: 13.5px; color: var(--ink-2); margin-top: 18px; }

/* ---------- hero visual ---------- */
.viz-wrap { display: grid; gap: 10px; justify-items: end; }
.viz {
  position: relative; aspect-ratio: 1 / 1; max-width: 420px; width: 100%;
  border: 1px solid var(--line); background-color: var(--paper);
  background-image: url('/lattice.svg');
  background-size: 96px 96px;
}
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viz-caption {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); margin: 0;
}

/* ---------- sections ---------- */
section { border-top: 1px solid var(--line); padding: 56px 0; }
.sec-head { margin-bottom: 30px; }
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; margin: 8px 0 0;
}
h3 { font-size: 1.02rem; letter-spacing: -0.01em; margin: 0 0 6px; font-weight: 650; }

/* ---------- facts (editorial rows, not cards) ---------- */
.facts { border-top: 1px solid var(--line-2); }
.fact {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.fact .idx { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding-top: 4px; }
.fact p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.fact h3 { margin-bottom: 4px; }
.note { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }

/* ---------- pricing table ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption {
  text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px;
}
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 1.5px solid var(--ink); font-size: 13px; letter-spacing: .04em; }
tbody th { font-weight: 650; }
td.price { font-family: var(--mono); font-size: 14.5px; white-space: nowrap; }
tbody tr:hover { background: var(--paper-2); }
td .small { display: block; color: var(--ink-2); font-size: 13px; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.steps li {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.steps .num { font-family: var(--mono); font-size: 12.5px; color: var(--accent); padding-top: 4px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.badge {
  display: inline-block; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 6px 12px;
}

/* ---------- proof ---------- */
.proof-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .proof-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.proof-item { border-top: 1px solid var(--line-2); padding-top: 16px; }
.proof-item p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 18px; color: var(--accent);
  transition: transform .25s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details .answer { padding: 0 36px 20px 0; color: var(--ink-2); font-size: 15.5px; }
details .answer p { margin: 0; max-width: 68ch; }

/* ---------- contact ---------- */
.mail {
  display: inline-block; font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.mail:hover { color: var(--accent); }
.mail:active { transform: translateY(1px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 36px 0 48px; }
.site-footer h2 { font-size: 0.95rem; margin-bottom: 12px; }
.site-footer p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- reveals (progressive enhancement) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px) rotate(-0.35deg);
  transition: opacity .65s var(--ease) var(--d, 0ms), transform .65s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 859px) {
  .viz-wrap { justify-self: start; }
  .viz { max-width: 340px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .fact, .steps li { grid-template-columns: 36px 1fr; gap: 2px 14px; }
  th, td { padding-right: 10px; }
  .site-nav ul { gap: 4px 12px; }
  .site-nav a { font-size: 13.5px; }
}

/* ==========================================================================
   Components (HeroUI / shadcn-style, implemented natively — no dependencies)
   ========================================================================== */

/* ---------- stat band ---------- */
.stats-band { padding: 26px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding-right: 24px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat-value {
  display: block; font-family: var(--mono); font-size: 1.4rem;
  letter-spacing: -0.03em; line-height: 1.2;
}
.stat-label {
  display: block; color: var(--ink-2); font-size: 12.5px;
  line-height: 1.45; margin-top: 5px; max-width: 26ch;
}
@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; row-gap: 0; }
  .stat { padding: 14px 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
}

/* ---------- insights: donut chart + timeline ---------- */
.insights { display: grid; gap: 36px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 820px) { .insights { grid-template-columns: 0.9fr 1.1fr; gap: 52px; } }

.chart { margin: 0; border-top: 1px solid var(--line-2); padding-top: 18px; }
.donut-wrap { position: relative; width: 168px; height: 168px; margin: 8px 0 16px; }
.donut { width: 168px; height: 168px; display: block; }
.donut .track { fill: none; stroke: var(--line-2); stroke-width: 10; }
.donut .arc { fill: none; stroke: var(--accent); stroke-width: 10; }
.donut-value {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--paper);
  font-family: var(--mono); font-size: 1.55rem; letter-spacing: -0.03em; color: var(--ink);
}
.chart figcaption { font-size: 14.5px; color: var(--ink-2); max-width: 42ch; }
.chart figcaption strong { color: var(--ink); font-family: var(--mono); }

.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 20px 26px;
  border-left: 1px solid var(--line-2);
}
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink-2);
}
.timeline li.is-key::before { background: var(--accent); border-color: var(--accent); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.t-date {
  display: block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
}
.timeline p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 46ch; }
.timeline h3 { font-size: 0.95rem; margin-bottom: 8px; }

/* ---------- delay bars ---------- */
.delays { margin: 32px 0 0; border-top: 1px solid var(--line-2); padding-top: 16px; }
.delays figcaption {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}
.meter-row {
  display: grid; grid-template-columns: 132px 1fr 96px; gap: 14px;
  align-items: center; padding: 7px 0;
}
.meter-label { font-size: 14px; }
.meter-track { height: 8px; background: var(--paper-2); border: 1px solid var(--line); display: block; }
.meter { display: block; height: 100%; background: var(--accent); }
.meter-1 { width: 24%; }
.meter-2 { width: 50%; }
.meter-3 { width: 100%; }
.meter-value { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-align: right; }
@media (max-width: 560px) { .meter-row { grid-template-columns: 96px 1fr 78px; gap: 8px; } }

/* ---------- tabs ---------- */
.tabs { margin: 6px 0 30px; }
.tablist { display: none; }
.js .tablist { display: flex; flex-wrap: wrap; gap: 2px 24px; border-bottom: 1px solid var(--line-2); }
.tab {
  appearance: none; background: none; border: 0; margin-bottom: -1px;
  border-bottom: 2px solid transparent; padding: 10px 2px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-2); cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding-top: 18px; }
.js .tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 7px; height: 7px; background: var(--accent);
}
.checklist li:last-child { border-bottom: 0; }

/* ---------- compact source disclosure (tip) ---------- */
.tip {
  margin-top: 10px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 12px; width: fit-content; max-width: 100%;
}
.tip summary {
  padding: 7px 24px 7px 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.tip summary::after { content: "+"; right: 0; font-size: 13px; color: var(--ink-2); }
.tip[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tip .tip-body { padding: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.tip .tip-body p { margin: 0; max-width: 60ch; }

/* ---------- rotating seal ---------- */
.seal-holder { flex: 0 0 auto; }
.seal {
  width: 118px; height: 118px; display: block;
  animation: seal-spin 42s linear infinite;
  background: var(--paper); border-radius: 50%;
}
.seal .seal-bg { fill: var(--paper); stroke: var(--line); }
.seal text {
  font-family: var(--mono); font-size: 8.6px; letter-spacing: .16em;
  fill: var(--ink-2);
}
@keyframes seal-spin { to { transform: rotate(360deg); } }
/* ---------- cursor feedback ---------- */
.viz { transition: transform .4s var(--ease), background-position .4s var(--ease); }
.fact { transition: background .25s var(--ease); }
.fact:hover { background: var(--paper-2); }
.stat-value { transition: color .25s var(--ease); }
.stat:hover .stat-value { color: var(--accent); }
.timeline li::before { transition: transform .25s var(--ease); }
.timeline li:hover::before { transform: scale(1.3); }
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: var(--accent); }
.tip summary:hover { color: var(--ink); }
.checklist li { transition: color .2s var(--ease); }
.checklist li:hover { color: var(--ink); }
.tab { transition: color .2s var(--ease), border-color .2s var(--ease); }
.proof-item { transition: border-color .25s var(--ease); }
.proof-item:hover { border-color: var(--ink-2); }
.proof-item.has-seal { display: flex; gap: 22px; align-items: flex-start; }
.proof-item.has-seal > div { min-width: 0; }
@media (max-width: 560px) { .proof-item.has-seal { flex-direction: column; } }
.mail { transition: color .2s var(--ease), transform .15s var(--ease); }
.mail:active { transform: translateY(1px); }
