/* Personnalisation légère du FileInput pour affichage Duralux */

.custom-file-wrapper {
    position: relative;
    display: block;
}

.custom-file-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    background-color: #f8fafc;
    border: 2px dashed #3454d1;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
    cursor: pointer;
    margin-bottom: 0;
}

.custom-file-label:hover {
    background-color: #f0f4ff;
    border-color: #2142b6;
    box-shadow: 0 4px 12px rgba(52, 84, 209, 0.15);
}

.custom-file-button {
    background: linear-gradient(135deg, #3454d1 0%, #5b7ce8 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.custom-file-label:hover .custom-file-button {
    background: linear-gradient(135deg, #2142b6 0%, #3f5fd4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 84, 209, 0.3);
}

.custom-file-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Mode sombre pour meilleur contraste */
@media (prefers-color-scheme: dark) {
    .custom-file-label {
        background-color: #1e293b;
        color: #cbd5e1;
    }
    
    .custom-file-label:hover {
        background-color: #334155;
    }
}
