/* Pack Gagnant wizard - aligned with jeu-concours BAD 2026 */

.arx-bad-jeu-pack {
  --arx-jeu-yellow: #ffca27;
  --arx-jeu-dark: #1d1d1b;
  --arx-jeu-purple: #9373b1;
  --arx-jeu-purple-deep: #470e7c;
  --arx-jeu-text: #ffffff;
  --arx-jeu-text-muted: #f7f6fb;
  --arx-jeu-surface: #2d3940;
  --arx-jeu-surface-alt: #3a4750;
  --arx-jeu-radius-lg: 32px;
  --arx-jeu-radius-md: 12px;
  --arx-jeu-radius-sm: 8px;
  box-sizing: border-box;
  color: var(--arx-jeu-text);
}

.arx-bad-jeu-pack *,
.arx-bad-jeu-pack *::before,
.arx-bad-jeu-pack *::after {
  box-sizing: border-box;
}

.arx-pack-gagnant-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.arx-pack-gagnant-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.arx-pack-gagnant-eyebrow {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: #ebebf5;
}

.arx-pack-gagnant-title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  color: var(--arx-jeu-text) !important;
}

.arx-pack-gagnant-title-accent {
  font-style: italic;
  color: var(--arx-jeu-yellow);
}

.arx-pack-gagnant-subtitle {
  margin: 0 0 32px;
  max-width: 760px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-gagnant-notice {
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--arx-jeu-radius-sm);
  font-size: 16px;
  line-height: 1.5;
  color: var(--arx-jeu-text);
}

.arx-pack-gagnant-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.arx-pack-gagnant-notice a {
  color: var(--arx-jeu-yellow);
}

.arx-pack-gagnant-notice--info {
  background: #470e7c;
  border: 1px solid var(--arx-jeu-purple);
}

.arx-pack-gagnant-notice--success {
  background: #4a3d10;
  border: 1px solid var(--arx-jeu-yellow);
}

.arx-pack-gagnant-notice--warning {
  background: #5c2021;
  border: 1px solid #d63638;
}

.arx-pack-gagnant-progress-wrap {
  margin-bottom: 24px;
}

.arx-pack-gagnant-steps {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0;
  list-style: none !important;
}

.arx-pack-gagnant-steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.arx-pack-gagnant-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #1f2a30;
  color: #c5ccd3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.arx-pack-gagnant-steps li.is-done .arx-pack-gagnant-step-dot,
.arx-pack-gagnant-steps li.is-current .arx-pack-gagnant-step-dot {
  background: var(--arx-jeu-yellow);
  color: var(--arx-jeu-dark);
}

.arx-pack-gagnant-progress {
  height: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #1f2a30;
}

.arx-pack-gagnant-progress-bar {
  height: 100%;
  background: var(--arx-jeu-yellow);
  box-shadow: 0 0 12px rgb(255 202 39 / 0.45);
  transition: width 0.35s ease;
}

.arx-pack-gagnant-step-label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--arx-jeu-yellow);
}

.arx-pack-gagnant-wizard {
  padding: 42px 64px;
  border: none;
  border-radius: var(--arx-jeu-radius-lg);
  background: var(--arx-jeu-surface);
}

.arx-pack-gagnant-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.arx-pack-step {
  display: none;
  color: var(--arx-jeu-text);
}

.arx-pack-step--active {
  display: block;
}

.arx-pack-step h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--arx-jeu-text) !important;
}

.arx-pack-step p {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-step label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--arx-jeu-text);
}

.arx-pack-step textarea,
.arx-pack-step input[type="number"],
.arx-pack-step input[type="text"],
.arx-pack-step input[type="email"],
.arx-pack-step input[type="tel"] {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #d0d0d0 !important;
  border-radius: var(--arx-jeu-radius-sm);
  background-color: #ffffff;
  color: var(--arx-jeu-dark);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arx-pack-step textarea {
  min-height: 140px;
  resize: vertical;
}

.arx-pack-step textarea:focus,
.arx-pack-step input:focus {
  outline: none;
  border-color: var(--arx-jeu-yellow) !important;
  box-shadow: 0 0 0 2px rgb(255 202 39 / 0.25);
}

.arx-pack-field {
  margin-bottom: 16px;
}

.arx-pack-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 24px 0;
}

.arx-pack-field--full {
  grid-column: 1 / -1;
}

.arx-pack-resume-hint {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-resume-hint a {
  color: var(--arx-jeu-yellow);
  font-weight: 700;
  text-decoration: underline;
}

.arx-pack-hint {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-hint strong {
  color: var(--arx-jeu-yellow);
  font-weight: 700;
}

.arx-pack-gagnant-checklist {
  margin: 20px 0;
  padding: 0;
  list-style: none !important;
}

.arx-pack-gagnant-checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-gagnant-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--arx-jeu-yellow);
  font-size: 18px;
  font-weight: 700;
}

.arx-pack-step a {
  color: var(--arx-jeu-yellow);
  font-weight: 700;
  text-decoration: underline;
}

.arx-pack-upload-zone {
  position: relative;
  margin-bottom: 16px;
  padding: 32px 20px;
  border: 1px dashed var(--arx-jeu-yellow);
  border-radius: var(--arx-jeu-radius-md);
  background: var(--arx-jeu-surface-alt);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.arx-pack-upload-zone--small {
  padding: 24px 16px;
}

.arx-pack-upload-zone:hover,
.arx-pack-upload-zone.arx-pack-dragover {
  border-color: var(--arx-jeu-yellow);
  background: #3d4654;
}

.arx-pack-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.arx-pack-upload-zone p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
  pointer-events: none;
}

.arx-pack-upload-progress {
  margin: 16px 0 8px;
}

.arx-pack-upload-progress[hidden] {
  display: none !important;
}

.arx-pack-upload-progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #5a6575;
}

.arx-pack-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--arx-jeu-yellow);
  transition: width 0.2s ease;
}

.arx-pack-upload-progress-text {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-file-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--arx-jeu-yellow);
  border-radius: var(--arx-jeu-radius-sm);
  background: #4a3d10;
}

.arx-pack-file-name {
  color: var(--arx-jeu-text);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-all;
}

.arx-pack-media-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.arx-pack-media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: var(--arx-jeu-radius-sm);
  background: var(--arx-jeu-surface-alt);
}

.arx-pack-media-item span {
  color: var(--arx-jeu-text);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
}

.arx-pack-recap {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--arx-jeu-radius-md);
  background: var(--arx-jeu-surface-alt);
}

.arx-pack-recap dl {
  margin: 0;
}

.arx-pack-recap dt {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--arx-jeu-yellow);
}

.arx-pack-recap dt:first-child {
  margin-top: 0;
}

.arx-pack-recap dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-recap dt.arx-pack-recap-item--blocking,
.arx-pack-recap dd.arx-pack-recap-item--blocking {
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 12px;
  padding-right: 12px;
  background: #5c2021;
}

.arx-pack-recap dt.arx-pack-recap-item--blocking {
  margin-top: 16px;
  padding-top: 12px;
  border-top-left-radius: var(--arx-jeu-radius-sm);
  border-top-right-radius: var(--arx-jeu-radius-sm);
  border: 1px solid #d63638;
  border-bottom: 0;
  color: #ffb4b4;
}

.arx-pack-recap dd.arx-pack-recap-item--blocking {
  margin-top: 0;
  padding-bottom: 12px;
  border: 1px solid #d63638;
  border-top: 0;
  border-bottom-left-radius: var(--arx-jeu-radius-sm);
  border-bottom-right-radius: var(--arx-jeu-radius-sm);
  color: #ffffff;
  font-weight: 700;
}

.arx-pack-recap-row--blocking {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #d63638;
  border-radius: var(--arx-jeu-radius-sm);
  background: #5c2021;
}

.arx-pack-recap-row--blocking dt {
  margin-top: 0;
  color: #ffb4b4;
}

.arx-pack-recap-row--blocking dd {
  color: #ffffff;
  font-weight: 700;
}

.arx-pack-blockers {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #d63638;
  border-radius: var(--arx-jeu-radius-sm);
  background: #5c2021;
  color: #ffffff;
}

.arx-pack-blockers[hidden] {
  display: none !important;
}

.arx-pack-blockers p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
}

.arx-pack-blockers p:last-child {
  margin-bottom: 0;
}

.arx-pack-blockers a {
  color: var(--arx-jeu-yellow);
  font-weight: 700;
}

.arx-pack-legal {
  margin-bottom: 16px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-btn-prev,
.arx-pack-btn-next,
.arx-pack-btn-submit,
.arx-pack-btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px 12px 16px !important;
  border: 1px solid transparent !important;
  border-radius: var(--arx-jeu-radius-md) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
  clip-path: none;
  transition: filter 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.arx-pack-btn-prev {
  background: var(--arx-jeu-surface-alt) !important;
  border-color: #8a96a8 !important;
  color: var(--arx-jeu-text) !important;
}

.arx-pack-btn-next,
.arx-pack-btn-submit {
  margin-left: auto;
  border-color: var(--arx-jeu-yellow) !important;
  background: var(--arx-jeu-yellow) !important;
  color: var(--arx-jeu-dark) !important;
}

.arx-pack-btn-remove {
  flex-shrink: 0;
  min-height: auto;
  padding: 8px 16px !important;
  border-color: #8a96a8 !important;
  background: var(--arx-jeu-surface-alt) !important;
  color: var(--arx-jeu-text) !important;
  font-size: 14px;
  font-weight: 700;
}

.arx-pack-btn-prev:hover,
.arx-pack-btn-next:hover,
.arx-pack-btn-submit:hover {
  filter: brightness(1.05);
}

.arx-pack-btn-remove:hover {
  background: #3d4654 !important;
}

.arx-pack-btn-prev:disabled,
.arx-pack-btn-next:disabled,
.arx-pack-btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.arx-pack-gagnant-messages {
  margin-top: 24px;
}

.arx-pack-gagnant-messages:empty {
  display: none;
}

.arx-pack-message {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--arx-jeu-radius-sm);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.arx-pack-message--error {
  color: #ffffff;
  background: #7a1f22;
  border: 2px solid #ff6b6b;
  box-shadow: 0 0 0 3px rgb(214 54 56 / 0.25);
}

.arx-pack-message--success {
  color: var(--arx-jeu-text);
  background: #4a3d10;
  border: 1px solid var(--arx-jeu-yellow);
  font-weight: 600;
}

.arx-pack-gagnant-wizard--readonly .arx-pack-upload-zone,
.arx-pack-gagnant-wizard--readonly .arx-pack-btn-remove {
  display: none !important;
}

.arx-pack-modal {
  /* Own tokens: modal is moved to <body> to escape Divi stacking contexts */
  --arx-jeu-yellow: #ffca27;
  --arx-jeu-dark: #1d1d1b;
  --arx-jeu-text: #ffffff;
  --arx-jeu-text-muted: #f7f6fb;
  --arx-jeu-surface: #2d3940;
  --arx-jeu-radius-lg: 32px;
  --arx-jeu-radius-md: 12px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.arx-pack-modal[hidden] {
  display: none !important;
}

.arx-pack-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.65);
}

.arx-pack-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px;
  border: 1px solid var(--arx-jeu-yellow);
  border-radius: var(--arx-jeu-radius-lg);
  background: var(--arx-jeu-surface);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.45);
  color: var(--arx-jeu-text);
}

.arx-pack-modal-dialog h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--arx-jeu-yellow) !important;
}

.arx-pack-modal-dialog p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--arx-jeu-text-muted);
}

.arx-pack-modal-dialog a {
  color: var(--arx-jeu-yellow);
  font-weight: 700;
  word-break: break-all;
}

.arx-pack-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.arx-pack-modal-close {
  border-color: var(--arx-jeu-yellow) !important;
  background: var(--arx-jeu-yellow) !important;
  color: var(--arx-jeu-dark) !important;
}

@media (max-width: 980px) {
  .arx-pack-gagnant-page {
    padding: 32px 24px 56px;
  }

  .arx-pack-gagnant-title {
    font-size: clamp(28px, 7vw, 42px);
  }

  .arx-pack-gagnant-wizard {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .arx-pack-step h3 {
    font-size: 20px;
  }

  .arx-pack-contact-grid {
    grid-template-columns: 1fr;
  }

  .arx-pack-gagnant-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .arx-pack-btn-next,
  .arx-pack-btn-submit,
  .arx-pack-btn-prev {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .arx-pack-gagnant-page {
    padding: 24px 16px 48px;
  }

  .arx-pack-gagnant-wizard {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .arx-pack-gagnant-step-dot {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .arx-pack-modal-dialog {
    padding: 22px 18px;
  }
}
