/**
 * @author: Yoann Le Crom <yoann.lecrom@abstractive.fr>
 */

.Btn {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 5rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: 1px solid transparent;
    border-radius: .4rem;
    transition: .5s background ease, .5s box-shadow ease, .5s border ease;
}

.Btn:hover {
    text-decoration: none;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, .3);
    color: #fff;
    background: var(--secondary-color);
    cursor: pointer;
}

.Btn:focus {
    outline: thin dotted;
    outline-offset: -5px;
}
.Btn:active {
    background: var(--secondary-color);
    box-shadow: none;
}
.Btn:focus:active {
    outline: none;
}

.Btn--off {
    background: #fff;
    color: #aaa;
    border: 1px solid #c0c0c0;
}

.BtnGroup {
    text-align: center;
    margin: 0 -2rem -2rem;
}
.BtnGroup .Btn {
    margin: 0 2rem 2rem;
}
.BtnGroup .Btn:last-child {
    margin-right: 0;
}

.BtnGroup--glued .Btn:not(:first-child) {
    margin: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.BtnGroup--glued .Btn:not(:last-child) {
    margin: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.Btn--secondary {
    background: none;
    border-color: #999;
    color: #666;
}
.Btn--error {
    background: var(--error-color);
    border-color: transparent;
    color: #fff;
}

.Btn[disabled],
.Btn[aria-disabled="true"] {
    opacity: .3;
    pointer-events: none;
}

.Btn--small {
    padding: .2rem 1.2rem;
    margin-top: 15px;
}
