/* popup.css */
.popup,.popup-edit-design,.popup-export,.popup-moreOptions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    
}
.popup-moreOptions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    
}


.popup.hidden,.popup-edit-design.hidden,.popup-export.hidden,.popup-moreOptions.hidden {
    display: none;
}

.popup-content {
    background: url('/assets/icons/background/background_1.png');
    padding: 3px;
    border-radius: 10px;
    border: 5mm ridge rgba(211, 220, 50, .6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    height: 520px;
    position: relative;
    
}


.close-popup {
    position: absolute;
    top: -25px;
    right: -20px;
    font-size: 30px;
    cursor: pointer;
    color:red;
}

.close-popup:hover {
    color: #00bcd4; /* Cyan au survol */
}

#dynamic-content-popup,#dynamic-content-popup-edit-design,#dynamic-content-popup-export,
#dynamic-content-popup-moreOptions {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}


/* Styles pour le popup de chargement */
#loadingPopup {
    display: none; /* Caché par défaut */
}
.loadingPopup-content {
    background-color: white;
    padding: 5px;
    border: 4mm ridge cyan;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position:relative;
    border-radius: 20px;
    width: 220px;
    height: 120px;
    text-align: center;
    position:relative;
    }
    
.loading-cadre {
    border: 4px solid cyan;
    position:relative;
    border-radius: 20px;
    width: 100%;
    height: 150px;
}
.loadingPopup-content img {
    position:relative;
    top: -30px;
    height: 100%;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid cyan;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

#loadingPopup .popup-content {
    text-align: center;
    padding: 20px;
}

#loadingPopup p {
    margin-top: 10px;
    font-size: 16px;
}


.overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
           background-image: url('/assets/icons/background/background_1.png');
           
        }

        .message-popup {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 3px;
	    border-radius: 10px;
	    border: 4mm ridge cyan;
	    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	    width: 70%;
	    height:150px;
	    max-width: 250px;
            text-align: center;
            font-size:14px;
            font-weight:bold;
            z-index:11;
            justify-content: center; /* Centrage horizontal */
	    align-items: center; /* Centrage vertical */
            
        }
        
        .message-echec {
            color:red;
            background-color: white;
        }
        
        .message-succes {
            color:white;
            background-color: green;
            
        }

        .message-popup .close-btn {
            position: absolute;
            top: -25px;
            right: -20px;
            font-size: 30px;
            cursor: pointer;
            color:white;
        }
        .popup .close-btn {
            position: absolute;
            top: -25px;
            right: -20px;
            font-size: 30px;
            cursor: pointer;
            color:white;
        }
        
	.cadre-icone-message{
            position: absolute;
            top: -28px;
            left: 45%;
            display:none;
            
            
        }
        
        .icon-message {
            font-size: 40px;
            margin-right: 10px;
            background:white;
            border-radius:50%;
        }
        .success {
            color: green;
            
        }
        .error {
            color: red;
        }
        
        .message-popup .message {
            font-size: 16px;
            margin-bottom: 20px;
        }
