body,
ul {
    padding: 0;
}

#titre_principal,
.icon,
.titre_vill,
.valide,
footer,
h1,
h2 {
    text-align: center;
}

.lien_menu,
.vill {
    text-decoration: none;
}

.bouton_recherche,
.lien_menu {
    cursor: pointer;
    font-size: 16px;
}

#titre_principal,
form {
    padding-left: 15px;
    padding-right: 15px;
}

#recherche,
.carousel-control-next-icon,
.carousel-control-prev-icon,
.vill {
    background-color: #a2e1db;
}

#recherche_footer,
main {
    position: relative;
}

@font-face {
    font-family: FOT;
    src: url(FOT-Seurat\ Pro\ DB.otf) format('opentype');
}

@font-face {
    font-family: FOT-bold;
    src: url(FOT-Seurat\ Pro\ UB.otf) format('opentype');
}

body,
html {
    margin: 0 auto;
    display: grid;
    width: 100%;
}

body,
main,
ul {
    display: flex;
}

.valide,
h2 {
    margin-top: 10px;
}

.carousel-inner,
.carousel-item,
footer,
header nav,
main {
    width: 100%;
}

body {
    font-family: FOT, sans-serif;
    background-color: #d4efdf !important;
    flex-direction: column;
    grid-template-rows: 200px 1fr 200px;
}

ul {
    list-style: none;
    margin-right: 10px;
}

.icon {
    list-style-type: none;
    margin: 0 10px;
    align-content: center;
    border-bottom: 2px;
}

#titre_principal,
#vill,
h1 {
    font-optical-sizing: auto;
    font-style: normal;
    font-family: FOT-bold, sans-serif;
    margin-top: 15px;
}

main {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    grid-row: 2/3;
}

.carousel-inner {
    height: auto;
}

.carousel-item {
    flex: 0 0 auto;
    height: 300px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#titre_principal {
    margin-top: 10px;
}

#texte_principal {
    margin-top: 15px;
    padding-left: 24px;
    padding-right: 24px;
    text-align: justify;
    font-size: 20px;
}

.titre_vill {
    margin-top: 15px;
    font-family: FOT-bold, sans-serif;
}

#vill,
.gestion_p {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.img_vill {
    margin: 15px;
}

.vill {
    color: #3b3b3b;
    margin-right: 5px;
    margin-top: 5px;
    border-radius: 10px;
}

.bouton_recherche,
.lien_menu,
input[type=submit] {
    background-color: #005557;
    color: #fff;
}

#recherche,
.lien_menu {
    display: flex;
    margin-top: 15px;
}

.info_vill,
.nom_vill {
    display: flex;
    align-items: center;
    justify-content: center;
}

td {
    background-color: rgba(255, 255, 255, .5);
}

.gestion_titre {
    padding-left: 15px;
}

.lien_menu {
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    margin-left: 14px;
    justify-content: center;
    margin-right: 14px;
}

.bouton_recherche:hover,
.lien_menu:hover {
    background-color: #05b0b3;
    cursor: pointer;
}

.images_recherche,
.img_tab {
    height: 280px;
    max-width: 600px;
    max-height: 730px;
    margin-top: 10px;
}

.conteneur_recherche {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
}

.recherche_input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: 0;
}

.bouton_recherche {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
}

#good_day {
    width: 300px;
    height: 300px;
}

input,
input[type=file],
select {
    outline: 0;
    width: 100%;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    border-radius: 3px;
    font-size: 14px;
}

input[type=submit]:hover {
    background-color: #05b0b3;
}

#containeur_recherche {
    margin-left: 27px;
}

#recherche {
    flex-direction: column;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    width: 92%;
    border-radius: 10px;
}

footer {
    white-space: nowrap;
    right: 0;
    margin-top: auto;
    padding-top: 10px;
    background-color: #d4efdf;
    grid-row: 3/4;
    left: 0;
    bottom: 0;
    width: 100%;
}

@media screen and (min-width:480px) {
    @font-face {
        font-family: FOT;
        src: url(FOT-Seurat\ Pro\ DB.otf) format('opentype');
    }

    @font-face {
        font-family: FOT-bold;
        src: url(FOT-Seurat\ Pro\ UB.otf) format('opentype');
    }

    body {
        font-family: FOT, sans-serif;
        background-color: #f4f4f4;
        margin: 0;
        padding: 0;
    }

    #catalogue_main,
    main {
        width: 100%;
        min-width: 100vh;
        display: flex;
    }

    footer,
    h1 {
        text-align: center;
    }

    main {
        flex-direction: column;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    #titre_principal {
        margin-top: 10px;
        font-family: FOT-bold, sans-serif;
    }

    #texte_principal {
        margin-top: 15px;
        text-align: justify;
    }

    #boutons,
    .navbar-nav me-auto mb-2 mb-lg-0,
    header {
        display: flex;
    }

    header nav {
        width: 100%;
    }

    #moncarousel {
        width: 100vw;
    }

    .navbar-expand-custom .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-custom .navbar-nav .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .navbar-expand-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-custom .navbar-toggler {
        display: none;
    }

    #catalogue_main {
        flex-direction: row;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    #vill,
    .conteneur_recherche {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        flex-direction: row;
    }

    .img_vill {
        margin: 15px;
    }

    .vill,
    h1 {
        margin-top: 20px;
    }

    .vill {
        text-decoration: none;
        color: #3b3b3b;
    }

    .info_vill,
    .nom_vill {
        display: flex;
        align-items: center;
    }

    #recherche {
        padding-right: 25px;
        padding-left: 25px;
        width: initial;
        margin-right: 2px;
        margin-left: 2px;
    }

    .recherche_input {
        width: 300px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        outline: 0;
    }

    .bouton_recherche {
        padding: 10px 20px;
        background-color: #005557;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin-left: 10px;
        margin-bottom: 14px;
    }

    .bouton_recherche:hover {
        background-color: #05b0b3;
        cursor: pointer;
    }

    input {
        width: 20%;
    }

    input[type=select] {
        width: 20% !important;
    }

    input[type=submit] {
        width: 11%;
    }

    .lien_menu {
        width: 70%;
        margin: 20px auto auto;
    }

    .valide_ajout,
    .valide_modif,
    .valide_sup {
        width: 28%;
        margin: 20px auto;
    }

    .ajout {
        width: 19%;
        margin-bottom: 10px;
    }

    #ajout_bouton1,
    #ajout_bouton2 {
        margin-left: 15px;
        width: 40%;
    }

    #retour {
        width: 97%;
    }

    #good_day {
        width: initial;
        height: initial;
    }

    footer {
        bottom: 0;
        height: 80px;
        white-space: nowrap;
        margin-top: auto;
        padding-top: 10px;
        grid-row: 3/4;
    }
}