@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

header {
    background-color: grey;
    position: relative;
    height: 200;
    top: 0;
}

header>* {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px 0 30px;
}

header img {
    width: 150;
}

header>ul {
    right: 0;
    text-decoration: none;
}

header a {
    color: white;
}

header a:nth-child(2) {
    font-size: 20px;
    font-weight: 600;
    margin-left: 300px;
}

header>ul li {
    margin: 10px;
    font-weight: 600;
    display: inline-block;
    list-style: none;
    transition: background-color 0.5s ease-in-out;
}

header>ul li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.page-main {
    display: block;
    width: 90%;
    margin: auto;
    margin-top: 100px;
}
.titre {
    margin-bottom: 50px;
}

.bienvenue {
    display: flex;
    flex-direction: row;
    justify-content:center;
    margin-bottom: 100px;
    margin-left: 10px;

}

.bienvenue img {
    width: 300px;
    align-self: center;
    border-radius: 5px;
}



.bienvenue>.texte {
    width: 500px;
    margin-right: 20px;
}

.texte p {
    text-align: justify;
    font-size: 20px;
    margin-bottom: 100px;
}

.separator {
    height: 3px;
    background-color: grey;
    width: 100%;
    margin: 20px 0;
}

.a-propos {
    margin-bottom: 100px;
}

.title-category {
    text-align: center;
}

.picture-propos {
    width: 100%;
    height: 500px;
    background-image: url("img/imgeglise.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 5px;
    position: relative;
}

.infos-picture-propos {
    width: 100%;
    height: 100%;
    z-index: 2;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    border-radius: 5px;
}

.picture-propos-text {
    position: absolute;
    bottom: 0;
    margin: 10px;
}

input:not(input[type="submit"]),
textarea {
    border: none;
    border-bottom: 2px solid grey;
    resize: none;
    outline: none;
    font-family: "Montserrat";
    width: 30vw;
    margin-bottom: 20px;
    font-size: 20px;
    
}

label {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 20px;
}

.form-top {
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: space-between;
}

.form-left>div * {
    display: block;
    margin-right: 50px;

}

.form-right>div * {
    display: block;
    margin-left: 50px;
}

.form-contact input[type="submit"] {
    background-color: grey;
    border-radius: 20px;
    border: none;
    padding: 10px;
    font-weight: 600;
    font-size: 20px;
    color: white;
    font-family: "Montserrat";
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.form-contact input[type="submit"]:hover {
    transform: translateY(-5px);
}

footer {
    height: 160px;
    position: relative;
    background-color: grey;
}

footer h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}















@media screen and (max-width: 1100px) {

    header>* {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 30px 0 30px;
    }



    header img {
        width: 150;

    }

    header>ul {
        right: 0;
        text-decoration: none;
    }

    header a {
        color: white;
    }

    header a:nth-child(2) {
        font-size: 20px;
        font-weight: 600;
        margin-left: 300px;
    }

    header>ul li {
        margin: 3px;
        font-weight: 700;
        display: inline-block;
        list-style: none;
        transition: background-color 0.5s ease-in-out;
    }

    header>ul li:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
    .page-main {
    display: block;
    width: 50%;
    margin: auto;
    margin-top: 100px;
}
    .picture-propos {
    width: 100%;
    height: 400px;
    background-image: url("img/imgeglise.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 5px;
    position: relative;
    }

    .picture-propos-text {
    position: absolute;
    bottom: 0;
    margin: 15px;
    }
    
    .texte p {
        width: 16px;
    }

    .texte h1 {
        font-size: 20px;
    }

    .a-propos {
        margin-bottom: 75px;
    }

    .title-category {
        text-align: center;
    }
    .phone-number {
        text-align: center;
    }

    .form-top {
        display: flex;
        flex-direction: column;
        position:relative;
        justify-content: space-between;
        align-items: center;

    }

    .form-left>div * {
        display: block;
        margin-right: 10px;
        text-align: center;
    }

    .form-right>div * {
        display: block;
        margin-left: 10px;
        text-align: center;
    }
    
    


        
}
@media screen and (max-width: 600px) {
    .bienvenue>img {
    width: 100px;
    align-self: center;
    border-radius: 5px;
    }
    
    .form-left>div * {
        display: block;
        margin-right: 1px;

    }

    .form-right>div * {
        display: block;
        margin-left: 1px;
    }
    header img {
        display: none;
        

    }
}





.loader {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: grey;
    top: 0;
    transition: top 1s ease-in-out;
    display: none;
}

.loader p {
    color: white;
    font-size: 30px;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}