/* Bordure — site de présentation. Reprend les noms de classes du dev blog, posés sur les jetons du design system Bordure. */

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--radio); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-xs); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; }
code { background: var(--sunken); padding: 1px 5px; border-radius: var(--radius-xs); }
.num { font-variant-numeric: tabular-nums; }
mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em; text-decoration-color: var(--on-bar-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.txt { max-width: 720px; }
.txt p { margin: 0 0 1.1em; }
.cond { font-family: var(--font-display); }

/* barre du site : la barre de l'application, en tête de chaque page */
.site-bar { height: auto; min-height: var(--bar-height); flex-wrap: wrap; row-gap: var(--space-1); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.site-bar .b-appbar__logo { height: 20px; }
.site-bar a.b-appbar__brand { display: inline-flex; align-items: center; }
.site-bar .b-appbar__tab { text-decoration: none; }
.site-bar .b-appbar__tab:hover { color: var(--on-bar); }
.site-lang { display: flex; gap: var(--space-1); }
.site-foot { margin-top: 96px; background: var(--bar); color: var(--on-bar-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); padding-top: var(--space-8); padding-bottom: var(--space-8); font-size: 14px; line-height: 1.5; }
.site-foot img { display: block; height: 20px; width: auto; }
.site-foot a { color: var(--on-bar); }
.site-foot p { margin: 0; max-width: 62ch; }

/* masthead d'un article */
.mast { position: relative; overflow: hidden; background: var(--bar); color: var(--on-bar); padding: 56px 0 48px; }
.mastglyph { position: absolute; right: -0.02em; top: -0.14em; font-family: var(--font-display); font-weight: 800; font-size: 340px; line-height: 1; color: rgba(242, 240, 235, 0.06); pointer-events: none; user-select: none; white-space: nowrap; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font: 600 13px/16px var(--font-sans); letter-spacing: .02em; color: var(--on-bar-2); margin-bottom: 20px; }
.kdot { flex: none; width: var(--capsule-w); height: var(--capsule-h); background: var(--brand); border-radius: var(--radius-pill); }
.ktag { background: var(--bar-raised); border-radius: var(--radius-sm); padding: 3px 8px; color: var(--on-bar); }
.h1 { position: relative; margin: 0 0 24px; max-width: 20ch; font-family: var(--font-display); font-weight: 800; font-size: 80px; line-height: .96; letter-spacing: 0; text-wrap: balance; }
.dek { position: relative; margin: 0 0 28px; max-width: 56ch; font-size: 20px; line-height: 1.5; color: var(--on-bar); }
.vers { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.versnote { position: relative; margin: 0 0 26px; max-width: 62ch; font-size: 14px; line-height: 1.5; color: var(--on-bar-2); }
.vtag { font: 600 13px/16px var(--font-sans); font-variant-numeric: tabular-nums; padding: 4px 9px; background: var(--bar-raised); border-radius: var(--radius-sm); color: var(--on-bar); }
.byline { position: relative; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 18px; border-top: 1px solid var(--bar-raised); font-size: 14px; color: var(--on-bar-2); }
.byline b { color: var(--on-bar); font-weight: 600; }

/* article */
.lede { font-size: 22px; line-height: 1.55; color: var(--ink); max-width: 720px; margin: 0 0 1.1em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; margin: 36px 0 12px; }
.stat { background: var(--panel); padding: 18px 20px; }
.statn { display: block; font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.statl { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

.toc { margin: 28px 0 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.toclabel { font: 600 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); margin-bottom: 10px; }
.toclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 4px 28px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.toclist li { display: flex; align-items: baseline; gap: 8px; }
.toclist a { color: var(--ink); text-decoration: none; }
.toclist a:hover { text-decoration: underline; }
.tocn { flex: 0 0 24px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }

.sec { margin-top: 84px; scroll-margin-top: 24px; }
.sechead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.secno { font: 700 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--on-inverse); background: var(--inverse); padding: 0 8px; border-radius: var(--radius-xs); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 50px; line-height: 1; letter-spacing: 0; text-wrap: balance; }
.h3 { margin: 38px 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: 0; }

/* figures */
.fig { margin: 30px 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; }
.figbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 10px 16px; background: var(--sunken); border-bottom: 1px solid var(--rule); font: 600 13px/18px var(--font-sans); letter-spacing: .01em; color: var(--ink-2); }
.figbody { padding: 18px; }
.figcap { margin: 0; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.demo { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px dashed var(--rule-control); color: var(--ink-3); font: 700 12px/1 var(--font-sans); letter-spacing: .01em; border-radius: var(--radius-sm); white-space: nowrap; }
.rowlabel { margin: 0 0 8px; font: 600 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.step { background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.step.dark { background: var(--ink); color: var(--on-bar); border-color: var(--ink); }
.step.dark .stepd { color: var(--on-bar-2); }
.stepn { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.step.dark .stepn { color: var(--on-bar-2); }
.stept { font-size: 16px; font-weight: 600; line-height: 1.3; }
.stepd { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.grid2w { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cardt { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: 0; }
.cardp { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.cardlink { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; }
.pillarn { font: 600 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); }

.formula { margin: 24px 0; padding: 16px 20px; background: var(--sunken); border: 1px solid var(--rule); border-radius: var(--radius-md); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.9; overflow-x: auto; }
.fline { white-space: nowrap; }
.fnote { color: var(--ink-3); font-size: 13px; }

.scroll { overflow-x: auto; }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th { text-align: left; padding: 10px 14px; background: var(--sunken); border-bottom: 1px solid var(--rule); font: 600 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.k { font-weight: 600; white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.num, .tbl td.r { font-variant-numeric: tabular-nums; }
.fig .tbl th:first-child, .fig .tbl td:first-child { padding-left: 16px; }

.aside { margin: 32px 0; max-width: 720px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.aside p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pull { margin: 44px 0; padding: 22px 0; max-width: 760px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.pullq { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.12; }
.pullc { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .01em; color: var(--ink-3); }

.list { margin: 0 0 1.1em; padding-left: 20px; }
.list li { margin: 0 0 6px; }
.olist { margin: 0; padding: 0; list-style: none; counter-reset: ol; }
.olist li { counter-increment: ol; display: flex; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; }
.olist li:last-child { border-bottom: 0; }
.olist li::before { content: counter(ol); flex: 0 0 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }

.groups { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.grp { flex: 1 1 200px; min-width: 0; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 12px 14px; }
.grp.head { background: var(--ink); color: var(--on-bar); border-color: var(--ink); }
.grpn { font-size: 16px; font-weight: 600; }
.grpm { font-size: 14px; color: var(--ink-3); }
.grp.head .grpm { color: var(--on-bar-2); }
.gap { flex: 0 0 auto; align-self: center; padding: 3px 9px; border: 1px dashed var(--rule-control); border-radius: var(--radius-xs); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); background: var(--paper); }

.barrow { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(160px, 3fr) 80px 64px 96px; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; min-width: 620px; font-variant-numeric: tabular-nums; }
.barrow:last-child { border-bottom: 0; }
.barhead { background: var(--sunken); font: 600 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); }
.bartrack { height: 12px; background: var(--sunken); border-radius: var(--radius-xs); }
.barfill { height: 12px; background: var(--ink-3); border-radius: var(--radius-xs); }
.barfill.hot { background: var(--ink); }
.barrow3 { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(160px, 3fr) 80px; align-items: center; gap: 14px; min-width: 460px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; font-variant-numeric: tabular-nums; }
.barrow3.barhead { font-size: 12px; }

.time { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.tnode { flex: 1 1 210px; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tnode.dark { background: var(--ink); color: var(--on-bar); border-color: var(--ink); }
.tnode.dark .stepd { color: var(--on-bar-2); }
.tnode.dark .stepn { color: var(--on-bar-2); }
.tchev { flex: 0 0 auto; align-self: center; font-size: 18px; color: var(--ink-3); }

.stack { display: flex; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); overflow: hidden; min-height: 64px; }
.seg { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 0; font-size: 14px; border-right: 1px solid var(--rule-strong); }
.seg:last-child { border-right: 0; }
.seg b { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.seg.a { background: var(--ink); color: var(--on-bar); }
.seg.a span { color: var(--on-bar-2); }
.seg.b { background: var(--rule-strong); color: var(--ink); }
.seg.c { background: var(--sunken); color: var(--ink); }
.win { display: flex; min-width: 520px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); overflow: hidden; }
.wseg { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 0; background: var(--sunken); border-right: 1px solid var(--rule-strong); font-size: 14px; }
.wseg b { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.wseg.goal { background: var(--ink); color: var(--on-bar); border-right: 0; }
.mgrid { display: grid; grid-template-columns: 150px repeat(5, minmax(84px, 1fr)); gap: 1px; min-width: 640px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; font-size: 14px; }
.mg { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 10px; background: var(--panel); text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.mg.h { background: var(--sunken); font: 600 12px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); }
.mg.n { justify-content: flex-start; text-align: left; font-weight: 600; }
.mg.t { background: var(--ink); color: var(--on-bar); }
.mg.l { background: var(--rule-strong); color: var(--ink); }
.mg.j { box-shadow: inset 0 0 0 2px var(--ink); }
.mg.w { background: repeating-linear-gradient(135deg, var(--sunken) 0 6px, var(--panel) 6px 12px); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.mg.e { color: var(--ink-disabled); font-weight: 400; }
.legend { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.colophon { margin-top: 96px; padding: 22px 0 64px; border-top: 1px solid var(--rule-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--ink-3); }
.colophon b { color: var(--ink); }

/* accueil */
.s-hero { padding: 72px 0 24px; }
.s-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.s-hero-copy { flex: 1 1 520px; min-width: 0; }
.s-hero-demo { flex: 1 1 440px; min-width: 0; max-width: 560px; }
.s-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; font: 600 14px/18px var(--font-sans); letter-spacing: .01em; color: var(--ink-3); }
.s-eyebrow .kdot { background: var(--brand); }
.s-title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 800; font-size: 104px; line-height: .92; letter-spacing: 0; text-wrap: balance; }
.s-lead { margin: 0 0 32px; max-width: 52ch; font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
a.b-btn, a.b-btn:hover { color: var(--ink); text-decoration: none; }
a.b-btn--primary, a.b-btn--primary:hover { color: var(--on-inverse); }
a.b-btn--quiet, a.b-btn--quiet:hover { color: var(--ink-2); }
a.b-btn--quiet:hover { color: var(--ink); }
.s-actions a.b-btn { text-decoration: none; }
.s-fine { margin: 0; font-size: 14px; color: var(--ink-3); }
.s-demo-feed { display: grid; gap: var(--space-2); padding: var(--space-4); }
.s-demo-feed .b-note { background: var(--radio-tint); border-color: var(--radio); }
.s-demo-feed .b-note::before { display: none; }
.s-demo-feed .b-note { grid-template-columns: minmax(0, 1fr); }
.s-demo-feed .b-note__body { grid-column: 1; }
.s-gaps { font-size: 22px; }
.s-sec { padding: 72px 0 0; scroll-margin-top: 16px; }
.s-label { margin: 0 0 12px; font: 600 13px/16px var(--font-sans); letter-spacing: .02em; color: var(--ink-3); }
.s-h2 { margin: 0 0 20px; max-width: 18ch; font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height: .98; letter-spacing: 0; text-wrap: balance; }
.s-intro { margin: 0 0 32px; max-width: 64ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.s-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); align-items: stretch; }
.s-three .b-panel__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.s-three .b-panel__title { font-size: 18px; line-height: 22px; }
.s-three ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.s-three li { margin: 0 0 8px; }
.s-three li:last-child { margin-bottom: 0; }
.s-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); }
.s-pillars .card.s-more { background: var(--ink); border-color: var(--ink); color: var(--on-bar); }
.s-pillars .card.s-more .cardp { color: var(--on-bar-2); }
.s-pillars .card.s-more .cardt { color: var(--on-bar); }
.s-pillars .card.s-more a { color: var(--on-bar); }
.s-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--space-4); }
.s-post { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 22px 24px 24px; }
.s-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--ink-3); }
.s-post-meta .b-tag { height: 22px; font-size: 13px; }
.s-post h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: 0; text-wrap: balance; }
.s-post p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.s-post-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.s-post-act a.b-btn { text-decoration: none; }
.s-note { margin: 28px 0 0; font-size: 14px; color: var(--ink-3); max-width: 70ch; }

@media (max-width: 720px) {
  .mast { padding: 44px 0 40px; }
  .mastglyph { font-size: 200px; }
  .h1 { font-size: 52px; }
  .dek { font-size: 18px; }
  .h2 { font-size: 36px; }
  .pullq { font-size: 28px; }
  .lede { font-size: 19px; }
  .sec { margin-top: 64px; }
  .s-hero { padding-top: 40px; }
  .s-title { font-size: 64px; }
  .s-lead { font-size: 19px; }
  .s-h2 { font-size: 42px; }
  .s-post h3 { font-size: 34px; }
  .s-sec { padding-top: 56px; }
}
