/* ---- MODAL OVERLAY ---- */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.4); /* overlay foncé */
}

/* ---- MODAL DIALOG ---- */
.modal-dialog {
  position: relative;
  margin: 50px auto;
  max-width: 500px;
  width: 90%;
}

/* ---- MODAL CONTENT ---- */
.modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

/* ---- HEADER ---- */
.modal-header {
  padding: 15px 20px;
  background: #035888; /* ton bleu GraphiWeb */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-header .btn-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

/* ---- BODY ---- */
.modal-body {
  padding: 20px;
}

.modal-body label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.modal-body input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: border 0.2s;
}

.modal-body input:focus {
  border-color: #035888;
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 88, 136, 0.1);
}

.modal-body select {
  width: 100%;
}

/* ---- FOOTER ---- */
.modal-footer {
  padding: 15px 20px;
  background: #f5f6fa;
  text-align: right;
  border-top: 1px solid #eee;
}

.modal-footer .btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  border: none;
}

.modal-footer .btn-primary {
  background: #035888;
  color: #fff;
}

.modal-footer .btn-primary:hover {
  background: #02466a;
}

/* ---- ANIMATION ---- */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
