/* ============================================================================
   VARIABLES CSS GLOBALES - Centralisées depuis tous les fichiers
   ============================================================================ */
:root {
  /* Couleurs principales Zkriva */
  --zk-yellow: #f2d123;
  --zk-yellow-dark: #ddb910;
  --zk-yellow-darker: #b38f00;
  --zk-yellow-light: rgba(242, 209, 35, 0.18);
  --zk-yellow-soft: rgba(242, 209, 35, 0.15);

  /* Couleurs de fond */
  --zk-dark: #0e0f10;
  --zk-bg: #f6f8fc;
  --zk-bg-light: #f7f9fc;

  /* Couleurs de texte */
  --zk-muted: #6b7280;
  --zk-text: #222;
  --zk-text-dark: #111;

  /* Bordures */
  --zk-border: #e5e7eb;
  --zk-border-light: #e8e8ef;
  --zk-border-lighter: #eee;
  --zk-border-dark: rgba(0,0,0,.08);

  /* Border radius */
  --zk-radius-sm: 8px;
  --zk-radius: 12px;
  --zk-radius-md: 16px;
  --zk-radius-lg: 18px;
  --zk-radius-pill: 999px;

  /* Shadows */
  --zk-shadow-soft: 0 4px 12px rgba(0,0,0,.06);
  --zk-shadow-hover: 0 8px 20px rgba(0,0,0,.1);
  --zk-shadow-dropdown: 0 12px 28px rgba(0,0,0,.18);

  /* Transitions */
  --zk-transition: all 0.3s ease;
  --zk-transition-fast: all 0.15s ease;
  --zk-transition-bg: background 0.15s ease;
}

/* ============================================================================
   CLASSES UTILITAIRES - Réutilisables partout
   ============================================================================ */

/* Flex utilities */
.zk-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zk-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Border radius utilities */
.zk-radius { border-radius: var(--zk-radius); }
.zk-radius-md { border-radius: var(--zk-radius-md); }
.zk-radius-lg { border-radius: var(--zk-radius-lg); }
.zk-radius-pill { border-radius: var(--zk-radius-pill); }

/* Shadow utilities */
.zk-shadow { box-shadow: var(--zk-shadow-soft); }
.zk-shadow-hover { box-shadow: var(--zk-shadow-hover); }

/* Text utilities */
.zk-text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zk-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Transition utilities */
.zk-transition { transition: var(--zk-transition); }
.zk-transition-fast { transition: var(--zk-transition-fast); }

/* ============================================================================
   STYLES DE BASE
   ============================================================================ */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--zk-bg);
}
/* ============================================================================
   BOUTONS COMMUNS
   ============================================================================ */
.zk-y-btn, .zk-btn-yellow {
  background-color: var(--zk-yellow);
  color: #fff;
  border: none;
  transition: var(--zk-transition);
}

.zk-y-btn:hover, .zk-btn-yellow:hover {
  background-color: #e6c21f;
  color: #222 !important;
  transform: scale(1.05);
}

/* Bouton avec effet hover standard */
.zk-btn-hover {
  transition: transform 0.2s, box-shadow 0.3s;
}

.zk-btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--zk-shadow-hover);
}

/* Bouton icône rond */
.zk-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--zk-transition-fast);
}

/* ============================================================================
   CARTES/CARDS COMMUNES
   ============================================================================ */
.zk-card {
  background: #fff;
  border: 1px solid var(--zk-border-lighter);
  border-radius: var(--zk-radius-md);
  box-shadow: var(--zk-shadow-soft);
  transition: transform 0.2s, box-shadow 0.3s;
}

.zk-card:hover, .zk-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--zk-shadow-hover);
}

/* ============================================================================
   FORMULAIRES COMMUNS
   ============================================================================ */
.zk-input {
  border: 1px solid var(--zk-border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.zk-input:focus {
  border-color: var(--zk-yellow);
  box-shadow: 0 0 0 0.15rem rgba(242, 209, 35, 0.25);
  outline: 0;
}

.zk-checkbox:checked, .zk-radio:checked {
  background-color: var(--zk-yellow);
  border-color: var(--zk-yellow);
}

/* ============================================================================
   BADGES COMMUNS
   ============================================================================ */
.zk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9px;
  background: #f3f4f6;
  border: 1px solid var(--zk-border);
  font-size: 0.875em;
  font-weight: 500;
}

.zk-badge-yellow {
  background: #fff8cd;
  color: #8a6d3b;
  border: 1px solid #ffe69c;
  border-radius: var(--zk-radius-pill);
  padding: 0.2rem 0.5rem;
  font-weight: 700;
}

/* ============================================================================
   MENUS CONTEXTUELS
   ============================================================================ */
.zk-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid var(--zk-border);
  border-radius: var(--zk-radius);
  box-shadow: var(--zk-shadow-dropdown);
  padding: 6px;
  z-index: 1000;
}

.zk-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.zk-dropdown-item:hover {
  background: #f5f6f7;
}

/* ============================================================================
   SCROLLBARS PERSONNALISÉES
   ============================================================================ */
.zk-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.zk-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 8px;
}

.zk-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================================================
   SÉPARATEURS
   ============================================================================ */
.zk-separator-v {
  width: 1px;
  height: 24px;
  background: var(--zk-border);
  border-radius: 1px;
}

.zk-separator-h {
  border-top: 1px solid var(--zk-border-lighter);
  margin: 1rem 0;
}

/* ============================================================================
   AVATARS
   ============================================================================ */
.zk-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.zk-avatar-sm {
  width: 32px;
  height: 32px;
}

.zk-avatar-lg {
  width: 56px;
  height: 56px;
}

/* ============================================================================
   MODALES/OVERLAYS
   ============================================================================ */
.zk-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.zk-modal-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

/* Header noir standardisé pour toutes les modales */
.modal-header-dark {
  background: #111;
  color: #fff;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  border-radius: calc(var(--bs-modal-border-radius, 0.5rem) - 1px) calc(var(--bs-modal-border-radius, 0.5rem) - 1px) 0 0;
}

.modal-header-dark .modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
}

.modal-header-dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  font-size: 1.25rem;
  padding: 0.75rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-header-dark .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================================================
   ÉTATS INTERACTIFS
   ============================================================================ */
.zk-active {
  background: var(--zk-yellow-soft);
  color: #000;
}

.zk-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============================================================================
   ANIMATIONS COMMUNES
   ============================================================================ */
@keyframes zk-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zk-fade-in {
  animation: zk-fadeIn 0.3s ease;
}

.zk-hover-lift:hover {
  transform: translateY(-2px);
}


/* Topbar */
.topbar {
  height: 56px;
  width: 100%;
  background: #fff;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding-left: 20px;
}

 /*---------------------------------------------------------
 SWITCH environnment ecrivain ou correcteur Alpha et Betat
 -----------------------------------------------------------*/
/* ===== Segmented Switch — compact (sidebar) ===== */
.seg-switch {
  --seg-h: 42px;
  --seg-pad: 3px;
  --seg-br: 14px;
  --seg-bg: #f5f7fb;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: var(--seg-h);
  width: 100%;
  padding: var(--seg-pad);
  border-radius: 7px;
  background: var(--seg-bg);
  /* border: 1px solid #e7ecf5; */
  /*box-shadow: inset 0 1px 0 rgba(255,255,255,.8);*/
  user-select: none;
}
.seg-switch-sm{
  --seg-h: 34px;              /* plus petit */
  --seg-pad: 2px;
  --seg-br: 12px;
}

.seg-item{
  position: relative;
  z-index: 2;
  height: calc(var(--seg-h) - var(--seg-pad)*2);
  border: 0;
  background: transparent;
  border-radius: calc(var(--seg-br) - var(--seg-pad));
  font-weight: 600;
  font-size: 13px;            /* plus petit */
  color: #374151;             /* slate-700 */
  cursor: pointer;
  outline: none;
  transition: color .2s ease;
}
.seg-item:hover{ color:#111827; }
.seg-item.active{ color:#0f172a; }

.seg-thumb{
  position: absolute;
  z-index: 1;
  top: var(--seg-pad);
  left: var(--seg-pad);
  width: calc(50% - var(--seg-pad));
  height: calc(100% - var(--seg-pad)*2);
  border-radius: calc(var(--seg-br) - var(--seg-pad));
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.2,.6,.2,1), width .28s ease, background-color .2s ease;
}
.seg-switch[data-pos="1"] .seg-thumb{ transform: translateX(100%); }

/* Variante "fond jaune Skriva" (translucide) */
.seg-yellow{
  --seg-bg: rgba(255, 193, 7, .18);      /* #ffc107 avec alpha */
  border-color: rgba(255, 193, 7, .35);
}
/* Variante "fond gris Skriva" (translucide) */
.seg-gray {
  --seg-bg: #eee;
  border: 2px solid #cccccc2e;
}
/* Variante "thumb sombre" + texte actif clair */
.seg-dark .seg-thumb{ background:#111; }
.seg-dark .seg-item.active{ color:#fff; }

/* Focus clavier — anneau jaune */
.seg-item:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, .55); /* #ffc107 */
}

/* Optionnel : seulement pour le switch jaune */
.seg-switch.seg-yellow .seg-item:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, .65);
}

/* (Optionnel) transition douce */
.seg-item{
  transition: box-shadow .15s ease;
}


/*----------Fin Switch-----------------------------------*/

.app-wrapper {
  display: flex;
  height: calc(100vh - 56px);
}

.sidebar {
  background: #fff;
  width: 300px;
  min-width: 60px;
  max-width: 340px;
  transition: width 0.25s cubic-bezier(.4,2,.6,1);
  border-right: 1px solid #eee;
  overflow-x: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.sidebar.collapsed {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
}
.sidebar .sidebar-title,
.sidebar .nav-link span {
  transition: opacity 0.15s;
}
.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .nav-link span {
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: .7em;
  font-size: 1em;
  padding: 0.5em 1em;
}
.sidebar .nav-link i {
  font-size: 1.25em;
}

/* Toggle Sidebar Button */
#toggleSidebar {
  background: none;
  border: none;
  padding: 10px 6px 10px 6px;
  font-size: 1.5em;
  cursor: pointer;
  color: #888;
  outline: none;
  margin: 2px 0 10px 4px;
  align-self: flex-start;
}

/* Main content area */
.main-content, #main-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  height: 100%;
  background: #f7f9fc;
  box-sizing: border-box;
  padding: 32px;
  width: 100%;
  background: #fff;
}

/* Responsive sidebar (collapse auto on small screens) */
@media (max-width: 700px) {
  .sidebar {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    position: absolute;
    z-index: 1000;
    height: 100vh;
    left: 0;
    top: 56px;
    border-right: 1px solid #eee;
  }
  .app-wrapper {
    flex-direction: row;
  }
  .main-content, #main-content {
    padding: 12px;
  }
}
@media (max-width: 480px) {
  .sidebar {
    display: none;
  }
}


.zksidebar {
  position: fixed;
  top: 0; right: -360px;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px 2px #2a2a2a10;
  z-index: 1202;
  display: flex;
  flex-direction: column;
  transition: right .31s cubic-bezier(.68,-0.2,.27,1.2);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  border-radius: 0;
}
.zksidebar {
  position: fixed;
  top: 0;
  right: -340px;   /* ou -100% ou -350px selon la largeur de ton sidebar */
  width: 340px;    /* adapte à ta largeur réelle */
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 24px #0002;
  transition: right 0.2s;
  z-index: 9999;
  /* display: block; ← gardes-le toujours dans le DOM */
}
.zksidebar.open {
  right: 0;
}

.zk-badge-box:hover { box-shadow: 0 2px 10px #ffecae1a; transform: translateY(-2px) scale(1.07);}
.zk-tooltip-bubble {
  display: none;
  position: fixed;
  z-index: 3000px;
  padding: 8px 16px;
  background: #28251e;
  color: #fffbe6;
  font-size: 1.02em;
  border-radius: 9px;
  box-shadow: 0 6px 28px #473a1333;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s, transform .15s;
  max-width: 220px;
  line-height: 1.3;
  white-space: pre-line;
}
.zk-tooltip-bubble.active {
  display: block;
  opacity: 1;
  transform: translateY(-7px) scale(1.05);
}
.zk-sep {
  border-top: 1.1px solid #ececec;
  margin: 7px 0 11px 0;
}
.zk-menu-section {
  font-size: .93em;
  color: #9ea7ba;
  font-weight: 700;
  padding: 7px 0 1px 14px;
  letter-spacing: .01em;
}
.zk-menu { margin-bottom: 0; }
.zk-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #232d3c;
  text-decoration: none;
  font-size: 1.06em;
  font-weight: 500;
  border-radius: 4px;
  padding: 8px 11px 8px 18px;
  margin-bottom: 2px;
  transition: background .16s, color .16s;
  position: relative;
}
.zk-link:active,
.zk-link:focus,
.zk-link:hover {
  background: #f2d12322 !important;
  color: #a68800 !important;
  border-radius: 4px;
}
.zk-link.active, .zk-link[aria-current="page"], .zk-link.active:focus {
  background: #eae5b8;
  color: #b2a102 !important;
  font-weight: 600;
  border-radius: 4px;
}
.zk-logout-footer {
  border-radius: 0 0 0 0;
  box-shadow: 0 -2px 16px #3a2c130c;
}
@media (max-width:600px) {
  .zksidebar { width: 99vw; right: -99vw; }
}
.zksidebar-overlay {
  position: fixed;
  inset: 0;
  background: #24242485;
  z-index: 1310;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.52,.06,.22,1);
  /* Facile à customiser ! */
}
.zksidebar.open + .zksidebar-overlay {
  opacity: 1;
  pointer-events: auto;
  /* "display: block" non requis si tu gères tout avec opacity + pointer-events */
}


/* --- TREEVIEW --- */
.treeview,
.treeview ul {
  list-style: none;
  margin: 0;
  padding-left: 16px;
}
.treeview ul {
  position: relative;
}

/* --- Animation douce d'ouverture/fermeture (ease) --- */
.treeview ul {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.48s ease,
    opacity 0.28s ease;
}
.treeview li.expanded > ul {
    max-height: none;
    opacity: 1;
    transition: opacity 0.2s;
    overflow: visible;
}


/* Lignes/branches */
.treeview ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  bottom: 0;
  width: 1px;
  background: #e0e2e775;
  z-index: 0;
}
.treeview li:last-child > ul::before {
  height: calc(100% - 20px);
}
.treeview li {
  margin: 0;
  padding: 0;
  position: relative;
  user-select: none;
}

/* Element tree (ligne) */
.tree-item {
  display: flex;
  align-items: center;
  min-height: 22px;
  font-size: 1em;
  gap: 4px;
  border-radius: 6px;
  padding: 0;
  position: relative;
  z-index: 1;
  transition: background 0.13s;
}

/* Highlight actif ou hover */
.tree-item.active,
.tree-item:hover {
  background: #f2d12330 !important;
  color: #222 !important;
}
.tree-item.active .tree-label,
.tree-item:hover .tree-label {
  color: #222 !important;
}

/* --- Chevron animé par rotation springy (corrigé, pas d'effet cascade) --- */
.tree-toggle i {
  transition: transform 0.33s cubic-bezier(.52,1.8,.49,.97), color 0.2s;
  display: inline-block;
}
.treeview li.expanded > .tree-item > .tree-toggle > i {
  transform: rotate(90deg);
}
.tree-toggle:hover {
  color: #f2d123;
}
.tree-toggle.empty {
  width: 18px;
  visibility: hidden;
  display: inline-block;
}

/* Toggle (chevron) */
.tree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 2px;
  user-select: none;
  cursor: pointer;
  color: #888;
  font-size: 1em;
  transition: color 0.13s;
  flex-shrink: 0;
}

/* Label - jamais coupé, va à la ligne si trop long */
.tree-label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 2px 0 2px 0;
  border-radius: 5px;
  font-size: 1em;
  background: none;
  cursor: pointer;
  gap: 4px;
  min-width: 0;
  max-width: 200px;
  white-space: nowrap;
  overflow: visible; /* Changé pour permettre l'affichage du badge */
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative; /* Ajouté pour le positionnement du badge et séparateur */
}

.tree-label i {
  font-size: 1.1em;
  margin-right: 6px;
  color: #888;
  flex-shrink: 0;
}

/* Menu bouton trois points */
.tree-menu-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 1.18em;
  padding: 0 8px 0 4px;
  background: none;
  color: #888;
  border-radius: 8px;
  opacity: 0;
  cursor: pointer;
  transition: color 0.13s, opacity 0.13s;
}
.tree-item.active .tree-menu-btn,
.tree-item:hover .tree-menu-btn {
  opacity: 1;
}
.tree-menu-btn i {
  font-size: 1em;
}

/* DRAG & DROP effets */
.treeview li.dragging > .tree-item {
  opacity: 0.5;
}
.treeview li.drag-over-inside > .tree-item {
  background: #f2d12340;
}
.treeview li.drag-over-above > .tree-item::before,
.treeview li.drag-over-below > .tree-item::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  background: #f2d123;
}
.treeview li.drag-over-above > .tree-item::before { top: 0; }
.treeview li.drag-over-below > .tree-item::after { bottom: 0; }
.treeview li.drop-animate > .tree-item {
  animation: none !important;
}

/* --- CONTEXT MENU --- */
.tree-context-menu {
  position: fixed;
  min-width: 170px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 6px 0;
  z-index: 10000;
  display: none;
}
.tree-context-menu .menu-item {
  padding: 8px 18px;
  cursor: pointer;
  font-size: 1em;
  color: #222;
}
.tree-context-menu .menu-item:hover {
  background: #f2d12322;
}

.submenu {
  position: fixed;
  min-width: 170px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 6px 0;
  z-index: 10001;
  display: none;
}
.submenu .menu-item {
  padding: 8px 18px;
  cursor: pointer;
  font-size: 1em;
  color: #222;
}
.submenu .menu-item:hover {
  background: #f2d12322;
}

.tree-title-input {
  padding: 2px 6px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-left: 2px;
  display: inline-block;
}

@keyframes icon-flash {
  0% { filter: drop-shadow(0 0 4px #f2d123) brightness(1.2); }
  100% { filter: none; }
}
.icon-anim-flash {
  animation: icon-flash 0.7s;
}

.explorer-card { cursor: pointer; transition: box-shadow 0.2s; }
.explorer-card:hover { box-shadow: 0 0 0.5rem #f2d12380; }
.grid-container .card { height: 100%; }




  /*============================SID BARE ===================================================*/



/* ===== SIDEBAR PRINCIPAL AVEC SLIDE TRANSITION ===== */
#sidebar {
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
  will-change: transform;

}

#sidebar.collapsed {
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
}

/* ===== MINI SIDEBAR ===== */

/* Affiche la mini-sidebar quand le principal est collapsed */
#sidebar.collapsed ~ #sidebar-mini {
  display: flex !important;
  transform: translateX(0);
}

#sidebar:not(.collapsed) ~ #sidebar-mini {
  display: none !important;
}

/* ===== ICONES SIDEBAR ===== */
.sidebar .icon-link {
  color: #232733;
  font-size: 1.2rem;
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  border: none;
  transition: background 0.13s, color 0.13s;
}
.sidebar .icon-link:hover,
.sidebar .icon-link.active {
  background: #f2d12325;
  color: #e7b300;
}

.sidebar-top-icons,
.sidebar-bottom-icons {
  background: #fff;
}

.border-bottom {
  border-bottom: 1px solid #ececec !important;
}

.border-top {
  border-top: 1px solid #ececec !important;
}

.flex-grow-1 {
  flex: 1 1 0;
}

/* ===== MINI SIDEBAR ICONES ===== */

#sidebar-mini a:hover,
#sidebar-mini i:hover {
  color: #e7b300;
}

.sidebar-separator {
  width: 34px;
  height: 2px;
  background: #ececec;
  margin: 10px 0 6px 0;
  border-radius: 2px;
}
#sidebar-mini a {
  text-decoration: none;
}

/* ===== Responsive mobile: sidebar en bas ou replié ===== */
@media (max-width: 768px) {
  #sidebar {
    width: 100vw;
    height: 54px;
    flex-direction: row;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    border-right: none;
    border-top: 1px solid #ececec;
    min-width: unset;
  }

  .sidebar-top-icons,
  .sidebar-bottom-icons {
    flex-direction: row !important;
    justify-content: center;
    width: 100%;
  }

  .flex-grow-1 {
    display: none;
  }

  #sidebar-mini {
    display: none !important;
  }
}
#sidebar-mini {
  width: 60px;
  background: #fff;
  color: #222;
  height: calc(100vh - 56px);
  position: fixed;
  left: 0;
  top: 56px;
  z-index: 1000;
  /* box-shadow: 2px 0 8px #0001; */
  border-right: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

#sidebar-mini a,
#sidebar-mini i {
  color: #232733;
  font-size: 1.1rem;
  margin: 3px;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}

#sidebar-mini a:hover {
  background: #f2d12338;
  color: #e7b300;
}

/* Le séparateur */
.sidebar-separator {
  width: 32px;
  height: 2px;
  background: #ececec;
  border-radius: 2px;
}

.logout-icon {
  margin-bottom: 18px;
}
#sidebar {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px); /* 60px = hauteur de ta topbar */
  min-height: 0;
}

.flex-grow-1 {
  flex: 1 1 0;
  min-height: 100px;
  overflow: auto;
}

.sidebar-bottom-icons {
  margin-top: auto;

}

/*===================TOAST ALERT=================*/

/*.toast-success .toast-header { background: #e8fbe9 !important; }
.toast-danger  .toast-header { background: #ffe9e9 !important; }
.toast-warning .toast-header { background: #fff8e1 !important; }
.toast-info    .toast-header { background: #e9f0fe !important; }
.toast .toast-header { border-radius: 12px 12px 0 0; }
.toast .toast-body   { border-radius: 0 0 12px 12px; }
*/
/*===================treeview recherche=================*/

.tree-label mark.highlight {
  background: #f2d123;
  color: #222;
  padding: 0 2px;
  border-radius: 4px;
}

#treeview li[style*="display: none"] {
    display: none !important;
}

#treeSearchInput {
  width: 16.5rem;
  margin: 6px !important;
}

.tree-search-wrapper {
  position: relative;
}
.tree-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 2;
  opacity: 0.8;
  transition: color 0.12s;
}
.tree-search-clear:hover {
  color: #333;
  opacity: 1;
}
.clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
}

.clear-btn:hover {
  color: #000;
}
#treeSearchInput::placeholder {
  font-style: italic;
  color: #aaa; /* Optionnel : gris léger pour le placeholder */
  font-size: 0.9rem;
}

/* Footer button-style links */
    .footer-btn {
      display: inline-block;
      padding: .5rem 1rem;
      margin-right: .5rem;
      border: none;
      background: transparent;
      border-radius: 1rem;
      transition: background-color .3s;
      color: inherit;
      text-decoration: none;
    }
    .footer-btn:hover {
      background-color: #fffbcc;
      text-decoration: none;
    }

/*=================Live ecriture*=============================*/
    .live-overlay {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 2000;
  width: 340px;
  max-height: 72vh;
  background: #181d21;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px #0003;
  padding: 0 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  overflow: hidden;
}
.live-header {
  background: #f2d123;
  color: #333;
  font-weight: bold;
  padding: 8px 18px 8px 12px;
  display: flex;
  align-items: center;
}
.live-overlay video {
  max-width: 100%; max-height: 140px; background: #000;
}
.live-overlay ul {
  margin: 0;
  background: transparent;
}
.d-none { display: none !important; }

.live-overlay.fullscreen {
  width: 96vw !important;
  height: 96vh !important;
  max-height: none;
  left: 2vw; right: 2vw; top: 2vh; bottom: 2vh;
  z-index: 9999;
}
.live-overlay.fullscreen video {
  max-height: 80vh !important;
}
.live-overlay {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 2000;
  width: 340px;
  max-height: 72vh;
  background: #181d21;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px #0003;
  padding: 0 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.live-header {
  background: #f2d123;
  color: #333;
  font-weight: bold;
  padding: 8px 18px 8px 12px;
  display: flex;
  align-items: center;
}
.live-overlay video {
  max-width: 100%;
  max-height: 160px;
  background: #000;
}
.live-overlay ul {
  margin: 0;
  background: transparent;
}
.live-overlay-bubble {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: #f2d123;
  color: #222;
  border-radius: 14px;
  box-shadow: 0 2px 16px #0002;
  padding: 8px 18px;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
.live-overlay.d-none,
.live-overlay-bubble.d-none { display: none !important; }

/*FLAG LANG*/
.footer-lang-section {
  width: 100%;
  background: none; /* ou ta couleur de fond */
  padding: 0 0 18px 0; /* padding bas pour aérer */
}

.footer-lang-separator {
  border-top: 2px solid #ececec;
  width: 100%;
  margin: 28px 0 16px 0; /* espace haut/bas, adapte si besoin */
}

/* Lang choices déjà fourni précédemment, mais tu peux regrouper : */
.lang-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 0;
  align-items: center;
  justify-content: center;   /* <-- CENTRAGE horizontal */
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #222;
  border: 1.5px solid #e2e2e2;
  border-radius: 7px;
  font-size: 1em;
  font-weight: 500;
  padding: 4px 16px 4px 9px;
  box-shadow: 0 1.5px 7px #0001;
  cursor: pointer;
  transition: background 0.14s, border 0.15s;
  outline: none;
}
.lang-btn img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #eee;
  margin-right: 2px;
  box-shadow: 0 1px 4px #0001;
  background: #fff;
  object-fit: cover;
}
.lang-btn.active, .lang-btn:focus {
  background: #f2d12322;
  border-color: #f2d123;
  color: #212529;
  font-weight: bold;
}
.lang-btn:hover {
  background: #f2d12333;
  border-color: #f2d123;
}

.footer-lang-section .lang-btn.active{
  outline: 2px solid #f2d123;
  background: rgba(242,209,35,.08);
  border-radius: 10px;
}
.footer-lang-section .lang-btn img{ width:16px; height:16px; margin-right:.5rem; }

@media (max-width: 600px) {
  .lang-choices { gap: 7px 5px; }
  .lang-btn { font-size: 0.96em; padding: 4px 8px 4px 6px; }
  .lang-btn img { width: 19px; height: 19px; }
}

/*=============EXPLORE GRID LIST */


/* ==== LIST ==== */
/* ==== WRAPPER ==== */
.zkriva-list-wrapper {
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px #0001;
  margin-bottom: 1.2rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ==== HEADER ==== */
.zkriva-list-header {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1.2fr 50px;
  align-items: center;
  padding: 0 18px;
  min-height: 54px;
  color: #666;
  font-weight: bold;
  background: #d6d6d3;
  font-size: 1.16em;
  border-radius: 18px 18px 0 0;
  letter-spacing: 0.01em;
}

/* ==== LISTE ==== */
.zkriva-list-explorer {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #eee;
}
/* ==== LIGNE ==== */
.zkriva-list-row {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr 1.2fr 50px;
  align-items: center;
  padding: 0 18px;
  min-height: 54px;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #f2f2ec;
  font-size: 1.09em;
  background: #fff;
  transition: background .14s;
  cursor: pointer;
}

.zkriva-list-row:hover {
  background: #fffae9;
  border-radius: 15px;
}
/* ==== TITRE ==== */
.zkriva-list-title {
  font-weight: 500;
  color: #222;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 110px;
}

/* ==== BADGE ETAT ==== */
.zkriva-badge-etat-modern {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 4px 14px 4px 11px;
  font-weight: 500;
  font-size: 1.07em;
  letter-spacing: 0.01em;
  transition: background .15s, color .14s;
  min-width: 130px;
  max-width: 130px;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  background: #f6f7f7;
  justify-content: flex-start;
  box-sizing: border-box;
}



.zkriva-badge-etat-modern:focus,
.zkriva-badge-etat-modern:hover {
  box-shadow: 0 0 0 2px #e2d76b6c;
  background: #fffde2;
}

/* ==== DOT ETAT ==== */
.zkriva-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  max-width: 12px;
  max-height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  background: #bbb;
  box-shadow: 0 0 0 2px #fff;
  flex-shrink: 0; /* IMPORTANT: ne rétrécit jamais */
}

/* ==== MENU TROIS POINTS ==== */
.zkriva-list-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  padding-left: 6px;
}

.zkriva-dots-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .14s;
  padding: 5px 9px;
}

.zkriva-dots-btn:hover {
  background: #fffbe4;
}

/* ==== MENU CONTEXTUEL ==== */
.zkriva-dropdown-menu {
  position: absolute;
  min-width: 160px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 32px #18181813, 0 2px 7px #f2d12314;
  border: 1.1px solid #f2e4a573;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 3000;
  gap: 1px;
  opacity: 1;
  animation: fade-in .17s;
}
.zkriva-dropdown-menu .zkriva-dropdown-option {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 17px 8px 13px;
  font-size: 1.07em;
  color: #262626;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.7em;
  cursor: pointer;
  transition: background .10s, color .12s;
}
.zkriva-dropdown-menu .zkriva-dropdown-option:hover {
  background: #fffbe4;
  color: #b29b08;
}
.dropdown-divider {
  border-top: 1px solid #eee;
  margin: 7px 0 7px 0;
}

/* ==== PROGRESS ==== */
.zkriva-progress-table-label {
  font-size: 0.97em;
  color: #272a2e;
  font-weight: 500;
}
.zkriva-progress-bar-bg {
  width: 100%;
  height: 9px;
  background: #f2f3f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0001;
  position: relative;
}
.zkriva-progress-bar-inner {
  background: #f2d123;
  height: 100%;
  border-radius: 12px 0 0 12px;
  transition: width .33s cubic-bezier(.5,.15,.38,1.2);
}

.explorer-header .badge {
  font-size: 1em;
  padding: 0.38em 0.85em;
  border-radius: 9px;
  background: #fffbe4;
  border: 1px solid #f1e2a9;
  font-weight: 500;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1100px) {
  .zkriva-list-wrapper { max-width: 100%; }
}
@media (max-width: 800px) {
  .zkriva-list-header,
  .zkriva-list-row {
    grid-template-columns: 2.4fr 1.3fr 1.3fr 1.3fr 36px;
    font-size: 0.99em;
    padding: 0 5px;
  }
}
@media (max-width: 600px) {
  .zkriva-list-header,
  .zkriva-list-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 36px;
    font-size: 0.95em;
    padding: 0 3px;
  }
}

/* ==== ANIMATION ==== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px);}
  to { opacity: 1; transform: translateY(0);}
}

.td-date {
  font-style: italic;
  color: #a1a1a1 !important; /* gris clair comme Bootstrap, ajuste si besoin */
  opacity: 0.82; /* comme la colonne "Section" sur la capture */
}

.element-header-icon {
  background: rgba(254, 211, 48, 0.15);
  border-radius: 16px;
  width: 68px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zkriva-highlight {
  background: #f7e052;
  color: #664d00;
  border-radius: 4px;
  padding: 1px 2px;
  font-weight: 600;
}
.zkriva-parent-icon {
  background: #fff8e1;
  border-radius: 9px;
  width: 64px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 82px;
  box-shadow: 0 2px 8px #f2d12300;
  border: 1px solid #f2d12361;
}
.zkriva-parent-icon i {
  font-size: 2.6em !important;
  color: #f2d123 !important;
}
.zkriva-header-title {
  font-size: 2.35rem;
  font-weight: 500;
  color: #23262b;
  line-height: 1.02;
  letter-spacing: -1px;
  margin-bottom: 0.18em;
  white-space: nowrap;
  text-shadow: 0 1px 0 #fffbe9b8;
}
.zkriva-header-meta {
  /*font-size: 1.22rem;*/
  font-weight: 400;
  color: #575c5e;
  margin-top: 0.1em;
}
/*.zkriva-badge-elementcount {
  background: #fff8e1;
  color: #b39a04;
  border-radius: 11px;
  font-weight: 700;
  font-size: 1em;
  padding: 4px 13px 3px 13px;
  border: 1px solid #f8eec1;
  margin-left: 7px;
  display: inline-block;
  vertical-align: middle;
}*/
.zkriva-badge-elementcount {
  background: #fff8e1;
  color: #b39a04;
  border-radius: 9px;
  font-weight: 700;
  font-size: 1em;
  padding: 0px 8px 0px 8px;
  display: inline-block;
}

.zkriva-switch-btn.active{background-color: #f2d123de;
  border-color: #f2d123;}


.zkriva-dropdown-option {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 17px 8px 13px;
  font-size: 1.07em;
  color: #262626;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.7em;
  cursor: pointer;
  transition: background .10s, color .12s;
}

.zkriva-dropdown-option:hover {
  background: #fffbe4;
  color: #b29b08;
}

.zkriva-dropdown-option.zkriva-option-danger {
  color: #b22613;
  font-weight: 600;
}
.zkriva-dropdown-option.zkriva-option-danger:hover {
  background: rgba(255,36,36,0.13); /* rouge pastel transparent */
  color: #b22613;
}
.zkriva-btn-separator {
  display: inline-block;
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, #f2d12344 30%, #e2e2e2 100%);
  border-radius: 6px;
  margin: 0 4px;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .zkriva-btn-separator {
    height: 26px;
    margin: 0 2px;
  }
}
.zkriva-separator {
  border: none;
  border-top: 1.5px solid #ececec;
  margin: 10px 0 20px 0;
  opacity: 1;
}

.z-p{padding: .5rem 1vw;}




@keyframes flip-in-ver-left {
  0% {
    transform: rotateY(80deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0);
    opacity: 1;
  }
}
@media (min-width: 576px) {
  .modal-dialog.modal-custom-narrow {
    max-width: 380px;
    min-width: 300px;
  }
}

.notif-sidebar-header {
  background: #fff;
  border-bottom: 1.5px solid #f3f3f6 !important;
  /*border-radius: 22px 0 0 0;*/
  min-height: 60px;
}
.notif-sidebar-header .bi-arrows-fullscreen,
.notif-sidebar-header .bi-x-lg {
  cursor: pointer;
  transition: color 0.16s;
}
.notif-sidebar-header .bi-arrows-fullscreen:hover,
.notif-sidebar-header .bi-x-lg:hover {
  color: #5a50e7 !important;
}
.notif-sidebar-tabs {
  background: #fff;
  border-bottom: 1.5px solid #f3f3f6 !important;
}
.notif-tab-btn {
  background: none;
  border: none;
  outline: none;
  font-weight: 500;
  color: #111;
  padding: 5px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.notif-tab-btn.active, .notif-tab-btn:hover {
  background: #f5f4fd;
  color: #5a50e7;
}
.notif-badge {
  display: inline-block;
  background: #ece9ff;
  color: #5a50e7;
  font-size: 0.92em;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 6px;
  vertical-align: middle;
}
.notif-settings-btn {
  color: #b2b4be !important;
  transition: color 0.15s;
}
.notif-settings-btn:hover {
  color: #5a50e7 !important;
}
#notifSidebar {
  box-shadow: -4px 0 24px #151d2550 !important;
  /*border-radius: 22px 0 0 22px !important;*/
  border: 0;
}
#notifSidebar .list-group-item {
  transition: background 0.16s;
  border-bottom: 1px solid #f3f3f6;
  background: transparent !important;
}
#notifSidebar .list-group-item:last-child {
  border-bottom: none;
}
#notifSidebar .list-group-item:hover {
  background: #f8fafd !important;
}
/* Conteneur */
#zkToasts{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2147483647;
  pointer-events: none; /* laisse cliquer au travers */
}

/* Toast */
.zk-toast{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto; /* icône | contenu | close */
  align-items: start;
  gap: 12px;
  padding: 14px 18px;
  min-width: 280px;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  pointer-events: auto; /* cliquable */
}

/* Typo un peu plus grande */
.zk-toast-title{
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  margin-bottom: 2px;
}
.zk-toast-message{
  font-size: 14.5px;
  line-height: 1.45;
}

/* Icône */
.zk-toast .zk-toast-icon{
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

/* Close en haut-droite, X Bootstrap */
.zk-toast-closewrap{
  position: absolute;
  top: 8px;
  right: 10px;
}
.zk-toast-close{
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  opacity: .65;
}
.zk-toast-close:hover{ opacity: 1; }
.zk-toast-close .bi{ font-size: 16px; }

/* Pastels (fond, bord, texte + icône) */
.zk-success{
  background: #e8f7ec;
  border-color: #bfe6cc;
  color: #0f5132;
}
.zk-success .zk-toast-icon{ color:#198754; }

.zk-danger{
  background: #fdeaea;
  border-color: #f5c2c7;
  color: #842029;
}
.zk-danger .zk-toast-icon{ color:#dc3545; }

.zk-warning{
  background: #fff4e0;
  border-color: #ffe1b3;
  color: #7a4d00;
}
.zk-warning .zk-toast-icon{ color:#fd7e14; }

.zk-info{
  background: #e9f4ff;
  border-color: #cfe6ff;
  color: #084298;
}
.zk-info .zk-toast-icon{ color:#0d6efd; }

.zk-dark{
  background: #f0f1f2;
  border-color: #d5d7da;
  color: #212529;
}
.zk-dark .zk-toast-icon{ color:#6c757d; }

/* Entrée/sortie (optionnel) */
@keyframes zk-in { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }
@keyframes zk-out{ from{opacity:1} to{opacity:0; transform:translateY(8px)} }
.zk-toast{ animation: zk-in 160ms ease-out; }
.zk-toast-leave{ animation: zk-out 180ms ease-in forwards; }

/* Empty Treeview State */
.empty-treeview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  min-height: 400px;
}

.empty-treeview-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.empty-treeview-text {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.empty-treeview .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.empty-treeview .btn:hover {
  background-color: #f2d123;
  border-color: #f2d123;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 209, 35, 0.3);
}

/* Badge de compteur de notes - positionné sur l'icône */
.tree-label .tv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  background: #f2d123;
  color: #000;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: -4px;
  left: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

/* Animation au hover */
.tree-item:hover .tree-label .tv-badge,
.tree-item.active .tree-label .tv-badge {
  transform: scale(1.1);
  background: #f2d123;
  box-shadow: 0 3px 8px rgba(242, 209, 35, 0.4);
}
