/* 📌 Centre (Téléchargeur) */
.center-content {
    background: rgba(20, 40, 20, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(255, 98, 0, 0.2); /* Ombre orange néon */
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* Effet néon orange */
.center-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 98, 0, 0.2), transparent 70%);
    animation: rotateGlow 12s infinite linear;
    z-index: -1;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff6200;
    text-shadow: 0 0 10px rgba(255, 98, 0, 0.6), 0 0 20px rgba(255, 98, 0, 0.4);
    animation: glowText 2s infinite alternate;
}

p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    color: #ffe0e0;
}

/* 📥 Formulaire */
.upload-section {
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 98, 0, 0.3);
    border: 1px solid rgba(255, 98, 0, 0.4);
    transition: transform 0.3s ease;
}

.upload-section:hover {
    transform: translateY(-5px);
}

.input-field {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 16px;
    color: #fff;
    outline: none;
    box-shadow: inset 0 0 5px rgba(255, 98, 0, 0.2);
    transition: box-shadow 0.3s, background 0.3s;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(255, 98, 0, 0.6);
}

.btn {
    background: linear-gradient(90deg, #cc4f00, #ff6200);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 98, 0, 0.8);
}

/* Conteneur de chargement */
.loading-container {
    margin-top: 20px;
    width: 100%;
    max-width: 550px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrage horizontal */
    justify-content: center; /* Centrage vertical de l'ensemble */
}

.loading-text {
    font-size: 18px;
    color: #ffe0e0;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 98, 0, 0.6);
    font-weight: 600;
}

/* Spinner de chargement */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 98, 0, 0.2);
    border-top: 5px solid #ff6200;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
    margin: 0 auto; /* Centrage horizontal supplémentaire */
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowText {
    0% { text-shadow: 0 0 10px rgba(255, 98, 0, 0.6), 0 0 20px rgba(255, 98, 0, 0.4); }
    100% { text-shadow: 0 0 15px rgba(255, 98, 0, 0.8), 0 0 25px rgba(255, 98, 0, 0.6); }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 📱 Responsive */
@media (max-width: 992px) {
    .center-content {
        width: 100%;
        height: 100vh;
        padding: 30px;
    }
    .loading-container {
        max-width: 300px;
    }
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    width: 100%;
    max-width: 550px;
    text-align: center;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}