/* Base commune : reset, typographie, focus, utilitaires. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: var(--text-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
h1 { font-size: var(--text-page); line-height: 38px; letter-spacing: -.6px; }
h2 { font-size: var(--text-section); line-height: 26px; }
h3, h4 { font-size: var(--text-body); line-height: 24px; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }

/* Marqueur natif des <details> remplacé par les chevrons du design system. */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.muted { color: var(--text-muted); }
.text-sm { font-size: var(--text-sm); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  padding: 8px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-small);
}
.skip-link:focus { top: 8px; }

kbd {
  display: inline-block; min-width: 24px; padding: 1px 6px;
  border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 4px; background: var(--surface-2);
  font-size: 13px; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
