:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,.5);
  --line: rgba(255,255,255,.14);
  --pad: 24px;
  --gap: 30px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 500 13px/1.4 var(--font); letter-spacing: 0; text-transform: none;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* Header / footer */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--pad); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.site-header .nav-left { justify-self: start; }
.site-header .brand { justify-self: center; text-align: center; }
.site-header .nav-right { justify-self: end; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--fg); }
.nav a:hover { color: var(--muted); }
.nav a[aria-current] { color: var(--muted); }
.brand { color: var(--fg); }
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  .site-header .brand { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
}
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px var(--pad); margin-top: 120px; color: var(--muted); }
.site-footer .nav a { color: var(--muted); }
.site-footer .nav a:hover { color: var(--fg); }

main { padding: 0 var(--pad); }
.page-title { font-weight: 400; color: var(--muted); margin: 8px 0 24px; }
.empty { color: var(--muted); }

/* Works grid — 4 par ligne */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); row-gap: 34px; padding-top: 56px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; padding-top: 40px; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; row-gap: 32px; padding-top: 28px; } }
.card { display: block; position: relative; }
.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.card.playing .media .loop { opacity: 1; }
.meta { display: block; margin-top: 12px; line-height: 1.4; }
.meta .client { display: block; }
.meta .title, .infobar .title { display: block; font: italic 400 13px/1.4 var(--serif); color: var(--muted); }
.infobar .title { display: inline; }

/* Survol : la vignette visée reste nette, le reste s'éteint */
.card { transition: opacity .35s ease; }
.grid.focus .card:not(.active) { opacity: .3; }

/* Apparition */
.card { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.card.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .card { opacity: 1; transform: none; transition: none; } }

/* Page film */
.player { aspect-ratio: 16 / 9; background: #000; margin-top: 8px; }
.player iframe { width: 100%; height: 100%; border: 0; }
.infobar { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 20px; }
.infobar span { white-space: nowrap; }
.infobar .muted { color: var(--muted); }
.project-body { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap); padding-top: 28px; align-items: start; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } }
.gallery { display: flex; flex-direction: column; gap: var(--gap); }
.gallery .item { aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.gallery .item img, .gallery .item video { width: 100%; height: 100%; object-fit: cover; }
.gallery:empty { display: none; }
.credits h2 { font-weight: 400; color: var(--muted); margin: 0 0 12px; }
.crew { margin: 0; }
.crew .row { display: flex; justify-content: space-between; gap: 24px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.crew .row .k { color: var(--muted); }
.crew .row .v { text-align: right; }
.crew a:hover { color: var(--muted); }
.next { display: inline-block; margin-top: 48px; color: var(--muted); }
.next:hover { color: var(--fg); }

/* Bio / contact */
.about { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 48px; max-width: 1100px; padding-top: 28px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }
.about-photo img { width: 100%; }
.about h1 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 18px; }
.about p { font: 400 16px/1.55 var(--serif); margin: 0 0 16px; max-width: 58ch; }
.contact { max-width: 1100px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact h2 { font-weight: 400; color: var(--muted); margin: 0 0 14px; }
.contact dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.contact a { border-bottom: 1px solid var(--line); }
.contact a:hover { border-color: var(--fg); }
@media (max-width: 720px) { .contact dl { grid-template-columns: 1fr; gap: 2px 0; } .contact dt { margin-top: 12px; } }
.iglink { display: inline-flex; align-items: center; gap: 8px; border-bottom: 0 !important; }
.iglink .ig { display: block; color: var(--fg); }
.site-footer .iglink .ig { color: var(--muted); }
