/* Auto Stock Management — feuille de style éditoriale.
   Papier chaud, titres serif, filets fins, grille asymétrique. */

:root {
  --paper: #f7f4ed;
  --paper-2: #fffdf8;
  --paper-3: #f1ece0;
  --ink: #17140f;
  --ink-2: #322d24;
  --muted: #6e6656;
  --rule: #ddd6c6;
  --rule-soft: #eae4d6;
  --accent: #a63a1e;
  --accent-2: #c85330;
  --accent-soft: #f4e5dc;
  --green: #3f6b52;
  --blue: #2f5069;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1140px;
  --gut: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

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

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

code, pre, .mono { font-family: var(--mono); }
code {
  font-size: .86em;
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: .08em .34em;
}
pre code {
  background: none; border: 0; padding: 0;
  font-size: inherit; border-radius: 0; color: inherit;
}

.muted { color: var(--muted); }

/* ---------------------------------------------------------------- Barre haute */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.brand:hover .brand__mark { background: var(--ink); color: var(--paper); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: .95rem; font-weight: 600; }
.brand__text small { font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .04em; }

.topnav { margin-left: auto; display: flex; gap: 22px; }
.topnav a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: lowercase; text-decoration: none; color: var(--muted);
  padding: 4px 0; border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.topnav a:hover { color: var(--ink); }
.topnav a.is-current { color: var(--ink); border-bottom-color: var(--accent); }

.topbar__cta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  text-decoration: none; padding: 9px 16px;
  background: var(--ink); color: var(--paper); border-radius: 2px;
  transition: background .2s, transform .2s;
}
.topbar__cta:hover { background: var(--accent); color: var(--paper); transform: translateY(-1px); }

.progress { height: 2px; background: transparent; }
.progress span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform .08s linear;
}

@media (max-width: 860px) {
  .topnav, .topbar__cta { display: none; }
}

/* ---------------------------------------------------------------- Étiquettes */

.kicker {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); flex: none;
}

/* ---------------------------------------------------------------- Hero */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 6vw, 72px); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.1rem);
  margin: 0 0 22px;
}
.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  line-height: 1.42; color: var(--ink-2);
  margin: 0 0 18px; max-width: 34ch;
}
.hero__copy > p:not(.lead):not(.kicker) { color: var(--muted); max-width: 46ch; margin: 0 0 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 34px; }
/* Les deux boutons « code » forment toujours une deuxième ligne, ensemble. */
.code-links { display: flex; gap: 12px; flex-wrap: wrap; flex-basis: 100%; }
.code-links[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
  padding: 11px 16px; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary .muted { color: rgba(255, 255, 255, .72); }
.btn--primary:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* Logos dans les boutons : ils disent ce qu'il y a dans le dépôt. */
.ic { display: block; flex: none; }
.btn .ic { width: 17px; height: 17px; margin-right: -3px; transition: transform .18s; }
.btn .ic + .ic { margin-left: -5px; margin-right: 0; }
.btn:hover .ic { transform: scale(1.12); }
.btn--ghost:hover .ic { filter: drop-shadow(0 0 5px rgba(247, 244, 237, .7)); }

/* Faits du hero : un petit tableau à filets, pas des cartes. */
.hero__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  max-width: 460px;
}
.hero__facts li {
  padding: 13px 4px 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .82rem; color: var(--muted);
  font-family: var(--mono); letter-spacing: .01em;
  display: flex; align-items: flex-start; gap: 11px;
}
.hero__facts .ic { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hero__facts li:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--rule); }
.hero__facts li:nth-child(even) { padding-left: 18px; }
.hero__facts b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; margin-bottom: 1px;
}

/* Navigateur factice */
.browser {
  margin: 0; border: 1px solid var(--rule); border-radius: 7px;
  background: var(--paper-2); overflow: hidden;
  box-shadow: 0 1px 0 var(--rule), 0 22px 44px -28px rgba(23, 20, 15, .45);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-3);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); flex: none; }
.browser__bar span {
  margin-left: 8px; flex: 1;
  font-family: var(--mono); font-size: .66rem; color: var(--muted);
  background: var(--paper-2); border: 1px solid var(--rule-soft);
  border-radius: 3px; padding: 4px 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__bar .zoom {
  font-family: var(--mono); font-size: .64rem; color: var(--muted);
  text-decoration: none; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 3px;
}
.browser__bar .zoom:hover { color: var(--accent); border-color: var(--accent); }

.hero__shot { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.hero__shot:hover { transform: translateY(-4px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { max-width: none; }
}

/* ---------------------------------------------------------------- Bandeau technos */

.techs {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  background: var(--paper-2);
}
.techs__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.techs__label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0; flex: none;
}
.techs ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 30px); margin: 0; padding: 0; }
.techs li { display: flex; align-items: center; gap: 9px; }
.techs .ic {
  width: 26px; height: 26px;
  transition: transform .3s ease, filter .3s;
}
.techs li:hover .ic { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 4px 8px rgba(23, 20, 15, .22)); }
.techs span {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  transition: color .3s;
}
.techs li:hover span { color: var(--ink); }

/* ---------------------------------------------------------------- Bandeau besoin */

.band {
  background: var(--ink); color: var(--paper);
  padding: clamp(52px, 7vw, 84px) 0;
}
.flow { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.flow__intro {
  margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 86%, transparent);
  font-style: italic;
}
.flow__steps { list-style: none; margin: 0; padding: 0; }
.flow__steps li {
  display: grid; grid-template-columns: 46px 1fr; align-items: baseline;
  gap: 4px 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(247, 244, 237, .16);
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.flow__steps li:last-child { border-bottom: 1px solid rgba(247, 244, 237, .16); }
.flow__steps.is-visible li { opacity: 1; transform: none; }
.flow__steps li span {
  font-family: var(--mono); font-size: .72rem; color: var(--accent-2); letter-spacing: .06em;
}
.flow__steps li b { font-family: var(--display); font-weight: 500; font-size: 1.28rem; }
.flow__steps li small {
  grid-column: 2; font-family: var(--mono); font-size: .7rem;
  color: color-mix(in srgb, var(--paper) 56%, transparent);
}
.flow__steps li:nth-child(2) { transition-delay: .07s; }
.flow__steps li:nth-child(3) { transition-delay: .14s; }
.flow__steps li:nth-child(4) { transition-delay: .21s; }
.flow__steps li:nth-child(5) { transition-delay: .28s; }

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

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

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--rule); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(34px, 5vw, 60px);
  align-items: start;
}
.section__head .kicker { margin: 10px 0 0; grid-column: 1; grid-row: 1; }
.section__head h2 {
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  margin: 0; max-width: 24ch;
  grid-column: 2; grid-row: 1;
}
.section__head > p:last-child {
  margin: 16px 0 0; color: var(--muted); max-width: 62ch;
  grid-column: 2; grid-row: 2;
}
.section__head--row { display: block; }
.section__head--row .kicker, .section__head--row h2 { grid-column: auto; grid-row: auto; }

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; }
  .section__head .kicker, .section__head h2, .section__head > p:last-child { grid-column: 1; grid-row: auto; }
  .section__head .kicker { margin: 0 0 14px; }
}

.subhead {
  font-size: 1.45rem; margin: clamp(48px, 6vw, 72px) 0 22px;
  padding-top: 18px; border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------------- Lecteur */

.player { display: grid; grid-template-columns: minmax(0, 1fr) 274px; gap: 24px; align-items: start; }
.player__screen {
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 48px -30px rgba(23, 20, 15, .5);
}
.player__screen video { width: 100%; display: block; }

.chapters {
  border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-2);
  max-height: 520px; overflow: auto;
}
.chapters__title {
  margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  position: sticky; top: 0; background: var(--paper-2); z-index: 1;
}
.chapters__title small { display: block; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 3px; font-size: .68rem; }
.chapters ol { list-style: none; margin: 0; padding: 6px; }
.chapters button {
  display: flex; gap: 12px; align-items: baseline; width: 100%;
  background: none; border: 0; border-left: 2px solid transparent;
  text-align: left; cursor: pointer; padding: 8px 10px;
  font-family: var(--body); font-size: .9rem; color: var(--ink-2);
  border-radius: 0 3px 3px 0;
  transition: background .18s, color .18s, border-color .18s;
}
.chapters button time { font-family: var(--mono); font-size: .68rem; color: var(--muted); flex: none; width: 34px; }
.chapters button:hover { background: var(--paper-3); color: var(--ink); }
.chapters button.is-active { background: var(--accent-soft); border-left-color: var(--accent); color: var(--ink); }
.chapters button.is-active time { color: var(--accent); }

.note { margin: 20px 0 0; font-size: .86rem; color: var(--muted); max-width: 78ch; }

@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .chapters { max-height: 300px; }
}

/* ---------------------------------------------------------------- Visite des écrans */

.tour { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.tour__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.tour__tabs button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  padding: 13px 14px; font-family: var(--body); color: var(--muted);
  transition: background .18s, border-color .18s, color .18s, padding-left .18s;
}
.tour__tabs button b { display: block; font-weight: 600; font-size: .98rem; color: var(--ink); }
.tour__tabs button small { font-family: var(--mono); font-size: .66rem; }
.tour__tabs button:hover { background: var(--paper-3); padding-left: 18px; }
.tour__tabs button[aria-selected="true"] {
  border-left-color: var(--accent); background: var(--accent-soft); color: var(--ink-2);
}
.tour__view img { transition: opacity .22s ease; }
.tour__view img.is-swapping { opacity: 0; }

@media (max-width: 820px) {
  .tour { grid-template-columns: 1fr; }
  .tour__tabs { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--rule); }
  .tour__tabs button { border-bottom: 0; border-left: 0; border-top: 2px solid transparent; white-space: nowrap; }
  .tour__tabs button[aria-selected="true"] { border-top-color: var(--accent); }
}

/* ---------------------------------------------------------------- Listes éditoriales */

.features, .decisions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0 clamp(26px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}
.features article, .decisions article {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.is-visible article { opacity: 1; transform: none; }
.features article:nth-child(2), .decisions article:nth-child(2) { transition-delay: .06s; }
.features article:nth-child(3), .decisions article:nth-child(3) { transition-delay: .12s; }
.features article:nth-child(4), .decisions article:nth-child(4) { transition-delay: .18s; }
.features article:nth-child(5), .decisions article:nth-child(5) { transition-delay: .24s; }
.features article:nth-child(6), .decisions article:nth-child(6) { transition-delay: .30s; }

.features h3, .decisions h4 {
  font-size: 1.18rem; margin: 0 0 9px;
  display: flex; align-items: baseline; gap: 10px;
}
.features h3::before, .decisions h4::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none; transform: translateY(-3px);
}
.features p, .decisions p { margin: 0; color: var(--muted); font-size: .97rem; }
.decisions .ref {
  margin-top: 11px; font-family: var(--mono); font-size: .68rem; color: var(--accent);
  word-break: break-word;
}
.decisions .ref a { text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.decisions .ref a:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- Architecture */

.arch { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 52px); align-items: start; }

.arch__diagram { margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.arch__diagram.is-visible { opacity: 1; transform: none; }
.arch__diagram svg { width: 100%; color: var(--muted); }
.ring rect { fill: none; stroke: var(--rule); stroke-width: 1.2; transition: stroke .3s, fill .3s; }
.ring--infra rect { fill: var(--paper-2); }
.ring--app rect { fill: var(--paper-3); }
.ring--domain rect { fill: var(--accent-soft); stroke: var(--accent); }
.ring:hover rect { stroke: var(--accent); }
.ring__title { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.ring__sub { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.ring--domain .ring__title { fill: var(--accent); font-size: 14px; }
.adapters .chip { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.dep { stroke: var(--accent); stroke-width: 1.4; fill: none; }
.arch__diagram figcaption { margin-top: 16px; font-size: .88rem; color: var(--muted); }

.arch__code { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--ink); }
.code__label {
  display: flex; justify-content: space-between; gap: 12px; margin: 0;
  padding: 11px 16px; border-bottom: 1px solid rgba(247, 244, 237, .14);
  font-family: var(--mono); font-size: .68rem;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.code__label .muted { color: rgba(247, 244, 237, .45); }
.arch__code pre {
  margin: 0; padding: 18px 16px; overflow-x: auto;
  font-size: .78rem; line-height: 1.62; color: #e8e2d6;
}
.arch__code .c { color: #8a9a86; font-style: italic; }
.arch__code .k { color: #d98f6b; }
.arch__code .f { color: #e8c07d; }
.code__caption {
  margin: 0; padding: 14px 16px; border-top: 1px solid rgba(247, 244, 237, .14);
  font-size: .84rem; color: rgba(247, 244, 237, .66);
}
.code__caption code { background: rgba(247, 244, 237, .1); border-color: transparent; color: #e8c07d; }

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

/* Pourquoi le DDD */
.why {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 2px solid var(--ink);
  padding-top: 26px;
}
.why h3 { font-size: 1.5rem; margin: 0 0 20px; }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 48px); }
.why__grid > p { margin: 0; font-size: 1.04rem; }
.why dl { margin: 0; display: grid; gap: 16px; }
.why dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.why dd { margin: 0; color: var(--muted); font-size: .95rem; }
.why__adr { margin: 22px 0 0; font-size: .92rem; }

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

/* ---------------------------------------------------------------- Tests */

.tests { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.tests.is-visible { opacity: 1; transform: none; }
.tests__bar { display: flex; height: 12px; border-radius: 2px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.tests__bar span { flex: var(--w); transition: flex .8s ease; }
.tests__bar .t-domain { background: var(--accent); }
.tests__bar .t-app { background: var(--blue); }
.tests__bar .t-infra { background: var(--green); }

.tests__legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 26px 0 0; }
.tests__legend > div { padding-top: 14px; border-top: 2px solid var(--rule); }
.tests__legend .t-domain { border-top-color: var(--accent); }
.tests__legend .t-app { border-top-color: var(--blue); }
.tests__legend .t-infra { border-top-color: var(--green); }
.tests__legend dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tests__legend dt b { display: block; font-family: var(--display); font-weight: 600; font-size: 2.3rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.tests__legend dd { margin: 0; color: var(--muted); font-size: .93rem; }

.checks { list-style: none; margin: clamp(34px, 4vw, 52px) 0 0; padding: 0; max-width: 86ch; border-top: 1px solid var(--rule); }
.checks li {
  padding: 14px 0 14px 30px; border-bottom: 1px solid var(--rule);
  position: relative; font-size: .97rem; color: var(--ink-2);
}
.checks li::before {
  content: "—"; position: absolute; left: 0; top: 14px;
  font-family: var(--mono); color: var(--accent); font-size: .9rem;
}
.ref-inline { font-family: var(--mono); font-size: .8rem; color: var(--accent); }

/* ---------------------------------------------------------------- Stack */

.stack dl {
  margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.stack dt {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule);
}
.stack dd {
  margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); font-size: .98rem;
}
@media (max-width: 700px) {
  .stack dl { grid-template-columns: 1fr; }
  .stack dt { padding-bottom: 2px; border-bottom: 0; }
  .stack dd { padding-top: 6px; }
}

/* ---------------------------------------------------------------- Note personnelle */

.perso { background: var(--paper-2); border-block: 1px solid var(--rule); padding: clamp(56px, 7vw, 88px) 0; }
.perso__inner { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.perso blockquote {
  margin: 0; font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-2);
  max-width: 60ch;
}
.perso blockquote p { margin: 0 0 16px; }
.perso blockquote p:last-child { margin-bottom: 0; }
.perso blockquote p:first-of-type::first-letter {
  font-family: var(--display); font-size: 3.1em; line-height: .82;
  float: left; padding: .08em .12em 0 0; color: var(--accent);
  font-weight: 600;
}
.perso .sign {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.perso .sign strong {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem;
  font-variation-settings: "SOFT" 80, "WONK" 1; font-style: italic;
  letter-spacing: -.01em;
}
.perso .sign span { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

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

/* ---------------------------------------------------------------- Statut */

.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .kicker { color: var(--accent-2); }
.section--ink .kicker::before { background: var(--accent-2); }
.statut { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.statut h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 16ch; }
.statut ul { list-style: none; margin: 0; padding: 0; }
.statut li {
  padding: 16px 0; border-top: 1px solid rgba(247, 244, 237, .16);
  color: color-mix(in srgb, var(--paper) 74%, transparent);
  font-size: .99rem;
}
.statut li:last-child { border-bottom: 1px solid rgba(247, 244, 237, .16); }
.statut li b { color: var(--paper); font-weight: 600; }

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

/* ---------------------------------------------------------------- Pied */

.footer { padding: clamp(48px, 6vw, 72px) 0 32px; border-top: 1px solid var(--rule); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.footer__inner strong { font-family: var(--display); font-weight: 600; font-size: 1.35rem; display: block; margin-bottom: 10px; }
.footer__inner p { margin: 0; color: var(--muted); max-width: 56ch; font-size: .97rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__links a {
  display: block; padding: 9px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: .74rem; text-decoration: none; color: var(--ink-2);
  transition: padding-left .2s, color .2s;
}
.footer__links a::after { content: " ↗"; color: var(--rule); }
.footer__links a:hover { color: var(--accent); padding-left: 8px; }
.footer__small { margin: 40px auto 0; font-size: .8rem; color: var(--muted); font-family: var(--mono); }

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

/* ---------------------------------------------------------------- Mouvement réduit */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow__steps li, .features article, .decisions article, .arch__diagram, .tests { opacity: 1 !important; transform: none !important; }
}

/* Sans JavaScript, tout reste visible. */
html:not(.js) .flow__steps li,
html:not(.js) .features article,
html:not(.js) .decisions article,
html:not(.js) .arch__diagram,
html:not(.js) .tests { opacity: 1; transform: none; }
