/* Modal d'inscription aux événements — Africain.ca (charte émeraude, or et anthracite) */
.pswe-event-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin: 14px 0 0;
}
.pswe-event-status {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: #0f4c3a;
  background: #e6f3ee;
  border: 1px solid #c3e2d6;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}
.pswe-button,
.pswe-secondary {
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.pswe-button {
  background: #0f4c3a;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 76, 58, 0.22);
}
.pswe-button:hover {
  background: #0a3629;
  color: #ffffff;
  transform: translateY(-1px);
}
.pswe-secondary {
  background: #f3efe6;
  color: #111827;
  border: 1px solid #e5dfd3;
}
.pswe-secondary:hover {
  background: #e9e2d4;
  color: #111827;
}
.pswe-more-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #0f4c3a;
  text-decoration: underline;
  cursor: pointer;
}
.pswe-member-join {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5dfd3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  color: #0f4c3a;
}
.pswe-result a.pswe-button {
  color: #ffffff;
  margin: 0;
}
.pswe-result a.pswe-secondary {
  color: #111827;
  margin: 0;
}
.pswe-result-actions {
  justify-content: flex-start;
}
.pswe-button:disabled,
.pswe-secondary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.pswe-overlay[hidden],
.pswe-overlay [hidden] {
  display: none !important;
}
.pswe-overlay {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: rgba(15, 23, 34, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}
.pswe-modal {
  background: #ffffff;
  border-radius: 18px;
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 96px rgba(15, 23, 34, 0.36);
  border: 1px solid #e5dfd3;
  overflow: hidden;
  outline: 0;
}
.pswe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: #0f1722;
  color: #ffffff;
  gap: 20px;
}
.pswe-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 5px 0 0;
  color: #ffffff;
}
.pswe-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #e5be67;
  text-transform: uppercase;
}
.pswe-close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.pswe-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.pswe-scroll {
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pswe-steps {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.8rem;
  color: #5b6472;
}
.pswe-steps li {
  flex: 1;
  padding: 8px 0;
  border-bottom: 3px solid #e5dfd3;
  font-weight: 600;
}
.pswe-steps li[aria-current="step"] {
  color: #0f4c3a;
  border-color: #c6922d;
  font-weight: 700;
}
#pswe-summary {
  background: #faf8f4;
  border: 1px solid #e5dfd3;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
}
#pswe-summary h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #111827;
}
#pswe-summary p {
  font-size: 0.88rem;
  margin: 4px 0;
  color: #374151;
  line-height: 1.5;
}
.pswe-ticket {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}
.pswe-ticket strong {
  display: block;
  font-size: 1.05rem;
  color: #111827;
}
.pswe-price {
  display: inline-block;
  margin-top: 8px;
  background: #e6f3ee;
  color: #0f4c3a;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.pswe-counter {
  display: flex;
  align-items: center;
  border: 1.5px solid #d5cebe;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}
.pswe-counter button {
  width: 44px;
  height: 46px;
  background: #faf8f4;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.pswe-counter button:hover {
  background: #e6f3ee;
  color: #0f4c3a;
}
.pswe-counter input {
  width: 52px !important;
  border: 0 !important;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  height: 46px;
  padding: 0 !important;
  appearance: textfield;
  -moz-appearance: textfield;
}
.pswe-counter input::-webkit-inner-spin-button {
  appearance: none;
}
.pswe-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5dfd3;
  padding-top: 16px;
  margin: 14px 0;
  font-size: 1.08rem;
}
.pswe-total strong {
  color: #0f4c3a;
  font-size: 1.2rem;
}
.pswe-muted {
  color: #5b6472;
  font-size: 0.85rem;
  line-height: 1.6;
}
.pswe-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pswe-person {
  border: 1px solid #e5dfd3;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 18px;
  min-width: 0;
  background: #ffffff;
}
.pswe-person legend {
  float: none;
  width: auto;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 8px;
  margin: 0;
  color: #0f4c3a;
}
.pswe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pswe-person label {
  font-size: 0.84rem;
  font-weight: 600;
  display: block;
  color: #374151;
}
.pswe-person input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d1c9b8;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 10px 12px;
  min-height: 44px;
}
.pswe-person input:focus {
  border-color: #0f4c3a;
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.14);
  outline: none;
}
.pswe-copy {
  background: none;
  border: 0;
  color: #0f4c3a;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0 0 14px;
}
.pswe-consent {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #374151;
}
.pswe-consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #0f4c3a;
}
.pswe-error {
  background: #fef2f2;
  color: #8c2d19;
  border-left: 3px solid #8c2d19;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.pswe-result {
  padding: 10px 0 20px;
}
.pswe-result h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  color: #0f4c3a;
  margin-top: 0;
}
.pswe-result p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.pswe-result a {
  display: inline-block;
  margin: 10px 0;
  color: #0f4c3a;
  font-weight: 700;
}
.pswe-foot {
  padding: 14px 28px;
  background: #faf8f4;
  border-top: 1px solid #e5dfd3;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #5b6472;
}
.pswe-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pswe-overlay :focus-visible,
.pswe-event-action :focus-visible {
  outline: 2px solid #c6922d;
  outline-offset: 2px;
}
#pswe-stripe {
  min-height: 180px;
}
body.pswe-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .pswe-overlay {
    padding: 10px;
  }
  .pswe-modal {
    border-radius: 14px;
    max-height: calc(100dvh - 20px);
  }
  .pswe-head {
    padding: 18px 20px;
  }
  .pswe-head h2 {
    font-size: 1.3rem;
  }
  .pswe-scroll {
    padding: 18px 20px;
  }
  .pswe-grid {
    grid-template-columns: 1fr;
  }
  .pswe-person {
    padding: 14px;
  }
  .pswe-foot {
    padding: 12px 20px;
  }
  .pswe-steps {
    gap: 6px;
    font-size: 0.72rem;
  }
  .pswe-actions > * {
    flex: 1;
    text-align: center;
  }
  .pswe-button,
  .pswe-secondary {
    padding: 12px 16px;
  }
  .pswe-ticket {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
