/* NSX Kompetenz — Governance, accueil public (talents/landing.html).
   Etape 8.9 (31.10.2026), d'apres la maquette « Accueil public » approuvee par
   Rayen (ordinateur et telephone 390 px). Charge apres nsx_theme.css et
   nsx_components.css ; jetons du theme seulement (couleurs nommees, regle de
   Rayen du 31.10.2026), sauf l'encre du pied de page, refait a la phase 21.
   Proprietes logiques pour l'arabe. */

.gl-page {
  /* Etape 20.3b : plus de code couleur, jetons existants les plus proches.
     Texte secondaire : --nsx-text-muted (4,7:1 sur la page, au lieu de la
     valeur de maquette a 7,0:1). Filet des etapes : --nsx-border (navy 12 %,
     au lieu de 16 %). Texte du pied (6.9:1 sur blanc) : inchange, phase 21. */
  --gl-ink-soft: var(--nsx-text-muted);
  --gl-step-line: var(--nsx-border);
  --gl-footer-ink: rgba(9, 66, 104, 0.8);
  margin: 0;
  overflow-x: hidden;
  background: var(--nsx-page);
  color: var(--nsx-text);
  font-family: var(--nsx-font-body);
  font-size: 1rem;
  line-height: 1.6;
}

.gl-page *,
.gl-page *::before,
.gl-page *::after {
  box-sizing: border-box;
}

.gl-page p,
.gl-page h1,
.gl-page h2,
.gl-page h3,
.gl-page ol {
  margin: 0;
}

/* Textes par langue (governance-landing.js) : une classe qui fixe display
   l'emporterait sur l'attribut hidden. */
.gl-page [hidden] {
  display: none;
}

/* Sur-titre des sections (maquette 8.9) : orange fonce, 7.1:1 sur la page. */
.gl-eyebrow {
  color: var(--nsx-orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gl-page :focus-visible {
  outline: 2px solid var(--nsx-pole-elite);
  outline-offset: 2px;
}

.gl-wrap {
  width: 100%;
  max-width: calc(var(--nsx-content-max) + 64px);
  margin-inline: auto;
  padding-inline: 32px;
}

/* ── En-tete ── */
.gl-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--nsx-nav-border);
  background: var(--nsx-nav);
}

.gl-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.gl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.gl-brand__logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.gl-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.gl-brand__name {
  color: var(--nsx-pole-elite);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gl-brand__org {
  color: var(--gl-ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.gl-brand__tag {
  color: var(--nsx-orange-dark);
}

.gl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gl-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.gl-menu__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  color: var(--nsx-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

/* Le lien Connexion du panneau telephone ; au-dela, c'est la pilule. */
.gl-menu__login {
  display: none;
}

/* Selecteur de langue : pilule de 44 px, menu sous le bouton. */
.gl-lang {
  position: relative;
  margin-inline-start: 6px;
}

.gl-lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--nsx-lang-bd);
  border-radius: 999px;
  background: var(--nsx-lang-bg);
  color: var(--nsx-pole-elite);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
}

.gl-lang__trigger::-webkit-details-marker {
  display: none;
}

.gl-lang__chevron {
  transition: transform 160ms ease;
}

.gl-lang[open] .gl-lang__chevron {
  transform: rotate(180deg);
}

.gl-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  min-width: 11rem; /* noms des langues (« Français » … « العربية ») */
  padding-block: 6px;
  border: 1px solid var(--nsx-border);
  border-radius: var(--nsx-radius-md);
  background: var(--nsx-card);
  box-shadow: var(--nsx-shadow-raised);
}

.gl-lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  color: var(--nsx-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.gl-lang__item.is-active {
  color: var(--nsx-pole-elite);
  font-weight: 800;
}

.gl-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 20px;
  border: 1px solid var(--nsx-pole-elite);
  border-radius: 999px;
  color: var(--nsx-pole-elite);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gl-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nsx-pole-elite);
  cursor: pointer;
}

@media (hover: hover) {
  .gl-menu__link:hover,
  .gl-footer__link:hover,
  .gl-btn--link:hover {
    color: var(--nsx-text);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .gl-lang__trigger:hover,
  .gl-lang__item:hover {
    background: var(--nsx-navy-tint);
  }

  .gl-login:hover {
    background: var(--nsx-navy-tint);
  }

  .gl-btn--primary:hover {
    background: var(--nsx-brand-hover);
  }
}

/* ── Hero ── */
.gl-hero {
  position: relative;
  overflow: hidden;
}

.gl-hero__petal {
  position: absolute;
  top: -220px;
  inset-inline-end: -180px;
  width: 560px;
  height: 560px;
  border-radius: 0 100% 0 100%;
  background: var(--nsx-orange-tint);
  transform: rotate(14deg);
}

.gl-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
}

.gl-hero__copy {
  display: flex;
  flex: 1 1 500px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.gl-hero__title {
  color: var(--nsx-pole-elite);
  font-size: clamp(2.375rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-destination {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-destination.is-swapping {
  opacity: 0;
  transform: translateY(10px);
}

.gl-hero__lead {
  max-width: 540px;
  color: var(--gl-ink-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
}

.gl-hero__langs {
  margin-top: 8px;
  color: var(--gl-ink-soft);
  font-size: 0.875rem;
}

.gl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 1.0625rem;
  text-decoration: none;
}

/* Bouton principal : blanc sur l'orange de marque (exception decidee, opencode.md §9.0). */
.gl-btn--primary {
  background: var(--nsx-brand);
  color: var(--nsx-card);
  font-weight: 800;
  box-shadow: var(--nsx-shadow-soft);
}

.gl-btn--link {
  padding-inline: 26px;
  color: var(--nsx-pole-elite);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* La regle RTL du theme (`[dir="rtl"] a svg`) ajouterait une marge ; la
   fleche suit le sens de lecture. */
.gl-btn .gl-btn__icon {
  flex-shrink: 0;
  margin: 0;
}

[dir="rtl"] .gl-btn .gl-btn__icon {
  transform: scaleX(-1);
}

.gl-hero__visual {
  display: flex;
  flex: 0 1 440px;
  justify-content: center;
  min-width: 0;
  margin-inline: auto;
}

/* Scene carree de la maquette : logo a 80 %, trois etiquettes posees dessus. */
.gl-hero__stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
}

.gl-hero__mark {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
}

.gl-hero__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--nsx-card);
  box-shadow: var(--nsx-shadow);
  color: var(--nsx-pole-elite);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

/* Point de couleur en pseudo-element : le texte de l'etiquette reste seul
   dans l'element, remplacable par la traduction. */
.gl-hero__tag::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nsx-brand);
}

.gl-hero__tag--1 {
  top: 4%;
  inset-inline-end: 0;
}

.gl-hero__tag--2 {
  top: 46%;
  inset-inline-end: -6%;
}

.gl-hero__tag--2::before {
  background: var(--nsx-blue-light);
}

.gl-hero__tag--3 {
  bottom: 2%;
  inset-inline-start: 0;
}

.gl-hero__tag--3::before {
  background: var(--nsx-success);
}

/* ── Pourquoi ── */
.gl-why {
  border-block: 1px solid var(--nsx-border);
  background: var(--nsx-card);
}

.gl-why__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 80px;
  padding-block: clamp(56px, 7vw, 104px);
}

.gl-why__intro,
.gl-path__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.gl-why__intro {
  flex: 1 1 300px;
}

.gl-h2 {
  color: var(--nsx-pole-elite);
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.gl-why__lead,
.gl-path__lead {
  color: var(--gl-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.gl-why__list {
  display: flex;
  flex: 2 1 520px;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  list-style: none;
}

.gl-why__list .gl-why__item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--nsx-border);
}

.gl-why__list .gl-why__item:last-child {
  border-bottom: 1px solid var(--nsx-border);
}

.gl-why__num {
  flex: 0 0 48px;
  color: var(--nsx-orange-dark);
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gl-why__body {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gl-why__body p,
.gl-step p {
  color: var(--gl-ink-soft);
}

.gl-h3 {
  color: var(--nsx-pole-elite);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

/* ── Parcours ── */
.gl-path__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: clamp(56px, 7vw, 104px);
}

.gl-path__intro {
  max-width: 640px;
}

.gl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding: 0;
  list-style: none;
}

/* Deux classes : la regle RTL du theme (`[dir="rtl"] li`) remet les marges
   internes des <li> a zero. */
.gl-steps .gl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 28px 0 0;
  border-top: 2px solid var(--gl-step-line);
}

.gl-step::before {
  content: "";
  position: absolute;
  top: -9px;
  inset-inline-start: -9px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--nsx-page);
  border-radius: 50%;
  background: var(--nsx-brand);
}

.gl-step--2::before { background: var(--nsx-blue-light); }
.gl-step--3::before { border-color: var(--nsx-yellow-dark); background: var(--nsx-yellow); }
.gl-step--4::before { background: var(--nsx-success); }

.gl-step__num {
  color: var(--nsx-pole-elite);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ── Appel final (maquette 8.9) : aplat navy, texte blanc 10.6:1 ── */
.gl-cta {
  padding-bottom: clamp(56px, 7vw, 104px);
}

.gl-cta__card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--nsx-radius-xl);
  background: var(--nsx-pole-elite);
  color: var(--nsx-card);
}

/* Petales decoratifs (aria-hidden), dans les coins, hors du texte. */
.gl-cta__petal {
  position: absolute;
}

.gl-cta__petal--orange {
  bottom: -60px;
  inset-inline-end: -60px;
  width: 220px;
  height: 220px;
  border-start-start-radius: 100%;
  background: var(--nsx-brand);
}

.gl-cta__petal--blue {
  top: -50px;
  inset-inline-end: 120px;
  width: 110px;
  height: 110px;
  border-end-end-radius: 100%;
  background: var(--nsx-blue-light);
}

.gl-cta__petal--yellow {
  bottom: -40px;
  inset-inline-end: 180px;
  width: 80px;
  height: 80px;
  border-start-start-radius: 100%;
  background: var(--nsx-yellow);
}

.gl-cta__copy {
  position: relative;
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 560px;
}

.gl-cta__title {
  color: var(--nsx-card);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gl-cta__text {
  color: var(--nsx-card);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.gl-cta__btn {
  position: relative;
  white-space: nowrap;
}

/* ── Pied ── */
.gl-footer {
  border-top: 1px solid var(--nsx-border);
  background: var(--nsx-card);
}

.gl-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 48px 28px;
}

.gl-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.gl-footer__brand {
  display: flex;
  flex: 2 1 260px;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.gl-footer__logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.gl-footer__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.gl-footer__brand-copy strong {
  color: var(--nsx-pole-elite);
  font-size: 1.0625rem;
  font-weight: 800;
}

.gl-footer__brand-copy span {
  color: var(--gl-footer-ink);
  font-size: 0.875rem;
}

.gl-footer__col {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  min-width: 0;
}

.gl-footer__title {
  margin-bottom: 6px;
  color: var(--gl-footer-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gl-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nsx-pole-elite);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.gl-footer__credit {
  padding-top: 20px;
  border-top: 1px solid var(--nsx-border);
  color: var(--gl-footer-ink);
  font-size: 0.875rem;
}

/* ── Responsive (points de rupture du theme : 960, 768, 640) ── */
@media (max-width: 960px) {
  .gl-wrap {
    padding-inline: 20px;
  }

  .gl-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Bandeau final empile : petales plus petits, tenus dans les coins, pour
     que le blanc ne passe jamais sur le bleu clair (3.4:1) ou l'orange. */
  .gl-cta__petal--orange {
    bottom: -50px;
    inset-inline-end: -50px;
    width: 150px;
    height: 150px;
  }

  .gl-cta__petal--blue {
    top: -48px;
    inset-inline-end: 24px;
    width: 72px;
    height: 72px;
  }

  .gl-cta__petal--yellow {
    bottom: -32px;
    inset-inline-end: 120px;
    width: 56px;
    height: 56px;
  }

  /* Sans JS : les liens passent a la ligne sous la marque. */
  .gl-header__inner,
  .gl-nav,
  .gl-menu {
    flex-wrap: wrap;
  }

  /* Avec JS : bouton menu, liens et Connexion dans un panneau sous l'en-tete. */
  .gl-js .gl-header__inner,
  .gl-js .gl-nav {
    flex-wrap: nowrap;
  }

  .gl-js .gl-burger {
    display: inline-flex;
  }

  .gl-js .gl-login {
    display: none;
  }

  .gl-js .gl-menu {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--nsx-nav-border);
    background: var(--nsx-nav);
    box-shadow: var(--nsx-shadow-soft);
  }

  .gl-js .gl-menu.is-open {
    display: flex;
  }

  .gl-js .gl-menu__link {
    padding-inline: 4px;
    font-size: 1rem;
  }

  .gl-js .gl-menu__login {
    display: inline-flex;
    font-weight: 800;
    color: var(--nsx-pole-elite);
  }
}

@media (max-width: 768px) {
  .gl-wrap {
    padding-inline: 16px;
  }

  .gl-js .gl-menu {
    padding-inline: 16px;
  }
}

@media (max-width: 640px) {
  .gl-brand__tag,
  .gl-hero__visual {
    display: none;
  }

  .gl-lang {
    margin-inline-start: 0;
  }

  .gl-lang__trigger {
    padding-inline: 12px;
  }

  .gl-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .gl-steps .gl-step {
    padding: 0;
    padding-inline-start: 24px;
    border-top: 0;
    border-inline-start: 2px solid var(--gl-step-line);
  }

  .gl-hero__actions .gl-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-destination,
  .gl-lang__chevron {
    transition: none;
  }
}

/* L'arabe est une ecriture liee : l'interlettrage casserait les ligatures. */
[dir="rtl"] .gl-footer__title,
[dir="rtl"] .gl-eyebrow,
[dir="rtl"] .gl-lang__trigger {
  letter-spacing: 0;
}
