/* === Styles pour les vues de paiement === */

/* Animations et transitions */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badges personnalisés */
.badge {
    font-weight: 500;
    font-size: 0.875rem;
}

.badge.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.badge.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}

.badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

/* Cards d'en-tête avec icônes */
.card .bi {
    transition: transform 0.3s ease;
}

.card:hover .bi {
    transform: scale(1.1);
}

/* Bordures colorées pour les inscriptions */
.border-start.border-3 {
    border-left-width: 4px !important;
}

/* Modal personnalisé */
.modal-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-body {
    max-height: calc(100vh - 200px);
}

/* Spinner de chargement */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Cartes d'inscription */
.card-body .row {
    align-items: center;
}

/* Amélioration responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem !important;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    /* Amélioration des cards mobiles */
    .card .row [class*="col-"] {
        padding-bottom: 0.5rem;
    }
    
    .card .row [class*="col-"]:last-child {
        padding-bottom: 0;
    }
}

@media (max-width: 576px) {
    h1, .h3 {
        font-size: 1.5rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.3s ease;
}

/* Amélioration de la lisibilité */
.small, small {
    font-size: 0.875rem;
    opacity: 0.8;
}

.fw-bold {
    font-weight: 600 !important;
}

/* Icônes Bootstrap */
.bi {
    vertical-align: -0.125em;
}

/* États de focus améliorés pour l'accessibilité */
button:focus,
a:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Amélioration des alertes */
.alert {
    border-radius: 0.5rem;
    border-left-width: 4px;
}

.alert i {
    font-size: 1.2rem;
}

/* Table responsive améliorée */
.table-responsive {
    border-radius: 0.5rem;
}

.table > :not(caption) > * > * {
    padding: 1rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Boutons personnalisés */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

/* Cartes de totaux */
.bg-light {
    background-color: #f8f9fa !important;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

/* Séparateur visuel */
.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Amélioration du contraste pour l'accessibilité */
.text-muted {
    color: #6c757d !important;
}

/* Print styles */
@media print {
    /*
    .btn, .modal-header button {
        display: none !important;
    }
 */
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
}