/* ==========================================================
   BASE GLOBALE
   Fichier : css/base.css
   Version : 3.1.0

   🔴 PARTIE TECHNIQUE
   Ce fichier normalise l'affichage des éléments HTML.
========================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-lg));
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-family-base);
    color: var(--color-text);
    background: var(--color-background);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

button {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: var(--line-height-tight);
    letter-spacing: -0.045em;
}

h1 {
    max-width: 10ch;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h2 {
    max-width: 13ch;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-section-title);
    font-weight: 600;
}

h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    color: var(--color-text-soft);
}

ul,
ol {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid rgba(227, 27, 35, 0.35);
    outline-offset: 4px;
}

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