/* ============================================================
   3H12 — Court métrage · CSS
   Feuille additionnelle, chargée après style.css
   Ambiance : nuit, found-footage, dédoublement
   ============================================================ */

:root {
  --void:        #050506;
  --panel:       rgba(255,255,255,0.035);
  --panel-b:     rgba(255,255,255,0.09);
  --alert:       #c31432;
  --alert-glow:  rgba(195,20,50,0.45);
  --txt-soft:    #ece9e4;
  --txt-dim:     rgba(255,255,255,0.42);
  --mono:        'JetBrains Mono', 'Courier New', monospace;
  --display:     'Bebas Neue', 'Poppins', sans-serif;
}

body.film-page {
  background: var(--void);
}

body.film-page .background {
  z-index: -2;
}

/* Grain / bruit VHS superposé à toute la page */
#film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}

/* Lien retour dans le header */
.back-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--txt-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.back-link:hover { color: var(--orange); }

.badge-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--alert);
  border: 1px solid rgba(195,20,50,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  text-transform: uppercase;
  background: rgba(195,20,50,0.06);
}

/* ============================================================
   HERO
   ============================================================ */
.film-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.film-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(195,20,50,0.10), transparent 60%),
    linear-gradient(to bottom, rgba(5,5,6,0.2), rgba(5,5,6,0.9) 85%);
  z-index: 0;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--txt-dim);
  text-transform: uppercase;
  z-index: 2;
  margin-bottom: 28px;
}

/* Titre dédoublé : le coeur du système visuel du film */
.title-double {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--txt-soft);
  user-select: none;
}

.title-double::before,
.title-double::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  color: var(--alert);
  opacity: 0;
}

.title-double.is-live::before {
  animation: echo-drift 6s ease-in-out 1.4s infinite;
}

.title-double.is-live::after {
  animation: echo-drift-b 6s ease-in-out 1.4s infinite;
}

@keyframes echo-drift {
  0%, 100% { opacity: 0; transform: translate(0,0); }
  48%      { opacity: 0.35; transform: translate(6px, 3px); }
  52%      { opacity: 0.35; transform: translate(6px, 3px); }
}

@keyframes echo-drift-b {
  0%, 100% { opacity: 0; transform: translate(0,0); }
  48%      { opacity: 0.22; transform: translate(-5px, -2px); }
  52%      { opacity: 0.22; transform: translate(-5px, -2px); }
}

.hero-clock {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--alert);
  margin-top: 26px;
  z-index: 2;
  text-shadow: 0 0 12px var(--alert-glow);
}

.hero-clock .glitching {
  display: inline-block;
  animation: clock-jitter 4.4s steps(1) infinite;
}

@keyframes clock-jitter {
  0%, 85%, 100% { opacity: 1; transform: none; }
  86%           { opacity: 0.3; transform: translateX(1px); }
  88%           { opacity: 1;   transform: translateX(-1px); }
  90%           { opacity: 0.4; }
  92%           { opacity: 1; transform: none; }
}

.hero-tagline {
  z-index: 2;
  margin-top: 30px;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
}

.hero-meta {
  z-index: 2;
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--txt-dim);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue span.bar {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, var(--alert), transparent);
  animation: cue-run 1.8s ease-in-out infinite;
}

@keyframes cue-run {
  0%   { transform: scaleY(0.2); opacity: 0.3; transform-origin: top; }
  50%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0.3; transform-origin: bottom; }
}

/* ============================================================
   SECTIONS GÉNÉRIQUES DU FILM
   ============================================================ */
.film-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 90px 24px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.film-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.film-section.wide { max-width: 1120px; }

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--alert);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.section-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 8px var(--alert-glow);
}

.film-section h2.film-h {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
  color: var(--txt-soft);
  margin-bottom: 26px;
  max-width: 620px;
}

/* ============================================================
   SYNOPSIS
   ============================================================ */
.synopsis-box {
  border: 1px solid var(--panel-b);
  border-left: 2px solid var(--alert);
  background: var(--panel);
  border-radius: 6px;
  padding: 36px 40px;
  backdrop-filter: blur(8px);
}

.synopsis-box p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  max-width: 68ch;
}

.synopsis-box p + p { margin-top: 18px; }

.synopsis-quote {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--panel-b);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--txt-dim);
  font-style: normal;
}

.synopsis-quote span { color: var(--alert); }

/* ============================================================
   CONCEPT — 3 piliers
   ============================================================ */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.concept-card {
  border: 1px solid var(--panel-b);
  background: var(--panel);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.concept-card:hover {
  border-color: rgba(195,20,50,0.4);
  transform: translateY(-4px);
}

.concept-card svg {
  width: 30px; height: 30px;
  stroke: var(--alert);
  margin-bottom: 18px;
}

.concept-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--txt-soft);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.concept-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--txt-dim);
  font-weight: 300;
}

/* ============================================================
   FICHE TECHNIQUE — ardoise de tournage
   ============================================================ */
.slate {
  border: 1px solid var(--panel-b);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.slate-top {
  background: repeating-linear-gradient(
    -45deg,
    #111 0px, #111 18px,
    #0a0a0a 18px, #0a0a0a 36px
  );
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  border-bottom: 1px solid var(--panel-b);
}

.slate-rows { padding: 6px 0; }

.slate-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}

.slate-row:last-child { border-bottom: none; }

.slate-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-dim);
  flex-shrink: 0;
}

.slate-row dd {
  color: var(--txt-soft);
  font-weight: 300;
  text-align: right;
}

/* ============================================================
   GALERIE — planche contact / pellicule
   ============================================================ */
.filmstrip {
  position: relative;
  padding: 22px 0;
}

.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background-image: radial-gradient(circle, #000 3px, transparent 3.2px);
  background-size: 26px 14px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
}

.filmstrip::before { top: 0; }
.filmstrip::after  { bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--panel-b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05) brightness(0.92);
}

.gallery-tile.empty {
  flex-direction: column;
  gap: 8px;
  color: var(--txt-dim);
}

.gallery-tile.empty svg {
  width: 22px; height: 22px;
  stroke: var(--txt-dim);
}

.gallery-tile.empty span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--txt-dim);
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   CTA finale
   ============================================================ */
.film-cta {
  text-align: center;
  padding: 100px 24px 60px;
}

.film-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--txt-soft);
  margin-bottom: 14px;
}

.film-cta p {
  color: var(--txt-dim);
  font-size: 0.95rem;
  margin-bottom: 34px;
}

.film-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-end.alert {
  border-color: rgba(195,20,50,0.45);
}

.nav-end.alert::after { display: none; }

.nav-end.alert:hover {
  background: rgba(195,20,50,0.12);
  border-color: rgba(195,20,50,0.75);
}

.nav-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--panel-b);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-dim);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-ghost:hover {
  color: var(--txt-soft);
  border-color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .concept-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .synopsis-box { padding: 28px 24px; }
  .slate-row { flex-direction: column; gap: 4px; text-align: left; }
  .slate-row dd { text-align: left; }
}

@media (max-width: 480px) {
  .film-hero { padding-top: 120px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .film-section { padding: 64px 20px; }
  .synopsis-box { padding: 22px 18px; }
  .hero-meta { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .title-double::before,
  .title-double::after,
  .hero-clock .glitching,
  .scroll-cue span.bar { animation: none !important; }
  .film-section { opacity: 1; transform: none; }
}
