

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ============================================
   TOAST NOTIFICATIONS (conservé de l'ancien CSS)
   ============================================ */
.toast-container {
  position: fixed !important;
  top: 100px;
  right: 20px;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
}

.toast {
  background: white !important;
  border-radius: 8px !important;
  padding: 10px 10px !important;
  min-width: 300px !important;
  max-width: 400px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  pointer-events: all !important;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
  position: relative !important;
  border-left: 4px solid !important;
  opacity: 1 !important;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes fadeOutLeft {
    from { transform: translateX(0);     opacity: 1; }
    to   { transform: translateX(-100%); opacity: 0; }
}

.toast.success { border-left-color: #10b981 !important; }
.toast.error { border-left-color: #ef4444 !important; }
.toast.warning { border-left-color: #f59e0b !important; }
.toast.info { border-left-color: #3b82f6 !important; }

.toast-icon {
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  font-size: 10px !important;
  color: white !important;
}

.toast.success .toast-icon { background: #10b981 !important; }
.toast.error .toast-icon { background: #ef4444 !important; }
.toast.warning .toast-icon { background: #f59e0b !important; }
.toast.info .toast-icon { background: #3b82f6 !important; }

.toast-content {
  flex: 1 !important;
}

.toast-title {
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 4px !important;
}

.toast-message {
  color: #6b7280 !important;
  font-size: 12px !important;
}

.toast-close {
  background: none !important;
  border: none !important;
  color: #9ca3af !important;
  cursor: pointer !important;
  font-size: 20px !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s !important;
}

.toast-close:hover {
  color: #4b5563 !important;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

/* pour showConfirm

 */
.confirm-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.confirm-box {
    background: white;
    border-radius: 16px;
    padding: 20px 20px;
  /*  min-width: 300px; */
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    pointer-events: all;
    animation: confirmIn 0.2s ease;
    text-align: center;
}

@keyframes confirmIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.confirm-box-icon {
    font-size: 20px;
    color: #dc2626;
    margin-bottom: 6px;
}

.confirm-box-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.confirm-box-message {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.confirm-box-sep {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 0 -28px 16px;
}

.confirm-box-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn-ok {
    padding: 8px 24px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.confirm-btn-ok:hover { background: #b91c1c; }

.confirm-btn-cancel {
    padding: 8px 24px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.confirm-btn-cancel:hover { background: #e5e7eb; }

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 10000;
    animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   ALERT STYLES (conservé)
   ============================================ */
.alert {
  position: relative;
  padding-right: 3rem !important;
}

.alert-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.alert-close:hover {
  opacity: 1;
}

[data-panel] {
  cursor: pointer;
}


/* AUTOCOMPLETE >>>>>>>>>>>>>>>>>>>>>>>>>> */
.autocomplete-wrapper {
     position: relative;
     width: 100%;
  }

  .autocomplete-input {
     width: 100%;
     padding: 8px 12px;
     border: 1px solid #ddd;
     border-radius: 4px;
     font-size: 14px;
  }

  .autocomplete-list {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     background: white;
     border: 1px solid #ddd;
     border-top: none;
     border-radius: 0 0 4px 4px;
     max-height: 250px;
     overflow-y: auto;
     z-index: 1000;
     box-shadow: 0 4px 6px rgba(0,0,0,0.1);
     display: none;
  }

  .autocomplete-list.show {
     display: block;
  }

  .autocomplete-item {
     padding: 10px 12px;
     cursor: pointer;
     border-bottom: 1px solid #f0f0f0;
     transition: background 0.2s;
  }

  .autocomplete-item:hover,
  .autocomplete-item.active {
     background: #f8f9fa;
  }

  .autocomplete-item:last-child {
     border-bottom: none;
  }

  .autocomplete-item mark {
     background: #fff3cd;
     font-weight: 600;
     padding: 0;
  }
  .autocomplete-input::placeholder
{
   color: white !important;
   opacity: 1 !important;
}

/* Pour Firefox */
.autocomplete-input::-moz-placeholder
{
   color: white !important;
   opacity: 1 !important;
}

/* Pour IE 10-11 */
.autocomplete-input:-ms-input-placeholder
{
   color: white !important;
   opacity: 1 !important;
}

/* Pour Edge */
.autocomplete-input::-ms-input-placeholder
{
   color: white !important;
   opacity: 1 !important;
}
.autocomplete-preview {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

  /* <<<<<<<<<<<<<<<<<<<<<<<<<< AUTOCOMPLETE */
.noBold {
    font-weight: normal !important;
}

.ok { color:green !important }
.nok { color:red !important }

