/* ============================================================
   Destrio - Matrix digital rain background (modernisé PRO)
   Pattern original : whoisyourdeadie (Uiverse.io), adapté en
   fond fixe plein écran derrière le contenu.
   Version refonte : pluie fine, éclat or discret, vignette.
   ============================================================ */

.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 0.42;
}

.matrix-column {
  position: absolute;
  top: -20%;
  width: 16px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: bold;
  white-space: nowrap;
  color: #e9e9e9;
  text-shadow: 0 0 8px rgba(255,255,255,0.21);
  animation: matrixFall linear infinite;
  will-change: transform;
  contain: layout style;
}

.matrix-column span {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 1px;
  color: #737373;
  text-shadow: 0 0 6px rgba(255,255,255,0.17);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.matrix-column .lead {
  color: #e4e4e4;
  text-shadow: 0 0 14px rgba(245, 207, 124, 0.8);
}

@keyframes matrixFall {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }
  100% {
    transform: translateY(130vh);
    opacity: 0;
  }
}

/* Vignette premium pour faire respirer le contenu */
.matrix-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, transparent 45%, rgba(1,1,1,0.78) 100%);
}

/* Respecte la préférence « mouvement réduit » : fond figé */
@media (prefers-reduced-motion: reduce) {
  .matrix-column {
    animation: none !important;
    opacity: 0.25 !important;
  }
}

/* Écrans étroits : moins de colonnes, texte plus petit */
@media (max-width: 768px) {
  .matrix-column {
    font-size: 12px;
    width: 14px;
  }
}
@media (max-width: 480px) {
  .matrix-column {
    font-size: 11px;
    width: 11px;
  }
}