/* Couleurs et typographie. Les polices sont fournies dans le dossier polices. */
@font-face {
  font-family: "Latin Modern";
  src: url("polices/latin-modern-roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern";
  src: url("polices/latin-modern-italique.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("polices/noto-sans.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("polices/noto-sans-gras.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fond: #151917;
  --ivoire: #f4ebdc;
  --or: #e4bb8b;
  --texte: #d0c7b8;
  --filet: #525347;
  --serif: "Latin Modern", Georgia, serif;
  --sans: "Noto Sans", system-ui, sans-serif;
  --marge: clamp(1.125rem, 5vw, 4.75rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 52rem 30rem at 68% -5rem, #272823, transparent 92%),
    var(--fond);
  color: var(--ivoire);
  font: 1rem/1.58 var(--sans);
}
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--or); outline-offset: 5px; }
img { display: block; max-width: 100%; }
section[id], main[id] { scroll-margin-top: 1.5rem; }
.shell {
  width: min(100% - var(--marge) * 2, 75rem);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  padding: .75rem 1rem;
  color: var(--fond);
  background: var(--ivoire);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.label {
  color: var(--or);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Entrée */
.masthead {
  padding-top: clamp(1.15rem, 3vw, 2.4rem);
  padding-bottom: clamp(1.7rem, 4.4vw, 3.75rem);
  border-bottom: 1px solid var(--filet);
}
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.3rem);
  border-bottom: 1px solid var(--filet);
  margin-bottom: clamp(1.6rem, 4vw, 3.3rem);
}
.nav a, .page-end a {
  padding-block: .25rem .65rem;
  color: var(--texte);
  font-size: .9rem;
  text-decoration: none;
}
.nav a:hover, .page-end a:hover { color: var(--ivoire); text-decoration: underline; }
.masthead h1 {
  font-size: clamp(3.7rem, 11vw, 10rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.masthead h1 em { font-weight: 400; }
.masthead-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(1.15rem, 2vw, 1.85rem);
}
.motto {
  color: var(--ivoire);
  font: italic 400 clamp(1.26rem, 2.6vw, 2rem)/1.25 var(--serif);
}

/* Triptyque */
.theatre { padding-top: clamp(1.6rem, 3.6vw, 3rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2.25rem;
  margin-bottom: clamp(1.15rem, 3.1vw, 2.5rem);
}
.theatre-heading .label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  margin-bottom: .55rem;
}
.company { text-decoration-thickness: 1px; }
.company:hover { color: var(--ivoire); }
.section-heading h2, .screen h2 {
  font-size: clamp(2.3rem, 5vw, 4.85rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.theatre-credit {
  flex: 0 0 auto;
  padding-bottom: .26rem;
  color: var(--texte);
  font-size: .875rem;
  line-height: 1.6;
}
.theatre-grid, .film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.4rem);
}
.poster {
  height: clamp(16rem, 35vw, 29rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.poster img {
  width: auto;
  height: 84%;
  object-fit: contain;
  object-position: center bottom;
}
.featured .poster img { height: 100%; }
.work-text {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
}
.work h3, .film h3 {
  font-size: clamp(1.75rem, 3.25vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.subtitle {
  color: var(--ivoire);
  font: italic 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.28 var(--serif);
  margin-top: .15rem;
}
.summary { margin-top: .55rem; color: var(--texte); }
.work-date { margin-top: .9rem; }

/* Films */
.screen {
  margin-top: clamp(2.25rem, 5.5vw, 4.5rem);
  padding-top: clamp(1.35rem, 3vw, 2.65rem);
  border-top: 1px solid var(--filet);
}
.screen h2 { margin-bottom: 1.25rem; }
.film-image {
  display: block;
  aspect-ratio: 704 / 322;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--filet);
}
.film-image img { width: 100%; height: 100%; object-fit: cover; }
.film-image:hover { box-shadow: 0 0 0 2px var(--or); }
.film-partner { margin: .9rem 0 .42rem; }
.film h3 { font-size: clamp(1.7rem, 2.65vw, 2.45rem); }
.film-credit, .award {
  color: var(--texte);
  font-size: .875rem;
  line-height: 1.5;
  margin-top: .7rem;
}
.award { margin-top: .28rem; color: var(--or); }
.page-end {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(2.3rem, 6vw, 5rem);
  padding-block: .65rem 1.1rem;
  border-top: 1px solid var(--filet);
}

@media (max-width: 56rem) {
  .section-heading { display: block; }
  .theatre-credit { margin-top: .65rem; }
}
@media (max-width: 44rem) {
  .theatre-grid, .film-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .masthead-line { flex-direction: column; gap: .55rem; }
  .nav a { padding-block: .55rem .8rem; }
  .poster { height: auto; }
  .poster img {
    width: auto;
    height: auto;
    max-width: 84%;
    max-height: 26rem;
  }
  .featured .poster img { height: auto; max-width: 92%; max-height: 30rem; }
  .work h3, .film h3 { font-size: 2.2rem; }
  .work-text { margin-top: 1rem; padding-top: .7rem; }
}
@media (max-width: 24rem) {
  .masthead h1 { font-size: clamp(3rem, 13.5vw, 3.75rem); }
  .label { letter-spacing: .075em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
