.overlay_alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.alert-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s ease-in-out;
}

.alert-icon {
  color: #48bb78; /* Vert */
  margin-bottom: 15px;
}

.alert-box h2 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 24px;
}

.alert-box p {
  color: #718096;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-close {
  background-color: #48bb78;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-close:hover {
  background-color: #38a169;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Cache les tirets et le texte jj/mm/aaaa par défaut */
.form-control.checkdate::-webkit-datetime-edit-text,
.form-control.checkdate::-webkit-datetime-edit-month-field,
.form-control.checkdate::-webkit-datetime-edit-day-field,
.form-control.checkdate::-webkit-datetime-edit-year-field {
    color: transparent;
}

/* Réaffiche la date lors du clic (focus) ou si une date est déjà sélectionnée (valid) */
.form-control.checkdate:focus::-webkit-datetime-edit-text,
.form-control.checkdate:focus::-webkit-datetime-edit-month-field,
.form-control.checkdate:focus::-webkit-datetime-edit-day-field,
.form-control.checkdate:focus::-webkit-datetime-edit-year-field,
.form-control.checkdate:valid::-webkit-datetime-edit-text,
.form-control.checkdate:valid::-webkit-datetime-edit-month-field,
.form-control.checkdate:valid::-webkit-datetime-edit-day-field,
.form-control.checkdate:valid::-webkit-datetime-edit-year-field {
    color: inherit;
}