@font-face {
    font-family: "Baskerville";
    src: url("fonts/baskerville.ttf");
    font-weight: normal;
}

@font-face {
    font-family: "Caveat";
    src: url("fonts/caveat.ttf");
    font-weight: normal;
}

@font-face {
    font-family: "ChunkFiveEx";
    src: url("fonts/chunkFiveEx.ttf");
    font-weight: normal;
}

@font-face {
    font-family: "FontinSans";
    src: url("fonts/fontinSans.otf");
    font-weight: normal;
}

@font-face {
    font-family: "Hagin Medium";
    src: url("fonts/haginMedium.otf");
    font-weight: normal;
}



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
    min-height: 100vh;
    font-family: "Baskerville", sans-serif;
    position: relative;
    background-image: repeating-linear-gradient(45deg, rgb(255,255,255) 0px, rgb(255,255,255) 10px,transparent 10px, transparent 11px),repeating-linear-gradient(135deg, rgb(255,255,255) 0px, rgb(255,255,255) 10px,transparent 10px, transparent 11px),linear-gradient(90deg, hsl(256,7%,84%),hsl(256,7%,84%));
    overflow-x: hidden;
}

/*HEADER*/

header{
    height: 20vh;
    display: grid;
    grid-template-columns: 15% 70% 15%;
    grid-template-rows: 100%;
    justify-content: center;
    position: fixed;
    border-top: 8px solid #1c9aea;
    z-index: 5;
    background-image: repeating-linear-gradient(45deg, rgb(255,255,255) 0px, rgb(255,255,255) 10px,transparent 10px, transparent 11px),repeating-linear-gradient(135deg, rgb(255,255,255) 0px, rgb(255,255,255) 10px,transparent 10px, transparent 11px),linear-gradient(90deg, hsl(256,7%,84%),hsl(256,7%,84%));
    margin-bottom: 1cm;
    width: 100%;
    padding-bottom: 2vh;
}

header >a{
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    margin-left: 15px;

}

header > a img{
    max-height: 100%;
    max-width: 100%;
    margin: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
}

nav{
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 1.5em;
    height: 100%;
    grid-column: 2/-1;
}

nav a{
    color: black;
    text-decoration: none;
    font-family: "Caveat", sans-serif;
    transition: transform 0.5s;
    width: max-content;
    margin: auto;
}

nav a:hover{
    transform: scale(1.15);
}


.underline{
    border-bottom: #1c9aea solid 3px;
    border-top: #1c9aea solid 3px;
    padding: 3px 10px 5px;
}

header button{
    display: none;
    height: max-content;
    width: max-content;
    font-size: 3em;
    color: #1c9aea;
    background: none;
    border: none;
    align-self: center;
    justify-self: center;
    position: absolute;
    z-index: 9;
    padding: 10px 20px 10px 10px;
    cursor: pointer;
}

/*CONTENU*/

.contenuAccueil, .contenuContact, .contenuProduits, .contenuSavoirPlus{
    margin-top: 22vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 10vh;
}

/*FOOTER*/

footer{
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 0;
}

footer p{
    text-align: center;
    width: 100%;
    cursor: default;
}

@media screen and (max-width: 800px){
    header{
        position: sticky;
    }

    nav{
        position: absolute;
        display: flex;
        flex-direction: column;
        background-color: #1c9aea;
        width: 100%;
        height: 100vh;
        justify-content: space-between;
        grid-column: 1/-1;
        margin: 0 0 0 100vw;
        transition: all 0.5s;
    }

    nav a{
        color: white;
        font-size: 1.3em;
    }

    header > a{
        grid-column: 1/4;
        height: 139px;
        margin: 10px auto auto;
        cursor: default;
    }

    header > a img{
        cursor: pointer;
    }

    header button{
        grid-column: -2/-1;
        display: block;
    }

    #contenuBoutonNav{
        transition: all 0.5s;
    }

    .contenuAccueil, .contenuContact, .contenuProduits, .contenuSavoirPlus{
        margin-top: 0;
    }

}

