* {
    outline: none;
}

.fwf_form:not(.can-select) {
    user-select: none;
}

.fwf_form h2,
.fwf_form h3,
.fwf_form h4{
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--secondary-1);
    padding: 0;
}

.fwf_form * + h2,
.fwf_form * + h3,
.fwf_form * + h4{
    margin-top: 1.5rem;
}

.fwf_form label {
    color: var(--primary-2);
    font-weight: 500;
}

.fwf_form label + *{
    margin-top: 0.15rem;
}

.fwf_form input[type=text],
.fwf_form input[type=url],
.fwf_form input[type=email],
.fwf_form input[type=password],
.fwf_form input[type=number],
.fwf_form input[type=time],
.fwf_form textarea,
.fwf_form .liste_selected,
.fwf_form select,
.fwf_form .fwf-dropdown-sql,
.bloc-rev textarea,
.champ-input.champ-textarea .champ textarea {
    background: var(--blanc-1);
    border: 1px solid var(--gris-5);
    color: var(--noir-1);
    border-radius: var(--arrondi-form-field-1);
    transition: var(--transition-form-field-1);
    margin: 0;
    outline: 0;
    line-height: 1;
    padding: var(--padding-input-3);
    font-size: var(--font-size-input-3);
    resize: vertical;
    width: 100%;
}

.fwf_form .liste_selected {
    padding: 0.66rem 0.6rem;
    min-height: 51px;
}

.fwf_form input[type=text],
.fwf_form input[type=url],
.fwf_form input[type=email],
.fwf_form input[type=password],
.fwf_form input[type=number],
.fwf_form input[type=time],
.fwf_form textarea,
.fwf_form select,
.fwf_form .card {
    width: 100%;
}

/* .fwf_form input[required],
.fwf_form select[required],
.fwf_form div[required="required"]>select,
.fwf_form textarea[required] {
    border-color: green !important;
} */

.fwf_form input[type=number]:disabled,
.fwf_form textarea:disabled {
    cursor: not-allowed;
    color: var(--gris-5);
    background: var(--gris-1);
    border: 1px solid var(--gris-3);
}

.fwf_form select {
    font-family: var(--font-contenu);
}

.fwf_form .fwf_field {
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

/*****************************************
Grande Checkbox
*****************************************/

.fwf_form input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 27px;
    height: 27px;
}

.fwf_form input[type="checkbox"]:not(:checked)+label,
.fwf_form input[type="checkbox"]:checked+label {
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
    min-height: 35px;
    display: flex;
    align-items: center;
    width: fit-content;
}

.fwf_form input[type="checkbox"]:not(:checked)+label:not(:empty),
.fwf_form input[type="checkbox"]:checked+label:not(:empty) {
    padding-left: 2.7rem;
}
.fwf_form input[type="checkbox"]:disabled+label {
    cursor: not-allowed;
    color: var(--gris-5);
}

/* Aspect de la case */
input[type="checkbox"]+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 27px;
    height: 27px;
    border: 1px solid #aaa;
    background: #FFF;
    border-radius: .2em;
    margin-top: 4px;
}
input[type="checkbox"]:disabled+label:before {
    background: var(--gris-1);
    border: 1px solid var(--gris-3);
}

/* Aspect de la coche */
.fwf_form input[type="checkbox"]:not(:checked)+label:after,
.fwf_form input[type="checkbox"]:checked+label:after {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    background: url(../images/picto-croix.svg) no-repeat center;
    background-size: contain;
    top: 4px;
    left: 0px;
    transition: all .2s;
    /* Petite transition */
}

/* Aspect non cochée */
.fwf_form input[type="checkbox"]:not(:checked)+label:after {
    opacity: 0;
    transform: scale(0) rotate(45deg);
}

/* Aspect cochée */
.fwf_form input[type="checkbox"]:checked+label:after {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Aspect désactivée */
.fwf_form .disabled input[type="checkbox"]+label:before {
    cursor: default;
    border-color: #CCC;
    background: rgba(255, 255, 255, 0.3);
}

/*****************************************
Petite Checkbox
*****************************************/

.fwf_form input[type="checkbox"].tiny:not(:checked)+label,
.fwf_form input[type="checkbox"].tiny:checked+label{
    padding-left: 1.3rem;
    min-height: 24px;
}

/* Aspect de la case */
input[type="checkbox"].tiny+label:before{
    width: 15px;
    height: 15px;
}
/* Aspect de la coche */
.fwf_form input[type="checkbox"].tiny:not(:checked)+label:after,
.fwf_form input[type="checkbox"].tiny:checked+label:after {
    width: 15px;
    height: 15px;
}

/*****************************************
Selectbox
*****************************************/

.fwf_form .disabled {
    opacity: 0.5;
}

/* Btn radio */
.fwf_form .select_radio {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    min-height: 40px;
    flex-direction: row;
}

.fwf_form .select_radio.select_radio_vertical {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.25rem;
}

.fwf_form .select_radio>li {
    list-style-type: none;
    display: flex;
    align-items: center;
    margin-right: 1rem;
    padding: 0;
}

.fwf_form .select_radio>li+li {
    margin-top: 0;
}

.fwf_form .select_radio>li::before {
    display: none;
}

.fwf_form .select_radio.select_radio_vertical>li+li {
    margin-top: 0.5rem;
}

.fwf_form .select_radio>li input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    display: block;
    accent-color: var(--primary-2);
}
.fwf_form input[type="radio"]:not(:disabled)+label, 
.fwf_form .select_radio>li input[type="radio"]:not(:disabled) {
    cursor: pointer;
}
.fwf_form input[type="radio"]:disabled,
.fwf_form input[type="radio"]:disabled+label {
    cursor: not-allowed;
    color: var(--gris-5);
}

/* Champs read only */
.fwf_form .container-field.is-read-only > div:not(.champ-input):not(.champ-url-gifs):not(:has(> .bloc-related)) {
    background:var(--gris-2);
    padding: var(--padding-input-3);
    border-radius: var(--arrondi-form-field-1);
    color:var(--gris-7);
    border: 1px solid var(--gris-2);
    user-select: text;
}

/* Champ file */
.fwf_field>input[type="file"] {
    display: block;
}

.fwf_field .has_prepend {
    position: relative;
}

.fwf_field .has_prepend input {
    padding-left: 60px;
}

.fwf_field .has_prepend:not(.read-only) .prepend {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    background: var(--secondary-1);
    color: #FFF;
    font-weight: 600;
    border-top-left-radius: .28571429rem;
    border-bottom-left-radius: .28571429rem;
}


/* Plus de flèche haut/bas pour le input number (.disc uniquement) */

/* Chrome, Safari, Edge, Opera */
.disc input::-webkit-outer-spin-button,
.disc input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
.disc input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}


/* <= à sm -> Tablettes & Smartphones */
@media (max-width: 991px) {}