/* ── Netflix Portfolio — scoped styles ─────────────────────────── */

/* Hide default header bg on this page */
.page-template-page-portfolio body { background: #000; }

/* ── Hero Billboard ─────────────────────────────────────────────── */
.snf-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}
.snf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.snf-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.snf-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.snf-hero-slide.active .snf-hero-bg { transform: scale(1); }
/* Netflix-style gradient: dark left + bottom */
.snf-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.85) 30%, rgba(0,0,0,.2) 70%, transparent 100%),
    linear-gradient(to top,   rgba(0,0,0,.9) 0%,   rgba(0,0,0,0)  40%);
}
.snf-hero-content {
  position: absolute;
  bottom: 18%;
  left: 4%;
  max-width: 560px;
  z-index: 2;
}
.snf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-red, #c41e1e);
  padding: .3em .8em;
  margin-bottom: 1rem;
}
.snf-hero-title {
  font-family: 'Codec Cold', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.0;
  color: #fff;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.snf-hero-client {
  font-family: 'Walbaum 10 XL Pro', 'Georgia', serif;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.snf-hero-desc {
  font-family: 'Walbaum 10 XL Pro', 'Georgia', serif;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.snf-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.snf-btn-play {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  padding: .75em 1.6em;
  text-decoration: none;
  transition: background .2s;
}
.snf-btn-play:hover { background: rgba(255,255,255,.8); color: #000; }
.snf-btn-play svg { flex-shrink: 0; }
.snf-btn-info {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(109,109,110,.7);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  padding: .75em 1.6em;
  text-decoration: none;
  transition: background .2s;
  border: none;
  cursor: pointer;
}
.snf-btn-info:hover { background: rgba(109,109,110,.5); }
/* Hero dots — zone de clic large, visuel épais */
.snf-hero-dots {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .25rem;
  z-index: 3;
}
.snf-hero-dot {
  /* Zone de clic généreuse : 44px de hauteur touchable */
  padding: 20px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
}
.snf-hero-dot::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,.35);
  transition: background .3s, width .3s;
}
.snf-hero-dot.active::after { background: #fff; width: 52px; }
.snf-hero-dot:hover::after  { background: rgba(255,255,255,.65); }
/* Bottom fade into rows */
.snf-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 1;
}

/* ── Search + Filters ───────────────────────────────────────────── */
.snf-controls {
  background: #000;
  padding: 1.5rem 4%;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.snf-search-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: .55em 1em;
  max-width: 340px;
  margin-bottom: 1rem;
}
.snf-search-wrap svg { color: rgba(255,255,255,.5); flex-shrink: 0; }
.snf-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  width: 100%;
}
.snf-search-input::placeholder { color: rgba(255,255,255,.4); }
.snf-cat-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.snf-pill {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: .4em 1em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.snf-pill:hover,
.snf-pill.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ── Notice (no-match fallback from ?search= URL) ──────────────── */
.snf-notice {
  margin: 1.5rem auto 2rem;
  max-width: 1200px;
  padding: 0.75rem 1.25rem;
  border-left: 2px solid #c41e1e;
  background: rgba(196, 30, 30, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 2px;
}
.snf-notice strong {
  color: #fff;
  font-weight: 600;
}

/* ── Category Rows ──────────────────────────────────────────────── */
.snf-rows {
  background: #000;
  padding: 0 0 4rem;
}
.snf-row {
  margin-bottom: 2.5rem;
  position: relative;
}
.snf-row-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0 4%;
  margin-bottom: .85rem;
}
.snf-row-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.snf-row-see-all {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: var(--color-red, #c41e1e);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.snf-row-header:hover .snf-row-see-all {
  opacity: 1;
  transform: translateX(0);
}
.snf-row-see-all::after { content: ' \2192'; }

/* Scroll track */
.snf-track-wrap {
  position: relative;
}

.snf-track {
  display: flex;
  gap: .4rem;
  padding: 0 4%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.snf-track::-webkit-scrollbar { display: none; }

/* Scroll arrow buttons */
.snf-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5%;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity .2s;
  border: none;
  user-select: none;
}
.snf-arrow-left  { left: 0; }
.snf-arrow-right { right: 0; }
.snf-track-wrap:hover .snf-arrow { opacity: 1; }
.snf-arrow:hover { background: rgba(0,0,0,.9); }

/* ── Project Cards ──────────────────────────────────────────────── */
.snf-card {
  flex: 0 0 calc(25% - .3rem);
  min-width: 220px;
  max-width: 340px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: #111;
  transition: transform .3s ease, z-index 0s .3s;
}
@media (max-width: 900px) {
  .snf-card { flex: 0 0 calc(33% - .3rem); }
}
@media (max-width: 600px) {
  .snf-card { flex: 0 0 calc(50% - .3rem); min-width: 160px; }
}
.snf-card:hover {
  transform: scale(1.06);
  z-index: 10;
  transition: transform .3s ease;
}
.snf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.snf-card:hover .snf-card-img { transform: scale(1.05); }

/* Card overlay — revealed on hover */
.snf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .8rem;
}
.snf-card:hover .snf-card-overlay { opacity: 1; }
.snf-card-client {
  font-family: 'Codec Cold', 'Inter', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .2rem;
}
.snf-card-sub {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.snf-card-actions {
  display: flex;
  gap: .4rem;
}
.snf-card-btn-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
}
.snf-card-btn-play svg { display: block; }
/* "NEW" badge for first-row projects */
.snf-badge-new {
  position: absolute;
  top: .5rem;
  left: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--color-red, #c41e1e);
  color: #fff;
  padding: .2em .5em;
  z-index: 2;
}
/* Always-visible title at bottom */
.snf-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .6rem .7rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  font-family: 'Codec Cold', 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: opacity .2s;
}
.snf-card:hover .snf-card-label { opacity: 0; }

/* ── Search state ───────────────────────────────────────────────── */
.snf-card[hidden] { display: none; }
.snf-row.row-hidden { display: none; }

/* ── Video hover preview ────────────────────────────────────────── */
.snf-card-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  background: #000;
  overflow: hidden;
}
.snf-card-preview.snf-preview-active { opacity: 1; }
.snf-card-preview iframe,
.snf-card-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* scale up slightly to hide letterbox/pillarbox bars */
  transform: scale(1.2);
  object-fit: cover;
  pointer-events: none;
}
/* mute icon */
.snf-card-mute {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  z-index: 4;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.snf-card-preview.snf-preview-active .snf-card-mute { opacity: 1; }
