/* UDCShare v2 — base : remise à zéro légère, typographie, mise en page. Jetons : tokens.css (design/tokens.json). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--font-line-height);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip; /* clip et non hidden : ne coupe pas les menus déroulants */
}

h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: var(--font-line-height-tight); font-weight: var(--font-weight-bold); }
h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
@media (min-width: 48rem) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
}

p { margin: 0 0 var(--space-4); }
small, .v2-text-sm { font-size: var(--font-size-sm); }
.v2-muted { color: var(--color-text-muted); }

a { color: var(--color-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

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

.v2-container { width: 100%; max-width: var(--size-content); margin-inline: auto; padding-inline: var(--space-4); }
.v2-narrow { max-width: var(--size-narrow); }
.v2-stack > * + * { margin-top: var(--space-4); }
.v2-section { padding-block: var(--space-6); }

.v2-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;
}

.v2-skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 100; background: var(--color-surface); padding: var(--space-3); }
.v2-skip-link:focus { top: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
