/* Fond PCB pleine page — traces + arcs électriques */
.page {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.circuit-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.circuit-bg__svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  opacity: 1;
}

.circuit-base {
  fill: none;
  stroke: rgba(56, 189, 248, 0.22);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circuit-pad {
  fill: rgba(56, 189, 248, 0.22);
  stroke: rgba(124, 138, 255, 0.35);
  stroke-width: 0.75;
}

/* Un arc à la fois — trajet complet, intensité modérée */
.circuit-arc {
  fill: none;
  stroke: rgba(56, 189, 248, 0.5);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: arcTravel var(--arc-cycle, 84s) linear infinite;
  animation-delay: var(--arc-delay, 0s);
  filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.3));
}

@keyframes arcTravel {
  0% { stroke-dashoffset: 1; opacity: 0; }
  0.4% { opacity: 0.42; }
  3.2% { stroke-dashoffset: 0; opacity: 0.42; }
  3.6% { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .circuit-arc {
    animation: none;
    opacity: 0;
  }
}
