
/* //////////////////////////////////////////////////////////////////////////////////////////// */

/* CONTACT */

/* //////////////////////////////////////////////////////////////////////////////////////////// */

#div_contact{
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 80%;
    column-gap: 20px;
    height: 400px;
}

#infos_contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    outline : 2px solid rgb(var(--couleur-3));
    border-radius : 15px;
    padding : 10px;
}

#infos_contact > p > span {
    color : rgb(var(--couleur-3));
    font-size : 18px;
}

#infos_contact table{
    border-collapse: collapse;
    width: 100%;
}

#infos_contact table tr th{
    font-size: 20pt;
    text-align: left;
    padding-bottom: 20px;
    color: rgb(var(--couleur-3));
    font-weight: 500;
}

#infos_contact table tr td:first-child{
    width: 2%;
}

#infos_contact table tr td:nth-child(2){
    width: 25%;
}

#infos_contact table tr td{
    font-size: 14pt;
    padding: 5px 0;
    vertical-align: top;
}

#infos_contact table tr td img{
    height: 20px;
    width: auto;
    margin-right: 10px;
}

#infos_contact table tr td a{
    color: rgb(var(--couleur-1));
    text-decoration: underline;
}

#infos_contact table tr td a:hover{
    text-decoration: underline;
}

#emplacement{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#emplacement iframe{
    width: 95%;
    height: 95%;
    border-radius: 40px;
    -webkit-box-shadow: 0px 0px 10px 5px rgb(var(--couleur-4), 0.2); 
    box-shadow: 0px 0px 10px 5px rgb(var(--couleur-4), 0.2);
}

#infos_contact p{
    font-weight: bold;
    width: 100%;
    text-align: left;
    color: rgb(var(--couleur-2));
}

/* //////////////////////////////////////////////////////////////////////////////////////////// */

/* FORMULAIRE CONTACT */

/* //////////////////////////////////////////////////////////////////////////////////////////// */

.banniere_form {
    display : flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.banniere_form > div:nth-child(1) {
    position : absolute;
    left : 0;
    top: 0;
    width : 100%;
    height : 100%;
    z-index : -1;
    opacity : 0.2;
    filter : brightness(0.2);
}

form{
    margin: 50px auto;
    display: grid;
    grid-template:"gauche droite"
    "valider valider";
    grid-template-columns: repeat(2, 50%);
    grid-auto-rows: 1fr;
    grid-gap: 50px;
    width: 80%;
    color: rgb(var(--couleur-1));
    justify-items : center;
    align-content : center;
}

.contenu_banniere_form {
    width : 100%;
}

#formulaire {
    width : 100%;
}

form * {
    color : rgb(var(--couleur-1));
}

#form_gauche{
    grid-area: gauche;
}

#form_droite{
    grid-area: droite;
}

#envoyer{
    grid-area: valider;
    color : rgb(var(--couleur-5));
}

#form_gauche, #form_droite{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width : 100%;
}

label{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14pt;
    width: 100%;
}

label input, 
textarea,
label select{
    font-size: 14pt;
    border-radius: 10px;
    border: 1px solid rgb(var(--couleur-1));
    background-color: white;
    padding: 8px 20px;
    margin-top: 5px;
}

form input[type=submit]{
    width: 30%;
    background-color: rgb(var(--couleur-2));
    color: rgb(var(--couleur-4));
    border: 1px solid rgb(var(--couleur-5));
    border-radius: 20px;
    margin: 0 auto;
    font-size: 14pt;
    padding: 5px 0;

}
form input[type=submit]:hover{
    color: rgb(var(--couleur-3));
    border: 1px solid rgb(var(--couleur-3));
}

/*
input:not([type=submit]), textarea{
    background-color: rgb(var(--couleur-4));
}
*/

#contenu_formulaire{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

select {
    width : 100%;
    padding : 8px;
    border-radius : 10px;
}

#form_droite > span {
    width : 100%;
}

input {
    width : calc(100% - 16px);
    padding : 8px;
    border-radius: 10px;
    outline : 1px solid rgb(var(--couleur-2));
    border : none;
}

#message_form {
    resize : none;
    height : 100%;
    width : calc(100% - 40px);
}

#etat_envoi{
    text-align: center;
    color: rgb(var(--couleur-4));
    font-size: 20pt;
    animation: etat_envoi 0.2s linear;
}

@keyframes etat_envoi {
    from{
        transform: scale(0);
    }
    to{
        transform: scale(1);
    }
}

/* //////////////////////////////////////////////////////////////////////////////////////////// */

/* RESPONSIVE */

/* //////////////////////////////////////////////////////////////////////////////////////////// */

/* TAILLE 1 : Ordinateur et Tablette (paysage) 960px -> 1599px */

@media screen and (max-width: 1599px){
    
    /* CONTACT */

    #infos_contact table tr td:nth-child(2){
        width: 30%;
    }
    
    #infos_contact table tr td{
        font-size: 12pt;
    }
}

/* TAILLE 2 : Tablette (portrait) 768px -> 959px */

@media screen and (max-width: 959px){

    /* FORMULAIRE CONTACT */

    form{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        grid-template:none;
        grid-template-columns: none;
        grid-auto-rows: none;
    }
    
    #form_gauche, #form_droite{
        width: 50%;
    }
    
    /* CONTACT */
    
    #div_contact{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
    }
    
    #emplacement{
        width: 100%;
        height: 500px;
    }
    
    #infos_contact{
        width: calc(100% - 50px);       
    }   

    #infos_contact p{
        position: relative;
    }
}

/* TAILLE 2 : Tablette (portrait) 768px -> 959px */

@media screen and (max-width: 959px){

    /* FORMULAIRE CONTACT */

    #formulaire{
        width: 100%;
        padding: 0;
    }

    form{
        width: fit-content;
        padding: 0;
        width: 100%;
        display : flex;
        flex-direction: column;
        align-items: center;
    }

    #form_gauche, #form_droite{
        width: 90%;
    }

    form label{
        width: 100%;
    }

    form input[type=submit]{
        width: 50%;
        padding: 20px 0;
    }

    #etat_envoi{
        font-size: 14pt;
    }

}

/* TAILLE 3 : Mobile max 767px */

@media screen and (max-width: 767px){

    #emplacement{
        height: 300px;
    }

    #infos_contact{
        margin-top: 30px;
        width: 100%;
    }

    #infos_contact table{
        width: 100%;
    }
    
    #infos_contact table tr td:nth-child(2){
        width: 38%;
    }
}