/* ---- Fichier: assets/css/style.css ---- */
/* Styles personnalisés pour l'application */

/* Styles généraux */
body {
    background-color: #f8f9fa;
}

/* Hauteur minimale pour le contenu principal */
main.container {
    min-height: calc(100vh - 150px);
}

/* Styles pour les cartes */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Styles pour les formulaires */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styles pour la page de connexion */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour les boutons d'action */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Styles pour les badges */
.badge {
    padding: 0.5em 0.75em;
}

/* Styles pour les alertes de validation */
.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Styles pour la prévisualisation des images */
.img-preview {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

/* Styles pour les tableaux responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Classes utilitaires */
.cursor-pointer {
    cursor: pointer;
}

.opacity-25 {
    opacity: 0.25;
}

/* Styles pour appareils mobiles */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}