*{
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px solid blue;
    outline-offset: 4px;
}

body{
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    background: #444444;
}

html, body{
    height: 100%;
    margin: 0;
}

img{
    width: 100%;
    height: auto;
}

ul{
    list-style-type: none;
    padding: 0;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: rgb(39, 37, 37);
    color: #f9f9f9;
}

nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1em;
    gap: 0.5em;
}

main{
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.titre{
    text-align: center;
}

.justify{
    text-align: justify;
}

.container{
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    align-items: center;
    border-radius: 8px;
    gap: 1em;
    background-color: #444444;
}

.vignette img{
    width: 100%;
    height: 100%;
}

.vignette{
    border-radius: 8px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: 2em;
    padding-bottom: 1em;
}

.btn-contact {
  display: inline-block;
  background-color: rgb(39, 37, 37);
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.gallery{
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    align-items: center;
    border-radius: 8px;
}


.contact-form {
  display: flex;
  flex-direction: column;
  padding: 1em;
  margin: 0 auto;
  max-width: 37.5em;
  color: white;
  gap: 0.5em;
}

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    background-color: rgb(39, 37, 37);
    color: #f9f9f9;
    padding: 1em;
}

.socials img{
    width: 100%;
    height: 30px;
    object-fit: contain;
}

.socials{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2em;
}

@media (min-width: 48em){
    .vignette{
        width: 35em; max-width: 70rem;
    }

    .vignette img{
        width: 25em; height: 20em;
    }

    .contact-form{
        align-items: center;
    }

    .contact-form form{
        width: 100%;
        max-width: 1em;
    }
    .contact-form input, .contact-form textarea, .contact-form button{
    width: 100%;
    }

    .gallery{
        flex-direction: row;
        justify-content: center;
    }

    nav{
        flex-direction: row;
    }
}