@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: #080808; color: #f7f4ef; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1320px, calc(100% - clamp(2rem, 10vw, 10rem))); margin-inline: auto; }
.masthead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #080808;
  border-bottom: 1px solid #303030;
}
.masthead-inner {
  min-height: 76px;
  padding-block: .7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 2rem;
}
.brand img { display: block; width: 100px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .6rem clamp(1rem, 3vw, 2.4rem); font-size: .95rem; font-weight: 600; }
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.with-title h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
.intro p { max-width: 64ch; font-size: clamp(1.12rem, 2.1vw, 1.6rem); line-height: 1.5; text-wrap: pretty; }
.intro .intro-description { max-width: 52ch; font-size: clamp(1rem, 1.8vw, 1.35rem); text-wrap: balance; }
.intro-signature { margin: clamp(1.3rem, 3vw, 2.2rem) 0 0; }
.intro-signature blockquote { margin: 0; }
.intro-signature figcaption { margin-top: .35rem; color: #d1cdc6; font-size: .95rem; }
.studio p { margin-top: 1rem; color: #d1cdc6; line-height: 1.6; }
.catalogue { margin-bottom: clamp(3.25rem, 7vw, 6.5rem); }
h2 { margin-bottom: .65em; font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.35vw, 1.25rem); }
.card { display: flex; flex-direction: column; background: var(--card-color); color: #17120f; }
#documentaire { --visual-ratio: 5 / 6; }
#court-metrage { --visual-ratio: 10 / 13; }
.visual { aspect-ratio: var(--visual-ratio, 5 / 6); position: relative; overflow: hidden; background: #1e1e1e; color: #fff; }
.visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.with-title { display: grid; align-items: end; isolation: isolate; }
.with-title img { position: absolute; inset: 0; z-index: -2; }
.with-title::before {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: -1;
  background: linear-gradient(transparent, #080808e8);
}
.with-title h3 { padding: .6em .55em; font-size: clamp(1.6rem, 3.5vw, 3.1rem); line-height: .98; }
.caption { padding: .65rem .8rem .75rem; flex: 1; font-size: .89rem; line-height: 1.35; min-height: 4rem; }
.credit { font-size: inherit; font-weight: 700; }
.credit + p { margin-top: .2rem; }
.studio { border-top: 1px solid #303030; padding-block: 2.5rem; }
.studio a { display: inline-block; margin-top: .75rem; text-decoration: underline; text-underline-offset: .22em; }
footer { border-top: 1px solid #303030; padding-block: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; color: #d1cdc6; font-size: .85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 740px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead-inner { align-items: flex-start; flex-direction: column; }
  nav { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.commission-visual { container-type: inline-size; }
.commission-title {
  position: absolute;
  inset: auto 0 0;
  padding: 12% 7% 6%;
  background: linear-gradient(transparent, #1c0f20d9);
  color: #fff7ed;
  text-align: left;
  font-size: clamp(1rem, 9cqi, 2.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.commission-title span {
  display: block;
  margin-top: .28rem;
  color: #ffdeae;
  font-size: clamp(.65rem, 5.5cqi, 1.47rem);
  font-weight: 600;
  letter-spacing: .13em;
}

.catalogue-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.film-scroll-controls:not([hidden]) { display: flex; gap: .4rem; }
.catalogue-heading h2 { margin-right: auto; }
.film-scroll-controls button,
.retour-haut {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  padding: 0;
  border: 1px solid #444;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.film-scroll-controls button:disabled { opacity: .4; cursor: default; }
.film-scroll-controls button:hover:not(:disabled) { background: #222; }
.film-scroll-controls button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.cards.film-scroll {
  --film-gap: clamp(.65rem, 1.35vw, 1.25rem);
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--film-gap)) / 4);
  gap: var(--film-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cards.film-scroll > .card { scroll-snap-align: start; }

@media (max-width: 740px) {
  .cards.film-scroll { grid-auto-columns: calc((100% - var(--film-gap)) / 2); }
}

#rayon-bleu .caption { color: #fff; }

.retour-haut { display: inline-grid; place-items: center; text-decoration: none; }
.retour-haut:hover { background: #222; }
.retour-haut:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.visual img[src="sous-le-meme-ciel-loup.webp"] { object-position: center top; }
.caption-with-status { display: flex; flex-direction: column; }
.film-status {
  margin-top: auto;
  padding-top: .65rem;
  text-align: right;
}
