


/*  ====================== */
/*  ====  KEBAB MENUS ==== */
/*  ====================== */

  .btn-kebab {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text, #e6ebf5);
}

.kebab-menu {
  position: absolute;
  border-radius: 8px;
  min-width: 160px;
  padding: 4px 0;
  z-index: 100;
  animation: fadeIn 0.15s ease;
  background: var(--panel);
  padding: 0.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border);
}

.kebab-menu button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.kebab-menu button  .lucide {
  width: 18px;
  max-height: 22px;
  color: var(--accent);
} 
.kebab-menu button:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent); 
}

.kebab-menu i {
  margin-right: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Séparateur fin et doux */
.kebab-sep {
  margin: 5px 0;
  height: 1px;
  background: color-mix(in srgb, var(--line, rgba(0,0,0,0.2)) 70%, transparent);
  opacity: 0.6;
}




.kebab-item:hover:not(.disabled) {
  background: color-mix(in srgb, var(--accent, #2563eb) 12%, transparent);
  color: var(--accent, #2563eb);
}

.kebab-item.danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--bad, #ef4444) 15%, transparent);
  color: var(--bad, #ef4444);
}

.kebab-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.kebab-item i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.kebab-item span {
  flex: 1;
}




/* 🧩 TITRES DE SECTION (non cliquables) */
.kebab-title {
    padding: 8px 14px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #777);
    opacity: 0.9;
    pointer-events: none;
    display: flex;
    gap: 6px;
}
.kebab-title .lucide {
    width: 20px;
    height: 20px;
}

/* 🧱 OPTIONS CLIQUABLES */
.kebab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}



/* Animation d'apparition */
@keyframes kebabFade {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kebab-menu {
  position: absolute;
  z-index: 100; /* par défaut sous le header */
}

.kebab-menu[data-context="modal"] {
  z-index: 3100; /* passe au-dessus de la modale */
}


.kebab-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  backdrop-filter: blur(8px);
  transition: opacity 0.15s ease;
  max-height: 70vh;
  overflow-y: auto;
}

.kebab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kebab-submenu {
  animation: slideInRight 0.2s ease;
}

.kebab-submenu .kebab-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.kebab-menu.hidden {
  display: none;
}

@keyframes slideInRight {
  from { transform: translateX(10px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
