.ds-main-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ds-image-container {
    flex: 40%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ds-image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.ds-form-container {
    flex: 60%;
}

.ds-form-header {
    background: #3498db;
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.ds-back-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.ds-back-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.ds-form-body {
    padding: 2rem;
}

.ds-form-group {
    margin-bottom: 1.5rem;
}

.ds-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.ds-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.ds-form-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

select.ds-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23757575'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ds-button-group {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.ds-form-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.ds-button-submit {
    background: #3498db;
    color: white;
}

.ds-button-submit:hover {
    background: #2980b9;
}

.ds-button-reset {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ds-button-reset:hover {
    background: #e2e8f0;
}

.ds-result-container {
    display: none;
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ds-progress-container {
    margin: 1.5rem 0;
}

.ds-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ds-progress-title {
    font-weight: 600;
    color: #2c3e50;
}

.ds-progress-percentage {
    font-weight: 700;
}

.ds-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.ds-progress-value {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1s ease-out;
}

.ds-progress-initial {
    background: #e53e3e;
}

.ds-progress-medium {
    background: #ed8936;
}

.ds-progress-advanced {
    background: #38a169;
}

.ds-status-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 1rem;
}

.ds-status-not-found {
    background-color: #fff5f5;
    color: #e53e3e;
    border-left: 4px solid #e53e3e;
}

.ds-status-in-progress {
    background-color: #f0f9ff;
    color: #3182ce;
    border-left: 4px solid #3182ce;
}

.ds-status-completed {
    background-color: #f0fff4;
    color: #38a169;
    border-left: 4px solid #38a169;
}

.ds-comment-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ds-comment-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.ds-comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 120px;
    resize: vertical;
}

.ds-file-upload {
    margin: 1rem 0;
}

.ds-file-upload-label {
    display: block;
    padding: 12px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
}

.ds-comment-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 1rem;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 768px) {
    .ds-main-container {
        flex-direction: column;
    }
    
    .ds-image-container {
        display: none;
    }
    
    .ds-form-container {
        width: 100%;
    }
    
    .ds-button-group {
        flex-direction: column;
    }
}




/* Indicateur de chargement */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Désactivation du bouton pendant le chargement */
.ds-button-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
