/* =========================================================
   MKiA — Scroll-driven premium website
   ========================================================= */

:root {
  /* Color zones */
  --bg-deep: #050518;
  --bg-dark: #080820;
  --bg-mid:  #0e0e2e;
  --bg-accent: #1a0a3a;

  --text-primary:   #f3f2ff;
  --text-secondary: #9a9ab8;
  --text-muted:     #5a5a78;

  --accent-violet: #7b5cff;
  --accent-indigo: #4f46ff;
  --accent-azure:  #5aa9ff;
  --accent-pink:   #c084fc;

  --line-subtle: rgba(123, 92, 255, 0.18);
  --line-hover:  rgba(123, 92, 255, 0.6);

  --glow-soft:  0 0 60px rgba(123, 92, 255, 0.25);
  --glow-hard:  0 0 80px rgba(79, 70, 255, 0.55);

  --font-display: 'Clash Display', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll */

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}

/* Body wash — subtle radial gradient that suggests light leak */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(79, 70, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 85%, rgba(123, 92, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(192, 132, 252, 0.06), transparent 70%);
}
@media (max-width: 720px) {
  body::before {
    background:
      radial-gradient(ellipse 90% 40% at 50% 10%, rgba(79, 70, 255, 0.10), transparent 70%),
      radial-gradient(ellipse 90% 40% at 50% 95%, rgba(192, 132, 252, 0.06), transparent 70%);
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-violet); color: #fff; }

/* Focus visible pour la navigation clavier (a11y) */
:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { outline: none; }

/* =========================================================
   LOADER (animated rings)
   ========================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-expo), visibility 0.7s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-core {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-top-color: var(--accent-violet);
  border-right-color: var(--accent-violet);
  border-radius: 50%;
  animation: loaderSpin 1.6s linear infinite;
  box-shadow: 0 0 40px rgba(123, 92, 255, 0.3);
}
.loader-ring-2 {
  inset: 20px;
  border-top-color: var(--accent-azure);
  border-right-color: var(--accent-azure);
  animation: loaderSpin 2.2s linear infinite reverse;
  box-shadow: 0 0 30px rgba(90, 169, 255, 0.3);
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
.loader-brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  z-index: 1;
}
.loader-accent {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-azure));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  transition: padding 0.4s var(--ease-expo);
}
.site-header.scrolled {
  padding: 1rem 3vw;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.nav-brand { justify-self: start; }
.nav-links { justify-self: center; }
.nav-cta { justify-self: end; }

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.brand-mark { color: var(--text-primary); }
.brand-accent {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-azure));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 12px var(--accent-violet);
  margin-left: 0.2rem;
  animation: brandPulse 2s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.nav-links {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 10, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 30px -10px rgba(0, 0, 0, 0.5);
  transition: padding 0.5s var(--ease-expo), transform 0.5s var(--ease-expo),
              background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled .nav-links {
  padding: 0.55rem 1.2rem;
  transform: translateY(-2px);
  background: rgba(10, 10, 28, 0.7);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 14px 40px -12px rgba(0, 0, 0, 0.7),
    0 0 60px -20px rgba(123, 92, 255, 0.35);
}
.nav-links li { display: flex; }
.nav-links a {
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.3s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(123, 92, 255, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(123, 92, 255, 0.04);
  transition: all 0.3s var(--ease-expo);
}
.nav-cta:hover {
  border-color: var(--line-hover);
  background: rgba(123, 92, 255, 0.1);
  box-shadow: 0 0 30px rgba(123, 92, 255, 0.2);
}
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }
.nav-cta-arrow { transition: transform 0.3s var(--ease-expo); }

/* =========================================================
   HERO (standalone 100vh)
   ========================================================= */
.hero-standalone {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  background: var(--bg-deep);
  overflow: hidden;
  z-index: 2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(123, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(123, 92, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  opacity: 0.7;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 255, 0.4), transparent 60%);
  top: -10%; right: -8%;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.28), transparent 60%);
  bottom: -15%; left: -10%;
  animation: orbFloat 15s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.04);
  backdrop-filter: blur(6px);
}

.hero-label { margin-bottom: 2rem; }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 2rem 0;
  color: var(--text-primary);
}
.hero-heading .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-heading .word {
  display: inline-block;
  margin-right: 0.25em;
}
.hero-heading .word-accent {
  background: linear-gradient(135deg, var(--accent-violet) 20%, var(--accent-azure) 60%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.word-dot {
  color: var(--accent-violet);
  -webkit-text-fill-color: var(--accent-violet);
  text-shadow: 0 0 20px var(--accent-violet);
}

.hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 2.5rem 0;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(79, 70, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 45px rgba(123, 92, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-arrow { transition: transform 0.4s var(--ease-expo); }
.btn-primary:hover .btn-arrow { transform: translateX(5px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  transition: all 0.35s var(--ease-expo);
}
.btn-ghost:hover {
  border-color: var(--line-hover);
  background: rgba(123, 92, 255, 0.08);
  box-shadow: 0 0 30px rgba(123, 92, 255, 0.18);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  animation: scrollHint 2.4s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-violet), transparent);
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.5; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 6px); }
}

/* =========================================================
   3D SCENE (Three.js canvas)
   ========================================================= */
#three-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-expo);
  display: block;
}
#three-canvas.ready { opacity: 1; }

/* Soft vignette over the 3D scene to keep text crisp */
.three-veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 25% 50%, rgba(5, 5, 24, 0.72), transparent 70%),
    radial-gradient(ellipse 45% 35% at 75% 50%, rgba(5, 5, 24, 0.72), transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(5, 5, 24, 0.9), transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(5, 5, 24, 0.9), transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.three-veil.active { opacity: 1; }

/* Dark overlay (for stats) */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: rgba(5, 5, 24, 0.92);
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee-wrap {
  position: fixed;
  left: 0; right: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}
.marquee-top { top: 50%; transform: translateY(-50%); }

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 242, 255, 0.18);
  will-change: transform;
  padding-left: 100vw;
}

/* =========================================================
   SCROLL CONTAINER & SECTIONS
   ========================================================= */
#scroll-container {
  position: relative;
  height: 760vh;
  z-index: 5;
  pointer-events: none;
  /* NE PAS mettre perspective/transform/filter ici : ça creerait un nouveau
     containing block et casserait le position:fixed des .scroll-section
     (elles se mettraient a defiler avec le scroll au lieu de rester centrees). */
}

.scroll-section {
  position: fixed;
  inset: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  will-change: transform, opacity;
  padding: 10vh 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

/* Halo sombre derriere le texte pour qu'il tranche sur la scene 3D */
.section-content .section-inner,
.section-cta .section-inner {
  position: relative;
  isolation: isolate;
}
.section-content .section-inner::before,
.section-cta .section-inner::before {
  content: '';
  position: absolute;
  inset: -3rem -4rem;
  background:
    radial-gradient(ellipse 70% 85% at 30% 50%, rgba(5, 5, 24, 0.85), rgba(5, 5, 24, 0.4) 55%, transparent 85%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
.align-right .section-inner::before {
  background:
    radial-gradient(ellipse 70% 85% at 70% 50%, rgba(5, 5, 24, 0.85), rgba(5, 5, 24, 0.4) 55%, transparent 85%);
}

/* Accent line to the left of each section — gives architectural anchor */
.section-content .section-inner::after,
.section-cta .section-inner::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: -2rem;
  width: 1px;
  height: calc(100% - 5rem);
  background: linear-gradient(to bottom, transparent, var(--accent-violet) 30%, var(--accent-violet) 70%, transparent);
  opacity: 0.5;
  box-shadow: 0 0 8px var(--accent-violet);
}
.align-right .section-inner::after {
  left: auto;
  right: -2rem;
}

/* Side alignment zones */
.align-left {
  padding-left: 6vw;
  padding-right: 50vw;
}
.align-right {
  padding-left: 50vw;
  padding-right: 6vw;
  justify-content: flex-end;
}
.align-left .section-inner,
.align-right .section-inner { max-width: 42vw; }

/* Center-aligned variant (for big statement sections) */
.align-center {
  padding-left: 8vw;
  padding-right: 8vw;
  justify-content: center;
}
.align-center .section-inner {
  max-width: 960px;
  align-items: center;
  text-align: center;
}
.align-center .section-inner::before {
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(5, 5, 24, 0.9), rgba(5, 5, 24, 0.45) 55%, transparent 85%) !important;
}
.align-center .section-inner::after { display: none; }
.align-center .section-heading { font-size: clamp(2.6rem, 6vw, 5.8rem); }

/* =========================================================
   VISION — effet spécial (hold long + animations infinies)
   ========================================================= */
.section-vision .section-inner { position: relative; }

.vision-heading {
  transform-origin: center center;
  will-change: transform;
}

.vision-accent {
  font-style: normal;
  background: linear-gradient(
    120deg,
    var(--accent-violet) 0%,
    var(--accent-azure) 35%,
    var(--accent-pink) 65%,
    var(--accent-violet) 100%
  );
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  animation: visionShimmer 5s linear infinite;
  filter: drop-shadow(0 0 24px rgba(123, 92, 255, 0.35));
}
.vision-accent::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0.12em;
  height: 0.08em;
  background: linear-gradient(90deg, transparent, var(--accent-violet), var(--accent-azure), var(--accent-pink), transparent);
  opacity: 0.55;
  filter: blur(1px);
  animation: visionUnderline 5s linear infinite;
}

@keyframes visionShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}
@keyframes visionUnderline {
  0%, 100% { transform: scaleX(0.6); opacity: 0.3; }
  50%      { transform: scaleX(1);   opacity: 0.7; }
}

/* Balai lumineux sous le heading — autonome (pulse continu) */
.vision-sweep {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 1px;
  margin: 0.5rem auto;
  background: linear-gradient(90deg, transparent, var(--accent-violet) 30%, var(--accent-azure) 50%, var(--accent-pink) 70%, transparent);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.6);
  transform-origin: center;
  will-change: transform, opacity;
  animation: visionSweep 4.5s ease-in-out infinite;
}
@keyframes visionSweep {
  0%, 100% { transform: scaleX(0.4); opacity: 0.35; }
  50%      { transform: scaleX(1);   opacity: 0.85; }
}

.vision-body {
  will-change: transform, opacity;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.2rem 0;
  color: var(--text-primary);
  text-shadow: 0 2px 40px rgba(5, 5, 24, 0.9), 0 0 60px rgba(5, 5, 24, 0.6);
}

.section-body {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: #c2c2dc;
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
  text-shadow: 0 1px 20px rgba(5, 5, 24, 0.9);
}

.section-note {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent-azure);
  margin-top: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* =========================================================
   STATS SECTION
   ========================================================= */
.section-stats {
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: stretch;
  justify-content: center;
  z-index: 6;
}
.stats-header {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stats-heading { font-size: clamp(2.6rem, 5.5vw, 5.5rem); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  align-items: end;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-subtle);
  position: relative;
}
.stat::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet);
}

.stat-top {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--accent-violet);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   CTA (final, persistent)
   ========================================================= */
.section-cta { padding-left: 45vw; padding-right: 6vw; }
.cta-heading { font-size: clamp(2.8rem, 6vw, 6rem); }
.cta-actions { margin-top: 1.5rem; }

.cta-socials {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-subtle);
}
.cta-socials a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}
.cta-socials a:hover { color: var(--text-primary); }
.cta-socials a::before {
  content: '→';
  margin-right: 0.4rem;
  color: var(--accent-violet);
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: all 0.3s var(--ease-expo);
}
.cta-socials a:hover::before { opacity: 1; transform: translateX(0); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 3rem 6vw 2.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-subtle);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text-primary); }

/* =========================================================
   SITE SECTIONS (normal scroll content below scroll-container)
   ========================================================= */
.site-sections {
  position: relative;
  z-index: 6;
  padding-top: 0;
  /* No opaque background — keep the 3D scene visible behind the cards. */
  background: transparent;
}
/* Soft ambient wash so the 3D scene darkens slightly under the content, improving contrast */
.site-sections::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(5, 5, 24, 0.55), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(5, 5, 24, 0.75), transparent 70%);
}

.site-section {
  position: relative;
  padding: 3rem 6vw 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Halo behind each section header to keep titles readable over 3D */
.site-section-header {
  position: relative;
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.site-section-header::before {
  content: '';
  position: absolute;
  inset: -3rem -4rem;
  z-index: -1;
  background: radial-gradient(ellipse 70% 85% at 20% 50%, rgba(5, 5, 24, 0.7), transparent 70%);
  pointer-events: none;
}
.site-section-title,
.site-section-sub {
  text-shadow: 0 2px 30px rgba(5, 5, 24, 0.9);
}
.site-section-header .section-label {
  margin-bottom: 1.5rem;
}
.site-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}
.site-section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-violet), var(--accent-azure), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-section-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Reveal-on-scroll base */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(20, 15, 50, 0.6), rgba(10, 8, 30, 0.55));
  border: 1px solid var(--line-subtle);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.5s var(--ease-expo), border-color 0.4s, box-shadow 0.5s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 20% 0%, rgba(123, 92, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hover);
  box-shadow: var(--glow-soft);
}
.service-card:hover::before { opacity: 1; }

.service-card-featured {
  background: linear-gradient(180deg, rgba(79, 70, 255, 0.16), rgba(123, 92, 255, 0.08));
  border-color: rgba(123, 92, 255, 0.45);
}
.service-card-featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-violet), var(--accent-azure), transparent);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.service-card-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.03em;
  line-height: 1;
}
.service-card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-violet);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.08);
}
.service-card-featured .service-card-tag {
  color: var(--text-primary);
  border-color: rgba(123, 92, 255, 0.6);
  background: rgba(123, 92, 255, 0.25);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.service-card-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}
.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.7rem;
}
.service-card-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.service-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-azure));
  border-radius: 2px;
  transform: rotate(45deg);
}
.service-card-foot {
  display: inline-block;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  width: 100%;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  position: relative;
  border: 1px solid var(--line-subtle);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10, 8, 30, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.55s var(--ease-expo), border-color 0.4s, box-shadow 0.5s;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-hover);
  box-shadow: var(--glow-soft);
}

.portfolio-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.portfolio-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(5, 5, 24, 0.85) 100%),
    radial-gradient(circle at 30% 30%, rgba(123, 92, 255, 0.3), transparent 60%);
  mix-blend-mode: screen;
}
.portfolio-visual-1 { background: linear-gradient(135deg, #6a3dc0, #2d8ef7); }
.portfolio-visual-2 { background: linear-gradient(135deg, #c084fc, #5aa9ff); }
.portfolio-visual-3 { background: linear-gradient(135deg, #1a0a3a, #7b5cff); }
.portfolio-visual-4 { background: linear-gradient(135deg, #2d1a5e, #4f46ff); }
.portfolio-visual-5 { background: linear-gradient(135deg, #3a1a5e, #c084fc); }
.portfolio-visual-6 { background: linear-gradient(135deg, #0a1a4a, #5aa9ff); }

/* Logo reveal on hover */
.portfolio-logo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.45s var(--ease-expo), transform 0.55s var(--ease-expo);
  pointer-events: none;
}
.portfolio-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(5, 5, 24, 0.78), rgba(5, 5, 24, 0.45) 60%, rgba(5, 5, 24, 0.15) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.logo-mark {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  background: rgba(5, 5, 24, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(139, 92, 246, 0.45);
}
.logo-word {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 18px rgba(5, 5, 24, 0.9);
}
.portfolio-card:hover .portfolio-logo {
  opacity: 1;
  transform: scale(1);
}
.portfolio-card:hover .portfolio-visual::after {
  opacity: 0.35;
  transition: opacity 0.45s ease;
}

.portfolio-meta {
  padding: 1.8rem 1.8rem 2rem;
}
.portfolio-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-azure);
  margin-bottom: 0.8rem;
  display: inline-block;
}
.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}
.portfolio-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.2rem;
}
.portfolio-stat {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-primary);
  background: rgba(123, 92, 255, 0.1);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section {
  padding-top: 6rem;
  padding-bottom: 10rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 6rem;
  align-items: start;
}
.about-head {
  grid-column: 1 / 2;
}
.about-body {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
.about-values {
  grid-column: 1 / 2;
  display: grid;
  gap: 1rem;
}

.about-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0 0 1.8rem;
  font-weight: 500;
}
.about-p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}
.about-p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.value-pill {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(180deg, rgba(20, 15, 50, 0.5), rgba(10, 8, 30, 0.4));
  border: 1px solid var(--line-subtle);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.4s, transform 0.4s;
}
.value-pill:hover {
  border-color: var(--line-hover);
  transform: translateX(4px);
}
.value-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-violet);
  min-width: 2rem;
}
.value-pill h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.value-pill p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   TESTIMONIALS / AVIS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(22, 16, 58, 0.6), rgba(10, 8, 32, 0.5));
  border: 1px solid var(--line-subtle);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(139, 92, 246, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-4px);
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-stars {
  font-size: 1rem;
  letter-spacing: 0.25em;
  background: linear-gradient(120deg, var(--accent-violet), var(--accent-azure), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-subtle);
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.testimonial-meta h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--text-primary);
}
.testimonial-meta span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* =========================================================
   ILS NOUS ONT FAIT CONFIANCE — 3D CYLINDER
   ========================================================= */
.trust-section {
  overflow: hidden;
}
.brands-3d-stage {
  position: relative;
  width: 100%;
  height: 360px;
  margin: 4rem 0 3rem;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.brands-3d-stage::before,
.brands-3d-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  z-index: 4;
  pointer-events: none;
}
.brands-3d-stage::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-deep) 10%, rgba(5, 5, 24, 0.6) 55%, transparent 100%);
}
.brands-3d-stage::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-deep) 10%, rgba(5, 5, 24, 0.6) 55%, transparent 100%);
}
.brands-cylinder {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 130px;
  margin: -65px 0 0 -110px;
  transform-style: preserve-3d;
  animation: brandsRotate 32s linear infinite;
  animation-play-state: running;
}
.brands-3d-stage:hover .brands-cylinder { animation-play-state: paused; }
.brand-face { transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.brand-face:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(59, 130, 246, 0.22));
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: inset 0 0 22px rgba(139, 92, 246, 0.22), 0 0 40px rgba(139, 92, 246, 0.35);
}
.brand-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 16, 58, 0.82), rgba(12, 10, 34, 0.82));
  border: 1px solid rgba(139, 92, 246, 0.32);
  box-shadow:
    inset 0 0 22px rgba(139, 92, 246, 0.08),
    0 0 28px rgba(59, 130, 246, 0.1);
  backface-visibility: visible;
  transform-origin: center center;
}
.brand-face span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.15;
  color: var(--text-primary);
  text-transform: uppercase;
}
.brand-face span em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  background: linear-gradient(120deg, var(--accent-violet), var(--accent-azure), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.4rem;
}
@keyframes brandsRotate {
  from { transform: rotateX(-8deg) rotateY(0deg); }
  to { transform: rotateX(-8deg) rotateY(360deg); }
}

.trust-footnote {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-subtle);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.trust-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent-violet), var(--accent-azure), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.trust-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(20, 15, 50, 0.55), rgba(10, 8, 30, 0.45));
  border: 1px solid var(--line-subtle);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.4s, transform 0.45s var(--ease-expo), box-shadow 0.4s;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: var(--glow-soft);
}

.blog-card-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 2.8rem;
  background: linear-gradient(180deg, rgba(79, 70, 255, 0.12), rgba(123, 92, 255, 0.05));
  border-color: rgba(123, 92, 255, 0.35);
}

.blog-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-pink);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.blog-card-featured .blog-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-subtle);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  padding-bottom: 10rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 1.5rem;
  padding: 2.8rem;
  background: linear-gradient(180deg, rgba(20, 15, 50, 0.6), rgba(10, 8, 30, 0.55));
  border: 1px solid var(--line-subtle);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: rgba(5, 5, 24, 0.55);
  color: var(--text-primary);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.15);
}
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
                    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 22px) 1.25rem, calc(100% - 16px) 1.25rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.form-field select option { background: var(--bg-deep); color: var(--text-primary); }

.form-submit {
  justify-self: start;
  margin-top: 0.5rem;
}
.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-height: 1.2rem;
}
.form-note.success { color: #6cf3a8; }
.form-note.error   { color: #ff7a90; }

.contact-info {
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(10, 8, 30, 0.4);
  border: 1px solid var(--line-subtle);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 6rem;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-subtle);
}
.contact-info-block:last-child { padding-bottom: 0; border-bottom: none; }
.contact-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.contact-info-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}
a.contact-info-value { transition: color 0.3s; }
a.contact-info-value:hover { color: var(--accent-violet); }

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  width: fit-content;
}
.social-link svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.social-link:hover {
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
  transform: translateX(4px);
}
.social-link:hover svg { transform: scale(1.08); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { padding: 0.6rem 1rem; font-size: 0.75rem; }

  /* ---- Hero centre sur mobile ---- */
  .hero-standalone {
    padding: 0 5vw;
    justify-content: center;
    text-align: center;
  }
  .hero-inner { text-align: center; }
  .hero-label { margin-left: auto; margin-right: auto; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }

  /* ---- Sections scroll : tout centre en mobile ---- */
  .align-left, .align-right, .align-center, .section-cta {
    padding-left: 5vw;
    padding-right: 5vw;
    justify-content: center;
  }
  .align-left .section-inner,
  .align-right .section-inner,
  .align-center .section-inner {
    max-width: 100%;
    text-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Masquer les lignes d'accent violettes laterales qui deborderaient a droite */
  .section-content .section-inner::after,
  .section-cta .section-inner::after,
  .align-right .section-inner::after,
  .align-left .section-inner::after { display: none; }

  /* Halo sombre recadre pour eviter la fuite laterale */
  .section-content .section-inner::before,
  .section-cta .section-inner::before {
    inset: -1.5rem -1rem;
    background: radial-gradient(ellipse 85% 90% at 50% 50%, rgba(5, 5, 24, 0.85), rgba(5, 5, 24, 0.4) 60%, transparent 90%);
  }

  .scroll-section { padding-top: 18vh; padding-bottom: 8vh; }

  /* Dark backdrop behind text on mobile so it reads over canvas */
  .section-content .section-inner,
  .section-cta .section-inner {
    background: rgba(5, 5, 24, 0.82);
    padding: 1.8rem;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-subtle);
    width: 100%;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  /* Scroll container tres haut en mobile : chaque section et chaque effet zoom
     ont 2x plus de distance de scroll -> zoom tres lent, lecture confortable */
  #scroll-container { height: 1520vh; }

  .marquee-text { font-size: 22vw; }

  /* Site sections mobile */
  .site-section { padding: 5rem 5vw; }
  .site-section-header { margin-bottom: 3rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-card { padding: 2rem; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-head, .about-body, .about-values {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .testimonials-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .testimonial-card { padding: 1.8rem; }

  .brands-3d-stage { height: 300px; perspective: 1000px; }
  .brands-cylinder {
    width: 180px; height: 110px;
    margin: -55px 0 0 -90px;
    animation-duration: 28s;
  }
  .brand-face {
    width: 180px; height: 110px;
    transform-origin: center;
  }
  .brand-face span { font-size: 1.1rem; }
  .brand-face span em { font-size: 0.72rem; }
  .trust-footnote { grid-template-columns: 1fr; gap: 1.5rem; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-featured { grid-column: 1; grid-row: auto; padding: 2rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { position: static; padding: 2rem; }
  .contact-form { padding: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 560px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* =========================================================
   BLOG CARD — état "Bientôt" (articles pas encore publiés)
   ========================================================= */
.blog-card-soon {
  position: relative;
  cursor: default;
}
.blog-card-soon::before {
  content: 'Bientôt';
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 999px;
}
.blog-card-soon:hover {
  transform: none;
  border-color: var(--line-subtle);
  box-shadow: none;
}

/* =========================================================
   HEADER MOBILE — pill compacte unifiee
   ========================================================= */
@media (max-width: 720px) {
  .site-header {
    padding: 0.6rem 0;
    top: 0.6rem;
    display: flex;
    justify-content: center;
  }
  .site-header.scrolled { top: 0.4rem; }

  .nav {
    display: inline-flex;
    grid-template-columns: none;
    width: auto;
    padding: 0.4rem 0.4rem 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(10, 10, 28, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
      0 8px 30px -8px rgba(0, 0, 0, 0.55),
      0 0 40px -20px rgba(123, 92, 255, 0.35);
    gap: 0.9rem;
  }
  .site-header.scrolled .nav {
    background: rgba(10, 10, 28, 0.85);
    box-shadow:
      0 10px 36px -8px rgba(0, 0, 0, 0.75),
      0 0 50px -20px rgba(123, 92, 255, 0.45);
  }
  .nav-brand, .nav-cta { justify-self: auto; }

  .nav-brand { font-size: 1.15rem; }
  .brand-dot { width: 5px; height: 5px; margin-left: 0.15rem; }

  .nav-cta {
    padding: 0.48rem 0.9rem;
    font-size: 0.72rem;
    gap: 0.35rem;
    border: none;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 255, 0.4);
  }
  .nav-cta:hover { box-shadow: 0 6px 18px rgba(123, 92, 255, 0.55); }
}

/* =========================================================
   ACCESSIBILITY — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
