/* ═══════════════════════════════════════════════════════════════
   INFRALINK // FUTUR_ — Expérience immersive futuriste
   Thème : noir profond / vert InfraLink #00ff41
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --bg: #040705;
  --bg-2: #081009;
  --bg-panel: #0c1410;
  --txt: #eef6f0;
  --txt-dim: #9ab2a2;
  --txt-faint: #566e5e;
  --accent: #00ff41;
  --accent-2: #00cc34;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glow: rgba(0, 255, 65, 0.35);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: auto; /* Lenis gère le scroll */
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Le curseur natif est masqué sur desktop (curseur personnalisé) */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
}

::selection { background: rgba(0, 255, 65, 0.25); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Focus clavier visible (accessibilité) */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--accent);
  color: #03170a;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 3px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── Grain film ─── */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noiseShift 0.6s steps(3) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1.5%, 1%); }
  66% { transform: translate(1%, -1.5%); }
  100% { transform: translate(0, 0); }
}

/* ═══════════════ PRELOADER ═══════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { width: min(320px, 70vw); }
.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 1.6rem;
}
.preloader-brand b { color: var(--accent); font-weight: inherit; }
.preloader-bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
}
.preloader-meta {
  display: flex;
  justify-content: space-between;
  color: var(--txt-faint);
}

/* ═══════════════ CURSEUR PERSONNALISÉ ═══════════════ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 9500; pointer-events: none; }
  .cursor-dot {
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--glow);
  }
  .cursor-ring {
    position: absolute;
    top: 0; left: 0;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
                margin 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
  }
  .cursor-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: #03170a;
    opacity: 0;
    transition: opacity 0.25s;
    white-space: nowrap;
  }
  /* état : survol d'un élément interactif */
  .cursor.is-hover .cursor-ring {
    width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-color: var(--accent);
    background: rgba(0, 255, 65, 0.08);
  }
  /* état : survol d'un projet → pastille "VOIR" */
  .cursor.is-view .cursor-ring {
    width: 74px; height: 74px; margin: -37px 0 0 -37px;
    border-color: transparent;
    background: var(--accent);
  }
  .cursor.is-view .cursor-label { opacity: 1; }
  .cursor.is-view .cursor-dot { opacity: 0; }
}

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--pad-x);
  transition: background 0.5s, border-color 0.5s, padding 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}
.brand b { color: var(--accent); font-weight: inherit; }

.site-nav { display: flex; gap: 2.2rem; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--txt-dim);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  transition: color 0.3s;
  position: relative;
}
.site-nav a .mono { font-size: 0.55rem; color: var(--accent); opacity: 0.7; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover { color: var(--txt); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.65rem 1.3rem;
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.header-cta:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 65, 0.08);
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.15);
}

/* ═══════════════ INDICATEUR DE SECTION ═══════════════ */
.section-indicator {
  position: fixed;
  left: calc(var(--pad-x) * 0.5);
  bottom: 8vh;
  z-index: 7000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--txt-faint);
}
.section-indicator #secCurrent { color: var(--accent); }
.si-track {
  width: 1px;
  height: 90px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.si-progress {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

/* ═══════════════ BOUTONS ═══════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.btn-primary { border: 1px solid var(--line-strong); color: var(--txt); }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  border-radius: inherit;
}
.btn-primary:hover { color: #03170a; border-color: transparent; box-shadow: 0 8px 40px rgba(0, 255, 65, 0.3); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-large { font-size: 1rem; padding: 1.25rem 3rem; }
.btn svg { transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translate(3px, 0); }
.btn-primary[href^="#"]:hover svg { transform: translate(0, 3px); }

/* ═══════════════ ÉLÉMENTS DE SECTION COMMUNS ═══════════════ */
section { position: relative; }

.sec-tag {
  color: var(--txt-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 2rem;
}
.sec-tag span { color: var(--accent); }
.sec-tag::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-head { padding: 0 var(--pad-x); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* wrappers créés par le split JS */
.split-line { display: block; overflow: hidden; }
.split-inner { display: inline-block; will-change: transform; }
.char { display: inline-block; will-change: transform, opacity; }

/* ═══════════════ 01 · HERO ═══════════════ */
.hero {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 40%, rgba(5, 5, 8, 0.75) 100%),
    linear-gradient(to bottom, rgba(5, 5, 8, 0.4), transparent 25%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero-hud { position: absolute; inset: 0; pointer-events: none; color: var(--txt-faint); }
.hero-hud .hud { position: absolute; line-height: 1.9; }
.hero-hud em { color: var(--accent); font-style: normal; }
.hud.tl { top: 6.5rem; left: var(--pad-x); }
.hud.tr { top: 6.5rem; right: var(--pad-x); text-align: right; }
.hud.bl { bottom: 3.2rem; left: var(--pad-x); }
.hud.br { bottom: 3.2rem; right: var(--pad-x); text-align: right; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
}
.hero-kicker {
  color: var(--txt-dim);
  margin-bottom: 2.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.ht-line { display: block; }
/* le dégradé est appliqué par caractère : les spans transformés par GSAP
   cassent un background-clip:text posé sur la ligne parente */
.ht-accent .char {
  background: linear-gradient(170deg, var(--txt) 18%, var(--accent) 62%, var(--accent-2) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin-top: 2.6rem;
  color: var(--txt-dim);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.8;
}
.hero-actions { margin-top: 3rem; display: flex; justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--txt-faint);
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.scroll-line span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(260%); }
}

/* ═══════════════ 02 · MANIFESTE ═══════════════ */
.manifesto { background: var(--bg); }
.manifesto-stage {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Tunnel : plan de grille incliné en perspective CSS */
.m-grid {
  position: absolute;
  inset: 0;
  perspective: 600px;
  overflow: hidden;
  pointer-events: none;
}
.m-grid::after {
  /* voile pour garder le texte lisible */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(5, 5, 8, 0.82) 25%, rgba(5, 5, 8, 0.25) 100%);
}
.m-grid-plane {
  position: absolute;
  left: -50%;
  top: 55%;
  width: 200%;
  height: 160%;
  transform: rotateX(72deg);
  transform-origin: top center;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.14) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  will-change: background-position;
}

.m-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vmin, 520px);
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform, opacity;
}

.m-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: 1100px;
}
.m-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.m-word { display: inline-block; opacity: 0.1; will-change: opacity; }
.m-footnote { margin-top: 3rem; color: var(--txt-faint); }

/* ═══════════════ 03 · EXPERTISES ═══════════════ */
.services {
  padding: 22vh 0 14vh;
  background:
    radial-gradient(ellipse 60% 40% at 85% 8%, rgba(0, 204, 52, 0.05), transparent 60%),
    var(--bg);
}
.services .section-head { margin-bottom: 12vh; }

.services-list { display: flex; flex-direction: column; }

.service-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: 9vh var(--pad-x);
  border-top: 1px solid var(--line);
  position: relative;
}
.service-item:last-child { border-bottom: 1px solid var(--line); }
/* une entrée sur deux : visuel à droite */
.service-item:nth-child(even) .sv-visual { order: 2; }
.service-item:nth-child(even) .sv-body { order: 1; }

.sv-visual {
  display: flex;
  justify-content: center;
  color: var(--accent);
}
.service-item[data-service="02"] .sv-visual { color: var(--accent-2); }
.service-item[data-service="04"] .sv-visual { color: var(--accent-2); }
.sv-svg {
  width: min(320px, 62vw);
  filter: drop-shadow(0 0 18px rgba(0, 255, 65, 0.12));
}

.sv-body { max-width: 30rem; }
.sv-num {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 1.4rem;
}
.sv-num::after { content: ''; width: 44px; height: 1px; background: var(--line-strong); }
.sv-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 1.3rem;
  text-transform: uppercase;
}
.sv-desc { color: var(--txt-dim); margin-bottom: 1.6rem; max-width: 26rem; }
.sv-tags { color: var(--txt-faint); }

/* — animations des visuels SVG — */
.radar-sweep { transform-origin: 150px 150px; animation: rotateSlow 6s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.radar-blip { animation: blip 3s ease-in-out infinite; }
.radar-blip.b2 { animation-delay: 1.4s; }
@keyframes blip { 0%, 100% { opacity: 0.15; } 45% { opacity: 1; } }

.bp-arc { stroke-dasharray: 240; stroke-dashoffset: 240; animation: drawArc 4.5s var(--ease-out) infinite; }
.bp-arc2 { stroke-dasharray: 150; stroke-dashoffset: 150; animation-delay: 0.7s; }
@keyframes drawArc { 0% { stroke-dashoffset: 240; opacity: 0.9; } 55% { stroke-dashoffset: 0; opacity: 0.9; } 85%, 100% { stroke-dashoffset: 0; opacity: 0.15; } }
.bp-dot { animation: blip 4.5s ease-in-out infinite; }

.ck-path { stroke-dasharray: 6 10; animation: dashFlow 1.4s linear infinite; }
.ck-path.p2 { animation-duration: 1.9s; }
.ck-path.p3 { animation-duration: 1.6s; animation-direction: reverse; }
.ck-path.p4 { animation-duration: 2.2s; }
@keyframes dashFlow { to { stroke-dashoffset: -32; } }

.wave-group .wv { animation: waveSlide 3.4s linear infinite; }
.wave-group .w2 { animation-duration: 4.6s; }
.wave-group .w3 { animation-duration: 5.8s; animation-direction: reverse; }
@keyframes waveSlide { to { transform: translateX(-150px); } }
.wave-dot { animation: blip 2.4s ease-in-out infinite; }

.orbit { transform-origin: 150px 150px; }
.orbit.o1 { animation: rotateSlow 9s linear infinite; }
.orbit.o2 { transform: rotate(60deg); animation: orbitB 12s linear infinite; }
.orbit.o3 { transform: rotate(-60deg); animation: orbitC 15s linear infinite; }
@keyframes orbitB { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes orbitC { from { transform: rotate(-60deg); } to { transform: rotate(300deg); } }

/* ═══════════════ 04 · SYSTÈME VIVANT ═══════════════ */
.system {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 16vh var(--pad-x);
  background:
    radial-gradient(ellipse 55% 45% at 70% 50%, rgba(0, 255, 65, 0.04), transparent 65%),
    var(--bg);
}
.system-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.system-inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}
.system-desc { color: var(--txt-dim); margin-top: 1.8rem; }

.system-hud {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  bottom: 8vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, auto));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hud-module {
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hud-key { color: var(--txt-faint); font-size: 0.55rem; }
.hud-val { color: var(--accent); font-size: 0.78rem; }

/* ═══════════════ 05 · PROJETS (scroll horizontal) ═══════════════ */
.projects { background: var(--bg-2); }
.projects-pin {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.projects-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 7rem var(--pad-x) 0;
  pointer-events: none;
}
.projects-head .sec-tag { margin-bottom: 0; }
.projects-count { color: var(--txt-faint); }

.projects-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 0 var(--pad-x);
  will-change: transform;
}

.project-panel {
  position: relative;
  flex: 0 0 auto;
  width: min(72vw, 880px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}

.p-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  color: var(--accent);
  background: var(--bg-panel);
  transition: border-color 0.5s;
}
.project-panel:hover .p-visual { border-color: rgba(0, 255, 65, 0.35); }
.p-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8%;
  transition: transform 1.1s var(--ease-out);
}
.project-panel:hover .p-svg { transform: scale(1.06) translateY(-1.5%); }

/* fonds génératifs propres à chaque projet */
.p-nova { background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.14), rgba(12, 20, 14, 0) 55%), conic-gradient(from 210deg at 50% 50%, #0c1410, #10251a 30%, #0c1410 55%, #143020 80%, #0c1410); }
.p-burst {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 255, 65, 0.09) 8deg, transparent 16deg, transparent 90deg, rgba(0, 204, 52, 0.08) 98deg, transparent 106deg, transparent 200deg, rgba(0, 255, 65, 0.07) 208deg, transparent 216deg);
  animation: rotateSlow 26s linear infinite;
}
.p-infra { background: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(0, 255, 65, 0.08), transparent 60%), linear-gradient(185deg, #0b130d, #102015 55%, #0a110c); }
.p-aether { background: linear-gradient(170deg, #0c1a10 0%, #0e2415 35%, #0a120c 70%, #0c1410 100%); color: #8fffb2; }
.p-bands {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(175deg, transparent 0 26px, rgba(143, 255, 180, 0.05) 26px 27px);
}
.p-obsidian { background: radial-gradient(ellipse 80% 90% at 50% 110%, rgba(0, 204, 52, 0.14), transparent 60%), linear-gradient(200deg, #0b0d0b, #111a12 55%, #090c09); color: #7de895; }
.p-helix { background: radial-gradient(ellipse 70% 60% at 30% 30%, rgba(0, 255, 65, 0.1), transparent 55%), linear-gradient(140deg, #0a140d, #0e2013 60%, #0a100b); }
.p-quantum { background: linear-gradient(160deg, #0d1810, #132615 50%, #0b120d); color: #5ee87f; }
.p-matrix {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(120, 240, 150, 0.28) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 75%);
}

.p-info { padding-bottom: 0.4rem; }
.p-index { color: var(--txt-faint); display: block; margin-bottom: 1rem; }
.p-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}
.p-meta {
  display: flex;
  gap: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
/* détails révélés au survol (desktop) */
.p-desc, .p-link {
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  .p-desc, .p-link { opacity: 0; transform: translateY(10px); }
  .project-panel:hover .p-desc,
  .project-panel:focus-within .p-desc { opacity: 1; transform: none; }
  .project-panel:hover .p-link,
  .project-panel:focus-within .p-link { opacity: 1; transform: none; transition-delay: 0.06s; }
}
.p-desc { color: var(--txt-dim); font-size: 0.92rem; margin-bottom: 1.2rem; max-width: 22rem; }
.p-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════ 06 · IMPACT ═══════════════ */
.stats { padding: 22vh 0; background: var(--bg); }
.stats .section-head { margin-bottom: 9vh; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 4.5rem 2rem;
  text-align: center;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.stat:first-child { border-left: none; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-suffix { color: var(--accent); font-size: 0.55em; font-weight: 400; }
.stat-prefix { color: var(--accent); font-size: 0.7em; font-weight: 400; margin-right: 0.05em; }
.stat-label { color: var(--txt-faint); }

/* ═══════════════ 07 · CONTACT ═══════════════ */
.contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 18vh var(--pad-x) 0;
  background: #030305;
}
.contact-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(70vw, 800px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.16) 0%, rgba(0, 204, 52, 0.07) 30%, transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
  padding-bottom: 8vh;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.contact-sub { color: var(--txt-dim); margin: 2rem 0 3rem; }
.contact-links {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--txt-faint);
}
.contact-links a { transition: color 0.3s; }
.contact-links a:hover { color: var(--accent); }
.contact-links .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-faint); }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--txt-faint);
}
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--accent); }
.footer-note a { color: var(--txt-dim); }

/* ═══════════════ PANNEAU DOMAINE ═══════════════ */
.domain-overlay {
  position: fixed;
  inset: 0;
  z-index: 8600;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
}
.domain-overlay.is-open { visibility: visible; }
.do-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 4, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s;
}
.domain-overlay.is-open .do-backdrop { opacity: 1; }
.do-panel {
  position: relative;
  width: min(560px, 100%);
  height: 100%;
  background: rgba(6, 12, 8, 0.94);
  border-left: 1px solid var(--line-strong);
  padding: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(4rem, 8vh, 6rem);
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform 0.65s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.domain-overlay.is-open .do-panel { transform: translateX(0); }
.do-close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--txt);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.do-close:hover { border-color: var(--accent); background: rgba(0, 255, 65, 0.08); transform: rotate(90deg); }
.do-index { color: var(--accent); display: block; margin-bottom: 1rem; }
.do-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.do-desc { color: var(--txt-dim); margin-bottom: 2.4rem; }
.do-list { border-top: 1px solid var(--line); margin-bottom: 2.6rem; }
.do-service {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.do-service h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}
.do-service h4 .mono { color: var(--accent); font-size: 0.55rem; white-space: nowrap; }
.do-service p { color: var(--txt-dim); font-size: 0.88rem; }
.do-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.do-contact { color: var(--txt-dim); transition: color 0.3s; }
.do-contact:hover { color: var(--accent); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .site-nav { display: none; }
}

@media (max-width: 900px) {
  .section-indicator { display: none; }
  .hud.tl, .hud.tr { top: 5.4rem; }

  /* Projets : pile verticale sur mobile (le pin horizontal est désactivé en JS) */
  .projects-pin { height: auto; overflow: visible; display: block; padding: 16vh 0 10vh; }
  .projects-head { position: static; padding: 0 var(--pad-x) 3rem; }
  .projects-count { display: none; }
  .projects-track { flex-direction: column; align-items: stretch; gap: 4.5rem; }
  .project-panel { width: 100%; grid-template-columns: 1fr; align-items: start; }
  .p-desc, .p-link { opacity: 1; transform: none; }

  .service-item { grid-template-columns: 1fr; gap: 2.5rem; padding: 8vh var(--pad-x); }
  .service-item:nth-child(even) .sv-visual { order: 0; }
  .sv-visual { justify-content: flex-start; }
  .sv-svg { width: min(230px, 56vw); }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 3rem 1.2rem; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }

  .system { padding: 14vh var(--pad-x); min-height: 90vh; flex-direction: column; align-items: flex-start; justify-content: center; }
  .system-hud { position: static; margin-top: 3.5rem; grid-template-columns: 1fr 1fr; width: 100%; max-width: 26rem; }

  .hero-hud .hud.tl, .hero-hud .hud.tr { display: none; }
  .hud.bl { display: none; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .hero-sub br { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}

/* ═══════════════ RÉDUCTION DES ANIMATIONS ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .noise { animation: none; }
  .m-word { opacity: 1; }
  .p-desc, .p-link { opacity: 1 !important; transform: none !important; }
}
