/* ============================================================
   Themiros — Landing page styles.
   Every colour comes from tokens.css; nothing hardcoded here.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--t-body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

/* Consigne 1.4 — only 600 and 400 exist: the browser default of 700 on
   bold elements and headings is brought back to the charter weight. */
h1, h2, h3, h4, h5, h6,
b, strong, th, dt, legend, optgroup { font-weight: 600; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection {
  background: rgb(255 255 255 / 0.22);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4.5vw, 72px);
}

/* ============================================================
   Consigne 1.4 — presentation charter.

   Plain black, white ink, grey at 52%, rules at 13%. No gloss, no
   grid pattern, no icons, no illustrations, no scrolling animation.
   The green #55A930 is reserved for the point of the mark and is
   applied by `.brand-dot` alone.

   These rules are unconditional: nothing here depends on a theme
   attribute, so the charter holds with JavaScript disabled.
   ============================================================ */

/* No gloss and no grid pattern: the ambient layers are gone from the
   markup; this is a guard in case a page still carries them. */
.aura,
.grid-veil { display: none !important; }

/* No gradient wash, no relief, no filter, no motion anywhere. */
*,
*::before,
*::after {
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

/* Surfaces read by their rule alone, never by a lighter fill. */
.card,
.step,
.rule,
.layer,
.band,
.hero-tag,
.step-n,
.cta-mark {
  background: #000000;
  border-color: var(--line);
}

/* Hover states carry no lift and no colour. */
.card:hover,
.step:hover,
.layer:hover,
.btn:hover,
.btn:active {
  transform: none;
  border-color: var(--line);
}

/* Primary action: white ink on black, no gradient. */
.btn-primary {
  background: var(--ink);
  color: #000000;
  border: 1px solid var(--ink);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost,
.btn-login {
  background: none;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-ghost:hover,
.btn-login:hover { color: var(--ink); }

/* Headline emphasis is plain white ink, not a brand gradient. */
.hero h1 em {
  font-style: normal;
  background: none;
  -webkit-text-fill-color: #FFFFFF;
  color: #FFFFFF;
}

/* Eyebrow and layer keys: flat 13% rules, no gradient. */
.eyebrow::before,
.layer-key::before,
.section + .section:not(.band)::before {
  background: var(--line) !important;
}

/* The one green on the site: the point of the mark. */
.brand-dot { fill: #55A930; }

/* ============================================================
   Shared elements
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: var(--t-micro);
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line);
}

.section-title {
  margin-top: 18px;
  max-width: 26ch;
  font: 600 clamp(26px, 2.9vw, 36px) / 1.1 var(--font-sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 14px;
  max-width: 66ch;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Buttons ---------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 600 14px/1 var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--ink);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

/* Arrow nudges forward on hover. */

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: color-mix(in oklch, var(--surface) 58%, transparent);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 50%, var(--line-strong));
  color: var(--ink);
}

/* Card shell — the recurring surface treatment. */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

/* A hairline of brand light along the top edge of each card. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: inherit;
  background: var(--line);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
}

/* .is-stuck is toggled by theme.js once the page scrolls. */
.nav.is-stuck {
  border-bottom-color: var(--line-faint);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 15px/1 var(--font-sans);
  letter-spacing: -0.022em;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: var(--r-pill);
}

.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--surface) 70%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav .btn { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */

/* Bottom padding is intentionally small: the next section supplies its own
   top padding, and stacking both leaves a dead band under the preview. */
/* Two columns: the pitch on the left, the app screen on the right. The right
   column is allowed to bleed past the wrap so the window looks like it
   continues off-canvas. */
.hero {
  position: relative;
  padding: clamp(64px, 7vw, 104px) 0 clamp(48px, 5vw, 72px);
  overflow: hidden;
}

/* Single column since the engine mock left the hero: the copy sits on its
   own, so it centers rather than sharing the row. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(28px, 3.4vw, 44px);
}

.hero-copy {
  max-width: 62ch;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 9px;
  border: 1px solid var(--green-line);
  border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--green-soft) 70%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font: var(--t-xs);
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* Consigne 1.4 — a plain white dot: no colour, no halo, no motion. */
.hero-tag .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.hero h1 {
  margin-top: 22px;
  font: 600 clamp(34px, 4.3vw, 56px) / 1.02 var(--font-sans);
  letter-spacing: -0.042em;
  text-wrap: balance;
}

/* Consigne 1.4 — emphasis is plain white ink, no brand gradient. */
.hero h1 em {
  font-style: normal;
  color: var(--ink);
}

/* Consigne 1.4 reserves the green for the brand dot, so the emphasised words
   are simply white ink here — the weight already carries them. */
.hero-lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}


.tone-a { --tone: var(--layer-a);    --tone-soft: var(--blue-soft);   --tone-line: var(--blue-line); }
.tone-b { --tone: var(--layer-b);    --tone-soft: var(--indigo-soft); --tone-line: var(--indigo-line); }
.tone-c { --tone: var(--amber-deep); --tone-soft: var(--amber-soft);  --tone-line: var(--amber-line); }


/* ============================================================
   Sections
   ============================================================ */

.section { position: relative; padding: var(--section-y) 0; }

/* Hairline between light sections, faded at both ends. The dark band and the
   section that follows it supply their own edges, so they opt out. */
.section + .section:not(.band)::before {
  content: "";
  position: absolute;
  inset: 0 28px auto;
  height: 1px;
  background: var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- Steps ---------- */

.steps {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* The homepage process is three stages, not four. */
.steps-3 { grid-template-columns: repeat(3, 1fr); }

.step {
  position: relative;
  padding: 26px 24px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 72%, transparent);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* The accent rule capping each step; it fills in on hover. */
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--line-strong);
  transform: scaleX(0.24);
  transform-origin: left;
}

.step:hover {
  transform: translateY(-5px);
  background: var(--surface);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
}

.step:hover::before {
  background: var(--line);
  transform: scaleX(1);
}

.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--accent);
}

.step h3 {
  margin-top: 16px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Layers ---------- */

.layers {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.layer {
  padding: 30px 28px 32px;
  overflow: hidden;
}

.layer:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklch, var(--tone) 40%, var(--line));
}

.layer:hover::after { transform: scale(1.22); }

.layer-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: var(--track);
  color: var(--tone);
  text-transform: uppercase;
}

.layer-key::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tone);
}

/* The three layers are told apart by their label, not by a colour wash. */
.layer h3 {
  margin-top: 16px;
  font: var(--t-h2);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.layer p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Personas ---------- */

.personas {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.persona {
  padding: 30px 28px 32px;
  overflow: hidden;
}

.persona:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklch, var(--accent) 34%, var(--line));
}

.persona h3 {
  margin-top: 18px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.022em;
}

.persona p {
  margin-top: 9px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Team ---------- */

.team {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Cards keep the width they had in the four-column grid, so a team that does
   not fill a row stays centred instead of hanging off the left edge. */
.team > .member {
  flex: 0 1 calc((100% - 3 * 20px) / 4);
  min-width: 220px;
}

.member {
  padding: 30px 24px 32px;
  text-align: center;
  overflow: hidden;
}

.member:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklch, var(--accent) 34%, var(--line));
}

.member h3 {
  margin-top: 18px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.022em;
}

.member-role {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ============================================================
   Rules — the dark band
   ============================================================ */

.band {
  position: relative;
  margin: 0;
  color: var(--slate-100);
  background: var(--bg-deep);
  overflow: hidden;
  isolation: isolate;
}

.band .eyebrow { color: var(--slate-400); }
.band .eyebrow::before { background: var(--line); }
.band .section-title { color: var(--slate-0); }
.band .section-lead { color: var(--slate-300); }

.rules {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}

.rule {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--slate-800);
  font-size: 14px;
  color: var(--slate-400);
}

.rule:hover { border-top-color: var(--line); }

/* Still used by the Method page's rules, which have yet to be reworked. */
.rule .check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
}

/* The rules are numbered rather than ticked — consigne 1.4 rules out icons. */
.rule-n {
  flex: none;
  margin-top: 1px;
  font: 600 12px/1.5 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.rule b {
  display: block;
  margin-bottom: 2px;
  color: var(--slate-0);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 0;
  text-align: center;
  overflow: hidden;
}

.cta-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.cta h2 {
  margin-inline: auto;
  max-width: 22ch;
  font: 600 clamp(28px, 3.6vw, 42px) / 1.06 var(--font-sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cta p {
  margin: 16px auto 0;
  max-width: 58ch;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 76%, transparent);
  backdrop-filter: blur(10px);
}

/* Two stacked rows: identity + nav + tagline on top, legal bar underneath.
   The top row is one wrapping flex line — brand and nav sit together on the
   left and the tagline is pushed to the far right, dropping to its own line
   only when the width runs out. */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font: var(--t-sm);
  font-size: 13px;
  color: var(--ink-3);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.footer-tagline {
  margin-left: auto;
  max-width: 56ch;
  text-wrap: pretty;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--ink); }

/* Bottom bar — company line left, legal and language links right. */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* evoranQ is the company; Themiros is the product it publishes. */
.footer-company b {
  color: var(--ink-2);
  font-weight: 600;
}

/* Statutory company identification, required on every page. It sits below the
   bottom bar as one full-width line, quieter than the links above it. */
.footer-company-details {
  flex-basis: 100%;
  margin: 0;
  padding-top: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.footer-company-details a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-company-details a:hover { color: var(--ink); }

/* Legal and language share one link treatment so the language choice reads
   as an ordinary footer link, not a control. */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--ink-3);
}

.footer-legal a:hover { color: var(--ink); }

/* The active language is the one you are reading — mark it, don't hide it. */
.footer-legal a.on {
  color: var(--ink);
  font-weight: 600;
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The language pair sits tighter than the legal links it follows. */
/* Log in — secondary to the demo CTA it sits beside: outlined, never filled.
   Consigne 1.4 — no coloured accent: a 13% rule and white ink, the green
   being reserved for the point of the mark. */
.btn-login {
  background: none;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-login:hover {
  border-color: var(--line);
  color: var(--ink);
  background: none;
}

/* Language links in the nav — compact codes, sat to the right of the CTA. */
.nav-lang {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-lang a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 2px 3px;
  border-radius: var(--r-xs);
}

.nav-lang a:hover { color: var(--ink); }

/* The active language reads as current, not as a button. */
.nav-lang a.on {
  color: var(--ink);
  font-weight: 600;
}

.nav-lang .sep {
  color: var(--line-strong);
  user-select: none;
}

.footer-lang {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.footer-lang .sep {
  color: var(--line-strong);
  user-select: none;
}

@media (max-width: 720px) {
  /* Everything stacks left. The tagline drops its auto margin, otherwise it
     stays pinned right once the top row wraps. */
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-tagline { margin-left: 0; }
  .footer-links { justify-content: flex-start; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   Consigne 1.4 — no animation. The .reveal hooks are kept in the
   markup but carry no motion: content is simply visible, with or
   without JavaScript.
   ============================================================ */

.reveal,
.reveal-group > * {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */

/* The nav links need more room than a phone breakpoint gives them; hide them
   before they wrap onto a second line. */
@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 1000px) {
  .hero-copy { max-width: none; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: 1fr; }
  .layers,
  .personas { grid-template-columns: repeat(2, 1fr); }

  .team > .member { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 720px) {
  :root { --section-y: 66px; }

  .wrap { padding-inline: 16px; }

  /* Long words (URLs, "Themiros") must not push the layout wider than the
     viewport on narrow screens. */
  h1, h2, h3, p { overflow-wrap: break-word; }

  .steps,
  .layers,
  .personas,
  .rules { grid-template-columns: 1fr; }

  .team { gap: 14px; }
  .team > .member { flex-basis: calc((100% - 14px) / 2); min-width: 0; }
  .member { padding: 24px 14px 26px; }

  .nav-links { display: none; }

  /* Brand + Log in + CTA + EN/FR share one row here; buy back a few pixels
     rather than drop the language switch on phones. */
  .nav-actions { gap: 6px; }
  .nav-lang { margin-left: 0; gap: 4px; font-size: 12px; }
  .nav .btn { padding: 9px 11px; }
  .nav .btn-login { padding-inline: 6px; }

  .grid-veil { background-size: 44px 44px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   Sub-page header — the compact hero used by methode / pricing
   / about, in place of the home page's two-column hero.
   ============================================================ */

.page-head {
  position: relative;
  padding: clamp(48px, 6vw, 76px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
}

.page-head .eyebrow { justify-content: center; }

.page-head h1 {
  margin: 16px auto 0;
  max-width: 24ch;
  font: 600 clamp(30px, 4vw, 46px) / 1.06 var(--font-sans);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-head p {
  margin: 16px auto 0;
  max-width: 64ch;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================
   404 — page not found
   ============================================================ */

/* Roomier than an ordinary page head: this section carries the page alone. */
.page-head.err { padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }

/* The requested path, echoed back so the visitor can spot a typo. */
.err-path {
  margin-top: 22px;
}

.err-path code {
  display: inline-block;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.err-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The head above already carries the page; this block only needs to follow it,
   not open a full-height section of its own. */
.err-more { padding-top: 0; }

/* Destination cards — the page works as a junction, not a dead end. */
.err-links {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.err-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--surface) 60%, transparent);
}

.err-links a:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--accent) 45%, var(--line-strong));
  background: var(--surface);
}

.err-links b {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.err-links span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Active link in the top nav. */
.nav-links a.on {
  color: var(--ink);
  background: color-mix(in oklch, var(--surface) 80%, transparent);
}

/* ============================================================
   Méthode — alternating feature rows
   ============================================================ */

/* Consigne 1.4 — the mock screens are gone (no invented data), so a step
   is a single column of text across the measure. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 70ch;
}

.split + .split { margin-top: clamp(48px, 6vw, 76px); }

/* Every other row swaps sides, so the page zig-zags. */

.split h3 {
  margin-top: 14px;
  font: 600 clamp(20px, 2.2vw, 26px) / 1.14 var(--font-sans);
  letter-spacing: -0.03em;
}

.split p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.split ul {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.split li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* The panel standing in for a screenshot. */
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-faint);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 12.5px;
}

/* ============================================================
   Pricing
   ============================================================ */

/* Five offers on a three-up grid: the two that do not fill the last row are
   centred rather than left ragged. Flex, not grid, for exactly that reason —
   `justify-content: center` has no equivalent on a fixed grid track list. */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  align-items: stretch;
}

.plans > .plan {
  /* Three per row at full width, accounting for the two gaps. */
  flex: 1 1 calc((100% - 2 * 18px) / 3);
  min-width: 0;
  max-width: calc((100% - 2 * 18px) / 3);
}

.plan {
  position: relative;
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
}

/* The middle plan is the recommended one; it sits slightly proud. */
.plan.featured {
  border-color: color-mix(in oklch, var(--accent) 42%, var(--line));
}

.plan-flag {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan h3 {
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.plan .who {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  min-height: 2.6em;
}

.plan .price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan .price {
  flex-wrap: wrap;
}

.plan .price b {
  font: 600 26px/1.1 var(--font-sans);
  letter-spacing: -0.04em;
}

/* Bracket under the headline figure — "sur devis" needs its range, and
   "à partir de" needs its qualifier, without competing with the number. */
.plan .price-note {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* "À partir de" sits above the figure, small, so the number stays the anchor. */
.plan .price-from {
  display: block;
  margin-bottom: 2px;
  font: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan .price span {
  font-size: 13px;
  color: var(--ink-3);
}

.plan .btn { margin-top: 20px; justify-content: center; }

.plan ul {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  display: grid;
  gap: 10px;
}

.plan li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.plan li.off { color: var(--ink-faint); }

/* Placeholder warning band — remove once real figures land. */
.notice {
  margin-top: 28px;
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-lg);
  background: var(--amber-soft);
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Small print under the offers — indexation, tax, "from" caveat. */
.price-legal {
  margin: 26px auto 0;
  max-width: 78ch;
  text-align: center;
  font: var(--t-sm);
  color: var(--ink-faint);
  text-wrap: pretty;
}

/* Campaign and Pilot: neither is a subscription, so they sit under the grid
   as plain ruled rows rather than competing as a fourth and fifth card. */
.offer-rows {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.offer-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 20ch) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: baseline;
}

.offer-row h3 {
  font: var(--t-h2);
  font-size: 15px;
  letter-spacing: -0.018em;
}

.offer-row p {
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .offer-row { grid-template-columns: 1fr; }
}

/* What every offer includes — a checklist, not another set of cards. */
.included {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 40px;
}

.included li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Tick drawn in CSS: one shape, repeated seven times, is not worth seven
   inline SVGs. */
.included li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.36em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

@media (max-width: 700px) {
  .included { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ — used on pricing
   ============================================================ */

.faq {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font: var(--t-h2);
  font-size: 15px;
  letter-spacing: -0.018em;
}

.faq-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================
   About
   ============================================================ */

.prose {
  max-width: 75ch;
  margin-inline: auto;
}

.prose h3 {
  margin-top: 34px;
  font: 600 19px/1.2 var(--font-sans);
  letter-spacing: -0.026em;
}

.prose h3:first-child { margin-top: 0; }

.prose p {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Pull-quote setting out the product's core stance. */
.stance {
  margin: 40px auto 0;
  max-width: 72ch;
  padding: 26px 28px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: color-mix(in oklch, var(--surface) 76%, transparent);
  font: 600 clamp(17px, 1.9vw, 21px) / 1.4 var(--font-sans);
  letter-spacing: -0.024em;
  text-wrap: pretty;
}

/* Numbered principles. */
.principles {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle {
  padding: 24px 22px 26px;
}

.principle .n {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: var(--track);
  color: var(--accent);
}

.principle h3 {
  margin-top: 12px;
  font: var(--t-h2);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Placeholder block for team details we do not have yet. */
.todo-block {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.todo-block b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-weight: 600;
}

/* Two offers per row before they get too narrow to read. */
@media (max-width: 1040px) {
  .plans > .plan {
    flex-basis: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 860px) {
  .split,
  .faq,
  .principles { grid-template-columns: 1fr; }

  .plans > .plan {
    flex-basis: 100%;
    max-width: 100%;
  }

  .split + .split { margin-top: 44px; }
  .plan.featured { order: -1; }
}

/* ============================================================
   Demo request — the form page
   ============================================================ */

/* The reassurance column now stands as its own blocks below, so the form
   holds the measure on its own. */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: 70ch;
}

/* ---------- Form shell ---------- */

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

/* Bot trap. Positioned off-screen rather than `display: none`, because some
   scripted fillers skip fields that are not rendered at all. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rows of fields. `.form-row.two` splits in half, everything else is full
   width; each field is a grid cell so labels stay aligned across the row. */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > label {
  font: var(--t-xs);
  font-size: 12.5px;
  color: var(--ink-2);
}

/* The asterisk is decorative: `required` on the control is what actually
   carries the requirement to assistive tech and to validation. */
.field .req {
  margin-left: 3px;
  color: var(--accent);
}

.field .hint {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Controls ---------- */

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: var(--t-body);
  font-size: 14px;
  appearance: none;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:hover,
.field textarea:hover { border-color: var(--slate-400); }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

/* Checkbox, then the sentence, then a message row spanning both columns —
   a grid rather than a wrapping flex row, so the message lands under the
   text instead of beside it. */
.consent {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.consent a:hover { color: var(--ink); }

/* ---------- Submit row and status ---------- */

.form-foot {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.form-foot .btn-primary { padding-inline: 22px; }

.form-foot .foot-note {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Result of a submit. Hidden until the script has something to say, so an
   empty region never takes up space or gets announced. */
.form-status {
  margin-top: 18px;
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
}

.form-status.is-shown { display: flex; }

.form-status.is-ok {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.form-status.is-error {
  border-color: var(--red-line);
  background: var(--red-soft);
}

/* Field-level validation, driven by the script rather than :invalid, so
   nothing turns red before the visitor has tried to submit. */
.field.has-error input,
.field.has-error textarea {
  border-color: var(--red);
}

.field .error {
  display: none;
  font-size: 12px;
  color: var(--red);
}

.field.has-error .error { display: block; }

/* The consent line is its own field container: the message sits on the row
   below the checkbox, spanning both columns. */
.consent .error {
  display: none;
  grid-column: 2;
  font-size: 12px;
  color: var(--red);
}

.consent.has-error { color: var(--ink-2); }
.consent.has-error .error { display: block; }
.consent.has-error input { outline: 1px solid var(--red); outline-offset: 2px; }

/* ---------- Aside cards ---------- */

.aside-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.aside-card h3 {
  font: 600 15px/1.25 var(--font-sans);
  letter-spacing: -0.02em;
}

.aside-card > p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Numbered "what happens next" list. */
.timeline {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline .n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font: var(--t-micro);
  color: var(--ink-3);
}

.timeline b {
  display: block;
  font: var(--t-h3);
  font-size: 13.5px;
  color: var(--ink);
}

.timeline p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* Reassurance ticks — same shape as the pricing "included" list. */
.assurances {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.assurances li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.aside-contact {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.aside-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

@media (max-width: 1000px) {
  /* Sticky is meaningless once the aside is stacked under the form. */
  .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .form-row.two { grid-template-columns: 1fr; }
  .form-foot .btn-primary { width: 100%; justify-content: center; }
}

/* ============================================================
   Legal documents — terms of use, and any long article page
   ============================================================ */

/* Version stamp under the page title. */
.doc-meta {
  margin-top: 18px;
  font: var(--t-sm);
  color: var(--ink-faint);
}

/* "Download as PDF" / "Download source" pair. */
.doc-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Numbered article index. Sits on the same 75ch measure as the prose so the
   two read as one column. */
.doc-toc {
  max-width: 75ch;
  margin-inline: auto;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--surface) 76%, transparent);
}

.doc-toc-title {
  font: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.doc-toc ol {
  margin-top: 12px;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 34px;
}

.doc-toc li {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-2);
  break-inside: avoid;
}

.doc-toc a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.doc-toc a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* The articles themselves. */
.doc-body { margin-top: 44px; }

/* Anchored headings clear the sticky nav when jumped to from the index. */
.doc-body h3 { scroll-margin-top: 90px; }

.doc-body ul {
  margin-top: 12px;
  padding-left: 1.25em;
  list-style: disc;
}

.doc-body li {
  margin-top: 7px;
  font-size: 15.5px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Inline links in any long-form text — terms, privacy, legal mentions. */
.prose a,
.doc-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}

/* Fields that still need evoranQ's real details. Tinted so they cannot be
   mistaken for settled text, and impossible to miss in a printed proof. */
.doc-body .todo-line {
  margin-top: 12px;
  padding: 11px 14px;
  border-left: 2px solid var(--amber-line);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--amber-soft);
  font-size: 14.5px;
}

.doc-foot {
  margin-top: 46px;
  text-align: center;
  font: var(--t-sm);
  color: var(--ink-faint);
}

.doc-foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.doc-foot a:hover { color: var(--ink); }
.doc-foot .sep { margin: 0 10px; }

/* Shown only in the printed/PDF version — see the print block below. */
.print-only { display: none; }

@media (max-width: 700px) {
  .doc-toc ol { columns: 1; }
}

/* ============================================================
   Print — what "Download as PDF" actually produces
   ------------------------------------------------------------
   The browser's print dialogue offers "Save as PDF" on every platform, so
   printing is the download. Everything that is chrome rather than contract
   comes off: nav, footer, ambient layers, the index and the buttons. What
   remains is the terms in the language currently on screen.
   ============================================================ */

@media print {
  /* Force the light palette: a dark-themed print wastes ink and reads badly. */
  html { color-scheme: light; }

  @page {
    margin: 18mm 16mm;
  }

  body {
    background: #fff;
    color: #000;
  }

  .aura,
  .grid-veil,
  .nav,
  .footer,
  .no-print { display: none !important; }

  main { padding: 0; }

  .section,
  .page-head { padding: 0 !important; }

  /* The head is centred on screen; a printed contract reads left-aligned.
     Reset on the container — the eyebrow is an inline-flex child and centres
     through this, not through its own rule. */
  .page-head { text-align: left; }

  .wrap {
    max-width: none;
    padding: 0;
  }

  /* Reveal animations never ran if the page was printed before scrolling. */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* The page head is sized for a screen hero — clamp() against the viewport
     width, a 46px title, a 16px intro. On paper that dwarfs a 10.5pt body, so
     every part of it is restated in points on the document's own scale. */
  .page-head h1 {
    margin: 0;
    max-width: none;
    font-size: 18pt;
    line-height: 1.15;
    text-align: left;
  }

  .page-head .eyebrow {
    justify-content: flex-start;
    font-size: 8pt;
    letter-spacing: 0.1em;
  }

  /* The eyebrow's decorative leading dash is screen furniture. */
  .page-head .eyebrow::before { display: none; }

  .page-head p {
    margin: 6pt 0 0;
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.45;
    text-align: left;
    color: #000;
  }

  .doc-meta {
    margin-top: 8pt;
    font-size: 9pt;
    color: #333;
  }

  .prose,
  .doc-body {
    max-width: none;
    margin: 0;
  }

  .doc-body { margin-top: 18pt; }

  /* The draft stamp only exists on paper, boxed so it cannot be skimmed past. */
  .print-only { display: block; }

  .doc-body .draft-stamp {
    margin-bottom: 16pt;
    padding: 8pt 10pt;
    border: 1.5pt solid #000;
    font-size: 10pt;
  }

  /* Screen line-height (1.5+) is airy for a contract read on paper; 1.35 keeps
     it legible while cutting several pages off the document. */
  .doc-body p,
  .doc-body li {
    margin-top: 7pt;
    font-size: 10pt;
    line-height: 1.35;
    color: #000;
    orphans: 3;
    widows: 3;
  }

  .doc-body ul { margin-top: 7pt; }
  .doc-body li { margin-top: 3pt; }

  /* Keep an article heading with the text it introduces. */
  .doc-body h3 {
    margin-top: 15pt;
    font-size: 11.5pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .doc-body .todo-line {
    border-left: 1.5pt solid #000;
    background: none;
  }

  /* Spell out link targets — a printed hyperlink is otherwise a dead end.
     The hrefs are site-relative, so prefix the domain to make them usable. */
  .doc-body a::after {
    content: " (themiros.com" attr(href) ")";
    font-size: 8.5pt;
    color: #444;
  }
}

/* ============================================================
   Motion preferences — kill everything that moves.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Consigne 1.4 — the single engine capture, at the foot of the
   home page. Real, anonymised data only; while no such file
   exists the slot renders as an empty framed area rather than a
   mockup, so nothing fictitious is ever shown.

   When the capture lands, replace the .capture-slot div with
   <img class="capture-img" src="/assets/apercu-moteur.png" alt="…">
   and delete the .capture-slot rule below.
   ============================================================ */

.capture {
  margin: 40px 0 0;
}

.capture-slot {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  font: var(--t-sm);
  color: var(--ink-3);
}

.capture-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (max-width: 720px) {
  .capture-slot { min-height: 200px; padding: 28px 16px; }
}
