/* Fondations : aucun texte important ne dépend de la couleur d'un parent. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  color-scheme: light;
}

body {
  margin: 0;
  background-color: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

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

svg {
  display: block;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(32px, 3.7vw, 48px);
  font-weight: 650;
  letter-spacing: -1.5px;
}

p {
  margin: 16px 0;
  color: var(--color-muted);
  line-height: 1.75;
}

section {
  padding-block: var(--section-space);
}

[hidden] {
  display: none !important;
}

::selection {
  background-color: var(--color-selection);
  color: var(--color-ink);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--container-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.full {
  grid-column: 1 / -1;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 16px 22px;
  border-radius: var(--radius-small);
  background-color: var(--color-yellow);
  color: var(--color-ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 2px;
  background-color: var(--color-yellow);
  content: "";
}

.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.heading h2 {
  margin-top: 18px;
}

.heading > p {
  max-width: 370px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
