/* Fairdraft Studio: fairdraftstudio.fr
   Brand: teal / cream / orange (logo, 2026-09-11). Type: DM Serif Display (logo face, headings),
   Atkinson Hyperlegible Next (text), Atkinson Hyperlegible Mono (document data, "the machine").
   All fonts self-hosted: the site loads nothing from third parties. */

@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("fonts/atkinson-mono-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* brand */
  --teal: #0F4C5C;
  --teal-deep: #0B3945;
  --orange: #C2410C;
  --paper: #F6F1EA;

  /* derived */
  --sheet: #FFFDF9;
  --paper-2: #EFE7DB;
  --ink: #1E3A40;
  --muted: #4E6469;
  --rule: #DDD2C3;
  --on-teal: #F6F1EA;
  --on-teal-muted: #A9C6C4;
  --peach: #F4A67F;           /* brand orange, lifted to read on deep teal */

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --fold: 26px;               /* folded corner of every sheet, as in the logo */
  --shadow: drop-shadow(0 1px 1px rgba(11, 57, 69, .10)) drop-shadow(0 16px 28px rgba(11, 57, 69, .16));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.desk :focus-visible, .footer :focus-visible, .contact :focus-visible { outline-color: var(--peach); }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
sup { line-height: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--sheet); color: var(--teal-deep); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.eyebrow {
  font: 600 .8125rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 {
  font: 400 clamp(2rem, 1.35rem + 2.6vw, 3.25rem)/1.06 var(--serif);
  color: var(--teal-deep);
  letter-spacing: -.005em;
  text-wrap: balance;
}
h3 { font: 700 1.3rem/1.25 var(--sans); color: var(--teal-deep); }
.section-head { display: grid; gap: 14px; align-content: start; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; max-width: 38rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--orange); color: #fff;
  font: 700 1rem/1 var(--sans);
  padding: 15px 22px; border-radius: 6px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #A8380A; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 11px 16px; font-size: .9375rem; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ---------- sheets: every document on the site has the logo's folded corner ---------- */
.sheet {
  position: relative;
  background: linear-gradient(225deg, transparent 0 calc(var(--fold) * .7071), var(--sheet) calc(var(--fold) * .7071));
  color: var(--ink);
  filter: var(--shadow);
  border-radius: 3px;
}
.sheet::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: var(--fold); height: var(--fold);
  background: linear-gradient(225deg, transparent 50%, var(--orange) 50%);
  border-bottom-left-radius: 3px;
}

/* ---------- desk: header + hero on deep teal ---------- */
.desk { background: var(--teal-deep); color: var(--on-teal); }
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--teal-deep); color: var(--on-teal);
  transition: box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.top.is-stuck { box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .8); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 12px;
  transition: padding-block .2s ease;
}
.top.is-stuck .top-inner { padding-block: 9px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font: 400 1.5rem/1 var(--serif); letter-spacing: .005em; }
.brand-name span {
  font: 600 .6875rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--peach); margin-left: .35em; vertical-align: .25em;
}
.nav { display: flex; gap: clamp(16px, 2.2vw, 30px); font-size: .9688rem; }
.nav a { text-decoration: none; color: var(--on-teal-muted); padding-block: 6px; }
.nav a:hover { color: var(--on-teal); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--on-teal); box-shadow: inset 0 -2px 0 var(--peach); }
.top-actions { display: flex; align-items: center; gap: 16px; }
.lang {
  font: 600 .8125rem/1 var(--mono); letter-spacing: .08em; text-decoration: none;
  border: 1px solid rgba(246, 241, 234, .35); border-radius: 4px; padding: 8px 9px;
}
.lang:hover { border-color: var(--on-teal); }

.hero { padding-block: clamp(24px, 4vw, 52px) clamp(64px, 8vw, 104px); }
.hero .eyebrow { color: var(--on-teal-muted); margin-bottom: 18px; }
.hero h1 {
  font: 400 clamp(2.6rem, 1.1rem + 5.4vw, 5.6rem)/1 var(--serif);
  letter-spacing: -.012em;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
/* the word the machine types */
.typed {
  display: inline-block;
  font: 500 .8em/1 var(--mono);
  letter-spacing: -.07em;
  color: var(--peach);
  white-space: nowrap;
  vertical-align: .02em;
}
.typed-text { display: inline-block; overflow: hidden; vertical-align: bottom; width: calc(var(--chars) * (1ch - .07em)); }
.typed::after {
  content: ""; display: inline-block;
  width: .09em; height: .9em; margin-left: .12em;
  background: var(--peach); vertical-align: -.08em;
  animation: caret 1s steps(1) infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--on-teal); max-width: 30rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.hero-facts {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 234, .18);
  display: grid; gap: 10px;
  font-size: .9688rem; color: var(--on-teal-muted);
}
.hero-facts li { display: flex; gap: 12px; align-items: baseline; }
.hero-facts li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--peach); border-radius: 1px; transform: translateY(-1px) rotate(45deg); }

/* the living invoice */
.demo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.demo figcaption {
  grid-column: 1 / -1;
  font: 400 .8125rem/1.4 var(--mono); color: var(--on-teal-muted);
}
.invoice { padding: 26px 26px 24px; font-size: .9063rem; }
.inv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-right: 14px; }
.inv-kind { font: 400 1.75rem/1 var(--serif); color: var(--teal-deep); }
.inv-no { font: 600 .8125rem/1 var(--mono); color: var(--muted); }
.inv-meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 22px;
  margin: 18px 0 16px; padding-block: 12px;
  border-block: 1px solid var(--rule);
  font: 400 .8125rem/1.35 var(--mono);
}
.inv-meta dt { color: var(--muted); font-size: .75rem; }
.inv-meta dd { color: var(--ink); font-weight: 600; }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines th, .inv-lines td { text-align: left; padding: 7px 0; vertical-align: baseline; }
.inv-lines td:last-child, .inv-lines th:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-family: var(--mono); }
.inv-lines thead th { font: 400 .75rem/1.2 var(--mono); color: var(--muted); border-bottom: 1px solid var(--rule); }
.inv-lines tbody td { border-bottom: 1px dashed var(--rule); }
.inv-lines tfoot th, .inv-lines tfoot td { padding-top: 12px; font-weight: 700; color: var(--teal-deep); }
.inv-lines tfoot td { font-size: 1.0625rem; }
.inv-foot { margin-top: 14px; display: grid; gap: 3px; font: 400 .75rem/1.35 var(--mono); color: var(--muted); padding-right: 128px; }
.stamp {
  position: absolute; right: 24px; bottom: 18px;
  display: grid; justify-items: center; gap: 2px;
  padding: 8px 14px 7px;
  border: 3px solid var(--orange); border-radius: 6px;
  outline: 1px solid var(--orange); outline-offset: 3px;
  color: var(--orange);
  font: 800 1.35rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  opacity: .9;
}
.stamp span + span { font-size: .625rem; font-weight: 600; letter-spacing: .08em; }

.log-title { font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-teal-muted); margin-bottom: 18px; }
.log { position: relative; display: grid; gap: 20px; }
.log::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 10px;
  border-left: 1px dashed rgba(246, 241, 234, .3);
}
.log li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.45; }
.log li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal-deep); border: 2px solid var(--on-teal-muted);
}
.log li.is-paid::before { background: var(--peach); border-color: var(--peach); }
.log time { display: block; font: 600 .75rem/1.3 var(--mono); letter-spacing: .04em; color: var(--peach); margin-bottom: 2px; }
.log .mail {
  margin-top: 8px; padding: 8px 10px;
  border-left: 2px solid var(--peach);
  background: rgba(246, 241, 234, .06);
  font: 400 .8125rem/1.45 var(--mono); color: var(--on-teal-muted);
}

/* one orchestrated moment: the word types, the follow-up runs, the stamp lands */
@keyframes caret { 50% { opacity: 0; } }
@keyframes type { from { width: 0; } }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.9); }
  70% { opacity: .95; transform: rotate(-9deg) scale(.96); }
  100% { opacity: .9; transform: rotate(-9deg) scale(1); }
}
.js .typed-text { animation: type .9s steps(var(--chars)) .35s both; }
.js .log li { animation: step-in .45s ease-out both; animation-delay: calc(1.4s + var(--i) * .55s); }
.js .stamp { animation: stamp-in .38s cubic-bezier(.2, .8, .3, 1) both; animation-delay: 3.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .typed-text, .js .log li, .js .stamp, .typed::after { animation: none; }
}

/* ---------- e-invoicing calendar ---------- */
.fe { padding-block: var(--section); background: var(--paper-2); }
.fe-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.fe-grid .section-head { margin-bottom: 0; }
.fe-dates { position: relative; display: grid; gap: 0; }
.fe-dates li {
  display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 8px 28px;
  padding-block: 26px; border-top: 1px solid var(--rule);
}
.fe-dates li:last-child { border-bottom: 1px solid var(--rule); }
.fe-date { font: 400 1.9rem/1.05 var(--serif); color: var(--teal-deep); }
.fe-date sup { font-size: .5em; }
.fe-dates strong { display: block; font: 700 1.125rem/1.3 var(--sans); color: var(--teal-deep); margin-bottom: 4px; }
.tag {
  display: inline-block; margin-top: 10px;
  font: 600 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 3px;
  background: var(--teal); color: var(--on-teal);
}
.tag-next { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.fine { margin-top: 22px; font-size: .875rem; color: var(--muted); max-width: 44rem; }

/* ---------- offers: three quotes ---------- */
.offers { padding-block: var(--section); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.quote { display: flex; flex-direction: column; padding: 26px 26px 24px; scroll-margin-top: 24px; }
.quote-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-right: 18px; padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font: 600 .75rem/1.3 var(--mono); letter-spacing: .04em; color: var(--muted);
}
.quote h3 { margin-bottom: 10px; }
.quote-for { color: var(--muted); font-size: .9688rem; line-height: 1.5; margin-bottom: 20px; }
.lines { font-size: .9375rem; line-height: 1.45; margin-bottom: 22px; }
.lines li { padding: 10px 0 10px 22px; border-top: 1px dashed var(--rule); position: relative; }
.lines li::before { content: "—"; position: absolute; left: 0; color: var(--orange); font-family: var(--mono); }
.quote-total {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--teal-deep); padding-top: 14px;
}
.quote-total span { font: 600 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quote-total strong { font: 400 2.75rem/1 var(--serif); color: var(--teal-deep); }
.vat { font: 400 .75rem/1.3 var(--mono); color: var(--muted); text-align: right; margin-top: 6px; }
.accord {
  margin-top: 20px; padding: 14px;
  border: 1px dashed #BFB3A2; border-radius: 4px;
  display: grid; gap: 10px;
}
.accord-label { font: 400 1.05rem/1 var(--serif); color: var(--muted); font-style: normal; }
.accord .btn { justify-content: center; }

.terms {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.terms h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.terms p { font-size: .9375rem; color: var(--muted); }
.terms .price { font-family: var(--mono); font-weight: 600; color: var(--teal-deep); }
.other { margin-top: 28px; font-size: 1rem; }
.other a { font-weight: 700; }

/* ---------- method ---------- */
.method { padding-block: var(--section); background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--teal-deep); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 14px;
  font: 400 2.75rem/1 var(--serif); color: var(--orange);
}
.steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
.steps p { font-size: .9688rem; color: var(--muted); }

/* ---------- demos ---------- */
.demos { padding-block: var(--section); background: var(--paper-2); }
.demos .section-head { max-width: 52rem; }
.demo-list { display: grid; gap: clamp(44px, 6vw, 80px); }
.demo-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.demo-text { display: grid; gap: 14px; }
.demo-text h3 { font: 400 1.75rem/1.15 var(--serif); color: var(--teal-deep); }
.demo-text p { color: var(--muted); }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--teal-deep); border-radius: 6px; }
.demo-video figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 1080px) {
  .demo-item { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- rules ---------- */
.rules { padding-block: var(--section); background: var(--paper-2); }
.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.articles li { padding-block: 24px; border-top: 1px solid var(--rule); }
.art-no { display: block; font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.articles h3 { font: 400 1.6rem/1.15 var(--serif); margin-bottom: 8px; }
.articles p { color: var(--muted); font-size: 1rem; }

/* ---------- about ---------- */
.about { padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); }
.about-text { display: grid; gap: 16px; font-size: 1.0625rem; max-width: 40rem; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; font-size: .9688rem; }
.elsewhere a { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); background: var(--paper-2); }
.qa { max-width: 52rem; }
.qa details { border-top: 1px solid var(--rule); }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 20px 0;
  font: 700 1.125rem/1.35 var(--sans); color: var(--teal-deep);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--mono); color: var(--orange); }
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 0 22px; max-width: 44rem; color: var(--ink); }
.qa details p + p { margin-top: -10px; }

/* ---------- contact ---------- */
.contact { background: var(--teal-deep); color: var(--on-teal); padding-block: var(--section); }
.contact h2 { color: var(--on-teal); }
.contact .section-head p:not(.eyebrow) { color: var(--on-teal-muted); }
.contact .eyebrow { color: var(--on-teal-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-direct { margin-top: 22px; color: var(--on-teal-muted); }
.contact-direct a { color: var(--on-teal); font-weight: 700; }
.form { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.form-head { font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--rule); padding-right: 24px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 700; font-size: .9375rem; color: var(--teal-deep); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #C9BEAE; border-radius: 4px;
  padding: 11px 12px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form-foot { display: grid; gap: 12px; }
.form-foot .btn { justify-self: start; }
.form-note { font-size: .8438rem; color: var(--muted); }
.form-status { font-size: .9375rem; font-weight: 700; color: var(--teal); min-height: 1.4em; }
.form-fallback { display: grid; gap: 10px; padding: 14px; border-radius: 4px; background: var(--paper); font-size: .9375rem; }
.form-fallback[hidden] { display: none; }
.form-fallback textarea {
  width: 100%; resize: vertical;
  font: 400 .875rem/1.45 var(--mono); color: var(--ink);
  background: #fff; border: 1px solid #C9BEAE; border-radius: 4px; padding: 10px;
}
.btn-ghost { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--teal); justify-self: start; }
.btn-ghost:hover { background: var(--paper-2); }

/* ---------- footer ---------- */









/* ---------- legal pages ---------- */
.legal-top { background: var(--teal-deep); color: var(--on-teal); }
.legal { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.legal-doc { max-width: 46rem; padding: clamp(24px, 4vw, 48px); }
.legal-doc h1 { font: 400 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1.1 var(--serif); color: var(--teal-deep); margin-bottom: 8px; padding-right: 24px; }
.legal-doc .updated { font: 400 .8125rem/1.4 var(--mono); color: var(--muted); margin-bottom: 28px; }
.legal-doc h2 { font: 700 1.1875rem/1.3 var(--sans); margin: 32px 0 10px; }
.legal-doc p, .legal-doc li { font-size: 1rem; }
.legal-doc p + p, .legal-doc ul + p, .legal-doc p + ul { margin-top: 10px; }
.legal-doc ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 4px; }
.legal-doc address { font-style: normal; }
.todo { background: #FFE9A8; color: #5A3B00; padding: 0 .25em; border-radius: 2px; font-family: var(--mono); font-size: .9em; }
.draft-banner { background: #FFE9A8; color: #5A3B00; font: 600 .875rem/1.4 var(--sans); padding: 12px 16px; border-radius: 4px; margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .fe-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 720px; }
  .quotes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .top { padding-block: 4px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.25rem; }
  .brand-name span { display: none; }
  .top-actions { gap: 10px; }
  .hero h1 { max-width: none; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .invoice { padding: 22px 18px 20px; }
  .inv-meta { grid-template-columns: repeat(2, auto); }
  .stamp { bottom: 16px; right: 14px; font-size: 1.1rem; }
  .inv-foot { padding-right: 120px; }
  .fe-dates li { grid-template-columns: minmax(0, 1fr); }
  .steps, .articles { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- motion: one language for the whole site ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  /* hidden until revealed, but a failsafe animation shows it anyway if the script never runs */
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal-failsafe 0s linear 4s forwards;
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- page banner on inner pages ---------- */
.desk-page { border-bottom: 1px solid rgba(246, 241, 234, .12); }
.page-head { padding-block: clamp(40px, 6vw, 76px) clamp(44px, 6vw, 84px); max-width: 60rem; }
.page-head .eyebrow { color: var(--on-teal-muted); margin-bottom: 16px; }
.page-head h1 {
  font: 400 clamp(2.3rem, 1.4rem + 3.2vw, 4rem)/1.03 var(--serif);
  letter-spacing: -.01em; color: var(--on-teal); margin: 0;
  text-wrap: balance;
}
.page-intro { margin-top: 20px; font-size: 1.1875rem; line-height: 1.55; color: var(--on-teal-muted); max-width: 46rem; }

/* ---------- home: three tiles ---------- */
.tiles-section { padding-block: var(--section); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 26px 22px; text-decoration: none; color: inherit;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), filter .25s ease;
}
.tile:hover { transform: translateY(-4px); filter: drop-shadow(0 2px 2px rgba(11, 57, 69, .12)) drop-shadow(0 22px 34px rgba(11, 57, 69, .2)); }
.tile::before { transition: width .25s ease, height .25s ease; }
.tile:hover::before { width: calc(var(--fold) + 6px); height: calc(var(--fold) + 6px); }
.tile-kicker { font: 600 .75rem/1.3 var(--mono); letter-spacing: .06em; color: var(--muted); padding-right: 22px; }
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--muted); font-size: .9688rem; line-height: 1.5; }
.tile-more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .9375rem; color: var(--orange); }
.tile:hover .tile-more { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- proof strip ---------- */
.proof { padding-block: var(--section); background: var(--paper); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.proof-grid .section-head { margin-bottom: 26px; }
.proof-list { display: grid; gap: 0; margin-bottom: 26px; }
.proof-list li { padding-block: 20px; border-top: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.55; }
.proof-list li:last-child { border-bottom: 1px solid var(--rule); }
.proof-list strong { color: var(--teal-deep); }

/* ---------- call to action band ---------- */
.cta-band { background: var(--teal-deep); color: var(--on-teal); padding-block: clamp(56px, 7vw, 96px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-band .eyebrow { color: var(--on-teal-muted); margin-bottom: 14px; }
.cta-band h2 { color: var(--on-teal); margin-bottom: 14px; }
.cta-band p { color: var(--on-teal-muted); max-width: 40rem; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-alt { font-size: .9375rem; }
.cta-alt a { color: var(--on-teal); font-weight: 700; }

/* ---------- work / réalisations ---------- */
.work { padding-block: var(--section); }
.work-list { display: grid; gap: clamp(20px, 2.5vw, 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-item { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.work-item h2 { font: 400 1.75rem/1.15 var(--serif); color: var(--teal-deep); }
.work-item p { color: var(--muted); }
.work-tag {
  font: 600 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); padding-right: 30px;
}
.work-meta { font-size: .9375rem; }
.work-item .link-arrow { margin-top: auto; align-self: start; color: var(--teal-deep); }
.work-next { border: 1px dashed #BFB3A2; border-radius: 4px; background: none; filter: none; }
.work-next::before { display: none; }
.work-next .work-tag { color: var(--muted); }

/* ---------- about ---------- */
.bio { padding-block: var(--section); }
.bio-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.bio-grid .id-card { order: -1; max-width: 320px; align-self: start; }
/* the story spreads over the card's height: first line of each paragraph at the top, last at the bottom */
.bio-text { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; max-width: 44rem; }
.id-card { padding: 24px 24px 16px; display: grid; gap: 6px; }
.id-photo { width: 100%; height: auto; border-radius: 4px; margin-bottom: 16px; }
.id-kicker { font: 600 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); padding-right: 26px; }
.id-name { font: 400 1.75rem/1.1 var(--serif); color: var(--teal-deep); }
.id-role { font-size: .9375rem; color: var(--muted); }
.id-facts { margin-top: 14px; display: grid; }
.id-facts > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px solid var(--rule); }
.id-facts dt { font: 600 .6875rem/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.id-facts dd { margin: 0; font-size: .9375rem; }
.id-card .link-arrow { margin-top: 6px; justify-self: start; color: var(--teal-deep); }
.bio-text p { font-size: 1.125rem; line-height: 1.6; }
.story-lead { display: block; margin-bottom: 6px; font: 400 clamp(1.3rem, 1rem + .7vw, 1.6rem)/1.25 var(--serif); color: var(--teal-deep); text-wrap: balance; }
.bio-text .fine { font-size: .875rem; color: var(--muted); }

/* ---------- contact page ---------- */
.contact-page { padding-block: var(--section); }
.contact-details { display: grid; gap: 10px; align-content: start; }
.contact-title { font: 700 1.0625rem/1.3 var(--sans); color: var(--teal-deep); }
.contact-line { font: 400 1.25rem/1.3 var(--serif); }
.contact-line a { color: var(--teal-deep); text-decoration-color: var(--orange); }
.contact-facts { margin-top: 18px; display: grid; gap: 0; }
.contact-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--rule); }
.contact-facts > div:last-child { border-bottom: 1px solid var(--rule); }
.contact-facts dt { font: 600 .75rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-facts dd { margin: 0; font-size: 1rem; }
.contact-details .fine { margin-top: 18px; font-size: .875rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--teal-deep); color: var(--on-teal-muted); padding-block: clamp(48px, 6vw, 72px) 28px; font-size: .9375rem; border-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.footer-brand .brand { color: var(--on-teal); }
.footer-tag { margin-top: 14px; color: var(--on-teal); max-width: 22rem; }
.footer-where { margin-top: 8px; }
.footer-title { font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-teal); margin-bottom: 16px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { color: var(--on-teal-muted); text-decoration: none; }
.footer-list a:hover { color: var(--on-teal); text-decoration: underline; }
.footer-note { color: var(--on-teal-muted); }
.footer-vat { margin-top: 12px; font-size: .8125rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
  padding-top: 22px; border-top: 1px solid rgba(246, 241, 234, .16);
  font-size: .8438rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--on-teal); }
.footer-bottom .footer-note { margin-left: auto; }

@media (max-width: 1080px) {
  .tiles { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .proof-grid, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .work-list { grid-template-columns: minmax(0, 1fr); }
  .bio-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .bio-grid .id-card { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
  .footer-bottom .footer-note { margin-left: 0; }
  .contact-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- mobile menu ---------- */
.menu-toggle {
  display: none;
  font: 600 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-teal); background: transparent;
  border: 1px solid rgba(246, 241, 234, .35); border-radius: 4px;
  padding: 10px 12px; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--on-teal); }

/* ---------- free tools ---------- */
.tool { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.tool-form { padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 16px; }
.tool-output { display: grid; gap: 16px; position: sticky; top: 96px; }
.tool-result { padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 14px; }
.tool-result textarea {
  width: 100%; min-height: 26rem; resize: vertical;
  font: 400 .9375rem/1.6 var(--mono); color: var(--ink);
  background: #fff; border: 1px solid #C9BEAE; border-radius: 4px; padding: 16px;
}
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-actions .btn { text-decoration: none; }
.tool-output .fine { font-size: .875rem; color: var(--muted); }
.tool-next { padding-block: var(--section); background: var(--paper-2); }
.tool-next p + p { margin-top: 14px; }
.tool-next p { color: var(--muted); font-size: 1.0625rem; }

@media (max-width: 1080px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-output { position: static; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--teal-deep);
    padding: 4px var(--gutter) 18px;
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .9);
  }
  .top.is-open .nav { display: flex; }
  .nav a { padding-block: 14px; border-top: 1px solid rgba(246, 241, 234, .14); }
}
@media (max-width: 380px) {
  .top-actions .btn-small { display: none; }
}

/* ---------- header at the very top: beige, so it stands apart from the teal hero; teal again once scrolled (.is-stuck) ---------- */
.top:not(.is-stuck) { background: var(--paper-2); color: var(--ink); }
.top:not(.is-stuck) .nav a { color: var(--muted); }
.top:not(.is-stuck) .nav a:hover,
.top:not(.is-stuck) .nav a[aria-current="page"] { color: var(--ink); }
.top:not(.is-stuck) .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
.top:not(.is-stuck) .brand-name span { color: var(--orange); }
.top:not(.is-stuck) .lang,
.top:not(.is-stuck) .menu-toggle { color: var(--ink); border-color: rgba(30, 58, 64, .35); }
.top:not(.is-stuck) .lang:hover,
.top:not(.is-stuck) .menu-toggle:hover { border-color: var(--ink); }
@media (max-width: 1080px) {
  .top:not(.is-stuck) .nav { background: var(--paper-2); box-shadow: 0 18px 30px -22px rgba(11, 57, 69, .45); }
  .top:not(.is-stuck) .nav a { border-top-color: rgba(30, 58, 64, .14); }
}
@media (max-width: 700px) {
  .top-actions .btn-small { padding: 8px 11px; font-size: .8125rem; white-space: nowrap; }
}
/* phones 381-430 px: the one-line button needs the room, so only the logo mark shows (below 381 px the button is hidden and the name comes back) */
@media (min-width: 381px) and (max-width: 430px) {
  .brand-name { display: none; }
}
