/* Planches : bandeaux en trame de caractères au-dessus des sections de l'accueil. */
.planche[data-planche="logiciel"],
.planche[data-planche="contact"] { --tint: #F2C300; }
.planche[data-planche="ouvrage"] { --tint: #FEFAF0; }
.planche[data-planche="atlas"] { --tint: #159D91; }

.planche {
  position: relative;
  margin: 0;
  height: clamp(320px, 46vw, 660px);
  overflow: hidden;
  background: var(--nuit, #0B1012);
  isolation: isolate;
}

.planche canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 86%, transparent 100%);
}

.planche.is-on canvas {
  opacity: 1;
}

.planche::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(11, 16, 18, .8) 75%);
  pointer-events: none;
}

.planche figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vw, 34px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 28px);
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7C8C89;
  pointer-events: none;
}

.planche figcaption b {
  color: var(--papier, #FEFAF0);
  font-weight: 500;
}

.planche figcaption .src {
  max-width: 46ch;
  text-align: right;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
  color: #7C8C89;
}

.planche figcaption .src i {
  font-style: normal;
  color: var(--tint, #F2C300);
}

@media (prefers-reduced-motion: reduce) {
  .planche canvas {
    transition: none;
  }
}

@media (max-width: 699px) {
  .planche {
    height: 300px;
  }

  .planche figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .planche figcaption .src {
    text-align: left;
  }
}
