.folder-view {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #6b7280;

  .crumb {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit;
    transition: color 0.15s, background 0.15s;

    &:hover { color: #c7d2fe; background: #1f2937; }

    &.current {
      color: #e5e7eb;
      font-weight: 500;
      cursor: default;
    }
    &.current:hover { background: transparent; }
  }

  .crumb-sep { color: #4b5563; flex-shrink: 0; }
}

.detail-header {
  // Sticky pour que Modifier/Supprimer restent accessibles même en scrollant
  // une longue liste de sous-dossiers/pages.
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0a0a14;
  padding: 1rem 0;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;

  .header-texts { flex: 1; min-width: 0; }

  h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;

    .title-icon { color: #6c63ff; }
  }

  .description {
    color: #6b7280;
    font-size: 0.95rem;
  }

  .header-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
  }
}

.btn-secondary, .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary { background: #1f2937; color: #d1d5db; &:hover { background: #374151; } }
.btn-danger    { background: #3a1e1e; color: #f87171; &:hover { background: #5a2e2e; } }

.detail-section {
  background: #0d1117;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;

  h2 { color: #d1d5db; font-size: 1rem; font-weight: 600; }
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;

  &:hover { background: #5b52e0; }
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.node-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;

  &:hover { border-color: #6c63ff; transform: translateY(-2px); }

  .node-icon { color: #6c63ff; }
  .node-name { color: white; font-size: 0.9rem; font-weight: 600; }
}

.empty-state {
  color: #6b7280;
  font-size: 0.9rem;
  padding: 1rem 0.5rem;
}
