@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%;
    color: white;
    padding: 2px 2px 2px 2px;
    background-color: #3ACE5A;
    z-index: 2;
    width: 99.75%;
    align-items: center;
}

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

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

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: white;
}

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

.header_menu img {
    zoom: 2%;
}

#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: white;
    text-decoration: none;
    position: relative;
}

.nav_link:hover {
    color: white;
}

.nav_link::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  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);
}


.menu_lateral {
    width: 300px;
    height: 7459px;
    background-color: #d9d9d9;
    display: flex;
    justify-content: center;
}

#bloc_fixe {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 50px 0 50px 0;
    position: fixed;
}

p {
    font-family: "Nunito Sans";
    font-size: 25px;
    text-align: center;
    font-weight: bold;
}

.button {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 10px #888888;
    width: 150px;
    padding: 10px 0 10px 0;
    text-align: center;
    font-family: 'Nunito Sans';
    font-weight: bold;
    font-size: 15px;
    border-color: #888888;
    transition: all .3s;
}

.button:hover {
    transform: scale(0.98);
    box-shadow: 5px 10px 10px #888888;
    cursor: pointer;
}

.button_link {
    text-decoration: none;
    color: black;
}

#contenu {
    display: flex;
}

h1 {
    margin-top: 125px;
    font-size: 60px;
    margin-bottom: 0;
}

h2 {
    font-size: 32px;
}

h1, h2 {
    font-family: 'Nunito Sans';
}

#page {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 50px 0 50px 0;
}

#nourriture {
    background-color: #ff8000;
    height: 8400px;
}

#menu_lat_nourriture {
    height: 9085px;
}

#hygiene {
    background-color: #3EB4CC;
    height: 5700px;
}

#menu_lat_hygiene {
    height: 6385px;
}

#commerce {
    background-color: #3A5ACE;
}

#menu_lat_commerce {
    height: 8700px;
}

#loisirs {
    background-color: #FFBF1F;
    height: 6075px;
}

#menu_lat_loisirs {
    height: 6760px;
}

#travail {
    background-color: #33CA7F;
    height: 3000px;
}

#menu_lat_travail {
    height: 3685px;
}

.cards {
    width: 85%;
    height: 340px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    box-shadow: 0 5px 10px #666666;
}

.pourquoi {
    width: 85%;
    height: 725px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    box-shadow: 0 5px 10px #666666;
}

.pourquoi p {
    text-align: right;
}

.pourquoi_1 {
    width: 85%;
    height: 800px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    box-shadow: 0 5px 10px #666666;
    margin: 10px;
}




.separateur {
    width: 100%;
    background-color: black;
    height: 1px;
    margin-bottom: 50px;
}

.indicateur {
    background-color: white;
    border-radius: 15px;
    font-family: 'Nunito Sans';
    font-size: 32px;
    font-weight: bold;
    padding: 10px 10px 10px 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 10px #666666;
}

.image {
    width: 40%;
    display: flex;
    justify-content: flex-start;
}

.image > img {
    padding: 15px 15px 15px 15px;
    border-radius: 30px;
    height: 90%;
}

.infos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding: 15px 15px 15px 15px;
}

.cards:nth-child(odd) > .infos {
    align-items: flex-start;
}

.cards:nth-child(odd) > .image {
    justify-content: flex-end;
}

.infos > p {
    font-size: 30px;
    margin: 0 0 0 0;
}

#categories {
    width: 90%;
}

#categories > ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    padding: 0 0 0 0;
}


.menu_button_link {
    text-decoration: none;
}

.menu_button {
    padding: 3% 3% 3% 3%;
    width: 225px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 5px 10px #666666;
    font-size: 24px;
    font-family: 'Kodchasan';
    color: black;
    transition: all .3s;
}

.menu_button:hover {
    transform: scale(0.98);
    box-shadow: 5px 10px 10px #888888;
    cursor: pointer;
}

li:nth-child(1) > a > .menu_button {
    background-color: #ff8000;
    border-color: #ff8000;
}

li:nth-child(2) > a > .menu_button {
    background-color: #3eb4cc;
    border-color: #3eb4cc;
}

li:nth-child(3) > a > .menu_button {
    background-color: #3A5ACE;
    border-color: #3A5ACE;
}

li:nth-child(4) > a > .menu_button {
    background-color: #ffbf1f;
    border-color: #ffbf1f;
}

li:nth-child(5) > a > .menu_button {
    background-color: #33ca7f;
    border-color: #33ca7f;
}

#page > h1 {
    font-family: 'Kodchasan';
}


@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;
    }

    h1 {
        font-size: 300%;
        margin: 20px 0 0 0;
    }

    h1, h2 {
        text-align: center;
    }

    #bloc_fixe {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .menu_lateral {
        height: 100%;
        width: 100%;
    }

    #contenu {
        display: block;
    }

    #bloc_fixe > p {
        width: 100%;
        margin: 25px 0 0 0;
    }

    .infos > p {
        font-size: 16px;
    }

    .cards {
        flex-direction: column;
        width: 90%;
        justify-content: unset;
        height: 440px;
    }

    .pourquoi {
        width: 85%;
        height: 500px;
        background-color: white;
        border-radius: 15px;
        display: flex;
        box-shadow: 0 5px 10px #666666;
    }

    .image > img {
        width: 92%;
        padding-bottom: 5px;
    }

    .infos {
        padding: 0 0 0 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    /* Annulation cette même propriétée existante au format desktop */
    .cards:nth-child(odd) > .infos {
        align-items: center;
    }

    .cards:nth-child(odd) {
        justify-content: space-between;
    }

    .cards:nth-child(odd) > .infos > p {
        padding-top: 10px;
    }

    .image {
        width: 100%;
    }

    #menu_lat_nourriture, #menu_lat_hygiene, #menu_lat_loisirs, #menu_lat_commerce, #menu_lat_travail {
        height: 100%;
    }

    #nourriture {
        height: 8600px;
    }

    #travail {
        height: 3300px;
    }
    
}