/* Pre-loader personnalisé pour Wooden Shapes */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-content {
    text-align: center;
    color: #fff;
}

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.loading-text {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textPulse 1.5s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    animation: dots 1.5s linear infinite;
}

/* Animations */

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Style alternatif avec effet de vague */
.preloader-wave {
    position: relative;
    overflow: hidden;
}

.preloader-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: wave 2s linear infinite;
}

@keyframes wave {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .preloader-logo {
        width: 150px;
        margin-bottom: 20px;
    }

    .loading-text {
        font-size: 12px;
    }
}
