/* Style general des body */
body {
    margin: 0;
    padding: 0;
    padding-top: 50px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: rgb(236, 235, 235);
    min-height: 90vh;
}

/* Style general de h1,h2,h3 */
h1,
h2,
h3 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* Style general de chaque block */
#content0 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/* Style general du premier enfant de chaque block */
#content {
    width: 1110px;
    margin: auto;
    padding: 0;
    margin-top: 25px;
    margin-bottom: 25px;
    min-height: 50px;
}

/* Style du menu */
#menu {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 1px 1px 8px lightgray;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(9, 9, 110);
    height: 50px;
    padding: 0;
    overflow: hidden;
    z-index: 100;
}

#menu a img {
    cursor: pointer;
    margin-left: 10px;
    width: auto;
    height: 70px;
}

#menu ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    justify-items: center;
    align-content: center;
    margin: 0;

}

#menu ul li {
    color: whitesmoke;
}

.bouton_menu {
    color: whitesmoke;
    padding: 15px;
    display: none;
}

#menu ul li a {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    margin-top: 0;
    padding: 18px;
    color: lightgrey;
    text-decoration: none;
    font-size: 80%;
}


a.active {
    background-color: rgb(219, 2, 2);
}

#menu ul li a:hover {
    background-color: burlywood;
    color: whitesmoke;
}


.carousel {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

.section_img_contact img {
    width: 100%;
}

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

.block_form_contact {
    padding: 20px;
    background: whitesmoke;
    width: 40%;
}

.block_form_contact input {
    height: 25px;
}

.block_form_contact input,
.block_form_contact textarea {
    width: 96%;
    border: solid 1px lightgrey;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 2%;
    margin-top: 2px;
}

.block_form_contact button {
    width: 100%;
    text-align: center;
    background: blue;
    height: 40px;
    border: none;
    border-radius: 5px;
    color: whitesmoke;
    font-weight: bold;
    margin-top: 10px;
}

.block_form_contact button:hover {
    color: blue;
    border: solid 1px blue;
    background: whitesmoke;
}

.en_tete_contact h2 {
    background: lightgray;
    padding: 5px;
    margin-top: 0;
}

.en_tete_contact p {
    font-size: 80%;
    color: gray;
}


/* pour la galerie */
.block_galerie {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sous_contenu {
    width: 32%;
    height: 200px;
    background-color: black;
    margin-bottom: 20px;
    overflow: hidden;
    border: solid 2px whitesmoke;
}

.sous_contenu img {
    width: 100%;
    height: auto;
}

.sous_contenu article {
    position: relative;
    transition: 1s;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: whitesmoke;
    font-size: 100%;
}

.sous_contenu:hover img {
    filter: sepia(10);
    filter: opacity(30%);
}

.sous_contenu:hover article {
    display: flex;
    position: relative;
    margin-top: -100%;
    height: 100%;
    padding-top: 40%;
    padding-bottom: 40%;
}


/* pour la page index */
.block_index_1 {
    background: url(../images/image3_cap.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    min-height: 70vh;
    padding: 0;
    margin: 0;
    padding-bottom: 30px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: medium;
}

.block_index_1 #content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}


.block_index_1 #content #partie1 {
    width: 80%;
    height: auto;
    background: rgba(55, 75, 75, 0.7);
    padding: 2%;
    border-left: solid 5px red;
    color: whitesmoke;
}

.block_index_1 p {
    line-height: 20px;
    font-size: 90%;
}

.block_index_1 #partie1 a {
    padding: 10px;
    background: royalblue;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 10px;
    margin-top: 10px;
    color: whitesmoke;
    display: inline-block;
}

.block_index_1 #partie1 a:hover {
    background: whitesmoke;
    border: solid 1px lightgray;
    color: royalblue;
}



.block2 {
    background-color: whitesmoke;
}

.block_galerie #content #partie1 {
    width: 60%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.block_galerie #content #partie1 img {
    width: 33%;
    height: 170px;
    margin: 1px;
}

.block_galerie #content #partie1 .bouton {
    margin-top: 20px;
}

.block_galerie #content #partie1 a {
    padding: 10px;
    text-decoration: none;
    border: solid 1px lightgray;
    margin: 10px;
    color: blue;
    font-size: 100%;
    flex-wrap: wrap;
}

.block_galerie #content #partie1 a:hover {
    background-color: royalblue;
    color: whitesmoke;
}


.block_histoire #content #partie1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 100%;
    text-align: justify;
}

.block_histoire #content #partie1 img {
    float: left;
    width: 40%;
    height: auto;
    margin-right: 30px;
}


/* Style pour la page d'attraction */
.block_attraction {
    background: whitesmoke;
    border: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}

.block_attraction img {
    height: auto;
    max-height: 100%;
    width: 100%;
    margin-bottom: 0;
}


/*Style du pied de page du site*/
footer {
    background: rgb(10, 28, 66);
    width: 100%;
    margin: auto;
    text-align: center;
}

footer #partie1 a {
    margin: 1em;
}

footer #partie1 img {
    height: 30px;
    width: auto;
}

footer p {
    color: blanchedalmond;
    font-size: 90%;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Pour la page historicite */
.block_historique p {
    text-align: justify;
}

/* Responsivite du menu */
@media only screen and (max-width: 1122px) {
    #content {
        width: 1000px;
    }

    #menu {
        justify-content: space-between;
    }

    #menu ul li {
        display: none;
    }

    .bouton_menu {
        display: block;
        font-weight: bold;
    }

    #menu ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 15px;
    }

    #menu ul:hover li {
        display: flex;
        background-color: lightgray;
        margin-bottom: 1px;
        width: 100%;
    }

    #menu ul:hover li a {
        width: 100%;
        font-size: 100%;
        color: #333;
    }

    #menu li a.active {
        background-color: burlywood;
        color: lightgray;
    }

}

@media only screen and (max-width: 1024px) {
    #content {
        width: 75%;
    }
}

@media only screen and (max-width: 768px) {
    #content {
        width: 80%;
        /* display: none; */
    }

    .block_galerie {
        border: solid;
        width: 100%;
    }
    .block_galerie #content{
        
    }
    .block_galerie #partie1{
        /* border: solid; */
        width: 100%;
    }
    .block_galerie {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sous_contenu {
        width: 90%;
    }

    .carousel{
    }
    .carousel .img{
        width: 100%;
        height: 200px;
        animation: changeImage 10s ease-in-out infinite;
        background-size: cover;
    }

    @keyframes changeImage {
        0%{
            background-image: url("../images/catedrale.jpg");
        }
        50%{
            background-image: url("../images/image2.jpeg");
        }
        100%{
            background-image: url("../images/image9.jpeg");
        }
    }
    .carousel img{
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    #content {
        width: 90%;
    }
}