.stai-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
    text-align: center;
    position: relative;
}

.stai-upload-box {
    border: none;
    border-radius: 12px;
    padding: 30px 20px;
    background: #F9FBF9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stai-upload-box:hover {
    background: #F0F5F1;
}

.stai-icon { 
    font-size: 40px; 
    margin-bottom: 10px; 
}

/* Centrage et conteneur d'aperçu */
#stai-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#stai-preview-img { 
    max-width: 100%; 
    max-height: 280px; 
    border-radius: 8px; 
    margin: 0 auto 15px auto; 
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stai-btn {
    background: #4A7C59;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.stai-btn-primary { 
    background: #2D5A38; 
}

.stai-btn-link { 
    background: none; 
    border: none; 
    color: #666; 
    text-decoration: underline; 
    cursor: pointer; 
    display: block; 
    margin: 10px auto 0 auto; 
}

/* Correction du loader avec fond blanc opaque */
#stai-loader {
    background: #FFFFFF;
    border: 1px solid #E0E8E1;
    border-radius: 12px;
    padding: 40px 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#stai-loader p {
    color: #2D5A38;
    font-weight: bold;
    margin-top: 15px;
}

.stai-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A7C59;
    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); } 
}

.stai-card {
    background: #FFF;
    border: 1px solid #E0E8E1;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.stai-highlight { 
    color: #2D5A38; 
    text-transform: capitalize; 
}

.stai-alert { 
    background: #FFF3CD; 
    border-left: 4px solid #FFC107; 
    padding: 10px 15px; 
    margin: 15px 0; 
    border-radius: 4px; 
    font-size: 0.95em; 
}

.stai-steps { 
    padding-left: 20px; 
    line-height: 1.6; 
}

.stai-tip { 
    background: #E8F5E9; 
    padding: 12px 15px; 
    border-radius: 6px; 
    margin-top: 15px; 
    font-size: 0.9em; 
    color: #1B5E20; 
}

.stai-cta { 
    text-align: center; 
    margin-top: 20px; 
}