@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Great+Vibes&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
}

:root {
    font-size: 18pt;
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 50px;
}

body {
    margin: 0;
    background: linear-gradient(to bottom, #fffe), url(/img/fond.svg);
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    background-size: contain;
    background-position: center;
    font-family: 'Sour Gummy', sans-serif;
    font-weight: 300;
}

body>a:first-child {
    display: none;
}

label[for=hamburger] {
    font-size: 40px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
}

#hamburger-label {
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    grid-template-columns: repeat(2, auto);
    z-index: 1;
}

#hamburger-label img {
    width: 40px;
}

#hamburger {
    display: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100dvh;
    background: white;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 1s;
    gap: 10px;
    z-index: 1;
}

nav>a:first-of-type {
    align-self: start;
    left: 0;
    top: 0;
    padding-bottom: 0;
}

nav img {
    max-width: 100px;
}

#hamburger:checked~nav {
    width: 100vw;
}

nav>label {
    position: absolute;
    top: 0;
    right: 0;
}

nav>a {
    padding: 15px;
    color: inherit;
    text-decoration: none;
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
}

nav>a:last-of-type {
    color: #0002;
}

main {
    padding: 50px 10px 0;
    min-height: 100dvh;
}

h1,
h2,
h3 {
    font-family: 'Great Vibes', cursive;
}

h1 {
    margin: 10px 0 5px;
}

h2 {
    margin: 5px 0;
}

section {
    min-height: 50dvh;
    border-bottom: 1px dotted black;
    display: flex;
    flex-direction: column;
    margin: 0 0 20px 0;
}

section div h1 {
    font-size: 26px;
}

section div h2 {
    font-size: 22px;
}

section div h3 {
    font-size: 20px;
}

main img {
    display: block;
    max-width: 100%;
    border-radius: 8px;
}

.img-container {
    position: relative;
    align-self: center;
}

.img-container::before {
    --margin: 10px;
    content: '';
    position: absolute;
    left: var(--margin);
    right: var(--margin);
    top: var(--margin);
    bottom: var(--margin);
    border: 3px solid white;
    border-radius: 3px;
    display: block;
}

p,
ul,
ol {
    margin: 10px 8px;
    text-align: justify;
}

em {
    font-style: oblique 20deg;
}

strong {
    font-weight: 600;
}

blockquote {
    color: #444;
    margin: 0;
    padding: 0 0 0 30px;
    font-family: 'Caveat';
    font-size: 1.2rem;
    font-style: italic;
}

blockquote p {
    margin: 0;
}

p a {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
    transition: 1s;
}

p a:hover {
    filter: brightness(1.1);
}

footer {
    font-size: 0.8rem;
    color: #888;
    padding: 0 10px;
}

@media screen and (min-width:756px) {
    [id] {
        scroll-margin-top: 120px;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        max-width: 1000px;
        margin: auto;
    }

    body>a:first-child {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        color: inherit;
        text-decoration: none;
        opacity: 0;
    }

    body>a:first-child:hover {
        opacity: 1;
    }

    label[for=hamburger] {
        display: none;
    }

    nav {
        position: sticky;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        align-items: end;
        justify-content: space-evenly;
        box-shadow: 0 5px 5px #0008;
        border-radius: 0 0 10px 10px;
    }

    nav img {
        max-height: 100px;
        margin-bottom: 9px;
    }

    nav a {
        font-size: 1.5rem;
    }

    nav a:first-of-type {
        padding: 0;
    }

    nav>a:nth-of-type(2) {
        display: none;
    }

    nav>a:last-of-type {
        display: none;
    }

    nav>a:last-of-type:hover {
        color: black;
    }

    main {
        flex-grow: 1;
        padding-top: 10px;
    }

    section {
        display: block;
    }

    main>h1 {
        text-align: center;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    main>h1::before,
    main>h1::after {
        border-top: 1px solid black;
        content: '';
        display: block;
        flex-grow: 1;
        height: 1px;
    }

    section::after {
        content: '';
        display: block;
        clear: both;
        height: 10px;
    }

    section .img-container {
        float: right;
        position: relative;
        top: 15px;
        margin: 0 0 10px 20px;
        max-width: 400px;
        clear: both;
    }

    section:nth-of-type(2n) .img-container {
        float: left;
        margin: 0 20px 10px 0;
    }
}