/* --- 1. STYLE POUR LE LOADER (ADMIN / JURY) --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111116; /* Fond sombre moderne assorti aux panels */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Le cercle doré qui tourne autour */
.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(212, 175, 55, 0.15); /* Bordure discrète en arrière-plan */
    border-top: 4px solid #d4af37; /* L'arc doré brillant */
    border-radius: 50%;
    animation: spinRing 1.5s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-sizing: border-box;
}

/* Le logo au centre reste immobile */
.fixed-logo {
    width: 75px; /* Ajustez selon les dimensions de votre logo */
    height: 75px;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* Animation de rotation du cercle */
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* --- 2. STYLE POUR LE SKELETON (CLIENT) --- */
.skeleton-shimmer {
    background: linear-gradient(90deg, #eceff1 25%, #f4f6f7 50%, #eceff1 75%);
    background-size: 200% 100%;
    animation: shimmerEffect 1.5s infinite linear;
}
@keyframes shimmerEffect {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}