@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "Angella";
    src: url('fonts/angella.otf');
}

@font-face {
    font-family: "kawoszeh";
    src: url('fonts/kawoszeh.otf');
}

@font-face {
    font-family: "kingred";
    src: url('fonts/kingred.otf');
}

p {
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: kingred;
    margin: 0;
    font-weight: normal;
    color: #003366;
}

button {
    border: none;
    background-color: transparent;
}

button.cta {
    padding: 16px 64px;
    font-size: initial;
    font-family: inherit;
    border-radius: 999px;
    white-space: nowrap;

    &:hover {
        box-shadow: 0 0 10px #0002;
    }
}

img {
    display: block;
}

header {
    background-color: #EFE7DA44;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #0001;
    z-index: 20;
}

body {
    height: 100dvh;
    margin: 0;
    background-color: #F7F3ED;
    display: flex;
    flex-direction: column;
    font-family: Montserrat;
}

a {
    color: #003366;
    text-decoration: none;
}

footer {
    background-color: #EFE7DA;
    display: flex;
    justify-content: center;
    padding: 16px;
    font-family: Angella;
    font-size: 40px;
    line-height: 0.5;
    color: #003366;
    margin-top: auto;
}

/* début burger */

body > header > button {
    position: relative;
    padding: 0;

    input {
        position: absolute;
        background-color: red;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }
}

body:has(header > button > input:checked) {
    nav {
        transform: translateY(0);
    }
}

main {
    position: relative;
}

nav {
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 32px;
    background-color: #EFE7DA;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    transform: translateY(-150%);
    transition: transform 0.5s ease-in-out;
    z-index: 10;

    ul {
       padding: 0; 
       margin: 0;

       li {
        list-style: none;
        line-height: 2;

        a {
            font-weight: bold;
        }
       }
    }

    hr {
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 1px;
        border: none;
    }

    button {
        background-color: #003366;
        color: #F5F5F5;
    }
}

/* fin burger */
