/* ========================================================
   NOVALINK ENERGY v2 — Liquid Glass Clair / Violet
   ======================================================== */

:root {
  /* Palette */
  --violet-50: #F5F3FF;
  --violet-100: #EDE9FE;
  --violet-200: #DDD6FE;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;
  --violet-900: #4C1D95;

  --sky-50: #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-400: #38BDF8;

  --ink: #0F172A;
  --ink-soft: #1E293B;
  --ink-mid: #334155;
  --ink-dim: #64748B;
  --ink-muted: #94A3B8;
  --ink-faint: #CBD5E1;

  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --white: #FFFFFF;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.75);
  --glass-light: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-violet: rgba(139, 92, 246, 0.25);

  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
  --shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 24px 60px -15px rgba(76, 29, 149, 0.22), 0 2px 8px rgba(15,23,42,0.06);
  --shadow-violet: 0 12px 40px -10px rgba(124, 58, 237, 0.5);

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", -apple-system, system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0.05, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ATMOSPHERIC BACKGROUND (soft light) */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFBFF 0%, #F0F4FF 50%, #F8F5FF 100%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.bg-orb-1 {
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--violet-400) 0%, transparent 65%);
  opacity: 0.3;
}
.bg-orb-2 {
  top: 40%; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--sky-400) 0%, transparent 65%);
  opacity: 0.18;
}
.bg-orb-3 {
  bottom: -300px; right: 10%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--violet-500) 0%, transparent 65%);
  opacity: 0.16;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}

em.accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

strong { font-weight: 600; color: var(--ink); }

/* GLASS BASE — Liquid Glass */
.glass {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  position: relative;
}
.glass-strong {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--violet-200);
  font-size: 13px;
  font-weight: 500;
  color: var(--violet-700);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* NAVIGATION */
.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 20px;
  margin-top: 16px;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(139, 92, 246, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(76, 29, 149, 0.12);
}
.nav-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transform: scale(1.35);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: 100px;
  transition: all 0.25s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--violet-700);
  background: var(--violet-100);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-700) 100%);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-violet);
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 48px -10px rgba(124, 58, 237, 0.65);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: transparent;
}
.nav-burger span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-700) 100%);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  box-shadow: var(--shadow-violet);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.25) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px -12px rgba(124, 58, 237, 0.7);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.btn-ghost:hover {
  background: white;
  border-color: var(--violet-300, #C4B5FD);
  color: var(--violet-700);
}
.btn-ghost svg { width: 16px; height: 16px; }

/* SECTION LAYOUT */
section {
  padding: 100px 28px;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-head p {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-dim);
  max-width: 620px;
}
.section-head-center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-700);
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--violet-100);
  border: 1px solid var(--violet-200);
}

/* SCROLL REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
.footer {
  margin-top: 80px;
  padding: 70px 28px 30px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
}
.footer-logo-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: white;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(76, 29, 149, 0.12);
}
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); }
.footer-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.footer-brand p {
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mid);
  transition: all 0.25s var(--ease-out);
}
.footer-socials a:hover {
  background: var(--violet-600);
  color: white;
  border-color: var(--violet-600);
  transform: translateY(-2px);
}
.footer-socials svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col a {
  color: var(--ink-dim);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--violet-700); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-inner { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 18px;
    border-radius: 14px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
  }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* CTA mobile — garde le texte court */
  .nav-cta { padding: 9px 14px; font-size: 13px; gap: 5px; }
  .nav-cta svg { display: none; }
  section { padding: 60px 18px; }
  .footer { padding: 44px 20px 24px; margin-top: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
  .footer-brand { grid-column: span 2; }
  .footer-brand p { display: none; }
  .footer-bottom { font-size: 12px; gap: 6px; }
}
@media (max-width: 540px) {
  .nav { padding: 0 12px; margin-top: 10px; }
  .nav-cta { padding: 9px 12px; font-size: 12px; }
  .footer { padding: 32px 16px 20px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-logo-name { font-size: 18px; }
  .footer-socials { gap: 8px; }
  .footer-socials a { width: 34px; height: 34px; }
  .footer-col h4 { font-size: 11px; margin-bottom: 12px; }
  .footer-col li { padding: 4px 0; font-size: 13px; }
  section { padding: 50px 16px; }
}
@media (max-width: 390px) {
  .nav-logo-text { display: none; }
  .nav-cta { padding: 8px 11px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .bg-orb { animation: none !important; }
}
