/**
 * Pages publiques — MasterKis Vague C
 * Breadcrumbs, case studies, news gallery, filtres
 */

.mk-breadcrumb {
  margin-bottom: 18px;
}

.mk-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--mk-muted, var(--muted));
  font-size: var(--mk-fs-sm, 0.875rem);
}

.mk-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.mk-breadcrumb a:hover {
  color: var(--mk-primary, var(--accent));
}

.mk-breadcrumb [aria-current="page"] span {
  color: var(--mk-text, var(--text));
}

.page-prose {
  max-width: 42rem;
  color: var(--mk-muted, var(--muted));
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-prose p + p {
  margin-top: 1rem;
}

.page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.project-hero-media {
  margin: 8px 0 28px;
  border-radius: var(--mk-radius, var(--radius));
  overflow: hidden;
  border: 1px solid var(--mk-border, var(--line));
  background: var(--mk-bg-soft, var(--bg-soft));
}

.project-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.project-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-detail article {
  padding: 22px;
  border: 1px solid var(--mk-border, var(--line));
  border-radius: var(--mk-radius, var(--radius));
  background: var(--mk-surface, var(--surface));
}

.project-detail h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-detail p {
  color: var(--mk-muted, var(--muted));
  line-height: 1.7;
}

.news-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.news-shot {
  margin: 0;
  border-radius: var(--mk-radius, var(--radius));
  overflow: hidden;
  border: 1px solid var(--mk-border, var(--line));
  background: var(--mk-surface, var(--surface));
  position: relative;
}

.news-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.news-shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 11, 18, 0.72);
  color: var(--mk-text, var(--text));
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.news-shot:first-child {
  grid-row: span 1;
}

.about-layout > .mk-breadcrumb {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .news-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-shot:first-child {
    grid-row: span 2;
  }

  .news-shot:first-child img {
    aspect-ratio: 3 / 4;
    height: 100%;
  }
}

@media (min-width: 768px) {
  .project-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .news-gallery {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
}
