/* ==================== UX IMPROVEMENTS ==================== */

/* Sticky status bar */
#statusBar {
    z-index: 1025;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#statusBar .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
}

#statusBar small {
    font-weight: 500;
}

/* Card headers avec background */
.card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card-header h5 {
    margin: 0;
    color: var(--neutral-700);
}

/* Boutons avec icônes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Badges avec numéros d'étapes */
.badge.rounded-pill {
    font-weight: 600;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Sections avec hiérarchie visuelle */
section.card {
    border-left: 4px solid #0d6efd;
    transition: all 0.2s ease;
}

section.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Info boxes */
.alert {
    margin-bottom: 0;
    border-radius: 0.375rem;
}

.alert.alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

.alert.alert-light {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Tab navigation */
.nav-tabs .nav-link {
    color: var(--neutral-600);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: transparent;
}

/* Input groups */
.input-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group .form-control,
.input-group .btn {
    border-color: #dee2e6;
}

/* Responsive buttons */
@media (max-width: 576px) {
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .flex-grow-1 {
        flex-grow: 1 !important;
    }

    .d-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .d-grid.gap-2 {
        gap: 0.5rem !important;
    }
}

/* Footer amélioré */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Section spacing */
section {
    margin-bottom: 1rem;
}

main > * + * {
    margin-top: 0;
}

/* Typography pour meilleure lisibilité */
h1, h2, h3, h4, h5, h6 {
    color: var(--neutral-900);
}

.card-title {
    color: var(--neutral-900);
    font-weight: 600;
}

/* Hover effects */
.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Form labels */
.form-label {
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

/* Accessibility */
.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Loader/Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Alert messages */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* Mobile optimized buttons */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        min-height: 44px;
    }
}

/* Print styles */
@media print {
    .sticky-top,
    header,
    footer {
        display: none;
    }

    .card {
        page-break-inside: avoid;
    }
}
