/* TaxiHits Formation - Styles personnalisés */

:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.card-header {
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Progress bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 500;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    color: white;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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

/* Custom utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.box-shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.box-shadow-lg {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.border-radius {
    border-radius: 10px;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.success {
    background-color: var(--success-color);
}

.status-dot.danger {
    background-color: var(--danger-color);
}

.status-dot.warning {
    background-color: var(--warning-color);
}

/* Certificate styles */
.certificate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    border: 5px solid gold;
}

.certificate-header {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.certificate-body {
    font-size: 1.2rem;
    text-align: center;
    line-height: 2;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .card {
        background-color: #2d2d2d;
        border-color: #3d3d3d;
    }

    .form-control, .form-select {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #3d3d3d;
    }
}

/* ========================================
   🔧 FIX MODAL QUI DANSE
   ======================================== */

/* Désactiver TOUS les transforms dans les modals */
.modal .btn:hover,
.modal .card:hover,
.modal-content .btn:hover,
.modal-content .card:hover,
.modal-dialog .btn:hover,
.modal-dialog .card:hover {
    transform: none !important;
}

/* Forcer position fixe pour le modal */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    transition: none !important;
}

.modal-dialog {
    position: relative !important;
    margin: 1.75rem auto !important;
    transform: none !important;
    transition: none !important;
}

.modal-content {
    transform: none !important;
    transition: opacity 0.15s linear !important;
}

/* Désactiver animations fadeIn qui causent problème */
.modal.fade .modal-dialog {
    transition: none !important;
    transform: none !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}
