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

.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: #FF4747;
}

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

.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: #ff4747;
    border-color: #ff4747;
}

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) {

    #categories, h1:first-child{
        display: none;
    }

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

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