
/* --------------------------------------------------------------- */
/*
/* Formulaire
/*
/* --------------------------------------------------------------- */

#formulaire {
    padding: 40px 0 10px 0;
    background: url('../../images/index/fond-picto.png') no-repeat center center;
    background-size: cover;
}

#formulaire h2 {
    margin-bottom: 0px;
}

#formulaire .bloc-contenu {
    margin: 5px auto;
}

#page .form-control{
    border-radius: 0!important;
}

#page .text-center .obligatoire{
    float: none;
}

#page form {
    padding: 50px 20px;
}

#page form .form_group{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

#page form .group{
    position:relative;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

#page form .group textarea{
    resize: none;
    height: 200px;
}

#page form .group input, #page form .group textarea{
    display:block;
    width:100%;
    border: none;
    border-radius: 0px;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 2px rgba(22,22,22,0.2);
    background: #fff;
    color: #000;
    font-size: 16px;
    margin: 5px 0;
}

#page form .group input:invalid{
    color: #af2e28;
}

#page form .group select {
    font-size: 15px;
    font-weight:normal;
    border-top: none;
    border-left: none;
    border-right: none;
    padding-left: 1px;
    border-bottom: 1px solid #232323;
}

#page form .group select:focus{
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#page form .group input:focus, #page form .group textarea:focus{
    outline:none;
    -webkit-box-shadow: none;
            box-shadow: none;
}

#page form .group label{
    text-transform: uppercase;
    font-size: 17px;
    text-align: left;
    font-weight: bold;
    position:absolute;
    pointer-events:none;
    left: 30px;
    top: 12px;
    -o-transition:0.2s ease all;
    transition:0.2s ease all; 
    -moz-transition:0.2s ease all; 
    -webkit-transition:0.2s ease all;
    padding: 0;
    max-width: calc(100% - 30px);
    line-height: initial;
}

#page form .group select ~ label{
    top: -15px;
    left: 20px;
}

#page form .group input:focus ~ label, #page form .group input.filled ~ label,
#page form .group textarea:focus ~ label, #page form .group textarea.filled ~ label{
    top: -22px;
    font-size: 16px;
}

#page form .group .bar{
    position:relative;
    display:block;
    width:100%;
}

#page form .group .bar:before{
    left:50%;
}
#page form .group .bar:after{
    right:50%; 
}
#page form .group input:focus ~ .bar:before, #page form .group input:focus ~ .bar:after,
#page form .group textarea:focus ~ .bar:before, #page form .group textarea:focus ~ .bar:after{
    width:50%;
}
#page form .group .form-control:not(.invalid):focus{
    border-color: #af2e28;
}
#page form .group .form-control.filled{
    border-color: #88c425;
}
#page form .group .form-control.invalid{
    border-color: #af2e28;
}
#page form .group input.invalid ~ label{
    color: #af2e28;
}
#page form .group input.invalid ~ .bar:before, #page form .group input.invalid ~ .bar:after,
#page form .group input.filled:not(.invalid):invalid ~ .bar:before, #page form .group input.filled:not(.invalid):invalid ~ .bar:after{
    background: #af2e28;
}

#page form .group input.filled:not(.invalid):invalid{
    border-bottom: 1px solid #af2e28;
}
#page form .group input.filled:not(.invalid):invalid ~ label{
    color: #af2e28;
}

#page form .group .chkbx .form-check{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: start;
	    -ms-flex-pack: start;
	        justify-content: flex-start;
}

#page form .group .chkbx input {
    position: relative;
    display: inline-block;
    top: 0; left: 0;
    width: auto;
    opacity: 0;
    z-index: 0;

}
#page form .group .chkbx label {
    position: relative;
    top: 0;
    left: 25px;
    pointer-events: all;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.form-check {
    margin-top: 20px;
}

.form-check-label {
    font-weight: bold;
    text-align: left;
    font-size: 16px;
}

#page form .group .chkbx label:before,
#page form .group .chkbx label:after {
	position: absolute;
	top: 50%;
	left: -38px;

}

#page form .group .chkbx input[type="checkbox"] + label::after {
    content: "\f00c";
    font-weight: 900;
    color: #232323;
    line-height: 25px;
    font-size: 18px;
    text-align: center;
    left: -34px !important;
	top: calc(50% - 12.5px);
}

#page form .group .chkbx input:focus ~ label{
    top: 0;
    font-size: 18px;
    color: #232323;
}

#page form .group .chkbx input[type="checkbox"]:checked + label::before{
  background: #232323;
  border-color: #232323;
}
#page form .group .chkbx input[type="checkbox"] + label::after{
	-webkit-transform: scale(0);
	    -ms-transform: scale(0);
	        transform: scale(0);
}
#page form .group .chkbx input[type="checkbox"]:checked + label::after{
	-webkit-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
}

#page form .group .chkbx label::before,
#page form .group .chkbx label::after {
  -webkit-transition: .25s all ease;
  -o-transition: .25s all ease;
  transition: .25s all ease;
}

#page form b {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 22px;
}

#page form .obligatoire {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
}

#page form .obligatoire b {
    position:relative;
}

#form_submit {
    background-color: rgb(129, 173, 58);
    font-size: 17px;
    font-weight: bold;
    padding: 7px 40px;
    border: none;
    margin-top: 20px;
    transition: 0.3s background-color;
    text-transform: uppercase;
}
#form_submit:hover {
    background-color: rgba(136, 196, 37, 0.8);
    transition: 0.3s background-color;
}