/* ═══════════ Variables ═══════════ */
:root {
  --bg:      #03030e;
  --text:    #eef0ff;
  --muted:   #8b95c8;
  --cyan:    #5ef0ff;
  --violet:  #9b7dff;
  --pink:    #ff66cf;
  --border:  rgba(255, 255, 255, 0.10);
  --glass:   rgba(255, 255, 255, 0.05);
  --glass-h: rgba(255, 255, 255, 0.09);
  --r: 14px;
}

/* ═══════════ Reset ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul   { list-style: none; }
a    { color: inherit; text-decoration: none; }
em   { font-style: normal; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ═══════════ Background ═══════════ */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.orb-a {
  width: 65vw; height: 65vw;
  top: -20vw; left: -15vw;
  background: radial-gradient(circle, rgba(94, 240, 255, 0.38), transparent 70%);
  animation: driftA 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 55vw; height: 55vw;
  top: -8vw; right: -12vw;
  background: radial-gradient(circle, rgba(255, 102, 207, 0.28), transparent 70%);
  animation: driftB 26s ease-in-out infinite alternate;
}
.orb-c {
  width: 50vw; height: 50vw;
  bottom: 5vh; left: 15vw;
  background: radial-gradient(circle, rgba(155, 125, 255, 0.22), transparent 70%);
  animation: driftC 19s ease-in-out infinite alternate;
}
.dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: radial-gradient(rgba(255, 255, 255, 0.85) 0.4px, transparent 0.6px);
  background-size: 26px 26px;
}

@keyframes driftA { to { transform: translate( 6%, 10%) scale(1.05); } }
@keyframes driftB { to { transform: translate(-5%,  8%) scale(1.04); } }
@keyframes driftC { to { transform: translate(-4%, -7%) scale(1.07); } }

/* ═══════════ Layout ═══════════ */
.container {
  width: min(100% - 2rem, 1080px);
  margin-inline: auto;
}

/* ═══════════ Reveal — gardé visible par défaut, animé seulement si JS actif ═══════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: 0.10s; }
.js .d2 { transition-delay: 0.20s; }
.js .d3 { transition-delay: 0.32s; }

/* ═══════════ Typography ═══════════ */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
}
h1 em {
  background: linear-gradient(130deg, #5ef0ff 10%, #9b7dff 52%, #ff66cf 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(1.65rem, 6vw, 2.8rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

/* ═══════════ Badge / Eyebrow ═══════════ */
.badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5ef0ff;
  border: 1px solid rgba(94, 240, 255, 0.32);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  background: rgba(94, 240, 255, 0.07);
}

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(130deg, #5ef0ff, #9b7dff 55%, #ff66cf);
  color: #030314;
  box-shadow: 0 6px 28px rgba(94, 240, 255, 0.35);
  border: none;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 10px 40px rgba(94, 240, 255, 0.5);
}
.btn-white {
  background: #eef0ff;
  color: #03030e;
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.14);
}
.btn-white:hover {
  box-shadow: 0 10px 38px rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3rem;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  width: 100%;
}
.hero-content > * + * { margin-top: 1.3rem; }

.intro {
  color: #8b95c8;
  font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  line-height: 1.72;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tags span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 243, 255, 0.9);
  backdrop-filter: blur(6px);
}

/* ── SVG Network ── */
.hero-visual { display: flex; justify-content: center; }
.net-svg { width: 100%; max-width: 290px; }

.e {
  stroke: rgba(94, 240, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 5 8;
  animation: eDash 5s linear infinite;
}
.e2 {
  stroke: rgba(155, 125, 255, 0.20);
  animation-delay: -2s;
}
.e3 {
  stroke: rgba(255, 102, 207, 0.18);
  animation-delay: -3.5s;
}
.n {
  fill: rgba(94, 240, 255, 0.10);
  stroke: rgba(94, 240, 255, 0.50);
  stroke-width: 1.2;
  opacity: 0.65;
}
.nc {
  fill: rgba(94, 240, 255, 0.15);
  stroke: #5ef0ff;
  stroke-width: 2;
  opacity: 1;
}
.pr {
  fill: none;
  stroke: #5ef0ff;
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ringOut 2.6s ease-out infinite;
}
.prd { animation-delay: 1.3s; }

.nl {
  fill: #5ef0ff;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  dominant-baseline: middle;
}

@keyframes eDash  { to { stroke-dashoffset: -26; } }
@keyframes ringOut {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0;   }
}

/* ═══════════════════════════════════════
   STATS
═══════════════════════════════════════ */
.stats-section {
  padding: 2.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(4px);
}
.stats-row {
  display: grid;
  gap: 1.8rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 10vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(130deg, #5ef0ff, #9b7dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat p {
  margin-top: 0.4rem;
  color: #8b95c8;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.services-section { padding: 5rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 2.8rem;
}
.section-head .eyebrow { margin-bottom: 0.9rem; }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.scard {
  position: relative;
  padding: 1.4rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  cursor: default;
  overflow: hidden;
}
.scard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(94, 240, 255, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.scard:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(94, 240, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.scard:hover::after { opacity: 1; }

.sicon {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
  line-height: 1;
}
.scard p {
  color: #8b95c8;
  font-size: 0.91rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   PROCESS
═══════════════════════════════════════ */
.process-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 36, 0.65) 50%, transparent 100%);
}
.ptrack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.pstep {
  padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
}
.pnum {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.55rem;
  background: linear-gradient(130deg, #5ef0ff, #9b7dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pstep p {
  color: #8b95c8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 0.35rem;
}

/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */
.cta-section { padding: 5rem 0 6rem; }
.cta-box {
  position: relative;
  text-align: center;
  padding: 3.2rem 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(94, 240, 255, 0.20);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 32px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 50% at 50% -5%, rgba(94, 240, 255, 0.10), transparent 65%);
}
.cta-box .eyebrow  { margin-bottom: 1rem; }
.cta-box h2        { margin-bottom: 1rem; }
.cta-box p {
  color: #8b95c8;
  font-size: clamp(0.93rem, 3.4vw, 1.04rem);
  max-width: 48ch;
  margin: 0 auto 2rem;
  line-height: 1.72;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (min-width: 620px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .svc-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-content { flex: 1.1; padding-left: 5rem; }
  .hero-visual  { flex: 1; }
  .net-svg      { max-width: 380px; }
  .svc-grid     { grid-template-columns: repeat(3, 1fr); }
  .ptrack       { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; }
  .orb-a, .orb-b, .orb-c { animation: none; }
  .e, .pr { animation: none; }
}


/* Fix overflow H1 mobile (assoupli) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 7.5vw;
    line-height: 1.12;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
    max-width: 100%;
  }
}
