/* Base : remise à zéro, typographie, défilement, focus. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-14);
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body {
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
input,
textarea,
[contenteditable="true"],
.selectable,
.md,
pre,
code {
  user-select: text;
  -webkit-user-select: text;
  cursor: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-3);
}
a:hover {
  text-decoration-color: var(--fg);
}
img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}
::selection {
  background: var(--fg);
  color: var(--bg);
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Barres de défilement fines et monochromes */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-3);
  background-clip: content-box;
  border: 3px solid transparent;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Échelle typographique */
.display {
  font-size: clamp(40px, 5.2vw, var(--t-72));
  line-height: 0.98;
  font-weight: 680;
  font-stretch: 122%;
  letter-spacing: -0.03em;
}
.title-1 {
  font-size: clamp(32px, 3.6vw, var(--t-48));
  line-height: 1.02;
  font-weight: 660;
  font-stretch: 120%;
  letter-spacing: -0.028em;
}
.title-2 {
  font-size: var(--t-24);
  line-height: 1.15;
  font-weight: 620;
  font-stretch: 112%;
  letter-spacing: -0.015em;
}
.title-3 {
  font-size: var(--t-18);
  line-height: 1.25;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--t-16);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 64ch;
}
.small {
  font-size: var(--t-12);
  line-height: 1.45;
}
.tiny {
  font-size: var(--t-11);
  line-height: 1.4;
}
.muted {
  color: var(--fg-2);
}
.faint {
  color: var(--fg-3);
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
.wide {
  font-stretch: 118%;
}
.cond {
  font-stretch: 84%;
}
.strong {
  font-weight: 620;
}
.label {
  font-size: var(--t-12);
  font-weight: 560;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}
.nowrap {
  white-space: nowrap;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

/* Utilitaires de mise en page */
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.row.end {
  justify-content: flex-end;
}
.row.top {
  align-items: flex-start;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grow {
  flex: 1 1 auto;
  min-width: 0;
}
.gap-4 {
  gap: 4px;
}
.gap-6 {
  gap: 6px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-16 {
  margin-bottom: 16px;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.ico.sm {
  width: 15px;
  height: 15px;
}
.ico.lg {
  width: 22px;
  height: 22px;
}
.ico.xl {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}
