.bouton_categorie {
    color: var(--rouge);
    text-align: center;
    text-decoration: none;
    font-size: 40px;
    font-weight: 500;
}

/*.bouton_categorie:hover {
    background-color: darkred;
    border: 4px solid var(--rouge);
}*/

section.categorie {
    height: 20svh;
    
}

section.dessus {
    box-shadow: var(--bleu-claire) 0px 1px 0px;
}

section.selection {
    flex-direction: row;
    justify-content: center;
    overflow-x: scroll;
}

div {
    max-width: 800px;
}

h4 {
    margin-top: 2vh;
    font-weight: 400;
    font-size: 130%;
}

h4.h4_footer {
    margin-top: 0;
    font-size: 100%;
}

.no_margin {
    margin: 0;
}

ul {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 4vw 0 4vw;
}

ul h2 {
    width: 280px;
}

.img_selection {
    width: 32svh;
}

::-webkit-scrollbar {
    display: none;
}

.bouton_categorie {
    transform: rotateX(12deg) rotateY(-10deg);
    transform-style: preserve-3d;
    height: 32svh;
    max-height: 300px;
}

.img_selection {
   background-color: #00144715; 
}

.bouton_categorie::before {
    content: '';
    transform-origin: 0 0;
    background-color: #c50000;
    height: 30px;
    width: 100%;
    position: absolute;
    top: 100%;
    transform: rotateX(-90deg);
}

.bouton_categorie::after {
    content: '';
    transform-origin: 0 0;
    background-color: var(--rouge);
    width: 30px;
    height: 100%;
    position: absolute;
    left: 100%;
    top: 0;
    transform: rotateY(90deg);
}

@media(max-width: 900px) {
    section.selection {
        justify-content: flex-start;
    }
    .img_selection {
        width: 28svh;
    }
    .bouton_categorie {
        height: 28svh;
    }
}

@media(min-width: 600px) {
    .bouton_categorie {
        font-size: 250%;
    }
    h2 {
        font-size: 250%;
        width: 45vw;
    }
    h3 {
        text-align: center;
    }
    h4 {
        font-size: 150%;
        margin-top: 0;
    }
    a {
        font-size: 130%;
    }
}


@media(max-width: 550px) {
    .img_selection {
        width: 22svh;
    }
    .bouton_categorie {
        height: 22svh;
    }
}