/* Portfolio cards. Linked after /styles.css so layout and filled actions hold when that file is a stale cached copy. */

.pf-page .hero.realisations-hero {
  padding: 0.85rem 0 0.2rem;
}

.pf-page .hero.realisations-hero .eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
}

.pf-page .hero.realisations-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.65rem, 2.3vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: normal;
}

.pf-page .hero.realisations-hero .lede {
  margin: 0.28rem 0 0;
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: normal;
}

.pf-page .pf-section {
  padding: 0.55rem 0 2.5rem;
}

.pf-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.pf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(150, 196, 255, 0.28);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(16, 30, 56, 0.62), rgba(7, 11, 20, 0.4));
  box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.9);
}

.pf-shot {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 196, 255, 0.18);
  border-radius: 0.7rem;
  background: #070b14;
  line-height: 0;
}

.pf-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  object-position: center;
}

.pf-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.15rem 0.4rem 0.35rem;
}

.pf-page .pf-title {
  margin: 0;
  max-width: none;
  font-family: var(--display), "Syne", "Avenir Next", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pf-reach {
  margin: 0;
  color: #d5e6ff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pf-desc {
  margin: 0;
  color: var(--muted, #c9d5e6);
  font-size: 0.95rem;
  line-height: 1.4;
}

.pf-cta {
  margin-top: 0.1rem;
  text-decoration: none;
}

/* Filled actions. Repeated here so they stay solid if the shared sheet is an older cached copy. */
.pf-page .nav-menu a[href="/nos-realisations/"],
.pf-page a.pf-cta {
  background-color: #d5e6ff;
  background-image: linear-gradient(180deg, #f7fbff, #d5e6ff);
  color: #07111f;
  border-color: transparent;
  box-shadow: 0 10px 28px -16px rgba(126, 190, 255, 0.95);
}

.pf-page .nav-menu a[href="/nos-realisations/"]:hover,
.pf-page a.pf-cta:hover {
  background-color: #fff;
  background-image: none;
  color: #07111f;
}

@media (min-width: 720px) {
  .pf-page .hero.realisations-hero {
    padding: 0.9rem 0 0.15rem;
  }

  .pf-page .hero.realisations-hero .lede {
    white-space: normal;
    font-size: 1rem;
  }

  .pf-page .pf-section {
    padding: 0.4rem 0 2.25rem;
  }

  .pf-list { gap: 0.7rem; }

  .pf-card {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    align-items: stretch;
    gap: 0.75rem 1.05rem;
    padding: 0.55rem;
  }

  .pf-body {
    align-self: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
    height: auto;
    padding: 0.7rem 0.75rem 0.7rem 0.2rem;
  }

  .pf-page .pf-title {
    font-size: 1.85rem;
  }

  .pf-reach { font-size: 0.8rem; }

  .pf-desc {
    font-size: 0.94rem;
    line-height: 1.38;
  }

  .pf-cta { margin-top: auto; }
}

@media (min-width: 980px) {
  .pf-page .hero.realisations-hero {
    padding: 0.85rem 0 0.1rem;
  }

  .pf-page .hero.realisations-hero h1 {
    max-width: none;
    white-space: normal;
    font-size: 2rem;
  }

  .pf-page .pf-section {
    padding: 0.35rem 0 2.5rem;
  }

  .pf-body {
    gap: 0.7rem;
    padding: 0.95rem 1rem 0.9rem 0.35rem;
  }

  .pf-page .pf-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .pf-reach { font-size: 0.84rem; }

  .pf-desc {
    font-size: 1rem;
    line-height: 1.45;
  }
}


.pf-card.pf-card--digigma {
  background: linear-gradient(165deg, #2c2113 0%, #151211 100%);
  border-color: rgba(214, 168, 92, 0.42);
}

.pf-card.pf-card--eposigma {
  background: linear-gradient(165deg, #122c26 0%, #101918 100%);
  border-color: rgba(104, 176, 150, 0.4);
}

.pf-card.pf-card--doigts {
  background: linear-gradient(165deg, #192c46 0%, #111b29 100%);
  border-color: rgba(142, 178, 222, 0.42);
}

@media (hover: hover) {
  .pf-card.pf-card--digigma:hover { border-color: rgba(224, 184, 112, 0.72); }
  .pf-card.pf-card--eposigma:hover { border-color: rgba(132, 204, 176, 0.68); }
  .pf-card.pf-card--doigts:hover { border-color: rgba(170, 200, 236, 0.72); }
}
