/* =============================================
   AMBIANCE - NOTIFICATIONS STYLÉES
   ============================================= */
#ambiance-notification {
  position: fixed;
  z-index: 99999;
  top: 40px;
  right: 25px;
  pointer-events: none;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* =============================================
   NOTIFICATION INDIVIDUELLE
   ============================================= */
.ambiance {
  pointer-events: auto;
  padding: 16px 20px 16px 50px;
  margin-bottom: 12px;
  border-radius: 12px;
  position: relative;
  font-family: "Poppins", Roboto, Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-width: 280px;
  max-width: 450px;
  animation: ambianceSlideIn 0.4s ease-out;
  overflow: hidden;
  /*
  border-left: 6px solid transparent;
  */
  transition: all 0.3s ease;
  color: #fff;
}

/* =============================================
   TYPES DE NOTIFICATIONS
   ============================================= */

/* ---- INFO ---- */
.ambiance-info {
  color: white !important;
  background-color: rgb(11, 38, 137);
  -webkit-background: radial-gradient(80% 70% at center, #3089b5 11%, #0f87c2 18%, #089de7 32%, #0072a3 49%);
  -moz-background: radial-gradient(80% 70% at center, #3089b5 11%, #0f87c2 18%, #089de7 32%, #0072a3 49%);
  -o-background: radial-gradient(80% 70% at center, #3089b5 11%, #0f87c2 18%, #089de7 32%, #0072a3 49%);
  background: radial-gradient(80% 70% at center, #3089b5 11%, #0f87c2 18%, #089de7 32%, #0072a3 49%);
  animation: delay 2px;
  border-left-color: #42a5f5;
}
.ambiance-info .ambiance-titre { color: #000000;  text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }
.ambiance-info .ambiance-message { color: #000000; text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }
.ambiance-info .ambiance-close { color: #02233e; text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }

/* ---- SUCCÈS ---- */
.ambiance-success {
  background-color: rgb(17, 88, 9);
  -webkit-background: radial-gradient(80% 70% at center,#107309 35%, #0d3c00 49%);
  -moz-background: radial-gradient(80% 70% at center,#107309 35%, #0d3c00 49%);
  -o-background: radial-gradient(80% 70% at center,#107309 35%, #0d3c00 49%);
  background: radial-gradient(80% 70% at center,#107309 35%, #0d3c00 49%);
  border-left-color: #479711;
  text-shadow: 1px 1px 3px rgba(0, 0, 0);
  color: white;
  border-left-color: #265706;
  -webkit-box-shadow: 8px 8px 12px rgba(0, 0, 0);
	-moz-box-shadow: 8px 8px 12px rgba(0, 0, 0);
  -o-box-shadow: 8px 8px 12px rgba(0, 0, 0);
	box-shadow: 8px 8px 12px rgba(0, 0, 0);
  color: white;
}
.ambiance-success .ambiance-titre { color: #ffffff; text-shadow: 3px 3px 6px #000000}
.ambiance-success .ambiance-message { color: #ffffff;  text-shadow: 3px 3px 6px #000000); }
.ambiance-success .ambiance-close { color: #ffffff; text-shadow: 3px 3px 6px #000000; }

/* ---- ERREUR ---- */
.ambiance-error {
   background-color: light-dark(black,white);
  -webkit-background: radial-gradient(80% 70% at center, #fdb603 0%, #ff6600 12%, #ff0000 35%, #ff0000 49%);
  -moz-background: radial-gradient(80% 70% at center, #fdb603 0%, #ff6600 12%, #ff0000 35%, #ff0000 49%); 
  -o-background: radial-gradient(80% 70% at center, #fdb603 0%, #ff6600 12%, #ff0000 35%, #ff0000 49%);
  background: radial-gradient(80% 70% at center, #fdb603 0%, #ff6600 12%, #ff0000 35%, #ff0000 49%);

  border-left-color: #ef5350;
  -webkit-box-shadow: 8px 8px 12px rgba(0, 0, 0);
	-moz-box-shadow: 8px 8px 12px rgba(0, 0, 0);
  -o-box-shadow: 8px 8px 12px rgba(0, 0, 0);
	box-shadow: 8px 8px 12px rgba(0, 0, 0);
  color: #ffffff;
}
.ambiance-error .ambiance-titre { color: #ffffff; text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }
.ambiance-error .ambiance-message { color: yellow;text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }
.ambiance-error .ambiance-close { color: #ffffff;text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }

/* ---- ATTENTION ---- */
.ambiance-warning {
  @media (prefers-color-scheme: light) {
   background-color: black;
  }
  @media (prefers-color-scheme: dark) {
   background-color: white;
  }
  -webkit-background: radial-gradient(80% 70% at center, #b59830 21%, #e77f08 23%, #c2780f 35%, #a35700 61%);
  -moz-background: radial-gradient(80% 70% at center, #b59830 21%, #e77f08 23%, #c2780f 35%, #a35700 61%);
  -o-background: radial-gradient(80% 70% at center, #b59830 21%, #e77f08 23%, #c2780f 35%, #a35700 61%);
  background: radial-gradient(80% 70% at center, #b59830 21%, #e77f08 23%, #c2780f 35%, #a35700 61%);
  border-left-color: #ffb74d;
  color: black;
}
.ambiance-warning .ambiance-titre { color: #000000; text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }
.ambiance-warning .ambiance-message { color: #000000; text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }
.ambiance-warning .ambiance-close { color: #653e04; text-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.8); }

/* =============================================
   ÉLÉMENTS INTERNES
   ============================================= */

/* Icône */
.ambiance-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  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;
  white-space: pre-line;
}

/* Bouton fermeture */
.ambiance-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
  font-weight: 300;
  opacity: 0.6;
}
.ambiance-close:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.1);
}

/* =============================================
                    ANIMATION
   ============================================= */
@keyframes ambianceSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  #ambiance-notification {
    top: 15px;
    right: 15px;
    left: 10px;
    max-width: 100%;
  }
  .ambiance {
    min-width: auto;
    max-width: 100%;
    width: 100% !important;
    padding: 14px 16px 14px 44px;
    font-size: 13px;
  }
  .ambiance-titre { font-size: 14px; }
  .ambiance-message { font-size: 13px; }
  .ambiance-icon { font-size: 18px; left: 12px; }
  .ambiance-close { font-size: 20px; top: 8px; right: 10px; }
}