@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    /*background-color: ivory;*/
    background: linear-gradient(#f8db9b,white);
}

header {
    height: 350px;
    /*background-color: burlywood;*/
    background-image: url(images_site/image_en_tete_3.jpg);
    background-position: center fixed;
    background-size: cover;
    text-align: center;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: space-between;
}

header nav a {
    color: black;
    text-decoration: none;
    margin-right: 10px;
    font-size: 20px;
}

header nav a:hover{
    color: blue;
    border-bottom: 1px solid blue;
}

header .titre {
    margin-top: -20px;
}

header .titre h1 {
    font-size: 60px;
    color: white;
    text-shadow: black 0.3em 0.3em 0.6em;
}

header .titre h4 {
    margin-top: -50px;
    padding: 20px;
    font-size: 30px;
    color: white;
    text-shadow: black 0.2em 0.2em 0.4em;
}

h2 {
    padding-left: 30px;
    font-size: 40px;
}

h4 {
    font-size: 30px;
}

p {
    font-size: 20px;
}

/* Liens vers les autres pages */

nav .liens {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: space-between;
}

nav .liens a {
    display: inline-block;
    position: relative;
    width: 25%;
    text-align: center;
    text-decoration: none;
}

nav .liens a img {
    width: 90%;
    height: 90%;
    margin-left: auto;
    margin-right: auto;
}

nav .liens a .text {
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    position: absolute;
    text-align: center;
    margin: 0 auto;
    font-size: 30pt;
    left: 0;
    right: 0;
    top: 32%;
    color: white;
    width: 70%;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: black;
}

/* Bouton pour remonter en haut de la page */

#scroll_to_top {
    position: fixed;
    width: 30px;
    height: 30px;
    bottom: 30px;
    right: 30px;
}

#scroll_to_top a {
    color: black;
    font-size: 30px;
}

html { 
    scroll-behavior: smooth; 
}

/* Pied-de-page avec contacts */
footer {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: burlywood;
}
footer div{
    display: flex;
    flex-wrap: wrap;
}

footer div p {
    padding-right: 10px;
}

footer div p a {
    color: black;
    text-decoration: none;
}

footer div p a:hover {
    color: blue;
    border-bottom: 1px solid blue;
}

/* Style version téléphone */

@media screen and (max-width: 810px) {
    header {
        background-position: center top;
        height: 300px;
        background-size: 290%;
    }

    header .titre {
        margin-top: -40px;
    }

    header .titre h1 {
        font-size: 45px;
    }

    header .titre h4 {
        font-size: 17px;
    }

    header nav a {
        font-size: 15px;
        margin-right: 35px;
    }

    header nav .langues {
        margin-right: 0px;
        margin-left: auto;
    }

    h2 {
        font-size: 30px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 17px;
    }

    nav .liens {
        display: flex;
        flex-wrap: wrap;
        padding: 20px;
        justify-content: space-between;
    }
    
    nav .liens a {
        display: inline-block;
        position: relative;
        width: 100%;
        text-align: center;
        text-decoration: none;
    }
    
    nav .liens a img {
        width: 90%;
        height: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    nav .liens a .text {
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
        position: absolute;
        text-align: center;
        margin: 0 auto;
        font-size: 30pt;
        left: 0;
        right: 0;
        top: 32%;
        color: white;
        width: 70%;
        -webkit-text-stroke: 1px;
        -webkit-text-stroke-color: black;
    }
    
}