/*ANIMATION D'ENTREE*/
.no-scroll {
    position: fixed;
    width: 100%;
}
#couverture {
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background-color: rgba(5, 85, 138, 1);
    position: absolute;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: translateY(-100%);
    animation: name_intro 4s ease;
    overflow: hidden;
}

#intro_text {
    display: flex;
    flex-direction: column;
    color: white;
    justify-content: center;
    align-items: center;
    overflow: hidden;

}

#intro_text p {
    display: inline-flex;
    font-weight: bold;
    font-size: 2rem;
    margin: 1rem;
}

#intro_text hr {
    width: 25rem;
    height: 0.1rem;
    background-color: white;
}

#haut {
    animation: left_entry 3s ease;
}

#bas {
    animation: right_entry 3s ease;
}

#middle {
    animation: back_entry 3s ease;
}

@keyframes right_entry {
    0% {
        transform: translateX(75%);
        height: 0.1rem;
    }

    66% {
        transform: translateX(0%);
        height: 0.1rem;
    }

    75% {
        transform: translateX(0%);
        height: 0.1rem;
    }

    87.5% {
        transform: translateX(0%);
        height: 0.3rem;
    }

    100% {
        transform: translateX(0%);
        height: 0.1rem;
    }
}

@keyframes left_entry {
    0% {
        transform: translateX(-75%);
        height: 0.1rem;
    }

    66% {
        transform: translateX(0%);
        height: 0.1rem;
    }

    75% {
        transform: translateX(0%);
        height: 0.1rem;
    }

    87.5% {
        transform: translateX(0%);
        height: 0.3rem;
    }

    100% {
        transform: translateX(0%);
        height: 0.1rem;
    }
}

@keyframes back_entry {
    0% {
        font-size: 2rem;
        margin: 1rem;
    }

    66% {
        font-size: 2rem;
        margin: 1rem;
    }

    75% {
        font-size: 2rem;
        margin: 1rem;
    }

    87.5% {
        font-size: 2.4rem;
        margin: 0.8rem;
    }

    100% {
        font-size: 2rem;
        margin: 1rem;
    }
}

@keyframes name_intro {
    0% {
        transform: translateY(0%);
    }

    75% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-100%);
    }
}

@media (max-width: 550px) {
@keyframes back_entry {
    0% {
        font-size: 1.5rem;
        margin: 1rem;
    }

    66% {
        font-size: 1.5rem;
        margin: 1rem;
    }

    75% {
        font-size: 1.5rem;
        margin: 1rem;
    }

    87.5% {
        font-size: 2rem;
        margin: 0.8rem;
    }

    100% {
        font-size: 1.5rem;
        margin: 1rem;
    }
}
#intro_text hr {
    width: 20rem;
}
#intro_text p {
    font-size: 1.5rem;
}
#couverture {
    overflow: hidden;
}
}



/*__________PAGE__________*/

.content {
    flex: 1 0 auto;
}

html,
body {
    height: 100%;
    margin: 0;

}

body {
    display: flex;
    flex-direction: column;
    position: relative;
}

header {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

.titre_header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    font-size: 2.5rem;
    margin: 0;
    flex-grow: 2;
    background-color: rgba(5, 85, 138, 0.801);
}

.titre_header img {
    display: flex;
    width: 8rem;
    justify-content: left;
    margin: 5rem;
}

.menu {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 80%;
    height: 2rem;
}

.menu a {
    font-size: 1.3rem;
    color: rgba(0, 91, 174, 1);
    margin-bottom: 0;
    text-decoration: none;
}

.menu a:hover,
.menu a:focus {
    text-decoration: underline;
}

.menu_actuel {
    font-weight: bold;
}

header hr {
    width: 90%;
    color: rgba(5, 85, 138, 0.801);
    height: 0.2rem;
    background-color: rgba(5, 85, 138, 0.801);
}

.fleche_menu {
    margin: 0.5rem;
    height: 0rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 91, 174, 1);
    font-size: 1.3rem;
}

.fleche_menu img {
    width: 2rem;
    height: auto;
    margin-left: 1rem;
    margin-right: 1rem;
    rotate: 180deg;
}

.fleche_menu p {
    margin-left: 1rem;
}

@media (min-width:701px) and (max-width:900px) {
    .titre_header {
        flex-direction: column;
        flex-grow: 0;
        text-align: center;
        font-size: 2rem;
    }

    .titre_header img {
        margin: 2rem;
    }

    .menu {
        height: 0rem;
        overflow: hidden;
        flex-direction: column;
        transition: all 0.7s ease;
    }

    .menu a {
        margin-top: 0.5rem
    }

    .fleche_menu {
        height: 4rem;
        border-style: solid;
        border-width: 0.2rem;
        border-radius: 1rem;
        border-color: rgba(5, 85, 138, 0.8);
    }
}

@media (max-width:700px) {
    .titre_header {
        flex-direction: column;
        flex-grow: 0;
        text-align: center;
        font-size: 1.5rem;
    }

    .titre_header img {
        margin: 2rem;
        width: 6rem;
    }

    .menu {
        height: 0rem;
        overflow: hidden;
        flex-direction: column;
        transition: all 0.7s ease;
    }

    .menu a {
        margin-top: 0.5rem
    }

    .fleche_menu {
        height: 4rem;
        border-style: solid;
        border-width: 0.2rem;
        border-radius: 1rem;
        border-color: rgba(5, 85, 138, 0.8);
    }
}

/*__________MAIN__________*/

.titre {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
}

.titre img {
    width: 6rem;
    height: auto;
}

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

.texte_titre h1 {
    font-size: 4rem;
    margin-bottom: 0;
    margin-top: 0;
}

.texte_titre p {
    font-size: 1.5rem;
    margin-top: 0;
}

@media (max-width:600px) {
    .titre {
        margin-top: 0.7rem;
        flex-direction: column;
        align-items: center;
    }

    .texte_titre h1 {
        font-size: 3rem;
    }

    .texte_titre p {
        font-size: 1.7rem;
    }
}


.IMAGE {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.IMAGE img {
    display: flex;
    width: 50%;
    align-items: center;
}

.caption {
    display: flex;
    position: absolute;
    right: 0.5rem;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
}

.group_txt {
    display: flex;
    width: 50%;
    flex-direction: column;
}

.paragraphe {
    margin-left: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    text-indent: 3rem;
    font-size: 1rem;
}

.liste {
    margin-left: 4rem;
    font-size: 1rem;
}

.texte_explicatif {
    display: flex;
    margin: 3rem;
    flex-direction: row;
    font-size: 1rem;
}

.legende {
    display: inline-flex;
    justify-content: right;
}

.hugo {
    font-size: 1.3rem;
    margin-left: 2.5rem;
    margin-bottom: 0rem;
}

#separateur1 {
    display: inline-flex;
    width: 10rem;
    height: 0.2rem;
    background-color: rgba(5, 85, 138, 0.801);
    border-radius: 15%;
    margin-left: 3rem;
    margin-top: 0;
    margin-bottom: 0;
}

#separateur2 {
    display: inline-flex;
    width: 13rem;
    height: 0.2rem;
    background-color: rgba(5, 85, 138, 0.801);
    border-radius: 15%;
    margin-left: 3rem;
    margin-top: 0;
    margin-bottom: 0;
}

#titre_partie {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: rgba(0, 91, 174, 1);
    font-size: 2rem;
}

.MH_title {
    display: flex;
    font-weight: bold;
    font-size: 1.1rem;
    width: 95%;
}

.Monument_date {
    display: flex;
    font-style: italic;
    width: 90%;
}

.MH_text {
    display: flex;
    text-indent: 2rem;
    width: 90%;
}

#MH_content {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.MH_element {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.MH_explain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1rem;
}

.image_MH {
    display: flex;
    margin: 1.5rem;
}

#MH_Eglise {
    height: 25rem;
}

#MH_crypte {
    height: 20rem;
    align-self: center;
}

#croix_MH {
    height: 25rem;
}

#ferme {
    margin: 1.5rem;
}

#ferme_MH {
    height: 20rem;
}

#abbaye {
    height: 20rem;
}

.image_total {
    display: flex;
    flex-direction: column;
}

.image_total p {
    margin-left: 3.5rem;
    margin-right: 3.5rem;
    font-weight: bold;
}

@media (max-width:1000px) {
    #elt1 {
        flex-direction: column;
    }

    #MH_Eglise {
        height: auto;
        width: 25rem;
    }

    #elt2 {
        flex-direction: column-reverse;
    }

    #elt2 img {
        height: auto;
        width: 25rem;
    }

    #elt3 {
        flex-direction: column;
    }

    #elt3 img {
        width: 25rem;
        height: auto;
    }

    #elt4 {
        flex-direction: column-reverse;
    }

    #elt4 img {
        width: 25rem;
        height: auto;
    }

    .image_total {
        align-items: center;
    }
}



@media (max-width:900px) {
    .separateur {
        margin-left: 1.5rem;
    }

    .hugo {
        margin-left: 1rem;
    }

    .caption {
        font-size: 0.8rem;
    }

    .texte_explicatif {
        flex-direction: column;
        margin: 1rem;
    }

    .paragraphe {
        margin-left: 1rem;
        max-width: 100%;
        margin-right: 1rem;
    }

    .group_txt {
        width: 100%;
    }

    #titre_partie p {
        text-align: center;
        margin: 0.5rem;
    }

    .IMAGE img {
        width: 75%;
    }
}



/*__________FOOTER__________*/

.footer {
    display: flex;
    background-color: rgba(8, 129, 209, 0.6);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer_content1 {
    display: flex;
    width: 50%;
    margin-left: 1rem;
    flex-direction: column;

}

.footer_content2 {
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: end;
    margin-right: 2rem;
    justify-content: right;

}

.footer_ligne {
    display: flex;
    align-items: center;
    margin: 0.5rem;
}

.footer_ligne img {
    display: inline-flex;
    width: 1.5rem;
    height: auto;
}

.footer_ligne p {
    display: inline-flex;
    margin: 0;
}

.footer_content2 img {
    width: 7rem;
    height: auto;
}

@media (max-width:900px) {
    .footer {
        flex-direction: column;
        align-items: normal;
    }

    .footer_ligne {
        width: 90%;
    }

    .footer_content1 {
        width: 90%;
    }

    .footer_content2 {
        width: 100%;
        align-items: center;
        margin-bottom: 4rem;
        margin-top: 1rem;
    }
}