/* FORMS - - - - - - - -  */
.sfw-form :focus {
    color: $primary-color;
    background-color: #fff;
    border:1px solid $gray-50-color !important;
    outline: 0;
    box-shadow: 0 0 3px 1px $gray-5-color;
}

.sfw-form fieldset, fieldset.sfw-form {
    border:0;
    margin:0;
    padding:0;
}

.sfw-form input[type='text'], .sfw-form input[type='number'], .sfw-form input[type='email'], .sfw-form input[type='password'], .sfw-form textarea, .sfw-form select{
    display: block;
    width:100%;
    padding:0.3rem;
    box-sizing: border-box;
    font-family: $secondary-font-family;
    font-size: $root-font-size;
    border-radius:4px;
    border:1px solid $gray-20-color;
}

.sfw-form textarea {
    resize: vertical;
}

.sfw-form label {
    margin-bottom:0.2rem;
    font-family: $secondary-bold-font-family;
}

.sfw-form input[type='submit'], .sfw-form button {
    display: block;
    padding: 0.4rem 0.5rem;
    background-color: $secondary-color;
    border:0;
    color:$white-color;
    border-radius:4px;
}

.sfw-form input[type='submit']:hover {
    background-color: $gray-50-color;
    cursor: pointer;
}

.sfw-form select {
    padding:0.3rem;
    border-radius:4px;
    border:1px solid $gray-20-color;
    background-color: $gray-5-color;
}

.sfw-form.form-light input[type='text'], .sfw-form.form-light input[type='number'], .sfw-form.form-light input[type='email'], .sfw-form.form-light input[type='password'], .sfw-form.form-light textarea, .sfw-form.form-light select {
    border:1px solid $gray-10-color !important;
    background-color: $white-color;
}

.sfw-form :disabled {
    background-color: $gray-5-color !important;
    border:1px solid $gray-10-color !important;
}

.btn {
    padding: 6px 8px;
    border-radius: 4px;
    border:0;
    display: inline-block;
    cursor: pointer;
}

a.btn, .btn a {
    text-decoration: none;
}

/* tailles de typo */
@each $nom, $size in $font-sizes { 
    .btn-#{$nom} { 
        font-size: $size;
        padding: $size / 3.5 $size / 2;
        border-radius: $size / 4;
    }
}