/*==============================================================
# Thème SweetAlert2 — SYPATMAE-CI (site public et back-office)
==============================================================*/
.syp-popup {
  --syp-navy: #124265;
  --syp-navy-dark: #0b2a42;
  --syp-gold: #f9a826;
  --syp-green: #1e8e4e;
  border-radius: 20px !important;
  padding: 2rem 1.75rem 1.75rem !important;
  font-family: "Lato", system-ui, sans-serif !important;
  box-shadow: 0 30px 80px rgba(11, 42, 66, 0.28) !important;
  position: relative;
  overflow: hidden;
}

/* Rappel des traits orange et vert du logo */
.syp-popup::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #f9a826 0 50%, #1e8e4e 50% 100%);
}

.syp-title {
  font-family: "Merriweather", Georgia, serif !important;
  font-weight: 900 !important;
  color: #124265 !important;
  font-size: 1.45rem !important;
  padding-top: 0.4em !important;
}

.syp-html {
  color: #3d4a57 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.syp-html .syp-recap {
  text-align: left;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  overflow: hidden;
}

.syp-html .syp-recap li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.syp-html .syp-recap li + li {
  border-top: 1px solid #e3e9f0;
}

.syp-html .syp-recap span {
  color: #5b6875;
}

.syp-html .syp-recap strong {
  color: #124265;
  text-align: right;
}

.syp-html .syp-missing {
  text-align: left;
  margin: 12px 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.syp-html .syp-missing li {
  margin-bottom: 4px;
}

.syp-actions {
  gap: 10px;
  margin-top: 1.5rem !important;
}

.syp-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background-color 0.18s ease;
}

.syp-btn:active {
  transform: scale(0.97);
}

.syp-btn:focus-visible {
  outline: 3px solid #f9a826;
  outline-offset: 3px;
}

.syp-btn-primary {
  background: #124265;
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 66, 101, 0.25);
}

.syp-btn-primary:hover {
  background: #0f75bc;
  transform: translateY(-1px);
}

.syp-btn-gold {
  background: #f9a826;
  color: #0b2a42;
  box-shadow: 0 8px 20px rgba(249, 168, 38, 0.35);
}

.syp-btn-gold:hover {
  background: #ffb94a;
  transform: translateY(-1px);
}

.syp-btn-ghost {
  background: #fff;
  color: #124265;
  box-shadow: inset 0 0 0 2px #d6e0ea;
}

.syp-btn-ghost:hover {
  box-shadow: inset 0 0 0 2px #124265;
}

.syp-btn-danger {
  background: #c0392b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.25);
}

.syp-btn-danger:hover {
  background: #a93226;
  transform: translateY(-1px);
}

/* Icônes */
.syp-popup .swal2-icon.swal2-success {
  border-color: #1e8e4e !important;
  color: #1e8e4e !important;
}

.syp-popup .swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #1e8e4e !important;
}

.syp-popup .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(30, 142, 78, 0.3) !important;
}

.syp-popup .swal2-icon.swal2-warning {
  border-color: #f9a826 !important;
  color: #c27800 !important;
}

.syp-popup .swal2-icon.swal2-question,
.syp-popup .swal2-icon.swal2-info {
  border-color: #0f75bc !important;
  color: #0f75bc !important;
}

.syp-popup .swal2-icon.swal2-error {
  border-color: #c0392b !important;
}

.syp-popup .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #c0392b !important;
}

.syp-popup .swal2-loader {
  border-color: #124265 transparent #f9a826 transparent !important;
}

/* Notifications (toasts) */
.syp-toast {
  border-radius: 14px !important;
  padding: 0.85rem 1rem !important;
  font-family: "Lato", system-ui, sans-serif !important;
  box-shadow: 0 16px 40px rgba(11, 42, 66, 0.18) !important;
  border-left: 5px solid #0f75bc !important;
}

.syp-toast.toast-success { border-left-color: #1e8e4e !important; }
.syp-toast.toast-error { border-left-color: #c0392b !important; }
.syp-toast.toast-warning { border-left-color: #f9a826 !important; }

.syp-toast .swal2-title {
  font-family: "Lato", system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #1f2d3a !important;
}

.syp-toast .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #f9a826, #1e8e4e) !important;
}

.swal2-container.swal2-center.swal2-backdrop-show {
  background: rgba(11, 42, 66, 0.55) !important;
  backdrop-filter: blur(3px);
}

/* Effet d'onde au clic (partagé) */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: currentColor;
  opacity: 0.25;
  transform: scale(0);
  animation: syp-ripple 0.6s ease-out forwards;
}

@keyframes syp-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple { display: none; }
}
