﻿/* Style du loader */
.api-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .api-loader.hidden {
        display: none;
    }

.loader-container {
    position: relative;
    width: 64px;
    height: 64px;
    margin-left: 50%;
    margin-top:25%;
}

.loader-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    border: 4px solid transparent;
    border-top-color: #FF6B35;
    border-right-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 48px;
    height: 48px;
    border: 4px solid transparent;
    border-top-color: #FFFFFF;
    border-left-color: #FF6B35;
    border-radius: 50%;
    animation: spin-reverse 1.5s linear infinite;
}

.loader-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: #FF6B35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
