/* =============================================
   ZONE DE NOTIFICATION
   ============================================= */
#ambiance-notification {
  position: fixed;
  z-index: 99999;
  display: block;
  top: 50px;
  right: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: italic;
  pointer-events: none;
  max-width: 90%;
}

#ambiance-notification.ambiance-top-right {
  top: 20px;
  right: 20px;
}

#ambiance-notification.ambiance-top-left {
  top: 20px;
  left: 20px;
}

#ambiance-notification.ambiance-bottom-right {
  bottom: 20px;
  left: 20px;
}

#ambiance-notification.ambiance-bottom-left {
  bottom: 20px;
  left: 20px;
}

/* =============================================
   NOTIFICATION INDIVIDUELLE
   ============================================= */
.ambiance {
  pointer-events: auto;
  padding: 15px 20px 15px 45px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #000000;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: ambianceSlideIn 0.4s ease-out;
  overflow: hidden;
  border-left: 6px solid transparent;
  transition: all 0.3s ease;
}

/* =============================================
   TYPES
   ============================================= */
.ambiance-info {
  background: #00ffff;
  color: black;
  background: linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  background: -webkit-linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  background: -moz-linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  background: -o-linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  background: -ms-linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  background: linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  -svg-background: linear-gradient(
      top,
      #009fa1 0,
      #00ffff 40%,
      #00ffff 50%,
      #009fa1 100%
    )
    no-repeat;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  -webkit-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
}
.ambiance-success {
  background: #468847;
  color: white;
  background: linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  background: -webkit-linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  background: -moz-linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  background: -o-linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  background: -ms-linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  background: linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  -svg-background: linear-gradient(
      top,
      #468847 0,
      #00c802 40%,
      #00c802 50%,
      #468847 100%
    )
    no-repeat;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  -webkit-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
}

.ambiance-error {
  background: #ff0000;
  background: green;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  -webkit-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
}

.ambiance-warning {
  background: #ff9d00;
  background: linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  background: -webkit-linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  background: -moz-linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  background: -o-linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  background: -ms-linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  background: linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  -svg-background: linear-gradient(
      top,
      #ff9500 0,
      #b27622 40%,
      #b28222 50%,
      #ff6f00 100%
    )
    no-repeat;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  -webkit-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, 0.5);
}

/* Icônes */
.ambiance-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
}

/* =============================================
   TITRE
   ============================================= */
.ambiance-titre {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

/* =============================================
   MESSAGE
   ============================================= */
.ambiance-message {
  font-size: 14px;
  line-height: 1.5;
}

/* =============================================
   BOUTON DE FERMETURE
   ============================================= */
.ambiance-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
  color: #999;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
  font-weight: 300;
}

.ambiance-close:hover {
  color: #333;
  transform: rotate(90deg);
}

/* Animations */
@keyframes ambianceSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  #ambiance-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: 100%;
  }

  .ambiance {
    width: 100% !important;
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    border-radius: 8px;
  }

  .ambiance-titre {
    font-size: 14px;
  }
  .ambiance-message {
    font-size: 13px;
  }
  .ambiance-icon {
    font-size: 17px;
    left: 11px;
  }
  .ambiance-close {
    font-size: 20px;
    top: 6px;
    right: 10px;
  }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  .ambiance-info {
    background: linear-gradient(to bottom, #1a237e, #283593);
    color: #e8eaf6;
  }

  .ambiance-success {
    background: linear-gradient(to bottom, #1b3a1b, #2e7d32);
    color: #c8e6c9;
  }

  .ambiance-error {
    background: linear-gradient(to bottom, #4a1a1a, #6d1a1a);
    color: #ffcdd2;
  }

  .ambiance-warning {
    background: linear-gradient(to bottom, #3e2a0a, #4a3a1a);
    color: #fff8e1;
  }

  .ambiance-close {
    color: #888;
  }
  .ambiance-close:hover {
    color: #fff;
  }
}
