/**
 * base.css — Reset, éléments globaux, accessibilité, styles requis par Lenis.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Empêche tout débordement horizontal (ex. cartes « Nos solutions » qui glissent
     depuis l'extérieur de l'écran) de créer une barre de défilement latérale. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, address {
  margin: 0;
  padding: 0;
  font-style: normal;
}

ul, ol {
  list-style: none;
}

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

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

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

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

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

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 4px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* Lenis (défilement fluide) — règles officielles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

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