/* ============================================================
   NOXEL Shell 1.0 — en-tête, page de prix et pied de page communs
   Modèle : NOXEL SEO (barre du haut, cartes de prix, pied de page).
   Copié à l'identique dans noxel360, noxelforge et noxelspectra :
   toute modification se fait partout, version incrémentée ici.
   Noms des modules toujours en majuscules : NOXEL360, NOXEL SEO,
   NOXEL FORGE, NOXEL NEXUS, NOXEL SPECTRA.
   ============================================================ */

.nx-bar {
  position: sticky; top: 0; z-index: 100;
  height: 72px; padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(5, 7, 13, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #10dada59);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.nx-bar__brand { display: flex; align-items: center; flex: 0 0 auto; }
.nx-bar__logo { height: 58px; width: auto; display: block; }
.nx-bar__nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; min-width: 0; }
.nx-bar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Liens du menu : mêmes que la barre latérale de NOXEL SEO (.nav-item) */
.nx-nav {
  padding: 8px 12px; border-radius: 10px; border: 1px solid transparent;
  background: none; color: rgba(255, 255, 255, 0.58);
  font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.nx-nav:hover { background: rgba(255, 255, 255, 0.045); color: rgba(255, 255, 255, 0.93); }
.nx-nav[aria-current="page"] { background: rgba(61, 220, 132, 0.1); border-color: rgba(61, 220, 132, 0.25); color: #3ddc84; }

/* Pastilles : langue et compte */
.nx-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 12px;
  border: 1px solid var(--border, #10dada59); background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.93); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.nx-pill:hover { border-color: rgba(61, 220, 132, 0.35); }
.nx-pill__code { color: #3ddc84; font-weight: 800; }
.nx-pill__muted { color: rgba(255, 255, 255, 0.58); }
.nx-caret { font-size: 9px; opacity: 0.45; }
.nx-user { padding: 5px 10px 5px 5px; border-radius: 99px; }
.nx-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, #3ddc84, #a855f7);
  display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #07090f;
}
.nx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nx-user__name { font-size: 12px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.nx-medal { width: 32px; height: 32px; object-fit: contain; display: block; }

/* Menu déroulant du compte */
.nx-menu-wrap { position: relative; }
.nx-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 200;
  background: #0c0f1a; border: 1px solid var(--border, #10dada59); border-radius: 12px;
  padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.nx-menu__head { padding: 8px 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 4px; }
.nx-menu__name { font-size: 13px; font-weight: 700; color: #fff; }
.nx-menu__mail { font-size: 11px; color: rgba(255, 255, 255, 0.4); overflow: hidden; text-overflow: ellipsis; }
.nx-menu__item {
  display: block; width: 100%; padding: 8px 10px; border-radius: 8px; border: none; background: none;
  color: rgba(255, 255, 255, 0.75); font-family: inherit; font-size: 13px; line-height: 1.3; text-align: left; text-decoration: none; cursor: pointer;
}
.nx-menu__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nx-menu__item--danger { color: #ff5c7a; }

.nx-bar__burger { display: none; }

@media (max-width: 900px) {
  .nx-bar { height: 64px; padding: 0 12px; gap: 8px; }
  .nx-bar__logo { height: 46px; }
  .nx-bar__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border, #10dada59);
    background: transparent; color: #fff; font-size: 18px; cursor: pointer;
  }
  .nx-bar__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 12px;
    background: #0c0f1a; border-bottom: 1px solid var(--border, #10dada59);
  }
  .nx-bar__nav[data-open="true"] { display: flex; }
  .nx-nav { padding: 11px 12px; font-size: 14px; }
  .nx-pill__muted, .nx-user__name { display: none; }
  .nx-bar__right { gap: 6px; }
  .nx-bar__right .noxel-hud--compact .noxel-hud__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ── Page de prix : copie de NOXEL SEO (.pricing-*) ── */
.nx-page { max-width: 1400px; margin: 0 auto; padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.nx-page-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nx-page-title { font-size: 19px; font-weight: 900; }
.nx-page-subtitle { font-size: 12px; color: rgba(255, 255, 255, 0.58); }

.nx-cycle { display: flex; justify-content: center; }
.nx-cycle__track { display: flex; background: rgba(255, 255, 255, 0.05); border-radius: 99px; padding: 4px; gap: 4px; border: 1px solid rgba(255, 255, 255, 0.08); }
.nx-cycle__btn {
  padding: 8px 20px; border-radius: 99px; border: none; background: transparent;
  color: rgba(255, 255, 255, 0.4); font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1.2; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.nx-cycle__btn[aria-pressed="true"] { background: rgba(61, 220, 132, 0.15); color: #3ddc84; }
.nx-save { background: #3ddc84; color: #07090f; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 99px; }
.nx-price-note { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.45); }

.nx-pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; }
.nx-pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
.nx-pcard {
  position: relative; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border, #10dada59);
  border-radius: 16px; padding: 15px; display: flex; flex-direction: column; gap: 5px;
}
.nx-pcard--featured { border-color: rgba(61, 220, 132, 0.3); background: rgba(61, 220, 132, 0.03); }
.nx-pcard--active { border-color: rgba(61, 220, 132, 0.35); background: rgba(61, 220, 132, 0.04); }
.nx-pcard__flag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: #3ddc84; color: #07090f; font-size: 10px; font-weight: 900; padding: 2px 10px; border-radius: 99px;
}
.nx-pcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nx-pcard__head img { width: 48px; height: 48px; object-fit: contain; }
.nx-pcard__name { font-size: 13px; font-weight: 900; }
.nx-pcard__status {
  margin-left: auto; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  background: rgba(61, 220, 132, 0.14); color: #3ddc84; border: 1px solid rgba(61, 220, 132, 0.28);
}
.nx-pcard__status--core { background: rgba(168, 85, 247, 0.15); color: #c9a2ff; border-color: rgba(168, 85, 247, 0.35); }
.nx-pcard__status--test { background: rgba(255, 183, 77, 0.12); color: #ffb74d; border-color: rgba(255, 183, 77, 0.3); }
.nx-pcard__price { font-size: 24px; font-weight: 900; }
.nx-pcard__price--text { font-size: 18px; }
.nx-pcard__period { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.58); }
.nx-pcard__sub { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.nx-pcard__note { font-size: 10px; color: rgba(255, 255, 255, 0.58); }
.nx-pcard__items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin: 5px 0; flex: 1; }
.nx-pcard__items li { font-size: 11px; color: rgba(255, 255, 255, 0.75); display: flex; gap: 6px; align-items: flex-start; }
.nx-pcard__cta { margin-top: 7px; align-self: center; }
.nx-info {
  padding: 14px; border-radius: 14px; background: rgba(61, 220, 132, 0.05); border: 1px solid rgba(61, 220, 132, 0.18);
}
.nx-info__title { font-size: 13px; font-weight: 700; color: #3ddc84; margin-bottom: 5px; }
.nx-info__desc { font-size: 11px; color: rgba(255, 255, 255, 0.58); line-height: 1.6; }

@media (max-width: 1200px) { .nx-pricing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .nx-pricing-grid, .nx-pricing-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .nx-page { padding: 16px 16px 32px; }
  .nx-pricing-grid, .nx-pricing-grid--4 { grid-template-columns: 1fr; }
}

/* ── Pied de page des pages statiques (même rendu que components/Footer.tsx) ── */
.nx-foot { max-width: 1400px; margin: 32px auto 0; padding: 24px 24px 20px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 16px; }
.nx-foot__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; align-items: center; }
.nx-foot__links a, .nx-foot__links button { font-family: inherit; font-size: 14px; font-weight: 700; color: #3ddc84; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.nx-foot__copy { font-size: 13px; color: rgba(255, 255, 255, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 16px; }
@media (max-width: 600px) { .nx-bar__nav--static { display: none !important; } }
