/* Pages de compte v4 : connexion, inscription, mot de passe, lien de connexion, bienvenue (maquette 12a). */

.wpau { padding: 40px 0 64px; }
.wpau__wrap { display: flex; justify-content: center; }

.wpau__card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--wp-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(40, 30, 10, .25);
}
.wpau__card--solo { max-width: 620px; grid-template-columns: 1fr; min-height: 0; }
.wpau__card--wide { max-width: 760px; }

/* Visuel */
.wpau__visual { position: relative; min-height: 260px; color: #FBF9F4; }
.wpau__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpau__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 26, 23, .2), rgba(27, 26, 23, .85));
}
.wpau__visual-in {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wpau__logo { width: 64px; height: 64px; }
.wpau__claim { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.wpau__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wpau__perks li { display: flex; gap: 8px; font-size: 14px; }
.wpau__perks li::before { content: "✓"; color: var(--wp-acc); font-weight: 900; }

/* Panneau */
.wpau__panel {
  background: var(--wp-paper);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.wpau__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--wp-sand-2);
  border-radius: 12px;
  padding: 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.wpau__tabs a { padding: 10px; border-radius: 9px; color: var(--wp-ink-2); text-decoration: none; }
.wpau__tabs a:hover { color: var(--wp-ink); }
.wpau__tabs a[aria-current="page"] { background: var(--wp-paper); color: var(--wp-ink); box-shadow: 0 1px 2px rgba(40, 30, 10, .08); }

.wpau__kick { margin: 0; font-family: var(--wp-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wp-muted); }
.wpau__title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.wpau__lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--wp-ink-2); }
.wpau__small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--wp-muted); }

.wpau__alert {
  border-radius: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--wp-danger) 10%, var(--wp-paper));
  border: 1px solid color-mix(in srgb, var(--wp-danger) 35%, transparent);
  color: var(--wp-danger);
  font-size: 14px;
  font-weight: 600;
}
.wpau__alert p { margin: 0; }
.wpau__alert p + p { margin-top: 4px; }
.wpau__note {
  margin: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--wp-sand);
  font-size: 14px;
  line-height: 1.45;
}

/* Fournisseurs sociaux */
.wpau__social { display: flex; flex-direction: column; gap: 10px; }
.wpau__provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--wp-line-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wp-ink);
  text-decoration: none;
  background: var(--wp-paper);
}
.wpau__provider:hover { border-color: var(--wp-ink); }
.wpau__provider::before { font-weight: 900; font-size: 17px; width: 18px; text-align: center; }
.wpau__provider--google::before { content: "G"; color: #4285F4; }
.wpau__provider--facebook::before { content: "f"; color: #1877F2; }

.wpau__or { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: var(--wp-faint); }
.wpau__or::before, .wpau__or::after { content: ""; flex: 1; height: 1px; background: var(--wp-line); }

/* Formulaires */
.wpau__form { display: flex; flex-direction: column; gap: 12px; }
.wpau__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wpau__field { display: flex; flex-direction: column; gap: 4px; }
.wpau__field > span { font-size: 13px; font-weight: 600; }
.wpau__field em { font-style: normal; font-weight: 400; color: var(--wp-faint); }
.wpau__field .wp-input:focus, .wpau__field .wp-select:focus { border-color: var(--wp-ink); }
.wpau__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--wp-ink-2); cursor: pointer; }
.wpau__check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--wp-ink); flex-shrink: 0; }
.wpau__check a { color: var(--wp-ink); font-weight: 600; }
.wpau__more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--wp-ink-2); }
.wpau__more[open] summary { margin-bottom: 10px; }

.wpau__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wpau__row--between { justify-content: space-between; }
.wpau__row .wpau__check { align-items: center; }
.wpau__row .wpau__check input { margin-top: 0; }

.wpau__hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--wp-muted); text-align: center; }
.wpau__hint a, .wpau__foot a { color: var(--wp-ink); font-weight: 700; }
.wpau__foot { margin: 0; border-top: 1px solid var(--wp-line); padding-top: 12px; font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }

.wpau__sent { display: flex; flex-direction: column; gap: 12px; }
.wpau__sent p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--wp-ink-2); }
.wpau__sent .wpau__small { font-size: 13px; }
.wpau__sent-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: color-mix(in srgb, var(--wp-acc) 16%, var(--wp-paper));
  color: var(--wp-acc-2);
}

/* Assistant de bienvenue */
.wpau__steps { display: flex; gap: 6px; font-size: 12px; font-weight: 700; }
.wpau__steps span { flex: 1; padding: 8px; border-radius: 8px; text-align: center; background: var(--wp-sand); color: var(--wp-muted); }
.wpau__steps span.is-on { background: var(--wp-ink); color: var(--wp-paper); }
.wpau__steps span.is-done { background: var(--wp-dark); color: var(--wp-on-dark); }
.wpau__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wpau__chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--wp-line-2);
  background: var(--wp-paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.wpau__chips .chip input { position: absolute; opacity: 0; pointer-events: none; }
.wpau__chips .chip.is-on, .wpau__chips .chip:has(input:checked) { background: var(--wp-ink); border-color: var(--wp-ink); color: var(--wp-paper); }
.wpau__chips .chip:focus-within { outline: 2px solid var(--wp-acc); outline-offset: 2px; }
.wpau__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--wp-line); }
.wpau__actions [data-wizard-next], .wpau__actions [data-wizard-finish] { margin-left: auto; }
.wpau [hidden] { display: none !important; }

@media (max-width: 860px) {
  .wpau { padding: 0 0 40px; }
  .wpau__wrap { padding: 0; }
  .wpau__card { grid-template-columns: 1fr; min-height: 0; border-radius: 0; box-shadow: none; }
  .wpau__visual { min-height: 220px; }
  .wpau__visual-in { left: 20px; right: 20px; bottom: 18px; gap: 8px; }
  .wpau__logo { width: 44px; height: 44px; }
  .wpau__claim { font-size: 24px; }
  .wpau__perks { display: none; }
  .wpau__panel { padding: 24px 20px 28px; justify-content: flex-start; }
  .wpau__card--solo { margin: 16px var(--wp-gut, 16px) 0; border-radius: 14px; }
}

@media (max-width: 420px) {
  .wpau__grid { grid-template-columns: 1fr; }
}
