/*
Theme Name: Nexaflux Astra Child
Theme URI: https://nexaflux.local
Description: Theme enfant Astra pour Nexaflux : landing page SaaS/trading, design sombre neon, compatibilite WooCommerce et personnalisation visuelle basee sur la charte Nexaflux.
Author: Nexaflux
Author URI: https://nexaflux.local
Template: astra
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
Text Domain: nexaflux-astra-child
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: astra-child, woocommerce, dark, custom-logo, e-commerce
*/

:root {
  --nx-navy-950: #020817;
  --nx-navy-925: #041022;
  --nx-navy-900: #07111f;
  --nx-navy-850: #0a1528;
  --nx-card: rgba(11, 23, 40, 0.82);
  --nx-card-strong: rgba(8, 17, 32, 0.96);
  --nx-border: #1e3148;
  --nx-border-soft: rgba(91, 133, 173, 0.22);
  --nx-cyan: #00ddfb;
  --nx-blue: #1688ff;
  --nx-green: #28ff7a;
  --nx-red: #ff4d5d;
  --nx-text: #e6f3ff;
  --nx-muted: #8fa3b8;
  --nx-silver: #f6fbff;
  --nx-shadow: 0 24px 80px rgba(0, 221, 251, 0.12);
  --nx-radius-xl: 28px;
  --nx-radius-lg: 20px;
  --nx-radius-md: 14px;
  --nx-max: 1180px;
}

body.nexaflux-child-theme {
  color: var(--nx-text);
  background:
    radial-gradient(circle at 82% 4%, rgba(0, 221, 251, 0.16), transparent 34rem),
    radial-gradient(circle at 12% 12%, rgba(22, 136, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, var(--nx-navy-950) 0%, var(--nx-navy-900) 52%, #01040b 100%);
}

body.nexaflux-child-theme a {
  color: var(--nx-cyan);
}

body.nexaflux-child-theme .site,
body.nexaflux-child-theme .site-content,
body.nexaflux-child-theme #content {
  background: transparent;
}

body.nexaflux-child-theme .ast-primary-header-bar,
body.nexaflux-child-theme .main-header-bar {
  background: rgba(2, 8, 23, 0.84);
  border-bottom: 1px solid rgba(30, 49, 72, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.nexaflux-child-theme .site-title a,
body.nexaflux-child-theme .main-header-menu .menu-link,
body.nexaflux-child-theme .ast-builder-menu-1 .menu-item > .menu-link {
  color: var(--nx-text);
}

body.nexaflux-child-theme .site-title a {
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.nexaflux-child-theme .main-header-menu .menu-link:hover,
body.nexaflux-child-theme .ast-builder-menu-1 .menu-item:hover > .menu-link,
body.nexaflux-child-theme .current-menu-item > .menu-link {
  color: var(--nx-cyan);
}

body.nexaflux-child-theme .ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background: var(--nx-navy-900);
}

body.nexaflux-child-theme .site-footer,
body.nexaflux-child-theme .ast-footer-copyright {
  color: var(--nx-muted);
  background: rgba(2, 8, 23, 0.96);
  border-top: 1px solid rgba(30, 49, 72, 0.72);
}

.nx-site {
  overflow: hidden;
  min-height: 80vh;
  position: relative;
}

.nx-site::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(0, 221, 251, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 221, 251, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.nx-container {
  width: min(calc(100% - 40px), var(--nx-max));
  margin: 0 auto;
}

.nx-section {
  padding: 88px 0;
}

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 13px;
  color: var(--nx-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 221, 251, 0.25);
  border-radius: 999px;
  background: rgba(0, 221, 251, 0.06);
  box-shadow: 0 0 34px rgba(0, 221, 251, 0.07);
}

.nx-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nx-green);
  box-shadow: 0 0 18px rgba(40, 255, 122, 0.95);
}

.nx-hero {
  position: relative;
  padding: 82px 0 84px;
}

.nx-hero::after {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  right: -22rem;
  top: 1rem;
  background: radial-gradient(circle, rgba(40, 255, 122, 0.12), transparent 58%);
  pointer-events: none;
}

.nx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.nx-hero-copy {
  position: relative;
  z-index: 2;
}

.nx-hero h1 {
  margin: 0 0 20px;
  max-width: 820px;
  color: var(--nx-silver);
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.nx-gradient-text {
  display: inline-block;
  background: linear-gradient(120deg, var(--nx-blue), var(--nx-cyan), var(--nx-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nx-hero-lead {
  max-width: 700px;
  margin: 0 0 34px;
  color: #c8d8e8;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.nx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 34px;
}

.nx-button,
body.nexaflux-child-theme .woocommerce a.button,
body.nexaflux-child-theme .woocommerce button.button,
body.nexaflux-child-theme .woocommerce input.button,
body.nexaflux-child-theme .woocommerce #respond input#submit,
body.nexaflux-child-theme .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  color: #fff !important;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid rgba(0, 221, 251, 0.35) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-cyan) 52%, #24c66a) !important;
  box-shadow: 0 16px 42px rgba(22, 136, 255, 0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nx-button:hover,
body.nexaflux-child-theme .woocommerce a.button:hover,
body.nexaflux-child-theme .woocommerce button.button:hover,
body.nexaflux-child-theme .woocommerce input.button:hover,
body.nexaflux-child-theme .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 221, 251, 0.28), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.nx-button--ghost {
  color: var(--nx-text) !important;
  background: rgba(8, 17, 32, 0.72) !important;
  border-color: rgba(143, 163, 184, 0.28) !important;
  box-shadow: none;
}

.nx-button--ghost:hover {
  border-color: rgba(0, 221, 251, 0.45) !important;
  box-shadow: 0 18px 52px rgba(0, 221, 251, 0.1);
}

.nx-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.nx-proof-item {
  padding: 14px;
  border: 1px solid var(--nx-border-soft);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.54);
}

.nx-proof-kpi {
  display: block;
  color: var(--nx-silver);
  font-weight: 950;
  font-size: 1.2rem;
}

.nx-proof-label {
  color: var(--nx-muted);
  font-size: 0.88rem;
}

.nx-hero-art {
  position: relative;
  z-index: 1;
}

.nx-art-panel {
  position: relative;
  min-height: 500px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 221, 251, 0.18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 70% 14%, rgba(0, 221, 251, 0.22), transparent 30%),
    radial-gradient(circle at 22% 84%, rgba(22, 136, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(7, 17, 31, 0.92), rgba(2, 8, 23, 0.96));
  box-shadow: var(--nx-shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.nx-art-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0, 221, 251, 0.16), transparent 42%, rgba(40, 255, 122, 0.12));
  pointer-events: none;
}

.nx-logo-card {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(143, 163, 184, 0.18);
  border-radius: 30px;
  background: rgba(2, 8, 23, 0.54);
}

.nx-logo-card img {
  display: block;
  max-width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 221, 251, 0.20));
}

.nx-widget-stack {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
  margin-top: -22px;
}

.nx-mini-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(92%, 390px);
  margin-left: auto;
  padding: 14px;
  border: 1px solid rgba(0, 221, 251, 0.16);
  border-radius: 18px;
  background: rgba(4, 16, 34, 0.82);
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

.nx-mini-widget:nth-child(2) {
  margin-right: auto;
  margin-left: 0;
}

.nx-widget-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 221, 251, 0.09);
  box-shadow: 0 0 24px rgba(0, 221, 251, 0.14);
}

.nx-widget-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-widget-title {
  display: block;
  color: var(--nx-text);
  font-weight: 850;
}

.nx-widget-subtitle {
  color: var(--nx-muted);
  font-size: 0.9rem;
}

.nx-section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.nx-section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.nx-section-title {
  margin: 0 0 14px;
  color: var(--nx-silver);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.nx-section-desc {
  margin: 0;
  color: #b6c7da;
  font-size: 1.08rem;
  line-height: 1.75;
}

.nx-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nx-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--nx-border-soft);
  border-radius: var(--nx-radius-lg);
  background:
    linear-gradient(160deg, rgba(11, 23, 40, 0.88), rgba(5, 12, 26, 0.78)),
    radial-gradient(circle at 86% 0%, rgba(0, 221, 251, 0.13), transparent 32%);
  box-shadow: 0 16px 54px rgba(0,0,0,0.18);
}

.nx-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 221, 251, 0.16), transparent 62%);
  pointer-events: none;
}

.nx-card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--nx-cyan);
  font-size: 1.25rem;
  font-weight: 950;
  border-radius: 15px;
  background: rgba(0, 221, 251, 0.1);
  border: 1px solid rgba(0, 221, 251, 0.18);
}

.nx-card h3,
.nx-price-card h3 {
  margin: 0 0 9px;
  color: var(--nx-text);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nx-card p,
.nx-price-card p {
  margin: 0;
  color: var(--nx-muted);
  line-height: 1.68;
}

.nx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 38px;
  align-items: center;
}

.nx-terminal {
  position: relative;
  min-height: 350px;
  padding: 20px;
  border: 1px solid rgba(0, 221, 251, 0.18);
  border-radius: 28px;
  background: rgba(2, 8, 23, 0.82);
  box-shadow: var(--nx-shadow);
}

.nx-terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.nx-terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--nx-border);
}

.nx-terminal-top span:nth-child(1) { background: var(--nx-red); }
.nx-terminal-top span:nth-child(2) { background: var(--nx-cyan); }
.nx-terminal-top span:nth-child(3) { background: var(--nx-green); }

.nx-chart {
  height: 210px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 21, 40, 0.9), rgba(2, 8, 23, 0.82));
  border: 1px solid rgba(143, 163, 184, 0.12);
}

.nx-candle {
  width: 22px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--nx-green), var(--nx-cyan), var(--nx-blue));
  box-shadow: 0 0 22px rgba(0, 221, 251, 0.18);
}

.nx-candle:nth-child(1) { height: 42%; }
.nx-candle:nth-child(2) { height: 58%; }
.nx-candle:nth-child(3) { height: 36%; }
.nx-candle:nth-child(4) { height: 70%; }
.nx-candle:nth-child(5) { height: 48%; }
.nx-candle:nth-child(6) { height: 82%; }
.nx-candle:nth-child(7) { height: 62%; }
.nx-candle:nth-child(8) { height: 92%; }
.nx-candle:nth-child(9) { height: 72%; }

.nx-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.nx-status-row div {
  padding: 12px;
  border: 1px solid rgba(143, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.72);
}

.nx-status-row strong {
  display: block;
  color: var(--nx-silver);
}

.nx-status-row span {
  color: var(--nx-muted);
  font-size: 0.84rem;
}

.nx-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nx-price-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 100%;
  border: 1px solid var(--nx-border-soft);
  border-radius: var(--nx-radius-lg);
  background: rgba(7, 17, 31, 0.72);
}

.nx-price-card--featured {
  border-color: rgba(0, 221, 251, 0.45);
  background:
    radial-gradient(circle at 80% 0%, rgba(40, 255, 122, 0.14), transparent 30%),
    rgba(7, 17, 31, 0.88);
  box-shadow: 0 28px 80px rgba(0, 221, 251, 0.14);
}

.nx-price {
  margin: 18px 0 16px;
  color: var(--nx-text);
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.nx-price small {
  color: var(--nx-muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: normal;
}

.nx-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.nx-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 25px;
  color: #c8d8e8;
}

.nx-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nx-cyan), var(--nx-green));
  box-shadow: 0 0 14px rgba(0, 221, 251, 0.4);
}

.nx-price-card .nx-button {
  width: 100%;
  margin-top: auto;
}

.nx-final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid rgba(0, 221, 251, 0.2);
  border-radius: 36px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 221, 251, 0.17), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(40, 255, 122, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(2, 8, 23, 0.9));
  box-shadow: var(--nx-shadow);
  text-align: center;
}

.nx-final-cta img {
  display: block;
  width: min(210px, 44vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 36px rgba(0, 221, 251, 0.16));
}

.nx-final-cta h2 {
  margin: 0 0 13px;
  color: var(--nx-silver);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.nx-final-cta p {
  max-width: 700px;
  margin: 0 auto 26px;
  color: #c8d8e8;
  line-height: 1.75;
}

/* WooCommerce dark mode */
body.nexaflux-child-theme.woocommerce,
body.nexaflux-child-theme.woocommerce-page {
  color: var(--nx-text);
}

body.nexaflux-child-theme .woocommerce ul.products li.product,
body.nexaflux-child-theme .woocommerce-page ul.products li.product,
body.nexaflux-child-theme .woocommerce div.product,
body.nexaflux-child-theme .woocommerce-cart .cart-collaterals .cart_totals,
body.nexaflux-child-theme .woocommerce-checkout #payment,
body.nexaflux-child-theme .woocommerce table.shop_table,
body.nexaflux-child-theme .woocommerce form.checkout_coupon,
body.nexaflux-child-theme .woocommerce form.login,
body.nexaflux-child-theme .woocommerce form.register,
body.nexaflux-child-theme .woocommerce-MyAccount-navigation,
body.nexaflux-child-theme .woocommerce-MyAccount-content {
  color: var(--nx-text);
  border: 1px solid var(--nx-border-soft);
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.76);
  box-shadow: 0 18px 64px rgba(0,0,0,0.18);
}

body.nexaflux-child-theme .woocommerce ul.products li.product {
  padding: 16px;
  overflow: hidden;
}

body.nexaflux-child-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.nexaflux-child-theme .woocommerce div.product .product_title,
body.nexaflux-child-theme .woocommerce h2,
body.nexaflux-child-theme .woocommerce h3,
body.nexaflux-child-theme .woocommerce-account h2,
body.nexaflux-child-theme .woocommerce-checkout h3 {
  color: var(--nx-silver);
}

body.nexaflux-child-theme .woocommerce .price,
body.nexaflux-child-theme .woocommerce div.product p.price,
body.nexaflux-child-theme .woocommerce div.product span.price {
  color: var(--nx-cyan);
  font-weight: 900;
}

body.nexaflux-child-theme .woocommerce-message,
body.nexaflux-child-theme .woocommerce-info,
body.nexaflux-child-theme .woocommerce-error {
  color: var(--nx-text);
  border-top-color: var(--nx-cyan);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.92);
}

body.nexaflux-child-theme input[type="text"],
body.nexaflux-child-theme input[type="email"],
body.nexaflux-child-theme input[type="password"],
body.nexaflux-child-theme input[type="tel"],
body.nexaflux-child-theme input[type="url"],
body.nexaflux-child-theme input[type="number"],
body.nexaflux-child-theme textarea,
body.nexaflux-child-theme select,
body.nexaflux-child-theme .select2-container--default .select2-selection--single {
  color: var(--nx-text);
  border: 1px solid rgba(143, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(2, 8, 23, 0.82);
}

body.nexaflux-child-theme input:focus,
body.nexaflux-child-theme textarea:focus,
body.nexaflux-child-theme select:focus {
  border-color: var(--nx-cyan);
  box-shadow: 0 0 0 3px rgba(0, 221, 251, 0.12);
}

body.nexaflux-child-theme .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 12px;
  list-style: none;
}

body.nexaflux-child-theme .woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 12px 14px;
  color: var(--nx-text);
  border-radius: 12px;
  text-decoration: none;
}

body.nexaflux-child-theme .woocommerce-MyAccount-navigation-link.is-active a,
body.nexaflux-child-theme .woocommerce-MyAccount-navigation-link a:hover {
  color: var(--nx-cyan);
  background: rgba(0, 221, 251, 0.08);
}

@media (max-width: 1024px) {
  .nx-hero-grid,
  .nx-split {
    grid-template-columns: 1fr;
  }

  .nx-hero-art {
    max-width: 620px;
  }

  .nx-feature-grid,
  .nx-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nx-container {
    width: min(calc(100% - 28px), var(--nx-max));
  }

  .nx-section {
    padding: 58px 0;
  }

  .nx-hero {
    padding-top: 54px;
  }

  .nx-proof,
  .nx-feature-grid,
  .nx-pricing-grid,
  .nx-status-row {
    grid-template-columns: 1fr;
  }

  .nx-art-panel {
    min-height: auto;
    border-radius: 26px;
  }

  .nx-mini-widget,
  .nx-mini-widget:nth-child(2) {
    width: 100%;
    margin: 0;
  }

  .nx-actions .nx-button {
    width: 100%;
  }
}
