.sec--05 {
  background: var(--noir);
}

.s05-scene {
  background: var(--noir);
}

.s05-code {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  overflow: hidden;
  pointer-events: none;
}

.s05-code-ligne {
  white-space: nowrap;
  font-family: var(--police-mono);
  font-size: var(--t-micro);
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--clair) 26%, transparent);
  will-change: transform;
  animation-name: s05-defile;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.s05-code-ligne--inverse {
  animation-direction: reverse;
}

@keyframes s05-defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.s05-contenu {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 0 var(--gouttiere);
}

.s05-titre,
.s05-trait,
.s05-phrase {
  position: absolute;
  left: 50%;
}

.s05-titre {
  top: 38%;
  font-family: var(--police-titre);
  font-stretch: var(--large-titre);
  font-weight: 900;
  font-size: var(--t-titre);
  line-height: 1.1;
  color: var(--clair);
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  width: 100%;
  transform: translate(-50%, -50%);
}

.s05-ligne {
  display: block;
}

.s05-trait {
  top: 56%;
  width: var(--trait);
  height: 140px;
  background: color-mix(in srgb, var(--clair) 60%, transparent);
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center;
}

.s05-phrase {
  --s05-phrase-taille-finale: clamp(1.4rem, 1.9vw, 1.75rem);
  top: 68%;
  font-family: var(--police-mono);
  font-size: var(--t-mono-titre);
  color: var(--clair);
  opacity: 0;
  margin: 0;
  /* Même largeur et même nombre de lignes (1) que `.s06-titre` : garantit
     que leurs boîtes de texte ont la même hauteur au point de jointure, donc
     le relais 05 -> 06 ne saute pas verticalement. */
  width: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
}

.s05-ok {
  color: var(--ok);
}

@media (prefers-reduced-motion: reduce) {
  .s05-code-ligne {
    animation: none;
  }

  .s05-titre,
  .s05-trait,
  .s05-phrase {
    position: static;
    opacity: 1;
    transform: none;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 760px) {
  .s05-code {
    gap: 1.4rem;
  }

  .s05-code-ligne {
    color: color-mix(in srgb, var(--clair) 20%, transparent);
  }

  .s05-titre {
    font-size: var(--t-section);
  }

  .s05-phrase {
    font-size: var(--t-petit);
  }
}
