/* Popup overlay */
.confirm-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 28, 112, 0.7); /* bleu foncé semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup content */
.confirm-popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(30, 28, 112, 0.3);
  max-width: 90vw;
  width: fit-content;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: #1e1c70;
  font-weight: 700;
  font-size: 1.2rem;
  margin: auto;
}

/* Container des boutons, flexible et responsive */
.confirm-popup-buttons {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;               /* permet le retour à la ligne si trop de boutons */
  justify-content: center;
  gap: 15px;
}

/* Boutons (confirm, annuler, etc.) */
.confirm-popup-buttons button,
.confirm-popup-buttons a {
  height: 42px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Bouton de confirmation */
.confirm-popup-buttons .btn-confirm {
  background-color: #1e1c70;
  color: #fff;
}

.confirm-popup-buttons .btn-confirm:hover {
  background-color: #3a3a9f;
}

/* Bouton d'annulation */
.confirm-popup-buttons .btn-cancel {
  background-color: #ddd;
  color: #1e1c70;
}

.confirm-popup-buttons .btn-cancel:hover {
  background-color: #bbb;
}

/* Tooltips (utilisés pour les attributs aria-label) */
[aria-label] {
  position: relative;
  cursor: pointer;
}

[aria-label]:hover::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #1e1c70;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(30, 28, 112, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  animation-fill-mode: forwards;
  animation-name: tooltipFadeIn;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
  animation-delay: 0s;
}

[aria-label]:hover::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: #1e1c70 transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  animation-fill-mode: forwards;
  animation-name: tooltipFadeIn;
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
  animation-delay: 0s;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

[aria-label]::after,
[aria-label]::before {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: none;
  animation: none;
}
