/* Transparence IA — systeme visuel partage.
   Une seule feuille pour les 28 pages : jetons, typographie, coquille
   (en-tete, pied, fil d'Ariane), composants d'article et de vente.
   Les alias --navy / --gold / --hairline existent le temps que les
   regles locales restantes soient reprises une a une. */

:root {
    --field: #eef1f3;
    --paper: #ffffff;
    --ink: #171b1f;
    --muted: #5a6570;
    --rule: #c9d2d7;
    --rule-soft: #dfe5e8;
    --stamp: #463a94;
    --open: #a8321c;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --sans: 'Libre Franklin', system-ui, sans-serif;
    --display: 'Bricolage Grotesque', 'Libre Franklin', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--field); color: var(--ink);
    font-family: var(--sans); font-weight: 400;
    font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--stamp); color: #fff; }
  a { color: var(--stamp); }
  :focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

  .frame { max-width: 74rem; margin: 0 auto; padding: 0 5vw; }
  .sheet { background: var(--paper); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }

  /* rythmes verticaux différenciés : toutes les sections ne se valent pas */
  .pad-lg { padding-top: 6.5rem; padding-bottom: 6.5rem; }
  .pad-md { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .pad-sm { padding-top: 3.25rem; padding-bottom: 3.25rem; }

  h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
  h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin-bottom: .9rem; }
  h3 { font-size: 1.08rem; letter-spacing: -0.015em; }
  .lede { color: var(--muted); max-width: 46rem; }
  .eyebrow {
    display: block; font-family: var(--mono); font-weight: 500; font-size: .72rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--stamp); margin-bottom: 1rem;
  }

  /* ---- en-tête ---- */
  header.top {
    position: sticky; top: 0; z-index: 200;
    background: rgba(238, 241, 243, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
  }
  .top .frame { display: flex; justify-content: space-between; align-items: center; padding-top: .8rem; padding-bottom: .8rem; }
  .brand { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: .5rem; }
  .brand .bia { color: var(--stamp); }
  .top-right { display: flex; align-items: center; gap: 1.5rem; }
  .top nav { display: flex; align-items: center; gap: 1.5rem; }
  .top nav a { color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 500; }
  .top nav a:hover { color: var(--ink); }
  .burger { display: none; width: 36px; height: 34px; background: none; border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; position: relative; flex: none; }
  .burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
  .burger span:first-child { top: 12px; }
  .burger span:last-child { top: 19px; }
  .burger.x span:first-child { top: 16px; transform: rotate(45deg); }
  .burger.x span:last-child { top: 16px; transform: rotate(-45deg); }
  .mnav { display: none; }

  /* ---- boutons : angles droits, registre plutôt que pilule ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 1.4rem; border-radius: 4px; border: 1px solid var(--ink);
    background: var(--ink); color: var(--paper); text-decoration: none;
    font-family: var(--sans); font-size: .9rem; font-weight: 500; cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease);
  }
  .btn:hover { background: var(--stamp); border-color: var(--stamp); }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
  .btn.ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
  .btn-sm { height: 38px; font-size: .84rem; padding: 0 1.1rem; }
  .quiet { color: var(--muted); font-size: .88rem; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
  .quiet:hover { color: var(--stamp); border-color: var(--stamp); }
  .note { font-size: .8rem; color: var(--muted); }

  /* ---- HERO ---- */
  .hero { padding: 4.5rem 0 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 26ch; }
  .hero .sub { margin-top: 1.4rem; font-size: 1.12rem; color: var(--muted); max-width: 44rem; }
  .hero .sub b { color: var(--ink); font-weight: 500; }
  .hero-form { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; max-width: 46rem; }
  .hero-form input {
    flex: 1 1 12rem; min-width: 0; height: 44px; padding: 0 .95rem;
    border: 1px solid var(--rule); border-radius: 4px; background: var(--paper);
    font-family: var(--mono); font-size: .88rem; color: var(--ink);
  }
  .hero-form input::placeholder { color: #93a0a8; }
  .hero-alt { margin-top: .9rem; font-size: .85rem; color: var(--muted); }

  /* ---- LE REGISTRE : élément signature ---- */
  .reg-wrap { margin-top: 2.6rem; }
  .reg {
    background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
    overflow: hidden; box-shadow: 0 24px 60px -44px rgba(23, 27, 31, .55);
  }
  .reg-head {
    display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
    padding: .8rem 1.1rem; border-bottom: 1px solid var(--rule);
    background: #f7f9fa; font-family: var(--mono); font-size: .74rem; color: var(--muted);
  }
  .reg-head b { color: var(--ink); font-weight: 500; }
  .reg-head .sep { color: var(--rule); }
  .reg-scan { position: relative; height: 2px; background: var(--rule-soft); overflow: hidden; }
  .reg-scan i { position: absolute; inset: 0 100% 0 0; background: var(--stamp); }
  html.js .reg-scan i { animation: sweep 1.15s var(--ease) forwards; }
  @keyframes sweep { to { inset: 0 0 0 0; } }
  table.reg-table { width: 100%; border-collapse: collapse; }
  .reg-table caption { text-align: left; padding: .9rem 1.1rem 0; font-size: .82rem; color: var(--muted); }
  .reg-table th, .reg-table td { padding: .7rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
  .reg-table thead th {
    font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); white-space: nowrap;
  }
  .reg-table tbody tr:last-child td { border-bottom: none; }
  .reg-table .c-usage { font-weight: 500; font-size: .92rem; }
  .reg-table .c-tool { font-family: var(--mono); font-size: .82rem; color: var(--muted); white-space: nowrap; }
  .reg-table .c-rule { font-size: .86rem; color: var(--muted); max-width: 26rem; }
  .reg-table .c-rule b { color: var(--ink); font-weight: 500; }
  .reg-table .c-who { white-space: nowrap; }
  .reg-table .c-proof { font-family: var(--mono); font-size: .76rem; color: var(--stamp); white-space: nowrap; }
  .who {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--mono); font-size: .78rem; font-weight: 500;
  }
  .who::before { content: ""; width: 7px; height: 7px; flex: none; }
  .who.you { color: var(--open); }
  .who.you::before { background: var(--open); }
  .who.vendor { color: var(--stamp); }
  .who.vendor::before { background: var(--stamp); }
  .who.none { color: var(--muted); }
  .who.none::before { background: var(--rule); }
  .reg-foot {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: .85rem 1.1rem; border-top: 1px solid var(--rule); background: #f7f9fa;
    font-family: var(--mono); font-size: .74rem; color: var(--muted);
  }
  html.js .reg-table tbody tr { opacity: 0; transform: translateY(6px); }
  html.js .reg-table tbody tr.in { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }

  /* ---- QUI AGIT : trois colonnes ---- */
  .who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
  .who-card { background: var(--paper); border: 1px solid var(--rule-soft); border-top: 3px solid var(--rule); border-radius: 4px; padding: 1.4rem 1.3rem; }
  .who-card.is-you { border-top-color: var(--open); }
  .who-card.is-vendor { border-top-color: var(--stamp); }
  .who-card h3 { margin-bottom: .5rem; }
  .who-card p { font-size: .9rem; color: var(--muted); }
  .who-card .ref { display: block; margin-top: .8rem; font-family: var(--mono); font-size: .74rem; color: var(--ink); }

  /* ---- listes à filets ---- */
  .rows { border-top: 1px solid var(--rule); margin-top: 1.6rem; }
  .row { border-bottom: 1px solid var(--rule-soft); padding: 1.05rem 0; }
  .row .name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.04rem; letter-spacing: -0.015em; }
  .row .desc { display: block; margin-top: .3rem; max-width: 62ch; font-size: .9rem; color: var(--muted); }
  a.row { display: block; text-decoration: none; color: inherit; position: relative; padding-right: 2.4rem; }
  a.row::after { content: "→"; position: absolute; right: .3rem; top: 1.1rem; color: var(--stamp); transition: transform .18s var(--ease); }
  a.row:hover .name { color: var(--stamp); }
  a.row:hover::after { transform: translateX(4px); }
  .group-title { display: block; font-family: var(--mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 2.2rem; }
  .group-title:first-of-type { margin-top: 0; }

  /* ---- risque à l'échelle ---- */
  .scale { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
  table.mini { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .86rem; }
  table.mini th, table.mini td { padding: .55rem .6rem; border-bottom: 1px solid var(--rule-soft); text-align: right; }
  table.mini th:first-child, table.mini td:first-child { text-align: left; }
  table.mini thead th { font-size: .68rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
  table.mini td:last-child { color: var(--stamp); }
  .trigger { border-left: 2px solid var(--rule); padding-left: 1.2rem; }
  .trigger li { list-style: none; font-size: .92rem; margin-bottom: .9rem; }
  .trigger li b { font-weight: 500; }
  .trigger li span { display: block; font-size: .84rem; color: var(--muted); }

  /* ---- tarifs ---- */
  .start { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem 1.6rem; margin-top: 2rem; }
  .start > div { flex: 1 1 22rem; }
  .start h3 { margin-bottom: .35rem; }
  .start p { font-size: .9rem; color: var(--muted); max-width: 48ch; }
  .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.1rem; }
  .tier { background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 6px; padding: 1.5rem 1.4rem; display: flex; flex-direction: column; }
  .tier.pick { border-color: var(--stamp); box-shadow: 0 0 0 1px var(--stamp); }
  .tier .t-name { font-family: var(--mono); font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--stamp); }
  .tier .t-for { display: block; margin-top: .4rem; font-size: .86rem; color: var(--muted); min-height: 2.6em; }
  .tier .t-price { font-family: var(--display); font-weight: 600; font-size: 2rem; letter-spacing: -0.03em; margin: .7rem 0 .1rem; white-space: nowrap; }
  .tier .t-price span { font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
  .tier .t-delay { font-family: var(--mono); font-size: .76rem; color: var(--ink); margin-bottom: .9rem; }
  .tier .t-inc { font-size: .89rem; color: var(--muted); flex: 1; }
  .tier .t-cta { margin-top: 1.2rem; }
  .tier .t-micro { display: block; margin-top: .6rem; font-size: .74rem; color: var(--muted); }
  .after-tiers { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); }

  /* ---- faq ---- */
  details { border-bottom: 1px solid var(--rule-soft); }
  details:first-of-type { border-top: 1px solid var(--rule); }
  summary { cursor: pointer; list-style: none; padding: 1rem .2rem; font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; display: flex; gap: .8rem; align-items: baseline; }
  summary::-webkit-details-marker { display: none; }
  summary .tri { flex: none; align-self: center; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid var(--stamp); transition: transform .22s var(--ease); }
  details[open] summary .tri { transform: rotate(90deg); }
  details .answer { padding: 0 .2rem 1.3rem 1.4rem; max-width: 48rem; color: var(--muted); font-size: .94rem; }

  /* ---- approfondir ---- */
  .deep { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .sec-list a { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule-soft); text-decoration: none; color: inherit; font-size: .94rem; }
  .sec-list a:hover { color: var(--stamp); }
  .sec-list a .s-what { color: var(--muted); font-size: .86rem; }
  .sec-list a:hover .s-what { color: var(--muted); }

  /* ---- checklist en PDF ---- */
  .pdf-strip { margin-top: 1.8rem; border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.2rem; }
  .pdf-strip p { font-size: .9rem; color: var(--muted); }
  .pdf-strip p b { color: var(--ink); font-weight: 500; }
  .pdf-strip form { display: flex; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 .7rem; }
  .pdf-strip input { flex: 1 1 11rem; min-width: 0; height: 38px; padding: 0 .8rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--field); font-family: var(--mono); font-size: .84rem; }
  .pdf-strip .note { font-size: .78rem; }

  /* ---- contact ---- */
  .contact { background: var(--ink); color: #e8ecef; }
  .contact h2 { color: #fff; max-width: 24ch; }
  .contact .eyebrow { color: #a99ff0; }
  .contact p { color: #b6bfc6; max-width: 30rem; }
  .contact a { color: #fff; }
  .split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .cform { display: grid; gap: 1.3rem; }
  .cform label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #a99ff0; margin-bottom: .35rem; }
  .cform input, .cform textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.28); color: #fff; font-family: var(--sans); font-size: 1rem; padding: .35rem 0; outline: none; resize: none; }
  .cform input:focus, .cform textarea:focus { border-color: #fff; }
  .cform input::placeholder { color: #7e8a93; }
  .cform .btn { justify-self: start; background: #fff; color: var(--ink); border-color: #fff; }
  .cform .btn:hover { background: #a99ff0; border-color: #a99ff0; color: var(--ink); }
  .cform .note { color: #8e99a1; }
  .cform .note a { color: #d6dce0; }

  footer { padding: 3rem 0 3.2rem; font-size: .84rem; color: var(--muted); line-height: 1.85; }
  footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1.4fr .9fr .9fr; gap: 2.6rem; }
  footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
  footer a:hover { color: var(--stamp); border-color: var(--stamp); }
  footer .f-title { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); display: block; margin-bottom: .5rem; }
  footer .f-copy { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .78rem; }
  .pay { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
  .pay .p-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

  html.js .reveal { opacity: 0; transform: translateY(10px); }
  html.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal, html.js .reg-table tbody tr { opacity: 1; transform: none; transition: none; }
    html.js .reg-scan i { animation: none; inset: 0; }
  }

  @media (max-width: 1080px) {
    .burger { display: block; }
    .top nav { display: none; }
    .who-grid { grid-template-columns: 1fr; }
    .scale, .deep, .split-even { grid-template-columns: 1fr; gap: 2.4rem; }
    .tiers { grid-template-columns: 1fr; }
    footer .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 860px) {
    .mnav { display: flex; position: fixed; inset: 0; z-index: 150; background: var(--field); flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.5rem; padding: 0 8vw; opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s; }
    .mnav.open { opacity: 1; visibility: visible; }
    .mnav a { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
    .mnav .m-sep { width: 2.4rem; height: 1px; background: var(--rule); }
    .mnav a.m-sub { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--muted); }
    .pad-lg { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .reg-table thead th { white-space: normal; }
    .reg-table thead th:nth-child(2), .reg-table td:nth-child(2) { display: none; }
    footer .foot-grid { grid-template-columns: 1fr; }
  }
  /* sous 620 px, le registre ne se scrolle pas : chaque usage devient un bloc */
  @media (max-width: 620px) {
    .top .btn.ghost { display: none; } /* déjà présent dans le menu burger */
    .reg-table thead { display: none; }
    .reg-table caption { padding: .9rem 1.1rem .2rem; }
    .reg-table tr { display: block; padding: .9rem 1.1rem; border-bottom: 1px solid var(--rule-soft); }
    .reg-table tbody tr:last-child { border-bottom: none; }
    .reg-table td { display: block; border: none; padding: 0; max-width: none; }
    .reg-table td:nth-child(2) { display: block; }
    .reg-table .c-usage { font-size: .98rem; }
    .reg-table .c-tool { margin-top: .15rem; }
    .reg-table .c-rule { margin-top: .45rem; }
    .reg-table .c-who { margin-top: .6rem; }
    .reg-table .c-proof { margin-top: .3rem; color: var(--muted); }
    .reg-head, .reg-foot { font-size: .7rem; line-height: 1.7; }
  }

/* ============================================================
   Alias de compatibilité + pages intérieures
   Les pages d'article, de secteur et les pages légales partagent
   un vocabulaire différent de l'accueil : colonne de lecture,
   fil d'Ariane, encadrés. Tout est ici, plus rien en local.
   ============================================================ */

:root {
  --prose: #333b42;      /* corps de texte long, plus lisible que --muted */
  /* alias des anciens noms, encore cités par des règles locales */
  --navy: var(--stamp);
  --gold: var(--stamp);
  --hairline: var(--rule);
}

/* ---- colonne de lecture (pages marquées <body class="doc">) ---- */
body.doc { background: var(--paper); }
body.doc .frame { max-width: 47rem; padding: 0 6vw; }
body.doc header.top .frame,
body.doc footer .frame { max-width: 66rem; }
body.doc main.frame { padding-top: 4rem; padding-bottom: 5rem; }
body.doc h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: .9rem; }
body.doc h2 { font-size: 1.38rem; margin: 2.6rem 0 .8rem; }
body.doc h3 { font-size: 1.06rem; margin: 1.8rem 0 .5rem; }
body.doc p { color: var(--prose); font-size: 1.0625rem; line-height: 1.7; }
body.doc p + p { margin-top: .9rem; }
body.doc ul, body.doc ol { margin: 1rem 0 1rem 1.3rem; color: var(--prose); }
body.doc li + li { margin-top: .5rem; }
body.doc header.top { position: static; background: var(--paper); }

p strong, li strong, td strong { color: var(--ink); font-weight: 500; }
blockquote {
  margin: 1.8rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 2px solid var(--stamp); color: var(--ink); font-size: 1.06rem;
}
blockquote cite { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .8rem; font-style: normal; color: var(--muted); }

/* ---- fil d'Ariane et date ---- */
.crumb {
  display: inline-block; font-family: var(--mono); font-size: .76rem;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px; margin-bottom: 1.8rem;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.crumb:hover { color: var(--stamp); border-color: var(--stamp); }
.meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 2.4rem; }

/* ---- .label : même traitement que .eyebrow ---- */
.label {
  display: block; font-family: var(--mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--stamp); margin-bottom: 1rem;
}

/* ---- .pill : bouton d'en-tête des pages intérieures ---- */
.top .pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 1.1rem;
  border: 1px solid var(--ink); border-radius: 4px; background: var(--ink);
  color: var(--paper) !important; text-decoration: none;
  font-size: .84rem; font-weight: 500;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.top .pill:hover { background: var(--stamp); border-color: var(--stamp); }

/* ---- bandes et colonnes héritées ---- */
.band { background: var(--field); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pad { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3.5rem; }
.split.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.rail { align-self: start; }
.rail p { color: var(--muted); font-size: .95rem; max-width: 26rem; }
.side { font-size: .98rem; color: var(--muted); max-width: 36rem; margin-top: .8rem; }

/* ---- encadrés : synthèse, réponse, avertissement ---- */
.tldr, .answer-box, .warn, .ok, .note-box {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.1rem 1.2rem; margin: 1.8rem 0; font-size: .98rem;
}
.tldr { background: var(--field); border-left: 3px solid var(--stamp); }
.answer-box { background: var(--paper); border-left: 3px solid var(--stamp); }
.warn { background: #fdf4f1; border-left: 3px solid var(--open); }
.ok { background: #f2f6f4; border-left: 3px solid #2f6b4f; }
.tldr p, .answer-box p, .warn p, .ok p { color: var(--prose); }
.tldr b, .answer-box b, .warn b { color: var(--ink); font-weight: 500; }

/* ---- chip ---- */
.tag, .a-tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .02em; color: var(--stamp); margin-bottom: .3rem;
}

/* ---- listes à cases ---- */
/* .chk porte trois sens dans le site : une ligne (div), une case a cocher
   (label, page merci) et une liste ordonnee (ol, page checklist). On ne
   met en flex que la premiere. */
.chk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2.4rem; }
div.chk { display: flex; align-items: baseline; gap: .9rem; }
div.chk .box { flex: none; width: 9px; height: 9px; background: var(--stamp); transform: translateY(-1px); }
div.chk p { font-size: .98rem; color: var(--prose); }
div.chk p strong { font-weight: 500; }
ol.chk, ul.chk { display: block; }

/* ---- étapes numérotées ---- */
.steps { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.6rem 2.2rem; }
.steps li, .step { border-top: 2px solid var(--rule); padding-top: .9rem; }
.steps li .num, .step .num { display: block; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-bottom: .45rem; }
.steps li b, .step b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: .35rem; }
.steps li p, .step p { font-size: .9rem; color: var(--muted); }

/* ---- appels à l'action de bas de page ---- */
.cta { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); }
.cta a { color: var(--stamp); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--stamp); }
.cta-band { background: var(--ink); color: #e8ecef; padding: 2.4rem 0; margin-top: 3.5rem; }
.cta-band h2, .cta-band .h { color: #fff; }
.cta-band p { color: #b6bfc6; }
.cta-band a { color: #fff; }
.cta-band a.btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band a.btn:hover { background: #a99ff0; border-color: #a99ff0; }
.cta-row { display: flex; gap: 1rem 1.6rem; align-items: center; flex-wrap: wrap; margin-top: 1.6rem; }
.cta-col { display: flex; flex-direction: column; gap: .5rem; }

/* ---- tableaux de comparaison ---- */
table.cmp, table.grid2 { width: 100%; border-collapse: collapse; font-size: .94rem; margin-top: 1.2rem; }
table.cmp th, table.cmp td, table.grid2 th, table.grid2 td { padding: .6rem .7rem; border-bottom: 1px solid var(--rule-soft); text-align: left; }
table.cmp thead th, table.grid2 thead th {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid var(--rule);
}
table.cmp .yes { color: var(--stamp); font-weight: 500; }
table.cmp .no { color: var(--muted); }

/* ---- maquette navigateur ---- */
.browser { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); background: #f7f9fa; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.browser-bar .url { margin-left: .45rem; flex: 1; font-family: var(--mono); font-size: .72rem; color: var(--muted); background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 3px; padding: .15rem .6rem; }
.browser img { display: block; width: 100%; }

/* ---- pied de page des pages intérieures ---- */
body.doc footer { border-top: 1px solid var(--rule); padding: 2.2rem 0 3rem; font-size: .84rem; }

@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.flip .rail { order: -1; }
  .chk-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* conteneur des pages qui utilisent <main> sans .frame */
body.doc main { max-width: 47rem; margin: 0 auto; padding: 4rem 6vw 5rem; }
body.doc main.frame { max-width: 47rem; }

/* ---- logotype : le lien ne doit pas heriter du style des liens ---- */
.brand, a.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.brand:hover { color: var(--stamp); }
.brand .bia, .bia { color: var(--stamp); }
.brand .mark { flex: none; }

/* ---- en-tete des pages qui utilisent .in plutot que .frame ---- */
.top .in { max-width: 66rem; margin: 0 auto; padding: 0 6vw; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header.top:has(.in) { padding: .8rem 0; }
body.doc header.top { padding: .7rem 0; }

/* ---- garde-fous de debordement ---- */
p, li, td, th, dd, .desc, .sub, .lede { overflow-wrap: break-word; }
@media (max-width: 680px) {
  body.doc table, table.cmp, table.grid2 { display: block; width: 100%; overflow-x: auto; }
}

/* ---- pivot fournisseurs ---- */
/* quatrième état du dossier : ce qui revient aux clients du fournisseur */
.who.client { color: var(--ink); }
.who.client::before { background: var(--ink); }

/* échéances datées */
.dates { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.dates li { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); }
.dates .d { font-family: var(--mono); font-size: .86rem; color: var(--ink); padding-top: .1rem; }
.dates .d.next { color: var(--open); font-weight: 500; }
.dates p { font-size: .94rem; color: var(--muted); }
.dates p b { color: var(--ink); font-weight: 500; }
@media (max-width: 620px) { .dates li { grid-template-columns: 1fr; gap: .2rem; } }

/* menu déroulant du formulaire de contact, sur fond sombre */
.cform select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.28);
  color: #fff; font-family: var(--sans); font-size: 1rem; padding: .35rem 0; outline: none;
}
.cform select:focus { border-color: #fff; }
.cform select option { color: var(--ink); background: var(--paper); }

/* inscription à la lettre mensuelle */
.letter { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.letter > div { flex: 1 1 24rem; }
.letter form { display: flex; gap: .6rem; flex-wrap: wrap; flex: 1 1 20rem; }
.letter input { flex: 1 1 13rem; min-width: 0; height: 44px; padding: 0 .95rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); font-family: var(--mono); font-size: .88rem; color: var(--ink); }

/* cases à cocher et boutons radio des formulaires longs : une option par ligne */
label.chk { display: flex; align-items: baseline; gap: .55rem; margin: .4rem 0; font-size: .95rem; color: var(--prose); }
label.chk input { flex: none; transform: translateY(1px); }
