:root {
  --bg: #05050b;
  --bg-alt: #0a0a16;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --text-muted: #9b9bb0;
  --blue: #5b7dff;
  --blue-light: #7d9bff;
  --purple: #9b6bff;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --shadow-glow: 0 0 60px rgba(91, 125, 255, 0.25);
  --radius: 16px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .brand-name, .eyebrow {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Background FX ---------- */
#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.blob-1 {
  width: 560px; height: 560px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 480px; height: 480px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 60px) scale(1.15); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.1); }
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
/* backdrop-filter lives on a pseudo-element so #site-header never becomes a
   containing block for fixed descendants (the mobile nav needs the viewport) */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 11, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}
#site-header.scrolled {
  border-bottom-color: var(--border);
}
#site-header.scrolled::before {
  background: rgba(5, 5, 11, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.logo-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
}

.logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(130, 145, 255, 0));
  }
  50% {
    transform: scale(1.045);
    filter: drop-shadow(0 0 26px rgba(130, 145, 255, 0.55));
  }
}
.logo-pulse {
  animation: logo-pulse 4.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
#main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
#main-nav a:hover { color: var(--text); }
#main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gradient);
  transition: width 0.25s ease;
}
#main-nav a:hover::after { width: 100%; }

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
#nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 auto;
}
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 125, 255, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 108, 255, 0.42);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue-light);
  background: rgba(91, 125, 255, 0.08);
  transform: translateY(-2px);
}
.btn-nav { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
}

.hero-logo {
  width: 190px;
  height: 190px;
  margin-bottom: 8px;
}
.hero-logo svg { width: 100%; height: 100%; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 200;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #c9d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slogan {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gradient);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 20px; opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent 100%);
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.section h2.center, h2.center { text-align: center; }

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 60px;
}
.section-sub.center { text-align: center; }

.grid { display: grid; gap: 26px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Services ---------- */
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 125, 255, 0.35);
  background: rgba(91, 125, 255, 0.06);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 125, 255, 0.12);
  color: var(--blue-light);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Pillars ---------- */
.pillars-grid { grid-template-columns: repeat(3, 1fr); }
.pillar {
  text-align: center;
  padding: 12px;
}
.pillar-num {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.pillar p { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; margin: 0 auto; }

/* ---------- Processus ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 18px;
}
.step h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-wrap {
  width: 280px;
  height: 280px;
  opacity: 0.9;
}
.about-logo-wrap svg { width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 125, 255, 0.35);
}
.contact-card.highlight {
  border-color: rgba(91, 125, 255, 0.45);
  background: linear-gradient(160deg, rgba(91,125,255,0.12), rgba(155,107,255,0.08));
}
.contact-card .card-icon { margin: 0 auto 18px; }
.contact-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin-bottom: 6px;
}
.contact-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.footer-nav a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  color: #55556b;
  font-size: 0.8rem;
  margin-top: 18px;
}

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 150;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: float-bob 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .about-text .btn { margin: 0 auto; }
  .about-visual { order: -1; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #main-nav { display: none; }
  .btn-nav { display: none; }
  #nav-toggle { display: flex; }

  #main-nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0 26px;
    border-bottom: 1px solid var(--border);
  }
  #main-nav.mobile-open a {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    font-size: 1rem;
  }

  .pillars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
