/*
* Demande de devis et rejoindre l'équipe
*/

.main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 4rem 10%;
    padding-bottom: 0;
}
/* Reponsive desktop */
@media screen and ( min-width:1280px ) {
    .main{
        margin-top: 15vh;
        position: relative;
        padding: 4rem 15%;
        padding-right: 50%;
    }
    .main::after{
        position: absolute;
        content: url(../images/design/elements-graphiques/assiette-8.png);
        right: 8%;
        bottom: 0;
        width: 40%;
    }
}


/* Formulaire */

.formulaire .sous-titre{
    color: var(--primaire);
    font-size: 2rem;
    border-bottom: solid 1.5px var(--secondaire);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}
label {
    display: block;
    margin-bottom: .25rem;
}
input,
select,
textarea {
    width: 100%;
    padding: 8px;
    border: solid 1px #A4A4A4;
    border-radius: 0;
    font-family: 'Dosis', sans-serif;
	background: transparent;
}
textarea{
    max-width: 100%;
    margin-bottom: .75rem;
}
/* Bouton */
.formulaire .btn{
    background-color: transparent;
    cursor: pointer;
	border: 1px solid var(--primaire);
    color: var(--primaire);
}
.formulaire .btn:hover{
    background-color: var(--primaire);
	color: var(--blanc);
}
/* Focus */
input:focus,
select:focus,
textarea:focus {
    outline: 1px solid var(--secondaire);
}
.formulaire .rgpd input:focus, .formulaire input[type="radio"],  .formulaire input[type="checkbox"]{
    outline: initial;
}
.formulaire .rgpd input{
    width: initial;
}
.form-group{
    margin-bottom: .75rem;
}
/* Champs radio & checkbox */
.formulaire input[type="radio"], .formulaire input[type="checkbox"]{
    width: initial;
    display: inline;
    margin-right: .25rem;
}
.radio_group {
    display: flex;
}
.radio_group label, .checkbox-group label{
    margin-right: 1.5rem;
}
.compris__conteneur{
    margin: .5rem 0;
}
/* Champs professionnels invisible par défaut */
.champs-pro{
    display: none;
}
/* Champs input type file */
input[type="file"]{
    border: initial;
    padding: 0;
}
input[type="file"]::-webkit-file-upload-button {
    padding: .5rem;
    border: solid 1px #A4A4A4;
    border-radius: 0;
    cursor: pointer;
    margin-right: 1rem;
}
input[type="file"]::-webkit-file-upload-button:hover {
    padding: .5rem;
    background-color: #A4A4A4; 
    border: solid 1px #A4A4A4;
    color: var(--blanc);
    border-radius: 0;
    cursor: pointer;
}
/* Mettre les étoile en rouge */
.requis{
    color: var(--primaire);
}


/* Responsive styles */
@media screen and (min-width: 768px) {
    .section {
        width: 100%;
    }
    .form-group{
        width: calc(50% - 2.2rem);
        display: inline-block;
        margin-right: 4rem;
    }
    .form-group:nth-child(odd){
        margin-right: 0;
    }
    .checkbox-group label{
        display: inline;
    }


    /* Compris */
    .formulaire .compris__conteneur{
        display: flex;
    }
    .formulaire .compris{
        width: 15rem;
    }
    .formulaire .compris label{
        width: fit-content;
    }
    .formulaire .compris .radio_group{
        width: fit-content;
    }
}

