/* Visuels cyber — animations & cadres */
.cyber-viz {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--orange);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff 0%, #f0f3f8 45%, #e8ecf2 100%);
}

.cyber-viz::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224, 90, 26, 0.45), transparent);
  animation: cyber-scan 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes cyber-scan {
  0%, 100% { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { top: 92%; opacity: 0; }
}

@keyframes cyber-spin {
  to { transform: rotate(360deg); }
}

@keyframes cyber-spin-rev {
  to { transform: rotate(-360deg); }
}

@keyframes cyber-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes cyber-dash {
  to { stroke-dashoffset: -48; }
}

.cyber-viz__svg,
.cyber-viz object.cyber-viz__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cyber-viz::after {
    animation: none;
    opacity: 0;
  }
}

.cyber-viz--profile {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0.75rem;
  min-height: 100%;
}

.cyber-viz--expertise {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 0.35rem 0.45rem;
  min-height: 0;
  width: 100%;
}

.cyber-viz--expertise .cyber-viz__svg,
.cyber-viz--expertise object.cyber-viz__svg {
  flex: 0 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  aspect-ratio: 1;
}

.viz-spin-slow {
  transform-origin: center;
  transform-box: fill-box;
  animation: cyber-spin 90s linear infinite;
}

.viz-spin-mid {
  transform-origin: center;
  transform-box: fill-box;
  animation: cyber-spin 45s linear infinite;
}

.viz-spin-rev {
  transform-origin: center;
  transform-box: fill-box;
  animation: cyber-spin-rev 70s linear infinite;
}

.viz-pulse {
  animation: cyber-pulse 3s ease-in-out infinite;
}

.viz-dash-flow {
  animation: cyber-dash 2.5s linear infinite;
}
