.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2e39 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    max-width: 900px;
    justify-content: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.4;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.service-item.active {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item.active .service-icon {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    z-index: 1;
}

.service-icon i {
    font-size: 28px;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Couleurs spécifiques pour chaque service */
.service-1 .service-icon {
    background: linear-gradient(135deg, #5fb4c1, #4a9da8);
}
.service-1 i { color: #e8f7f9; }

.service-2 .service-icon {
    background: linear-gradient(135deg, #ff9a3d, #e87c14);
}
.service-2 i { color: #fff5eb; }

.service-3 .service-icon {
    background: linear-gradient(135deg, #6c5ce7, #5649c4);
}
.service-3 i { color: #eae6ff; }

.service-4 .service-icon {
    background: linear-gradient(135deg, #00cec9, #00a6a1);
}
.service-4 i { color: #e0fffe; }

.service-5 .service-icon {
    background: linear-gradient(135deg, #e84393, #c2367a);
}
.service-5 i { color: #fce4f0; }

.service-6 .service-icon {
    background: linear-gradient(135deg, #fdcb6e, #e6b158);
}
.service-6 i { color: #fff9ec; }

.service-7 .service-icon {
    background: linear-gradient(135deg, #a29bfe, #847ddf);
}
.service-7 i { color: #f0efff; }

.service-name {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 90px;
    padding: 4px 0;
    transition: all 0.3s ease;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.service-item.active .service-name {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(95, 180, 193, 0.6);
}

.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.loading-text {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #5fb4c1;
    text-shadow: 0 0 10px rgba(95, 180, 193, 0.7);
}

.loading-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5fb4c1, #5fb4c1);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 
        0 0 15px rgba(95, 180, 193, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 100%);
    border-radius: 4px 4px 0 0;
}

.loading-percentage {
    font-size: 16px;
    color: #5fb4c1;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(95, 180, 193, 0.5);
}

.status-message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    color: #ffffff;
    padding: 8px 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.binary-stream {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(95, 180, 193, 0.4);
    overflow: hidden;
    height: 20px;
    letter-spacing: 1px;
}

.pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    opacity: 0;
    z-index: 0;
}

.service-item.active .pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Responsive pour le preloader */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .service-name {
        font-size: 10px;
        max-width: 80px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-section {
        max-width: 300px;
    }
}