html {
    font-family: 'Montserrat', serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

section#form_errors {
    display: flex;
    flex-direction: column;
}

section#form_errors ul {
    padding: 0;
    margin: 0;
    list-style: none;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

section#form_errors ul li {
    border-radius: 5px;
    padding: 5px;
    background-color: #ce2a2a;
    color: white;
}

section.section_flashes {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

section.section_flashes article.flash_elements, main .flash_elements {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 3px;
}

section.section_flashes article.flash_elements p, main .flash_elements p {
    color: white;
    margin: 0;
    text-align: center;
    padding: 7px;
    border-radius: 5px;
    background-color: #368446;
}

section.section_flashes article.flash_elements p a, main .flash_elements p a {
    color: white;
}

section.section_flashes article.flash_elements.warning p, main .flash_elements p.warning {
    background-color: #c5890d;
}

section.section_flashes article.flash_elements.error p, main .flash_elements p.error {
    background-color: #ce2a2a;
}

section.header_position_fixed {
    position: fixed;
    width: 100%;
    z-index: 10000;
}

header {
    background-color: #FFFFFF;
}

main {
    padding-top: 169px;
}

main .mult-select-tag div.item-container {
    border-color: #af81e6 !important;
    background-color: #fae6ff !important;
    color: #6100c2 !important;
}

main .mult-select-tag div.item-label {
    font-size: 0.84rem !important;
    color: #6100c2 !important;
}

h1.title__page {
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
    margin-top: 34px;
    margin-bottom: 34px;
    color: #5a2d7e;
    text-shadow: 3px 2px 0 #e1e1e1;
}

header a.retour-home-logo {
    align-self: center;
    color: black;
}

header.accueil_titre {
    display:flex;
    justify-content: space-between;
    flex-direction: row;
    padding-right: 5px;
    padding-left: 5px;
    position: sticky;
    box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, rgba(0, 0, 0, 0.23) 0 3px 6px;
}

header .accueil__menu {
    display: flex;
    margin: 5px;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

header nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

header .accueil__menu a {
    color: black;
}

header * {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

.headpage-bar .button__action a:link {
    padding: 5px;
    text-decoration: none;
    color: white;
}

.headpage-bar .button__action a:visited {
    color: white;
}

.headpage-bar .button__action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 10;
}

.headpage-bar .button__action a i {
    color: white;
    margin-left: 9px;
}

.headpage-bar .contacts {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
    flex-grow: 1;
    margin-right: 10px;
}

.headpage-bar .button__action,.contacts {
    font-size: 19px;
}

.headpage-bar .contacts a {
    color: white;
    text-decoration: none;
}

.headpage-bar {
    background-color: #368546;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a:hover {
    color: #5a2d7e;
}

header a:link {
    text-decoration: none;
}

header li {
    list-style: none;
}

header a {
    color:black;
    text-decoration: none;
}

header .hamburger {
    display:none;
    cursor:pointer;
}

header .bar {
    display:block;
    width: 25px;
    height: 3px;
    -webkit-transition: all 0.3s ease-in-out;
    background-color: black;
}

header .search-bar-button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.button_effect,.button_effect_blue,.button_effect_green,.button_effect_red,.form__del button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    background-color: #5a2d7f;
    border-radius: 4px;
    padding: 9px;
    color: white;
    margin: 5px;
    justify-content: center;
}

.button_effect:hover,.button_effect_blue:hover,.button_effect_green:hover,.button_effect_red:hover,.form__del button:hover {
    transition: .4s;
    background-color: #943E8B;
    cursor: pointer;
}

main .button_effect_green, .button_effect_green, .form__del button#form_cancel {
    background-color: #368546;
}

main .button_effect_green:hover, .button_effect_green:hover, .form__del button#form_cancel:hover {
    background-color: #52a464;
}

main .button_effect_red, .button_effect_red, .form__del button#form_delete {
    background-color: #9f1d1d;
}

main .button_effect_red:hover, .button_effect_red:hover, .form__del button#form_delete:hover {
    background-color: #c02424;
}

main .button_effect_blue, .button_effect_blue {
    background-color: #2571bb;
}

main .button_effect_blue:hover, .button_effect_blue:hover {
    background-color: #108af6;
}

button:disabled {
    background-color: grey;
}

button:disabled:hover {
    background-color: grey;
    cursor: not-allowed;
}

button, input[type="submit"], input[type="reset"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

input.search {
    height:30px;
    border-radius: 25px;
    padding: 5px;
    border-color: #5A2D7F;
}

.search_type, .search_type_multiple {
    background-color: #5A2D7F;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    padding: 10px;
    line-height: 1.5;
}

.search_type_multiple option:hover {
    background-color: #7232a8;
    color: white;
    cursor: pointer;
}

.search_type {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" fill="white"><path d="M15 20l7-10H8l7 10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 18px;
    padding: 10px 30px 10px 10px;
}

.search_type option {
    background-color: #5A2D7F;
    color: white;
    padding: 8px 12px;
}

header .accueil__menu li.barre-navbar {
    color: #212121;
}

header .accueil__menu li.accueil__button {
    cursor: pointer;
}

header .accueil__menu li.accueil__button a {
    color: black;
}

header .accueil__menu li.accueil__effect#on_page a, header .accueil__menu_active li.accueil__effect#on_page a {
    color: #8139b2;
    font-weight: 600;
}

header .accueil__menu li.accueil__effect:hover::after {
    content: "";
    display: block;
    height: 2px;
    background: #5a2d7e;
    margin: 5px auto 0 auto;
}

header .accueil__menu li.accueil__effect:hover::after {
    animation: 1.15s normal 0s 1 li-accueil;
}

.form-error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.horizontal-bar {
    width: 60%;
    height: 1px;
}

.headpage-bar .contacts .social_media {
    gap: 25px;
    display: flex;
    flex-direction: row;
}

@keyframes li-accueil {
    0% {
        width: 0;
    }
    10% {
        width: 10%;
    }
    100% {
        width: 100%;
    }
}

header nav .hamburger.active {
    margin-left: 5px;
}

main p.no_elements_found {
    text-align: center;
    font-weight: bold;
    align-self: center;
    font-size: 25px;
    background-color: #e5e5e5;
    padding: 12px;
    border-radius: 12px;
    width: fit-content;
    margin: 30px auto auto;
}

@media (min-width: 1171px) {
    header .accueil__menu form.search_bar {
        display: flex;
        flex-direction: row;
        gap: 3px;
    }

    footer .footer-list ul li.footer_social_media {
        flex-direction: row;
    }

    header div.navbar-image-mobile {
        display: none;
    }

    h1.title__page {
        margin-top: 59px;
        margin-bottom: 59px;
        font-size: 43px;
    }

    /*
    Bouton de retour
     */

    header a.retour-home-logo {
        visibility: hidden;
        position: absolute;
    }

    /**
    Boutons vers les autres pages
     */

    header .accueil__menu {
        position: relative;
        display: flex;
        flex-direction: row;
        margin: 0;
        padding: 0;
        justify-content: space-evenly;
        list-style-type: none;
        width: 100%;
        height: 100%;
    }

    header .accueil__menu>*:hover a{
        color: black;
    }

    header .accueil__menu > * {
        padding: 10px;
        font-size: 15px;
        text-align: center;
        max-width: 1000px;
    }
}

@media screen and (max-width: 1170px) {
    main {
        padding-top: 165px;
    }

    header div.navbar-image-mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        order: 2;
        flex-grow: 1;
    }

    header div.navbar-image-mobile a {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    header div.navbar-image-mobile img {
        width: 95%;
        height: auto;
    }

    header div.navbar-image-mobile img.hidden {
        display: none;
    }

    header.accueil_titre {
        padding: 12px;
        align-items: center;
    }

    header a.retour-home-logo i {
        font-size: 28px;
    }

    h1.title__page {
        font-size: 36px;
    }

    header .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        order: 1;
    }

    header .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    header .hamburger.active .bar:nth-child(1) {
        transform:translateY(8px) rotate(45deg);
    }

    header .hamburger.active .bar:nth-child(3) {
        transform:translateY(-8px) rotate(-45deg);
    }

    header .accueil__menu {
        display: none;
    }

    header .accueil__menu_active {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 5px;
    }

    header .accueil__menu_active .logo_profile_no_mobile {
        display: none;
    }

    header .accueil__menu_active form.search_bar {
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

    header .accueil__menu_active li {
        font-size: 18px;
    }

    header nav {
        order: 1;
        justify-content: flex-start;
        gap: 0;
    }

    header a.retour-home-logo {
        order: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .headpage-bar .button__action {
        flex-grow: 3;
        gap: 5px;
    }

    .headpage-bar .button__action,.contacts {
        font-size: 16px;
    }

    .headpage-bar .contacts {
        gap: 8px;
    }

    .headpage-bar .contacts .social_media {
        gap: 17px;
    }

    header li#button__logo {
        display: none;
    }

    header li.barre-navbar {
        display: none;
    }
}

::-webkit-scrollbar {
    width: 14px;
    background-color: white;
}

::-webkit-scrollbar-track {
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: #b6b6b6;
    border-radius: 21px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d3d3d3;
}

/** Partie css footer **/

footer {
    display: flex;
    flex-direction: column;
    background-color: #5a2d7f;
    margin-top: 4%;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.footer-logo {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: stretch;
}

.footer-logo img {
    width: 12%;
    height: auto;
}

footer .footer-content .footer-lists {
    display: flex;
    flex-direction: row;
    width: 80%;
    justify-content: space-between;
}

.footer-list, .footer-list a {
    color: #dcdcdc;
}

.footer-list a {
    text-decoration: none;
}

.footer-list a:hover {
    color: #FFFFFF;
}

.footer-list ul {
    padding: 0;
    list-style: none;
}

.footer-list ul li {
    padding: 0;
    list-style: none;
    margin-bottom: 10px;
    font-size: 19px;
}

.footer-list ul li.footer_social_media {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-list ul li.footer_social_media .social_media {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.footer-list h4 {
    font-size: 27px;
    color: white;
}

footer .footer-legal {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #999898;
    padding: 15px;
    gap: 23px;
    font-size: 22px;
}

footer .footer-legal .footer-legal-content {
    display: flex;
    flex-direction: row;
    width: 70%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3%;
}

footer .footer-legal .footer-legal-content-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 80%;
    justify-content: space-around;
    margin-bottom: 20px;
}

@media screen and (max-width: 1100px) {
    .footer-logo img {
        width: 18%;
    }

    footer .footer-content .footer-lists {
        width: 90%;
    }

    .footer-list ul li {
        font-size: 16px;
    }

    .footer-list h4 {
        font-size: 21px;
    }

    footer .footer-legal {
        padding: 21px;
        font-size: 18px;
    }

    footer .footer-legal .footer-legal-content {
        width: 84%;
    }

    footer .footer-legal .footer-legal-content-logos {
        width: 100%;
        margin-bottom: 25px;
        gap: 2px;
    }

    .footer-list ul li.footer_social_media .social_media {
        gap: 17px;
    }
}

@media screen and (max-width: 700px) {
    .footer-logo img {
        width: 23%;
    }

    footer .footer-content .footer-lists {
        width: 97%;
    }

    .footer-list ul li {
        font-size: 15px;
    }

    .footer-list h4 {
        font-size: 19px;
    }

    footer .footer-legal {
        padding: 17px;
        font-size: 17px;
    }

    footer .footer-legal .footer-legal-content {
        width: 90%;
    }

    footer .footer-legal .footer-legal-content-logos {
        gap: 1px;
    }

    .footer-list ul li.footer_social_media .social_media {
        gap: 15px;
    }
}

@media screen and (max-width: 580px) {
    main p.no_elements_found {
        font-size: 19px;
        padding-right: 10px;
        padding-left: 10px;
        margin-bottom: 15px;
    }

    .footer-logo img {
        width: 28%;
    }

    footer .footer-content .footer-lists {
        gap: 23px;
        flex-direction: column;
    }

    footer .footer-content {
        gap: 8px;
        padding: 4px;
    }

    .footer-list {
        text-align: center;
        gap: 4px;
    }

    .footer-list h4 {
        margin-top: 2px;
        margin-bottom: 2px;
        font-size: 23px;
    }

    .footer-list ul li.footer_social_media .social_media {
        font-size: 21px;
        gap: 20px;
        justify-content: center;
    }

    .footer-list ul {
        margin-bottom: 0;
    }

    .footer-list ul li {
        font-size: 17px;
    }

    .footer-list ul li.footer_social_media {
        gap: 14px;
    }

    footer .footer-legal {
        padding-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding-top: 135px;
    }

    footer .footer-content .footer-lists {
        gap: 35px;
    }

    .footer-list ul {
        margin-top: 10px;
    }

    .footer-list ul li {
        font-size: 15px;
    }

    .footer-logo {
        margin-bottom: 12px;
    }

    .footer-logo img {
        width: 43%;
    }

    footer .footer-legal .footer-legal-content-logos {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    footer .footer-legal .footer-legal-content-logos img {
        width: 30%;
        height: auto;
    }

    footer .footer-legal .footer-legal-content {
        flex-direction: column;
        width: 80%;
        gap: 16px;
    }

    footer .footer-legal .footer-legal-content p {
        margin: 0;
    }

    footer .footer-legal {
        padding-top: 25px;
        gap: 25px;
    }

    header div.navbar-image-mobile img {
        width: 64%;
    }

    header.accueil_titre {
        padding: 7px 5px;
    }

    header .accueil__menu_active li {
        font-size: 14px;
    }

    header .accueil__menu_active {
        padding: 0;
    }

    .headpage-bar {
        height: 66px;
    }

    .headpage-bar .button__action,.contacts {
        font-size: 14px;
    }

    .headpage-bar .button__action {
        gap: 3px;
    }

    .headpage-bar .contacts {
        flex-direction: column;
        gap: 8px;
        margin-right: 4px;
    }

    .headpage-bar .contacts .social_media {
        font-size: 17px;
        width: 100%;
        gap: 14px;
        justify-content: center;
    }

    .headpage-bar .button__action a i {
        margin-left: 4px;
    }

    .button_effect, .button_effect_blue, .button_effect_green, .button_effect_red, .form__del button {
        font-size: 13px;
    }

    .search_type {
        font-size: 15px;
        background-size: 16px;
        padding: 8px 28px 8px 8px;
        line-height: 1.4;
    }

    .search_type_multiple {
        font-size: 15px;
        padding: 12px;
        line-height: 1.4;
    }

    input.search {
        height: 25px;
        padding: 3px;
    }

    h1.title__page {
        font-size: 28px;
        text-shadow: 2px 1px 0 #e1e1e1;
    }
}

@media screen and (max-width: 330px) {
    h1.title__page {
        font-size: 25px;
        padding: 2px;
    }
}

@media screen and (max-width: 302px) {
    h1.title__page {
        word-break: break-word;
    }
}
