/* =========================================================
   FLUXETRIX — Landing page corporate
   ========================================================= */

:root {
  --bg: #0A0A0C;
  --bg-2: #0F0F13;
  --surface: #131318;
  --surface-2: #18181F;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #F2F2F5;
  --muted: #9A9AA8;
  --dim: #6B6B78;

  /* Marque (logo F) */
  --brand-navy: #0B1B52;
  --brand-blue: #1E66C8;
  --brand-pink: #F2389F;
  /* Digital */
  --violet: #8B5CF6;
  --blue: #2E78E0;
  /* Games */
  --neon: #39FF88;
  --red: #FF3B5C;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(135deg, #fff, #d9d9e3);
  color: #0A0A0C;
  box-shadow: 0 8px 30px -10px rgba(255, 255, 255, .35);
}
.btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(255, 255, 255, .45); }
.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.btn--digital {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7);
}
.btn--digital:hover { box-shadow: 0 14px 40px -8px rgba(99, 102, 241, .85); }
.btn--digital svg { transition: transform .25s var(--ease); }
.btn--digital:hover svg { transform: translate(2px, -2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: .22em;
}
.logo--sm { font-size: 14px; }
.logo__mark {
  width: 22px; height: auto;
  filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 10px rgba(242, 56, 159, .35));
}
.logo--sm .logo__mark { width: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 100px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero__orb {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(110px); opacity: .45;
  animation: float 16s ease-in-out infinite;
}
.hero__orb--violet { background: var(--brand-blue); top: -160px; left: -140px; opacity: .5; }
.hero__orb--green { background: var(--brand-pink); bottom: -260px; right: -180px; opacity: .28; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

.hero__content { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.hero__title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  line-height: 1.06; font-weight: 800; letter-spacing: -.035em;
  max-width: 980px; margin: 0 auto;
}
.text-gradient {
  background: linear-gradient(100deg, #3B82F6 0%, #8E5BE0 45%, var(--brand-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle {
  margin: 26px auto 0; max-width: 660px;
  color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}
.hero__actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--text); border-radius: 2px; animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }

/* ---------- Écosystèmes ---------- */
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.eco__card {
  --accent: #fff; --accent-2: #fff; --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 40px; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* Bordure lumineuse fine */
.eco__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, var(--accent), transparent 35%, transparent 65%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .4s var(--ease);
}
/* Halo qui suit la souris */
.eco__card::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.eco__card:hover { transform: translateY(-6px); }
.eco__card:hover::before { opacity: 1; }
.eco__card:hover::after { opacity: 1; }

.eco__card--digital {
  --accent: var(--violet); --accent-2: var(--blue);
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(139, 92, 246, .14), transparent 60%),
    var(--surface);
}
.eco__card--digital:hover { box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .55); }

.eco__card--games {
  --accent: var(--neon); --accent-2: var(--red);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(57, 255, 136, .10), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(255, 59, 92, .08), transparent 60%),
    var(--surface);
}
.eco__card--games:hover { box-shadow: 0 30px 80px -30px rgba(57, 255, 136, .35); }

.eco__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.eco__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.eco__icon svg { width: 26px; height: 26px; }
.eco__icon img { width: 22px; height: auto; filter: brightness(1.35) saturate(1.1); }
.eco__tag {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
}
.eco__title { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.eco__brand {
  display: block; font-size: 13px; letter-spacing: .28em; font-weight: 700; margin-bottom: 8px;
  color: var(--accent);
}
.eco__desc { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }
.eco__slogan {
  display: block; margin-top: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Liens GoBilan dans le texte */
.gobilan-link {
  color: inherit;
  background-image: linear-gradient(90deg, var(--violet), var(--blue));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .3s var(--ease);
}
.gobilan-link:hover { color: #b9a8ff; background-size: 100% 2px; }
.product__name .gobilan-link { background-size: 0 2px; }
.product__name .gobilan-link:hover { background-size: 100% 2px; }

/* Produit GoBilan */
.product {
  margin-top: auto; padding: 26px; border-radius: 16px;
  background: rgba(10, 10, 12, .6);
  border: 1px solid rgba(139, 92, 246, .28);
  backdrop-filter: blur(6px);
  position: relative;
}
.eco__desc + .product { margin-top: 32px; }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__logo {
  width: 46px; height: 46px; flex-shrink: 0;
  box-shadow: 0 6px 20px -6px rgba(43, 212, 107, .6);
  border-radius: 10px;
}
.product__label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.product__name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.product__pitch { margin-top: 14px; font-size: 1.05rem; font-weight: 500; }
.product__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.product__chips li {
  font-size: 13px; color: #c9c3ff; padding: 5px 12px; border-radius: 999px;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .25);
}

/* Games */
.games-stage { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.badge-live {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--neon);
  background: rgba(57, 255, 136, .08);
  border: 1px solid rgba(57, 255, 136, .35);
  animation: badgeGlow 2.4s ease-in-out infinite;
}
.badge-live__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); }
.badge-live__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--neon);
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(57, 255, 136, 0); }
  50% { box-shadow: 0 0 24px rgba(57, 255, 136, .35); }
}

.games-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pillar {
  padding: 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.pillar:hover { border-color: rgba(255, 59, 92, .45); background: rgba(255, 59, 92, .05); }
.pillar strong { display: block; font-size: 14px; }
.pillar span { font-size: 12.5px; color: var(--dim); }

.games-slot {
  position: relative; flex: 1; min-height: 140px; margin-top: auto;
  border-radius: 16px; overflow: hidden;
  border: 1px dashed rgba(57, 255, 136, .3);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, rgba(57, 255, 136, .06), rgba(255, 59, 92, .06));
  display: grid; place-items: center;
}
.games-slot__text {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.games-slot__scan {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(57, 255, 136, .12), transparent);
  animation: scan 3.5s linear infinite;
}
@keyframes scan { from { top: -40%; } to { top: 100%; } }

/* ---------- Vision ---------- */
.vision { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.vision__photo {
  margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #1d1b2e, #101016 60%, #0f1a14);
  box-shadow: 0 40px 100px -40px rgba(139, 92, 246, .45);
}
.vision__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.vision__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.vision__placeholder img {
  width: 38%; height: auto; opacity: .9;
  filter: brightness(1.3) drop-shadow(0 0 40px rgba(242, 56, 159, .35));
}
.vision__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 12, .45));
}

.quote { margin: 32px 0 0; padding: 0 0 0 26px; border-left: 2px solid; border-image: linear-gradient(180deg, var(--blue), var(--brand-pink)) 1; }
.quote p { color: #c4c4cf; font-size: 1.06rem; }
.quote p + p { margin-top: 18px; }
.quote strong { color: var(--text); font-weight: 700; }
.quote__strong { color: var(--text) !important; font-weight: 600; font-size: 1.14rem !important; }

.signature { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.signature__line { width: 44px; height: 1px; background: var(--line-strong); }
.signature__name { font-weight: 700; font-size: 1.05rem; }
.signature__role { color: var(--dim); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { padding: 110px 0 36px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(600px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), var(--brand-pink), transparent);
}
.footer__cta { text-align: center; }
.footer__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.footer__cta > p { color: var(--muted); margin-top: 12px; }
.footer__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.footer__bottom {
  margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--dim); font-size: 14px;
}
.footer__bottom .logo { color: var(--muted); }
.footer__slogan { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .eco { grid-template-columns: 1fr; }
  .vision { grid-template-columns: 1fr; gap: 48px; }
  .vision__photo { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 88px 0; }
  .eco__card { padding: 26px 20px; }
  .product { padding: 20px; }
  .games-pillars { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 90px; }
  .hero__actions .btn { width: 100%; }
  .footer__links .btn { width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; margin-top: 64px; }
  .logo { font-size: 16px; letter-spacing: .18em; }
  .quote { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
