/********************************PAGE CONTACT***********************************/
.container2{
    width: 100%;
    height: 60vh;
    display: flex; /* Utilise Flexbox pour centrer le contenu */
    flex-direction: column; /* Arrange les éléments en colonne */
    justify-content: center; /* Centre verticalement */
    align-items: center;
    background: url("../gallery/introcontact2.jpg");
    background-size: cover;
    background-position-x: center;
    background-position-y: -7vh;
    background-attachment: fixed;
    position: relative;
}



.container{
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 2vh;
    height: 190vh;
}

.container div{
    display: flex;
}

.un_projet{
    margin-top: 10vh;
    height: 40vh;
    width: calc(100vw - 4px);
    flex-direction: column;
    justify-content: center;
    border: 2px solid rgb(20, 102, 184);
}

.titre_image{
    align-items: center;
}

.titre_image h1{
    margin-left: 5vw;
    color: rgb(20, 102, 184);
    font-size: 5vw;
    font-weight: 800;
}

.image{
    width:10vw;
    height: 10vh;
    background: url("../gallerie/fleche_boucle.png") no-repeat;
    background-position: center;
    background-size: contain;
    align-self: end;
}

.un_projet p{
    margin-left: 5vw;
    color: black;
    font-size: 1.5vw;
    font-weight: 300;
}

.contact{
    width: 55vw;
    height: 64vh;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 20vh;
    right: 5vw;
    background-color: #f0f0f2;
}

.contact > h1{
    color: rgb(20, 102, 184);
    font-size: 4vw;
    font-weight: 800;
    margin-top: 3.5vh;
}

.contact > p{
    color: white;
    background-color: rgb(20, 102, 184);
    font-size: 1.5vw;
    padding: 5px;
    margin-top: 3.5vh;
}

.coordonnees{
    justify-content: center;
    align-items: center;
    width: 75%;
    margin-top: 3.5vh;
}

.coordonnees div{
    height: 30vh;
}

.infos{
    flex:6;
    flex-direction: column;
}

.infos h1{
    color: rgb(20, 102, 184);
    font-size: 1.5vw;
    font-weight: 500;
    text-align: left;
    margin-top: 3.5vh;
}

.infos p{
    color: black;
    font-size: 1.3vw;
    font-weight: 300;
    text-align: left;
    margin-top: 3.5vh;
    line-height: 2.5vh;
}

.infos_reseaux{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4vh;
    flex: 2;
}

.infos_reseaux a{
    color: rgb(20, 102, 184);
    font-size: 2.3vw;
    transition: all .3s ease-in-out;
}

.infos_reseaux a:hover{
    color: white;
}



.formulaire{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 45vh;
}

.formulaire > h1{
    color: white;
    padding: 5px;
    background-color: rgb(20, 102, 184);
    font-size: 3vw;
    font-weight: 800;
    margin-bottom: 5vh;
}

.formulaire form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 5vh;
    gap: 6vh;
}

form > div{
    gap: 2vw;
}

form > div div{
    flex-direction: column;
    justify-content: center;
}

.row1 div{
    flex:1;
}

.row2 .connu{
    flex:2;
}

.row3 div{
    width: 100%;
}

.formulaire form > div div label{
    color: black;
    font-weight: 700;
}

.formulaire form > div div label span{
    color: rgb(20, 102, 184);
}

.formulaire form > div div input, .formulaire form > div div textarea{
    border: none;
    border-bottom: 4px solid rgb(20, 102, 184);
    margin-top: 3vh;
    transition: all .3s ease-in-out;
    box-sizing: border-box;
    padding-left: 5px;
    padding-bottom: 5px;
    background: none;
    color: black;
}

.formulaire form > div div input:focus, .formulaire form > div div textarea:focus{
    outline: none;
    border-bottom: 4px solid rgb(10, 64, 118);
}

.formulaire form button{
    width: 15vw;
    margin-left: auto;
    margin-right: auto;
    background: none;
    border: 2px solid rgb(20, 102, 184);
    cursor: pointer;
    transition: all .3s ease-in-out;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 15px;
    font-size: 1.5vw;
    font-weight: 800;
    color: rgb(20, 102, 184);
}

.formulaire form button:hover{
    color: white;
    background-color: rgb(20, 102, 184);
}








@media (orientation: portrait) {
    header div#barre_contact {
        height: 4.5vw !important;
    }
    
    .container2 {
        width: 100% !important;
        height: 60vw !important;
    }
    
    .overlay2_1 h1 {
        font-size: 3vh !important;
    }
    
    .overlay2_1 p {
        margin-top: 5vw !important;
        font-size: 1.5vh !important;
        font-weight: 500 !important;
    }
    
    .container {
        margin-top: 2vw !important;
        height: auto !important;
    }
    
    .un_projet {
        margin-top: 10vw !important;
        height: 40vw !important;
    }
    
    .titre_image h1 {
    font-size: 3vh !important;
    }
    
    .un_projet p {
        font-size: 1.5vh !important;
        font-weight: 500 !important;
    }
    
    .contact {
        width: 63vw !important;
        height: 64vw !important;
        top: 35vw !important;
    }
    
    .contact > h1 {
        font-size: 3vh !important;
        margin-top: 3.5vw !important;
    }
    
    .contact > p {
        font-size: 1.5vh !important;
        margin-top: 3.5vw !important;
    }
    
    .coordonnees {
        margin-top: 3.5vw !important;
    }
    
    .infos h1 {
        font-size: 2vh !important;
        margin-top: 3.5vw !important;
    }
    
    .infos p {
        font-size: 1.5vh !important;
        margin-top: 3.5vw !important;
        line-height: 3.5vw !important;
    }
    
    .coordonnees div {
        height: 30vw !important;
    }
    
    .infos_reseaux a {
        font-size: 3vh !important;
    }
    
    .formulaire {
        margin-top: 56vw !important;
    }
    
    .formulaire > h1 {
        font-size: 3vh !important;
        margin-bottom: 5vw !important;
    }
    
    .formulaire form {
        margin-top: 5vw !important;
        gap: 16vw !important;
        width: 100% !important;
    }
    
    form > div div {
        flex: 1 !important;
    }
    
    .formulaire form > div div label {
        font-size: 1.5vh !important;
    }
    
    .formulaire form > div div input, .formulaire form > div div textarea {
        margin-top: 3vh !important;
        font-size: 1.2vh !important;
    }
    
    .formulaire form button {
        width: 26vw !important;
        font-size: 1.7vh !important;
        margin-bottom: 5vw !important;
    }
}