/* Styles pour la zone de glisser-déposer personnalisée */
.file-dropzone-wrapper {
    width: 100%;
    margin-bottom: 1rem;
}

.file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-dropzone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.file-dropzone.dragover {
    border-color: #3b82f6;
    background-color: #dbeafe;
    transform: scale(1.02);
}

.dropzone-content {
    position: relative;
}

.dropzone-icon {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: block;
}

.dropzone-text {
    color: #475569;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.dropzone-text strong {
    color: #1e293b;
}

/* Aperçu du fichier */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #e0f2fe;
    border: 1px solid #0891b2;
    border-radius: 6px;
    margin-top: 1rem;
}

.file-preview i {
    font-size: 2rem;
    color: #0891b2;
}

.file-name {
    font-weight: 500;
    color: #0f172a;
    flex: 1;
    text-align: left;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-remove:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

/* Message d'erreur */
.error-message {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .file-dropzone {
        padding: 1.5rem;
    }
    
    .dropzone-icon {
        font-size: 2.5rem;
    }
    
    .dropzone-text {
        font-size: 0.9rem;
    }
    
    .file-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .file-name {
        text-align: center;
    }
}

/* Animation pour le feedback visuel */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.file-dropzone.error {
    animation: shake 0.5s ease-in-out;
    border-color: #dc2626;
    background-color: #fef2f2;
}
