/* =============================================
   PAGE-SPECIFIC STYLES — RÉALISATIONS
   Inspiration éditorial-luxe (PYR, Yovanovitch) :
   grille 2 col., caption sous l'image, beaucoup d'espace,
   typo serif italic, filtre par catégorie sobre.
   ============================================= */

/* Variante compacte du page-hero (≈ 55vh au lieu de 90vh) */
.page-hero--compact {
  min-height: 55vh;
}

.realis-editorial {
  padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(40px, 5vw, 72px);
  background: var(--light);
}

.realis-editorial-inner {
  max-width: 880px;
  margin: 0 auto;
}

.realis-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.realis-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.realis-eyebrow--center {
  justify-content: center;
}
.realis-eyebrow--center::before { display: none; }

.realis-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-primary);
  max-width: 760px;
  letter-spacing: -0.005em;
}

/* ── FILTRES CATÉGORIES ──────────────────────────────────────── */
.realis-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: 0 var(--gutter) clamp(48px, 7vw, 80px);
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.realis-filter {
  background: none;
  border: 0;
  padding: 8px 2px;
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.realis-filter::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--dark);
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.realis-filter:hover {
  color: var(--dark);
}
.realis-filter:hover::after { right: 0; }

.realis-filter.is-active {
  color: var(--dark);
}
.realis-filter.is-active::after { right: 0; }

/* ── GALERIE — 4 colonnes alignées, texte au hover ─────────── */
.realis-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(80px, 10vw, 140px);
  background: var(--light);
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.realis-project {
  position: relative;
  transition: opacity 0.45s ease;
}

.realis-project.is-hidden {
  display: none;
}

.realis-project-link {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--dark);
}

.realis-project-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.realis-project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: saturate(0.95);
}

.realis-project-link:hover .realis-project-cover img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(0.78);
}

/* Voile sombre apparaissant au hover pour faire ressortir le texte */
.realis-project-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 21, 38, 0.85) 0%, rgba(1, 21, 38, 0.35) 60%, rgba(1, 21, 38, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}
.realis-project-link:hover::after {
  opacity: 1;
}

/* Caption EN OVERLAY, masquée par défaut, apparaît au hover */
.realis-project-meta {
  position: absolute;
  left: clamp(16px, 1.6vw, 24px);
  right: clamp(16px, 1.6vw, 24px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 2;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease 0.05s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.realis-project-link:hover .realis-project-meta {
  opacity: 1;
  transform: translateY(0);
}

.realis-project-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.realis-project-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.005em;
}

.realis-project-year {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.realis-project-place {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 400;
  color: rgba(255, 245, 237, 0.78);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ── BAND chiffre clé ──────────────────────────────────────── */
.realis-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 7vw, 80px) var(--gutter);
  background: var(--dark);
  text-align: center;
}

.realis-band-line {
  height: 1px;
  background: rgba(255, 245, 237, 0.18);
}

.realis-band-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 300;
  color: var(--light);
  letter-spacing: 0.01em;
}

.realis-band-text strong {
  font-weight: 500;
  font-style: normal;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ── CTA FINAL ─────────────────────────────────────────────── */
.realis-cta {
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  background: var(--light);
  text-align: center;
}

.realis-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.realis-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-top: 8px;
}
.realis-cta-heading em {
  font-style: italic;
  color: var(--primary);
}

.realis-cta-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .realis-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .realis-editorial {
    padding-bottom: clamp(40px, 6vw, 60px);
  }
  .realis-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(64px, 8vw, 100px);
  }
  .realis-filters {
    gap: 16px 24px;
    padding-bottom: 28px;
  }
  .realis-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .realis-band-line { display: none; }

  /* Sur tablette/mobile : caption visible en permanence (pas de hover tactile) */
  .realis-project-meta {
    opacity: 1;
    transform: none;
  }
  .realis-project-link::after {
    opacity: 0.7;
  }
}

@media (max-width: 560px) {
  .realis-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .realis-project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
