@font-face {
    font-family: 'NeoSans';
    src: url("../font/neosans.eot");
    src: url("../font/neosans.ttf") format("truetype"), url("../font/neosans.woff") format("woff"), url("../font/neosans.eot?#iefix") format("embedded-opentype");
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'NeoSans';
    src: url("../font/neosans-medium.eot");
    src: url("../font/neosans-medium.ttf") format("truetype"), url("../font/neosans-medium.woff") format("woff"), url("../font/neosans-medium.eot?#iefix") format("embedded-opentype");
    font-weight: 500;
    font-style: normal
}

html {
    font-size: 10px;
}

body {
    font-size: 18px;
    font-family: 'NeoSans', sans-serif;
}

.header-container {
    width: 100%;
    margin: 0 auto;
}

h2 {
    font-weight: bold;
    font-size: 3rem;
    line-height: 4.2rem;
    margin: 50px 0 25px;
}

.subtitle-action {
    font-weight: bold;
    font-size: 2.2rem;
    line-height: 3rem;
    margin-bottom: 1.8rem;
}

.subtitle-status {
    font-size: 2.2rem;
    text-align: center;
    margin: 5rem 0;
}

.subtitle-status.success {
    color: #58e419;
}

.subtitle-status.failed {
    color: #e4194a;
}


.bg-grey {
    background-color: #c9c9c9;
}

/* HEADER */

.logo-container {
    height: 70px;
}

.logo {
    position: absolute;
    font-size: 0;
    width: 52px;
    height: 58px;
    background-size: 52px 58px;
    left: 26px;
    top: 6px;
}

.user-container{
    height: 70px;
    min-width: 300px;
    position: relative;
}

.user-content{
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.user-informations p{
    font-size: 1.3rem;
    margin: 0;
    padding: 11px 15px;
}

.btn-danger.btn-logout{
    font-size: 1.3rem;
}

.banner {
    height: 120px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: none;
    object-position: -140px -456px;
}

/* MAIN */

.page-content {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    padding: 0 15px;
}

.form-connect {
    display: flex;
    flex-direction: column;
}

.form_control {
    margin-bottom: 4.5rem;
}

.form-control:last-child {
    margin-bottom: 3.8rem;
}

.form-label {
    font-size: 2rem;
    line-height: 2.8rem;
    font-weight: bold;
    color: #434254;
    margin-bottom: 0.7rem;
}

.form-label .required {
    font-weight: 400;
    color: #e51049;
}

.form-error {
    font-size: 1.5rem;
    line-height: 2rem;
    color: #e51049;
    margin-top: 0.5rem;
}

.form-text {
    display: block;
    width: 100%;
    font-size: 1.6rem;
    border: 1px solid #cccccc;
    color: #434254;
    padding: 1.8rem 1.5rem 1.4rem;
}

.form-freeamount {
    display: block;
    width: 90%;
    font-size: 1.4rem;
    border: 1px solid #cccccc;
    color: #434254;
    padding: 1.8rem 1.5rem 1.4rem;
    height: 2em;
}

.form-freeamount::placeholder, .form-text::placeholder {
    color: #707070;
}

.info-container {
    padding: 34px;
    margin-bottom: 3.8rem;
}

.info_control {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.info_control:last-child {
    margin-bottom: 0;
}

.info--label {
    flex: 0 0 45%;
    margin: 0;
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 2.6rem;
    color: #407dff;
}

.info--value {
    flex: 0 0 55%;
    margin: 0;
    font-size: 1.6rem;
    color: #707070;
}

.buttons-grid {
    display: flex;
    flex-flow: row wrap;
    gap: 1.8rem;
    margin-bottom: 3.8rem;
}

/** BUTTONS **/

.cta-container {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    margin-bottom: 3.5rem;
}

.cta-container .btn {
    align-self: center;
}

.btn {
    border: 1px solid;
    border-radius: 6px;
    padding: 1.1rem 1.8rem 0.7rem;
}

.btn:hover,
.btn:focus {
    background-color: transparent;
}

.btn-success {
    font-size: 1.8rem;
    background-color: #3e79fb;
    border-color: #3e79fb;
}

.btn-success:hover,
.btn-success:focus {
    color: #3e79fb;
    border-color: #3e79fb;
    background-color: #ffffff;
}

.btn-danger {
    font-size: 1.8rem;
    background-color: #e4194a;
    border-color: #e4194a;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #e4194a;
    border-color: #e4194a;
}

.btn-secondary {
    font-size: 1.4rem;
    border-color: #6c757d;
    background-color: #6c757d;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #6c757d;
}

.btn-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 calc(50% - 0.9rem);
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 3rem;
    text-decoration: none;
    height: 120px;
    background-color: #ededee;
}

.btn-grid.disabled{
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.45
}

.btn-grid-freeamount:hover {
    background-color: #ededee !important;
}

.btn-grid-freeamount .label {
    color: #407dff !important;
}

.btn-grid .label {
    color: #407dff;
}

.btn-grid .value {
    color: #434254;
}

.btn-grid:not(.disabled):hover,
.btn-grid:not(.disabled):focus {
    background-color: #407dff;
    color: #ffffff;
}

.btn-grid:not(.disabled):hover span,
.btn-grid:not(.disabled):focus span {
    color: #ffffff;
}

.btn-paiement {
    display: block;
    height: 34px;
    padding: 3px 20px 0 20px
}
.btn-paiement.disabled{
    border: 1px solid #999999;
    color: #666666;
    background-color: #cccccc;
    cursor: not-allowed;
}

.alert-error {
    --bs-alert-color: #b02a37;
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f1aeb5;
    --bs-alert-link-color: #f1aeb5;
}

.alert-alert {
    --bs-alert-color: #997404;
    --bs-alert-bg: #fff3cd;
    --bs-alert-border-color: #ffe69c;
    --bs-alert-link-color: #ffe69c;
}

/*** MOBILE ***/

@media (max-width: 576px) {
    h2 {
        font-size: 2.4rem;
        margin: 20px 0;
    }

    .subtitle-action {
        font-size: 1.8rem;
    }

    .info-container {
        padding: 1.5rem;
    }

    .info--label,
    .info--value {
        flex: 0 0 100%;
    }

    .buttons-grid {
        flex-direction: column;
    }

    .btn-grid {
        height: 80px;
        flex: 0 0 auto;
    }
}

.spinner-container {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 30px;
}

svg {
    width: 100%;
    max-width: 5rem;
    animation: rotate 3.6s linear infinite;
}

circle {
    fill: none;
    stroke: #407dff;
    stroke-width: 8px;
    stroke-dasharray: 300;
    animation: outline 2s cubic-bezier(0.77,0,0.18,1) infinite;
}

@keyframes outline {
    0% {
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: 600;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(-1turn);
    }
}

.float-first {
    width: 60%;
    float: left;
    height: 50px;
    margin-left: 10px;
}

.float-second {

    float: left;
    height: 50px;
    margin-right: 10px;
}
/* Hide arrow in input in Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide arrow in input in Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#countdown {
    text-align: center;
    color: red;
    font-style: italic;
    font-size: 0.8em;
}