/* Styles pour la zone d'upload de fichiers PDF */

.upload-drop-zone {
    border: 2px dashed #bdc3c7;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    position: relative;
    overflow: hidden;
}

.upload-drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(231, 76, 60, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-drop-zone:hover {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
}

.upload-drop-zone:hover::before {
    opacity: 1;
}

.upload-drop-zone.drag-over {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.25);
}

.upload-drop-zone.drag-over::before {
    opacity: 1;
    background: linear-gradient(45deg, transparent 20%, rgba(231, 76, 60, 0.2) 50%, transparent 80%);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-content .icon {
    color: #95a5a6;
    transition: all 0.3s ease;
}

.upload-drop-zone:hover .upload-content .icon {
    color: #e74c3c;
    transform: scale(1.1);
}

.upload-trigger {
    transition: all 0.3s ease;
    border: 2px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.upload-trigger:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.upload-trigger:active {
    transform: translateY(0);
}

/* Input file masqué */
.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Styles pour les fichiers sélectionnés */
.file-preview {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.file-preview:hover {
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.file-preview-icon {
    color: #e74c3c;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.file-preview-info {
    flex-grow: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.file-preview-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.file-preview-remove:hover {
    background: #fee;
    color: #c0392b;
}

/* Messages d'aide */
.help {
    font-size: 0.875rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.help.is-danger {
    color: #e74c3c;
}

.help.is-success {
    color: #27ae60;
}

/* Animations pour l'upload */
@keyframes uploadPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.upload-drop-zone.uploading {
    animation: uploadPulse 1.5s infinite;
    border-color: #e74c3c;
}

/* Indicateur de progression d'upload */
.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #e74c3c;
    transition: width 0.3s ease;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .upload-drop-zone {
        padding: 1.5rem 1rem;
    }
    
    .upload-content .title {
        font-size: 1.25rem;
    }
    
    .upload-content .subtitle {
        font-size: 1rem;
    }
    
    .upload-trigger {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .upload-drop-zone {
        padding: 1rem 0.75rem;
    }
    
    .upload-content .icon.is-large i {
        font-size: 2rem;
    }
    
    .file-preview {
        padding: 0.5rem;
    }
    
    .file-preview-name {
        font-size: 0.9rem;
    }
}
