@import url('https://fonts.googleapis.com/css2?family=Kodchasan:wght@200&family=Nunito+Sans:opsz,wght@6..12,200&display=swap');

html {
    scroll-behavior: smooth;
}

header, footer {
    display: flex;
    font-size: 150%;
    padding: 2px 2px 2px 2px;
    background-color: white;
    z-index: 2;
    width: 99.75%;
    align-items: center;
}

header {
    border-bottom: solid black 2px;
    position: fixed;
}

footer {
    border-top: solid black 2px;
}

nav {
    width: 69.5%;
}

body {
    padding: 0 0 0 0;
    margin: 0 0 0 0;
}

#logo {
    width: 64px;
    height: 58px;
    margin: 10px 20px 5px 20px;
}

#titre_logo {
    font-family: 'Kodchasan';
    text-decoration: none;
    color: black;
}

#header_menu {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
}

#footer_menu {
    display: flex;
    justify-content: flex-start;
    list-style-type: none;
}

.nav_element {
    padding: 0 5% 0 5%;
}

.nav_link {
    font-family: 'Kodchasan';
    color: black;
    text-decoration: none;
    position: relative;
}

.nav_link:hover {
    color: black;
}

.nav_link::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav_link:hover::before {
    transform: scaleX(1);
}

#contact {
    margin-left: 30%;
}

.lang {
    width: 13%;
    height: 13%;
    display: flex;
    justify-content: space-between;
}

.lang_btn {
    width: 80%;
    height: 80%;
    border-radius: 35px;
    transition: all .3s;
}

.lang_btn_link {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer > nav {
    width: 85%;
}

.lang_btn:hover{
    box-shadow: 0px 0px 15px #888888;
}

header > div {
    display: flex;
    align-items: center;
}

.reseaux {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 250px;
    height: 100%;
    margin-right: 100px;
}

.reseau_btn > img {
    width: 50px;
    border-radius: 25px;
}

.reseau_btn {
    transition: all .3s;
}

.reseau_btn:hover {
    transform: scale(1.1);
}

@media only screen
and (max-device-width: 576px)
and (orientation: portrait) {

    header, footer {
        font-size: 16px;
    }

    header > nav {
        width: 100px;
        display: flex;
        justify-content: flex-end;
        margin-right: 20px;
    }

    header {
        justify-content: space-between;
        align-items: flex-start;
    }

    #logo {
        width: 35px;
        height: 30px;
        margin: 10px 5px 5px 10px;
    }

    #header_menu {
        padding: 0 0 0 0;
        width: 150px;
        align-items: flex-end;
        flex-direction: column;
    }

    #header_menu::before {
        content: 'MENU';
        font-family: 'Kodchasan';
    }


    #header_menu > li {
        display: none;
    }

    #header_menu:hover > li {
        display: block;
    }

    header > .lang {
        display: none;
    }

    #contact {
        margin-left: 0;
    }

    header .nav_element {
        text-align: right;
        width: 150px;
        padding: 10px 0 0 0;
    }

    footer, #footer_menu {
        flex-direction: column;
        align-items: center;
    }

    #footer_menu {
        padding: 0 0 0 0;
        gap: 10px;
    }

    footer {
        padding-bottom: 20px;
    }

    #footer_menu > .nav_element {
        font-size: 24px;
        text-align: center;
    }

    .lang {
        width: 200px;
    }

    .reseaux {
        margin: 5px 0 10px 0;
    }

    .reseau_btn {
        transition: all .3s;
    }

    .reseau_btn:hover {
        transform: scale(1.1);
    }
}