/* ==========================================================================
   BYANSEL — Base : reset, typographie, accessibilité, utilitaires
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* en-tête collant */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

p, ul, ol, dl, figure, blockquote {
  margin: 0;
}

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

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

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

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

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

em {
  font-style: normal;
}

address {
  font-style: normal;
}

strong {
  font-weight: 600;
}

/* Icônes : sprite SVG, trait uniforme */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; stroke-width: 1.5; }

/* Focus visible, identique partout */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--coral);
  color: var(--white);
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform var(--dur-ui) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Information à fournir par BYANSEL : jamais inventée, toujours signalée */
.placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  border-bottom: 1px dashed currentColor;
}

/* Chiffres alignés (références, quantités) */
.tabular {
  font-variant-numeric: tabular-nums;
}

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