/* assets/css/base.css
 * Reset moderne + corps + layout primitives.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Force le rendu en light scheme pour empêcher le auto-dark-mode browser de tout inverser */
  color-scheme: only light;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--c-black);
  background: var(--c-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* Typographie utilitaires */

.display-xl {
  font-size: var(--fs-display-xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.display-l {
  font-size: var(--fs-display-l);
  font-weight: var(--fw-light);
  line-height: var(--lh-snug);
}

.h2 { font-size: var(--fs-h2); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
.h3 { font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-snug); }

.label-uc {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.caption { font-size: var(--fs-caption); color: var(--c-neutral-500); }
.muted { color: var(--c-neutral-500); }

/* Layout primitives */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--sp-7); }

.section-fullbleed {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Accessibilité */

:focus-visible {
  outline: 2px solid var(--c-theme, var(--c-black));
  outline-offset: 4px;
}

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

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