/* SECURIT-E Design System v7 - Light mode joyeux & coloré
   Inspiration : Webflow, Siedo, Max&Tiber, 207ouest
   Najib Bredaa Président fondateur · 2026 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* ===== LIGHT PALETTE - Joyeux ===== */
  --c-bg: #fafbfc;
  --c-bg-alt: #f4f6fb;
  --c-bg-warm: #fff8f0;
  --c-surface: #ffffff;
  --c-border: #e7e9ee;
  --c-border-strong: #d4d7e0;
  --c-ink: #0f1729;
  --c-ink-2: #4a5160;
  --c-ink-3: #6b7280;
  --c-ink-4: #9ca3af;

  /* Accents vifs joyeux */
  --c-orange: #ff7a45;
  --c-orange-soft: #ffe4d3;
  --c-blue: #2563eb;
  --c-blue-soft: #dde7ff;
  --c-purple: #8b5cf6;
  --c-purple-soft: #ece5ff;
  --c-pink: #ec4899;
  --c-pink-soft: #fce4f0;
  --c-yellow: #facc15;
  --c-yellow-soft: #fef5c7;
  --c-green: #10b981;
  --c-green-soft: #d1fae5;
  --c-cyan: #06b6d4;
  --c-cyan-soft: #cffafe;

  /* Gradients vifs */
  --grad-warm: linear-gradient(135deg, #ff7a45 0%, #ec4899 50%, #8b5cf6 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #2563eb 50%, #8b5cf6 100%);
  --grad-sun: linear-gradient(135deg, #facc15 0%, #ff7a45 100%);

  /* Shadows douces */
  --shadow-sm: 0 1px 3px rgba(15, 23, 41, 0.05), 0 1px 2px rgba(15, 23, 41, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 41, 0.06), 0 2px 6px rgba(15, 23, 41, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 41, 0.08), 0 4px 12px rgba(15, 23, 41, 0.05);
  --shadow-xl: 0 24px 60px rgba(15, 23, 41, 0.12);
  --shadow-color: 0 12px 40px rgba(255, 122, 69, 0.18);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --fs-display: clamp(44px, 6.5vw, 84px);
  --fs-h2: clamp(30px, 4.2vw, 52px);
  --fs-h3: clamp(20px, 2.4vw, 26px);
  --fs-body: 16px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body.futuristic {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== BLOBS DECORATIFS COLORES ===== */
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

body.futuristic::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float 20s ease-in-out infinite;
}

body.futuristic::after {
  content: '';
  position: fixed;
  bottom: -200px;
  left: -150px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float 25s ease-in-out infinite reverse;
}

/* Suppression anciens halos */
.halo-purple, .halo-pink, .scanline { display: none !important; }

/* ===== TYPO ===== */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-ink);
  margin: 0;
}
p { color: var(--c-ink-2); margin: 0 0 16px; }
p.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--c-ink-2); line-height: 1.6; max-width: 720px; }
a { color: var(--c-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-purple); }
::selection { background: var(--c-yellow-soft); color: var(--c-ink); }

/* ===== LAYOUT ===== */
.fx-shell {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV (sticky, light glass) ===== */
.fx-nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.fx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--c-ink) !important;
}
.fx-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.3);
}
.fx-brand-logo svg { width: 18px; height: 18px; }
.fx-brand-text { color: var(--c-ink); font-weight: 800; }
.fx-nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fx-nav-links a {
  padding: 8px 14px;
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.18s;
}
.fx-nav-links a:hover { color: var(--c-ink); background: var(--c-bg-alt); }
.fx-nav-links a.fx-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: var(--c-ink);
  color: white !important;
  font-weight: 600;
}
.fx-nav-links a.fx-cta:hover { background: var(--c-orange); color: white !important; }

/* ===== BUTTONS ===== */
.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.fx-btn-primary {
  background: var(--c-ink);
  color: white !important;
}
.fx-btn-primary:hover { background: var(--c-orange); color: white !important; transform: translateY(-1px); box-shadow: var(--shadow-color); }
.fx-btn-ghost {
  background: white;
  color: var(--c-ink);
  border-color: var(--c-border-strong);
}
.fx-btn-ghost:hover { border-color: var(--c-ink); color: var(--c-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.fx-btn-large { padding: 18px 32px; font-size: 16px; }

/* ===== HERO ===== */
.fx-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 60px;
}
@media (max-width: 968px) {
  .fx-hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 30px; }
}

.fx-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.fx-hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px var(--c-green-soft);
}

.fx-hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--c-ink);
}
.fx-hero h1 .gradient {
  display: inline-block;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.fx-hero h1 .underline {
  display: inline-block;
  position: relative;
}
.fx-hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 6px;
  background: var(--c-yellow);
  border-radius: 999px;
  z-index: -1;
}

.fx-hero p.lead { margin: 0 0 32px; }

.fx-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

/* ===== HERO ILLUSTRATION ===== */
.fx-illustration {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
}
.fx-illustration .panel {
  position: absolute;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  padding: 18px;
}
.fx-illustration .panel-1 {
  top: 5%;
  left: 0;
  width: 60%;
  animation: float-up 4s ease-in-out infinite;
}
.fx-illustration .panel-2 {
  top: 30%;
  right: 0;
  width: 55%;
  animation: float-up 5s ease-in-out infinite 1s;
}
.fx-illustration .panel-3 {
  bottom: 5%;
  left: 10%;
  width: 70%;
  animation: float-up 4.5s ease-in-out infinite 0.5s;
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fx-illustration .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: -1;
}
.fx-illustration .blob-1 {
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--c-orange-soft), transparent 70%);
}
.fx-illustration .blob-2 {
  bottom: 10%;
  left: 5%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--c-blue-soft), transparent 70%);
}
.fx-illustration .blob-3 {
  top: 50%;
  left: 40%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--c-yellow-soft), transparent 70%);
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-bg-alt);
  font-size: 13px;
  color: var(--c-ink-2);
}
.panel-row:last-child { border-bottom: none; }
.panel-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.panel-row .dot.green { background: var(--c-green); box-shadow: 0 0 0 3px var(--c-green-soft); }
.panel-row .dot.orange { background: var(--c-orange); box-shadow: 0 0 0 3px var(--c-orange-soft); }
.panel-row .dot.blue { background: var(--c-blue); box-shadow: 0 0 0 3px var(--c-blue-soft); }
.panel-row .num {
  margin-left: auto;
  font-weight: 700;
  color: var(--c-ink);
}
.panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
  margin-bottom: 8px;
}

.panel-bignum {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.panel-sub {
  font-size: 12px;
  color: var(--c-ink-3);
  margin-top: 4px;
}

/* ===== SWITCH PERSONA ===== */
.fx-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.fx-switch button {
  padding: 8px 18px;
  background: transparent;
  border: none;
  color: var(--c-ink-2);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.fx-switch button:hover { color: var(--c-ink); }
.fx-switch button.active {
  background: var(--c-ink);
  color: white;
}

/* ===== STATS BAND ===== */
.fx-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 60px 0 40px;
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .fx-stats-strip { grid-template-columns: repeat(2, 1fr); padding: 24px; }
}
.fx-stat { text-align: center; }
.fx-stat-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.fx-stat-lbl {
  font-size: 12px;
  color: var(--c-ink-3);
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== SECTIONS ALTERNEES ===== */
.fx-section {
  padding: 100px 0;
  position: relative;
}
.fx-section.alt {
  background: var(--c-bg-alt);
  margin: 0 -1000px;
  padding-left: 1000px;
  padding-right: 1000px;
}
.fx-section.warm {
  background: var(--c-bg-warm);
  margin: 0 -1000px;
  padding-left: 1000px;
  padding-right: 1000px;
}
.fx-section-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.fx-section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-orange-soft);
  color: var(--c-orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.fx-section.alt .fx-section-tag { background: var(--c-blue-soft); color: var(--c-blue); }
.fx-section.warm .fx-section-tag { background: var(--c-yellow-soft); color: #b08800; }

.fx-section h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.fx-section h2 .gradient {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-section h2 .underline {
  display: inline-block;
  position: relative;
}
.fx-section h2 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 14px;
  background: var(--c-yellow);
  z-index: -1;
  border-radius: 4px;
}
.fx-section p.subtitle {
  font-size: 18px;
  color: var(--c-ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ===== GRIDS ===== */
.fx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.fx-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; }
.fx-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* ===== CARDS ===== */
.fx-card {
  position: relative;
  padding: 32px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-card:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fx-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.fx-card.c-orange .icon { background: var(--c-orange-soft); color: var(--c-orange); }
.fx-card.c-blue .icon { background: var(--c-blue-soft); color: var(--c-blue); }
.fx-card.c-purple .icon { background: var(--c-purple-soft); color: var(--c-purple); }
.fx-card.c-pink .icon { background: var(--c-pink-soft); color: var(--c-pink); }
.fx-card.c-green .icon { background: var(--c-green-soft); color: var(--c-green); }
.fx-card.c-yellow .icon { background: var(--c-yellow-soft); color: #b08800; }
.fx-card.c-cyan .icon { background: var(--c-cyan-soft); color: var(--c-cyan); }

.fx-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--c-ink);
}
.fx-card p {
  font-size: 15px;
  color: var(--c-ink-2);
  line-height: 1.65;
  margin: 0 0 14px;
}
.fx-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fx-card .badge.live { background: var(--c-green-soft); color: var(--c-green); }
.fx-card .badge.beta { background: var(--c-yellow-soft); color: #b08800; }

.fx-card a.fx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-orange);
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
}
.fx-card a.fx-link:hover { color: var(--c-pink); gap: 10px; }

/* ===== PRICING CARDS ===== */
.fx-price-card {
  position: relative;
  padding: 36px 28px;
  background: white;
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all 0.3s;
}
.fx-price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fx-price-card.featured {
  border-color: var(--c-orange);
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
  box-shadow: 0 12px 40px rgba(255, 122, 69, 0.18);
}
.fx-price-card.featured::before {
  content: '⭐ POPULAIRE';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--grad-warm);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.fx-price-card .target {
  font-size: 12px;
  color: var(--c-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
}
.fx-price-card .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  color: var(--c-ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.fx-price-card .price span { font-size: 16px; color: var(--c-ink-3); font-weight: 500; }

/* ===== PRESIDENT ===== */
.fx-president {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.fx-president::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--grad-warm);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
@media (max-width: 768px) {
  .fx-president { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; gap: 32px; }
}
.fx-president-photo {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}
.fx-president-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.fx-president-photo::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: var(--grad-warm);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.4;
  z-index: 1;
}
.fx-president-info { position: relative; z-index: 2; }
.fx-president-info h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.fx-president-info .role {
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-orange-soft);
  color: var(--c-orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fx-president-info .honorific {
  color: var(--c-purple);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.fx-president-info p {
  color: var(--c-ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.fx-president-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ===== FOOTER ===== */
.fx-footer {
  margin-top: 120px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--c-border);
  text-align: center;
  color: var(--c-ink-3);
  font-size: 13px;
  line-height: 1.8;
}
.fx-footer strong { color: var(--c-ink); }
.fx-footer .links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.fx-footer .links a { color: var(--c-ink-2); font-size: 14px; font-weight: 500; }
.fx-footer .links a:hover { color: var(--c-orange); }

/* ===== PERSONA RULES ===== */
body[data-persona="novice"] .for-pro,
body[data-persona="novice"] .for-investisseur,
body[data-persona="novice"] .for-admin { display: none !important; }
body[data-persona="pro"] .for-novice,
body[data-persona="pro"] .for-investisseur,
body[data-persona="pro"] .for-admin { display: none !important; }
body[data-persona="investisseur"] .for-novice,
body[data-persona="investisseur"] .for-pro,
body[data-persona="investisseur"] .for-admin { display: none !important; }

/* ===== REVEAL ===== */
.fx-reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.js-loaded .fx-reveal { opacity: 0; transform: translateY(30px); }
.js-loaded .fx-reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LIVE indicator ===== */
.fx-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-green);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fx-live::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px var(--c-green-soft);
  animation: pulse-live 1.6s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 4px var(--c-green-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ===== SUPPORT ANCIENNES PAGES (cb-*) ===== */
body.cb-body.futuristic { background: var(--c-bg) !important; color: var(--c-ink) !important; }
body.cb-body.futuristic .cb-card,
body.cb-body.futuristic .cb-stat,
body.cb-body.futuristic .cb-page-head {
  background: white !important;
  border: 1px solid var(--c-border) !important;
  color: var(--c-ink) !important;
  box-shadow: var(--shadow-sm);
}
body.cb-body.futuristic .cb-topbar a.brand,
body.cb-body.futuristic .brand,
body.cb-body.futuristic h1,
body.cb-body.futuristic h2,
body.cb-body.futuristic h3 { color: var(--c-ink) !important; }
body.cb-body.futuristic .gradient {
  background: var(--grad-warm) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
body.cb-body.futuristic .cb-nav a {
  color: var(--c-ink-2) !important;
  background: white !important;
  border: 1px solid var(--c-border) !important;
}
body.cb-body.futuristic .cb-nav a:hover { color: var(--c-orange) !important; border-color: var(--c-orange) !important; }
body.cb-body.futuristic .cb-nav a.active {
  background: var(--c-ink) !important;
  color: white !important;
  border-color: var(--c-ink) !important;
}
body.cb-body.futuristic .cb-table {
  background: white !important;
  color: var(--c-ink) !important;
}
body.cb-body.futuristic .cb-table th {
  background: var(--c-bg-alt) !important;
  color: var(--c-ink-2) !important;
}
body.cb-body.futuristic .cb-btn { background: var(--c-ink); color: white; }
body.cb-body.futuristic .cb-btn-ghost {
  background: white !important;
  color: var(--c-ink) !important;
  border: 1px solid var(--c-border-strong) !important;
}
body.cb-body.futuristic .cb-section-title { color: var(--c-ink) !important; }
body.cb-body.futuristic p, body.cb-body.futuristic .cb-card p { color: var(--c-ink-2) !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 999px; border: 3px solid var(--c-bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--c-ink-3); }

/* ===== 3D INTERACTIVE LAYER ===== */
.fx-card, .fx-price-card, .fx-illustration .panel {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Tilt effect controlled via JS - var(--rx) and var(--ry) */
.fx-card.tilt-on,
.fx-price-card.tilt-on,
.fx-illustration .panel.tilt-on {
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0);
  transition: transform 0.08s linear, box-shadow 0.3s ease, border-color 0.3s ease;
}
.fx-card.tilt-on:hover { box-shadow: var(--shadow-xl); }

/* Glare overlay activated by JS */
.fx-card .glare,
.fx-price-card .glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 40%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: overlay;
}
.fx-card.tilt-on:hover .glare,
.fx-price-card.tilt-on:hover .glare { opacity: 0.6; }

/* Hero panels float in 3D */
@keyframes panel-float {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-12px) rotateX(2deg) rotateY(-1deg); }
}
.fx-illustration .panel-1 { animation: panel-float 6s ease-in-out infinite; }
.fx-illustration .panel-2 { animation: panel-float 7s ease-in-out infinite 0.5s; }
.fx-illustration .panel-3 { animation: panel-float 8s ease-in-out infinite 1s; }

/* Brand logo 3D spin */
@keyframes logo-spin-3d {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  50% { transform: rotateY(180deg) rotateX(15deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}
.fx-brand-logo {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.4s;
}
.fx-brand:hover .fx-brand-logo {
  animation: logo-spin-3d 1.2s ease-in-out;
}

/* Particle canvas hero background */
.fx-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Animated gradient border */
@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== LIVE FUNCTIONALITIES GRID ===== */
.fx-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.fx-live-cell {
  position: relative;
  padding: 18px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.fx-live-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.fx-live-cell:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-orange);
}
.fx-live-cell:hover::before { transform: scaleX(1); }
.fx-live-cell .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fx-live-cell .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--c-ink-3);
  font-weight: 600;
}
.fx-live-cell .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-green);
}
.fx-live-cell .status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-live 1.4s ease-in-out infinite;
}
.fx-live-cell h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.fx-live-cell .sub {
  font-size: 12px;
  color: var(--c-ink-3);
  line-height: 1.4;
  margin: 0;
}
.fx-live-cell .meter {
  width: 100%;
  height: 4px;
  background: var(--c-bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-top: auto;
}
.fx-live-cell .meter span {
  display: block;
  height: 100%;
  background: var(--grad-warm);
  border-radius: 999px;
  animation: meter-grow 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes meter-grow {
  from { width: 0%; }
}

/* ===== ANIMATED COUNTER STATS ===== */
.fx-stat-num.counting { color: var(--c-orange); }

/* ===== HOLOGRAM ICON GLOW ===== */
.fx-card .icon {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.fx-card:hover .icon {
  transform: scale(1.12) rotate(-6deg);
}
.fx-card .icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.4s;
  z-index: -1;
}
.fx-card:hover .icon::after { opacity: 0.6; }

/* ===== BIG SECTION TITLE GRADIENT ANIMATION ===== */
.fx-section-head h2 .gradient,
.fx-section-head h2 .underline {
  position: relative;
  display: inline-block;
}
.fx-section-head h2 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 12px;
  background: var(--c-yellow);
  border-radius: 4px;
  opacity: 0.45;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fx-reveal.visible .fx-section-head h2 .underline::after { transform: scaleX(1); }

/* ===== SCROLL PROGRESS BAR ===== */
.fx-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-warm);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255, 122, 69, 0.5);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .fx-shell { padding: 0 16px; }
  .fx-nav { padding: 10px 14px; flex-wrap: wrap; }
  .fx-nav-links { gap: 2px; }
  .fx-nav-links a { font-size: 12px; padding: 6px 10px; }
  .fx-section { padding: 60px 0; }
  .fx-illustration { aspect-ratio: 5/4; }
  .fx-card.tilt-on { transform: none !important; }
  .fx-live-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .fx-illustration .panel-1,
  .fx-illustration .panel-2,
  .fx-illustration .panel-3 { animation: none; }
  body.futuristic::before, body.futuristic::after { animation: none; }
  .fx-live-cell .meter span { animation: none; width: 80%; }
}
