html, body, header, main, footer, section {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

html,
body,
header,
main {
    background-color: var(--main-background-color);
}

:root {
    --header-bottom: 73px;
}

html, body {
    height: 100%;
    padding: 0;
}

html {
    scroll-padding-top: calc(var(--header-bottom, 73px) + 0.5rem);
}

body {
    font-family: var(--main-font-family);
}

header {
    padding: 0 5%;
}

footer {
    width: 100%;
    padding: 5% 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

header {
    height: max-content;
    min-height: 73px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    box-sizing: border-box;
}

main {
    height: fit-content;
    margin-top: 0;
    /* Le header est fixe : le contenu des pages commence juste en dessous. */
    padding: calc(var(--header-bottom, 73px) + env(safe-area-inset-top, 0px)) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

section {
    width: 100%;
    max-width: 1200px;
    padding: 5% 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-style: normal;
    font-family: var(--title-font-family);
}

h1 {
    font-size: 2.5em;
    font-weight: bolder;
    text-align: start;
}

h2 {
    font-size: 2em;
}

h2, h3 {
    font-weight: normal;
    margin-bottom: 0.5em;
    text-align: center;
}

img {
    width: 80%;
}

a {
    text-decoration: none;
    font-weight: bold;
}
p {
    text-align: start;
}

blockquote {
    margin: 0;
    font-family: var(--title-font-family);
    font-size: 1.5em;
    color: var(--quote-color);
    font-style: italic;
}

details {
    width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 6px 18px rgb(44 14 8 / 10%);
}

summary {
    min-height: 4rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
    font-family: var(--main-font-family);
    font-weight: 600;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

summary::after {
    content: "›";
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--main-background-color);
    color: var(--main-text-color);
    font-size: 1.5rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 200ms ease;
}

details[open] summary::after {
    transform: rotate(-90deg);
}

details > p, details > div {
    width: auto;
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
    text-indent: 0;
}

details p:first-of-type {
    margin-top: 0;
}

details p:last-of-type {
    margin-bottom: 0;
}

ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

ol > li::marker {
    content: "";
}

ol > li::before {
    display: block;
    font-family: var(--title-font-family);
    font-size: 2rem;
    margin-bottom: 0.5em;
}

@media (min-width: 481px) {
    iframe {
        width: 100%;
        max-width: 56rem;
        aspect-ratio: 16 / 9;
        height: auto;
        border: 0;
    }

    img {
        max-width: 45rem;
        height: auto;
    }
}

@media (min-width: 769px) {
    details {
        max-width: 56rem;
    }
}
