/* Visuels pédagogiques de la page Projets */
body.pg-projets .project-card,
body:has(nav.topnav a.active[href="projets.html"]) .project-card {
  padding-top: 1.6rem !important;
  min-height: 0 !important;
  overflow: hidden;
}

body.pg-projets .project-card::before,
body:has(nav.topnav a.active[href="projets.html"]) .project-card::before {
  content: none !important;
  display: none !important;
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-visual {
  position: relative;
  margin: -1.6rem -1.75rem 1.25rem;
  aspect-ratio: 3 / 2;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid rgba(232,179,120,.16);
  background: rgba(5,10,8,.88);
}

.project-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform .42s ease, filter .42s ease;
  filter: saturate(1.04) contrast(1.03) brightness(1.06);
}

.project-card:hover .project-visual img {
  transform: scale(1.018);
  filter: saturate(1.08) contrast(1.04) brightness(1.10);
}

.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(5,12,9,.18) 100%);
}

.project-visual-label {
  position: absolute;
  z-index: 2;
  right: .75rem;
  bottom: .7rem;
  padding: .28rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,12,10,.70);
  color: rgba(243,234,217,.88);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .035em;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.project-card .project-header,
.project-card .project-title,
.project-card .project-desc,
.project-card .info-pills,
.project-card .project-footer,
.project-card .project-readmore {
  position: relative;
  z-index: 2;
}

.project-readmore {
  margin-top: 1.15rem;
  padding-top: .95rem;
  border-top: 1px solid rgba(232,179,120,.12);
  color: var(--accent1);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-readmore span {
  transition: transform .2s ease;
}

.project-card-link:hover .project-readmore span {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .project-visual { min-height: 230px; }
}

@media (max-width: 700px) {
  .project-visual {
    min-height: 0;
    aspect-ratio: 3 / 2;
    margin: -1.6rem -1.75rem 1.15rem;
  }
  .project-visual-label {
    font-size: .58rem;
  }
}
