/* Styles personnalisés pour l'application web responsive */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Amélioration de la lisibilité sur mobile */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Cards responsive */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tables responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Boutons responsive */
.btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Navigation responsive */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

/* Formulaires responsive */
.form-control, .form-select {
    font-size: 1rem;
    padding: 0.75rem;
}

.form-control-lg {
    padding: 1rem;
    font-size: 1.125rem;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Badges */
.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* Amélioration pour les petits écrans */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Amélioration pour les tablettes */
@media (min-width: 577px) and (max-width: 992px) {
    .card-body {
        padding: 1.25rem;
    }
}

/* Amélioration pour le mode paysage sur mobile */
@media (max-width: 992px) and (orientation: landscape) {
    .navbar {
        padding: 0.25rem 0;
    }
    
    .card-body {
        padding: 0.75rem;
    }
}

/* Touch targets pour mobile */
@media (max-width: 768px) {
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .table td, .table th {
        padding: 0.75rem 0.5rem;
    }
}

/* Amélioration de l'accessibilité */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animations fluides */
* {
    transition: background-color 0.2s, color 0.2s;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
