* {
    box-sizing: border-box;
}

main {
    font-size: 1em;
    font-family: Verdana, 'Geneva', sans-serif;
    color: #777;
}

main h1 {
    color: #4d7496;
    text-align: left;
    font-size: 20px;
}

main form {
    display: flex;
    flex-wrap: wrap;
    flex-flow: flex-start;
    padding: 30px;
    background: #FFFFFF;
    margin: 50px auto;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.22);
}

main form>*, main form .input_contener>* {
    padding: 12px;
    margin-top: 10px;
    min-width: 50%;
    flex-grow: 1;
}

main form>input[type="radio"] {
    padding: 1px;
    flex-grow: 0;
}

main form .input_contener, main form .radio_contener {
    display: flex;
    min-width: 50%;
    max-width: 50%;
    justify-content: flex-start;
    padding: 20px;
}
main form .input_contener label {
    text-align: right;
}
main form .input_contener input {
    font-size: 1em;
    font-family: Verdana, 'Geneva', sans-serif;
    color: #777;
}
main form .radio_contener {
    padding-top: 40px;
}
main form .horaire{
    display: flex;
    flex-wrap: wrap;
    justify-content:flex-start;
}
main form .horaire .checkbox_header{
    min-width: 100%;
}
main form .horaire .group_option{
    min-width: 20%;
    margin: 10px;
}
main form .breakLine {
    flex-grow: 10;
    min-width: 100%;
}

main form>input[type='radio'] {
    min-width: 1em;
}

main form>label {
    min-width: 15%;
}

main form>input[type='checkbox']+label {
    min-width: auto;
}

main form>.checkbox_header {
    min-width: 100%;
    border-top: solid 1px #4d7496;
}
main form>.checkbox_header .checkbox_header {
    margin-bottom: 20px;
}

main form>label[for='senior'], main form>label[for='ann--e-j-'], main form>label[for='ann--e-s-'], main form>label[for='non'] {
    margin-right: 60%;
}

main form #facultativeOption {
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    display: none;
}

main form .group_option {
    margin-right: 25px;
    display: inline-block;
    min-width: 260px;
    max-width: 260px;
}

main form .classDis {
    visibility: hidden;
    position: absolute;
    top: -300%;
    left: -300%;
}

main form .envoyer {
    background-color: #4d7496;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    height: auto;
    white-space: pre-wrap;
    text-align: center;
}

main form .btn {
    position: relative;
    background-color: #4d7496;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    max-width: 25%;
    text-align: center;
    background-image: url('img/upload.png');
    background-repeat: no-repeat;
    background-size: 30px;
    background-position: 2%;
    padding: 12px 35px 12px 13px;
    padding-left: 35px;
}

main form input[type='file'] {
    visibility: hidden;
    position: absolute;
    top: -100%;
    left: -100%;
}

main form label.uploadSuccess {
    background-image: none;
}
main form label.uploadSuccess:before {
    position: absolute;
    top: 0px;
    left: 5px;
    display: block;
    content: "\2713";
    font-size: 1.7em;
    color: #32771f;
    text-shadow: 0 0 2px #fff;
    background-image: none;
}

main form .beforligne{
    padding-top: 10px;
    display: inline-block;
    width: 100px;
}

.error {
    color: red;
}

#fake-captcha {
    position: relative;
    text-align: center;
    font-family: Verdana, 'Geneva', sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    white-space: nowrap;
    cursor: pointer;
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-flow: flex-start;
    padding-left: 30px;
}

#fake-captcha:hover {
    color: #666;
}

#fake-checkbox {
    margin-right: 1vw;
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: all .2s;
    box-sizing: border-box;
}

#fake-checkbox:hover {
    border-color: #aaa;
    background: #eee;
}

#fake-captcha.loading {
    cursor: default;
    color: #444;
}

.loading #fake-checkbox {
    border-radius: 50%;
    background: transparent;
    border-color: #888;
    border-width: 7px;
    border-style: inset;
    animation: spin 1s infinite linear;
}

.pass #fake-checkbox {
    background: #6398c6;
    border-color: #4d7496;
}

.pass #fake-checkbox:before {
    position: absolute;
    top: 3px;
    left: 5px;
    display: block;
    content: "\2713";
    font-size: 1.7em;
    color: #275f18;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fail {
    animation: fail .1s 4;
}

@keyframes fail {
    0% {
        transform: translate(-50%, -50%);
    }

    25% {
        transform: translate(-51%, -50%);
    }

    50% {
        transform: translate(-50%, -50%);
    }

    75% {
        transform: translate(-49%, -50%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1000px) {
    main form>.input_contener {
        min-width: 100%;
        max-width: 100%;
    }
    main form .btn {
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    main form>.input_contener>* {
        min-width: 100%;
        max-width: 100%;
    }
    main form .btn {
        max-width: 100%;
    }

    main form>.input_contener {
        flex-direction: column;
    }
}

main form .close {
    position: absolute;
    right: -32px;
    top: 0px;
    width: 32px;
    height: 32px;
    opacity: 0.3;
}
main form .close:hover {
    opacity: 1;
}
main form .close:before, .close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: red;
}
main form .close:before {
    transform: rotate(45deg);
}
main form .close:after {
    transform: rotate(-45deg);
}
