/* OR Digital — feuille de style unique
   Palette tirée du logo : or, cuivre, encre sur papier chaud. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf8f3;
  --sand: #f2ebdf;
  --ink: #1e1a16;
  --ink-soft: #453e35;
  --muted: #6b6155;
  --line: #e1d6c4;
  --gold: #c99a3c;
  --gold-deep: #a07418;
  --copper: #a84b24;
  --copper-deep: #8c3c1b;
  --on-dark: #f3ece0;
  --on-dark-soft: #c9bfae;
  --line-dark: #3a332b;
  --ok: #2e7d4f;
  --ok-soft: #e7f3ec;
  --ok-ink: #1f5a38;
  --err: #b3261e;
  --err-soft: #fceceb;
  --err-ink: #8c1d17;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographie ---------- */

.display,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 450;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.7rem, 7.2vw, 6.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
}
.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; }
.small { font-size: 0.9rem; color: var(--muted); }
.link {
  color: var(--copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.link:hover { text-decoration-thickness: 2px; }

/* mots découpés pour l'apparition des titres */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}
/* le fond est sur un pseudo-élément : un backdrop-filter sur l'en-tête
   enfermerait le menu mobile (position: fixed) dans sa hauteur */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(251, 248, 243, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.is-solid::before,
.site-header.is-open::before { opacity: 1; }
.bar {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.menu-btn { position: relative; z-index: 2; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name b { color: var(--gold-deep); font-weight: 700; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}
.menu-icon {
  position: relative;
  width: 24px;
  height: 10px;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 8px; }
.is-open .menu-icon::before { top: 4px; transform: rotate(45deg); }
.is-open .menu-icon::after { top: 4px; transform: rotate(-45deg); }

.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  overflow-y: auto;
}
.is-open .nav {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-list a[aria-current="page"] { color: var(--copper); }
.lang {
  align-self: flex-start;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.lang:hover { color: var(--copper); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav {
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background: none;
    visibility: visible;
    opacity: 1;
    overflow: visible;
  }
  .nav-list { flex-direction: row; gap: 32px; }
  .nav-list a {
    position: relative;
    padding: 8px 0;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    border: 0;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .lang { align-self: auto; }
}

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.btn-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn-line .btn-fill { background: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn-light .btn-fill { background: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 144px); }
.section-sand { background: var(--sand); }
.section-dark {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--ink);
  color: var(--on-dark-soft);
}
.section-dark .h2,
.section-dark .h3 { color: var(--on-dark); }
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: end;
  }
}

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title { max-width: 13em; }
.hero .lead { margin-top: clamp(24px, 3vw, 36px); }
.hero .btn-row { margin-top: clamp(28px, 4vw, 44px); }
.hero-mark {
  position: absolute;
  z-index: 0;
  right: -18vw;
  top: 12%;
  width: min(86vw, 520px);
  aspect-ratio: 1;
  opacity: 0.32;
  pointer-events: none;
}
.hero-mark svg { width: 100%; height: 100%; overflow: visible; }
.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .facts li { border-bottom: 0; padding-right: 16px; }
}
@media (min-width: 900px) {
  .hero-title { max-width: 58vw; }
  .hero-mark {
    right: -3vw;
    top: 50%;
    width: min(40vw, 600px);
    translate: 0 -50%;
    opacity: 1;
  }
}

/* ---------- Lignes de services ---------- */

.rows { position: relative; }
.rows::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
}
.row {
  --rule: 1;
  --fill: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px 40px;
  padding: clamp(28px, 4vw, 44px) 0;
  text-decoration: none;
  color: inherit;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(var(--rule));
  transform-origin: left;
}
.row::after {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--sand);
  border-radius: var(--radius);
  transform: scaleY(var(--fill));
  transform-origin: 50% 100%;
}
.row-title { color: var(--ink); will-change: transform; }
.row-body { max-width: 52ch; }
.row-price {
  font-weight: 600;
  color: var(--copper-deep);
  white-space: nowrap;
}
.row-go {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  opacity: 0.35;
}
.row-go svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .row {
    grid-template-columns: 5fr 5fr 2fr auto;
    align-items: baseline;
  }
  .row-go { display: inline-flex; align-self: center; }
  .row-price { text-align: right; }
}

/* ---------- Méthode (vraie séquence) ---------- */

.steps {
  --p: 1;
  position: relative;
  display: grid;
  gap: 40px;
  padding-left: 40px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.steps::after {
  background: var(--copper);
  transform: scaleY(var(--p));
  transform-origin: top;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  z-index: 1;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.step.is-on::before { border-color: var(--copper); background: var(--copper); }
.step-n {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--copper-deep);
  font-weight: 600;
}
.step p { margin-top: 10px; max-width: 34ch; }
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 56px 0 0;
  }
  .steps::before,
  .steps::after {
    left: 0;
    right: 0;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .steps::after { transform: scaleX(var(--p)); transform-origin: left; }
  .step::before { left: 0; top: -56px; }
}

/* ---------- Bande sombre ---------- */

.band-mark {
  position: absolute;
  top: 2%;
  right: -16%;
  width: min(84vw, 560px);
  opacity: 0.38;
  pointer-events: none;
}
@media (min-width: 900px) {
  .band-mark {
    top: 190px;
    left: -7%;
    right: auto;
    width: min(44vw, 580px);
    opacity: 0.42;
  }
}
.band-mark svg { width: 100%; height: auto; }
.band-grid { position: relative; display: grid; gap: 48px; }
.spec { display: grid; gap: 0; }
.spec > div {
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}
.spec > div:last-child { border-bottom: 1px solid var(--line-dark); }
.spec dt {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--on-dark);
  margin-bottom: 4px;
}
.spec dd { max-width: 48ch; }
@media (min-width: 900px) {
  .band-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .band-grid .h2 { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Pourquoi pas un modèle ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.why { display: grid; gap: 48px; }
.why-intro .lead { margin-top: 20px; }
.tech { margin-top: clamp(28px, 4vw, 48px); max-width: 380px; }
.tech-img { width: 100%; height: auto; }
.tech figcaption { margin-top: 14px; max-width: 36ch; }

.compare { width: 100%; border-collapse: collapse; }
.compare th,
.compare td {
  padding: 22px 20px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  border-top: 1px solid var(--line);
}
.compare thead th {
  border-top: 0;
  padding-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.compare thead .ours { color: var(--copper-deep); }
.compare tbody th {
  padding-left: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  width: 18%;
}
.compare td { color: var(--muted); }
.compare .ours {
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}
.compare thead .ours { border-radius: var(--radius) var(--radius) 0 0; }
.compare tbody tr:last-child .ours { border-radius: 0 0 var(--radius) var(--radius); }
.compare .ck {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 10px -3px 0;
  fill: none;
  stroke: var(--copper);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compare .ck-no { stroke: var(--muted); opacity: 0.7; }
@media (max-width: 759px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { padding: 24px 0 8px; border-top: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 0; width: auto; }
  .compare tbody th { width: auto; margin-bottom: 14px; }
  .compare td { padding: 12px 16px; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
  }
  .compare .ours { margin-top: 8px; border-radius: var(--radius); }
  .compare .ours::before { color: var(--copper-deep); }
}
@media (min-width: 900px) {
  .why { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Preuve : éditeur de code et chiffres ---------- */

.proof {
  position: relative;
  display: grid;
  gap: 40px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-dark);
}
.proof-head p { margin-top: 12px; max-width: 46ch; }
.editor {
  margin: 0;
  overflow: hidden;
  background: #151210;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.editor figcaption {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: var(--on-dark-soft);
}
.editor pre {
  margin: 0;
  padding: 22px 20px 26px;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--on-dark-soft);
  tab-size: 2;
  white-space: normal;
}
.editor code { font: inherit; }
.ln { display: block; white-space: pre; overflow: hidden; }
.ln.is-typing { border-right: 2px solid var(--gold); }
.ed-t { color: #dfae4f; }
.ed-a { color: #e8926a; }
.ed-s { color: var(--on-dark); }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stats > div { padding: 22px 16px 22px 0; border-top: 1px solid var(--line-dark); }
.stats dt {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: var(--on-dark);
  letter-spacing: -0.02em;
}
.stats dt small {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--gold);
  margin-left: 6px;
}
.stats dd { margin-top: 10px; max-width: 24ch; font-size: 0.95rem; }
@media (min-width: 900px) {
  .proof { grid-template-columns: 7fr 5fr; column-gap: 80px; }
  .proof-head { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
  .proof-head p { margin-top: 0; }
  .editor pre { font-size: 0.875rem; }
}

/* ---------- Illustrations des services ---------- */

.illus { margin-top: clamp(28px, 4vw, 44px); max-width: 480px; }
.illus svg { width: 100%; height: auto; overflow: visible; }
.il-frame { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.il-rule { stroke: var(--line); stroke-width: 1.5; fill: none; }
.il-ink { fill: var(--ink); }
.il-soft { fill: var(--line); }
.il-sand { fill: var(--sand); }
.il-copper { fill: var(--copper); }
.il-gold { fill: var(--gold); }
.il-gold-soft { fill: var(--gold); opacity: 0.35; }
.il-box { fill: none; stroke: var(--line); stroke-width: 1.5; }
.il text { font-family: var(--sans); font-size: 16px; font-weight: 500; fill: var(--ink); }
.il .il-pill { font-size: 11px; fill: var(--muted); font-weight: 400; }
.il-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.il-link { fill: none; stroke: var(--line); stroke-width: 2; }
.il-flow { fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-linecap: round; }
.il-dot { fill: var(--gold); opacity: 0; }.illus figcaption { margin-top: 12px; max-width: 40ch; }

/* ---------- Appel final ---------- */

.cta {
  display: grid;
  gap: 32px;
}
.cta .h2 { max-width: 14ch; }
.cta-side { display: grid; gap: 20px; align-content: end; }
.cta-contact a {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.cta-contact { display: grid; gap: 4px; }
@media (min-width: 900px) {
  .cta { grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; }
}

/* ---------- Pages intérieures ---------- */

.page-head {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 clamp(48px, 7vw, 96px);
}
.page-head .display { max-width: 14em; font-size: clamp(2.5rem, 6.2vw, 5.2rem); }
.page-head .lead { margin-top: clamp(20px, 3vw, 32px); }

.service-block {
  display: grid;
  gap: 24px 64px;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 14px;
  height: 2px;
  background: var(--copper);
}
@media (min-width: 900px) {
  .service-block { grid-template-columns: 5fr 6fr; align-items: start; }
}

/* tarifs : trois formules de poids différents */
.plans {
  display: grid;
  gap: 20px;
  align-items: end;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.plan .ticks li { border-color: var(--line); }
.plan-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.1;
}
.plan-price {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.plan-price small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-main {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark-soft);
  padding-block: clamp(32px, 4vw, 56px);
}
.plan-main .plan-name,
.plan-main .plan-price { color: var(--on-dark); }
.plan-main .plan-price small { color: var(--on-dark-soft); }
.plan-main .ticks li { color: var(--on-dark-soft); border-color: var(--line-dark); }
.plan-main .ticks li::before { background: var(--gold); }
.plan-note { margin-top: 28px; color: var(--ink); font-weight: 500; max-width: 62ch; }
.plan-note-sub { margin-top: 8px; color: var(--muted); font-weight: 400; }
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1.15fr 1fr; gap: 0; }
  .plan { border-radius: var(--radius) 0 0 var(--radius); }
  .plan-main { border-radius: var(--radius); position: relative; z-index: 1; }
  .plan:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--copper), var(--copper)) center / 100% 2px no-repeat,
    linear-gradient(var(--copper), var(--copper)) center / 2px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-body { padding: 0 0 28px; max-width: 62ch; overflow: hidden; }
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .faq-wrap { grid-template-columns: 5fr 7fr; gap: 80px; }
}

/* À propos */
.about-grid { display: grid; gap: 48px; }
.principles { display: grid; gap: 0; }
.principles > div { padding: 26px 0; border-top: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 1px solid var(--line); }
.principles dt {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.skills { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .about-grid > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
  .skills { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Contact */
.contact-grid { display: grid; gap: 56px; }
.contact-side { display: grid; gap: 40px; align-content: start; }
.contact-details { display: grid; gap: 28px; }
.contact-details dt { font-weight: 600; color: var(--ink); }
.contact-details dd a {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  word-break: break-word;
}
.contact-details > div { padding-top: 20px; border-top: 1px solid var(--line); }

form { display: grid; gap: clamp(40px, 5vw, 56px); }

/* avancement : trois segments qui se remplissent */
.q-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q-progress span {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.q-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.q-progress span.is-done::after { transform: scaleX(1); }
.q-count { margin-top: 10px; }

.q-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.q-group legend {
  padding: 0;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.q-fields { display: grid; gap: 26px; }

/* type de projet : pastilles */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: block; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px 0 18px;
  border: 1px solid #8f8272;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.chip span::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 1.5px solid #8f8272;
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.chip:hover span { border-color: var(--ink); transform: translateY(-2px); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip input:checked + span::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
}
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }

/* champs : texte posé sur un filet qui se trace au focus */
.field-pair { display: grid; gap: 26px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.field:focus-within label { color: var(--copper-deep); }
.field .opt { font-weight: 400; color: var(--muted); }
.field-box { position: relative; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 10px 36px 10px 0;
  border: 0;
  border-bottom: 1px solid #8f8272;
  border-radius: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 56px; padding: 13px 36px 11px 0; resize: none; overflow: hidden; line-height: 1.45; font-size: 1.2rem; }
.field input:focus,
.field textarea:focus { outline: none; }
.field-line {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line { transform: scaleX(1); }
.field-ok {
  position: absolute;
  right: 2px;
  top: 19px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.field.is-valid input,
.field.is-valid textarea { border-bottom-color: var(--ok); }
.field-ok path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s var(--ease); }
.field.is-valid .field-ok path { stroke-dashoffset: 0; }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.field-error { min-height: 1.2em; font-size: 0.9rem; color: #b3261e; }

/* bouton : prêt, envoi en cours, réussi, échec */
.btn-send {
  transition: color 0.3s var(--ease), background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn-send .btn-ok,
.btn-send .btn-x {
  width: 0;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: width 0.4s var(--ease), margin 0.4s var(--ease);
}
.btn-send .btn-ok path,
.btn-send .btn-x path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset 0.5s var(--ease) 0.15s;
}
.btn-spin {
  box-sizing: border-box;
  width: 0;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transition: width 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn-send.is-busy .btn-spin {
  width: 16px;
  margin-right: 10px;
  opacity: 1;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-send.is-sent {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  animation: sent 1s var(--ease) 1;
}
.btn-send.is-error {
  background: var(--err);
  border-color: var(--err);
  color: #fff;
}
.btn-send.is-sent .btn-ok,
.btn-send.is-error .btn-x { width: 18px; margin-left: 10px; }
.btn-send.is-sent .btn-ok path,
.btn-send.is-error .btn-x path { stroke-dashoffset: 0; }
.btn-send.is-sent .btn-fill,
.btn-send.is-error .btn-fill { display: none; }
.btn-send:disabled { cursor: progress; }
.btn-send.is-sent:disabled { cursor: default; }
.btn-send.is-ready { animation: ready 1.1s var(--ease) 1; }
@keyframes ready {
  0% { box-shadow: 0 0 0 0 rgba(201, 154, 60, 0.7); }
  100% { box-shadow: 0 0 0 16px rgba(201, 154, 60, 0); }
}
@keyframes sent {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(46, 125, 79, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-send.is-busy .btn-spin { animation: none !important; }
}

/* avancement : tout passe au vert une fois le message parti */
.contact-grid form.is-sent .q-progress span::after { background: var(--ok); }

/* carte « votre demande » */
.quote {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark-soft);
}
.quote-label { font-size: 0.9rem; color: var(--on-dark-soft); }
.quote-title {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.quote-type {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--on-dark);
}
.quote-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--serif);
  color: var(--on-dark);
  line-height: 1;
}
.quote-price[hidden] { display: none; }
.quote-price small { font-family: var(--sans); font-size: 0.95rem; color: var(--gold); }
.quote-num { font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.quote-note { margin-top: 14px; font-size: 0.95rem; min-height: 3em; }
.quote-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .field-pair { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 7fr 4fr; gap: 96px; }
}

.hp { position: absolute; left: -9999px; }
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--ink);
}
.form-status::before {
  content: "";
  display: none;
  flex: none;
  width: 22px;
  height: 22px;
  background: center / contain no-repeat;
}
.form-status[data-state] { font-weight: 500; }
.form-status[data-state]::before { display: block; }
.form-status[data-state="ok"] {
  background: var(--ok-soft);
  border-left-color: var(--ok);
  color: var(--ok-ink);
}
.form-status[data-state="ok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E");
}
.form-status[data-state="error"] {
  background: var(--err-soft);
  border-left-color: var(--err);
  color: var(--err-ink);
}
.form-status[data-state="error"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3261e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
}
.form-status:empty { display: none; }

/* Texte légal */
.gist {
  margin-bottom: clamp(48px, 7vw, 96px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  background: var(--sand);
}
.gist-title {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
.gist ul { display: grid; gap: 16px 48px; }
.gist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.gist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 760px) {
  .gist ul { grid-template-columns: 1fr 1fr; }
}

.legal-wrap { display: grid; gap: 32px; }
.toc { display: none; }
.toc-title { margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.toc ul { border-left: 1px solid var(--line); }
.toc a {
  position: relative;
  display: block;
  padding: 8px 0 8px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--copper);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { padding-left: 26px; color: var(--copper-deep); font-weight: 600; }
.toc a.is-active::before { transform: scaleY(1); }

.legal { max-width: 68ch; }
.legal-sec {
  --rule: 1;
  position: relative;
  padding: clamp(28px, 4vw, 44px) 0;
}
.legal-sec::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(var(--rule));
  transform-origin: left;
}
.legal-sec:first-child { padding-top: 0; }
.legal-sec:first-child::before { display: none; }
.legal h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.legal p + p { margin-top: 1em; }
.legal-meta { margin-top: 20px; }
@media (min-width: 900px) {
  .legal-wrap { grid-template-columns: 3fr 8fr; gap: 80px; align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--sand);
  padding: clamp(56px, 7vw, 96px) 0 32px;
  color: var(--ink-soft);
}
.foot-grid { display: grid; gap: 40px; }
.foot-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.foot-grid h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.foot-grid li + li { margin-top: 2px; }
.foot-grid a { display: inline-block; padding: 6px 0; text-decoration: none; }
.foot-grid a:hover { color: var(--copper-deep); text-decoration: underline; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-bottom a { padding: 8px 0; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 5fr 3fr 4fr; gap: 64px; }
}

/* ---------- États initiaux des animations (uniquement si le mouvement est permis) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-hero],
  .js [data-reveal],
  .js .compare tbody tr,
  .js .row-main,
  .js .site-header .bar { opacity: 0; }
  .js .row,
  .js .legal-sec { --rule: 0; }
  .js .legal-sec:first-child { --rule: 1; }
  .js .tech-img { filter: grayscale(1) contrast(0.9); }
  .js .hero-title,
  .js .page-title { visibility: hidden; }
  .js .hero-title.is-split,
  .js .page-title.is-split { visibility: visible; }
}

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