/* Preloader Sconnect */
body:not(.loaded) {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    /* Ensure it is on top of everything including modals/overlays */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    display: block;
    width: 60px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .preloader-logo {
        width: 60px;
        /* Taille adaptée pour mobile */
    }
}

/* Minimalist Ripple Animation */
.preloader-content::before,
.preloader-content::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #00AAE4;
    opacity: 0;
    animation: ripple 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
    z-index: -1;
    /* Behind the logo */
}

.preloader-content::after {
    animation-delay: 1s;
    /* Second ripple delay */
}

@keyframes ripple {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
        border-width: 0px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}



body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}