/* ================================================================
   FlowIoT — Landing page « motion » (réseau IoT + GTB)
   Charge après style.css : n'y touche pas, ajoute par-dessus.
   Tout est désactivé sous prefers-reduced-motion (voir fin de fichier).
   ================================================================ */

/* ===== Économie de ressources ===== */
/* Une zone [data-anim] hors écran a ses animations CSS en pause (JS bascule .is-paused) */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
.feat__viz, .syn, .stream__mask { contain: paint; }
.bld, .syn__svg { will-change: contents; }

/* ===== Couches ===== */
.landing main, .landing .footer { position: relative; z-index: 1; }
.landing .section, .landing .hero { z-index: 1; }


.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; pointer-events: none; }
.progress i {
  display: block; height: 100%; width: 100%;
  background: var(--grad-brand);
  transform-origin: left center;
  transform: scaleX(var(--sp, 0));
  box-shadow: 0 0 12px rgba(0, 212, 224, .6);
}

/* ===== Navigation par points ===== */
.dots {
  position: fixed; right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: grid; gap: 12px;
}
.dots a { position: relative; width: 16px; height: 16px; display: grid; place-items: center; }
.dots a i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  transition: all .35s var(--ease);
}
.dots a:hover i { background: var(--text-soft); }
.dots a.is-on i { width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.dots a::after {
  content: attr(aria-label);
  position: absolute; right: 26px; top: 50%;
  transform: translate(6px, -50%);
  padding: 5px 10px;
  font-size: .72rem; white-space: nowrap;
  color: var(--text); background: rgba(14, 21, 48, .95);
  border: 1px solid var(--border-strong); border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: all .25s var(--ease);
}
.dots a:hover::after { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1200px) { .dots { display: none; } }

/* ===== Navbar : un peu plus dense (deux entrées de plus) ===== */
@media (max-width: 1180px) {
  .nav__links a { padding: 10px 11px; font-size: .88rem; }
  .brand img { height: 70px; }
}

/* ===== Boutons ===== */
.btn--shine::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.eyebrow--live::before { animation: blink 1.4s ease-in-out infinite; }

/* ===== Reveal : variantes ===== */
.reveal--left  { transform: translateX(-42px); }
.reveal--right { transform: translateX(42px); }
.reveal--scale { transform: scale(.9); }
.reveal--left.in, .reveal--right.in, .reveal--scale.in { transform: none; }
.net__list .reveal:nth-child(1), .gtb__list .reveal:nth-child(1) { transition-delay: .05s; }
.net__list .reveal:nth-child(2), .gtb__list .reveal:nth-child(2) { transition-delay: .15s; }
.net__list .reveal:nth-child(3), .gtb__list .reveal:nth-child(3) { transition-delay: .25s; }
.net__list .reveal:nth-child(4), .gtb__list .reveal:nth-child(4) { transition-delay: .35s; }
.gtb__list .reveal:nth-child(5) { transition-delay: .45s; }
.gtb__list .reveal:nth-child(6) { transition-delay: .55s; }
.pillars .reveal:nth-child(2) { transition-delay: .12s; }
.pillars .reveal:nth-child(3) { transition-delay: .24s; }
.bento .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5) { transition-delay: .32s; }
.bento .reveal:nth-child(6) { transition-delay: .4s; }

/* ================================================================
   HERO
   ================================================================ */
.hero--v2 { padding-bottom: 120px; }
.hero--v2 .hero__inner { grid-template-columns: 1.05fr 1fr; }
.hero--v2 .hero__title { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }

/* Titre : apparition mot à mot */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordup .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 180ms);
}
.grad-text.split { background: none; color: inherit; }
.grad-text.split .w > span {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@keyframes wordup { to { transform: translateY(0); opacity: 1; } }

.hero__copy > .eyebrow, .hero__copy > .hero__lead, .hero__copy > .hero__cta, .hero__copy > .hero__trust {
  opacity: 0; transform: translateY(18px);
  animation: fadeup .9s var(--ease) forwards;
}
.hero__copy > .eyebrow { animation-delay: .05s; }
.hero__copy > .hero__lead { animation-delay: .75s; }
.hero__copy > .hero__cta { animation-delay: .9s; }
.hero__copy > .hero__trust { animation-delay: 1.05s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* ----- Bâtiment en coupe ----- */
.hero__visual--bld {
  aspect-ratio: 440 / 520;
  opacity: 0; transform: translateY(24px) scale(.96);
  animation: fadeup 1.1s var(--ease) .35s forwards;
}
.bld { width: 100%; height: 100%; overflow: visible; font-family: 'IBM Plex Mono', monospace; }

.bld__ground { stroke: rgba(255, 255, 255, .2); stroke-width: 1.5; }
.bld__stars circle { fill: #fff; opacity: .45; animation: twinkle 3.2s ease-in-out infinite; }
.bld__stars circle:nth-child(2n) { animation-delay: -1.1s; }
.bld__stars circle:nth-child(3n) { animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .7; } }

/* Hyperviseur */
.bld__hub-ring { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: hubring 3.2s ease-out infinite; }
.bld__hub-ring--2 { animation-delay: -1.6s; stroke: var(--violet); }
@keyframes hubring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.bld__hub-core { transform-box: fill-box; transform-origin: center; animation: hubpulse 3.2s ease-in-out infinite; }
@keyframes hubpulse { 0%, 100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.bld__hub-hex { fill: rgba(10, 15, 31, .92); stroke: var(--cyan); stroke-width: 1.5; }
.bld__hub-txt { fill: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; text-anchor: middle; }
.bld__hub-lbl { fill: var(--text-muted); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; text-anchor: middle; }

/* Liaisons & paquets */
.bld__link { fill: none; stroke: rgba(0, 212, 224, .38); stroke-width: 1.2; stroke-dasharray: 4 6; animation: dashflow 1.1s linear infinite; }
.bld__link--dash { stroke: rgba(110, 63, 224, .45); }
@keyframes dashflow { to { stroke-dashoffset: -20; } }
.bld__pkt { fill: var(--cyan); filter: url(#bld-glow); }
.bld__pkt--down { fill: var(--magenta); }

/* Candélabre */
.bld__lamp line, .bld__lamp path:first-of-type { stroke: rgba(255, 255, 255, .35); stroke-width: 2; fill: rgba(255, 255, 255, .35); }
.bld__lamp-halo { animation: lamphalo 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lamphalo { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.05); } }
.bld__lamp-bulb { fill: var(--amber); filter: url(#bld-glow); }

/* Toiture */
.bld__roof > rect:first-child { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .22); }
.bld__roof > line { stroke: rgba(255, 255, 255, .25); }
.bld__mast { stroke: rgba(255, 255, 255, .55) !important; stroke-width: 2; }
.bld__ant { fill: var(--cyan); filter: url(#bld-glow); }
.bld__rip { fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: 0; transform-origin: 240px 58px; animation: ripple 2.4s ease-out infinite; }
.bld__rip--2 { animation-delay: .8s; }
.bld__rip--3 { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
.bld__tag { fill: var(--text-muted); font-size: 7.5px; letter-spacing: .1em; }
.bld__ahu { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .25); }
.bld__fan { transform-box: fill-box; transform-origin: center; animation: spin 1.5s linear infinite; }
.bld__fan circle { fill: none; stroke: rgba(255, 255, 255, .3); }
.bld__fan path { fill: var(--cyan); opacity: .85; }
.bld__fan--slow { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.bld__pv { fill: rgba(110, 63, 224, .4); stroke: rgba(255, 255, 255, .25); }

/* Enveloppe, colonne montante, ascenseur */
.bld__shell { stroke: rgba(255, 255, 255, .24); stroke-width: 1.5; }
.bld__riser { stroke: rgba(0, 212, 224, .35); stroke-width: 1.2; stroke-dasharray: 3 4; animation: dashflow 1s linear infinite reverse; }
.bld__shaft { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .14); stroke-dasharray: 2 3; }
.bld__cab { fill: rgba(0, 212, 224, .22); stroke: var(--cyan); stroke-width: 1.2; animation: elevator 16s ease-in-out infinite; }
@keyframes elevator {
  0%, 10%   { transform: translateY(210px); }
  22%, 32%  { transform: translateY(140px); }
  46%, 58%  { transform: translateY(0); }
  70%, 80%  { transform: translateY(70px); }
  92%, 100% { transform: translateY(210px); }
}

/* Étages */
.bld__slab { stroke: rgba(255, 255, 255, .2); }
.bld__lvl { fill: var(--text-muted); font-size: 8.5px; letter-spacing: .12em; }
.bld__lamp-bar { fill: var(--amber); opacity: .25; animation: lampbar 10s ease-in-out infinite; }
.bld__win { fill: rgba(255, 177, 60, .1); stroke: rgba(255, 255, 255, .18); animation: winglow 10s ease-in-out infinite; transition: fill .4s; }
.bld__door { fill: rgba(0, 212, 224, .12); stroke: rgba(255, 255, 255, .22); }
.bld__pir { fill: var(--emerald); opacity: .55; animation: blink 3s ease-in-out infinite; }
.bld__sensor { fill: rgba(10, 15, 31, .85); stroke: var(--cyan); stroke-width: 1.2; }
.bld__sensor-dot { fill: var(--cyan); animation: blink 2.2s ease-in-out infinite; }
.bld__wire { stroke: rgba(0, 212, 224, .35); stroke-width: 1; }
@keyframes lampbar { 0%, 100% { opacity: .2; } 30% { opacity: .95; } 60% { opacity: .5; } }
@keyframes winglow { 0%, 100% { fill: rgba(255, 177, 60, .06); } 30% { fill: rgba(255, 177, 60, .3); } 60% { fill: rgba(255, 177, 60, .14); } }
[data-floor="R+3"] .bld__lamp-bar, [data-floor="R+3"] .bld__win { animation-delay: -1s; }
[data-floor="R+2"] .bld__lamp-bar, [data-floor="R+2"] .bld__win { animation-delay: -4s; }
[data-floor="R+1"] .bld__lamp-bar, [data-floor="R+1"] .bld__win { animation-delay: -6.5s; }
[data-floor="RDC"] .bld__lamp-bar, [data-floor="RDC"] .bld__win { animation-delay: -8.5s; }
.bld__win:nth-of-type(2) { animation-delay: -2.4s; }
.bld__win:nth-of-type(3) { animation-delay: -3.3s; }
[data-floor="R+1"] .bld__lamp-bar { animation-name: lampbar-cmd; animation-duration: 8s; animation-delay: 2.2s; }
@keyframes lampbar-cmd { 0%, 28% { opacity: .95; } 34%, 70% { opacity: .18; } 80%, 100% { opacity: .95; } }
.bld__floor { cursor: pointer; }
.bld__floor.is-active .bld__win, .bld__floor:hover .bld__win { fill: rgba(0, 212, 224, .3); animation: none; }
.bld__floor.is-active .bld__slab, .bld__floor:hover .bld__slab { stroke: var(--cyan); }
.bld__floor.is-active .bld__lvl, .bld__floor:hover .bld__lvl { fill: var(--cyan); }

/* Sous-sol */
.bld__base > rect:first-child { fill: rgba(10, 15, 31, .72); stroke: rgba(255, 255, 255, .16); }
.bld__pipe { fill: none; stroke-width: 2; stroke-dasharray: 5 5; animation: dashflow 1s linear infinite; }
.bld__pipe--water { stroke: rgba(0, 212, 224, .7); }
.bld__pipe--elec { stroke: rgba(255, 177, 60, .7); stroke-dasharray: 2 6; animation-duration: .6s; }
.bld__eq { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .24); }
.bld__leds circle { fill: var(--emerald); animation: blink 1.8s ease-in-out infinite; }
.bld__leds circle:nth-child(2) { animation-delay: -.4s; }
.bld__leds circle:nth-child(3) { animation-delay: -.9s; }
.bld__leds circle:nth-child(4) { animation-delay: -1.3s; }
.bld__leds circle:nth-child(5) { fill: var(--amber); animation-delay: -.2s; }
.bld__leds circle:nth-child(6) { animation-delay: -.7s; }
.bld__leds circle:nth-child(7) { animation-delay: -1.5s; }
.bld__leds circle:nth-child(8) { fill: var(--cyan); animation-delay: -.5s; }
.bld__leds circle:nth-child(9) { animation-delay: -1.1s; }
.bld__meter { fill: rgba(255, 255, 255, .04); stroke: rgba(0, 212, 224, .55); stroke-width: 1.2; }
.bld__needle { stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; transform-origin: 216px 440px; animation: spin 5s linear infinite; }
.bld__digits { fill: var(--text); font-size: 10px; font-weight: 600; text-anchor: middle; }

/* Balayage */
.bld__scan { opacity: .9; animation: scan 7s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .9; } 92% { opacity: .9; } 100% { transform: translateY(362px); opacity: 0; } }

/* ----- Cartouches HUD ----- */
.hud {
  position: absolute;
  padding: 10px 14px;
  background: rgba(14, 21, 48, .96);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: .74rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  z-index: 2;
  opacity: 0;
  animation: hudin .8s var(--ease) forwards, floaty 7s ease-in-out 1s infinite;
}
@keyframes hudin { to { opacity: 1; } }
.hud--floor { top: 24%; left: -14%; animation-delay: 1.1s, 1.9s; }
.hud--tech  { bottom: 3%; left: -7%; animation-delay: 1.4s, 2.2s; }
.hud--net   { top: 34%; right: -8%; animation-delay: 1.7s, 2.5s; }
.hud__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hud__lbl { font-weight: 600; font-size: .74rem; }
.hud__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: blink 1.6s ease-in-out infinite; flex-shrink: 0; }
.hud__dot--amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hud__dot--violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.hud__grid { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 14px; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: .7rem; white-space: nowrap; }
.hud__grid b { color: var(--cyan); font-weight: 600; }
.hud__grid i { font-style: normal; }
.hud__hint { display: block; margin-top: 6px; font-size: .62rem; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }

/* ----- Flux d'uplinks ----- */
.stream {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex; align-items: stretch;
  border-top: 1px solid var(--border);
  background: rgba(10, 15, 31, .85);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
}
.stream__lbl {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: .12em; text-transform: uppercase; font-size: .66rem;
}
.stream__lbl i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 10px #ff5f57; animation: blink 1.2s ease-in-out infinite; }
.stream__mask { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.stream__track { display: flex; gap: 40px; width: max-content; padding: 12px 20px; animation: scroll-left 70s linear infinite; will-change: transform; }
.stream:hover .stream__track { animation-play-state: paused; }
.frame { white-space: nowrap; color: var(--text-soft); }
.frame b { color: var(--cyan); font-weight: 500; }
.frame em { color: var(--text-muted); font-style: normal; }
.frame u { text-decoration: none; color: var(--emerald); }

@media (max-width: 980px) {
  .hero--v2 .hero__inner { grid-template-columns: 1fr; }
  .hud--floor { left: 0; top: 22%; }
  .hud--tech { left: 0; }
  .hud--net { right: 0; top: 36%; }
}
@media (max-width: 600px) {
  .hero--v2 .hero__visual { display: block; max-width: 340px; }
  .hero--v2 .hero__title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero--v2 { padding-bottom: 96px; }
  .hud { padding: 8px 10px; font-size: .66rem; }
  .hud__grid { font-size: .62rem; gap: 2px 10px; }
  .hud--net { display: none; }
  .stream__lbl span { display: none; }
}

/* ================================================================
   RÉSEAU IoT — système orbital
   ================================================================ */
.net { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.net__copy h2 { margin-top: 22px; }
.net__copy > p { margin-top: 18px; font-size: 1.08rem; }
.net__list { list-style: none; display: grid; gap: 14px; margin-top: 34px; }
.net__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.net__item:hover { transform: translateX(8px); border-color: rgba(0, 212, 224, .45); background: var(--surface-strong); }
.net__ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(0, 212, 224, .1); border: 1px solid rgba(0, 212, 224, .28); color: var(--cyan); display: grid; place-items: center; flex-shrink: 0; }
.net__ico svg { width: 20px; height: 20px; }
.net__item h4 { font-size: 1rem; margin-bottom: 4px; }
.net__item p { font-size: .88rem; }

.net__visual { position: relative; }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin: 0 auto; --dur: 30s; --dir: normal; }
.orbit__wave {
  position: absolute; inset: 42%;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 224, .55);
  animation: orbitwave 4.5s ease-out infinite;
}
.orbit__wave--2 { animation-delay: 1.5s; border-color: rgba(110, 63, 224, .55); }
.orbit__wave--3 { animation-delay: 3s; border-color: rgba(200, 64, 166, .5); }
@keyframes orbitwave { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(5.6); opacity: 0; } }

.orbit__ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .16);
  transform: translate(-50%, -50%);
  animation: orbitspin var(--dur) linear infinite;
  animation-direction: var(--dir);
}
.orbit__ring--1 { width: 34%; height: 34%; --dur: 28s; --dir: normal; }
.orbit__ring--2 { width: 61%; height: 61%; --dur: 46s; --dir: reverse; border-color: rgba(110, 63, 224, .35); }
.orbit__ring--3 { width: 90%; height: 90%; --dur: 70s; --dir: normal; border-color: rgba(200, 64, 166, .3); }
@keyframes orbitspin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit__sat { position: absolute; inset: 0; transform: rotate(var(--a)); }
.orbit__sat span {
  position: absolute; top: 0; left: 50%;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(14, 21, 48, .94);
  border: 1px solid rgba(0, 212, 224, .55);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace; font-size: .7rem; letter-spacing: .06em; white-space: nowrap;
  box-shadow: 0 0 0 5px rgba(0, 212, 224, .07), 0 10px 30px rgba(0, 0, 0, .4);
  animation: counterspin var(--dur) linear infinite;
  animation-direction: var(--dir);
  transition: box-shadow .3s, border-color .3s;
}
.orbit__ring--2 .orbit__sat span { border-color: rgba(110, 63, 224, .7); box-shadow: 0 0 0 5px rgba(110, 63, 224, .09), 0 10px 30px rgba(0, 0, 0, .4); }
.orbit__ring--3 .orbit__sat span { border-color: rgba(200, 64, 166, .65); box-shadow: 0 0 0 5px rgba(200, 64, 166, .08), 0 10px 30px rgba(0, 0, 0, .4); }
.orbit__sat span:hover { border-color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08); }
@keyframes counterspin {
  from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
  to   { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); }
}
.orbit:hover .orbit__ring, .orbit:hover .orbit__sat span { animation-play-state: paused; }

.orbit__beams i {
  position: absolute; top: 50%; left: 50%;
  width: 45%; height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--r));
  background: linear-gradient(90deg, rgba(0, 212, 224, .8), rgba(0, 212, 224, 0));
  opacity: 0;
  animation: beam 6s ease-in-out infinite;
}
.orbit__beams i:nth-child(1) { --r: 0deg; animation-delay: 0s; }
.orbit__beams i:nth-child(2) { --r: 60deg; animation-delay: 1s; }
.orbit__beams i:nth-child(3) { --r: 120deg; animation-delay: 2s; }
.orbit__beams i:nth-child(4) { --r: 180deg; animation-delay: 3s; }
.orbit__beams i:nth-child(5) { --r: 240deg; animation-delay: 4s; }
.orbit__beams i:nth-child(6) { --r: 300deg; animation-delay: 5s; }
@keyframes beam { 0%, 70%, 100% { opacity: 0; } 78% { opacity: .9; } 90% { opacity: 0; } }

.orbit__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 8px; z-index: 2; }
.orbit__core::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 180px; height: 180px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(0, 212, 224, .35), rgba(110, 63, 224, .18) 45%, transparent 70%);
  filter: blur(10px);
  animation: hubpulse 3.2s ease-in-out infinite;
  z-index: -1;
}
.orbit__core-hex {
  width: 78px; height: 78px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--grad-brand);
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.7rem; color: #fff;
  animation: hubpulse 3.2s ease-in-out infinite;
}
.orbit__core-lbl { font-family: 'IBM Plex Mono', monospace; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }

.orbit__legend { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.orbit__legend span { display: inline-flex; align-items: center; gap: 7px; }
.orbit__legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.orbit__legend span:nth-child(2) i { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.orbit__legend span:nth-child(3) i { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }

.radio {
  position: relative; width: max-content; margin: 18px auto 0;
  padding: 10px 14px;
  background: rgba(14, 21, 48, .96);
  border: 1px solid var(--border-strong); border-radius: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  display: grid; gap: 6px;
}
.radio__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-family: 'Poppins', sans-serif; font-size: .72rem; margin-bottom: 2px; }
.radio__row { display: grid; grid-template-columns: 34px 90px 60px; align-items: center; gap: 10px; color: var(--text-muted); }
.radio__row b { color: var(--text); font-weight: 500; text-align: right; }
.radio__bar { height: 5px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.radio__bar i { display: block; height: 100%; width: 60%; background: var(--grad-emerald); border-radius: 3px; transition: width 1s var(--ease); }

@media (max-width: 1100px) { .net { gap: 40px; } }
@media (max-width: 980px) {
  .net { grid-template-columns: 1fr; }
  .net__visual { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .orbit__sat span { padding: 4px 8px; font-size: .58rem; }
  .orbit__core-hex { width: 58px; height: 58px; font-size: 1.3rem; }
}

/* ================================================================
   GTB — synoptique CVC
   ================================================================ */
.gtb { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.gtb__copy h2 { margin-top: 22px; }
.gtb__copy > p { margin-top: 18px; font-size: 1.08rem; }
.gtb__list { list-style: none; display: grid; gap: 12px; margin: 30px 0 34px; }
.gtb__list li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--text-soft); }
.gtb__list li i { position: relative; width: 22px; height: 22px; border-radius: 7px; background: var(--grad-emerald); flex-shrink: 0; box-shadow: 0 6px 16px rgba(31, 224, 163, .3); }
.gtb__list li i::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--bg-deep); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }

.syn {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(14, 21, 48, .94);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  --fan: 1.2s;
  --duct: .8s;
}
.syn::before {
  content: '';
  position: absolute; inset: -40%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(0, 212, 224, .16), transparent 70%),
    radial-gradient(45% 45% at 80% 30%, rgba(110, 63, 224, .16), transparent 70%),
    radial-gradient(40% 40% at 50% 85%, rgba(255, 177, 60, .1), transparent 70%);
  animation: rotate-bg 26s linear infinite;
  will-change: transform;
  z-index: 0;
  opacity: .6;
}
.syn > * { position: relative; z-index: 1; }
.syn[data-mode="eco"]   { --fan: 2.6s; --duct: 1.6s; }
.syn[data-mode="night"] { --fan: 6s;   --duct: 3.4s; }

.syn__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--text-muted); }
.syn__title { display: inline-flex; align-items: center; gap: 8px; }
.syn__title b { color: var(--text); font-weight: 600; }
.syn__modes { display: inline-flex; gap: 6px; }
.syn__mode {
  background: transparent; border: 1px solid var(--border); color: var(--text-soft);
  padding: 5px 12px; border-radius: 99px;
  font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 500;
  transition: all .3s var(--ease);
}
.syn__mode:hover { border-color: var(--border-strong); color: var(--text); }
.syn__mode.is-on { background: rgba(0, 212, 224, .14); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px rgba(0, 212, 224, .25); }

.syn__svg { width: 100%; height: auto; display: block; font-family: 'IBM Plex Mono', monospace; padding: 12px 8px 4px; }
.syn__duct { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 7; animation: dashflow var(--duct) linear infinite; transition: opacity .8s; }
.syn__duct--supply { stroke: rgba(0, 212, 224, .9); }
.syn__duct--return { stroke: rgba(130, 90, 240, .9); animation-direction: reverse; }
.syn__duct--exhaust { stroke: rgba(200, 64, 166, .7); }
.syn__duct--fresh { stroke: rgba(31, 224, 163, .8); }
.syn[data-mode="night"] .syn__duct { opacity: .45; }
.syn[data-mode="night"] .syn__duct--fresh, .syn[data-mode="night"] .syn__duct--exhaust { opacity: .15; }

.syn__box { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .24); stroke-width: 1.2; }
.syn__box--eq { fill: rgba(10, 15, 31, .55); }
.syn__sep { stroke: rgba(255, 255, 255, .12); }
.syn__lbl { fill: var(--text-muted); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; }
.syn__lbl--strong { fill: var(--text-soft); }
.syn__sub { fill: var(--text-muted); font-size: 7.5px; }
.syn__val { fill: var(--text); font-size: 11px; font-weight: 600; }
.syn__val--sm { font-size: 10px; }

.syn__damper line { stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: rotate(-35deg); transition: transform 1s var(--ease); }
.syn[data-mode="eco"] .syn__damper line { transform: rotate(-62deg); }
.syn[data-mode="night"] .syn__damper line { transform: rotate(-86deg); }
.syn__filter { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.syn__coil { fill: none; stroke-width: 2.2; stroke-linecap: round; animation: coilglow 2s ease-in-out infinite; transition: opacity .8s; }
.syn__coil--hot { stroke: var(--amber); }
.syn__coil--cold { stroke: var(--cyan); animation-delay: -1s; }
@keyframes coilglow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.syn[data-mode="eco"] .syn__coil--cold { opacity: .3; animation: none; }
.syn[data-mode="night"] .syn__coil { opacity: .18; animation: none; }

.syn__fan { transform-box: fill-box; transform-origin: center; animation: spin var(--fan) linear infinite; }
.syn__fan circle { fill: rgba(0, 212, 224, .06); stroke: rgba(255, 255, 255, .35); }
.syn__fan path { fill: var(--cyan); }
.syn__fan-hub { fill: #fff !important; stroke: none !important; }
.syn__fan--chiller { animation-duration: 2.4s; }
.syn[data-mode="eco"] .syn__fan--chiller { animation-duration: 5s; }
.syn[data-mode="night"] .syn__fan--chiller { animation-duration: 12s; opacity: .5; }

.syn__zone > rect:first-child { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .22); transition: stroke .4s; }
.syn__zone:hover > rect:first-child { stroke: var(--cyan); }
.syn__zlamp { fill: var(--amber); opacity: 1; transition: opacity .9s; }
.syn[data-mode="eco"] .syn__zlamp { opacity: .35; }
.syn[data-mode="night"] .syn__zlamp { opacity: .06; }
.syn__zname { fill: var(--text-soft); font-size: 8px; }
.syn__ztemp { fill: var(--text); font-size: 13px; font-weight: 600; }
.syn__zco2 { fill: var(--text-muted); font-size: 8px; }
.syn__occ { fill: none; stroke: var(--emerald); stroke-width: 1.4; stroke-linecap: round; transition: opacity .7s; }
.syn__occ circle { fill: var(--emerald); stroke: none; }
.syn[data-mode="eco"] .syn__occ { opacity: .25; }
.syn[data-mode="night"] .syn__occ { opacity: 0; }
.syn__pt { fill: var(--cyan); animation: blink 2s ease-in-out infinite; }
.syn__pt:nth-of-type(2n) { animation-delay: -.7s; }
.syn__pt:nth-of-type(3n) { animation-delay: -1.3s; }

.syn__loop { fill: none; stroke-width: 2; stroke-dasharray: 6 6; animation: dashflow 1s linear infinite; transition: opacity .8s; }
.syn__loop--hot { stroke: var(--amber); }
.syn__loop--cold { stroke: var(--cyan); }
.syn__loop--back { opacity: .55; animation-direction: reverse; }
.syn[data-mode="night"] .syn__loop { opacity: .2; }
.syn__flame { fill: var(--amber); transform-box: fill-box; transform-origin: 50% 100%; animation: flame .45s ease-in-out infinite alternate; transition: opacity .8s; }
@keyframes flame { from { transform: scale(1, .92) skewX(-3deg); } to { transform: scale(1.06, 1.08) skewX(4deg); } }
.syn[data-mode="night"] .syn__flame { opacity: .25; }
.syn__digits { fill: var(--text); font-size: 12px; font-weight: 600; }

.syn__foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.syn__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--text-muted); }
.syn__chip b { color: var(--text); font-weight: 600; }
.syn__chip--ok { border-color: rgba(31, 224, 163, .35); background: rgba(31, 224, 163, .08); }
.syn__chip--ok b { color: var(--emerald); }

@media (max-width: 1100px) { .gtb { gap: 40px; } }
@media (max-width: 980px) {
  .gtb { grid-template-columns: 1fr; }
  .gtb__copy { order: -1; }
}

/* ================================================================
   PILIERS — scènes animées + inclinaison au curseur
   ================================================================ */
.pillar--tilt { transform-style: preserve-3d; }
.pillar--tilt.is-tilting { transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.pillar--tilt::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 224, .16), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none; z-index: 0;
}
.pillar--tilt:hover::after { opacity: 1; }
.pillar > .pillar__scene {
  position: absolute; top: 0; right: 0; z-index: 0;
  width: 66%; height: 160px;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  transition: opacity .4s;
}
.pillar:hover > .pillar__scene { opacity: .9; }
.pillar__scene svg { width: 100%; height: 100%; }

.wave { fill: rgba(0, 212, 224, .22); animation: wavemove 7s linear infinite; }
.wave--2 { fill: rgba(110, 63, 224, .22); animation-duration: 11s; animation-direction: reverse; }
@keyframes wavemove { to { transform: translateX(-100px); } }
.drop { fill: var(--cyan); opacity: 0; animation: dropfall 3s ease-in infinite; }
.drop--2 { animation-delay: 1s; } .drop--3 { animation-delay: 2s; }
@keyframes dropfall { 0% { transform: translateY(-10px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }

.lamp-post__pole, .lamp-post__head { stroke: rgba(255, 255, 255, .4); stroke-width: 2; fill: none; }
.lamp-post__bulb { fill: var(--amber); }
.lamp-post__halo { fill: var(--amber); opacity: .18; transform-box: fill-box; transform-origin: center; animation: lamphalo 5s ease-in-out infinite; }
.energy-curve { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: drawline 4s var(--ease) infinite; }
@keyframes drawline { 0% { stroke-dashoffset: 260; } 50%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
.energy-dot { fill: var(--cyan); animation: blink 1s ease-in-out infinite; }

.city rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .18); }
.city__win rect { fill: var(--amber); opacity: .12; animation: winblink 4s ease-in-out infinite; }
.city__win rect:nth-child(3n) { animation-delay: -1.3s; }
.city__win rect:nth-child(4n) { animation-delay: -2.4s; }
.city__win rect:nth-child(5n) { animation-delay: -3.1s; }
@keyframes winblink { 0%, 100% { opacity: .08; } 40% { opacity: .7; } }
.city__ping { fill: var(--cyan); animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.city__ping--2 { animation-delay: -1.2s; fill: var(--magenta); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.5); opacity: 0; } }

/* ================================================================
   CAPACITÉS — bento micro-animée
   ================================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feat--bento { grid-column: span 2; position: relative; display: flex; flex-direction: column; }
.feat--wide { grid-column: span 4; }
.feat--full { grid-column: span 6; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 28px; }
.feat__viz {
  position: relative; overflow: hidden;
  height: 130px;
  margin: -6px -4px 18px;
  border-radius: 12px;
  background: rgba(10, 15, 31, .55);
  border: 1px solid var(--border);
}
.feat--full .feat__viz { height: 100%; min-height: 200px; margin: 0; }
.feat__body { display: flex; flex-direction: column; }

/* Capteurs & intégrations : chaîne équipement → capteur → passerelle → FlowIoT */
.feat__viz--chain { height: 150px; --cycle: 4.8s; }
.chain { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 16px; gap: 6px; }
.chain__node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; width: 92px; text-align: center; }
.chain__ico {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: rgba(14, 21, 48, .9);
  display: grid; place-items: center; color: var(--text-soft);
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.chain__ico svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.chain__lbl { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .04em; color: var(--text-muted); white-space: nowrap; }
.chain__ifaces { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; width: 120px; height: 20px; }
.chain__ifaces i {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  padding: 2px 8px; border-radius: 99px;
  border: 1px solid rgba(0, 212, 224, .5); background: rgba(0, 212, 224, .1); color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace; font-size: .58rem; font-style: normal; white-space: nowrap;
  opacity: 0; animation: ifacecycle calc(var(--cycle) * 4) ease-in-out infinite;
}
.chain__ifaces i:nth-child(2) { animation-delay: var(--cycle); }
.chain__ifaces i:nth-child(3) { animation-delay: calc(var(--cycle) * 2); }
.chain__ifaces i:nth-child(4) { animation-delay: calc(var(--cycle) * 3); }
@keyframes ifacecycle { 0%, 1% { opacity: 0; transform: translate(-50%, 4px); } 4%, 23% { opacity: 1; transform: translate(-50%, 0); } 26%, 100% { opacity: 0; transform: translate(-50%, -4px); } }

.chain__link { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 1px; min-width: 18px; }
.chain__link--radio { background: repeating-linear-gradient(90deg, rgba(0, 212, 224, .45) 0 5px, transparent 5px 10px); height: 2px; }
.chain__link--net { background: linear-gradient(90deg, rgba(110, 63, 224, .35), rgba(200, 64, 166, .45)); }
.chain__link i {
  position: absolute; top: 50%; left: 0; width: 100%; height: 8px; margin-top: -4px;
  opacity: 0; animation: chainrun var(--cycle) linear infinite; will-change: transform;
}
.chain__link i::before { content: ''; position: absolute; left: -4px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chain__link--radio i::before { background: #fff; }
.chain__link--net i::before { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
@keyframes chainrun {
  0%, 4% { transform: translateX(0); opacity: 0; }
  5% { opacity: 1; }
  26% { transform: translateX(100%); opacity: 1; }
  27%, 100% { transform: translateX(100%); opacity: 0; }
}
.chain__link--radio i { animation-name: chainrun-radio; }
.chain__link--net i { animation-name: chainrun-net; }
@keyframes chainrun-radio { 0%, 33% { transform: translateX(0); opacity: 0; } 34% { opacity: 1; } 56% { transform: translateX(100%); opacity: 1; } 57%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes chainrun-net   { 0%, 61% { transform: translateX(0); opacity: 0; } 62% { opacity: 1; } 84% { transform: translateX(100%); opacity: 1; } 85%, 100% { transform: translateX(100%); opacity: 0; } }

/* Les nœuds s'allument au passage du paquet */
.chain__node--eq .chain__ico     { animation: nodelit var(--cycle) ease-in-out infinite; --lit-a: 0%; --lit-b: 8%; }
.chain__node--sensor .chain__ico { animation: nodelit var(--cycle) ease-in-out infinite; animation-delay: calc(var(--cycle) * .27); }
.chain__node--gw .chain__ico     { animation: nodelit var(--cycle) ease-in-out infinite; animation-delay: calc(var(--cycle) * .56); }
@keyframes nodelit { 0%, 6% { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 212, 224, .45); } 14%, 100% { color: var(--text-soft); border-color: var(--border-strong); box-shadow: none; } }
.chain__rip { position: absolute; inset: -2px; border-radius: 14px; border: 1px solid var(--cyan); opacity: 0; animation: chainrip var(--cycle) ease-out infinite; animation-delay: calc(var(--cycle) * .28); }
.chain__rip--2 { animation-delay: calc(var(--cycle) * .34); }
@keyframes chainrip { 0% { transform: scale(1); opacity: .9; } 30% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.chain__core {
  padding: 8px 16px; border-radius: 99px;
  background: var(--grad-brand); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .72rem;
  animation: corehit var(--cycle) ease-in-out infinite;
}
@keyframes corehit { 0%, 80% { box-shadow: 0 0 14px rgba(110, 63, 224, .4); transform: scale(1); } 86% { box-shadow: 0 0 34px rgba(0, 212, 224, .8); transform: scale(1.08); } 94%, 100% { box-shadow: 0 0 14px rgba(110, 63, 224, .4); transform: scale(1); } }
@media (max-width: 640px) {
  .chain__node { width: 64px; }
  .chain__lbl { font-size: .52rem; }
  .chain__node--gw { display: none; }
  .chain__link--net { display: none; }
}

/* Alerting */
.bell { position: absolute; left: 22px; top: 50%; width: 46px; height: 46px; margin-top: -23px; color: var(--amber); transform-origin: 50% 8%; animation: bellswing 3s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(255, 177, 60, .5)); }
@keyframes bellswing { 0%, 30%, 100% { transform: rotate(0); } 8% { transform: rotate(16deg); } 14% { transform: rotate(-14deg); } 20% { transform: rotate(9deg); } 25% { transform: rotate(-5deg); } }
.toasts { position: absolute; right: 14px; top: 14px; display: grid; gap: 6px; }
.toast {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(14, 21, 48, .95); border: 1px solid var(--border-strong);
  font-size: .68rem; font-weight: 500;
  opacity: 0; transform: translateX(24px);
  animation: toastin 6s ease-in-out infinite;
}
.toast:nth-child(2) { animation-delay: .5s; } .toast:nth-child(3) { animation-delay: 1s; }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
@keyframes toastin { 0%, 12% { opacity: 0; transform: translateX(24px); } 20%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateX(-8px); } }

/* Tableaux de bord */
.bars { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 64%; display: flex; align-items: flex-end; gap: 6px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan), var(--violet)); transform-origin: bottom; animation: bargrow 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); opacity: .85; }
.bars i:nth-child(1) { --h: 40%; --i: 0; } .bars i:nth-child(2) { --h: 62%; --i: 1; } .bars i:nth-child(3) { --h: 48%; --i: 2; } .bars i:nth-child(4) { --h: 80%; --i: 3; }
.bars i:nth-child(5) { --h: 58%; --i: 4; } .bars i:nth-child(6) { --h: 92%; --i: 5; } .bars i:nth-child(7) { --h: 70%; --i: 6; } .bars i:nth-child(8) { --h: 100%; --i: 7; }
@keyframes bargrow { 0%, 100% { transform: scaleY(.2); } 25%, 70% { transform: scaleY(1); } }
.spark { position: absolute; inset: 14px 14px 30px; width: calc(100% - 28px); height: calc(100% - 44px); }
.spark path { fill: none; stroke: var(--magenta); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawline 4.2s var(--ease) infinite; }

/* API */
.code { margin: 0; padding: 12px 14px; font-family: 'IBM Plex Mono', monospace; font-size: .66rem; line-height: 1.7; color: var(--text-soft); }
.code__l { display: block; overflow: hidden; white-space: nowrap; width: 0; border-right: 1px solid transparent; animation: typeline 9s steps(38) infinite; }
.code__l:nth-child(1) { animation-delay: 0s; } .code__l:nth-child(2) { animation-delay: 1.4s; } .code__l:nth-child(3) { animation-delay: 2.2s; } .code__l:nth-child(4) { animation-delay: 3s; }
.code__l--req { color: var(--cyan); } .code__l--ok { color: var(--emerald); }
@keyframes typeline { 0% { width: 0; } 14% { width: 100%; } 84% { width: 100%; } 92%, 100% { width: 0; } }

/* Sécurité */
.shield { position: absolute; left: 18px; top: 50%; width: 64px; height: 64px; margin-top: -32px; color: var(--cyan); }
.shield > svg { width: 100%; height: 100%; }
.shield__beam { position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; will-change: transform; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 10px var(--cyan); animation: beamscan 3s ease-in-out infinite; }
@keyframes beamscan { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 1; } 50% { transform: translateY(50px); } }
.shield__lock { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) scale(0); color: #fff; animation: lockpop 3s ease-in-out infinite; }
@keyframes lockpop { 0%, 45% { transform: translate(-50%, -50%) scale(0); } 55%, 90% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -50%) scale(0); } }
.sec-tags { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; }
.sec-tags span { padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(31, 224, 163, .35); background: rgba(31, 224, 163, .08); color: var(--emerald); font-family: 'IBM Plex Mono', monospace; font-size: .64rem; opacity: 0; animation: tagin 3s ease-in-out infinite; }
.sec-tags span:nth-child(2) { animation-delay: .25s; } .sec-tags span:nth-child(3) { animation-delay: .5s; }
@keyframes tagin { 0%, 50% { opacity: 0; transform: translateX(10px); } 62%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Cartographie */
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-grid path { stroke: rgba(255, 255, 255, .07); }
.map__grid { }
.map__road { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; }
.map__river { fill: none; stroke: rgba(0, 212, 224, .3); stroke-width: 5; stroke-dasharray: 12 10; animation: dashflow 2s linear infinite; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pindrop .8s var(--ease) both; }
.pin::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan); animation: pinring 2.6s ease-out infinite; }
.pin:nth-child(3) { animation-delay: .15s; } .pin:nth-child(4) { animation-delay: .3s; } .pin:nth-child(5) { animation-delay: .45s; } .pin:nth-child(6) { animation-delay: .6s; } .pin:nth-child(7) { animation-delay: .9s; }
.pin:nth-child(3)::before { animation-delay: -.6s; } .pin:nth-child(5)::before { animation-delay: -1.4s; } .pin:nth-child(6)::before { animation-delay: -2s; }
.pin--gw { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.pin--gw::before { border-color: var(--violet); }
.pin--alert { background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }
.pin--alert::before { border-color: var(--magenta); animation-duration: 1.4s; }
.pin--alert em { position: absolute; left: 16px; top: -6px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; font-style: normal; font-size: .64rem; font-weight: 600; color: var(--magenta); background: rgba(14, 21, 48, .95); border: 1px solid rgba(200, 64, 166, .5); opacity: 0; animation: alertlbl 4s ease-in-out infinite 1.2s; }
@keyframes pindrop { from { transform: translateY(-30px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pinring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes alertlbl { 0%, 15% { opacity: 0; transform: translateX(-6px); } 25%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

@media (max-width: 980px) {
  .feat--bento { grid-column: span 3; }
  .feat--wide { grid-column: span 6; }
  .feat--full { grid-column: span 6; grid-template-columns: 1fr; }
  .feat--full .feat__viz { min-height: 160px; }
}
@media (max-width: 560px) {
  .feat--bento, .feat--wide { grid-column: span 6; }
}

/* ================================================================
   PARCOURS — le paquet suit le scroll
   ================================================================ */
.journey { position: relative; }
.journey__svg { width: 100%; height: 240px; display: block; overflow: visible; }
.journey__track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; stroke-dasharray: 6 9; }
.journey__glow { fill: none; stroke: rgba(0, 212, 224, .28); stroke-width: 12; stroke-linecap: round; }
.journey__lit { fill: none; stroke: url(#jr-grad); stroke-width: 3.5; stroke-linecap: round; }
.journey__st circle { fill: rgba(10, 15, 31, .96); stroke: rgba(255, 255, 255, .22); stroke-width: 2; transition: stroke .4s, filter .4s; }
.journey__st svg { color: var(--text-muted); transition: color .4s; overflow: visible; }
.journey__st.is-on circle { stroke: var(--cyan); filter: drop-shadow(0 0 14px rgba(0, 212, 224, .75)); animation: stpop .6s var(--ease); }
.journey__st.is-on svg { color: var(--cyan); }
@keyframes stpop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.journey__st circle { transform-box: fill-box; transform-origin: center; }
.journey__pkt circle:first-child { fill: rgba(0, 212, 224, .28); animation: pktpulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.journey__pkt circle:last-child { fill: #fff; }
@keyframes pktpulse { 0%, 100% { transform: scale(.7); opacity: .9; } 50% { transform: scale(1.6); opacity: .3; } }

.steps--journey::before { display: none; }
.steps--journey .step { opacity: .4; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: translateY(8px); }
.steps--journey .step.is-on { opacity: 1; transform: none; }
.steps--journey .step__num { transition: background .4s, color .4s, box-shadow .4s; }
.steps--journey .step.is-on .step__num { background: var(--cyan); color: var(--bg-deep); box-shadow: 0 0 34px rgba(0, 212, 224, .6); }

@media (max-width: 980px) {
  .journey__svg { display: none; }
  .steps--journey { position: relative; }
  .steps--journey::after { content: ''; position: absolute; left: 29px; top: 30px; bottom: 30px; width: 2px; background: rgba(255, 255, 255, .12); z-index: 0; }
  .steps--journey::before {
    content: ''; display: block;
    position: absolute; left: 29px; top: 30px; bottom: 30px; right: auto;
    width: 2px; height: auto;
    background: var(--grad-brand); opacity: 1;
    transform-origin: top; transform: scaleY(var(--p, 0));
    z-index: 0;
  }
}

/* ================================================================
   CTA
   ================================================================ */
.cta .cta__signal { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta__signal i {
  position: absolute; left: 50%; top: 50%;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 224, .4);
  transform: translate(-50%, -50%) scale(.2);
  animation: ctaring 7s ease-out infinite;
}
.cta__signal i:nth-child(2) { animation-delay: 2.3s; border-color: rgba(110, 63, 224, .4); }
.cta__signal i:nth-child(3) { animation-delay: 4.6s; border-color: rgba(200, 64, 166, .4); }
@keyframes ctaring { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(4); opacity: 0; } }

/* ================================================================
   Mouvement réduit
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
  .split .w > span { transform: none; opacity: 1; }
  .hero__copy > *, .hero__visual--bld, .hud { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .steps--journey .step { opacity: 1; transform: none; }
  .code__l { width: 100%; }
  .toast, .sec-tags span, .pin, .pin--alert em { opacity: 1; transform: none; }
  .shield__lock { transform: translate(-50%, -50%) scale(1); }
  .journey__lit { stroke-dashoffset: 0 !important; }
}
