/* Corps global */
body {
    background-color: #f8f9fa; /* Fond clair et neutre */
    font-family: Arial, sans-serif;
    color: #343a40; /* Couleur principale pour le texte */
    margin: 0;
    padding: 0;
}

/* Titres */
h1, h2 {
    color: #343a40; /* Couleur sombre pour les titres */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Paragraphes */
p {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Conteneur principal */
.container {
    max-width: 800px; /* Largeur ajustée pour les écrans larges */
    margin: 20px auto; /* Centré avec marges */
    padding: 20px;
    background-color: #ffffff; /* Fond blanc pour les conteneurs */
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

/* Tableaux */
.table {
    background-color: #ffffff; /* Fond blanc */
    border-radius: 8px; /* Bords arrondis */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
    overflow: hidden; /* Évite le débordement */
}

.table th, .table td {
    vertical-align: middle; /* Centrage vertical */
    text-align: center; /* Centrage horizontal */
    padding: 12px;
}

.table-hover tbody tr:hover {
    background-color: #eaf4ff !important; /* Bleu clair au survol */
    transition: background-color 0.3s ease;
}

/* Colonnes spécifiques */
.date-column {
    white-space: nowrap; /* Empêche les retours à la ligne */
    width: 150px; /* Largeur fixe */
    text-align: center; /* Texte centré */
}

/* Boutons */
.btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px; /* Coins arrondis élégants */
    transition: all 0.3s ease; /* Transition fluide */
    margin: 5px; /* Espacement entre les boutons */
}

.btn:hover {
    transform: scale(1.05); /* Légère augmentation de taille */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Ombre dynamique */
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

/* Boutons dans un conteneur */
.button-container {
    white-space: nowrap; /* Empêche les éléments de se mettre à la ligne */
    text-align: center;
}

.button-container a {
    display: inline-block; /* Affiche les liens côte à côte */
    margin-right: 5px; /* Espacement entre les boutons */
}

/* Effets de badge (Statut) */
.badge {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

/* Responsivité */
@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        max-width: 100%; /* Utilise toute la largeur disponible */
        padding: 10px;
    }

    .btn {
        font-size: 0.9rem; /* Taille des boutons réduite */
        padding: 8px 15px;
    }

    .table th, .table td {
        font-size: 0.9rem; /* Réduit la taille de la police dans les tableaux */
        padding: 8px;
    }
}