/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;

    transition:
        opacity .5s ease-out,
        visibility 0s linear .5s;

    background: linear-gradient(135deg, #007481 0%, #338D97 100%);

    z-index: 99999;
}

#spinner.show {
    opacity: 1;
    visibility: visible;

    transition:
        opacity .5s ease-out,
        visibility 0s linear 0s;
}


/* ==============================
   CONTAINER
================================ */

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* ==============================
   LOADER
================================ */

.loader {
    width: 115px;
    height: 115px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==============================
   ANNEAUX
================================ */

.loader-ring {
    position: absolute;

    border-radius: 50%;
    border: 4px solid transparent;

    transform-style: preserve-3d;
}


/* Anneau blanc */

.ring-1 {
    width: 105px;
    height: 105px;

    border-top-color: #bd0202;
    border-right-color: #bd0202;

    animation: rotate1 1.5s linear infinite;
}


/* Anneau vert */

.ring-2 {
    width: 85px;
    height: 85px;

    border-bottom-color: #d7c901;
    border-left-color: #d7c901;

    animation: rotate2 1.2s linear infinite reverse;
}


/* Anneau bleu */

.ring-3 {
    width: 65px;
    height: 65px;

    border-top-color: #006702;
    border-right-color: #006702;

    animation: rotate3 1s linear infinite;
}


/* ==============================
   LOGO
================================ */

.loader-logo {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: #ffffff95;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 7px;

    position: relative;
    z-index: 10;

    box-shadow:
        0 0 20px rgba(255, 255, 255, .35);
}

.loader-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 50%;
}


/* ==============================
   NOM
================================ */

.loader-title {
    margin-top: 18px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: .4px;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, .2);
}

.loader-title h3 {
    color: #000000;
    font-weight: bold;
}

/* ==============================
   SOUS-TITRE
================================ */

.loader-subtitle {
    margin-top: 6px;

    color: rgba(255, 255, 255, .75);

    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;

    animation: loadingText 1.5s ease-in-out infinite;
}


/* ==============================
   ANIMATIONS
================================ */

@keyframes rotate1 {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes rotate2 {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}

@keyframes rotate3 {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }

}

@keyframes loadingText {

    0%,
    100% {
        opacity: .45;
    }

    50% {
        opacity: 1;
    }

}