
:root {
    --main-color: #2B99B4;
    --main-color-hover: #238a9f;
    --main-color-light: #3db3d1;
    --secondary-color: #27607F;
    --secondary-color-hover: #1f4d66;
    --secondary-color-light: #3a7a9e;
    --third-color: #243B5D;
    --third-color-hover: #1a2d47;
    --third-color-light: #2f4d75;
    --contrast: #F63E63;
    --contrast-hover: #e02851;
    --contrast-light: #f85979;
    --gray-primary: #6c757d;
    --gray-hover: #5a6268;
    --gray-light: #868e96;
    --gray-bg: #e9ecef;
    --yellow: #F5A623;
    --yellow-hover: #D68910;
    --font-size: 16px;
    --contrast-soft: #F48FB1;
    --contrast-soft-hover: #F06292;
}



html, body {
    font-family: 'Montserrat', Arial, sans-serif;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}


    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

/* AJOUT GTO */

.page-container {
    padding: 1.5rem;
    background-color: #f5f7fa;
    min-height: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.page-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
}



/*login*/
.login-background {
    background-image: url('/images/fond-login.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh; /* plein écran */
    display: flex;
    align-items: baseline;
    justify-content: center;
}


.login-container {
    display: flex;
    flex-direction: row-reverse;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
}

.login-image {
    flex: 1;
    background-image: url('/images/fond-login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: white;
}

    .login-form-section h1 {
        margin-bottom: 0.5rem;
        color: #333;
    }

    .login-form-section p {
        margin-bottom: 2rem;
        text-align: center;
        color: #666;
    }

    .login-form-section h3 {
        margin-bottom: 1.5rem;
        color: #333;
    }

/* Formulaire */
.login-form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

    .form-input:focus {
        outline: none;
        border-color: #ffc107;
    }


    /* les boutons*/
.btn {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.btn-close {
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    padding: 0;
    cursor: pointer;
}

    .btn-close:hover {
        opacity: 0.75;
    }



.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    color: snow;
}

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

    .btn-action:active {
        transform: translateY(0);
    }

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



.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

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

    .btn-icon:active {
        transform: translateY(0);
    }



.btn-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    max-width: 120px;
}

.btn-compact2 {
    width: 190px;
}
.btn-compact3 {
    width: 140px;
}


.btn-primary {
    background-color: var(--main-color);
}

    .btn-primary:hover {
        background-color: var(--main-color-hover)
    }

.btn-secondary {
    background-color: var(--gray-primary);
}

    .btn-secondary:hover {
        background-color: var(--gray-hover);
    }

.btn-tertiary {
    background-color: var(--third-color);
    color: ivory;
}

    .btn-tertiary:hover {
        background-color: var(--third-color-hover);
        color: ivory;
    }



.btn-warning {
    background-color: var(--yellow);
    color: #000;
    width:230px;
    font-weight: 500;
}

    .btn-warning:hover {
        background-color: var(--yellow-hover);
    }

.btn-view {
    background-color: var(--secondary-color);
    color: white;
}

    .btn-view:hover {
        background-color: var(--secondary-color-hover);
    }

.btn-edit {
    background-color: var(--yellow);
    color: #ffffff;
}

    .btn-edit:hover {
        background-color: var(--yellow-hover);
    }

.btn-delete {
    background-color: var(--contrast);
    color: white;
}

    .btn-delete:hover {
        background-color: var(--contrast-hover);
        color: white;
    }

.btn-danger {
    background-color: var(--contrast-soft);
}

    .btn-danger:hover {
        background-color: var(--contrast-soft-hover);
    }

.error-message {
    color: #dc3545;
    margin-top: 1rem;
    text-align: center;
}


.nocollapsible {
    cursor: auto;
    padding: 10px;
    background-color: #eaeaea;
    border: none;
    text-align: left;
    font-size: 14px;
    /*font-weight:bold;*/
    width: 100%;
}

.collapsible {
    cursor: pointer;
    padding: 10px;
    background-color: #eaeaea;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: lighter;
    width: 100%;
}

    .collapsible::before {
        content: "▶ ";
    }

.collapsibleexpanded {
    cursor: pointer;
    padding: 10px;
    background-color: #eaeaea;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: lighter;
    width: 100%;
}

    .collapsibleexpanded::before {
        content: "▼ ";
    }

.contentinfo {
    padding: 0px 0px;
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    font-size: 11px;
}

.content {
    padding: 5px 5px;
    padding-top: 1.1rem;
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    font-size: 14px;
}

.liste-utilisateurs {
    border: 1px solid #ccc;
    padding: 10px;
}

.item-utilisateur {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.filter-bool {
    min-width: 600px; /* ou plus selon besoin */
}

.modal-header-custom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.message-zone {
    text-align: center;
}

.display-message {
    font-weight: bold;
    white-space: nowrap;
}

.display-message-container {
    min-height: 40px; /* Pour éviter que les boutons ne masquent le texte */
    padding: 0 40px; /* Pour laisser de l'espace au texte entre les boutons */
}

.modal-custom-large {
    max-width: 100px;
    width: 100%;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}


.modal-content .btn-icon {
    width: 36px;
    height: 36px;
    color: white;
}

    .modal-content .btn-icon:hover {
        background-color: #238a9f !important;
    }

.modal-content .form-input:disabled,
.modal-content .form-control:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}


.access-section h6 {
    color: white;
}

.access-section summary {
    color: white;
}

.hover-cursor {
    cursor: pointer; /* s-resize; */ /* pointer;*/
    font-weight: bold;
}

    .hover-cursor:hover {
        background-color: #f0f0f0;
    }

table {
    font-size: 11px;
}

.table_standard {
    font-size: 12px;
    width: 100%; /* Le tableau occupe 100% de son conteneur */
    table-layout: fixed; /* Laisse le tableau adapter sa taille selon le contenu */
    word-wrap: break-word;
}

    .table_standard th,
    .table_standard td {
        white-space: normal !important;
        overflow-wrap: break-word;
    }

.table_collapse {
    font-size: 12px;
    width: 100%; /* Le tableau occupe 100% de son conteneur */
    table-layout: fixed; /* Force un layout fixe pour les colonnes */
}

/* Liste version "CARD" , partie Header */
.card-custom-font-header {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
}

/* Liste version "CARD" , partie Body */
.card-custom-font-body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
}

/* Liste version "CARD" , partie Header + body (en cas de besoin) */
.card-custom-font {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
}

.th_td_standard {
    word-wrap: normal; /* Le texte se coupe et passe à la ligne si nécessaire */
    white-space: nowrap; /* Empêche les retours à la ligne automatiques */
    overflow: visible; /* Le texte s'adapte à la largeur sans troncature */
}

.th_td_collapse {
    /*width: 20%; */ /* Chaque colonne prendra 20% de la largeur totale du tableau */
    word-wrap: break-word; /* Permet au texte de se couper et d'aller à la ligne */
    white-space: normal; /* Autorise les retours à la ligne naturels */
    text-align: left; /* Aligne le texte à gauche pour une meilleure lisibilité */
    padding: 10px; /* Ajoute un espace autour du texte */
    overflow: hidden; /* Évite les débordements */
    box-sizing: border-box; /* Inclut le padding dans la largeur */
}

.th_td_col-10 {
    width: 10%;
}

.th_td_col-20 {
    width: 20%;
}

.th_td_col-30 {
    width: 30%;
}

.th_td_col-40 {
    width: 40%;
}

.th_td_col-50 {
    width: 50%;
}

th:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .th, .td {
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
    }

    .input {
        width: 100%;
    }
}

.same-width {
    width: 100px;
}

button.btn-sm i {
    font-size: 16px; /* Taille des icônes */
}

button.btn-sm {
    padding: 5px; /* Réduit la taille des boutons */
}

.button-container button {
    margin-right: 10px; /* Ajoute un espace à droite de chaque bouton */
}

    .button-container button:last-child {
        margin-right: 0; /* Supprime l'espace pour le dernier bouton */
    }

.custom-dropdown {
    background-color: #1b6ec2; /* Fond clair */
    border: 1px solid #ccc; /* Bordure grise */
    border-radius: 5px; /* Bordure arrondie */
}

.dropdown-item:hover {
    background-color: #007bff; /* Fond bleu */
    border-radius: 5px; /* Bordure arrondie au survol */
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}


/* Container principal */
.home-container {
    margin: 0 auto;
}

/* En-tête */
.home-header {
    background: linear-gradient(45deg, var(--secondary-color) 0%, var(--main-color) 70%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.home-version {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0 0 1rem 0;
}

.home-welcome {
    font-size: 1.125rem;
    margin: 0;
}

    .home-welcome strong {
        font-weight: 600;
    }

/* Badges de rôle */
.role-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

    .role-badge::before {
        content: '✓';
        margin-right: 0.5rem;
        font-weight: bold;
    }

/* Section des informations */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Accordéons personnalisés */
.accordion-item {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

    .accordion-item:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

.accordion-button {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: var(--secondary-color);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    color: #333;
}

    .accordion-button:hover {
        background-color: #e9ecef;
    }

    .accordion-button.expanded {
        background-color: #667eea;
        color: white;
    }

    /* Flèche Bootstrap - rotation */
    .accordion-button::after {
        transition: transform 0.3s ease-in-out;
    }

    .accordion-button.expanded::after {
        transform: rotate(0deg);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

.accordion-static {
    padding: 1rem 1.25rem;
    background-color: var(--main-color);
    border-radius: 8px;
}

    .accordion-static.bold {
        font-weight: 600;
        background-color: #e7f1ff;
        color: var(--third-color);
    }

.accordion-content {
    background-color: #ffffff;
    border-left: 3px solid #667eea;
    padding: 0.75rem 1.25rem;
}

    .accordion-content ul {
        margin: 0;
        padding-left: 1.5rem;
    }

    .accordion-content li {
        padding: 0.375rem 0;
        line-height: 1.5;
        color: #555;
    }

        .accordion-content li::marker {
            color: #667eea;
        }

/* Responsive */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }

    .home-header {
        padding: 1.5rem;
    }

    .home-title {
        font-size: 1.75rem;
    }

    .accordion-button,
    .accordion-static {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

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

    .role-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-item {
    animation: fadeInUp 0.3s ease forwards;
}

    .accordion-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .accordion-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .accordion-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .accordion-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .accordion-item:nth-child(5) {
        animation-delay: 0.25s;
    }

.button-container {
    display: flex;
}




/* NavMenu.razor.css */
.nav-menu {
    padding: 1rem;
    height: 100%;
}

/* Éléments de navigation */
.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link2 {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .nav-link2:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }

    .nav-link2.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: white !important;
        font-weight: 600;
    }

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Sections avec détails */
.nav-section {
    margin-bottom: 0.5rem;
}

    .nav-section details {
        border-radius: 8px;
    }

        .nav-section details[open] {
            background-color: rgba(0, 0, 0, 0.1);
        }

.nav-section-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .nav-section-header::after {
        content: '▶';
        position: absolute;
        right: 1rem;
        font-size: 0.7rem;
        transition: transform 0.2s ease;
        opacity: 0.7;
    }

details[open] .nav-section-header::after {
    transform: rotate(90deg);
}

.nav-section-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-section-content {
    padding: 0.5rem 0;
}

/* Sous-liens - couleur ivoire */
.sub-link {
    padding-left: 3rem;
    font-size: 0.9rem;
    color: ivory !important;
    font-weight: 400;
}

    .sub-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: white !important;
    }

    .sub-link.active {
        background-color: rgba(255, 255, 255, 0.15);
        color: white !important;
    }

/* Remove default details marker */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* Animation pour l'ouverture/fermeture */
details[open] .nav-section-content {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.total-badge {
    background-color: #17a2b8;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}


.button-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}



.vision-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.vision-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    user-select: none;
}

    .vision-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: #17a2b8;
    }

    .vision-checkbox:hover {
        color: #17a2b8;
    }


.table-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    width: 100%;
}

.table-responsive {
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

    /* Scrollbar personnalisée pour le tableau */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.table-modern {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    min-width: 1100px
}


    .table-modern thead {
        background-color: #2c3e50;
    }

        .table-modern thead th {
            color: white;
            font-weight: 600;
            border: none;
            vertical-align: middle;
            white-space: nowrap;
            background-color: #2c3e50;
        }

    /* Ligne de filtres */
    .table-modern .filter-row th {
        padding: 0.6rem;
        background-color: #2c3e50;
    }

    /* Ligne d'en-têtes */
    .table-modern .header-row th {
        padding: 0.9rem 0.70rem;
        background-color: #2c3e50;
    }

    /* Colonnes triables */
    .table-modern .sortable {
        cursor: pointer;
        user-select: none;
        transition: background-color 0.2s ease;
    }

        .table-modern .sortable:hover {
            background-color: #34495e;
        }

        .table-modern .sortable span {
            display: inline-block;
        }

    .table-modern .sort-icon {
        margin-left: 0.4rem;
        opacity: 0.7;
        font-size: 0.85rem;
    }


.col-workforce {
    width: 15%;
    min-width: 70px;
}


.col-type {
    width: 12%;
    min-width: 100px;
}

.col-status {
    width: 10%;
    min-width: 90px;
}

.col-date {
    width: 10%;
    min-width: 100px;
    text-align: center;
}


.col-boolean {
    width: 7%;
    min-width: 80px;
    text-align: center;
}

.col-actions {
    width: 10%;
    min-width: 110px;
    text-align: center;
}

.col-libelle {
    width: 15%;
    min-width: 130px;
}

.col-number {
    width: 8%;
    min-width: 70px;
    text-align: center;
}

.col-actions-wide {
    width: 12%;
    min-width: 140px;
    text-align: center;
}

.col-comment {
    width: 20%;
    min-width: 180px;
    max-width: 400px;
}


.col-trigramme {
    min-width: 100px;
}

.col-email {
    min-width: 200px;
}

.col-libelle-wide {
    min-width: 250px;
    max-width: 400px;
}

.table-modern .form-control-sm,
.table-modern .form-select-sm {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.95);
    transition: all 0.2s ease;
    width: 100%;
}

    .table-modern .form-control-sm:focus,
    .table-modern .form-select-sm:focus {
        border-color: #17a2b8;
        box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
        outline: none;
        background-color: white;
    }

.table-modern .form-select-sm {
    cursor: pointer;
    padding-right: 2rem;
}


.table-modern tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #e9ecef;
}

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

    .table-modern tbody tr:nth-child(even) {
        background-color: #fafbfc;
    }

        .table-modern tbody tr:nth-child(even):hover {
            background-color: #f0f2f5;
        }

.table-modern tbody td {
    padding: 0.45rem 0.35rem;
    vertical-align: middle;
    color: #495057;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.badge-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}



.loading-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    color: #17a2b8;
    font-weight: 500;
    font-size: 1.1rem;
}

    .loading-alert i {
        font-size: 1.5rem;
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@media (max-width: 1200px) {
    .col-workforce,
    .col-workforce {
        width: 12%;
    }
}

@media (max-width: 992px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .button-container {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .total-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .vision-options {
        flex-direction: column;
        gap: 1rem;
    }

    .table-modern {
        font-size: 0.85rem;
    }

        .table-modern tbody td {
            padding: 0.6rem 0.5rem;
        }

    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}
                
