/* Écran de chargement global */
#IF-global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#IF-global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Conteneur du logo et animation */
.IF-loader-content {
    text-align: center;
    position: relative;
}

/* Logo avec animation de pulse */
.IF-loader-logo {
    width: 120px;
    height: auto;
    animation: IF-loader-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

@keyframes IF-loader-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Spinner circulaire autour du logo */
.IF-loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: IF-loader-spin 1s linear infinite;
}

@keyframes IF-loader-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Texte de chargement */
.IF-loader-text {
    margin-top: 30px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    animation: IF-loader-text-fade 2s ease-in-out infinite;
}

@keyframes IF-loader-text-fade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Points animés après le texte */
.IF-loader-dots {
    display: inline-block;
    margin-left: 4px;
}

.IF-loader-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    margin: 0 2px;
    animation: IF-loader-dots-bounce 1.4s ease-in-out infinite both;
}

.IF-loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.IF-loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes IF-loader-dots-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


