input:not([type="file"]), select, span.select2 .select2-selection, textarea {
    border-radius: 7px !important;
    background-color: white !important;
    padding: 6px 6px 6px 12px !important;
}

/* contour des input dans les form */
form .form-control:focus {
    border-color: #3c4bff;
    box-shadow: none;
}

label.required:after, legend.required:after:not(.import-from-partner *) {
    content: ' *';
}

form:not(#force-go-back-form):not([name="message"]):not(.import-from-partner *):after {
    content: '* champ obligatoire';
    font-size: 0.80rem;
    font-style: italic;
    float: right;
}
.content-wrapper form:not(#force-go-back-form):not([name="message"]):after {
    font-size: 1.25rem;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/* alignement du label et du champs sur la même ligne */
.form-group label {
    display: inline-block;
    vertical-align: middle;
    text-align: right;
    padding-right: 15px;
}
form:not([name="message"]) .form-group .form-control,
form:not([name="message"]) .form-group .vich-file {
    display: inline-block;
    vertical-align: middle;
}
form:not([name="message"]) .form-group .vich-file .custom-file-label {
    width: 100%;
    overflow: hidden;
}
.form-group .input-group {
    display: inline-table;
    vertical-align: middle;
}
form .form-group .input-group .form-control {
    width: 100% !important;
}
.select2.select2-container {
    display: inline-block;
    vertical-align: middle;
}

/* gestion particulière des cases à cocher */
.form-check label.form-check-label {
    width: auto;
}
.form-check label.form-check-label .invalid-feedback {
    display: none !important;
}

.input-group .input-group-addon {
    border: none;
    background: none;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
}

form:not([name="message"]) .form-group button[type="submit"] {
    min-width: 200px;
}

form:not([name="message"]):not([name="legal_prestataire"]) .form-group button[type="submit"] {
    text-transform: uppercase;
    margin-top: 30px;
    margin-left: 50%;
    transform: translateX(-50%);
}

form .form-group .form-control[disabled]:not(.import-from-partner *),
form .form-group .form-control[readonly]:not(.import-from-partner *),
form .form-group .select2.select2-container--disabled .select2-selection {
    background-color: #eee !important;
}

input[type="file"] {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
input[type="file"] ~ label {
    height: fit-content;
    font-weight: normal;
    cursor: pointer;
    text-align: left;
    position: unset;
    padding: unset;
    line-height: unset;
    color: unset;
    border: none;
    border-radius: 0;
}
input[type="file"] ~ label:after {
    display: none !important;
}

form .form-group label:not(.vich-file .custom-file *):not(input[type="checkbox"] ~ label) {
    width: 150px;
}
form .form-group .form-control:not(.input-group *):not(form[name="message"] *):not(.import-from-partner *),
form .form-group .vich-file,
form .form-group .input-group,
form .form-group .select2.select2-container {
    width: calc(100% - 150px) !important;
}