/* Cloche + centre de notifications */

.notif-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  padding: 0;
}

.notif-bell:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  color: #fff;
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, #ff2d55, #e8304a);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 2px solid #0a0a0f;
  opacity: 0;
  transform: scale(0);
  transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(232, 48, 74, 0.5);
  pointer-events: none;
}

.notif-badge.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
}

.notif-inbox {
  position: fixed;
  top: 76px;
  right: 1.75rem;
  width: min(400px, calc(100vw - 2rem));
  max-height: min(580px, calc(100vh - 96px));
  background: linear-gradient(180deg, rgba(15, 15, 24, 0.98) 0%, rgba(8, 8, 16, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  pointer-events: none;
  transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.notif-inbox.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.notif-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.notif-inbox-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.notif-mark-all {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 7px;
  transition: 0.18s;
}

.notif-mark-all:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 8px;
  scrollbar-width: thin;
}

.notif-empty {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.notif-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: rgba(255, 255, 255, 0.25);
}

.notif-empty-title {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.notif-empty-sub {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11.5px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 3px;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.notif-item.unread {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.08) 0%, rgba(245, 166, 35, 0.02) 100%);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #f5a623, #e8a02d);
  border-radius: 0 2px 2px 0;
}

.notif-dot {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-dot-announce {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
}

.notif-dot-ticket {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.notif-body-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3px;
  line-height: 1.35;
}

.notif-body-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-body-time {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-body-time svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.notif-item-delete {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 6px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .notif-item-delete {
    opacity: 0;
    background: transparent;
    border-color: transparent;
  }

  .notif-item:hover .notif-item-delete {
    opacity: 1;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.notif-item-delete svg {
  width: 16px;
  height: 16px;
}

.notif-item-delete:hover {
  color: #ff6b84;
  border-color: rgba(255, 80, 104, 0.35);
  background: rgba(255, 80, 104, 0.08);
}

/* Toasts annonces */
.if-toast-stack {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 2rem));
}

.if-toast {
  background: linear-gradient(160deg, rgba(18, 18, 28, 0.98), rgba(10, 10, 18, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 44px 14px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
  position: relative;
  cursor: default;
}

.if-toast--clickable {
  cursor: pointer;
}

.if-toast--in {
  transform: translateX(0);
}

.if-toast--out {
  transform: translateX(120%);
  opacity: 0;
}

.if-toast--announce {
  border-left: 3px solid #f5a623;
}

.if-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
}

.if-toast-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 4px;
}

.if-toast-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.if-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.if-announce-banner {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.if-announce-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 0;
}

.if-announce-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.if-announce-title {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.if-announce-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.if-announce-body {
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 14px;
}

.if-announce-foot {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.if-announce-close-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #9b8cf8, #7c6cf0);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .notif-inbox {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .if-toast-stack {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}
