@font-face {
    font-family: Montserrat ;
    src: url("../font/Montserrat-Regular.ttf"), format("truetype");
}

@font-face {
    font-family: Roboto ;
    src: url("../font/Roboto-Regular.ttf"), format("truetype");
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Roboto;
    color: white;
    background: #222222;
    padding: 0;
    margin: 0;
}

.image-top {
    background-image: url("../img/grossesse2-1440x1080.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 1200px;
    position: relative;
}

.image-top h1 {
    position: absolute;
    top: 80%;
    left: 20%;
    font-size: 3rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.image-bot {
    background-image: url("../img/mariage1-1440x1080.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 1200px;
    position: relative;
}

header {
    padding: 0 20px;
    position: sticky;
    position: -webkit -sticky;
    top: 0;
    background: #222222;
    z-index: 1000;
}

nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    padding: 2em 0;
}

main{
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 3em;
}

section, h2 {
    margin: 3em 0 1em 0;
    text-align: center;
}

.element {
    margin: 2em auto;
}

hr {
    border-top: 1px solid white;
    color: white;
    overflow: visible;
    text-align: center;
    height: 1px;
    width: 300px;
}

.titre-images {
    text-align: center;
}

a {
    text-decoration: none;
    color: white;
}

p {
    width: 700px;
    text-align: justify;
    line-height: 1.5em;
}

.portfolio {
    margin: 1em 0 0.5em 0;
    padding: 3em 0 2.5em 0;
}

.bandeau {
    background: #414141;
}

h3 {
    margin-bottom: 3em;
}

.gallerie {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

.gallerie img {
    width: 30%;
    gap: 15;
    border: 5px solid white;
}

form {
    display: block;
    margin: 0 auto;
    max-width: 600px;
}

.champs_form {
    margin-bottom: 1.5em;
    text-align: left;
}

label {
    display: block;
    text-align: left;
}

input, textarea {
    font-size: 1em;
    padding: 5px;
}

input {
    width: 50%;
    height: 1.5em;
}

textarea {
    resize: none;
    width: 100%;
    height: 150px;
    font-family: Roboto;
}

input[type="submit"] {
    width: 200px;
    padding: 10px 0;
    height: auto;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 1em 1em;
    background: #414141;
}

footer p {
    text-align: center;
}

@media screen and (max-width: 800px) {
    .gallerie img {
        width: 90%;
        margin-bottom: 20px;
        border: 5px solid white;
    }

    .element {
        margin: 2em 20px;
    }

    p {
        width: auto;
    }

    form {
        padding: 0 20px;
    }

    input {
        width: 80%;
    }
}