/* Goodfellas — charte : noir #0e0c0a, rouge sang #a31621, crème #e8dcc3, or #c9a227 */

:root {
  --noir: #0e0c0a;
  --noir-2: #171310;
  --rouge: #a31621;
  --rouge-fonce: #6e0e15;
  --creme: #e8dcc3;
  --creme-2: #cfc0a0;
  --or: #c9a227;
  --gris: #8a7f6d;
  --serif: "Playfair Display", Georgia, serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --player-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--noir);
  color: var(--creme);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: var(--player-h);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

::selection { background: var(--rouge); color: var(--creme); }

/* Grain de pellicule */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Navigation */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
#nav.scrolled {
  background: rgba(14, 12, 10, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(163, 22, 33, .5);
  height: 60px;
}
.brand {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .35em;
  color: var(--creme);
  text-decoration: none;
}
.brand:hover { color: var(--or); }
.nav-links { display: flex; gap: clamp(12px, 2vw, 28px); list-style: none; }
.nav-links a {
  font-family: var(--cond);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--creme-2);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav-links a:hover { color: var(--creme); border-bottom-color: var(--rouge); }
.nav-toggle { display: none; }

/* Hero letterbox */
.hero {
  min-height: 100svh;
  background: #000;
  display: grid;
  place-items: center;
  padding: 96px clamp(12px, 3vw, 40px) 64px;
}
.hero-frame {
  position: relative;
  width: min(1240px, 100%);
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
}
.hero-frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 72% 64% at 50% 47%, rgba(14,12,10,.85) 0%, rgba(14,12,10,.55) 52%, rgba(14,12,10,0) 80%),
    linear-gradient(180deg, rgba(14,12,10,.66) 0%, rgba(14,12,10,.3) 38%, rgba(14,12,10,.92) 100%);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(20px, 4vw, 56px);
}
.hero-kicker {
  font-family: var(--cond);
  font-size: clamp(.7rem, 1.4vw, .95rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--or);
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 12px rgba(14,12,10,.9);
  margin-bottom: clamp(8px, 1.5vh, 18px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  letter-spacing: .12em;
  line-height: 1;
  color: var(--creme);
  text-shadow: 0 2px 3px rgba(0,0,0,.95), 0 4px 30px rgba(0,0,0,.8), 0 0 70px rgba(14,12,10,.95);
}
.hero-sub {
  font-family: var(--cond);
  font-size: clamp(.85rem, 1.8vw, 1.2rem);
  letter-spacing: .55em;
  text-transform: uppercase;
  color: var(--rouge);
  filter: brightness(1.6);
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 14px rgba(14,12,10,.9);
  margin: clamp(6px, 1vh, 12px) 0 clamp(14px, 2.5vh, 26px);
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 1.9vw, 1.3rem);
  color: var(--creme-2);
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 14px rgba(14,12,10,.9);
  max-width: 640px;
}
.hero-quote cite {
  display: block;
  font-family: var(--cond);
  font-style: normal;
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--or);
  text-shadow: 0 1px 2px rgba(0,0,0,.95);
  margin-top: 8px;
}
.hero-cast {
  font-size: clamp(.72rem, 1.3vw, .9rem);
  letter-spacing: .12em;
  color: #b9ab8d;
  text-shadow: 0 1px 2px rgba(0,0,0,.95);
  margin: clamp(12px, 2vh, 22px) 0 clamp(16px, 2.5vh, 28px);
}
.btn {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--creme);
  background: var(--rouge);
  border: 1px solid var(--rouge);
  padding: 14px 34px;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: transparent; color: var(--creme); transform: translateY(-2px); }

/* Sections */
.section { padding: clamp(64px, 10vh, 120px) clamp(16px, 4vw, 48px); }
.section-alt { background: var(--noir-2); border-top: 1px solid rgba(201, 162, 39, .18); border-bottom: 1px solid rgba(201, 162, 39, .18); }
.wrap { max-width: 1120px; margin: 0 auto; }

.kicker {
  font-family: var(--cond);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--rouge);
  filter: brightness(1.5);
  margin-bottom: 10px;
}
h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: clamp(18px, 3vh, 28px);
}
.lead { color: var(--creme-2); max-width: 760px; margin-bottom: clamp(28px, 4vh, 44px); }
.lead strong { color: var(--creme); }

/* Vidéo 16:9 */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 162, 39, .35);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Actes */
.acte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(40px, 6vh, 72px);
}
.acte-flip .acte-img { order: 2; }
.acte-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(163, 22, 33, .45);
}
.acte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.acte:hover .acte-img img { transform: scale(1.05); }
.acte-num {
  font-family: var(--cond);
  font-size: .75rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 8px;
}
.acte h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 14px;
}
.acte h3 span {
  display: block;
  font-family: var(--cond);
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--gris);
  margin-top: 6px;
}
.acte p { color: var(--creme-2); margin-bottom: 12px; }
.acte p:last-child { margin-bottom: 0; }
.acte strong { color: var(--creme); }

/* Personnages */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vh, 44px);
}
.card {
  background: var(--noir-2);
  border: 1px solid rgba(201, 162, 39, .22);
  border-top: 3px solid var(--rouge);
  padding-bottom: 22px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, .55); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .7s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card h3 { font-family: var(--serif); font-size: 1.25rem; padding: 18px 18px 0; }
.actor {
  font-family: var(--cond);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or);
  padding: 4px 18px 10px;
}
.role { font-size: .85rem; color: var(--creme-2); padding: 0 18px 12px; }
.card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: .88rem;
  color: var(--gris);
  padding: 0 18px;
  border-left: 2px solid var(--rouge);
  margin: 0 18px;
  padding-left: 12px;
}

/* Chronologie */
.timeline { list-style: none; position: relative; margin-top: clamp(28px, 4vh, 44px); padding-left: clamp(24px, 4vw, 48px); }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--rouge), var(--or));
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(14px, 3vw, 40px);
  padding: 22px 0;
  border-bottom: 1px solid rgba(232, 220, 195, .08);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 48px) + 2px);
  top: 34px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--noir);
  border: 3px solid var(--rouge);
}
.tl-year {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--or);
  line-height: 1.1;
}
.timeline h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; }
.timeline p { color: var(--creme-2); font-size: .92rem; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(28px, 4vh, 44px);
}
.gallery figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(201, 162, 39, .2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .5s ease; }
.gallery figure:hover img { transform: scale(1.07); filter: brightness(1.12); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-family: var(--cond);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--creme);
  background: linear-gradient(180deg, transparent, rgba(14,12,10,.9));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery figure::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid transparent;
  transition: border-color .35s ease;
  pointer-events: none;
}
.gallery figure:hover::after { border-color: var(--rouge); }

/* Vérité & erreurs */
.errs { display: grid; gap: clamp(16px, 2.5vw, 24px); margin-top: clamp(28px, 4vh, 44px); }
.err {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--noir-2);
  border: 1px solid rgba(201, 162, 39, .2);
}
.err-label, .fix-label {
  font-family: var(--cond);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 12px 20px 0;
}
.err-label { color: var(--rouge); filter: brightness(1.5); }
.fix-label { color: var(--or); }
.err-text, .fix-text { padding: 4px 20px 18px; font-size: .95rem; }
.err > :nth-child(1), .err > :nth-child(2) { border-left: 3px solid var(--rouge); }
.err > :nth-child(3), .err > :nth-child(4) { border-left: 3px solid var(--or); }
.err-text { color: var(--creme-2); text-decoration: line-through; text-decoration-color: rgba(163,22,33,.7); }
.fix-text { color: var(--creme); }
.fix-text strong { color: var(--or); }

/* Making-of */
.mo-block {
  margin-top: clamp(32px, 5vh, 56px);
  background: var(--noir-2);
  border: 1px solid rgba(201, 162, 39, .2);
  padding: clamp(22px, 3.5vw, 40px);
}
.mo-block h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--or);
}
.mo-block p { color: var(--creme-2); }
.mo-block a { color: var(--or); }
blockquote.prompt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--creme);
  border-left: 4px solid var(--rouge);
  padding-left: clamp(16px, 3vw, 28px);
}
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: 8px; }
.note { text-align: center; padding: clamp(18px, 3vw, 30px) 16px; border: 1px solid rgba(201,162,39,.35); background: var(--noir); }
.note-score {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--or);
  line-height: 1;
}
.note-den { font-size: .45em; color: var(--gris); }
.note-title { font-family: var(--cond); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--creme); margin-top: 12px; }
.note-sub { font-size: .82rem; color: var(--gris); margin-top: 8px; }
.credits { list-style: none; }
.credits li { padding: 10px 0; border-bottom: 1px solid rgba(232,220,195,.08); color: var(--creme-2); font-size: .93rem; }
.credits li:last-child { border-bottom: 0; }
.credits strong { color: var(--creme); font-family: var(--cond); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; margin-right: 8px; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .85em; color: var(--or); background: rgba(201,162,39,.08); padding: 2px 6px; }

/* Footer */
.footer {
  text-align: center;
  padding: clamp(48px, 8vh, 80px) 20px calc(var(--player-h) + 32px);
  border-top: 1px solid rgba(163, 22, 33, .4);
  color: var(--gris);
  font-size: .85rem;
}
.footer-quote { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--creme); margin-bottom: 12px; }
.footer-small { margin-top: 10px; font-family: var(--cond); letter-spacing: .3em; text-transform: uppercase; font-size: .68rem; color: var(--rouge); filter: brightness(1.4); }

/* Player audio — fixe, toujours visible */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  height: var(--player-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(12px, 3vw, 32px);
  background: rgba(14, 12, 10, .96);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--rouge);
}
.p-btn {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--rouge);
  color: var(--creme);
  border: 0;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.p-btn:hover { background: var(--rouge-fonce); transform: scale(1.06); }
.p-btn:active { transform: scale(.96); }
.p-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.p-title { font-family: var(--cond); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--creme); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-voice { font-size: .68rem; color: var(--gris); letter-spacing: .08em; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; flex: 0 0 auto; }
.eq i { width: 3px; height: 4px; background: var(--or); transition: height .2s; }
.player.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.player.playing .eq i:nth-child(2) { animation-delay: .2s; }
.player.playing .eq i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }
.p-time { font-family: var(--cond); font-size: .75rem; color: var(--creme-2); letter-spacing: .08em; flex: 0 0 auto; min-width: 42px; text-align: center; }
.p-bar {
  flex: 1 1 auto;
  height: 8px;
  background: rgba(232, 220, 195, .15);
  cursor: pointer;
  position: relative;
}
.p-bar:hover { height: 10px; }
.p-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--rouge), var(--or));
}
.p-fill::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--creme);
  box-shadow: 0 0 6px rgba(201,162,39,.8);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 5, .95);
  padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lb-fig { max-width: min(1200px, 100%); text-align: center; }
.lb-fig img { max-width: 100%; max-height: 76vh; object-fit: contain; border: 1px solid rgba(201,162,39,.4); box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.lb-fig figcaption { font-family: var(--cond); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--creme-2); margin-top: 14px; }
.lb-btn {
  position: absolute;
  background: transparent;
  color: var(--creme);
  border: 1px solid rgba(232,220,195,.3);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.lb-btn:hover { border-color: var(--rouge); color: var(--or); background: rgba(163,22,33,.15); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--cond); letter-spacing: .3em; color: var(--gris); font-size: .75rem; }

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .acte { grid-template-columns: 1fr; }
  .acte-flip .acte-img { order: 0; }
  .err { grid-template-columns: 1fr; }
  .err > :nth-child(3), .err > :nth-child(4) { border-left: 3px solid var(--or); border-top: 1px solid rgba(201,162,39,.15); }
  .err > :nth-child(1), .err > :nth-child(2) { border-left: 3px solid var(--rouge); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid rgba(232,220,195,.3);
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--creme); transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14,12,10,.97);
    border-bottom: 1px solid rgba(163,22,33,.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid rgba(232,220,195,.07); }
  .nav-links a { display: block; padding: 14px clamp(16px, 4vw, 48px); }
  .hero { padding-top: 80px; }
  .hero-frame { aspect-ratio: 16 / 9; }
  .hero-cast { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .timeline li::before { top: 30px; }
  .player { gap: 10px; }
  .p-meta { display: none; }
  .eq { display: none; }
  .p-time { min-width: 36px; font-size: .68rem; }
  .lightbox { padding: 56px 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .p-voice { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame > img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .player.playing .eq i { animation: none; }
}
