:root {
  --bg: #fff;
  --fg: #000;
  --accent: #ff4500;
  --gutter: 32px;
  --fs-big: clamp(28px, 3.4vw, 46px);
  --fs-text: clamp(17px, 1.45vw, 21px);
  --fs-huge: clamp(24px, 3.2vw, 54px);     --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink, var(--fg));
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;             }

html.page-project, body.project { background: var(--pp-bg); }

a { color: inherit; text-decoration: none; }
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}

@view-transition { navigation: auto; }

/* En-tête */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px var(--gutter);
  pointer-events: none;
  font-size: var(--fs-big);
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-header a { pointer-events: auto; }
.brand { white-space: nowrap; margin: 0; font-size: inherit; font-weight: 400; }
.brand sup { font-size: 0.5em; margin-left: 0.25em; vertical-align: 0.95em; }
.nav { display: flex; gap: 1.1em; }
.nav a:hover, .brand a:hover { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

/* Filtres */
.filters {
  padding: 120px var(--gutter) 0;
  margin-bottom: 6vh;
}
.filters-head { display: block; text-align: left; font-size: calc(var(--fs-big) * .5); line-height: 1.3; }   .filters-head::after { content: ' +'; }
.filters-head[aria-expanded="true"]::after { content: ' −'; }
.filters-head:hover { color: var(--accent); }
.filters-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s cubic-bezier(.6, 0, .2, 1); }
.js .filters-body { grid-template-rows: 0fr; }           .js .filters.open .filters-body { grid-template-rows: 1fr; }
.filters-body > div { overflow: hidden; }
.filters-list { margin: 0; padding-top: .3em; max-width: 34em; font-size: var(--fs-big); line-height: 1.1; letter-spacing: -0.01em; }
.js .filters-list { opacity: 0; transition: opacity .3s; }
.js .filters.open .filters-list { opacity: 1; transition: opacity .4s .15s; }
.filters-list a, .filters-list .sep { transition: opacity .3s; }
.filters-list a { opacity: .38; white-space: nowrap; }
.filters-list a:hover, .filters-list a[aria-current="true"] { opacity: 1; }
.filters-list .sep { opacity: .38; }
.filters-list sup { font-size: 0.5em; margin-left: 0.15em; vertical-align: 0.95em; font-variant-numeric: tabular-nums; }

/* Grille */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);     gap: var(--gutter);
  padding: 0 var(--gutter) var(--gutter);     min-height: 60vh;
  align-items: start;
}
.tile { display: block; }
.tile[hidden] { display: none !important; }
.tile-frame {
  position: relative;
  display: block;
  aspect-ratio: 1400 / 1186;
  overflow: hidden;
  background-color: var(--tile-ink, var(--fg));
}
.tile-frame picture { display: contents; }
.tile-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  -webkit-user-drag: none;
}
.tile.ready .tile-frame img { opacity: 1; }
.tile.ready .tile-frame { background-color: transparent; transition: background-color 0s .6s; }
.tile-over { display: none; }
@media (hover: hover) {
  .tile-over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--tile-ink, var(--fg));
    color: var(--tile-light, var(--bg));
    opacity: 0;
    transition: opacity .25s ease;
  }
  .tile:hover .tile-over { opacity: 1; }
}
.tile-over-title {
  font-size: var(--fs-big);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.tile-over-title sup { font-size: 0.5em; margin-left: 0.25em; vertical-align: 0.95em; }
.js .tile { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .tile.in { opacity: 1; transform: none; }

/* Page projet */
.project-page { display: block; overflow-x: clip; }
.pp-hero { height: 100vh; }
.pp-hero-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-title, .pp-arrows {
  z-index: 2;
  font-size: var(--fs-big);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: opacity .3s;
}
.pp-arrows { position: fixed; bottom: 22px; right: var(--gutter); display: flex; gap: .4em; }
.pp-title {
  position: sticky;
  bottom: calc(22px - .22em);     margin: 18vh 5em calc(22px - .22em) var(--gutter);
  padding-bottom: .22em;          white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-arrow-label {
  font-size: 0.5em;                   white-space: nowrap;
  align-self: flex-start;
  transform: translateY(-.5em);
  margin-right: .3em;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.pp-arrow-label.on { opacity: 1; }
.project-page.crowded .pp-title { opacity: 0; }
.pp-arrows a:hover { opacity: .5; }
.pp-body { padding: 0 var(--gutter); }
.pp-intro {
  min-height: 72vh;
  box-sizing: border-box;
  padding: 26px 0 90px;
  display: flex;
  flex-direction: column;
}
.pp-meta {
    display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: .4em var(--gutter);
  margin: 9vh 0 0;
  font-size: var(--fs-text);
  line-height: 1.25;
}
.pp-meta > div { min-width: 0; padding-right: 1.5em; }   .pp-meta > div:last-child { padding-right: 0; }
.pp-meta dt { opacity: .55; }
.pp-meta dd { margin: 0; }
.meta-credits a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.pp-text {
  font-size: var(--fs-big);
  line-height: 1.08;
  letter-spacing: -0.01em;
  hyphens: manual;
  -webkit-hyphens: manual;
  max-width: 30em;
}
.pp-text p { margin: 0 0 .5em; }
.pp-text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.pp-text a:hover { opacity: .55; }
.pp-media { display: flex; flex-direction: column; gap: 16px; margin: 0 calc(var(--gutter) * -1 + 16px); }
.pp-frame {
  display: block;
  width: min(100%, calc((100vh - 32px) * var(--ar, 1.5)));
  aspect-ratio: var(--ar, 1.5);
  margin: 0 auto;
  background-color: var(--ink, var(--fg));
  transition: background-color 0s .6s;
}
.pp-frame picture { display: contents; }
.pp-frame img, .pp-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.pp-frame.ready { background-color: transparent; }
.pp-frame.ready img, .pp-frame.ready video { opacity: 1; }

@media (min-width: 760px) and (hover: hover) and (min-aspect-ratio: 4/5) {
  html.page-project { scroll-snap-type: y proximity; }
  .pp-hero { scroll-snap-align: start; }
  .pp-frame { scroll-snap-align: center; }
  .pp-end { scroll-snap-align: end; scroll-margin-bottom: var(--gutter); }   }

.pp-end {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 var(--gutter) var(--gutter);     border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.pp-end a { display: block; padding: 22px 0 26px; }
.pp-end a:last-child { text-align: right; border-left: 1px solid currentColor; }
.pp-end-label { display: block; font-size: var(--fs-text); margin-bottom: .5em; }
.pp-end-name {
  display: block;
  font-size: var(--fs-big);            line-height: 1.05;
  letter-spacing: -0.01em;
  transition: opacity .2s;
}
.pp-end a:hover .pp-end-name { opacity: .55; }
.pp-end a:first-child { padding-right: var(--gutter); }
.pp-end a:last-child { padding-left: var(--gutter); }
.project-page.at-end .pp-arrows { opacity: 0; pointer-events: none; }

/* Pages info et contact */
.info-inner {
  padding: 92px var(--gutter) 60px;
  min-height: 100vh;
  box-sizing: border-box;
}
.info-intro {
  font-size: var(--fs-huge);
  line-height: 1.02;
  letter-spacing: -0.02em;
  hyphens: manual;
  -webkit-hyphens: manual;
  margin: 28px 0 0;   }
.accordion { margin-top: 16vh; }
.acc h3 { margin: 0; font-size: inherit; font-weight: 400; }
.acc-head {
  display: block;
  width: 100%;
  text-align: left;
  font-size: var(--fs-huge);      line-height: 1.02;
  letter-spacing: -0.02em;
  padding: .12em 0;
  transition: opacity .3s;
}
.accordion:has(.acc.open) .acc:not(.open) .acc-head { opacity: .38; }
.accordion:has(.acc.open) .acc:not(.open) .acc-head:hover { opacity: 1; }
.acc-head:hover { opacity: 1; }
.acc-head::after { content: ' +'; opacity: 0; transition: opacity .2s; }
.acc-head:hover::after { opacity: 1; }
.acc-head[aria-expanded="true"]::after { content: ' −'; opacity: 1; }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.6, 0, .2, 1);
}
.acc-body > div { overflow: hidden; }
.acc.open .acc-body { grid-template-rows: 1fr; }
.rows {
  list-style: none;
  margin: .2em 0 1em;
  padding: 0;
}
.rows li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 0 var(--gutter);
  padding: .35em 0 .45em;
  border-top: 1px solid currentColor;
}
.rows li:last-child { border-bottom: 1px solid currentColor; }
.rows-full li { grid-template-columns: 1fr; }   .r-year {
  font-size: var(--fs-text);
  padding-top: .5em;
  font-variant-numeric: tabular-nums;
}
.r-name {
  display: block;
  font-size: var(--fs-huge);
  line-height: 1.02;
  letter-spacing: -0.02em;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.r-name sup { font-size: 0.32em; letter-spacing: 0; margin-left: .3em; vertical-align: 1.9em; }
.r-name sup sup { font-size: .75em; margin: 0; vertical-align: .45em; }
.r-role { display: block; font-size: var(--fs-text); line-height: 1.25; margin-top: .4em; max-width: 34em; }
.rows a { display: inline; }
.rows a:hover { color: var(--accent); }
.r-role sup { font-size: .7em; margin-left: .15em; vertical-align: .55em; line-height: 0; }
.r-role a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.r-name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .1em; }
.acc-list {
    font-size: var(--fs-huge);
  line-height: 1.02;
  letter-spacing: -0.02em;
  hyphens: manual;
  -webkit-hyphens: manual;
  margin: 0 0 .5em;
}
.contact-rows { margin-top: 12vh; }
.contact-rows .r-name a:hover { color: var(--accent); }
.acc-text { font-size: var(--fs-big); line-height: 1.1; letter-spacing: -0.01em; max-width: 24em; margin: .2em 0 1em; }
.legal {
  margin: .2em 0 1em;
  font-size: var(--fs-big);            line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 24em;
}
.legal p { margin: 0 0 .6em; }
.legal a:hover { color: var(--accent); }
.link-home { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .1em; }
.link-home:hover { color: var(--accent); }
.nh { hyphens: none; -webkit-hyphens: none; }

/* Mobile */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header { padding: 14px var(--gutter); font-size: 22px; }
    .pp-arrows { display: none; }
  .pp-end { display: block; margin: 0 var(--gutter) var(--gutter); border: 0; }
  .pp-end a { padding: 14px 0 16px; border-top: 1px solid currentColor; }
  .pp-end a:first-child { padding-right: 0; }
  .pp-end a:last-child { border-left: 0; padding-left: 0; border-bottom: 1px solid currentColor; text-align: right; }
  .pp-end-label { font-size: 15px; margin-bottom: .35em; }
  .pp-end-name { font-size: 22px; }
    .pp-title { font-size: 22px; white-space: normal; overflow: visible; line-height: 1.05; padding-bottom: 0; bottom: 14px; margin: 48px var(--gutter) 14px; }
  .pp-hero { height: auto; }
  .pp-meta { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 1em; margin-top: 6vh; }
  .meta-credits { grid-column: 1 / -1; }
  .pp-hero-img { height: auto; max-height: 100vh; }
  .nav { gap: .8em; }
    .brand sup { display: block; margin: .45em 0 0; vertical-align: baseline; line-height: 1; }
  .info-inner { padding-top: 64px; }
  .rows li { grid-template-columns: 1fr; }
  .r-year { padding-top: .2em; }
  .accordion { margin-top: 12vh; }
  .grid { grid-template-columns: 1fr; }
  .filters { padding-top: 84px; margin-bottom: 5vh; }
  .filters-head { font-size: 11px; }
  .filters-list { font-size: 22px; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .js .tile { transition: opacity .3s; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

/* Curseur */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 6px solid var(--hover-ink, var(--ink, var(--fg)));     background: var(--hover-ink, var(--ink, var(--fg)));     pointer-events: none;
  z-index: 1000;
  opacity: 0;
  will-change: transform;
  transition: width .3s cubic-bezier(.2, .8, .2, 1), height .3s cubic-bezier(.2, .8, .2, 1),
              margin .3s cubic-bezier(.2, .8, .2, 1), opacity .25s, background-color .25s, border-color .7s ease;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: transparent; }   .cursor.down { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.cursor.big.down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

.pp-text p, .info-intro, .acc-text, .acc-list, .legal p, .r-role, .pp-meta dd { text-wrap: pretty; }
.pp-title, .pp-end-name, .r-name, .acc-head, .tile-over-title { text-wrap: balance; }

::-moz-selection { background: orangered; }
::selection { background: orangered; }
