/* === SHADOWZ FILMS — Landing tokens === */
/* Palette sampled from Saccharine 2026 poster — same DA as the film minisite */
:root {
  /* ink — near-black + warm bordeaux (poster shadow zone) */
  --ink: #09090b;
  --ink-2: #1a1410;
  --ink-3: #2a1418;        /* wine — bordeaux for alt sections */
  --paper: #faf7f2;        /* warm off-white */
  --paper-2: #f0eadf;
  --bone: #a99080;         /* warm muted */
  --muted: #7a6b62;

  /* Signal colors */
  --yellow: #ffef00;        /* acid yellow — main signal */
  --yellow-warm: #f6e21a;
  --yellow-tint: rgba(255,239,0,0.14);
  --shadowz-red: #d8161c;   /* logo Shadowz red — used sparingly */
  --shadowz-red-deep: #a30f14;
  --flesh: #f3be58;

  /* Legacy aliases — pink → yellow */
  --pink: var(--yellow);
  --pink-soft: var(--yellow);

  /* type */
  --f-display: "Bebas Neue", "Anton", Impact, sans-serif;
  --f-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-sans: "DM Sans", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* utility */
.caps { text-transform: uppercase; letter-spacing: 0.04em; }
.tight { letter-spacing: -0.02em; }
.bebas { font-family: var(--f-display); letter-spacing: 0.01em; }
.cormorant { font-family: var(--f-serif); }
.dm { font-family: var(--f-sans); }
.mono { font-family: var(--f-mono); }

/* the signature shadowz "amputated i" treatment */
.amp-i { display: inline-block; transform: translateY(0.04em); }
.amp-i::before {
  content: "ı";
  font-family: inherit;
}

/* film noise */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.018) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(216,22,28,0.04) 0, transparent 40%);
  mix-blend-mode: screen;
  z-index: 1;
}
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* shared header — aligné sur shadowz.fr */
.sf-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 12px 40px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sf-header__logo {
  display: flex; align-items: center;
}
.sf-header__logo img {
  height: 72px;
  width: auto;
  display: block;
}
.sf-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: start;
  margin-left: 8px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}

/* burger trigger */
.sf-nav__burger {
  width: 30px;
  height: 22px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.sf-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: background 0.2s, transform 0.25s;
}
.sf-nav:hover .sf-nav__burger span { background: var(--shadowz-red); }

/* hidden-by-default links, slide in to the right on hover */
.sf-nav__links {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  gap: 32px;
  padding-left: 0;
  transition: width 0.5s cubic-bezier(.22,.61,.36,1),
              padding-left 0.5s cubic-bezier(.22,.61,.36,1);
}
.sf-nav:hover .sf-nav__links {
  width: 640px;
  padding-left: 28px;
}
.sf-nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--paper);
  opacity: 0;
  transform: translateX(-12px);
  transition: color 0.18s,
              opacity 0.35s,
              transform 0.45s cubic-bezier(.22,.61,.36,1);
}
.sf-nav:hover .sf-nav__links a {
  opacity: 1;
  transform: translateX(0);
}
.sf-nav:hover .sf-nav__links a:nth-child(1) { transition-delay: 0.06s; }
.sf-nav:hover .sf-nav__links a:nth-child(2) { transition-delay: 0.13s; }
.sf-nav:hover .sf-nav__links a:nth-child(3) { transition-delay: 0.20s; }
.sf-nav:hover .sf-nav__links a:nth-child(4) { transition-delay: 0.27s; }
.sf-nav__links a:hover { color: var(--shadowz-red); }
.sf-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--shadowz-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.sf-nav__links a:hover::after { transform: scaleX(1); }

.sf-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
  position: relative;
}
.sf-streampill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  transition: all 0.2s;
}
.sf-streampill strong {
  color: var(--shadowz-red);
  font-weight: 400;
  letter-spacing: 0.05em;
}
.sf-streampill__logo {
  height: 22px;
  width: auto;
  display: block;
  margin: -2px 2px 0 0;
  transition: filter 0.2s;
}
.sf-streampill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--shadowz-red);
  box-shadow: 0 0 8px var(--shadowz-red);
}
.sf-streampill:hover {
  border-color: var(--shadowz-red);
  background: rgba(216,22,28,0.08);
}
.sf-streampill.is-shaking {
  animation: sf-streampill-shake 0.125s cubic-bezier(.36,.07,.19,.97) 2;
}
@keyframes sf-streampill-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20%      { transform: translate(-0.6px, 0.4px) rotate(-0.4deg); }
  40%      { transform: translate(0.6px, -0.4px) rotate(0.4deg); }
  60%      { transform: translate(-0.4px, -0.5px) rotate(-0.3deg); }
  80%      { transform: translate(0.4px, 0.5px) rotate(0.3deg); }
}
.sf-streampill svg {
  margin-left: 2px;
  color: var(--bone);
  transition: transform 0.2s;
}
.sf-streampill:hover svg { transform: translateX(2px); color: var(--shadowz-red); }

/* ===== card components reused across directions ===== */
.film-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.film-card__poster {
  aspect-ratio: 2/3;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.film-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.film-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,9,11,0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}
.film-card__poster:hover .film-card__hover {
  opacity: 1;
}
.film-card__poster:hover img {
  transform: scale(1.04);
}
.film-card__hover-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #c40000;
  color: var(--paper);
  transform: translateY(8px);
  transition: transform 0.28s ease, background 0.2s, color 0.2s;
}
.film-card__poster:hover .film-card__hover-cta {
  transform: translateY(0);
}
.film-card__hover-cta:hover {
  background: var(--paper);
  color: #c40000;
}
.film-card__meta {
  padding: 20px 18px 22px;
}
.film-card__title {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}
.film-card__sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--bone);
  margin-bottom: 12px;
}
.film-card__release {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--paper);
  margin: 0 0 14px;
  opacity: 0.9;
}
.film-card__distrib {
  display: block;
  color: var(--bone);
  font-style: italic;
  margin-top: 2px;
}
.film-card__date {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #c40000;
  margin-top: 10px;
}
.film-card__links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.film-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.film-card__link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,239,0,0.45);
  background: var(--ink-2);
}
.film-card__link img {
  display: block;
  height: 16px;
  width: auto;
}
.film-card__link--allocine img {
  height: 14px;
}
.film-card__link--imdb img { height: 14px; }

.placeholder-poster {
  position: relative;
  background:
    linear-gradient(135deg, #181818 0%, #0d0d0d 100%);
  display: flex; align-items: center; justify-content: center;
}
.placeholder-poster::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.placeholder-poster .ph-label {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

/* socials */
.sf-socials {
  display: flex; gap: 14px;
}
.sf-socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  transition: all 0.2s;
}
.sf-socials a:hover {
  background: var(--shadowz-red);
  border-color: var(--shadowz-red);
}
.sf-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* footer */
.sf-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 48px 36px;
  position: relative;
}
.sf-footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}
.sf-footer__left {
  justify-self: start;
}
.sf-footer__center {
  justify-self: center;
}
.sf-footer__logo {
  display: inline-block;
}
.sf-footer__logo img {
  height: 56px;
  width: auto;
  display: block;
}
.sf-footer__rightcol {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.sf-footer__sociallabel {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
.sf-footer__sociallabel-mark {
  color: var(--shadowz-red);
}
.sf-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-footer__legal-sep {
  opacity: 0.5;
}

/* shared mega-watermark (Saccharine signature) */
.watermark {
  font-family: var(--f-display);
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: var(--shadowz-red);
  opacity: 0.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* =====================================================
   MOBILE — ≤ 768px
   ===================================================== */
@media (max-width: 768px) {
  /* HEADER */
  .sf-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 10px 16px;
  }
  .sf-header__logo img {
    height: 44px;
  }
  .sf-nav {
    margin-left: 0;
    gap: 12px;
  }
  /* on mobile the burger toggles a dropdown panel anchored to the header */
  .sf-header { position: relative; }
  .sf-nav { position: static; }
  .sf-nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 60;
  }
  .sf-nav.is-open .sf-nav__links {
    max-height: 320px;
    padding: 8px 0 16px;
  }
  .sf-nav__links a {
    opacity: 1;
    transform: none;
    padding: 14px 24px;
    font-size: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .sf-nav__links a::after { display: none; }
  /* burger morph when open */
  .sf-nav.is-open .sf-nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .sf-nav.is-open .sf-nav__burger span:nth-child(2) {
    opacity: 0;
  }
  .sf-nav.is-open .sf-nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .sf-nav__burger {
    width: 26px;
    height: 18px;
  }
  /* compact streampill: just the Shadowz logo + chevron, hide "Accéder à" */
  .sf-streampill {
    padding: 6px 10px 6px 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
    gap: 6px;
  }
  .sf-streampill > span {
    display: none;
  }
  .sf-streampill__logo {
    height: 18px;
    margin: 0;
  }
  .sf-header__right {
    gap: 8px;
  }

  /* FILM CARD — single column with horizontal layout */
  .film-card__meta {
    padding: 16px 14px 18px;
  }
  .film-card__title {
    font-size: 26px;
  }
  .film-card__sub { font-size: 14px; }
  .film-card__release { font-size: 14px; }

  /* FOOTER — stack vertically */
  .sf-footer {
    padding: 40px 20px 28px;
  }
  .sf-footer__row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
    text-align: center;
  }
  .sf-footer__left,
  .sf-footer__center,
  .sf-footer__rightcol {
    justify-self: center;
    align-items: center;
  }
  .sf-footer__rightcol {
    align-items: center;
  }
  .sf-footer__sociallabel {
    font-size: 15px;
    text-align: center;
  }
  .sf-footer__logo img {
    height: 44px;
  }
  .sf-footer__legal {
    font-size: 10px;
    letter-spacing: 0.08em;
    gap: 8px;
    padding-top: 20px;
  }
  .sf-socials a {
    width: 36px; height: 36px;
  }
}
