

body .swal2-container {
  z-index: 100010;
}

.swal2-container.swal2-shown {
  background: rgba(8, 7, 12, 0.82);
}

.swal2-container .swal2-popup {
  background: rgba(15, 14, 20, 0.92);
  border: 1px solid #b17b64;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-family: Verdana, sans-serif;
  
  width: auto;
  max-width: min(92vw, 44em);
}

.swal2-container .swal2-title {
  color: #ffd97a;
}

.swal2-container .swal2-content,
.swal2-container .swal2-html-container {
  color: #e8e6f0;
}

.swal2-container .swal2-styled {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.swal2-container .swal2-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.6em;
  width: auto;
  max-width: 100%;
}

.swal2-container .swal2-actions .swal2-styled {
  margin: 0;
  white-space: nowrap;
}

.swal2-container .swal2-styled.swal2-confirm,
.swal2-container .swal2-styled.swal2-cancel {
  background: linear-gradient(to bottom, #79bbff 5%, #378de5 100%);
  border: 1px solid #337bc4;
  border-radius: 8px;
  box-shadow: none;
  color: #ffffff;
}

@media (hover: hover) {
  .swal2-container .swal2-styled.swal2-confirm:hover,
  .swal2-container .swal2-styled.swal2-cancel:hover {
    background: linear-gradient(to bottom, #a3d1ff 5%, #4f9bea 100%);
  }
}

.swal2-container .swal2-styled.popup-danger {
  background: linear-gradient(to bottom, #d8443c 5%, #8c3b33 100%);
  border: 1px solid #c4685f;
  border-radius: 8px;
  box-shadow: none;
  color: #ffffff;
}

@media (hover: hover) {
  .swal2-container .swal2-styled.popup-danger:hover {
    background: linear-gradient(to bottom, #e8574f 5%, #a04a41 100%);
  }
}

.swal2-container .swal2-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: #cfc7c1;
}

.swal2-container .swal2-footer .lien-menu {
  
  padding: 0.45em 1.2em;
  font-size: 1em;
  color: #f0e6e0;
  border-color: #b17b64;
}

@media (hover: hover) {
  .swal2-container .swal2-footer .lien-menu:hover:not(:disabled) {
    background: rgba(177, 123, 100, 0.3);
    border-color: #d6a389;
    color: #ffffff;
  }
}

.swal2-container .swal2-footer .lien-menu:disabled {
  color: #8b8078;
  text-decoration: none;
  cursor: default;
}

.swal2-container .swal2-input,
.swal2-container .swal2-textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #b17b64;
  border-radius: 6px;
  color: #ffffff;
}

.swal2-container .swal2-success-circular-line-left,
.swal2-container .swal2-success-circular-line-right,
.swal2-container .swal2-success-fix {
  background-color: transparent !important;
}
.swal2-container .swal2-icon {
  border-color: rgba(255, 255, 255, 0.25);
}

.swal2-container .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(165, 220, 134, 0.4);
}

.swal2-container .popup-niveau {
  
  margin: 1em auto 0;
  
  width: min(22em, 100%);
}

.swal2-container .popup-niveau-titre {
  margin: 0 0 0.4em;
  font-size: 0.9em;
  
  color: #e8e6f0;
  opacity: 0.9;
}

.swal2-container .popup-niveau-barre {
  position: relative;
  width: 100%;
  
  height: 1.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.swal2-container .popup-niveau-jauge {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4aa3ff 0%, #1c6fd0 100%);
}

.swal2-container .popup-niveau-chiffres {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.swal2-container .genie-tenues {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1em;
  margin: 0 0 0.6em;
}

.swal2-container .genie-tenue-image {
  height: max(80px, 22dvh);
  width: auto;
  object-fit: contain;
}

@media (max-height: 500px) {
  .swal2-container .swal2-popup {
    
    max-height: 92dvh;
    overflow-y: auto;
    padding: 0.6em;
    font-size: 0.8rem;
  }

  
  .swal2-container .swal2-error {
    
    display: none !important;
  }

  .swal2-container .swal2-title {
    font-size: 1.25em;
    padding: 0.1em 0.3em;
    margin: 0;
  }

  .swal2-container .swal2-html-container {
    margin: 0.3em 0.8em;
    font-size: 1em;
    line-height: 1.35;
  }

  .swal2-container .swal2-actions {
    margin: 0.5em auto 0.1em;
    gap: 0.5em;
  }

  
  .swal2-container .swal2-styled {
    padding: 0.5em 1.1em;
    min-height: 44px;
    margin: 0;
    font-size: 1em;
  }

  
  .swal2-container .swal2-styled img {
    max-height: 2em;
    width: auto;
  }
}

@media (pointer: coarse) {
  .swal2-container .swal2-footer .lien-menu {
    min-height: 36px;
    box-sizing: border-box;
  }
}
