/* ============================================================
   VITRO TINT 41 — Films 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;
}

/* ---- FILTER BAR ---- */
.films-filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(248,249,251,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-grey-100);
  padding: 16px 0;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  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;
}
.filter-tab:hover { color: var(--c-navy); border-color: var(--c-grey-300); }
.filter-tab.active {
  color: white;
  background: var(--c-blue);
  border-color: var(--c-blue);
}

/* ---- FILM CATALOG ---- */
.films-catalog { padding: 80px 0; }
.film-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--c-grey-100);
  opacity: 1;
  transition: opacity 0.3s;
}
.film-detail:last-child { border-bottom: none; }
.film-detail.hidden { display: none; }
.film-detail-reverse { direction: rtl; }
.film-detail-reverse > * { direction: ltr; }

/* Visual */
.film-detail-visual { display: flex; flex-direction: column; gap: 28px; }
.film-visual-bg {
  height: 320px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.silver-20-bg {
  background: linear-gradient(
    145deg,
    #5A80B0 0%, #7AA0C8 20%, #A0C0E0 40%, #C0D8F0 60%, #90B0D0 80%, #6090B8 100%
  );
}
.silver-35-bg {
  background: linear-gradient(
    145deg,
    #80A8C8 0%, #A0C0D8 30%, #C8DCF0 55%, #A8C4DC 80%, #88A8C0 100%
  );
}
.silver-50-bg {
  background: linear-gradient(
    145deg,
    #A8C4DC 0%, #C4D8EC 30%, #DCE8F4 55%, #C0D4E8 80%, #A4C0D8 100%
  );
}
.neutre-bg {
  background: linear-gradient(
    145deg,
    #C8D0DC 0%, #D8E0EC 30%, #E8ECF4 55%, #D4DCE8 80%, #C4CCE0 100%
  );
}
.securite-bg {
  background: linear-gradient(
    145deg,
    #0A1E40 0%, #102848 20%, #0E3060 40%, #1A3A70 60%, #0C2850 80%, #081840 100%
  );
}
.depoli-bg {
  background: linear-gradient(
    145deg,
    #E8ECF4 0%, #F0F2F8 30%, #F8F9FC 55%, #ECF0F6 80%, #E4E8F2 100%
  );
}
.decoratif-bg {
  background: linear-gradient(
    145deg,
    #0A1628 0%, #1A2840 30%, #0F2038 55%, #1E3050 80%, #0A1830 100%
  );
}

.film-visual-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.glass-reflection {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.r1 { width: 200%; height: 200%; top: -80%; left: -40%; opacity: 0.6; }
.r2 { width: 120%; height: 120%; top: -20%; left: 20%; opacity: 0.3; }
.r3 { width: 80%; height: 80%; top: 30%; left: -10%; opacity: 0.2; }

.frosted-texture {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E"),
    rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.security-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 20px,
    rgba(26,111,255,0.08) 20px, rgba(26,111,255,0.08) 22px
  );
}
.deco-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 2px at 25% 25%, rgba(26,111,255,0.6) 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 25%, rgba(26,111,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 2px at 50% 50%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(circle 2px at 25% 75%, rgba(26,111,255,0.5) 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 75%, rgba(26,111,255,0.3) 0%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 30px, rgba(255,255,255,0.05) 30px, rgba(255,255,255,0.05) 31px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 30px, rgba(255,255,255,0.05) 30px, rgba(255,255,255,0.05) 31px);
}
.depoli-effect { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.security-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.security-icon svg { width: 28px; height: 28px; }
.film-visual-ref {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ---- Film photo real images ---- */
.film-photo-bg {
  padding: 0;
}
.film-real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.film-detail:hover .film-real-photo { transform: scale(1.04); }
.film-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,22,40,0.55) 0%,
    rgba(10,22,40,0.1) 50%,
    transparent 100%
  );
  z-index: 1;
}
.film-photo-bg .film-visual-ref,
.film-photo-bg .security-icon {
  z-index: 2;
}

/* ---- Spec row highlight (gain thermique) ---- */
.spec-row-highlight {
  grid-column: span 2;
  background: linear-gradient(90deg, rgba(26,111,255,0.05) 0%, rgba(26,111,255,0.08) 100%);
  border-top: 1px solid rgba(26,111,255,0.15) !important;
  border-bottom: none !important;
}
.spec-row-highlight span { color: var(--c-blue); font-weight: 500; }
.spec-row-highlight strong { color: var(--c-blue); font-size: 14px; }

/* Performance bars */
.film-perf-bars { display: flex; flex-direction: column; gap: 12px; }
.perf-bar {
  display: grid;
  grid-template-columns: 140px 1fr 52px;
  align-items: center;
  gap: 12px;
}
.perf-label { font-size: 13px; color: var(--c-grey-500); }
.perf-track {
  height: 4px;
  background: var(--c-grey-100);
  border-radius: 2px;
  overflow: hidden;
}
.perf-fill {
  height: 100%;
  background: var(--c-navy);
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.perf-fill.blue-fill { background: var(--c-blue); }
.perf-val { font-size: 13px; font-weight: 600; color: var(--c-navy); text-align: right; }

/* Detail info */
.film-detail-info { padding-top: 24px; }
.film-badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  background: var(--c-blue);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.bestseller { background: linear-gradient(90deg, #1A6FFF, #3B8AFF); }
.film-ref-tag {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 12px;
}
.film-detail-info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  color: var(--c-navy);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.film-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-grey-500);
  margin-bottom: 24px;
}
.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.film-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-grey-700);
  background: var(--c-grey-50);
  border: 1px solid var(--c-grey-100);
  padding: 5px 12px;
  border-radius: 100px;
}
.film-applications { margin-bottom: 28px; }
.film-applications h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grey-300);
  margin-bottom: 12px;
}
.film-applications ul { display: flex; flex-direction: column; gap: 8px; }
.film-applications li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-grey-700);
}
.film-applications li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--c-blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.film-specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--c-grey-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-grey-100);
  background: var(--c-white-pure);
  transition: background 0.2s;
}
.spec-row:last-child, .spec-row:nth-last-child(-n+2) { border-bottom: none; }
.spec-row:nth-child(odd) { border-right: 1px solid var(--c-grey-100); }
.spec-row:hover { background: var(--c-grey-50); }
.spec-row span { font-size: 13px; color: var(--c-grey-500); }
.spec-row strong { font-size: 13px; font-weight: 600; color: var(--c-navy); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .film-detail,
  .film-detail-reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .perf-bar { grid-template-columns: 120px 1fr 48px; }
}
@media (max-width: 600px) {
  .film-visual-bg { height: 220px; }
  .film-specs-table { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd) { border-right: none; }
  .spec-row { border-bottom: 1px solid var(--c-grey-100); }
}
