.create__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 15px;
}

main form, main form div, div#ressource_search, div#ressource_search div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main form, div#ressource_search {
    gap: 10px;
}

div#ressource_search div {
    gap: 3px;
}

.ressources__info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-align: center;
    margin-bottom: 21px;
}

.ressources__info p {
    margin: 0;
}

.list__ressources {
    padding: 23px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ress__with__buttons {
    border-radius: 12px;
    border: 2px solid #6b359a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.ress__with__buttons .ressources__nom {
    font-size: 20px;
    margin-bottom: 9px;
}

.ress__with__buttons .res__info {
    margin-top: 10px;
}

.ress__with__buttons .ressources__desc {
    color: #606060;
}

.ress__with__buttons a.ressources {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.ress__with__buttons a {
    text-decoration: none;
    color: black;
}

.ress__buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 5px;
    gap: 25px;
    width: 100%;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
    background-color: #6b359a;
}

.ress__with__buttons:hover {
    border-color: #762fb4;
}

.ress__with__buttons:hover .ress__buttons {
    background-color: #762fb4;
}

.ress__buttons a {
    color: white;
}

.ress__with__buttons img {
    width: 50%;
    margin: auto;
    height: auto;
    padding: 5px;
}

p.no_ressource_found {
    text-align: center;
    font-size: 19px;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

@media (min-width: 600px) {
    p.no_ressource_found {
        align-self: center;
        font-size: 25px;
        background-color: #e5e5e5;
        padding: 12px;
        border-radius: 12px;
        width: fit-content;
        margin-top: 15px;
    }

    .list__ressources {
        align-items: center;
    }

    .ress__with__buttons {
        max-width: 78%;
    }

    main input.search {
        width: 140%;
    }

    main .search_type_multiple {
        padding: 12px;
        width: 120%;
    }
}

@media (min-width: 1100px) {
    .ress__with__buttons {
        max-width: 84%;
        width: 84%;
        flex-direction: row;
        gap: 0;
    }

    .ress__with__buttons a.ressources {
        flex-grow: 1;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .ress__with__buttons .ressource_all_detail {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        font-size: 18px;
        padding: 12px;
    }

    .ress__buttons {
        flex-direction: column;
        align-self: stretch;
        border-bottom-left-radius: 0;
        border-top-right-radius: 10px;
        width: 5%;
        min-width: 5%;
    }

    main input.search {
        width: 160%;
    }

    main .search_type_multiple {
        padding: 17px;
        width: 140%;
    }

    .ress__with__buttons img {
        width: 20%;
        padding: 0;
        margin: 0;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .ress__with__buttons:nth-child(odd) img {
        order: 1;
        border-radius: 0 10px 10px 0;
    }

    .ress__with__buttons:nth-child(odd) img.element_right {
        order: 1;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .ress__with__buttons:nth-child(even) img {
        order: 0;
    }

    .ress__with__buttons .ressources__nom {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .ressources__info {
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    main form, div#ressource_search {
        flex-direction: row;
    }

    main form {
        justify-content: center;
    }

    main .search_type_multiple, main input.search {
        width: 100%;
    }

    div#ressource_search {
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    div#ressource_search div {
        width: 240px;
    }
}

@media (min-width: 1500px) {
    div#ressource_search div {
        width: 300px;
    }
}

@media (min-width: 1700px) {
    div#ressource_search div {
        width: 350px;
    }

    .search_type_multiple {
        font-size: 19px;
    }

    div#ressource_search label {
        font-size: 21px;
    }
}
