/* 📌 Centre (RemoveBG) */
.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(0, 255, 128, 0.2);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

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

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

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

/* 📥 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(0, 255, 128, 0.3);
    border: 1px solid rgba(0, 255, 128, 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(0, 255, 128, 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(0, 255, 128, 0.6);
}

.btn {
    background: linear-gradient(90deg, #00cc66, #00ff80);
    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(0, 255, 128, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Nouveau : Conteneur d'image */
.image-container {
    width: 200px; /* Taille fixe contrôlée */
    height: 100px; /* Taille fixe contrôlée */
    margin: 0 auto 15px; /* Centré horizontalement */
    display: flex;
    justify-content: center; /* Centré horizontalement */
    align-items: center; /* Centré verticalement */
    background: rgba(255, 255, 255, 0.05); /* Fond léger pour contraste */
    border-radius: 12px;
    overflow: hidden; /* Coupe si l’image dépasse */
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.3); /* Ombre néon verte */
    border: 1px solid rgba(0, 255, 128, 0.4); /* Bordure néon */
}

.image-container .result-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Adapte l’image sans déformer, garde tout visible */
    border-radius: 8px;
}

/* Conteneur de résultat */
.result-container {
    margin-top: 30px;
    width: 100%;
    max-width: 550px;
    text-align: center;
}

/* Cercle de chargement */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 255, 128, 0.2);
    border-top: 5px solid #00ff80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Carte de résultat */
.result-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.3);
    border: 1px solid rgba(0, 255, 128, 0.4);
}

/* Bouton télécharger */
.download-btn {
    background: linear-gradient(90deg, #00cc66, #00ff80);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

@keyframes glowText {
    0% { text-shadow: 0 0 10px rgba(0, 255, 128, 0.6), 0 0 20px rgba(0, 255, 128, 0.4); }
    100% { text-shadow: 0 0 15px rgba(0, 255, 128, 0.8), 0 0 25px rgba(0, 255, 128, 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;
    }
    .image-container {
        width: 300px; /* Taille réduite pour mobile */
        height: 225px; /* Proportion ajustée */
    }
}