#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(500deg, #efefef, #015469,black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Logo */

.loading-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    font-weight: bold;
    margin-bottom: 60px;
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
}
.loading-logo img {
    width: 80%;
    height: 80%;
    border-radius: 50px;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Texte de chargement */
.loading-text {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    height: 60px;
    align-items: center;
}

.loading-text span {
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    color: white;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Barre de progression */
.progress-container {
    width: 400px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.progress-bar {
    height: 100%;
  background: linear-gradient(500deg, #efefef, #015469,black);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Pourcentage */
.loading-percentage {
    color: white;
    font-size: 18px;
    margin-top: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Cacher le contenu principal pendant le chargement */
body.loading header,
body.loading .ENT,
body.loading #project-modal,
body.loading section,
body.loading footer {
    display: none;
}

/* Responsive */
@media (max-width: 500px) {
    .progress-container {
        width: 300px;
    }
    .loading-logo {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    .loading-text span {
        font-size: 28px;
    }
}