/* ── Cloche ──────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
}

/* État par défaut */
.notif-bell__btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: hsl(var(--foreground));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding: 0;
  font-family: inherit;
}

/* État hover */
.notif-bell__btn:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--muted));
  color: var(--brand-green);
}

/* État sélectionné (dropdown ouvert) */
.notif-bell__btn--active {
  background: hsl(var(--primary) / 0.1);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.notif-bell__btn .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
}

/* ── Badge (pastille) ─────────────────────────────────────── */
.notif-bell__badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 360px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted));
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  z-index: 1000;
  overflow: hidden;
  font-family: 'Inter', 'Montserrat', sans-serif;
}

/* ── En-tête du panneau ───────────────────────────────────── */
.notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid hsl(var(--muted));
  background: hsl(var(--secondary));
}

.notif-dropdown__header-title {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.notif-dropdown__mark-all {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand-green);
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
  white-space: nowrap;
}

.notif-dropdown__mark-all:hover {
  color: var(--brand-green-dark);
  text-decoration: underline;
}

/* ── Liste ────────────────────────────────────────────────── */
.notif-dropdown__list {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--muted)) transparent;
}

.notif-dropdown__list::-webkit-scrollbar {
  width: 4px;
}
.notif-dropdown__list::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 4px;
}

/* ── Chaque item ──────────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid hsl(var(--muted));
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

/* ── Pastille "non lu" ────────────────────────────────────── */
.notif-item__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  margin-top: 5px;
}

.notif-item--read .notif-item__dot {
  background: transparent;
}

/* ── Contenu ──────────────────────────────────────────────── */
.notif-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item--unread {
  background: hsl(var(--primary) / 0.05);
}

.notif-item--unread:hover {
  background: hsl(var(--primary) / 0.1);
}

.notif-item__titre {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.2rem;
}

.notif-item__message {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item__date {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
}

/* ── État vide ────────────────────────────────────────────── */
.notif-dropdown__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.notif-dropdown__empty-icon {
  font-size: 2rem;
  opacity: 0.35;
  color: hsl(var(--primary));
}


