/* ============================================================
   VITRO TINT 41 — Réalisations Page CSS
   ============================================================ */

/* ---- PAGE HERO ---- */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--c-navy);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,111,255,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,111,255,0.06) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 640px; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 16px 0 20px;
}
.page-hero-title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
}
.page-hero-sub { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 520px; }

/* ---- STATS RAPIDES ---- */
.real-stats {
  padding: 64px 0;
  background: var(--c-grey-50);
  border-bottom: 1px solid var(--c-grey-100);
}
.real-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.real-stat {}
.real-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--c-navy);
}
.real-stat-label {
  display: block;
  font-size: 13px;
  color: var(--c-grey-500);
  margin-top: 6px;
}

/* ---- GALLERY FILTERS ---- */
.gallery-section { padding: 80px 0 120px; }
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.gal-filter {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-grey-500);
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--c-grey-100);
  background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: none;
}
.gal-filter:hover { color: var(--c-navy); border-color: var(--c-grey-300); }
.gal-filter.active { color: white; background: var(--c-blue); border-color: var(--c-blue); }

/* ---- MASONRY GRID ---- */
.masonry-grid {
  columns: 4 240px;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: none;
}
.masonry-item-tall .masonry-visual { height: 420px; }
.masonry-item-wide { column-span: unset; }

.masonry-visual {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease-out);
}

.masonry-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.masonry-item:hover .masonry-visual { transform: scale(1.03); }

/* Visuels CSS pour les cartes de réalisation */
.mv-1 { background: linear-gradient(145deg, #8BA8C8 0%, #B4CCE4 40%, #D8E8F4 100%); }
.mv-2 { background: linear-gradient(145deg, #0A1628 0%, #102040 30%, #1A3060 70%, #0C2248 100%); }
.mv-3 { background: linear-gradient(145deg, #A0B8D0 0%, #C0D4E8 40%, #E0ECFA 100%); }
.mv-4 { background: linear-gradient(145deg, #1A2840 0%, #243850 40%, #1E3058 100%); }
.mv-5 { background: linear-gradient(145deg, #7098B8 0%, #90B4D0 40%, #B4CCE0 100%); }
.mv-6 { background: linear-gradient(145deg, #E8ECF4 0%, #F0F4FC 50%, #E4E8F0 100%); }
.mv-7 { background: linear-gradient(145deg, #9AB0CC 0%, #B4C8DC 40%, #C8D8EC 100%); }
.mv-8 { background: linear-gradient(145deg, #0C1830 0%, #142240 40%, #0A1C38 100%); }
.mv-9 { background: linear-gradient(145deg, #A8C0D8 0%, #C4D8EC 40%, #DCE8F4 100%); }
.mv-10 { background: linear-gradient(145deg, #6088B0 0%, #8AA8C8 40%, #A8C0D8 100%); }
.mv-11 { background: linear-gradient(145deg, #E0E8F4 0%, #ECF2FC 50%, #D8E4F0 100%); }
.mv-12 { background: linear-gradient(145deg, #8499B4 0%, #9CB0C8 40%, #B4C6D8 100%); }
.mv-seb-1 { background: linear-gradient(145deg, #4A7090 0%, #6A90B0 40%, #8AB0CC 100%); }
.mv-seb-2 { background: linear-gradient(145deg, #3A5E7C 0%, #5A80A0 40%, #7AA0BC 100%); }
.mv-seb-3 { background: linear-gradient(145deg, #507898 0%, #709AB8 40%, #90B4CC 100%); }

/* Effet de verre simulé sur chaque visuel */
.masonry-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.masonry-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(10,22,40,0.75) 0%, transparent 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.masonry-item:hover .masonry-visual::after { opacity: 1; }

.mv-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.masonry-item:hover .mv-overlay { opacity: 1; transform: translateY(0); }
.mv-film {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  background: var(--c-blue);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.mv-info h3 { font-size: 15px; font-weight: 500; color: white; margin-bottom: 4px; }
.mv-info p { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.08); }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-content {
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .masonry-grid { columns: 3 200px; }
  .real-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .masonry-grid { columns: 2 160px; }
  .masonry-visual { height: 180px; }
  .masonry-item-tall .masonry-visual { height: 260px; }
  .real-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
