/* ============================================
   SYSTÈME DE NOTIFICATION VISUELLE
   ============================================ */

.notification-area {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 10px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
  pointer-events: none;
}

.notification {
  position: relative;
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  padding: 14px 48px 14px 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  animation: notifFadeIn 0.35s ease forwards;
  pointer-events: auto;
  overflow: hidden;
}

.notification-hide {
  animation: notifFadeOut 0.4s ease forwards;
}

.notification-inner {
  position: relative;
  z-index: 2;
}

.notification-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.notification-close:hover { opacity: 1; }

.notification-info {
  background: linear-gradient(135deg, #3498db, #2980b9);
}
.notification-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.notification-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}
.notification-error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* G2T Notifications Override */
#g2t-notifications {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 0 !important;
  overflow: visible !important;
  z-index: 9999999 !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  border: none !important;
  background: transparent !important;
}

#g2t-notifications .notification {
  position: absolute !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 600px !important;
  pointer-events: auto !important;
  z-index: 9999999 !important;
  margin-top: calc(80px + 8px) !important;
}

#g2t-notifications .notification.notification-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#g2t-notifications .notification.notification-hiding {
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  pointer-events: none;
}

#g2t-notifications .notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
#g2t-notifications .notification-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}
#g2t-notifications .notification-message {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}
#g2t-notifications .notification-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm, 8px);
  transition: all 0.2s ease;
  line-height: 1;
}
#g2t-notifications .notification-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

#g2t-notifications .notification-success {
  background: linear-gradient(135deg, #10b981, #059669);
}
#g2t-notifications .notification-error {
  background: linear-gradient(135deg, #ff5a5f, #e14e52);
}
#g2t-notifications .notification-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
#g2t-notifications .notification-info {
  background: linear-gradient(135deg, #003580, #0057b8);
}

#g2t-notifications:empty {
  display: none;
}

@media (max-width: 768px) {
  #g2t-notifications {
    top: calc(var(--header-height, 70px) + 8px);
    width: 95%;
    max-width: 100%;
    padding: 0 8px;
  }
  #g2t-notifications .notification {
    font-size: 14px;
    padding: 12px 44px 12px 14px;
    border-radius: var(--radius-sm, 8px);
  }
  #g2t-notifications .notification-icon {
    font-size: 18px;
  }
  #g2t-notifications .notification-close {
    font-size: 20px;
    right: 8px;
    padding: 4px 6px;
  }
}

@media (max-width: 480px) {
  #g2t-notifications {
    top: calc(var(--header-height, 60px) + 4px);
    width: 98%;
    padding: 0 4px;
  }
  #g2t-notifications .notification {
    font-size: 13px;
    padding: 10px 40px 10px 12px;
    border-radius: 6px;
  }
  #g2t-notifications .notification-icon {
    font-size: 16px;
  }
  #g2t-notifications .notification-message {
    font-size: 13px;
  }
}

@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes notifFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}