/* /public_html/assets/css/season-preparation-lock.css */

body.season-prep-dialog-open {
  overflow: hidden;
}

.season-prep-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.season-prep-dialog {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.97));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 44px rgba(56, 189, 248, 0.12);
  color: rgba(248, 250, 252, 0.96);
}

.season-prep-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: rgba(226, 232, 240, 0.86);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.season-prep-dialog__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(244, 114, 182, 0.13);
  color: #fb7185;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.season-prep-dialog h2 {
  margin: 0;
  max-width: calc(100% - 44px);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.08;
}

.season-prep-dialog__lead {
  margin: 12px 0 22px;
  color: rgba(203, 213, 225, 0.86);
  line-height: 1.55;
}

.season-prep-dialog__form {
  display: grid;
  gap: 12px;
}

.season-prep-dialog__form label {
  font-weight: 800;
  color: rgba(248, 250, 252, 0.9);
}

.season-prep-dialog__error {
  margin: 0;
  color: #fb7185;
  font-weight: 700;
}

.season-prep-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.season-prep-register-card {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 24px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.season-prep-register-card__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
}

.season-prep-register-card__text {
  margin: 0 0 18px;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.55;
}

.season-prep-register-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .season-prep-dialog {
    padding: 22px;
    border-radius: 24px;
  }

  .season-prep-dialog__actions,
  .season-prep-register-card__actions {
    justify-content: stretch;
  }

  .season-prep-dialog__actions > *,
  .season-prep-register-card__actions > * {
    flex: 1 1 auto;
  }
}

/* Boutons locaux du verrou saisonnier : le module ne dépend pas d'une ancienne classe globale. */
.season-prep-dialog .ui-button,
.season-prep-register-card .ui-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: rgba(248, 250, 252, 0.94);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.season-prep-dialog .ui-button:hover,
.season-prep-register-card .ui-button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.46);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: 0 16px 42px rgba(14, 165, 233, 0.16);
}

.season-prep-dialog .ui-button:focus-visible,
.season-prep-register-card .ui-button:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.38);
  outline-offset: 3px;
}

.season-prep-dialog .ui-button:disabled,
.season-prep-register-card .ui-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.season-prep-dialog .ui-button--primary,
.season-prep-register-card .ui-button--primary {
  border-color: rgba(56, 189, 248, 0.54);
  color: #06121f;
  background: linear-gradient(135deg, #67e8f9, #38bdf8 46%, #60a5fa);
  box-shadow: 0 16px 42px rgba(56, 189, 248, 0.26);
}

.season-prep-dialog .ui-button--primary:hover,
.season-prep-register-card .ui-button--primary:hover {
  border-color: rgba(186, 230, 253, 0.72);
  background: linear-gradient(135deg, #a5f3fc, #38bdf8 48%, #818cf8);
}

.season-prep-dialog .ui-button--secondary,
.season-prep-register-card .ui-button--secondary {
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 23, 42, 0.64);
}

@media (prefers-color-scheme: light) {
  .season-prep-dialog .ui-button,
  .season-prep-register-card .ui-button {
    border-color: rgba(15, 23, 42, 0.14);
    color: rgba(15, 23, 42, 0.86);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .season-prep-dialog .ui-button--primary,
  .season-prep-register-card .ui-button--primary {
    color: #06121f;
    background: linear-gradient(135deg, #67e8f9, #38bdf8 46%, #60a5fa);
  }
}
