﻿

:root {
    --amundi-blue: #003A70;
    --amundi-cerulean: #009EE0;
    --amundi-sky: #E6F4FB;
    --amundi-gray: #F5F7FA;
    --amundi-text: #666b7b;
    --amundi-muted: #6c7a90;
    --radius: 14px;
    --border-strong: rgba(0,0,0,.12);
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --gris-soft: #e1e6ea;
    --gris-hard: #546878;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--amundi-text);
    background: var(--amundi-gray);
    letter-spacing: .01em;
    /* Footer collé en bas de la fenêtre même quand le contenu est court */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .container {
    flex: 1;
}

.footer {
    padding: .75rem 0;
}


/* Layout global */

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    max-width: 1400px;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    main {
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    main {
        padding: 0 5rem;
    }
}

@media (min-width: 1600px) {
    main {
        padding: 0 5rem;
    }
}


/*Header / Topbar / Branding */

.topbar {
    background: #fff;
    box-shadow: 0 2px 18px rgba(11,33,69,.08);
}

.brand-wordmark {
    font-weight: 700;
    color: var(--amundi-blue);
    letter-spacing: .2px;
}

.brand-badge {
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    background: var(--amundi-cerulean);
    padding: .2rem .45rem;
    border-radius: 6px;
    margin-left: .4rem;
}

.brand-logo {
    height: 80px;
}

.app-nav {
    gap: 0.55rem;
    align-items: center;
}

.app-nav .nav-item {
    display: flex;
    align-items: center;
}

.app-nav .app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.95rem 1.8rem;
    margin: 0 0.15rem;
    border-radius: 4px;
    color: var(--amundi-blue);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.1;
}

.app-nav .app-nav-link:hover,
.app-nav .app-nav-link:focus {
    color: var(--amundi-blue);
    background: #f4f8fb;
}

.app-nav .app-nav-link.active {
    color: var(--amundi-blue);
    background: var(--amundi-sky);
    box-shadow: none;
}

.app-nav .app-nav-link i {
    color: var(--amundi-cerulean);
    font-size: 1.05rem;
}

.app-nav .app-nav-link.dropdown-toggle::after {
    margin-left: 0.15rem;
    color: var(--amundi-muted);
}

.app-nav-menu {
    min-width: 235px;
    margin-top: 0.65rem;
    padding: 0.5rem;
    border: 1px solid rgba(0, 58, 112, .10);
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(11, 33, 69, .12);
}

.app-nav-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 4px;
    color: var(--amundi-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.app-nav-menu-item i {
    color: var(--amundi-cerulean);
}

.app-nav-menu-item:hover,
.app-nav-menu-item:focus {
    color: var(--amundi-blue);
    background: var(--amundi-sky);
}

.fonds-selector-card {
    grid-column: span 7;
}

/* Page Fonds - carte « Personnes habilitées ».
   En >= lg, la colonne est étirée par la row à la hauteur de la colonne voisine
   (« Informations générales »). La carte est sortie du flux pour ne pas imposer sa
   propre hauteur à la row : elle s'aligne donc exactement sur la carte voisine, et
   le tableau défile dès qu'il déborde plutôt que d'allonger la page.
   En < lg (colonnes empilées), on garde le flux normal : la carte prend sa hauteur. */
@media (min-width: 992px) {
    .card-fill-column {
        position: relative;
    }

        /* Hors flux : la carte ne dicte pas la hauteur de la row, elle la subit.
           bottom auto + max-height => hauteur du contenu, plafonnée à la colonne voisine.
           Le -1.5rem retranche le mb-4 du .grid de _UpsertFond.cshtml, qui allonge la colonne
           voisine sans allonger sa carte : sans lui les deux cartes seraient décalées de 1.5rem. */
        .card-fill-column > .card {
            position: absolute;
            top: 0;
            bottom: auto;
            left: calc(var(--bs-gutter-x) * .5); /* reproduit le gutter de la colonne */
            right: calc(var(--bs-gutter-x) * .5);
            max-height: calc(100% - 1.5rem);
            display: flex;
            flex-direction: column;
            margin-bottom: 0;
        }

        .card-fill-column > .card > .card-body {
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

    .table-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

        /* En-têtes visibles pendant le défilement */
        .table-scroll thead th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #fff;
        }
}

/* Liste défilante dans une carte à hauteur bornée (ex. CS actifs de l'accueil) */
.card-table-scroll {
    max-height: 340px;
    overflow-y: auto;
}

    /* En-têtes visibles pendant le défilement */
    .card-table-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
    }

.z-modal-message {
    z-index: 1080;
}

.pdf-modal-dialog {
    max-width: 96vw;
}

.pdf-viewer-frame {
    border: none;
}

.search-member-input {
    max-width: 420px;
}

.search-compact {
    max-width: 360px;
}

.participant-select-col {
    width: 36px;
}

.width-90 {
    width: 90px;
}

.width-130 {
    width: 130px;
}

.width-140 {
    width: 140px;
}

.pre-wrap {
    white-space: pre-wrap;
}

.breadcrumb-chevron {
    --bs-breadcrumb-divider: ">";
}

.clickable-row {
    cursor: pointer;
}

.tenant-current {
    pointer-events: none;
    color: var(--amundi-cerulean);
}


/* Cartes / Tuiles / KPI / Timeline */

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11,33,69,.06), 0 2px 8px rgba(11,33,69,.04);
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

    /* .card-header .chip {
  background: linear-gradient(180deg, var(--amundi-cerulean), var(--amundi-blue));
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
} */

    .card-header .chip {
        background: var(--gris-soft);
        color: var(--gris-hard);
        font-weight: 600;
        border-radius: 6px;
        box-shadow: none;
    }


.member-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

    .member-card .card-title {
        font-weight: 600;
    }

.remove-member {
    visibility: hidden;
}

.member-card:hover .remove-member {
    visibility: visible;
}

.stat-tile {
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    border: 1px solid rgba(13,99,165,.1);
}

.stat-kpi {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amundi-blue);
}

.stat-kpi-small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--amundi-blue);
}

.stat-label {
    color: var(--amundi-muted);
    font-size: 1.rem;
}

.kpi-tile {
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border-strong);
}

.kpi-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--amundi-blue);
}

.timeline {
    position: relative;
    padding-left: 1rem;
    margin-left: .5rem;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 0.4rem;
        top: 0;
        bottom: 0;
        width: 10px;
        background: linear-gradient(to bottom, #28a745 0%, /* Vert */
        #28a745 25%, /* Vert */
        #ffc107 45%, /* Jaune */
        #6c757d 70%, /* Gris */
        #6c757d 100% /* Gris */
        );
    }

.tl-item {
    position: relative;
    padding-left: 1.2rem;
    margin: .75rem 0;
}

/* Cercle bleu */
/* .tl-item::before {
  content: "";
  position: absolute;
  left: -0.05rem;
  top: .3rem;
  width: .75rem; height: .75rem;
  background: var(--amundi-cerulean);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #E6F4FB;
} */


/* Petit losange devant jalon */
.jalon-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid;
    transform: rotate(45deg);
    margin-right: 10px;
    vertical-align: middle;
}

    .jalon-icon.green {
        border-color: #28a745;
        background: #28a745;
    }

    .jalon-icon.yellow {
        border-color: #ffc107;
        background: #ffc107
    }

    .jalon-icon.red {
        border-color: #dc3545;
        background: #dc3545;
    }

/* Case à cocher tâche */
.task-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: white;
    vertical-align: middle;
}

    .task-status.checked {
        background: #007bff;
        border-color: #007bff;
    }

        .task-status.checked::after {
            content: '✓';
            color: white;
            position: absolute;
            top: -4px;
            left: 2px;
            font-weight: bold;
            font-size: 10px;
        }


/* Typo / Badges / Helpers */

h6 {
    color: var(--amundi-blue);
}

.page-title {
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--amundi-blue);
}

.lead-muted {
    color: var(--amundi-muted);
}

.small-muted {
    font-size: .85rem;
    color: var(--amundi-muted);
}

.chip {
    display: inline-block;
    font-weight: 700;
    font-size: .75rem;
    padding: .25rem .5rem;
    background: var(--amundi-sky);
    border-radius: 999px;
    color: var(--amundi-blue);
}

.badge-soft {
    background: rgba(0,158,224,.12);
    color: #0B2145;
    border: 1px solid rgba(0,158,224,.25);
}

.badge-yellow {
    background-color: #ffc107;
}

.form-help {
    color: var(--amundi-muted);
    font-size: .85rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245,247,250,0.7), rgba(245,247,250,1));
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,.08);
    z-index: 5;
}

.breadcrumb a {
    text-decoration: none;
}

.expired-note {
    color: #dc3545;
    font-size: .85rem;
    display: none;
}

.expired .expired-note {
    display: block;
}

.expired .member-enddate {
    border-color: #dc3545;
}

/* Habilitation dont la date de fin est dépassée : ligne atténuée + badge "Expirée" */
tr.expired > td {
    color: var(--amundi-muted);
}

.badge-expired {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
    color: #dc3545;
    background: rgba(220, 53, 69, .10);
    border: 1px solid rgba(220, 53, 69, .30);
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Chip de filtre « Habilitations de : <personne> » */
.badge-person-filter {
    display: inline-flex;
    align-items: center;
    gap: .25rem; /* inline-flex fusionne les blancs entre items : on rétablit l'espacement */
    padding: .25rem .65rem;
    font-size: .82rem;
    color: var(--amundi-blue);
    background: var(--amundi-sky);
    border: 1px solid rgba(0, 158, 224, .25);
    border-radius: 999px;
    white-space: nowrap;
}

.list-group-item {
    font-size: 0.85rem;
}

.list-quick-actions {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

    .list-quick-actions li + li {
        margin-top: 0.25rem;
    }

    .list-quick-actions a {
        font-size: 0.85rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--amundi-text);
    }

        .list-quick-actions a i {
            font-size: 0.9rem;
            color: var(--amundi-cerulean);
        }

        .list-quick-actions a:hover {
            color: var(--amundi-blue);
        }

/* Boutons */

.btn-primary {
    background: var(--amundi-cerulean);
    border-color: var(--amundi-cerulean);
}

    .btn-primary:hover {
        background: var(--amundi-blue);
        color: #fff;
    }

.btn-cta {
    padding: .5rem 1.15rem;
    font-weight: 600;
    border-radius: 12px;
}

    .btn-cta:hover {
        box-shadow: 0 3px 10px rgba(0, 58, 112, .35);
    }

.btn-outline-primary {
    color: var(--amundi-cerulean);
    border-color: var(--amundi-cerulean);
}

    .btn-outline-primary:hover {
        background: var(--amundi-blue);
        color: #fff;
    }


/* Formulaires */

.form-group {
    margin-bottom: 1rem;
}

label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--amundi-blue);
    display: block;
    margin-bottom: .4rem;
}

input[type="date"] {
    width: 80%;
    padding: .6rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: .9rem;
    min-width: 180px;
}

/* Inputs utilitaires */
.input-small {
    width: 80px;
    max-width: 100px;
}

.input-medium {
    width: 150px;
    max-width: 180px;
}

/* Titres de section dans les formulaires */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--amundi-blue);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: .2px;
    border-left: 4px solid var(--amundi-cerulean);
    padding-left: 0.5rem;
}

/* .section-quorum { */
/* background: var(--amundi-gray); */
/* border-radius: 8px; */
/* padding: 1rem; */
/* } */

/* Sélecteur référentiel */
/* #referentialTable .type-select { min-width: 160px; } */


/* Tableaux */

.table-sm th,
.table-sm td {
    padding: .5rem .6rem;
    font-size: .85rem;
}

.table thead th {
    /* background-color: var(--amundi-sky); */
    color: var(--amundi-muted);
    white-space: nowrap;
    font-weight: 600;
}



.table tbody tr:hover {
    background: #f8fbff;
}

.table tbody td.type {
    font-weight: 600;
}

    .table tbody td.type.jalon {
        color: var(--amundi-cerulean);
    }

    .table tbody td.type.mail {
        color: var(--warning);
    }

    .table tbody td.type.alerte {
        color: var(--danger);
    }

    .table tbody td.type.tache {
        color: var(--success);
    }

    .table tbody td.type.tache_optionnelle {
        color: var(--success);
        font-style: italic;
    }

.table tbody tr.type.alerte td {
    color: var(--danger);
}


.type-alerte {
    color: var(--danger);
    background-color: transparent;
}



/* Colonne Fonds (table #CSFonds) : cliquable + soulignée */
#CSFonds tbody tr > td:first-child {
    cursor: pointer;
    color: var(--amundi-cerulean);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

    #CSFonds tbody tr > td:first-child:hover {
        color: var(--amundi-blue);
        text-decoration-thickness: 2px;
    }


/*taches non validables*/
.js-bool-submit-checkbox:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* Accordéon rétroplanning */

/* Accordéon rétroplanning
   Couleurs pilotées par CodeCategorie
   Classes attendues :
   - cat-ref
   - cat-convoc
   - cat-odj
   - cat-doc
   - cat-pv */

/* Couleur métier par catégorie */
.accordion-item.cat-ref {
    --cat-color: #8FC5EA;
}

.accordion-item.cat-convoc {
    --cat-color: #6FAEE3;
}

.accordion-item.cat-odj {
    --cat-color: #3E86E0;
}

.accordion-item.cat-doc {
    --cat-color: #2B58B8;
}

.accordion-item.cat-pv {
    --cat-color: #244A87;
}

/* Base bouton accordéon */
.accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    color: #111;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

    .accordion-button:focus {
        box-shadow: none !important;
    }

    .accordion-button:not(.collapsed) {
        background: transparent !important;
        color: inherit;
    }

/* Taille du contenu tableau */
.accordion-body table th,
.accordion-body table td {
    font-size: .95rem;
}

/* On masque le chevron Bootstrap par défaut */
.accordion-button::after {
    display: none !important;
}

/* Chevron CSS pur à gauche */
.accordion-button::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.75rem;
    border-right: 2px solid var(--amundi-muted);
    border-bottom: 2px solid var(--amundi-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease-in-out;
    display: inline-block;
    flex-shrink: 0;
}

.accordion-button:not(.collapsed)::before {
    transform: rotate(45deg);
}

/* Pill de catégorie */
.accordion-item .accordion-button {
    --item-color: var(--cat-color);
}

.accordion-button span.item-label {
    display: inline-block;
    background: var(--item-color, #0d6efd);
    color: #fff;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 0.55rem;
    line-height: 1.2;
}

.accordion-button:hover span.item-label {
    filter: brightness(1.06);
}

/* Liseré vertical sur les lignes du tableau */
.accordion-body table tr {
    border-left: 4px solid transparent;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    .accordion-body table tr:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

.accordion-item .accordion-body table tr {
    border-left-color: var(--cat-color);
}

/* Colonne date moins large */
.accordion-body table th:nth-child(3),
.accordion-body table td:nth-child(3) {
    width: 120px;
    white-space: nowrap;
}

/* Centrer les colonnes checkbox */
.accordion-body table th:nth-child(4),
.accordion-body table td:nth-child(4),
.accordion-body table th:nth-child(5),
.accordion-body table td:nth-child(5) {
    text-align: center;
    vertical-align: middle;
}

/* Ligne acquittée : visuel légèrement atténué mais lisible */
.retro-row-locked {
    background-color: rgba(0, 0, 0, 0.015);
}

/* Contrôles verrouillés */
.retro-input-locked,
.retro-checkbox-locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

    .retro-input-locked:disabled,
    .retro-checkbox-locked:disabled {
        background-color: #f3f5f7;
        border-color: #d6dbe1;
    }

    .retro-checkbox-locked:disabled {
        accent-color: #adb5bd;
    }

/* css spécifique accueil 'tableau de bord' */
.dashboard-header {
    margin-bottom: 1.5rem;
}

    .dashboard-header .page-title {
        margin-bottom: .25rem;
    }

    .dashboard-header .badge-env {
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 999px;
        padding: 0.15rem 0.55rem;
        background: var(--amundi-sky);
        color: var(--amundi-blue);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

.dashboard-subtitle {
    font-size: 0.85rem;
    color: var(--amundi-muted);
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-heading .page-title,
.page-heading h1,
.page-heading h2,
.page-heading h3 {
    margin-bottom: 0;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .page-heading {
        flex-direction: column;
    }

    .page-actions {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .kpi-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.kpi-tile-small {
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kpi-tile-small-label {
    font-size: 0.75rem;
    color: var(--amundi-muted);
}

.kpi-tile-small-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--amundi-blue);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .kpi-tile-small-value i {
        font-size: 1rem;
    }

.card-title-sm {
    font-size: 1rem;
    font-weight: 600;
    color: var(--amundi-blue);
    margin-bottom: 0;
}

.card-subtitle-sm {
    font-size: 0.8rem;
    color: var(--amundi-muted);
}

/* .table-dashboard thead th { */
/* font-size: 0.8rem; */
/* text-transform: none; */
/* } */
/* .table-dashboard tbody td { */
/* font-size: 0.8rem; */
/* } */
/* .table-dashboard tbody tr { */
/* cursor: pointer; */
/* } */

.tag-state {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.75rem;
    border: 1px solid rgba(0,0,0,.06);
}

    .tag-state i {
        font-size: 0.7rem;
    }

.tag-state-warning {
    background: #fff7e6;
    border-color: #ffe0a3;
    color: #8a6400;
}

.tag-state-success {
    background: #e6f7f0;
    border-color: #b8e2c7;
    color: #0f6848;
}

.tag-state-info {
    background: #e6f4fb;
    border-color: #bcdcf3;
    color: #0b3860;
}

.tag-state-danger {
    background: rgba(220, 53, 69, .10);
    border-color: rgba(220, 53, 69, .28);
    color: #b02a37;
}

/* Classes complémentaires utilisées par CsStatutUiMapper (états des CS) */
.tag-state-light {
    background: #f6f7f9;
    border-color: #e3e6ea;
    color: #5c636a;
}

.tag-state-primary {
    background: #e8eaf9;
    border-color: #c6cced;
    color: #2c3a8c;
}

.tag-state-secondary {
    background: #eef0f2;
    border-color: #d4d9de;
    color: #495057;
}

.tag-state-muted {
    background: #f2f2f2;
    border-color: #e0e0e0;
    color: #8a8f94;
}

.badge-occasionnel-soft {
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: var(--gris-soft);
    color: var(--amundi-muted);
    border: 1px dashed rgba(0,0,0,.12);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge-soft-upper {
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: var(--gris-soft);
    color: var(--gris-hard);
    border: 1px rgba(0,0,0,.12);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge-soft-lower {
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: var(--gris-soft);
    color: var(--gris-hard);
    border: 1px rgba(0,0,0,.12);
    letter-spacing: .06em;
}

.doc-file-icon {
    font-size: 1.3rem;
}

.doc-type-inline {
    min-width: 200px;
}

.param-block-text {
    font-size: 0.8rem;
    color: var(--amundi-muted);
}

.chip-secondary {
    display: inline-block;
    font-weight: 600;
    font-size: .75rem;
    padding: .2rem .5rem;
    background: #f1f3f5;
    border-radius: 999px;
    color: var(--amundi-muted);
}

.section-quorum {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0,0,0,.04);
    margin-bottom: 1rem;
}

    .section-quorum + .section-quorum {
        margin-top: 0.75rem;
    }

    .section-quorum .section-title {
        border-left-width: 3px;
        margin-top: 0;
    }

.card .tabs-menu {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.5rem;
}


    .card .tabs-menu .tab {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        text-decoration: none;
        font-size: 1rem;
        color: #6c757d;
        font-weight: 500;
        position: relative;
    }

        .card .tabs-menu .tab:hover {
            color: #007bff;
        }

        .card .tabs-menu .tab.active {
            color: #007bff;
        }

            .card .tabs-menu .tab.active::after {
                content: "";
                position: absolute;
                bottom: -1px;
                left: 0;
                width: 100%;
                height: 3px;
                background-color: #007bff;
            }

.offcanvas-forty {
    width: 40% !important; /* un peu plus que 1/3 de la page */
    max-width: 500px;
}

.offcanvas-forty {
    width: 100vw !important; /* Mobile en plein écran */
}

@media (min-width: 992px) {
    .offcanvas-forty {
        width: 40% !important; /* Desktop */
        max-width: none;
    }
}

/* voir plus */
/* masquer toutes les lignes après la 4e (seuil aligné avec updateCollapseLinks dans cs-tableau-bord.js) */

/* ── Items de liste (ex: listDoc) ── */
.collapsible-block .collapsible-item:nth-child(n+5) {
    display: none;
}

.collapsible-block.full .collapsible-item {
    display: block;
}

/* ── Lignes de tableau ── */
.collapsible-block table.table-collapsible tbody tr:nth-child(n+5) {
    display: none;
}

.collapsible-block.full table.table-collapsible tbody tr {
    display: table-row;
}


.collapse-link {
    font-size: 0.85rem;
    color: #0a58ca;
    text-decoration: underline;
    cursor: pointer;
    padding: 2px 4px;
}

    .collapse-link:hover {
        color: #084298;
        text-decoration: underline;
    }


/* select avec recherche intégrée avec design Bootstrap*/

/* wrapper principal : toute la largeur comme .form-select */
.choices[data-type="select-one"] {
    width: 100%;
}

/* zone principale : même look que form-select Bootstrap */
.choices__inner {
    min-height: auto;
    padding: 0;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    background-color: var(--bs-body-bg, #fff);
    box-shadow: none;
    font-size: 0.9rem;
}

/* le texte sélectionné à l’intérieur */
.choices__list--single .choices__item {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    color: var(--bs-body-color, #212529);
}

/* Placeholder en gris*/
.choices__placeholder {
    color: #6c757d;
    opacity: 1;
}

.choices__list--single {
    padding: 0;
}

/* bordure et focus comme Bootstrap (outline bleu) */
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* menu déroulant : bordure et ombre type dropdown Bootstrap */
.choices__list--dropdown {
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

    .choices__list--dropdown .choices__item {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }

    /* survol d'une option */
    .choices__list--dropdown .choices__item--selectable.is-highlighted {
        background-color: #0d6efd !important;
        color: #fff;
    }

/* flèche de dropdown */
.choices[data-type="select-one"]::after {
    border: none;
}

.choices[data-type="select-one"] .choices__inner::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    pointer-events: none;
}

/* liste est ouverte : on retourne la flèche */
.choices[data-type="select-one"].is-open .choices__inner::after {
    transform: rotate(180deg);
}

/* gestion des états Bootstrap is-invalid / is-valid */
.is-invalid + .choices .choices__inner {
    border-color: #dc3545;
}

.is-valid + .choices .choices__inner {
    border-color: #198754;
}


#tableParticipant tbody tr {
    cursor: pointer;
}

    #tableParticipant tbody tr:hover > * {
        background-color: #f5f7fa;
    }

/* Acceuil */

#tableCsEnCours tbody tr {
    cursor: pointer;
}

    #tableCsEnCours tbody tr:hover > * {
        background-color: #f5f7fa;
    }

#tableTaches tbody tr {
    cursor: pointer;
}

    #tableTaches tbody tr:hover > * {
        background-color: #f5f7fa;
    }

#tableTaches tbody tr.dashboard-task-next > td {
    background-color: #f1f3f5;
    color: var(--gris-hard);
}

#tableTaches tbody tr.dashboard-task-next:hover > td {
    background-color: #e9ecef;
}

#tableTaches .dashboard-task-date {
    white-space: nowrap;
    font-weight: 600;
}

/* désactiver effet hover de Bootstrap ( tableau de bors CS 'Documents')*/
.list-group-item.no-click,
.list-group-item.no-click:hover {
    background-color: transparent !important;
    cursor: default !important;
}

/* empêcher clique sur la ligne */
.list-group-item.no-click {
    pointer-events: none;
}

    /* réactiver les boutons à l’intérieur */
    .list-group-item.no-click * {
        pointer-events: auto;
    }

/* Timeline planning dashboard */
.planning-timeline-viewport {
    position: relative;
    margin: 0.5rem auto 0 auto;
    padding-right: 0.35rem;
    width: 100%;
    max-width: 420px;
    flex: 0 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    scrollbar-gutter: stable;
}

.planning-timeline-viewport.timeline-complete {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible;
    scrollbar-gutter: auto;
}

.planning-timeline {
    position: relative;
    width: 100%;
}

    /* Ligne verticale : dégradé du moins grisé (haut) au plus grisé (bas) */
    .planning-timeline::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 11px;
        width: 5px;
        height: calc(100% - 11px);
        background: linear-gradient(to bottom, #f0f0f0, #9a9a9a);
        border-radius: 999px;
        z-index: 0;
    }

    .planning-timeline .timeline-item {
        position: relative;
        padding: 0.26rem 0 0.26rem 2rem;
    }

        .planning-timeline .timeline-item .marker {
            position: absolute;
            z-index: 2;
            display: inline-block;
            left: 0;
        }

        /* Tâche = carré */
        .planning-timeline .timeline-item.tache .marker.task-marker {
            width: 10px;
            height: 10px;
            top: 0.58rem;
            left: 7px;
            border-radius: 3px;
            border: 1.5px solid #007bff;
            background: #fff;
            box-sizing: border-box;
        }

        /* Tâche faite cochée */
        .planning-timeline .timeline-item.tache.done .marker.task-marker {
            background: #007bff;
            border-color: #007bff;
        }

            .planning-timeline .timeline-item.tache.done .marker.task-marker::after {
                content: "✓";
                color: #fff;
                position: absolute;
                top: -1px;
                left: 0;
                font-size: 8px;
                font-weight: 700;
                line-height: 1;
            }

        .planning-timeline .timeline-item.tache .marker.mail-marker,
        .planning-timeline .timeline-item.tache .marker.alert-marker {
            top: 0.36rem;
            left: 4px;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            line-height: 1;
        }

        .planning-timeline .timeline-item.tache .marker.mail-marker {
            color: #0d6efd;
        }

        .planning-timeline .timeline-item.tache .marker.alert-marker {
            color: #d98a00;
        }

        /* Jalon = losange*/
        .planning-timeline .timeline-item.jalon .marker {
            width: 8px;
            height: 8px;
            top: 0.64rem;
            left: 8px;
            transform: rotate(45deg);
            border: 1.5px solid;
            background: #fff;
            box-sizing: border-box;
        }

            .planning-timeline .timeline-item.jalon .marker.green {
                border-color: #28a745;
                background: #28a745;
            }

            .planning-timeline .timeline-item.jalon .marker.yellow {
                border-color: #ffc107;
                background: #ffc107;
            }

            .planning-timeline .timeline-item.jalon .marker.red {
                border-color: #dc3545;
                background: #dc3545;
            }

        /* Repère date du CS */
        .planning-timeline .timeline-item.cs-date .marker {
            width: 16px;
            height: 16px;
            top: 0.43rem;
            left: 4px;
            border-radius: 50%;
            border: 3px solid #0d6efd;
            background: #fff;
            box-sizing: border-box;
        }

        .planning-timeline .timeline-item.cs-date .label {
            color: #0d6efd;
            font-weight: 700;
        }

    .planning-timeline .label {
        font-size: 0.92rem;
    }

    .planning-timeline .subtitle {
        font-size: 0.82rem;
        color: #666;
    }

    .planning-timeline .timeline-item.future .label {
        color: #6c757d;
    }

    .planning-timeline .timeline-item.tache.overdue .marker.task-marker {
        border-color: #dc3545;
    }

    .planning-timeline .timeline-item.tache.overdue .subtitle,
    .planning-timeline .timeline-item.jalon.overdue .label > .fw-semibold {
        color: #dc3545;
        font-weight: 600;
    }

    /* Dates passées et tâches acquittées : plus grisées */
    .planning-timeline .timeline-item.done:not(.cs-date),
    .planning-timeline .timeline-item.past:not(.cs-date):not(.overdue) {
        opacity: 0.45;
    }

        .planning-timeline .timeline-item.done:not(.cs-date) .marker,
        .planning-timeline .timeline-item.past:not(.cs-date):not(.overdue) .marker {
            filter: grayscale(70%);
        }

        .planning-timeline .timeline-item.done:not(.cs-date) .label,
        .planning-timeline .timeline-item.past:not(.cs-date):not(.overdue) .label {
            color: #8a8a8a;
        }


#FondsPersonnes td.person-click {
    color: var(--amundi-cerulean) !important;
    font-weight: 600;
    cursor: pointer;
}

    #FondsPersonnes td.person-click:hover {
        color: var(--amundi-blue) !important;
    }

#offcanvasPersonDetails .offcanvas-header {
    justify-content: flex-start;
    gap: 1rem;
}

    #offcanvasPersonDetails .offcanvas-header .btn-close {
        margin-left: auto; /* croix complètement à droite */
    }

.mt-03rem { margin-top: -0.30rem; }
.mt-17rem { margin-top: -1.7rem; }
.mt22rem { margin-top: 2.2rem; }
.left120pc { left: 120%; }
.left50pc { left: 50%; }

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
    visibility: hidden;
    display: inline-block;
    vertical-align: middle;
}

/* Quand HTMX s'active */
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
    visibility: visible;
}

/* Style du spinner (le même que précédemment) */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.alert-fade {
    top: 100%;
    padding: 5px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    animation: fadeOut 0.5s forwards 2s;
}

.alert-err { background-color: #f13311 !important; color: #f2e9e9 !important; }
.alert-ok { background-color: #155724 !important; color: #f2e9e9 !important; }
.alert-warn { background-color: #b45309 !important; color: #f2e9e9 !important; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/
