/* =================================================================
   STEP 1 - UPLOAD DOCUMENT
   Zone de dépôt moderne avec preview du fichier
   ================================================================= */

/* =================================================================
   UPLOAD ZONE MODERNE
   ================================================================= */
.upload-zone {
    position: relative;
    border: 2px dashed rgba(12, 129, 228, 0.3);
    border-radius: var(--border-radius-2xl);
    background: rgba(240, 249, 255, 0.5);
    padding: var(--spacing-3xl) var(--spacing-2xl);
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-2xl);
}

.upload-zone:hover {
    border-color: var(--color-primary);
    background: rgba(240, 249, 255, 0.8);
    box-shadow: 0 8px 24px -4px rgba(12, 129, 228, 0.15);
    transform: translateY(-2px);
}

.upload-zone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.upload-zone__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-2xl);
    margin-bottom: var(--spacing-md);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone:hover .upload-zone__icon {
    transform: scale(1.05) rotate(3deg);
}

.upload-zone__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
}

.upload-zone__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-lg);
}

.upload-zone__link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 300ms ease;
}

.upload-zone__link:hover {
    color: var(--color-success);
}

.upload-zone__specs {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.upload-zone__spec {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-dark);
    box-shadow: 0 2px 8px rgba(12, 129, 228, 0.08);
}

.upload-zone__spec svg {
    color: var(--color-primary);
}

/* Input file caché */
.upload-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    opacity: 0;
}

/* =================================================================
   FILE PREVIEW CARD
   ================================================================= */
.file-preview {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--color-white);
    border: 2px solid rgba(12, 129, 228, 0.2);
    border-radius: var(--border-radius-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: 0 4px 12px rgba(12, 129, 228, 0.08);
    animation: slideIn 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.file-preview__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 129, 228, 0.1);
    border-radius: var(--border-radius-lg);
    color: var(--color-primary);
}

.file-preview__details {
    flex: 1;
    min-width: 0;
}

.file-preview__name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview__size {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    margin: 0;
}

.file-preview__remove {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-error);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.file-preview__remove:hover {
    background: rgba(209, 0, 0, 0.1);
    transform: rotate(90deg);
}

.file-preview__remove:active {
    transform: rotate(90deg) scale(0.9);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
    .upload-zone {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .upload-zone__icon {
        width: 64px;
        height: 64px;
    }

    .upload-zone__specs {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .file-preview {
        padding: var(--spacing-lg);
    }
}
