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

* {
    margin: 0;
    padding: 0;
}

:root {
    /* Cases à cocher, curseurs et boutons radio aux couleurs du site */
    accent-color: var(--vert-500);

    /* Brin de feuillage, dessiné d'après ceux du logo — utilisé en masque pour prendre la couleur du texte */
    --brin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 44'%3E%3Cpath d='M3 34C38 33 78 22 114 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M20.1 32.8Q28.5 28 29.1 18.3Q20.7 23.1 20.1 32.8ZM35.6 30.6Q38.5 39 47.2 41.1Q44.3 32.6 35.6 30.6ZM51.3 27.4Q58 22.6 57.4 14.3Q50.8 19.2 51.3 27.4ZM66.1 23.7Q69.1 30.5 76.6 31.5Q73.5 24.6 66.1 23.7ZM80.8 19.3Q86 14.9 84.8 8.2Q79.6 12.5 80.8 19.3ZM94.2 14.7Q97 20.1 103.1 20.3Q100.3 14.9 94.2 14.7ZM112.5 7.6Q118.3 8.6 121.7 3.8Q115.9 2.7 112.5 7.6Z'/%3E%3C/svg%3E");
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--entete-h) + 1rem);
    scrollbar-color: var(--vert-400) var(--teinte-beige-2);
}

body {
    min-height: 100svh;
    background: var(--fond);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: var(--t-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.est-verrouille {
    overflow: hidden;
}

::selection {
    background: var(--vert-200);
    color: var(--texte-fort);
}

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

img {
    height: auto;
}

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

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

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--police-titre);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--texte-fort);
    text-wrap: balance;
}

h1 {
    font-size: var(--t-3xl);
    font-weight: 300;
}

h2 {
    font-size: var(--t-2xl);
}

h3 {
    font-size: var(--t-lg);
    font-weight: 600;
    letter-spacing: 0;
}

p {
    text-wrap: pretty;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

hr {
    border: 0;
    border-top: 1px solid var(--trait);
}

:focus-visible {
    outline: 2px solid var(--bord-accent);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

.saut-contenu {
    position: absolute;
    left: 50%;
    top: -100%;
    z-index: 200;
    transform: translateX(-50%);
    padding: var(--e-3) var(--e-5);
    background: var(--remplissage);
    color: var(--creme-logo);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    transition: top var(--duree-1) var(--sortie);
}

.saut-contenu:focus {
    top: 0;
}

[hidden] {
    display: none !important;
}

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

.enveloppe {
    width: min(100% - (var(--gouttiere) * 2), var(--largeur));
    margin-inline: auto;
}

.enveloppe--etroite {
    width: min(100% - (var(--gouttiere) * 2), var(--largeur-etroite));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--alt {
    background: var(--fond-alt);
}

.section--sombre {
    background: var(--fond-sombre);
    color: var(--creme-logo);
}

.section--sombre h2,
.section--sombre h3 {
    color: #FFFFFF;
}

/* Petit titre au-dessus d'un titre, suivi d'un brin de feuillage */
.surtitre,
.index-section {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: var(--e-4);
    font-family: var(--police-titre);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--texte-vert);
}

.surtitre::after {
    content: "";
    flex-shrink: 0;
    width: 2.9rem;
    height: 1.05rem;
    background: var(--vert-400);
    -webkit-mask: var(--brin) no-repeat center / contain;
    mask: var(--brin) no-repeat center / contain;
}

.section--sombre .surtitre,
.section--sombre .index-section,
.surtitre--clair {
    color: var(--vert-300);
}

.titre-section {
    max-width: 24ch;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.chapo {
    max-width: 60ch;
    font-size: var(--t-md);
    color: var(--encre-doux);
}

.section--sombre .chapo {
    color: var(--vert-100);
}

.manuscrit {
    font-family: var(--police-main);
    font-weight: 400;
    letter-spacing: 0;
}

.brin {
    display: inline-block;
    width: 3.2rem;
    height: 1.15rem;
    background: currentColor;
    -webkit-mask: var(--brin) no-repeat center / contain;
    mask: var(--brin) no-repeat center / contain;
}

.prose > * + * {
    margin-top: 1em;
}

.prose h3 {
    margin-top: 1.9em;
}

.prose a:not(.bouton) {
    color: var(--texte-vert);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--vert-400);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.prose a:not(.bouton):hover {
    color: var(--texte-fort);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-3);
    margin-top: var(--e-6);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
