:root{
    --nav: 125px;
    --sous_nav: 75px;
    --innert: 50px;
    --height-component: calc(100% - var(--nav));
    --main-color: rgb(44, 44, 44);
}

@media (max-width: 768px) {
    footer{
        display: flex !important;
        justify-content: center !important;
        flex-direction: column !important;
        height: auto !important;
    }

    footer div{
        padding: 0px !important;
    }
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat/Montserrat-VariableFont_wght.ttf');
}

html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat';

    overflow-x: hidden;
    scroll-behavior: smooth;
}

footer{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;

    background-color: var(--main-color);
    width: 100%;
    height: var(--nav);
    color: white;
}

footer div{
    display: flex;
    align-items: center;
    padding: 10px;
}

footer div:first-child{
    text-align: center;
    justify-content: start;
}

footer div:last-child{
    justify-content: end;
}

footer a{
    margin: 10px;
    text-decoration: none;
    color: white
}

footer a img{
    vertical-align: middle;
    margin: 1%;
}

.listing{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.inter{
    width: 100%;
    height: var(--innert);
    background-color: var(--main-color);
}

.background{
    position: relative;
    width: 100%;
    height: var(--height-component);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

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

.tableButton{
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: bolder;
    margin: 5px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    color: white;
    transition: 0.5s;
}

.regular{
    background-color: cornflowerblue;
}

.regular:hover{
    background-color: rgb(0, 0, 255);
}

.ajouter{
    background-color: rgb(0, 128, 0);
}

.ajouter:hover{
    background-color: rgb(0, 100, 0);
}

.modifier{
    background-color: rgb(33, 33, 184);
}

.modifier:hover{
    background-color: rgb(0, 0, 141);
}

.supprimer{
    background-color: rgb(185, 39, 39);
}

.supprimer:hover{
    background-color: rgb(148, 3, 3);
}

.retour{
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: grey;
}

.retour:hover{
    background-color: rgb(70, 70, 70);
}

table img{
    width: 40px;
}