/* Style général */
body {
    background-color: #e9ecef;
    padding-top: 0px; /* Réduit de 76px à 64px pour compenser le padding réduit du navbar */
}

/* Style pour l'effet de brillance */
.shine-effect {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 223, 186, 0.4),
        rgba(255, 255, 255, 0.4),
        rgba(255, 223, 186, 0.4),
        transparent
    );
    -webkit-animation: shine 4s ease-in-out infinite;
    animation: shine 4s ease-in-out infinite;
    z-index: 2;
}

@-webkit-keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Style des cartes */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    background-color: #ffffff;
}

.card-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Style des formulaires */
.form-control {
    background-color: #ffffff;
    border: 2px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    background-color: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

/* Style des boutons */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Style des boutons d'action */
.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px !important;
    padding: 0.5rem;
    flex-direction: column;
}

/* Style des boutons d'action dans les tableaux */
.table .btn-action {
    flex-direction: column;
    padding: 0.5rem;
    width: 80px;
}

.table .btn-action i {
    margin-bottom: 0.25rem;
}

/* Style des boutons d'action dans la barre de navigation */
.nav-buttons .btn-action {
    flex-direction: column;
    padding: 0.5rem;
    min-width: 60px;
}

.nav-buttons .btn-action i {
    margin-bottom: 0.25rem;
}

.nav-buttons .btn-action span {
    font-size: 0.8rem;
}

/* Style des boutons de navigation */
.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    white-space: nowrap;
    padding: 0.5rem;
}

.btn-nav i {
    font-size: 1rem;
}

/* Style des groupes de boutons */
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.btn-group .btn {
    flex: 1;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

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

.btn-warning:hover {
    background-color: #ffb733;
    border-color: #ffb733;
}

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

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Style des tableaux */
.table {
    background-color: #ffffff;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #212529;
}

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

/* Style des badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Style des alertes */
.alert {
    border: none;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

/* Style de la barre de navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #3D5A80 !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 600;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 1.25em;
    text-align: center;
}

/* Style des champs de formulaire en lecture seule */
.form-control:read-only {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Style des champs de formulaire désactivés */
.form-control:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Style des champs de formulaire avec erreur */
.form-control.is-invalid {
    border-color: #dc3545;
    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-linecap='round' d='M6 3.75v1.5m0 4.5h1.5m-3 0h1.5'/%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);
}

/* Style des messages d'aide des champs */
.form-text {
    color: #495057;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Style des messages d'erreur des champs */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Style des cases à cocher */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
}

.form-check-label {
    margin-left: 0.5rem;
    color: #212529;
    font-weight: 500;
}

/* Style des sélecteurs de fichiers */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
    background-color: #ffffff;
}

/* Style des zones de texte */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Style des sélecteurs */
select.form-control {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    background-color: #ffffff;
}

/* Style des groupes de formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

/* Style des lignes de formulaire */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.navbar {
    margin-bottom: 2rem;
}

/* Règles de responsivité */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-img-top {
        height: 150px;
    }

    .table-responsive {
        margin-bottom: 1rem;
    }

    .btn-group {
        flex-direction: row;
        width: 100%;
        gap: 0.25rem;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0;
        padding: 0.5rem;
    }

    .navbar {
        padding: 0.25rem 0;
    }

    .navbar-brand img {
        max-height: 28px; /* Encore plus petit sur mobile */
    }

    .nav-link {
        padding: 0.5rem !important;
    }

    .nav-link i {
        margin-right: 0.25rem;
        width: 1em;
    }

    body {
        padding-top: 0px; /* Réduit sur mobile */
    }

    .form-container {
        padding: 1rem;
    }

    .member-details {
        padding: 1rem;
    }

    .member-details h3 {
        font-size: 1.5rem;
    }

    .social-links {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    .social-links a,
    .social-links .btn-action,
    .social-links a.btn-action {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 60px !important;
        padding: 0.5rem !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        background: none !important;
        border: none !important;
    }

    .social-links a i,
    .social-links .btn-action i,
    .social-links a.btn-action i {
        margin: 0 0 0.25rem 0 !important;
        font-size: 1.2rem !important;
    }

    .social-links a span,
    .social-links .btn-action span,
    .social-links a.btn-action span {
        display: block !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* Améliorations pour les tableaux */
    .table {
        font-size: 0.9rem;
    }

    .table td, .table th {
        padding: 0.5rem;
        min-width: 120px; /* Largeur minimale pour les colonnes */
    }

    /* Ajustement de la largeur des colonnes spécifiques */
    .table th:nth-child(1), /* Nom */
    .table td:nth-child(1) {
        min-width: 150px;
    }

    .table th:nth-child(2), /* Prénom */
    .table td:nth-child(2) {
        min-width: 120px;
    }

    .table th:nth-child(3), /* Email */
    .table td:nth-child(3) {
        min-width: 200px;
    }

    .table th:nth-child(4), /* Téléphone */
    .table td:nth-child(4) {
        min-width: 120px;
    }

    .table th:nth-child(5), /* Actions */
    .table td:nth-child(5) {
        min-width: 200px;
    }

    /* Ajustement du conteneur du tableau */
    .table-responsive {
        margin-bottom: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Améliorations pour les formulaires */
    .form-control {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    /* Améliorations pour les boutons */
    .btn {
        padding: 0.5rem 1rem;
    }

    /* Améliorations pour les dropdowns */
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Améliorations pour les cartes */
    .card-body {
        padding: 1rem;
    }

    /* Améliorations pour les titres */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Améliorations pour les boutons de navigation sur mobile */
    .btn-nav {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .btn-nav i {
        width: 1.2rem;
        text-align: center;
    }

    /* Réorganisation des boutons sur mobile */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex.justify-content-between > * {
        width: 100%;
    }

    /* Style pour les boutons de tri et vue */
    .nav-buttons {
    
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .nav-buttons .btn-action {
        flex: 1;
        min-width: 0;
        width: auto !important;
    }

    /* Style pour les boutons d'export */
    .d-flex:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex:last-child .btn-action {
        flex: 1;
        min-width: 0;
        width: auto !important;
    }

    /* Style pour les boutons d'action en version mobile */
    .admin .btn-action {
        width: 40px !important;
        min-width: 40px;
        padding: 0.5rem;
        margin: 0 2px;
        flex: 0 0 40px !important;
    }
    
    .admin .btn-action i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .admin .btn-action span {
        display: none;
    }

    /* Alignement des boutons d'action sur la même ligne */
    .admin .btn-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 0.25rem;
        width: auto !important;
        flex-wrap: nowrap !important;
    }

    .admin .btn-group .btn {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }

    /* Style pour les boutons d'action dans la fiche membre */
    .member-details .btn-group,
    .member-details .d-flex.justify-content-between {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.25rem !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .member-details .btn-group .btn,
    .member-details .d-flex.justify-content-between .btn {
        flex: 1 1 0 !important;
        width: calc(33.333% - 0.17rem) !important;
        margin-bottom: 0 !important;
        padding: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .member-details .btn-group .btn i,
    .member-details .d-flex.justify-content-between .btn i {
        margin-right: 0.25rem !important;
        font-size: 1rem !important;
    }

    .member-details .btn-group .btn span,
    .member-details .d-flex.justify-content-between .btn span {
        display: inline-block !important;
        max-width: calc(100% - 1.5rem) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 120px;
    }

    .btn {
        
        margin-bottom: 0.5rem;
    }

    .form-row {
        margin-right: 0;
        margin-left: 0;
    }

    .form-row > .col,
    .form-row > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.5rem 1rem;
    }

    /* Améliorations pour les petits écrans */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .btn {
        width: 100%;
        text-align: left;
    }

    /* Améliorations pour les formulaires sur petits écrans */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Améliorations pour les alertes */
    .alert {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Ajustements supplémentaires pour les très petits écrans */
    .btn-nav {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .btn-nav i {
        font-size: 0.9rem;
    }

    /* Exception pour les boutons d'action dans l'admin */
    .admin .btn,
    .admin .btn-action,
    .admin .btn-group .btn {
        width: auto !important;
        margin-bottom: 0 !important;
    }

    /* Exception pour les boutons de réseaux sociaux */
    .social-links a,
    .social-links .btn-action,
    .social-links a.btn-action {
        width: auto !important;
        margin-bottom: 0 !important;
    }
}

/* Style pour les boutons d'action sur mobile */
.btn-action {
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-action i {
    margin-right: 0.5rem;
}

/* Style pour les cartes de membres */
.member-card {
    height: 100%;
    transition: transform 0.2s;
}

.member-card:hover {
    transform: translateY(-5px);
}

/* Style pour le logo dans le header */
.navbar-brand img {
    max-height: 32px;
    width: auto;
}

/* Style pour les formulaires */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Style pour les messages d'alerte */
.alert {
    margin-bottom: 1.5rem;
}

/* Style pour les tableaux */
.table-responsive {
    margin-bottom: 1.5rem;
}

/* Style pour les boutons dans les tableaux */
.table .btn {
    margin: 0.25rem;
}

/* Style pour les modales */
.modal-header {
    background-color: #f8f9fa;
}

.modal-footer {
    background-color: #f8f9fa;
}

/* Style pour les champs de formulaire */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Style pour les labels */
.form-label {
    font-weight: 500;
}

/* Style pour les champs obligatoires */
.form-label.required::after {
    content: " *";
    color: red;
}

/* Style pour les messages de validation */
.invalid-feedback {
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* Style pour les boutons de soumission */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Style pour les icônes */
.fas, .far, .fab {
    width: 1.25em;
    text-align: center;
}

/* Style pour les cartes de profil */
.profile-card {
    margin-bottom: 2rem;
}

.profile-card img {
    max-width: 100%;
    height: auto;
}

/* Style pour les liens dans les cartes */

.card a:hover {
  
    text-decoration: underline;
}

/* Style pour les badges */
.badge {
    font-size: 0.875em;
    padding: 0.5em 0.75em;
}

/* Style pour les listes */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Style pour les titres */
h1, h2, h3, h4, h5, h6 {
    color: #212529;
    margin-bottom: 1rem;
}

/* Style pour les paragraphes */
p {
    margin-bottom: 1rem;
}

/* Style pour les liens */
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Style pour les conteneurs */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Style pour les lignes */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Style pour les colonnes */
.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Style pour les marges */
.mt-1, .mt-2, .mt-3, .mt-4, .mt-5 {
    margin-top: 1rem;
}

.mb-1, .mb-2, .mb-3, .mb-4, .mb-5 {
    margin-bottom: 1rem;
}

/* Style pour les espacements */
.p-1, .p-2, .p-3, .p-4, .p-5 {
    padding: 1rem;
}

/* Style pour les bordures */
.border {
    border: 1px solid #dee2e6;
}

.border-top {
    border-top: 1px solid #dee2e6;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6;
}

/* Style pour les ombres */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Style pour les arrondis */
.rounded {
    border-radius: 0.25rem;
}

.rounded-top {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.rounded-bottom {
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Style pour les couleurs de fond */
.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: #212529;
}

/* Style pour les couleurs de texte */
.text-primary {
    color: #0d6efd;
}

.text-secondary {
    color: #6c757d;
}

.text-success {
    color: #198754;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-info {
    color: #0dcaf0;
}

/* Style pour les alignements */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Style pour les flexbox */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

/* Style pour les grilles */
.grid {
    display: grid;
}

.grid-template-columns {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Style pour les transitions */
.transition {
    transition: all 0.3s ease;
}

/* Style pour les animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Style pour les media queries */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn-action {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-action i {
        margin-right: 0.5rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .table .btn {
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    .form-control:focus {
        box-shadow: none;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .invalid-feedback {
        font-size: 0.75rem;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .fas, .far, .fab {
        width: 1em;
    }
    
    .profile-card {
        margin-bottom: 1rem;
    }
    
    .card a {
        font-size: 0.875rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.25em 0.5em;
    }
    
    .list-group-item {
        padding: 0.75rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    a {
        font-size: 0.875rem;
    }
    
    .container {
        max-width: 100%;
    }
    
    .row {
        flex-wrap: wrap;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        width: 100%;
    }
    
    .mt-1, .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 0.5rem;
    }
    
    .mb-1, .mb-2, .mb-3, .mb-4, .mb-5 {
        margin-bottom: 0.5rem;
    }
    
    .p-1, .p-2, .p-3, .p-4, .p-5 {
        padding: 0.5rem;
    }
    
    .border {
        border-width: 0.5px;
    }
    
    .shadow {
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    }
    
    .shadow-sm {
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    }
    
    .rounded {
        border-radius: 0.125rem;
    }
    
    .rounded-top {
        border-top-left-radius: 0.125rem;
        border-top-right-radius: 0.125rem;
    }
    
    .rounded-bottom {
        border-bottom-left-radius: 0.125rem;
        border-bottom-right-radius: 0.125rem;
    }
    
    .bg-light {
        background-color: #f8f9fa;
    }
    
    .bg-dark {
        background-color: #212529;
    }
    
    .text-primary {
        color: #0d6efd;
    }
    
    .text-secondary {
        color: #6c757d;
    }
    
    .text-success {
        color: #198754;
    }
    
    .text-danger {
        color: #dc3545;
    }
    
    .text-warning {
        color: #ffc107;
    }
    
    .text-info {
        color: #0dcaf0;
    }
    
    .text-center {
        text-align: center;
    }
    
    .text-left {
        text-align: left;
    }
    
    .text-right {
        text-align: right;
    }
    
    .d-flex {
        display: flex;
    }
    
    .flex-column {
        flex-direction: column;
    }
    
    .justify-content-center {
        justify-content: center;
    }
    
    .align-items-center {
        align-items: center;
    }
    
    .grid {
        display: grid;
    }
    
    .grid-template-columns {
        grid-template-columns: 1fr;
    }
    
    .transition {
        transition: all 0.2s ease;
    }
    
    .fade-in {
        animation: fadeIn 0.2s ease-in;
    }
}

/* Couleur du texte pour les boutons */
.btn-info,
.btn-warning {
    color: #fff !important;
}

.btn-info {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-info:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.btn-danger {
    color: #fff !important;
}

/* Style spécifique pour les boutons d'export dans l'administration */
.admin .card-header .btn-group {
    width: auto !important;
}

.admin .card-header .btn-group .btn {
    width: 80px;
}

.admin .card-header .btn-group .btn-success,
.admin .card-header .btn-group .btn-danger {
    color: #fff !important;
} 
/* =========================================================
   Styles extraits des fichiers PHP — refactoring CSS
   ========================================================= */

/* --- Floating nav (includes/floating_nav.php) --- */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    transition: all 0.3s ease;
    border: 2px solid #adb5bd;
}

.floating-nav-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #0d6efd;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.floating-nav-item:hover {
    background: #f8f9fa;
    color: #0a58ca;
}

.floating-nav-item i {
    font-size: 1.5rem;
}

.floating-nav-label {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #0d6efd;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.floating-nav-item:hover .floating-nav-label {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .floating-nav {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        border-radius: 25px;
        padding: 5px;
    }

    .floating-nav-content {
        flex-direction: row;
        gap: 10px;
    }

    .floating-nav-item {
        padding: 10px;
    }

    .floating-nav-item i {
        font-size: 1.2rem;
    }

    .floating-nav-label {
        display: none;
    }
}

/* --- Member navigation (view_member.php) --- */
.member-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}
.member-navigation.prev {
    left: 20px;
}
.member-navigation.next {
    right: 20px;
}
.member-navigation .btn {
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: white;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    transition: all 0.3s ease;
}
.member-navigation .btn:hover {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .member-navigation {
        position: static;
        transform: none;
        margin: 1rem 0;
    }
    .member-navigation.prev, .member-navigation.next {
        position: fixed;
        bottom: 20px;
        top: auto;
    }
    .member-navigation.prev {
        left: 20px;
    }
    .member-navigation.next {
        right: 20px;
    }
}

/* --- Carousel / Modal (view_member.php, profile.php) --- */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    position: absolute;
    z-index: 5;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.carousel-item {
    padding: 20px 60px;
}

.badge[data-bs-toggle="modal"] {
    transition: all 0.3s ease;
}

.badge[data-bs-toggle="modal"]:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.carousel {
    position: relative;
    z-index: 1;
}

.modal-dialog {
    max-width: 800px;
}

.modal-body {
    padding: 0;
    overflow: hidden;
}

/* --- Password requirements (add_member.php, edit_member.php, reset_password.php) --- */
.password-requirements {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}
.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.requirement i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}
.requirement span {
    flex: 1;
}

/* --- btn-purple (admin.php, meetings.php) --- */
.btn-purple {
    background-color: #3D5A80;
    border-color: #3D5A80;
    color: white;
}
.btn-purple:hover {
    background-color: #2E4466;
    border-color: #2E4466;
    color: white;
}

/* --- btn-action (admin.php, reactivate_members.php) --- */
.btn-action {
    width: 120px;
}

/* --- Admin page styles (admin.php) --- */
.card.mb-4 {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}
.card.mb-4 .card-header {
    background-color: rgba(220, 53, 69, 0.2);
    border-bottom: 1px solid #dc3545;
}
.card.mb-4 .table thead {
    background-color: rgba(220, 53, 69, 0.1);
}
.card.mb-4 .table tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.08);
}
.card.mb-4 .table tbody tr {
    background-color: rgba(220, 53, 69, 0.02);
}

.card:last-of-type {
    border: 1px solid #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}
.card:last-of-type .card-header {
    background-color: rgba(255, 193, 7, 0.3);
    border-bottom: 1px solid #ffc107;
}
.card:last-of-type .table thead {
    background-color: rgba(255, 193, 7, 0.2);
}
.card:last-of-type .table tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.15);
}
.card:last-of-type .table tbody tr {
    background-color: rgba(255, 193, 7, 0.05);
}

.card-header h5 {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: transparent;
}

.admin-buttons {
    display: flex;
}
.admin-buttons .btn {
    border-radius: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.95rem;
}
.admin-buttons .btn i {
    margin-right: 8px;
    font-size: 1rem;
}
.admin-buttons .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}
.admin-buttons .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* --- Meetings page styles (meetings.php) --- */
.meeting-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.meeting-card.cancelled::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right bottom, transparent calc(50% - 1px), #dc3545 calc(50% - 1px), #dc3545 calc(50% + 1px), transparent calc(50% + 1px));
    pointer-events: none;
    z-index: 1;
}
.meeting-card.past {
    background-color: #f8f9fa;
    border-style: dashed !important;
    opacity: 0.8;
}
.meeting-card.past .card-header {
    opacity: 0.7;
}
.meeting-card.past h5 {
    color: white !important;
}
.holiday {
    border-color: #dc3545;
}
.bg-purple {
    background-color: #3D5A80 !important;
}
.text-purple {
    color: #C9A84C !important;
}
.border-purple {
    border-color: #C9A84C !important;
}
.btn-outline-purple {
    color: #3D5A80;
    border-color: #3D5A80;
}
.btn-outline-purple:hover, .btn-outline-purple.active {
    background-color: #3D5A80;
    border-color: #3D5A80;
    color: white;
}
.meeting-card .card-header {
    background-color: rgba(61, 90, 128, 0.1);
    border-bottom: 1px solid rgba(61, 90, 128, 0.2);
}
.floating-save-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(61, 90, 128, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.floating-save-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(61, 90, 128, 0.4);
}
.meetings-container {
    padding-bottom: 5rem;
}
.meeting-time.morning {
    color: #e67e22 !important;
}
.meeting-time.morning i {
    color: #e67e22 !important;
}
.meeting-time.lunch {
    color: #2980b9 !important;
}
.meeting-time.lunch i {
    color: #2980b9 !important;
}
.card-header.morning-header {
    background-color: #e67e22 !important;
}
.card-header.lunch-header {
    background-color: #2980b9 !important;
}
.card-header.morning-header h5,
.card-header.lunch-header h5,
.card-header.morning-header .form-check-label,
.card-header.lunch-header .form-check-label {
    color: white !important;
}
.card-header.morning-header .form-check-input,
.card-header.lunch-header .form-check-input {
    border-color: white;
}
.card-header.morning-header .form-check-input:checked,
.card-header.lunch-header .form-check-input:checked {
    background-color: white;
    border-color: white;
}

/* --- Reactivate members page (reactivate_members.php) --- */
.reactivate-card {
    border: 1px solid #6c757d !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.2);
}
.reactivate-card .card-header {
    background-color: rgba(108, 117, 125, 0.2);
    border-bottom: 1px solid #6c757d;
}
.reactivate-card .table thead {
    background-color: rgba(108, 117, 125, 0.1);
}
.reactivate-card .table tbody tr:hover {
    background-color: rgba(108, 117, 125, 0.08);
}
.reactivate-card .table tbody tr {
    background-color: rgba(108, 117, 125, 0.02);
}

/* --- Statistics page (statistics.php) --- */
.podium-item {
    text-align: center;
    margin-bottom: 10px;
}
.gold {
    transform: translateY(-20px);
}
.nav-tabs {
    border-bottom: none;
    margin: 0;
    padding: 0 1rem;
}
.tab-content {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    margin-top: -2px;
}
.tab-pane.active#recommendations {
    border: 2px solid #0d6efd;
    border-radius: 0.5rem;
    margin: -2px;
}
.tab-pane.active#thanks {
    border: 2px solid #198754;
    border-radius: 0.5rem;
    margin: -2px;
}
.tab-pane.active#guests {
    border: 2px solid #ffc107;
    border-radius: 0.5rem;
    margin: -2px;
}
.card-body {
    padding: 1.25rem;
}
.nav-tabs .nav-link {
    font-weight: 500;
    padding: 12px 20px;
    margin-right: 4px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: all 0.2s ease-in-out;
    background-color: #f8f9fa;
    color: #6c757d;
    position: relative;
    z-index: 1;
}
.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
}
#recommendations-tab {
    border: 2px solid #0d6efd;
    color: #6c757d;
}
#recommendations-tab:hover {
    color: #fff;
    background-color: rgba(13, 110, 253, 0.8);
}
#recommendations-tab.active {
    color: #fff !important;
    font-weight: 600;
    background-color: #0d6efd;
    border-bottom: none;
    margin-bottom: -2px;
}
#thanks-tab {
    border: 2px solid #198754;
    color: #6c757d;
}
#thanks-tab:hover {
    color: #fff;
    background-color: rgba(25, 135, 84, 0.8);
}
#thanks-tab.active {
    color: #fff !important;
    font-weight: 600;
    background-color: #198754;
    border-bottom: none;
    margin-bottom: -2px;
}
#guests-tab {
    border: 2px solid #ffc107;
    color: #6c757d;
}
#guests-tab:hover {
    color: #fff;
    background-color: rgba(255, 193, 7, 0.8);
}
#guests-tab.active {
    color: #fff !important;
    font-weight: 600;
    background-color: #ffc107;
    border-bottom: none;
    margin-bottom: -2px;
}
.tab-content > .tab-pane {
    background-color: #fff;
    padding: 1.5rem;
}
.tab-content > .active {
    display: block;
    border-radius: 0.5rem;
}
