/* ============================================================
   PFM Lyon — base : reset, typographie, conteneurs, utilitaires
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: var(--t-body);
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }

ul[class], ol[class] { padding: 0; list-style: none; }

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

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

address { font-style: normal; }

/* ---------- Conteneur 1200 px ---------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1248px) {
  .container { padding-inline: 0; }
}

/* ---------- Accessibilité ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-input);
  transition: top .2s;
}
.skip-link:focus { top: 8px; }
