/* t1713 — inscription + connexion (maquettes). Inter locale, aucun CDN. CSP : fichier seul. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700.woff2") format("woff2"); }

.wf-auth {
  --wf-gold: rgb(var(--ws-jaune, 241 191 93)); /* WF-REDISPATCH-0212 : or #F1BF5D = jeton --ws-jaune (brand.css), maquette t1799 */
  --wf-gold-dim: #e2b55b;
  --wf-ink: #090b0f;
  --wf-bg: #07080c;
  --wf-card: #14171e;
  --wf-card-border: rgba(241, 191, 93, 0.16);
  --wf-input: #0c0e13;
  --wf-muted: #9aa0ab;
  --wf-line: rgba(255, 255, 255, 0.08);
  --wf-radius: 18px;
  font-family: Inter, system-ui, sans-serif;
  color: #f4f5f7;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background: transparent;
}
.wf-auth *, .wf-auth *::before, .wf-auth *::after { box-sizing: border-box; }

.wf-auth-fond {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% 20%, rgba(241, 191, 93, 0.10), transparent 60%),
    radial-gradient(800px 480px at 88% 80%, rgba(201, 149, 39, 0.10), transparent 62%),
    #07080c;
}
.wf-auth-fond .wf-auth-reseau { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.wf-auth-top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 8, 12, 0.86);
  border-bottom: 1px solid var(--wf-line);
  backdrop-filter: blur(12px);
}
.wf-auth-top-inner {
  max-width: 1600px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wf-auth-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; min-height: 44px; }
.wf-auth-mark { width: 36px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.wf-auth-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.wf-auth-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: #fff; }
.wf-auth-name span { color: var(--wf-gold); }
.wf-auth-sub { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; color: #c9a44a; text-transform: uppercase; margin-top: 0.15rem; }
.wf-auth-top-actions { display: flex; align-items: center; gap: 0.85rem; }
.wf-auth-already { margin: 0; font-size: 0.85rem; color: #c5c8d0; }
.wf-auth-already a { color: var(--wf-gold); font-weight: 600; text-decoration: none; }
.wf-auth-already a:hover { text-decoration: underline; }
.wf-auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 1.05rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.wf-auth-btn-ghost { color: var(--wf-gold); border: 1px solid var(--wf-gold); background: transparent; }
.wf-auth-btn-ghost:hover { background: rgba(241, 191, 93, 0.08); }
.wf-auth-btn-dark { color: #fff; background: #1a1d24; border: 1px solid rgba(255,255,255,0.14); }
.wf-auth-btn-dark:hover { border-color: rgba(255,255,255,0.28); }
.wf-auth-btn-gold { color: var(--wf-ink); background: var(--wf-gold); border: 1px solid var(--wf-gold); }
.wf-auth-btn-gold:hover { filter: brightness(1.06); }

.wf-auth-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  gap: 2.5rem 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.wf-auth-main--login {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px);
  align-items: center;
}
.wf-auth-left { min-width: 0; }
.wf-auth-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(241, 191, 93, 0.45);
  background: rgba(20, 16, 8, 0.7);
  color: var(--wf-gold); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 1.15rem;
}
.wf-auth-title {
  margin: 0 0 0.85rem; font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; color: #fff;
  max-width: 9.5em;
}
.wf-auth-lead {
  margin: 0 0 0.7rem; font-size: 1.15rem; font-weight: 600; color: #eceef2; line-height: 1.35; max-width: 22em;
}
.wf-auth-trial { margin: 0 0 1.5rem; font-size: 0.95rem; color: var(--wf-muted); }
.wf-auth-features { display: flex; flex-direction: column; gap: 0.7rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.wf-auth-feat {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  background: rgba(16, 18, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.wf-auth-feat-ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(241, 191, 93, 0.12); color: var(--wf-gold);
}
.wf-auth-feat h2, .wf-auth-feat h3 { margin: 0 0 0.15rem; font-size: 0.95rem; font-weight: 700; color: #fff; }
.wf-auth-feat p { margin: 0; font-size: 0.8rem; color: var(--wf-muted); line-height: 1.35; }

.wf-auth-features--row { flex-direction: row; flex-wrap: wrap; }
.wf-auth-features--row .wf-auth-feat {
  flex: 1 1 9.5rem; flex-direction: column; align-items: flex-start; gap: 0.55rem;
  padding: 0.9rem 0.85rem 1rem;
}
.wf-auth-trust { display: flex; flex-wrap: wrap; gap: 0.55rem 1.15rem; margin: 0; padding: 0; list-style: none; color: #b7bcc6; font-size: 0.78rem; }
.wf-auth-trust li { display: inline-flex; align-items: center; gap: 0.35rem; }
.wf-auth-trust svg { color: var(--wf-gold); flex: 0 0 auto; }

.wf-auth-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 1rem; align-items: center; }
.wf-auth-main--login .wf-auth-stage { grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); gap: 1.25rem 1.5rem; align-items: center; }
.wf-auth-illu { width: 100%; max-width: 320px; justify-self: center; filter: drop-shadow(0 12px 40px rgba(241, 191, 93, 0.18)); }
.wf-auth-main--login .wf-auth-illu { max-width: 480px; }
.wf-auth-illu img, .wf-auth-illu svg { width: 100%; height: auto; display: block; }

/* WF-REDISPATCH-0212 (Cédric t1833–t1836) : bloc transparent (le réseau doré reste visible), contour fin légèrement doré,
   connexion ET inscription. Avant : linear-gradient(180deg, #1a1d24 0%, #12141a 100%) opaque + ombre portée. */
.wf-auth-card {
  background: transparent;
  border: 1px solid rgb(var(--ws-jaune, 241 191 93) / 0.35);
  border-radius: 22px;
  box-shadow: none;
  padding: 1.7rem 1.55rem 1.5rem;
  width: 100%;
}
.wf-auth-card-title { margin: 0 0 0.35rem; text-align: center; font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.wf-auth-card-lead { margin: 0 0 1.2rem; text-align: center; font-size: 0.82rem; color: var(--wf-muted); line-height: 1.4; }

.wf-auth-oauth { display: flex; gap: 0.55rem; margin: 0 0 0.95rem; }
.wf-auth-oauth-btn, a.wf-auth-oauth-btn {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 42px; padding: 0 0.6rem; border-radius: 999px;
  background: #0a0c10; color: #fff; border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit;
}
.wf-auth-oauth-btn:hover { border-color: rgba(255,255,255,0.22); }
.wf-auth-oauth-btn.is-off, .wf-auth-oauth-btn:disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}
.wf-auth-oauth-google {
  width: 100%; background: #fff; color: #1f1f1f; border: 0;
  border-radius: 12px; min-height: 44px; font-size: 0.88rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  text-decoration: none; font-family: inherit; cursor: pointer; margin: 0 0 0.85rem;
}
.wf-auth-oauth-google:hover { filter: brightness(0.97); }
.wf-auth-oauth-google.is-off, .wf-auth-oauth-google:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.wf-auth-sep { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1rem; color: #8b909a; font-size: 0.75rem; }
.wf-auth-sep::before, .wf-auth-sep::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(255,255,255,0.1); }

.wf-auth-form { display: flex; flex-direction: column; gap: 0.7rem; }
.wf-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.wf-auth-field label { display: block; font-size: 0.75rem; font-weight: 600; color: #c5c8d0; margin: 0 0 0.28rem; }
.wf-auth-field .wf-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.28rem; }
.wf-auth-field .wf-auth-label-row label { margin: 0; }
.wf-auth-forgot { font-size: 0.75rem; font-weight: 600; color: var(--wf-gold); text-decoration: none; }
.wf-auth-forgot:hover { text-decoration: underline; }
.wf-auth-input, .wf-auth-field input, .wf-auth-field select {
  width: 100%; min-height: 42px; padding: 0.55rem 0.85rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: var(--wf-input); color: #f4f5f7;
  font: 400 0.88rem/1.3 Inter, system-ui, sans-serif;
  outline: none;
}
.wf-auth-field input::placeholder, .wf-auth-field select:invalid { color: #6b717c; }
.wf-auth-field input:focus, .wf-auth-field select:focus { border-color: rgba(241, 191, 93, 0.55); }
.wf-auth-pw { position: relative; }
.wf-auth-pw input { padding-right: 2.6rem; }
.wf-auth-eye {
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; color: #9aa0ab;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 8px;
}
.wf-auth-eye:hover { color: #fff; }
.wf-auth-eye .wf-auth-eye-off { display: none; }
.wf-auth-eye.is-on .wf-auth-eye-on { display: none; }
.wf-auth-eye.is-on .wf-auth-eye-off { display: block; }

.wf-auth-pwd-hints { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0.15rem 0 0; padding: 0; list-style: none; font-size: 0.72rem; color: #8b909a; }
.wf-auth-pwd-hints li { display: inline-flex; align-items: center; gap: 0.28rem; }
.wf-auth-pwd-hints li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1.5px solid #5c616a; flex: 0 0 auto; background: transparent; }
.wf-auth-pwd-hints li.is-ok { color: #7dcc7a; }
.wf-auth-pwd-hints li.is-ok::before { border-color: #7dcc7a; background: #7dcc7a; box-shadow: inset 0 0 0 2px var(--wf-input); }

.wf-auth-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.7rem; color: #b7bcc6; line-height: 1.45; }
.wf-auth-consent input { margin-top: 0.15rem; flex: 0 0 auto; accent-color: var(--wf-gold); width: 0.95rem; height: 0.95rem; }
.wf-auth-consent a { color: var(--wf-gold); text-decoration: none; }
.wf-auth-consent a:hover { text-decoration: underline; }

.wf-auth-submit {
  width: 100%; min-height: 46px; margin-top: 0.25rem; border: 0; border-radius: 12px;
  background: var(--wf-gold); color: var(--wf-ink); font: 700 0.95rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.wf-auth-submit:hover { filter: brightness(1.05); }
.wf-auth-after { margin: 0.95rem 0 0; text-align: center; font-size: 0.8rem; color: var(--wf-muted); }
.wf-auth-after a { color: var(--wf-gold); font-weight: 600; text-decoration: none; }
.wf-auth-after a:hover { text-decoration: underline; }

.wf-auth-alert { font-size: 0.78rem; text-align: center; padding: 0.65rem 0.75rem; border-radius: 10px; margin: 0 0 0.85rem; }
.wf-auth-alert-err { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.wf-auth-alert-ok { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.wf-auth-alert-info { background: rgba(10, 10, 10, 0.6); border: 1px solid rgb(var(--ws-jaune, 241 191 93) / 0.4); color: rgb(var(--ws-jaune-clair, 246 213 150)); }
.wf-auth-note { margin: 0 0 0.6rem; font-size: 0.78rem; color: var(--wf-muted); }
.wf-auth-cancel { margin: 0.8rem 0 0; text-align: center; font-size: 0.75rem; color: var(--wf-muted); }
.wf-auth-cancel a { color: #d1d5db; text-decoration: underline; }

.wf-auth-foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--wf-line);
  background: rgba(5, 6, 9, 0.92);
  padding: 0.85rem 1.25rem;
}
.wf-auth-foot-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; flex-wrap: nowrap;
}
.wf-auth-foot-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.15rem 0.15rem; flex: 1 1 auto; min-width: 0; }
.wf-auth-foot-nav > a {
  color: #9aa0ab; text-decoration: none; font-size: 0.75rem;
  padding: 0 0.55rem; min-height: 36px; display: inline-flex; align-items: center;
}
.wf-auth-foot-nav > a:hover { color: var(--wf-gold); }
.wf-auth-foot-nav > a + a { border-left: 0; }
.wf-auth-foot-nav > a + a::before { content: "·"; margin-right: 0.55rem; color: #4b5060; }
.wf-auth-copy { margin: 0 0 0 auto; font-size: 0.72rem; color: #8b909a; white-space: nowrap; flex: 0 0 auto; }
.wf-auth-lang { margin-right: 0.5rem; }
.wf-auth-foot .ws-lang-sum {
  list-style: none; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
  background: #14161c; color: #eceef2; font-size: 0.78rem; cursor: pointer; min-height: 34px;
}
.wf-auth-foot .ws-lang-sum::-webkit-details-marker { display: none; }
.wf-auth-foot .ws-lang { position: relative; }
.wf-auth-foot .ws-lang-list {
  position: absolute; left: 0; bottom: calc(100% + 6px);
  margin: 0; padding: 0.35rem 0; list-style: none;
  background: #16181e; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  min-width: 10rem; z-index: 8; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.wf-auth-foot .ws-lang-link { display: block; padding: 0.35rem 0.8rem; color: #eceef2; text-decoration: none; font-size: 0.8rem; }
.wf-auth-foot .ws-lang-link:hover, .wf-auth-foot .ws-lang-link[aria-current="true"] { color: var(--wf-gold); }

@media (max-width: 960px) {
  .wf-auth-main, .wf-auth-main--login { grid-template-columns: 1fr; padding: 1.5rem 1rem 2rem; gap: 1.6rem; }
  .wf-auth-stage, .wf-auth-main--login .wf-auth-stage { grid-template-columns: 1fr; }
  .wf-auth-illu, .wf-auth-main--login .wf-auth-illu { max-width: 240px; order: -1; }
  .wf-auth-card { max-width: 440px; margin: 0 auto; }
  .wf-auth-already { display: none; }
}
@media (max-width: 640px) {
  .wf-auth-top-inner { padding: 0.7rem 0.9rem; }
  .wf-auth-sub { display: none; }
  .wf-auth-row { grid-template-columns: 1fr; }
  .wf-auth-features--row { flex-direction: column; }
  .wf-auth-oauth { flex-direction: column; }
  .wf-auth-title { font-size: 1.85rem; }
  .wf-auth-foot-inner { flex-direction: column; align-items: flex-start; flex-wrap: wrap; }
  .wf-auth-foot-nav { flex-wrap: wrap; }
  .wf-auth-copy { margin-left: 0; white-space: normal; }
  .wf-auth-btn { padding: 0 0.8rem; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-auth-btn, .wf-auth-submit { transition: none; }
}

/* ===== WF-REDISPATCH-0212 — maquette t1799 validée (Cédric t1820 « parfait », GO t1821, t1831) =====
   Source : /workspace/maquettes-auth-t1799/site/assets/css/maquette-auth.css, or = jeton --ws-jaune (#F1BF5D).
   Les deux blocs côte à côte, regroupés au milieu (pas collés aux bords), connexion ET inscription. */
.wf-auth-main,
.wf-auth-main--login {
  width: fit-content;
  max-width: min(1180px, calc(100vw - 3rem));
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  grid-template-columns: minmax(280px, 520px) minmax(340px, 420px);
  column-gap: 3rem;
  row-gap: 2rem;
}
/* Connexion : le globe ne doit pas élargir le bloc de gauche jusqu'au bord */
.wf-auth-main--login .wf-auth-stage {
  grid-template-columns: minmax(180px, 280px) minmax(160px, 240px);
}
.wf-auth-main--login .wf-auth-illu,
.wf-auth-main--login .wf-auth-illu img {
  max-width: 240px;
}
/* Menu = accueil Finance (accueil-na.css), fond noir, or de base #F1BF5D */
.wf-auth .wf-na .navbar { background: #000; }
.wf-auth .wf-na .brand-name span,
.wf-auth .wf-na .nav-links a:hover,
.wf-auth .wf-na .btn-login:hover { color: rgb(var(--ws-jaune, 241 191 93)); }
.wf-auth .wf-na .btn-gold {
  background: rgb(var(--ws-jaune, 241 191 93));
  color: #0A0D12;
  box-shadow: none;
  border-color: rgb(var(--ws-jaune, 241 191 93));
}
@media (max-width: 900px) {
  .wf-auth-main,
  .wf-auth-main--login {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* ===== WF-AUTH-MOBILE (Cédric t1937) — /login et /register sur téléphone et tablette, ≤ 900px seulement =====
   Bureau ≥ 901px inchangé. Le bloc t1799 ci-dessus passait APRÈS le @media 960px et gardait le stage connexion sur
   2 colonnes (180 + 160 px), les champs à 0.88rem (zoom iOS au focus) et un max-width calculé avec 100vw. Ici : même
   intention que le @media 960px (1 colonne, globe 240px max au-dessus du titre), placé en dernier pour gagner. */
@media (max-width: 900px) {
  .wf-auth-main,
  .wf-auth-main--login {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 1.6rem;
  }
  .wf-auth-main--login .wf-auth-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .wf-auth-main--login .wf-auth-illu,
  .wf-auth-main--login .wf-auth-illu img {
    max-width: 240px;
  }
  .wf-auth-main--login .wf-auth-illu { order: -1; }
  .wf-auth-card { max-width: 440px; }

  /* Champs à 16px : iOS ne zoome plus au focus. Cibles tactiles ≥ 44px. */
  .wf-auth-input, .wf-auth-field input, .wf-auth-field select { font-size: 16px; min-height: 44px; }
  .wf-auth-pw input { padding-right: 3rem; }
  .wf-auth-eye { width: 44px; height: 44px; right: 0; }
  .wf-auth-oauth-btn, a.wf-auth-oauth-btn { min-height: 44px; }
  .wf-auth-field .wf-auth-label-row { align-items: center; margin: 0; }
  .wf-auth-forgot { display: inline-flex; align-items: center; min-height: 44px; }
  .wf-auth-after a, .wf-auth-cancel a { display: inline-flex; align-items: center; min-height: 44px; }
  .wf-auth-consent input { width: 1.5rem; height: 1.5rem; margin-top: 0.3rem; }
  .wf-auth-consent label { display: block; min-height: 44px; padding: 0.55rem 0; }
}
