/* NSX Kompetenz — Elite, pages publiques (etape 20.4, 31.10.2026).
   Accueil (landing.html), inscription (register.html), verification
   (verify.html, verify_code.html). Remplace Tailwind CDN et les polices
   distantes : complete nsx_components.css (kx-*) et, pour l'inscription et la
   verification, shared/auth.css (nsx-auth-*, comme la connexion Elite).
   Prefixe el-pub-. Couleurs nommees de nsx_theme.css uniquement ; rayons
   pilule / 18 / 10 / 6 px ; titres en 800 ; aucun texte sous 12 px.
   Proprietes logiques pour l'arabe. */

/* ── Coque visiteur (en-tete de base.html) ───────────────────────────────
   Le preflight Tailwind posait ces bases ; sans lui, on les remet ici, pour
   la seule coque visiteur (la coque connectee a body.elite-app, elite.css). */
body:not(.elite-app) {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

body:not(.elite-app) *,
body:not(.elite-app) *::before,
body:not(.elite-app) *::after {
  box-sizing: border-box;
}

/* En-tete visiteur : textes a 12 px minimum et cibles de 44 px, boutons en
   pilule (regles de Rayen). Correctif local aux pages publiques Elite, a
   reporter un jour dans nsx_theme.css (le pied de page commun, phase 21, a ete annule). */
.nsx-topbar .nsx-brand-copy span.nsx-brand-org {
  font-size: 0.75rem;
}

.nsx-topbar .nsx-brand-copy span.nsx-brand-tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--nsx-orange-dark);
}

.nsx-topbar .nsx-dropdown-trigger,
.nsx-topbar .nsx-quick-link {
  min-height: 2.75rem;
  padding-inline: 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
}

.nsx-topbar .nsx-dropdown-item {
  min-height: 2.75rem;
  font-size: 0.875rem;
}

/* ── Bases communes ──────────────────────────────────────────────────── */
.el-pub :is(h1, h2, h3, p, ul, ol) {
  margin: 0;
}

/* Sur-titre (kx-eyebrow) en orange fonce, comme l'accueil Governance : 7:1. */
.el-pub .el-pub-eyebrow {
  color: var(--nsx-orange-dark);
  letter-spacing: 0.14em;
}

/* ── Accueil : hero ──────────────────────────────────────────────────── */
.el-pub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 2.5rem 4rem;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem);
}

.el-pub-hero__copy,
.el-pub-stats {
  position: relative;
  min-width: 0;
}

.el-pub-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.el-pub-hero__brand {
  letter-spacing: 0.12em;
}

.el-pub-hero__title {
  color: var(--nsx-pole-elite);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.el-pub-hero__lead {
  max-width: 36rem;
  color: var(--nsx-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

.el-pub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.el-pub-btn {
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-size: 1rem;
}

.el-pub-btn.kx-btn--primary {
  font-weight: 800;
}

/* Chiffres : une colonne de trois cellules kx-stat. */
.el-pub-stats {
  grid-template-columns: minmax(0, 1fr);
}

/* ── Accueil : trois points forts ────────────────────────────────────── */
.el-pub-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 2rem 1rem;
  border-top: 1px solid var(--nsx-border);
}

.el-pub-why__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.el-pub-why__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--nsx-radius-md);
  background: var(--nsx-orange-tint);
  color: var(--nsx-orange-dark);
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.el-pub-h2 {
  color: var(--nsx-pole-elite);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
}

.el-pub-why__item p {
  color: var(--nsx-text-muted);
  line-height: 1.65;
}

/* ── Inscription : formulaire + encart Parcours NSX ──────────────────── */
.el-pub-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 2rem 3rem;
  padding-block: 1rem 1.5rem;
}

/* La carte d'auth (auth.css) est bornee a 30rem pour la connexion ; le
   formulaire d'inscription a deux colonnes de champs. */
.el-pub-auth .el-pub-auth__card {
  max-width: none;
  justify-self: stretch;
}

.el-pub-notice__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.el-pub-strong {
  font-weight: 800;
}

.el-pub .el-pub-errlist {
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.el-pub-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.el-pub-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.125rem 1.25rem;
}

/* Un champ ne s'etire pas a la hauteur de son voisin (telephone sur deux lignes). */
.el-pub-fields > .nsx-auth-field {
  align-content: start;
}

.el-pub-span {
  grid-column: 1 / -1;
}

.el-pub-form .kx-select {
  padding-inline-end: 2.5rem;
}

.el-pub-error {
  font-weight: 700;
}

.el-pub-group {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nsx-border);
}

.el-pub .el-pub-group__title {
  color: var(--nsx-pole-elite);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
}

.el-pub-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding-top: 1rem;
}

.el-pub-aside__title {
  color: var(--nsx-pole-elite);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.el-pub-aside__copy {
  color: var(--nsx-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.el-pub-steps {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  border-top: 1px solid var(--nsx-border);
}

.el-pub-step {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--nsx-border);
}

.el-pub .el-pub-step__title {
  color: var(--nsx-orange-dark);
}

.el-pub-step p {
  color: var(--nsx-text-muted);
  line-height: 1.6;
}

/* ── Verification : carte centree ────────────────────────────────────── */
/* nsx-auth-shell (theme) occupe tout l'ecran ; dans la coque, juste centre. */
.el-pub.el-pub-shell {
  min-height: 0;
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.el-pub-shell .el-pub-card {
  justify-self: center;
}

.el-pub-card--center {
  text-align: center;
}

.el-pub-card--center .nsx-auth-notice {
  text-align: start;
}

.el-pub-card .nsx-auth-notice + .kx-btn {
  margin-top: 0.5rem;
}

/* Libelle qui contient son champ (verify_code) : meme style que les
   libelles des pages d'auth. */
.el-pub-label > span {
  color: var(--nsx-text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ── Points de rupture du theme (960, 640) ───────────────────────────── */
@media (max-width: 960px) {
  .el-pub-hero,
  .el-pub-auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .el-pub-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  }

  .el-pub-why {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .el-pub-hero__actions .kx-btn {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
  }
}
