/* X-RENT — reset et éléments de base. */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  background-color: var(--black);
  background-image: var(--grid-tech);
  background-size: var(--grid-size);
  color: var(--white);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lenis prend la main sur le défilement ; sans JS, le natif reste doux. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.lenis) { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.018em;
  text-transform: uppercase;
}

h1 { font-size: var(--fs-hero); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 700; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

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

strong { font-weight: 600; }

::selection { background: var(--amber); color: var(--black); }

:focus-visible { outline: none; box-shadow: var(--focus); }

/* Utilitaires */

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--black);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

.lede {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--mute);
  max-width: 58ch;
}

/* Le point jaune : signature de marque, repris du chevron du logotype. */
.dot { color: var(--amber); }
