      /* ── Variables ── */
      #dashboard-container {
        --v:   #6c5ce7;
        --v-lt: #ede9ff;
        --tl:  #00b894;
        --tl-lt: #d6f5ef;
        --am:  #f59e0b;
        --am-lt: #fef3c7;
        --co:  #ff6b6b;
        --ink: #1a1a2e;
        --muted: #3d3d56;
        --border: #000666;
        --bg:  #fff2e6;
        --white: #ffffff;
        --radius: 16px;
        --shadow: 0 4px 24px rgba(108,92,231,.50);
        --shadow-lg: 0 12px 40px rgba(108,92,231,.15);
        font-family: 'Plus Jakarta Sans',Arial, sans-serif;
      }

      /* ── Dashboard card ── */
      #dashboard-container {
        background: var(--white);
        border-radius: 24px;
        width: min(1400px, 99%);
        max-height: 92vh;
        overflow-y: auto;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
      }

      /* ── Header ── */
      .tb-header {
        background: linear-gradient(135deg, #4c3bc9 0%, #0099CC 100%);
        border-radius: 24px 24px 0 0;
        padding: 1.8rem 2rem 1.4rem;
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: 0; z-index: 10;
      }
      .tb-header-left { display: flex; align-items: center; gap: 1rem; }
      .tb-avatar {
        width: 60px; height: 60px; border-radius: 15px;
        background: rgba(255,255,255,1);
        display: grid; place-items: center; font-size: 1.4rem;
        border: 2px solid rgba(255,255,255,.35);
      }
      .tb-header h2 {
        font-family: 'Playfair Display',Arial, serif;
        font-size: 1.8rem; font-weight: 900; color: #fff; margin: 0;
      }
      .tb-header p { color: rgba(255,255,255,1); font-size: 1rem; margin: .2rem 0 0; }

      .tb-close {
        background: rgba(255,255,255,1);
        border: 1.5px solid rgba(255,255,255,.3);
        color: red; font-size: 1.3rem; font-weight: bolder;
        width: 36px; height: 36px; border-radius: 50%;
        cursor: pointer; display: grid; place-items: center;
        transition: background .2s;
      }
      .tb-close:hover { background: red;color:#fff;font-weight:bolder;border:1px solid #fff }

      /* ── KPI Cards ── */
      .tb-kpi-grid {
        display: grid; grid-template-columns: repeat(4, 1fr);
        gap: 1rem; padding: 1.5rem 2rem .5rem;
      }
      .tb-kpi {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.2rem 1.4rem;
        display: flex; align-items: center; gap: 1rem;
       /* box-shadow: var(--shadow);*/
        transition: transform .3s, box-shadow .3s;
      }
      .tb-kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
      .tb-kpi-icon {
        width: 48px; height: 48px; border-radius: 14px;
        display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0;
      }
      .kpi-v  { background: var(--v-lt); }
      .kpi-t  { background: var(--tl-lt); }
      .kpi-a  { background: var(--am-lt); }
      .kpi-c  { background: rgba(255,107,107,.12); }
      .tb-kpi-val {
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem; font-weight: 900; color: var(--ink); line-height: 1;
      }
      .tb-kpi-label { font-size: .72rem; color: var(--muted); font-weight: 600;
        letter-spacing: .05em; text-transform: uppercase; margin-top: .2rem; }

      /* ── Progress bar ── */
      .tb-progress-section { padding: .5rem 2rem 1rem; }
      .tb-progress-label {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: .5rem; font-size: .82rem; font-weight: 600; color: var(--muted);
      }
      .tb-progress-bar {
        height: 8px; background: var(--v-lt); border-radius: 50px; overflow: hidden;
      }
      .tb-progress-fill {
        height: 100%; border-radius: 50px;
        background: linear-gradient(90deg, #6c5ce7, #00b894);
        transition: width .6s ease;
      }

      /* ── Séparateur section ── */
      .tb-section-title {
        padding: 1.2rem 2rem .6rem;
        font-family: 'Playfair Display', serif;
        font-size: 1.1rem; font-weight: 700; color: var(--ink);
        display: flex; align-items: center; gap: .6rem;
      }
      .tb-section-title::after {
        content: ''; flex: 1; height: 1px; background: var(--border);
      }

      /* ── Table ── */
      .tb-table-wrap {
        padding: 0 2rem; overflow-x: hidden;
      }
      .table_tb {
        width: 100%; border-collapse: collapse; table-layout: fixed;
        font-size: .83rem;border:1px solid #aaa;
      }
      /* Largeurs des colonnes : date fixe, textarea auto, statut et suppr fixe */
      .table_tb col.c-date   { width: 135px; }
      .table_tb col.c-text   { width: auto; }
      .table_tb col.c-statut { width: 130px; }
      .table_tb col.c-del    { width: 44px; }
      .table_tb thead tr {
        background: linear-gradient(135deg, #6c5ce7 0%, #4c3bc9 100%) !important;
      }
      .table_tb thead th {
        color: white; font-weight:bolder; font-size: 0.9rem;
        letter-spacing: .06em; text-transform: uppercase;
        padding: .9rem .8rem; text-align: left;margin-left:2px;border:1px solid white !important;
        white-space: nowrap; overflow: hidden;background: linear-gradient(135deg, #6c5ce7 0%, #4c3bc9 100%) !important;
      }
      .table_tb thead th:first-child { border-radius: 12px 0 0 0; }
      .table_tb thead th:last-child  { border-radius: 0 12px 0 0; }

      .table_tb tbody th, td {
        border-bottom: 1px solid #aaa !important;
        transition: background .2s;
      }
      .table_tb tbody tr:hover { background: var(--v-lt); }
      .table_tb tbody tr:last-child { border-bottom: none; }

      .table_tb td { padding: .6rem .5rem; vertical-align: top; }

      .input_tb {
        width: 100%; padding: .45rem .6rem;
        border: 1.5px solid var(--border); border-radius: 8px;
        font-family: inherit; font-size: .8rem; color: var(--ink);
        background: var(--white); transition: border-color .2s, box-shadow .2s;
        margin-left:1px;
      }
      .input_tb:focus {
        outline: none; border-color: #6c5ce7;
        box-shadow: 0 0 0 3px rgba(108,92,231,.12);
      }

      .textarea_tb {
        width: 100%; min-height: 64px;
        padding: .45rem .6rem;
        border: 1.5px solid var(--border); border-radius: 8px;
        font-family: inherit; font-size: .8rem; color: var(--ink);
        background: var(--white); resize: vertical;
        transition: border-color .2s, box-shadow .2s;
      }
      .textarea_tb:focus {
        outline: none; border-color: #6c5ce7;
        box-shadow: 0 0 0 3px rgba(108,92,231,.12);
      }

      /* Badge statut */
      .tb-status-select {
        width: 100%; padding: .4rem .6rem;
        border: 1.5px solid var(--border); border-radius: 20px;
        font-family: inherit; font-size: .78rem; font-weight: 600;
        background: var(--white); cursor: pointer;
        transition: border-color .2s;
      }
      .tb-status-select:focus { outline: none; border-color: #6c5ce7; }
      .tb-status-select.s-fait    { background: var(--tl-lt); color: #059669; border-color: #00b894; }
      .tb-status-select.s-encours { background: var(--am-lt); color: #b45309; border-color: #f59e0b; }
      .tb-status-select.s-non     { background: rgba(255,107,107,.1); color: #c0392b; border-color: #ff6b6b; }

.delete-btn_tb {
  background: rgba(255,255,255,1); 
  border: 1.5px solid rgba(255,107,107,.3);
  color: red; 
  border-radius: 50%; 
  width: 28px; height: 28px;
  cursor: pointer; font-size: 1.5rem; font-weight: 700;
  display: grid; place-items: center; transition: background .2s, transform .2s;
  margin: 0 auto; /* ← centre le bouton dans la cellule */
  padding: 0;     /* ← supprime tout padding parasite */
  box-sizing: border-box;
}
.delete-btn_tb:hover { background: #ff6b6b; color: #fff; transform: scale(1.15); }

      /* ── Footer actions ── */
      .tb-actions {
        display: flex; gap: 1rem; flex-wrap: wrap;
        padding: 1.4rem 2rem 2rem; align-items: center;
      }
      .button_tb {
        display: inline-flex; align-items: center; gap: .45rem;
        padding: .65rem 1.4rem;
        font-family: inherit; font-size: .82rem; font-weight: 700;
        border-radius: 50px; border: none; cursor: pointer;
        transition: transform .25s, box-shadow .25s;
      }
      .btn-add {
        background: linear-gradient(135deg, #6c5ce7, #4c3bc9);
        color: #fff; box-shadow: 0 4px 16px rgba(108,92,231,.3);
      }
      .btn-add:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,.4); }

      .btn-save {
        background: linear-gradient(135deg, #00b894, #0d9488);
        color: #fff; box-shadow: 0 4px 16px rgba(0,184,148,.3);
      }
      .btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,184,148,.4); }

      .btn-export {
        background: var(--white); color: #6c5ce7;
        border: 1.5px solid #6c5ce7;
        box-shadow: 0 2px 8px rgba(108,92,231,.1);
      }
      .btn-export:hover { background: var(--v-lt); transform: translateY(-2px); }

      .logout-btn_tb {
        margin-left: auto;
        display: inline-flex; align-items: center; gap: .45rem;
        padding: .65rem 1.4rem;
        font-family: inherit; font-size: .82rem; font-weight: 700;
        background: rgba(255,107,107,.1); color: #ff6b6b;
        border: 1.5px solid rgba(255,107,107,.3);
        border-radius: 50px; cursor: pointer;
        transition: background .25s, transform .25s;
      }
      .logout-btn_tb:hover { background: #ff6b6b; color: #fff; transform: translateY(-2px); }

      /* ── Toast notification ── */
      .tb-toast {
        position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
        background: #1a1a2e; color: #fff;
        padding: .8rem 1.4rem; border-radius: 50px;
        font-size: .85rem; font-weight: 600;
        display: flex; align-items: center; gap: .5rem;
        box-shadow: 0 8px 32px rgba(0,0,0,.25);
        animation: toastIn .3s ease, toastOut .3s ease 2.5s forwards;
      }
      @keyframes toastIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
      @keyframes toastOut { from { opacity:1; } to { opacity:0; } }

      /* Scrollbar */
      #dashboard-container::-webkit-scrollbar { width: 6px; }
      #dashboard-container::-webkit-scrollbar-track { background: transparent; }
      #dashboard-container::-webkit-scrollbar-thumb { background: #e4e0d8; border-radius: 6px; }

      @media (max-width: 768px) {
        .tb-kpi-grid { grid-template-columns: repeat(2, 1fr); }
        .tb-actions  { flex-direction: column; align-items: stretch; }
        .logout-btn_tb { margin-left: 0; }
      }