/* ============================================================
   LE RELAI — Production exécutive, Massif des Alpes
   Stylesheet : austère, terrain, mesuré
   ============================================================ */

:root {
  --bg: #0A0D10;
  --bg-2: #11151A;
  --bg-3: #181D23;
  --fg: #E8E6DF;
  --fg-dim: #8A8E92;
  --fg-mute: #4A4E54;
  --line: #1F252C;
  --line-2: #2A323B;
  --accent: #8B6FE8;        /* violet minéral */
  --accent-deep: #6B53D9;   /* violet plus dense */
  --accent-soft: rgba(139, 111, 232, 0.12);
  --serif: "Fraunces", "GT Sectra", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --display: "Archivo Black", "Inter", sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  /* overflow-x on body intentionally omitted — breaks position:fixed on iOS Safari */
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* Language toggle — hide .en by default, show when html.lang-en */
.en { display: none; }
.lang-en .fr { display: none; }
.lang-en .en { display: inline; }

/* ---------- Type primitives ---------- */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
@media (max-width: 768px) { .loader { display: none; } }
.loader-top { display: flex; justify-content: space-between; }
.loader-top .mono { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.18em; }
.loader-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 32px;
}
.loader-logo {
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  font-size: clamp(48px, 8vw, 116px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--fg);
  display: flex;
  gap: 0.04em;
  text-transform: uppercase;
}
.loader-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.loader.is-typing .loader-logo span { opacity: 1; transform: none; }

.loader-altimeter {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.loader-altimeter .alt-val { color: var(--accent); font-size: 16px; }
.loader-bar {
  width: min(360px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.05s linear;
}
.loader-bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.18em; }

/* ============================================================
   CUSTOM CURSOR (reticle)
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
}
.cursor svg { width: 100%; height: 100%; display: block; }
.cursor.is-light { mix-blend-mode: normal; }
.cursor-coords {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-left: 26px;
  padding-top: 4px;
  transform: translate(0, 0);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-coords.is-visible { opacity: 1; }
.cursor.is-grow { width: 64px; height: 64px; }

@media (hover: none) {
  html, body, a, button { cursor: auto; }
  .cursor, .cursor-coords { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  pointer-events: none;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav > * { pointer-events: auto; }
.nav.is-stuck {
  background: rgba(10, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav:not(.is-stuck) .nav-meta { color: rgba(255,255,255,0.82); }
.nav:not(.is-stuck) .nav-meta .live { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.82); }
.nav:not(.is-stuck) .nav-logo .dot { color: #C8B4F8; }
.nav:not(.is-stuck) .nav-meta .live::before { background: #C8B4F8; }
.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.nav-logo .dot { color: var(--accent); font-size: 22px; line-height: 0.6; }
.nav-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-meta .live {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  background: rgba(232, 230, 223, 0.03);
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.nav-meta .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nav.is-stuck .nav-links { opacity: 1; }
.nav-links a:hover { color: var(--fg); }
.nav-links a .num { color: var(--accent); margin-right: 8px; opacity: 0.6; }

/* Language toggle */
.lang-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-sep { opacity: 0.3; }
.nav:not(.is-stuck) .lang-toggle {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.28);
}

@media (max-width: 720px) {
  .nav { padding: 18px 20px; }
  .nav-meta { display: none; }
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero { min-height: 100svh; height: 100svh; }
}

/* Lock body during intro morph — desktop only, never applied on mobile */
body.is-intro-locked {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
  overscroll-behavior: contain;
}
@media (max-width: 768px) {
  body.is-intro-locked { overflow: auto; height: auto; touch-action: auto; }
}
.hero-bg {
  position: absolute;
  inset: -40px;  /* extension pour masquer les bords flous */
  background:
    radial-gradient(ellipse at 30% 80%, rgba(139, 111, 232, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0a0d10 0%, #131a22 40%, #0c1118 100%);
  overflow: hidden;
}
.hero-bg .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.55) saturate(0.8);
  animation: hero-reveal 3s ease-out 2.5s both;
}
@media (max-width: 768px) {
  .hero-bg .photo { animation: none; filter: brightness(0.55) saturate(0.8); }
}
@keyframes hero-reveal {
  from { filter: brightness(0.55) saturate(0) blur(14px); }
  to   { filter: brightness(0.55) saturate(0.8) blur(0); }
}
.hero-bg .photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,16,0.55) 0%, rgba(10,13,16,0.25) 50%, rgba(10,13,16,0.85) 100%);
}
/* Faux footage: layered ridge silhouettes + drifting fog */
.hero-bg .ridge {
  position: absolute;
  left: -5%; right: -5%;
  bottom: 0;
  height: 60%;
  pointer-events: none;
}
.hero-bg .ridge svg { width: 100%; height: 100%; }
.hero-bg .ridge-1 { opacity: 0.55; }
.hero-bg .ridge-2 { opacity: 0.75; bottom: -2%; height: 48%; }
.hero-bg .ridge-3 { opacity: 1;    bottom: -3%; height: 36%; }
.hero-bg .fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 50% 70%, rgba(180, 200, 220, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 20% at 70% 60%, rgba(180, 200, 220, 0.05) 0%, transparent 70%);
  animation: fog-drift 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes fog-drift {
  0%   { transform: translateX(-3%) translateY(0%); }
  100% { transform: translateX(4%) translateY(-2%); }
}
.hero-bg .grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-bg .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}

.hero-placeholder {
  position: absolute;
  bottom: 18px;
  right: 24px;
  top: auto;
  left: auto;
  transform: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  border: 1px solid var(--line);
  padding: 4px 8px;
  background: rgba(10, 13, 16, 0.5);
  z-index: 3;
}

.hero-frame {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 100px 32px 40px;
  gap: 24px;
  z-index: 2;
}
.hero-corner { display: flex; flex-direction: column; gap: 8px; }
.hero-corner.tr { align-items: flex-end; text-align: right; }
.hero-corner.bl { justify-content: flex-end; }
.hero-corner.br { justify-content: flex-end; align-items: flex-end; text-align: right; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(36px, 5.4vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
  max-width: 900px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.22s; }
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .hero-sub { color: var(--fg); }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.22);
  transition: gap 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.hero-cta:hover { gap: 22px; background: var(--accent); color: var(--bg); border-color: var(--accent); }
.hero-cta .arr { display: inline-block; transition: transform 0.3s ease; }
.hero-cta:hover .arr { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--fg-mute);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 18px;
  background: var(--fg-mute);
  animation: scroll-pulse 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 720px) {
  .hero-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 90px 20px 36px;
  }
  .hero-corner.tr { display: none; }
  .hero-corner.br { align-items: flex-start; text-align: left; }
  .hero-title { font-size: clamp(48px, 14vw, 92px); }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section-pad { padding: 140px 32px; }
.section-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  margin-bottom: 72px;
  align-items: baseline;
}
.section-head .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  padding-top: 8px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--accent); }

@media (max-width: 720px) {
  .section-pad { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 48px; }
}

/* ============================================================
   SECTION 02 — CE QUE NOUS FAISONS
   ============================================================ */
.services {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 40% 32px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: padding 0.4s ease;
}
.service-row .num-cell {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  transition: color 0.4s ease;
}
.service-row .label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.4s ease, transform 0.5s ease, padding-left 0.5s ease;
}
.service-row .desc {
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 460px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.service-row .arr {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-mute);
  text-align: right;
  transition: color 0.4s ease, transform 0.5s ease;
}
.service-row .preview {
  position: absolute;
  right: 0;
  top: 50%;
  width: 280px;
  height: 180px;
  transform: translate(40px, -50%);
  opacity: 0;
  pointer-events: none;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 3;
}
.service-row .preview .label-mini {
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.service-row .preview .stripe {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0 8px,
      transparent 8px 16px),
    linear-gradient(180deg, #1a2128 0%, #0e1318 100%);
}
.service-row:hover { padding: 38px 0; }
.service-row:hover .num-cell { color: var(--accent); }
.service-row:hover .label { color: var(--fg); padding-left: 16px; }
.service-row:hover .desc { opacity: 1; transform: translateX(0); }
.service-row:hover .arr { color: var(--accent); transform: translateX(-8px); }
.service-row:hover .preview { opacity: 1; transform: translate(0, -50%); }

@media (max-width: 900px) {
  .service-row { grid-template-columns: 60px 1fr 24px; }
  .service-row .desc { display: none; }
  .service-row .preview { display: none; }
}

/* ============================================================
   SECTION 03 — PRESTATIONS · v2 — Fiches techniques (bento grid)
   ============================================================ */
.services-v2 {
  border-top: 1px solid var(--line);
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 48px 32px 0;
  box-sizing: content-box;
}
.services-v2::before {
  /* registre de tirets côté gauche, façon manifeste de production */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px);
  opacity: 0.5;
  pointer-events: none;
}

.presta-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.presta-meta .bar {
  flex: 0 0 28px;
  height: 1px;
  background: var(--line-2);
}

/* ----- Carte topographique interactive ----- */
.presta-map {
  position: relative;
  height: 100vh;
  flex: none;
  width: calc(100% + 64px);
  margin: 0 -32px;
  background: var(--bg);
  border: none;
  overflow: hidden;
  isolation: isolate;
}
.presta-map > .topo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: none;
}

/* SVG overlay des animations par service */
.presta-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  color: var(--accent);
}
.presta-overlay .ovl {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.presta-overlay .ovl.is-playing { opacity: 0.7; }
.presta-overlay text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  fill: rgba(232, 230, 223, 0.7);
  text-transform: uppercase;
}

/* ----- Couche HTML : dots ronds (DEC / FIG / TEC) ----- */
.presta-overlay-html {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.ovl-h {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ovl-h.is-playing { opacity: 1; }

.ovl-h .hdot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.ovl-h .hring {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
}

/* DEC : 10 dots clignotent. Les "keep=1" gardent l'éclat, des anneaux apparaissent.
   Les "keep=0" s'effacent. */
.ovl-h-DEC.is-playing .hdot {
  animation: dec-blink 0.8s ease-out forwards;
}
.ovl-h-DEC.is-playing .hdot:nth-child(2)  { animation-delay: 0.08s; }
.ovl-h-DEC.is-playing .hdot:nth-child(3)  { animation-delay: 0.16s; }
.ovl-h-DEC.is-playing .hdot:nth-child(4)  { animation-delay: 0.24s; }
.ovl-h-DEC.is-playing .hdot:nth-child(5)  { animation-delay: 0.32s; }
.ovl-h-DEC.is-playing .hdot:nth-child(6)  { animation-delay: 0.40s; }
.ovl-h-DEC.is-playing .hdot:nth-child(7)  { animation-delay: 0.48s; }
.ovl-h-DEC.is-playing .hdot:nth-child(8)  { animation-delay: 0.10s; }
.ovl-h-DEC.is-playing .hdot:nth-child(9)  { animation-delay: 0.36s; }
.ovl-h-DEC.is-playing .hdot:nth-child(10) { animation-delay: 0.52s; }
@keyframes dec-blink {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  40%  { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  60%  { opacity: 0.4; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* Les non-séléctionnés s'effacent après la phase clignotement */
.ovl-h-DEC.is-playing .hdot[data-keep="0"] {
  animation: dec-blink 0.8s ease-out forwards, dec-fade 0.6s ease-out 1.2s forwards;
}
@keyframes dec-fade {
  to { opacity: 0.12; transform: translate(-50%, -50%) scale(0.7); }
}
/* Anneaux : apparaissent autour des dots "keep" après la phase clignotement */
.ovl-h-DEC.is-playing .hring {
  animation: dec-ring 0.6s ease-out 1.1s forwards;
}
.ovl-h-DEC.is-playing .hring:nth-of-type(2) { animation-delay: 1.2s; }
.ovl-h-DEC.is-playing .hring:nth-of-type(3) { animation-delay: 1.3s; }
.ovl-h-DEC.is-playing .hring:nth-of-type(4) { animation-delay: 1.4s; }
@keyframes dec-ring {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
}

/* TEC : dots qui apparaissent autour de la convergence */
.ovl-h-TEC.is-playing .hdot {
  animation: tec-pop 0.5s ease-out forwards;
}
.ovl-h-TEC.is-playing .hdot:nth-child(1) { animation-delay: 0.05s; }
.ovl-h-TEC.is-playing .hdot:nth-child(2) { animation-delay: 0.13s; }
.ovl-h-TEC.is-playing .hdot:nth-child(3) { animation-delay: 0.21s; }
.ovl-h-TEC.is-playing .hdot:nth-child(4) { animation-delay: 0.29s; }
.ovl-h-TEC.is-playing .hdot:nth-child(5) { animation-delay: 0.37s; }
.ovl-h-TEC.is-playing .hdot:nth-child(6) { animation-delay: 0.45s; }
.ovl-h-TEC.is-playing .hdot:nth-child(7) { animation-delay: 0.53s; }
.ovl-h-TEC.is-playing .hdot:nth-child(8) { animation-delay: 0.61s; }
@keyframes tec-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* FIG : dots qui apparaissent à proximité */
.ovl-h-FIG.is-playing .hdot {
  animation: fig-pop 0.5s ease-out forwards;
}
.ovl-h-FIG.is-playing .hdot:nth-child(1) { animation-delay: 0.05s; }
.ovl-h-FIG.is-playing .hdot:nth-child(2) { animation-delay: 0.15s; }
.ovl-h-FIG.is-playing .hdot:nth-child(3) { animation-delay: 0.25s; }
.ovl-h-FIG.is-playing .hdot:nth-child(4) { animation-delay: 0.35s; }
.ovl-h-FIG.is-playing .hdot:nth-child(5) { animation-delay: 0.45s; }
.ovl-h-FIG.is-playing .hdot:nth-child(6) { animation-delay: 0.55s; }
@keyframes fig-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ----- DEC · dots qui clignotent, certains se font entourer, les autres s'effacent ----- */
/* (rendu en HTML — voir .ovl-h-DEC plus bas) */

/* ----- MAT · 3 lignes des dépôts qui convergent ----- */
.ovl-MAT .mat-depots { color: rgba(232,230,223,0.5); }
.ovl-MAT .mat-depots rect { stroke: var(--accent); }
.ovl-MAT .mat-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  stroke-dashoffset: 1000;
  opacity: 0;
}
.ovl-MAT.is-playing .mat-line {
  opacity: 0.55;
  animation: mat-flow 4s linear infinite, mat-draw 1.4s ease-out forwards;
}
.ovl-MAT.is-playing .mat-line.l2 { animation-delay: 0.2s, 0.2s; }
.ovl-MAT.is-playing .mat-line.l3 { animation-delay: 0.4s, 0.4s; }
@keyframes mat-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes mat-flow {
  to { stroke-dashoffset: -100; }
}

/* ----- TEC · 8 chemins pointillés qui convergent (anim. proche de l'ex-FIG) ----- */
/* Dots ronds rendus en HTML — voir .ovl-h-TEC plus bas */
.ovl-TEC .tec-paths path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  stroke-dashoffset: 800;
  opacity: 0;
}
.ovl-TEC.is-playing .tec-paths path {
  opacity: 0.55;
  animation: tec-draw 1.6s ease-out forwards;
}
.ovl-TEC.is-playing .tec-paths path:nth-child(2) { animation-delay: 0.08s; }
.ovl-TEC.is-playing .tec-paths path:nth-child(3) { animation-delay: 0.16s; }
.ovl-TEC.is-playing .tec-paths path:nth-child(4) { animation-delay: 0.24s; }
.ovl-TEC.is-playing .tec-paths path:nth-child(5) { animation-delay: 0.32s; }
.ovl-TEC.is-playing .tec-paths path:nth-child(6) { animation-delay: 0.40s; }
.ovl-TEC.is-playing .tec-paths path:nth-child(7) { animation-delay: 0.48s; }
.ovl-TEC.is-playing .tec-paths path:nth-child(8) { animation-delay: 0.56s; }
@keyframes tec-draw { to { stroke-dashoffset: 0; } }

/* ----- FIG · traits pointillés entre dots proches et le marker FIG ----- */
/* Dots ronds en HTML — voir .ovl-h-FIG plus bas */
.ovl-FIG .fig-lines line {
  stroke: var(--accent);
  stroke-width: 0.8;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
  stroke-dashoffset: 100;
  opacity: 0;
}
.ovl-FIG.is-playing .fig-lines line {
  opacity: 0.55;
  animation: fig-draw 0.9s ease-out forwards;
}
.ovl-FIG.is-playing .fig-lines line:nth-child(2) { animation-delay: 0.08s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(3) { animation-delay: 0.16s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(4) { animation-delay: 0.24s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(5) { animation-delay: 0.32s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(6) { animation-delay: 0.40s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(7) { animation-delay: 0.48s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(8) { animation-delay: 0.56s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(9) { animation-delay: 0.64s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(10) { animation-delay: 0.72s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(11) { animation-delay: 0.80s; }
.ovl-FIG.is-playing .fig-lines line:nth-child(12) { animation-delay: 0.88s; }
@keyframes fig-draw { to { stroke-dashoffset: 0; } }

/* ----- LOG · tracés pointillés qui défilent en continu vers le point central ----- */
.ovl-LOG .log-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  stroke-dashoffset: 1200;
  opacity: 0.7;
}
/* draw (once) → march (infinite) — two chained animations on stroke-dashoffset */
.ovl-LOG.is-playing .log-route { animation: log-draw 2.5s ease-out forwards,      log-march 0.5s linear 2.50s infinite; }
.ovl-LOG.is-playing .log-r2    { animation: log-draw 2.5s ease-out 0.35s forwards, log-march 0.5s linear 2.85s infinite; }
.ovl-LOG.is-playing .log-r3    { animation: log-draw 2.5s ease-out 0.70s forwards, log-march 0.5s linear 3.20s infinite; }
.ovl-LOG.is-playing .log-r4    { animation: log-draw 2.5s ease-out 1.00s forwards, log-march 0.5s linear 3.50s infinite; }
.ovl-LOG.is-playing .log-r5    { animation: log-draw 2.5s ease-out 0.55s forwards, log-march 0.5s linear 3.05s infinite; }
.ovl-LOG.is-playing .log-r6    { animation: log-draw 2.5s ease-out 0.85s forwards, log-march 0.5s linear 3.35s infinite; }
.ovl-LOG.is-playing .log-r7    { animation: log-draw 2.5s ease-out 1.15s forwards, log-march 0.5s linear 3.65s infinite; }
@keyframes log-draw  { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@keyframes log-march { from { stroke-dashoffset: 0; }    to   { stroke-dashoffset: -10; } }

/* Circles — one per route, appear after their route is drawn */
.ovl-LOG .log-truck { fill: #fff; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.ovl-LOG.is-playing .log-t1 { animation: truck-appear 0.3s ease forwards 2.50s; }
.ovl-LOG.is-playing .log-t2 { animation: truck-appear 0.3s ease forwards 2.85s; }
.ovl-LOG.is-playing .log-t3 { animation: truck-appear 0.3s ease forwards 3.20s; }
.ovl-LOG.is-playing .log-t4 { animation: truck-appear 0.3s ease forwards 3.50s; }
.ovl-LOG.is-playing .log-t5 { animation: truck-appear 0.3s ease forwards 3.05s; }
.ovl-LOG.is-playing .log-t6 { animation: truck-appear 0.3s ease forwards 3.35s; }
.ovl-LOG.is-playing .log-t7 { animation: truck-appear 0.3s ease forwards 3.65s; }
@keyframes truck-appear { from { opacity: 0; } to { opacity: 1; } }

/* ----- POST · flux du marker vers un carré violet plein (Nos bureaux en haut-gauche) ----- */
.ovl-POST .rush-nas { color: rgba(232,230,223,0.7); }
/* Le carré est rendu côté HTML (.ovl-h-POST .post-square) pour rester un vrai carré
   malgré le preserveAspectRatio="none" du SVG. */
.ovl-h-POST .post-square {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ovl-h-POST.is-playing .post-square {
  opacity: 1;
}

/* Label « Nos bureaux » en typo LE RELAI, sous le carré violet — rendu en HTML
   pour ne pas être déformé par preserveAspectRatio="none" du SVG parent. */
.ovl-h-POST .bureaux-label {
  position: absolute;
  transform: translate(-50%, 14px);
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 230, 223, 0.9);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
  pointer-events: none;
}
.ovl-h-POST.is-playing .bureaux-label { opacity: 1; }

/* ----- POST · uplink : 3 vrais ronds violets qui remontent depuis « Nos bureaux » ----- */
.ovl-h-POST .post-uplink {
  position: absolute;
  width: 0; height: 0;
  pointer-events: none;
}
.ovl-h-POST .post-uplink .uplink-trail {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 1px;
  height: 90px;
  transform: translateX(-50%);
  background-image: linear-gradient(to top, var(--accent) 0 4px, transparent 4px 9px);
  background-size: 1px 9px;
  background-repeat: repeat-y;
  /* Fondu en haut : le pointillé disparaît progressivement, on ne voit pas où il s'arrête */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 100%);
  opacity: 0;
}
.ovl-h-POST.is-playing .post-uplink .uplink-trail {
  animation: post-uplink-trail-in 0.5s ease-out 0.2s forwards;
}
.ovl-h-POST .post-uplink .uplink-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.ovl-h-POST.is-playing .post-uplink .uplink-dot {
  animation: post-uplink-dot 2.4s linear infinite;
}
.ovl-h-POST.is-playing .post-uplink .uplink-dot.d1 { animation-delay: 0.6s; }
.ovl-h-POST.is-playing .post-uplink .uplink-dot.d2 { animation-delay: 1.4s; }
.ovl-h-POST.is-playing .post-uplink .uplink-dot.d3 { animation-delay: 2.2s; }
@keyframes post-uplink-trail-in {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}
@keyframes post-uplink-dot {
  0%   { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-92px); opacity: 0; }
}
.ovl-POST .rush-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-dasharray: 5 7;
  stroke-dashoffset: 1200;
  opacity: 0.6;
}
.ovl-POST.is-playing .rush-line {
  animation: rush-draw 1.4s ease-out forwards, rush-flow 3s linear infinite;
}
@keyframes rush-draw { to { stroke-dashoffset: 0; } }
@keyframes rush-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -120; } }

.ovl-POST .rush-packet {
  fill: var(--accent);
  opacity: 0;
}
.ovl-POST.is-playing .rush-packet { opacity: 1; }
/* JS pilote la position sur le path */

/* ----- DIT · flux bidirectionnel plateau ⇆ DIT ----- */
.ovl-DIT .dit-post { color: rgba(232,230,223,0.6); }
.ovl-DIT .dit-post rect { stroke: var(--accent); }
.ovl-DIT .dit-post circle { fill: var(--accent); }
.ovl-DIT .dit-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0.6;
}
.ovl-DIT.is-playing .dit-up { animation: dit-draw 2.2s ease-out infinite; }
.ovl-DIT.is-playing .dit-down { animation: dit-draw 2.2s ease-out 1.1s infinite; }
@keyframes dit-draw {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  20%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.presta-map-compass,
.presta-map-legend {
  position: absolute;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  text-transform: uppercase;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,10,13,0.85) 0%, rgba(7,10,13,0) 100%);
  padding: 14px 18px;
}
.presta-map-compass { top: 0; left: 0; }
.presta-map-compass .n { color: var(--accent); display: block; font-size: 14px; margin-bottom: 2px; }
.presta-map-legend {
  top: 0; right: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ----- Fiche flottante (popover) : carte papier crème, positionnée par JS ----- */
.presta-popover {
  position: absolute;
  z-index: 5;
  width: 324px;
  max-width: calc(100% - 48px);
  padding: 26px 28px 22px;
  background: #F4F1EA;
  color: #14171C;
  border: none;
  border-radius: 4px;
  box-shadow:
    0 32px 64px -20px rgba(0, 0, 0, 0.55),
    0 8px 16px -8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(20, 23, 28, 0.06);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  transform-origin: center top;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.presta-popover[hidden] { display: none; }
.presta-popover.is-shown { opacity: 1; transform: translateY(0) scale(1); }

/* Curseur custom masqué quand une fiche est ouverte (évite qu'il bloque la lecture) */
body.is-presta-card .cursor,
body.is-presta-card .cursor-coords { opacity: 0 !important; }

.presta-popover .pp-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.presta-popover .pp-code {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #6B53D9;
  text-transform: uppercase;
}
.presta-popover .pp-pin {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 111, 232, 0.16);
  margin-left: auto;
}
.presta-popover .pp-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #14171C;
  margin: 0 0 14px;
  text-wrap: balance;
}
.presta-popover .pp-title em {
  font-style: italic;
  color: var(--accent-deep);
}
.presta-popover .pp-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(20, 23, 28, 0.66);
  margin: 0 0 18px;
}
.presta-popover .pp-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 23, 28, 0.08);
}
.presta-popover .pp-specs > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px 4px;
  background: rgba(20, 23, 28, 0.04);
  border-radius: 999px;
  color: rgba(20, 23, 28, 0.55);
}
.presta-popover .pp-specs b {
  color: #14171C;
  font-weight: 500;
}
.presta-map-compass,
.presta-map-legend {
  position: absolute;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  text-transform: uppercase;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,10,13,0.85) 0%, rgba(7,10,13,0) 100%);
  padding: 14px 18px;
}
.presta-map-compass { top: 0; left: 0; }
.presta-map-compass .n { color: var(--accent); display: block; font-size: 14px; margin-bottom: 2px; }
.presta-map-legend {
  top: 0; right: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Markers */
.presta-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  font-family: var(--mono);
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
  outline: none;
}
.presta-marker .marker-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 8px;
}
.presta-marker .marker-ring {
  position: absolute;
  left: 4px; top: 50%;
  width: 18px; height: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0.55;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 1;
}
.presta-marker .marker-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
  transform: scale(0.7);
}
.presta-marker .marker-label {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px 4px;
  background: var(--accent);
  border: none;
  line-height: 1.15;
  transition: background 0.3s ease, transform 0.3s ease;
}
.presta-marker:hover .marker-label,
.presta-marker:focus-visible .marker-label,
.presta-marker.is-active .marker-label {
  background: var(--accent-deep);
  color: #fff;
}
/* Label en gauche pour les markers placés à droite (par défaut) */
.presta-marker.m-left {
  flex-direction: row-reverse;
}
.presta-marker.m-left .marker-ring { left: auto; right: 4px; }

/* Hover / focus state */
.presta-marker:hover .marker-dot,
.presta-marker:focus-visible .marker-dot,
.presta-marker.is-active .marker-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(139,111,232,0.25);
}
.presta-marker:hover .marker-ring,
.presta-marker:focus-visible .marker-ring,
.presta-marker.is-active .marker-ring {
  transform: translate(-50%, -50%) scale(1.4);
  opacity: 1;
}
.presta-marker:hover .marker-ring::after,
.presta-marker:focus-visible .marker-ring::after,
.presta-marker.is-active .marker-ring::after {
  opacity: 0.55;
  transform: scale(1.1);
}
.presta-marker:hover .marker-label,
.presta-marker:focus-visible .marker-label,
.presta-marker.is-active .marker-label {
  background: var(--accent-deep);
}

/* Pulse permanent discret sur tous les markers, décalé par marker */
@keyframes presta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.35; }
  50%      { transform: translate(-50%, -50%) scale(1.25); opacity: 0.7; }
}
.presta-marker .marker-ring {
  animation: presta-pulse 3.4s ease-in-out infinite;
}
.presta-marker:nth-of-type(2) .marker-ring { animation-delay: 0.6s; }
.presta-marker:nth-of-type(3) .marker-ring { animation-delay: 1.1s; }
.presta-marker:nth-of-type(4) .marker-ring { animation-delay: 1.5s; }
.presta-marker:nth-of-type(5) .marker-ring { animation-delay: 2.0s; }
.presta-marker:nth-of-type(6) .marker-ring { animation-delay: 2.6s; }
.presta-marker:nth-of-type(7) .marker-ring { animation-delay: 3.0s; }
.presta-marker:hover .marker-ring,
.presta-marker:focus-visible .marker-ring,
.presta-marker.is-active .marker-ring {
  animation: none;
}

/* Card highlight quand le marker correspondant est actif */
.presta-card.is-highlighted {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  background: linear-gradient(180deg, #0f141a 0%, var(--bg) 100%);
}
.presta-card.is-highlighted::before,
.presta-card.is-highlighted::after {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 720px) {
  .presta-marker .marker-label { font-size: 10px; padding: 4px 8px 3px; white-space: normal; max-width: 100px; text-align: center; line-height: 1.3; }
}

.presta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.presta-card {
  position: relative;
  background: var(--bg);
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  isolation: isolate;
  transition: background 0.4s ease;
}
.presta-card.span-2 { grid-column: span 2; }

/* Crochets de réticule aux 4 coins — apparaissent au survol */
.presta-card::before,
.presta-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s ease;
  pointer-events: none;
}
.presta-card::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
  transform: translate(4px, 4px);
}
.presta-card::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
  transform: translate(-4px, -4px);
}
.presta-card:hover {
  background: linear-gradient(180deg, #0f141a 0%, var(--bg) 100%);
}
.presta-card:hover::before,
.presta-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.presta-card .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.presta-card .pc-code {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.presta-card:hover .pc-code { color: var(--accent); }

.presta-card .pc-pin {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: 0 0 7px;
}
.presta-card .pc-pin::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.presta-card:hover .pc-pin::after { opacity: 0.6; transform: scale(1); }

.presta-card .pc-topo {
  width: 100%;
  height: 22px;
  display: block;
  margin-bottom: 18px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.presta-card .pc-topo path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.presta-card:hover .pc-topo { opacity: 0.75; }

.presta-card .pc-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 14px;
}
.presta-card.span-2 .pc-title {
  font-size: clamp(34px, 3vw, 46px);
}

.presta-card .pc-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 auto 0;
  padding-bottom: 24px;
  max-width: 44ch;
}

.presta-card .pc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.presta-card .pc-foot b {
  color: var(--fg);
  font-weight: 500;
  margin-right: 4px;
}

.presta-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  text-wrap: balance;
}
.presta-foot .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 6px;
  animation: pulse 2.2s ease-in-out infinite;
}

@media (max-width: 1080px) {
  .presta-grid { grid-template-columns: repeat(2, 1fr); }
  .presta-card.span-2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .presta-grid { grid-template-columns: 1fr; }
  .presta-card,
  .presta-card.span-2 { grid-column: auto; min-height: 0; }
  .presta-card .pc-title { font-size: 28px; }
  .presta-meta { flex-wrap: wrap; gap: 8px; }
  .presta-meta .bar { display: none; }
}

/* ============================================================
   WORD REEL — mot qui change dans le paragraphe terrain
   ============================================================ */
.word-reel {
  display: inline-flex;
  position: relative;
  vertical-align: baseline;
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
  min-width: 0;
  white-space: nowrap;
}
.word-reel::before {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.04em;
  height: 0.15em;
  background: var(--accent);
  opacity: 0.45;
  transform-origin: left;
  transform: scaleX(1);
}
.word-reel .word {
  display: inline-block;
  overflow: visible;
  white-space: nowrap;
  padding-right: 2px;
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.4, 0.2, 0.2, 1), width 0.34s cubic-bezier(0.65, 0.05, 0.35, 1);
}
.word-reel.is-out .word {
  opacity: 0;
  transform: translateY(-0.45em);
}
.word-reel.is-in .word {
  opacity: 0;
  transform: translateY(0.45em);
}
.word-reel .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 0.12em;
  animation: caret 1.05s steps(1) infinite;
  align-self: center;
  transform: translateY(0.05em);
}
@keyframes caret { 50% { opacity: 0; } }

/* ============================================================
   HIGHLIGHTS — coup de surligneur violet au survol / au scroll
   ============================================================ */
.hl {
  position: relative;
  display: inline-block;
  cursor: none;
  isolation: isolate;
}
.hl::before {
  content: "";
  position: absolute;
  left: -0.08em; right: -0.08em;
  bottom: 0.02em;
  height: 0.5em;
  background: var(--accent);
  opacity: 0.32;
  transform: scaleX(0) skewX(-8deg);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.5, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}
.hl:hover::before,
.hl.is-marked::before { transform: scaleX(1) skewX(-8deg); }

/* ============================================================
   HERO BASELINE — sous-titre fixed sous le wordmark, fade au morph
   ============================================================ */
.hero-baseline {
  position: fixed;
  top: 0; left: 0;
  transform-origin: 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 199;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.4s ease;
}
.hero-baseline.is-ready { opacity: 1; }
.hero-baseline .dash { color: var(--accent); margin: 0 14px; }

/* ============================================================
   HERO WORDMARK — LE RELAI géant, morph vers le coin nav
   ============================================================ */
.hero-wordmark {
  position: fixed;
  top: 0; left: 0;
  transform-origin: 0 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: clamp(96px, 15.5vw, 240px);
  line-height: 0.85;
  white-space: nowrap;
  z-index: 200;
  color: var(--fg);
  text-decoration: none;
  pointer-events: none;
  will-change: transform;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-wordmark.is-ready { opacity: 1; }
.hero-wordmark .dot { color: var(--accent); }
.nav-logo { visibility: hidden; }
@media (max-width: 768px) {
  .hero-wordmark { display: none; }
  .nav-logo { visibility: visible; }
}

/* ============================================================
   STICKERS — supprimés (légers vestiges css pour compat)
   ============================================================ */
.sticker { display: none !important; }


/* ============================================================
   TERRAIN INTRO — accroche énumérative
   ============================================================ */
.terrain-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.terrain-intro .lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.terrain-intro .lead em {
  font-style: italic;
  color: var(--accent);
}
.terrain-intro .lead .all {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1em;
  color: var(--fg);
  display: block;
  margin-top: 0;
  line-height: 1.15;
}
.terrain-intro .triad {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 8px;
}
.terrain-intro .triad span {
  position: relative;
  padding: 0 14px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.terrain-intro .triad span:first-child { padding-left: 0; }
.terrain-intro .triad span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -3px; top: 50%;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ----- Tags : prestations + zone opérée, traités différemment ----- */
.terrain-tags {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.tag-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

/* Prestations — surlignage violet, texte blanc */
.tag-row--svc .tag-list {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: center;
  gap: 6px;
}
.tag-row--svc .tag-list li {
  background: var(--accent);
  color: #fff;
  padding: 4px 9px 3px;
  line-height: 1.2;
}

/* Zone opérée — étiquette n° + nom, sans cadre */
.tag-row--zone .tag-list--zones {
  gap: 6px 22px;
  align-items: baseline;
}
.tag-row--zone .tag-list--zones li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 16px;
  color: var(--fg);
  line-height: 1;
}
.tag-row--zone .tag-list--zones .zc {
  /* Fraunces : 0 sans point */
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

@media (max-width: 720px) {
  .tag-row { gap: 8px; }
}

@media (max-width: 900px) {
  .terrain-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
}

/* ============================================================
   TERRAIN TOPO ZONE — fond carte topographique animee derrière le head + intro
   ============================================================ */
.terrain-topo-zone {
  position: relative;
  overflow: hidden;
  /* break out of .section-pad's 140px / 32px padding so the topo
     starts at the bottom of the hero and extends full-width to the bento */
  margin: -140px -32px 0;
  padding: 120px 32px 56px;
}
.terrain-topo-zone > .topo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  cursor: none;
  /* Fondu sur le bord haut pour qu'aucune ligne ne dépasse en frange
     juste sous la section hero — l'ancien artefact "1-2 px au centre". */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
}
.terrain-topo-zone > .section-head,
.terrain-topo-zone > .terrain-intro,
.terrain-topo-zone > .terrain-stats {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .terrain-topo-zone {
    margin: -80px -20px 0;
    padding: 60px 20px 40px;
  }
}

/* ============================================================
   SECTION 03 — LE TERRAIN
   ============================================================ */
.terrain-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.terrain-stats .stat .val {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.terrain-stats .stat .val em { color: var(--accent); font-style: normal; }
.terrain-stats .stat .lbl {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 130px;
  gap: 8px;
  grid-auto-flow: row dense;
}
.bento-cell {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: none;
  transition: border-color 0.4s ease;
  grid-row: span 2;
}
.bento-cell:hover { border-color: var(--line-2); }
.bento-cell .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.05) saturate(0.6) brightness(0.7);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.bento-cell .photo.is-loaded { opacity: 1; }
.bento-cell .tag,
.bento-cell .overlay { z-index: 2; }

/* "Prochainement" state */
.bento-cell .photo { filter: blur(22px) brightness(0.45) saturate(0.3); transform: scale(1.08); }
.bento-cell .tag, .bento-cell .overlay { display: none; }
.bento-soon {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-soon span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
}
.bento-cell .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.018) 0 6px,
      transparent 6px 12px),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.bento-cell .placeholder.deep { background: linear-gradient(180deg, #0e1318 0%, #060809 100%); }
.bento-cell .placeholder.mid  { background: linear-gradient(180deg, #1a2027 0%, #11161c 100%); }
.bento-cell .placeholder.high { background: linear-gradient(180deg, #232a32 0%, #161c23 100%); }
.bento-cell .ghost-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}
.bento-cell .tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.bento-cell .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 16, 0.0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
}
.bento-cell:hover .overlay {
  opacity: 1;
  background: rgba(10, 13, 16, 0.78);
}
.bento-cell .overlay .name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.bento-cell .overlay .ref-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.bento-cell .overlay .type-label {
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 14px;
}
.bento-cell .overlay .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  line-height: 1.7;
}
.bento-cell .overlay .meta .k { color: var(--fg-mute); margin-right: 8px; }
.bento-cell .overlay .meta .accent { color: var(--accent); }
.bento-cell .overlay .meta .weather {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(232, 230, 223, 0.08);
}
.bento-cell .overlay .meta .weather::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
  flex: 0 0 auto;
}
.bento-cell .overlay .meta .weather .temp { color: var(--fg); }
.bento-cell .overlay .meta .weather .cond { color: var(--fg-dim); }

/* Cell positioning — clean rotating pattern, each row sums to 12 cols, no gaps */
.bento-cell.c1  { grid-column: span 5; }
.bento-cell.c2  { grid-column: span 4; }
.bento-cell.c3  { grid-column: span 3; }
.bento-cell.c4  { grid-column: span 4; }
.bento-cell.c5  { grid-column: span 3; }
.bento-cell.c6  { grid-column: span 5; }
.bento-cell.c7  { grid-column: span 3; }
.bento-cell.c8  { grid-column: span 5; }
.bento-cell.c9  { grid-column: span 4; }
.bento-cell.c10 { grid-column: span 4; }
.bento-cell.c11 { grid-column: span 5; }
.bento-cell.c12 { grid-column: span 3; }

/* ----- Bento CTA tile : remplace une case du grid par un appel "voir tous les décors" ----- */
.bento-cell.bento-cta {
  background: var(--bg);
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  display: block;
}
.bento-cell.bento-cta::before,
.bento-cell.bento-cta::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.bento-cell.bento-cta::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
  transform: translate(4px, 4px);
}
.bento-cell.bento-cta::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
  transform: translate(-4px, -4px);
}
.bento-cell.bento-cta:hover::before,
.bento-cell.bento-cta:hover::after { opacity: 1; transform: translate(0,0); }
.bento-cell.bento-cta:hover { background: linear-gradient(180deg, #0f141a 0%, var(--bg) 100%); }

.bento-cta-inner {
  position: absolute;
  inset: 0;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.bento-cta-inner .ref-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.bento-cell.bento-cta:hover .bento-cta-inner .ref-code { color: var(--accent); }

.bento-cta-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
.bento-cta-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.bento-cta-foot .arr {
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.35s ease;
}
.bento-cell.bento-cta:hover .bento-cta-foot .arr { transform: translateX(8px); }

/* .terrain-cta retiré — le CTA est intégré dans le bento (case 12) */
.terrain-cta { display: none; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  color: var(--fg);
  transition: gap 0.3s ease, color 0.3s ease;
}
.btn-text:hover { gap: 22px; color: var(--accent); }

@media (max-width: 900px) {
  .terrain-stats { grid-template-columns: 1fr; gap: 24px; }
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 100px; }
  .bento-cell { grid-column: span 3 !important; grid-row: span 2 !important; }
}

/* ============================================================
   SECTION 04 — LE RÉSEAU (carte topo)
   ============================================================ */
.network {
  background: linear-gradient(180deg, var(--bg) 0%, #08090b 100%);
}
.network-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: stretch;
}
.map-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #06080a;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-wrap svg.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-wrap .topo .contour {
  fill: none;
  stroke: rgba(184, 99, 44, 0.12);
  stroke-width: 0.5;
}
.map-wrap .topo .contour.major { stroke: rgba(184, 99, 44, 0.22); stroke-width: 0.8; }
.map-wrap .topo .grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.5;
}
.map-wrap .topo .border-line {
  stroke: rgba(232, 230, 223, 0.18);
  stroke-width: 0.6;
  stroke-dasharray: 2 3;
  fill: none;
}
.map-wrap .topo .river {
  stroke: rgba(120, 170, 200, 0.2);
  stroke-width: 0.7;
  fill: none;
}
.map-wrap .topo .label {
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.18em;
  fill: var(--fg-mute);
  text-transform: uppercase;
}
.map-wrap .topo .city {
  font-family: var(--mono);
  font-size: 4.5px;
  letter-spacing: 0.12em;
  fill: var(--fg-dim);
}
.map-wrap .pt {
  cursor: none;
}
.map-wrap .pt circle.dot {
  fill: var(--accent);
  transition: r 0.3s ease;
}
.map-wrap .pt circle.ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.4;
  transform-origin: center;
  transform-box: fill-box;
  animation: blip 2.6s ease-out infinite;
  opacity: 0.5;
}
.map-wrap .pt:nth-child(2n) circle.ring  { animation-delay: 0.6s; }
.map-wrap .pt:nth-child(3n) circle.ring  { animation-delay: 1.2s; }
.map-wrap .pt:nth-child(5n) circle.ring  { animation-delay: 1.8s; }
@keyframes blip {
  0%   { r: 1.2; opacity: 0.7; }
  100% { r: 6;   opacity: 0; }
}
.map-wrap .pt:hover circle.dot { r: 2.2; }
.map-wrap .pt.is-active circle.dot { fill: var(--fg); r: 2.4; }
.map-wrap .pt text {
  font-family: var(--mono);
  font-size: 3.2px;
  letter-spacing: 0.1em;
  fill: var(--fg-dim);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.map-wrap .pt:hover text,
.map-wrap .pt.is-active text { opacity: 1; fill: var(--fg); }

.map-legend {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  display: flex;
  gap: 18px;
}
.map-legend span::before {
  content: "—";
  margin-right: 6px;
  color: var(--accent);
}
.map-compass {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  text-align: center;
}
.map-compass .n { color: var(--accent); display: block; font-size: 14px; margin-bottom: 2px; }

.network-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.network-panel .panel-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.network-panel h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.network-panel .role-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  margin-bottom: 18px;
}
.network-panel .panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: auto;
}
.network-panel .panel-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 4px;
}
.network-panel .panel-stats dd {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.network-panel .panel-stats dd .accent { color: var(--accent); }
.network-panel .desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}
.network-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 56px;
}
.network-line em { color: var(--accent); font-style: italic; }

@media (max-width: 900px) {
  .network-grid { grid-template-columns: 1fr; }
  .network-panel { padding: 24px; }
}

/* ============================================================
   POST OPENER — sanctuarisation de la section post-production
   ============================================================ */
.post-opener {
  padding: 120px 32px 90px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #04060a 100%);
  position: relative;
  overflow: hidden;
}
.post-opener .badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-opener .badge::before,
.post-opener .badge::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.post-opener .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.post-opener .title .top {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--fg);
  text-transform: uppercase;
}
.post-opener .title .top .dot { color: var(--accent); }

/* ============================================================
   POST OPENER · CALQUE ÉDITABLE — le carré violet (le point après LE RELAI)
   se comporte comme un layer dans un logiciel de montage : on peut le
   glisser, le redimensionner par les 4 coins, et le faire pivoter par
   la poignée du haut. Les poignées et le cadre n'apparaissent qu'au
   survol / focus / interaction.
   ============================================================ */
.post-opener .title .top .dot[data-layer-edit] {
  position: relative;
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  vertical-align: baseline;
  margin-left: 0.04em;
  cursor: grab;
  /* Le transform est piloté par JS (--lx, --ly, --ls, --lr). */
  transform: translate(var(--lx, 0px), var(--ly, 0px)) rotate(var(--lr, 0deg)) scale(var(--ls, 1));
  transform-origin: 50% 50%;
  transition: filter 0.25s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  color: transparent; /* on cache l'éventuel caractère "." s'il subsiste */
}
.post-opener .title .top .dot .dot-ink {
  position: absolute;
  inset: 0;
  background: var(--accent);
  pointer-events: none;
}
.post-opener .title .top .dot[data-layer-edit]:hover,
.post-opener .title .top .dot[data-layer-edit].is-active {
  filter: drop-shadow(0 0 14px rgba(139, 111, 232, 0.45));
}
.post-opener .title .top .dot[data-layer-edit].is-dragging { cursor: grabbing; }
.post-opener .title .top .dot[data-layer-edit].is-rotating { cursor: alias; }
.post-opener .title .top .dot[data-layer-edit].is-scaling  { cursor: nwse-resize; }

/* Cadre éditable : 4 poignées de coin + 1 poignée de rotation + une bbox pointillée.
   Tout est rendu en pseudo-positions absolutes, inset:0 du .dot lui-même. */
.post-opener .title .top .dot .layer-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.post-opener .title .top .dot:hover .layer-frame,
.post-opener .title .top .dot:focus-visible .layer-frame,
.post-opener .title .top .dot.is-active .layer-frame {
  opacity: 1;
}

/* Bbox pointillée violette autour du calque */
.post-opener .title .top .dot .frame-box {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(139, 111, 232, 0.9);
}

/* Le .dot a tabindex=0 → on supprime l'outline navigateur (le "contour blanc"
   qui apparaissait quand on cliquait dessus). */
.post-opener .title .top .dot[data-layer-edit]:focus,
.post-opener .title .top .dot[data-layer-edit]:focus-visible {
  outline: none;
}

/* Poignées : 4 coins + 1 rotation au-dessus. Elles sont contre-scalées par
   `--inv-scale` (= 1 / scale du calque) pour rester à taille fixe quel que soit
   le zoom du calque. */
.post-opener .title .top .dot .handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #0f1218;
  border: 1.5px solid var(--accent);
  pointer-events: auto;
  --inv-scale: calc(1 / var(--ls, 1));
  transform: translate(-50%, -50%) scale(var(--inv-scale));
  transform-origin: 50% 50%;
}
.post-opener .title .top .dot .handle.h-tl { left: -6px;          top: -6px; }
.post-opener .title .top .dot .handle.h-tr { left: calc(100% + 6px); top: -6px; }
.post-opener .title .top .dot .handle.h-bl { left: -6px;          top: calc(100% + 6px); }
.post-opener .title .top .dot .handle.h-br { left: calc(100% + 6px); top: calc(100% + 6px); }
.post-opener .title .top .dot .handle.h-tl,
.post-opener .title .top .dot .handle.h-br { cursor: nwse-resize; }
.post-opener .title .top .dot .handle.h-tr,
.post-opener .title .top .dot .handle.h-bl { cursor: nesw-resize; }

/* Poignée de rotation : ronde, au-dessus du centre, reliée par un trait court.
   Position en `top` plutôt qu'en transform pour conserver le contre-scale. */
.post-opener .title .top .dot .handle.h-rot {
  left: 50%;
  top: -22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid #0f1218;
  cursor: alias;
}
.post-opener .title .top .dot .handle.h-rot .rot-stem {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 11px;
  background: rgba(139, 111, 232, 0.85);
  transform: translateX(-50%) scaleY(var(--inv-scale));
  transform-origin: top center;
  pointer-events: none;
}
.post-opener .title .bottom {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--fg-dim);
  margin-top: -0.06em;
  /* Position relative + isolation pour accueillir le surlignage souris */
  position: relative;
  display: inline-block;
  align-self: center;
  isolation: isolate;
}
/* Surlignage type "sélection souris" : un bloc violet 100% se peint de gauche à
   droite quand la section entre dans la vue. Le texte reste lisible grâce à
   l'élévation en z et à un blend-mode qui inverse au passage du surligneur. */
.post-opener .title .bottom::before {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 0.1em;
  bottom: 0.18em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: -1;
  pointer-events: none;
}
.post-opener.is-selected .title .bottom::before {
  animation: post-mouse-select 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.25s forwards;
}
/* Pendant et après le surlignage, on éclaircit la couleur du texte pour qu'il
   reste lisible sur le violet plein. */
.post-opener.is-selected .title .bottom {
  animation: post-text-lift 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.25s forwards;
}
@keyframes post-mouse-select {
  0%   { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}
@keyframes post-text-lift {
  0%   { color: var(--fg-dim); }
  100% { color: #fff; }
}
.post-opener .manifesto {
  text-align: center;
  margin: 56px auto 0;
  max-width: 720px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  text-wrap: balance;
}
.post-opener .manifesto em {
  font-style: italic;
  color: var(--fg);
  font-weight: 300;
}
.post-opener .meta-strip {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}
.post-opener .meta-strip .accent { color: var(--accent); }

@media (max-width: 720px) {
  .post-opener { padding: 80px 20px 60px; }
}

/* ============================================================
   SPEC SPEED — mini speed test sur la fibre dédiée
   ============================================================ */
.spec.spec-speed { padding: 24px; }
.spec.spec-speed .k {
  color: var(--accent);
  margin-bottom: 12px;
}
.spec.spec-speed .v {
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec.spec-speed .speed-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.spec.spec-speed .speed-num .v-num {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
}
.spec.spec-speed .speed-num .unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.spec.spec-speed .speed-bar {
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  margin: 2px 0 6px;
}
.spec.spec-speed .speed-bar .fill {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 0%;
  background: var(--accent);
  transition: width 0.18s linear;
}
.spec.spec-speed .speed-bar .fill::after {
  content: "";
  position: absolute;
  right: -2px; top: -1px; bottom: -1px;
  width: 2px;
  background: var(--fg);
  box-shadow: 0 0 6px rgba(232, 230, 223, 0.6);
}
.spec.spec-speed .speed-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.spec.spec-speed .speed-meta b {
  font-weight: 400;
  color: var(--fg-mute);
  margin-right: 4px;
}
.spec.spec-speed .speed-meta .status {
  margin-left: auto;
  color: var(--accent);
}
.spec.spec-speed .speed-meta .status::before {
  content: "● ";
  animation: speed-blink 1.1s steps(2) infinite;
}
@keyframes speed-blink {
  50% { opacity: 0.25; }
}
.post {
  background: #060708;
  border-bottom: 1px solid var(--line);
}
.post-pipeline {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 56px;
}
.post-step {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
}
.post-step .step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-step h4 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-wrap: balance;
}
.post-step .visual {
  flex: 1;
  margin: 18px 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.02) 0 2px,
      transparent 2px 4px),
    linear-gradient(180deg, #0c1015 0%, #050608 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.post-step .visual .label-mini {
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.post-step .visual .blink {
  position: absolute;
  top: 12px; right: 12px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.post-step .desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.post-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 18px;
}

.post-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.post-specs .spec {
  padding: 24px;
  background: var(--bg);
}
.post-specs .spec .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.post-specs .spec .v {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.post-specs .spec .v .accent { color: var(--accent); }

@media (max-width: 900px) {
  .post-pipeline { grid-template-columns: 1fr; gap: 12px; }
  .post-arrow { display: none; }
  .post-step { min-height: 0; }
  .post-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SECTION 06 — CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info .block { display: flex; flex-direction: column; gap: 6px; }
.contact-info .block .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.contact-info .block .v {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--fg);
}
.contact-info .block a.v { transition: color 0.2s; }
.contact-info .block a.v:hover { color: var(--accent); }

/* ─── Contact form — grid layout ──────────────────────── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
.field {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  position: relative;
  padding: 12px 16px 10px;
  transition: border-color 0.2s;
}
.field.field-full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 5px;
}
.field label .req { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg);
  outline: none;
  resize: none;
  cursor: none;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--fg-mute);
}
.field textarea { min-height: 80px; padding-top: 2px; }
.field:focus-within { border-color: var(--accent); }
.field:focus-within label { color: var(--accent); }

/* Phone field */
.phone-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.phone-cc-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid var(--line-2);
}
.phone-flag { font-size: 16px; line-height: 1; }
.phone-cc {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.phone-cc-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.phone-wrap input { flex: 1; }

/* Required note */
.req { color: var(--accent); }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}
.form-req-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}

.submit {
  flex-shrink: 0;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.3s ease;
}
.submit:hover { background: var(--fg); }
.submit .arr { display: inline-block; transition: transform 0.3s ease; }
.submit:hover .arr { transform: translateX(6px); }

/* Checkboxes — chip style */
.field-checks { padding: 14px 16px 12px; }
.field-checks-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 12px;
}
.checks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-item {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  user-select: none;
}
.check-item input[type="checkbox"] { display: none; }
.check-box, .check-mark { display: none; }
.check-item.is-checked {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.check-item.is-checked .check-mark { opacity: 1; }

/* Submit spinner */
.submit:disabled { opacity: 0.7; cursor: default; }
.submit-spinner {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(10,13,16,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation */
.contact-confirm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 40px 0;
}
.confirm-icon { margin-bottom: 6px; }
.confirm-title {
  font-family: var(--display);
  font-size: 28px;
  color: var(--fg);
  margin: 0;
}
.confirm-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}
.form-error {
  font-family: var(--mono);
  font-size: 11px;
  color: #e07070;
  margin-top: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .submit { width: 100%; justify-content: space-between; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  flex-wrap: wrap;
  gap: 16px;
}
.foot a:hover { color: var(--fg); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-clip.is-in { clip-path: inset(0 0 0 0); }

/* ============================================================
   TOAST (form sent)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-3);
  border: 1px solid var(--accent);
  color: var(--fg);
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 200;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ============================================================
   POST PIPELINE · ANIMS DES 3 CARTES
   01 · Feuille de service qui défile + surligneurs violets
   02 · Pixel map "données qui s'écrivent"
   03 · Jauge verticale plein cadre (speed test fibre)
   ============================================================ */

/* ----- 01 · Carte topographique zoomée + tracé d'itinéraire ----- */
.post-step .visual.visual-topo-route {
  padding: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(139,111,232,0.06), transparent 60%),
    linear-gradient(180deg, #0c1015 0%, #050608 100%);
}
.visual-topo-route .topo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Le tracé est entièrement piloté par JS via stroke-dashoffset (réinitialisé
   à 100 quand la section sort de la vue, animé vers 0 quand elle y entre).
   Pas d'animation CSS pour garantir que le tracé ne se dessine PAS avant
   que l'utilisateur arrive sur la section. */
.visual-topo-route .topo-route {
  filter: drop-shadow(0 0 4px rgba(139, 111, 232, 0.55));
}
@keyframes topo-route-draw {
  to { stroke-dashoffset: 0; }
}/* Pulse subtile sur le marker d'arrivée */
.visual-topo-route .topo-end {
  transform-box: fill-box;
  transform-origin: center;
  animation: topo-end-pulse 1.8s ease-in-out infinite;
}
@keyframes topo-end-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1;    }
}
/* Halo autour du véhicule en mouvement */
.visual-topo-route .topo-vehicle-halo {
  animation: topo-halo 1.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes topo-halo {
  0%, 100% { opacity: 0.7; r: 5; }
  50%      { opacity: 0.2; r: 10; }
}
/* HUD façon carte IGN, en haut-droite */
.visual-topo-route .topo-hud {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 230, 223, 0.55);
  pointer-events: none;
  text-align: right;
}
.visual-topo-route .topo-hud .alt { color: var(--accent); }

/* ----- 02 · Pixel map "données qui s'écrivent" ----- */
.post-step .visual.visual-pixels {
  padding: 0;
}
.pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* ----- 03 · Barre de progression horizontale plein cadre (speed test fibre) ----- */
.post-step .visual.visual-speed {
  padding: 0;
}
.visual-speed .speed-hbar {
  position: absolute;
  left: 16px; right: 16px;
  bottom: 38px;
  top: 100px;
  background: rgba(232, 230, 223, 0.04);
  border: 1px solid rgba(232, 230, 223, 0.08);
  overflow: hidden;
}
/* Graduations verticales en arrière-plan */
.visual-speed .hbar-track {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.visual-speed .hbar-track span {
  display: block;
  width: 1px;
  background: rgba(232, 230, 223, 0.06);
}
/* Remplissage : largeur pilotée par JS via --speed-pct (0..100). */
.visual-speed .hbar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(var(--speed-pct, 0) * 1%);
  background: linear-gradient(180deg,
      rgba(160, 135, 245, 0.98) 0%,
      rgba(139, 111, 232, 0.92) 50%,
      rgba(108,  82, 200, 0.85) 100%);
  transition: width 0.16s linear;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 0 18px rgba(139, 111, 232, 0.55);
}
/* Liseré brillant en avant de la barre (le "front d'onde" qui se déplace
   en suivant la position courante) */
.visual-speed .hbar-edge {
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0.0) 100%);
  box-shadow: 0 0 10px 2px rgba(232, 230, 223, 0.5);
}
/* Lecture chiffrée : le nombre ET l'unité sont positionnés en absolu pour
   qu'aucun des deux ne bouge, indépendamment du contenu. */
.visual-speed .speed-vreadout {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 200px;     /* zone de réserve, pas affichée */
  height: 44px;
  z-index: 2;
}
.visual-speed .speed-vreadout .v-num {
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: left;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.visual-speed .speed-vreadout .unit {
  position: absolute;
  left: 116px;       /* aligné à gauche, juste après le nombre */
  bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
/* UP / PING juste sous la lecture principale (et non en haut-droite) pour éviter
   tout chevauchement / clipping avec le grand nombre. */
.visual-speed .speed-vmeta {
  position: absolute;
  top: 58px; left: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  gap: 14px;
  z-index: 2;
}
.visual-speed .speed-vmeta b { color: var(--fg-mute); font-weight: 400; margin-right: 4px; }

/* ============================================================
   FLOATING CTA — raccourci vers le formulaire de contact
   ============================================================ */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(232, 230, 223, 0.18);
  box-shadow:
    0 12px 28px -8px rgba(139, 111, 232, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease;
  pointer-events: none;
}
/* Activé une fois passé le hero — déclenché par JS via .is-shown */
.float-cta.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Masqué quand on est DANS la section contact (le formulaire est déjà visible) */
.float-cta.is-near-form {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.float-cta:hover {
  background: var(--accent-deep, #6c52c8);
}
.float-cta .float-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
.float-cta .float-cta-arr {
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.25s ease;
}
.float-cta:hover .float-cta-arr {
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .float-cta {
    right: 16px;
    bottom: 16px;
    padding: 9px 12px 8px;
    font-size: 10px;
  }
  .float-cta .float-cta-label { display: none; }
}
