/* ====================================================================
   KALISECU — feuille de style
   Dark, mono, sentinelle. Palette : nuit #070b12, vert signal, ambre.
   ==================================================================== */

:root {
  --bg: #070b12;
  --bg-2: #0a101b;
  --bg-3: #0d1524;
  --ink: #e8eef7;
  --ink-dim: #9aa8bd;
  --ink-faint: #5d6b80;
  --green: #3ddc84;
  --amber: #ffb454;
  --blue: #5aa9ff;
  --red: #ff6b6b;
  --line: rgba(154, 168, 189, 0.14);
  --line-strong: rgba(154, 168, 189, 0.28);
  --glow-green: rgba(61, 220, 132, 0.14);
  --font-display: "Syne", "Outfit", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 360;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(61, 220, 132, 0.25); }

a { color: inherit; }

/* --- accessibilité ------------------------------------------------ */
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--green);
  color: #05270f;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 8px; }

/* --- textures ----------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scan {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* --- nav ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span { color: var(--green); }
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 14.5px;
  font-weight: 420;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }

/* --- boutons ------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #05270f;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 0 rgba(61, 220, 132, 0);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--glow-green);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--green);
  box-shadow: none;
  color: var(--green);
}

/* --- leds ---------------------------------------------------------- */
.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  margin-right: 6px;
  vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
.led.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.led.blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* --- hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 24px 72px;
  overflow: hidden;
  z-index: 2;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero__glow {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(61, 220, 132, 0.07), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 26px;
  background: rgba(13, 21, 36, 0.6);
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h1 .line { display: block; }
h1 .line.em {
  color: var(--green);
  text-shadow: 0 0 40px rgba(61, 220, 132, 0.35);
}
.lead {
  margin-top: 24px;
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 56ch;
}
.lead strong { color: var(--amber); font-weight: 600; }
.mantra {
  margin-top: 16px;
  color: var(--ink-dim);
  max-width: 58ch;
}
.cta-row {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* --- hud (panneau hero) -------------------------------------------- */
.hud {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 16, 27, 0.85);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hud__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: lowercase;
}
.hud__bar span:last-child { margin-left: auto; color: var(--green); }
.hud__dots { display: flex; gap: 6px; }
.hud__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.5;
}
.hud__dots i:first-child { background: var(--red); opacity: 0.8; }
.hud__dots i:nth-child(2) { background: var(--amber); opacity: 0.8; }
.hud__dots i:last-child { background: var(--green); opacity: 0.8; }
.hud__body { position: relative; }
#hud-field {
  display: block;
  width: 100%;
  height: 230px;
}
.hud__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.hud__chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  background: rgba(13, 21, 36, 0.5);
}

/* --- bande de confiance -------------------------------------------- */
.trust {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__grid article {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.trust__grid article:first-child { border-left: none; }
.trust__grid strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}
.trust__grid p {
  font-size: 14px;
  color: var(--ink-dim);
}

/* --- sections génériques ------------------------------------------- */
section {
  position: relative;
  z-index: 2;
  padding: 88px 24px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; }
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.section-lead {
  margin-top: 18px;
  color: var(--ink-dim);
  max-width: 64ch;
  font-size: 17.5px;
}

/* --- grilles / cartes ---------------------------------------------- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px 26px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.card p { color: var(--ink-dim); font-size: 15px; }
.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 14px;
}
.mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(61, 220, 132, 0.06);
}

.problem { background: var(--bg); }
.diff { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- bande horloge 72h --------------------------------------------- */
.clock-band {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  padding: 72px 24px;
}
.clock-band__inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.clock {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.clock__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock__track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 6;
}
.clock__prog {
  fill: none;
  stroke: var(--amber);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 427; /* 2πr, r=68 */
  stroke-dashoffset: 427;
  filter: drop-shadow(0 0 10px rgba(255, 180, 84, 0.5));
  transition: stroke-dashoffset 0.1s linear;
}
.clock__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.clock__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: var(--amber);
}
.clock__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 4px;
}
.clock__copy h2 { margin-top: 6px; }
.clock__copy p {
  margin-top: 14px;
  color: var(--ink-dim);
  max-width: 52ch;
  font-size: 17.5px;
}
.clock__copy em { color: var(--amber); font-style: normal; font-weight: 500; }

/* --- pipeline (4 étapes) ------------------------------------------- */
.pipe-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  padding-top: 24px;
}
.pipe-track::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.pipe-step { position: relative; padding-top: 30px; }
.node {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.5);
}
.pipe-step .idx { color: var(--green); margin-bottom: 8px; }
.pipe-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pipe-step p { color: var(--ink-dim); font-size: 14.5px; }

/* --- exemple / case ------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.case__panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-3);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.case__panel header {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.case__panel pre {
  padding: 22px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-dim);
  overflow-x: auto;
}
.tok-b { color: var(--ink-faint); }
.tok-g { color: var(--green); }
.tok-t { color: var(--blue); }
.tok-w { color: var(--amber); }

/* --- forfaits ------------------------------------------------------- */
.plans { background: var(--bg); }
.plans .card { position: relative; }
.plans .card.featured {
  border-color: rgba(61, 220, 132, 0.45);
  background: linear-gradient(180deg, rgba(61, 220, 132, 0.05), var(--bg-2) 40%);
}
.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--green);
  color: #05270f;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
}
.cadence {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.price-per {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dim);
}
.plans ul {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.plans li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--ink-dim);
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.plans li::before {
  content: ">";
  position: absolute;
  left: 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
}
.plans .btn { text-align: center; }
.note {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}

/* --- on démarre ----------------------------------------------------- */
.start-ol {
  margin-top: 36px;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  max-width: 640px;
}
.start-ol li {
  counter-increment: step;
  padding: 16px 20px 16px 64px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--ink-dim);
}
.start-ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green);
}
.start-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(61, 220, 132, 0.07), var(--bg-2) 55%);
  padding: 32px 36px;
  flex-wrap: wrap;
}
.start-cta h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}
.start-cta p { color: var(--ink-dim); font-size: 15px; }
.start-cta .guarantee {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 500;
}
.clock__copy strong { color: var(--amber); font-weight: 600; }

/* --- FAQ ------------------------------------------------------------ */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq__list {
  margin-top: 36px;
  max-width: 780px;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq__item[open] { border-color: rgba(61, 220, 132, 0.4); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 500;
  font-size: 16.5px;
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
  transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 22px 20px;
  color: var(--ink-dim);
  font-size: 15.5px;
  max-width: 66ch;
}

/* --- footer --------------------------------------------------------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px;
}
.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.foot__top a {
  color: var(--ink-dim);
  font-size: 14px;
}
.foot__top .wordmark { font-size: 15px; }
.disclaimer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 6px;
  max-width: 80ch;
}

/* --- animations reveal ---------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(5px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.75s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

h1 .line {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
h1 .line.em { animation-delay: 0.18s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, h1 .line { opacity: 1; transform: none; animation: none; transition: none; }
  .led { animation: none; }
  .clock__prog { transition: none; }
}

/* --- responsive ------------------------------------------------------ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid article:nth-child(odd) { border-left: none; }
  .trust__grid article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid3 { grid-template-columns: 1fr; }
  .pipe-track { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .pipe-track::before { display: none; }
  .case { grid-template-columns: 1fr; }
  .clock-band__inner { flex-direction: column; text-align: center; gap: 32px; }
  .clock__copy p { margin-left: auto; margin-right: auto; }
  .clock__copy h2 { margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 8px 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 24px; }
  .nav__toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    width: 40px;
    height: 38px;
    cursor: pointer;
    position: relative;
  }
  .nav__toggle span,
  .nav__toggle span::before,
  .nav__toggle span::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav__toggle span { top: 18px; }
  .nav__toggle span::before { top: -6px; left: 0; right: 0; }
  .nav__toggle span::after { top: 6px; left: 0; right: 0; }
  .nav__toggle[aria-expanded="true"] span { background: transparent; }
  .nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__inner { gap: 14px; }
  .nav__inner > .btn { display: none; }
  .hero { padding: 64px 20px 56px; }
  section { padding: 64px 20px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__grid article { border-left: none; border-top: 1px solid var(--line); }
  .trust__grid article:first-child { border-top: none; }
  .pipe-track { grid-template-columns: 1fr; }
  .start-cta { flex-direction: column; align-items: flex-start; }
}

/* ====================================================================
   MOTION DESIGN — couche 2
   Barre de scan, nav condensée, tilt, halo curseur, flux pipeline.
   ==================================================================== */

/* --- barre de progression (scan) ----------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* --- nav qui se condense au scroll --------------------------------- */
.nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav__inner {
  transition: padding 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.nav.scrolled {
  background: rgba(7, 11, 18, 0.94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
.nav.scrolled .nav__inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

/* --- halo qui suit le curseur dans le hero ------------------------- */
.hero__cursor {
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 42%);
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.12), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.hero:hover .hero__cursor { opacity: 1; }

/* --- tilt 3D au survol (transform posé en JS) ---------------------- */
.tilt {
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- sheen sur les boutons ----------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

/* --- flux lumineux + nodes pulsés sur le pipeline ------------------ */
.pipe-track::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  background-size: 26% 100%;
  background-repeat: no-repeat;
  background-position: -26% 0;
  animation: pipeflow 3.6s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}
@keyframes pipeflow {
  to { background-position: 130% 0; }
}
.pipe-step .node { animation: nodepulse 2.6s ease-in-out infinite; }
.pipe-step:nth-child(2) .node { animation-delay: 0.65s; }
.pipe-step:nth-child(3) .node { animation-delay: 1.3s; }
.pipe-step:nth-child(4) .node { animation-delay: 1.95s; }
@keyframes nodepulse {
  0%, 100% { box-shadow: 0 0 12px rgba(61, 220, 132, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 22px rgba(61, 220, 132, 0.95); transform: scale(1.15); }
}

/* --- ouverture FAQ animée ------------------------------------------ */
.faq__item[open] p { animation: faqReveal 0.35s cubic-bezier(0.2, 0.6, 0.2, 1); }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .pipe-track::after { display: none; }
}

/* --- respect du reduced-motion pour la couche 2 -------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
  .pipe-track::after,
  .pipe-step .node { animation: none; }
  .btn::after { display: none; }
  .hero__cursor { display: none; }
  .faq__item[open] p { animation: none; }
  .tilt { transition: none; }
  .scroll-progress { transition: none; }
}
