/* Reset minimal + typographie de base + accessibilité */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--step-ui);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-headline);
  text-wrap: balance;
}

h1 { font-size: var(--step-huge); }
h2 { font-size: var(--step-huge); color: var(--color-heading); }
h3 { font-size: var(--step-lg); }

h4, h5, h6 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-heading);
  line-height: var(--leading-snug);
}

/* Accent italique éditorial ("Hello,", "Vous voulez travailler avec moi ?") */
.accent-line {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--tracking-accent);
  font-size: var(--step-huge);
  color: #000000;
  line-height: var(--leading-tight);
}

.accent-line--md {
  font-size: var(--step-xl);
}

.accent-line__swash {
  width: 2.6em;
  height: auto;
  margin-top: 0.05em;
}

p {
  margin: 0 0 1em;
  font-size: var(--step-body);
  max-width: var(--measure);
}

p:last-child { margin-bottom: 0; }

strong, b {
  font-weight: 900;
  font-style: italic;
}

small, .meta {
  font-family: var(--font-body);
  font-size: var(--step-ui);
  font-weight: 500;
  color: var(--color-meta);
}

::selection {
  background: var(--color-accent);
  color: #FFFFFF;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--color-accent);
  color: #FFFFFF;
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus-visible {
  top: var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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