/*
 * Parcours d'inscription et de choix de formule.
 *
 * Sorti de inscription.php le 22 septembre 2026 pour être partagé avec
 * agent/formule.php : un agent qui doit choisir sa formule retrouve
 * exactement les cartes vues en s'inscrivant.
 */

.wk-signup { min-height: 100vh; background: var(--wk-canvas); padding-bottom: 60px; }

.wk-signup-head { text-align: center; padding: 40px 0 26px; }

.wk-signup-head h1 {
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.wk-signup-head p { margin: 0; color: var(--wk-ink-3); font-size: 15px; }

/* --- Indicateur d'étapes --- */

.wk-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 520px;
  margin: 26px auto 0;
}

.wk-stepper-item { display: flex; align-items: center; gap: 9px; }

.wk-stepper-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--wk-surface);
  border: 1px solid var(--wk-line-strong);
  color: var(--wk-ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.wk-stepper-item.is-current .wk-stepper-dot {
  background: var(--wk-brand); border-color: var(--wk-brand); color: #fff;
}

.wk-stepper-item.is-done .wk-stepper-dot {
  background: var(--wk-brand-wash); border-color: var(--wk-brand); color: var(--wk-brand-deep);
}

.wk-stepper-label { font-size: 13px; font-weight: 600; color: var(--wk-ink-3); white-space: nowrap; }
.wk-stepper-item.is-current .wk-stepper-label { color: var(--wk-ink); }

.wk-stepper-bar { flex: 1; height: 1px; background: var(--wk-line-strong); margin: 0 12px; min-width: 18px; }
.wk-stepper-bar.is-done { background: var(--wk-brand); }

@media (max-width: 620px) { .wk-stepper-label { display: none; } .wk-stepper-bar { margin: 0 6px; } }

/* --- Carte du formulaire --- */

.wk-signup-card {
  max-width: 740px;
  margin: 30px auto 0;
  background: var(--wk-surface);
  border: 1px solid var(--wk-line);
  border-radius: var(--wk-r-xl);
  padding: 32px;
  box-shadow: var(--wk-shadow);
}

.wk-signup-card--wide { max-width: 1060px; }

.wk-signup-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wk-signup-card > p.wk-sub { margin: 0 0 24px; color: var(--wk-ink-3); font-size: 14.5px; }

.wk-fieldset { border: 0; padding: 0; margin: 0 0 20px; }

.wk-fieldset legend {
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wk-ink-3);
  margin-bottom: 14px;
}

.wk-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--wk-line);
}

.wk-actions .wk-btn { min-height: 46px; padding: 12px 24px; }
.wk-actions-right { margin-left: auto; }

/* --- Étape 1 : choix du statut --- */

.wk-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.wk-choice-item { position: relative; }

.wk-choice-item input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}

.wk-choice-item label {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 16px;
  border: 2px solid var(--wk-line);
  border-radius: var(--wk-r-lg);
  background: var(--wk-surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wk-choice-item label:hover { border-color: var(--wk-ink-3); }

.wk-choice-item input:focus-visible + label {
  outline: 2px solid var(--wk-brand);
  outline-offset: 2px;
}

.wk-choice-item input:checked + label {
  border-color: var(--wk-brand);
  box-shadow: 0 0 0 4px rgba(14, 124, 142, 0.10);
}

.wk-choice-fig {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #FAFBFB 0%, #EAEFF0 100%);
  border-bottom: 1px solid var(--wk-line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.wk-choice-fig img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 10%;
  box-sizing: border-box; mix-blend-mode: multiply;
}

/* Photographie de mise en situation : plein cadre. */
.wk-choice-fig--photo { aspect-ratio: 4 / 3; background: var(--wk-surface-sunken); }

.wk-choice-fig--photo img {
  object-fit: cover; object-position: center 28%;
  padding: 0; mix-blend-mode: normal;
}

.wk-choice-body { padding: 0 16px; display: flex; flex-direction: column; flex: 1; }

.wk-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.wk-choice-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

.wk-choice-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--wk-brand); color: #fff; padding: 3px 8px; border-radius: 999px;
}

.wk-choice-price {
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
  margin: 6px 0 2px; font-variant-numeric: tabular-nums;
}

.wk-choice-price small { font-size: 12px; font-weight: 500; color: var(--wk-ink-3); }

.wk-choice-tag { font-size: 12.5px; line-height: 1.45; color: var(--wk-ink-3); margin: 6px 0 12px; }

.wk-choice-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }

.wk-choice-list li {
  display: flex; gap: 7px; font-size: 12.5px; line-height: 1.4; color: var(--wk-ink-2);
}

.wk-choice-list li::before { content: "✓"; color: var(--wk-brand); font-weight: 800; flex-shrink: 0; }

.wk-choice-pick {
  margin-top: auto;
  text-align: center;
  padding: 9px;
  border-radius: var(--wk-r-sm);
  background: var(--wk-canvas);
  font-size: 13px;
  font-weight: 650;
  color: var(--wk-ink-3);
}

.wk-choice-item input:checked + label .wk-choice-pick {
  background: var(--wk-brand); color: #fff;
}

.wk-choice-item input:checked + label .wk-choice-pick::before { content: "✓ "; }

.wk-common {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--wk-r-md);
  background: var(--wk-canvas);
  border: 1px solid var(--wk-line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--wk-ink-3);
}

/* --- Étape 3 : récapitulatif --- */

.wk-recap {
  border: 1px solid var(--wk-line);
  border-radius: var(--wk-r-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.wk-recap-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--wk-canvas);
  border-bottom: 1px solid var(--wk-line);
}

.wk-recap-head img {
  width: 54px; height: 54px; object-fit: contain;
  background: var(--wk-surface); border-radius: var(--wk-r-sm);
  padding: 5px; box-sizing: border-box; flex-shrink: 0;
}

.wk-recap-head-txt { flex: 1; min-width: 0; }
.wk-recap-head-txt span { display: block; font-size: 11.5px; color: var(--wk-ink-3); }
.wk-recap-head-txt b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

.wk-recap-price {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.wk-recap-price small { display: block; font-size: 11px; font-weight: 500; color: var(--wk-ink-3); text-align: right; }

.wk-recap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--wk-line); }

.wk-recap-cell { background: var(--wk-surface); padding: 11px 16px; min-width: 0; }
.wk-recap-cell span { display: block; font-size: 11px; color: var(--wk-ink-3); }
.wk-recap-cell b { font-size: 13.5px; font-weight: 600; word-break: break-word; }

.wk-recap-edit {
  padding: 11px 16px;
  background: var(--wk-surface);
  border-top: 1px solid var(--wk-line);
  text-align: right;
}

.wk-consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.5; color: var(--wk-ink-2);
  margin: 0;
  font-weight: 400;
}

.wk-consent input { width: auto; margin-top: 2px; flex-shrink: 0; }

.wk-hp { position: absolute; left: -9999px; }

.wk-done {
  max-width: 620px; margin: 40px auto 0; text-align: center;
  background: var(--wk-surface); border: 1px solid var(--wk-line);
  border-radius: var(--wk-r-xl); padding: 44px 32px; box-shadow: var(--wk-shadow);
}

.wk-done-mark {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--wk-ok-wash);
  display: flex; align-items: center; justify-content: center;
}

.wk-done-mark svg { width: 28px; height: 28px; stroke: var(--wk-ok-ink); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 860px) { .wk-choice { grid-template-columns: 1fr; } }

@media (max-width: 620px) {
  .wk-signup-card { padding: 22px 18px; border-radius: var(--wk-r-lg); margin-top: 20px; }
  .wk-recap-list { grid-template-columns: 1fr; }
  .wk-actions { flex-direction: column-reverse; align-items: stretch; }
  .wk-actions .wk-btn { width: 100%; }
  .wk-actions-right { margin-left: 0; }
  .wk-form-row { grid-template-columns: 1fr; }
}
