/* Variables et fondations globales */

:root {
  --color-background: #121110;
  --color-background-secondary: #292622;
  --color-silver: #cbcdce;
  --color-accent: #c5ad83;
  --color-text: #eae5dd;
  --color-text-muted: var(--color-silver);
  --color-border: rgb(197 173 131 / 27%);

  --container-width: 80rem;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);

  --font-body: "Segoe UI", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --transition-fast: 0.2s;
  --z-header: 100;
  --z-modal: 1000;
}

/* Document et typographie */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.25rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: 1rem / 1.65 var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

p,
figure {
  margin: 0;
}

p + p {
  margin-block-start: 1em;
}

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

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

button {
  cursor: pointer;
}

img,
video,
iframe {
  max-width: 100%;
}

img,
video {
  display: block;
}

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

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

/* Structure commune des sections */

.section {
  width: 100%;
  min-width: 0;
  border-block: 1px solid rgb(203 205 206 / 18%);
}

.section__container {
  width: min(100%, var(--container-width));
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 5.5rem;
  }
}