@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root { --gap: .6em; --fg: #111; --bg: #fff; }

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

html { scrollbar-width: none; }

body {
  min-height: 100vh; display: flex; flex-direction: column;
  font: clamp(12px, .86vw, 20px)/1.35 "Inter", system-ui, sans-serif;
  color: var(--fg); background: var(--bg);
}

a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a[target="_blank"]::after { content: "\00a0↗"; font-size: .8em; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* E-mail assemblé par le CSS : absent du HTML, donc invisible pour les robots qui lisent le source */
.mail::before { content: attr(data-u) "@" attr(data-d); }

/* Menu : blanc inversé par mix-blend-mode, donc noir sur la page et lisible par-dessus images et vidéo ;
   la page courante reste pleine, les autres liens passent en gris */
header { position: fixed; top: var(--gap); left: var(--gap); right: var(--gap); z-index: 10; display: flex; gap: 1.2em; color: #fff; mix-blend-mode: difference; }
header a:nth-last-child(2) { margin-left: auto; }
header:has([aria-current]) a:not([aria-current], :hover) { opacity: .6; }

/* Pied de page : newsletter à gauche, mentions à droite ; passe à la ligne quand la place manque */
footer { position: relative; z-index: 3; margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1em 2em; padding: var(--gap); background: var(--bg); }
.reel footer { position: fixed; left: 0; right: 0; bottom: 0; }
.news { display: flex; align-items: center; gap: .6em; width: min(100%, 22em); border-bottom: 1px solid rgba(0, 0, 0, .25); }
.news:focus-within { border-color: var(--fg); }
footer input { flex: 1; min-width: 0; padding: .4em 0; border: 0; }
footer button { padding: 0; color: inherit; background: none; border-radius: 0; }
.fine { display: flex; flex-wrap: wrap; gap: .4em 1.2em; margin-left: auto; font-size: .85em; color: rgba(0, 0, 0, .4); }
.fine a:hover { color: var(--fg); }

/* Accueil : une petite image carrée au centre de l'écran */
.home main img { position: fixed; inset: 0; margin: auto; width: 36vmin; height: 36vmin; object-fit: cover; }

/* Index des œuvres : bande d'images, le défilement vertical la fait avancer */
.strip {
  list-style: none;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  padding: calc((100vh - min(55vh, 60vw) - 3em) / 2) var(--gap) 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.strip li{flex:none}.strip a{display:block}
.strip .thumb {
  flex: none;
  width: calc(min(55vh, 60vw) * 16 / 9);
  height: min(55vh, 60vw);
  overflow: hidden;
  margin-bottom: .4em;
}

.strip .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.strip span{display:flex;justify-content:space-between;gap:1em}
.strip time,.strip em{opacity:.6}
.strip em{display:block}

/* Page œuvre : cartel fixe à gauche, images qui défilent à droite */
.work { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: 8vw; padding: 0 0 0 var(--gap); }
.work > dl { position: sticky; bottom: var(--gap); align-self: end; margin-bottom: 3em; max-height: calc(100vh - 8em); overflow-y: auto; display: grid; grid-template-columns: 8em 1fr; gap: .8em 0; }
.work > dl dt { opacity: .6; }
.work > dl dd { max-width: 30em; }
.work > dl dd p + p { margin-top: .8em; }
.work h1 { font: inherit; }
.work a, .about p a { text-decoration: underline; text-underline-offset: .2em; }
.work a:hover, .about p a:hover { opacity: .6; }
.media { display: grid; }
.media img { display: block; width: 100%; }
.media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }

/* Grille photographique */

.media .image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2.5rem;
  align-items: start;
  margin: 2.5rem 0;
}

.media .image-grid figure {
  margin: 0;
  min-width: 0;
}

.media .image-grid a {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  line-height: 0;
  opacity: 1;
}

.media .image-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: grayscale(100%);
  opacity: 1;
  transition: filter .35s ease;
}

.media .image-grid a:hover,
.media .image-grid a:focus-visible {
  opacity: 1 !important;
}

.media .image-grid a:hover img,
.media .image-grid a:focus-visible img {
  filter: grayscale(0%);
  opacity: 1 !important;
}

.media .image-grid figcaption {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 0 0;
  opacity: 1;
  font-size: .82rem;
  line-height: 1.45;
}

.media .image-grid .caption-description {
  opacity: .85;
}

.media .image-grid .caption-meta {
  opacity: .5;
  font-size: .92em;
}

/* Lightbox */

.image-lightbox {
  position: fixed;
  width: min(92vw, 1400px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, .94);
}

.image-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: auto;
  filter: none;
  border-radius: 0;
}

.image-lightbox .lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 600px) {
  .media .image-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}

/* Accessibilité */

@media (prefers-reduced-motion: reduce) {
  .media .image-grid img {
    transition: none;
  }
}



.buttons { display: flex; flex-wrap: wrap; gap: .4em 1.2em; padding: 2em 0; }
/* « + n » : déplie la suite d'une ligne */
.more ~ p { display: none; }
.more { position: absolute; opacity: 0; width: 1px; height: 1px; }
.more:checked ~ p { display: block; }
.line { display: flex; align-items: center; gap: .6em; }
.line span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pill { display: block; flex: none; padding: 0 .6em; border: 1px solid; border-radius: 2em; opacity: .6; cursor: pointer; transition: opacity .2s, background-color .2s, color .2s; }
.pill::after { content: "+ " attr(data-n); }
.more:checked + .line .pill::after { content: "−"; }
.pill:hover { opacity: 1; background: var(--fg); color: var(--bg); }
.more:focus-visible + .line .pill { outline: 1px solid; outline-offset: 3px; }

/* Pages texte */
.text { padding: 4em var(--gap) 3em; }
.text p { max-width: 38em; }
.text h2:not(:first-child) { margin-top: 3em; }
.note { margin-top: 1.5em; opacity: .6; max-width: 28em; }
.note:empty { display: none; }
h2 { font-size: 1em; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 1.5em; }

/* About : bio à gauche, blocs courts à droite */
.about { display: grid; grid-template-columns: 34% 1fr; column-gap: 8%; padding: 8em var(--gap) 3em; }
.about p + p { margin-top: 1em; }
.about h2:not(:first-child) { margin-top: 3.5em; }

/* Formulaire */
form { display: grid; gap: 1.5em; width: min(100%, 28em); }
label { display: grid; gap: .2em; }
label span { opacity: .6; }
input, textarea { font: inherit; color: inherit; background: none; border-radius: 0; outline: 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .25); padding: .5em 0; transition: border-color .2s; }
input:focus, textarea:focus { border-color: var(--fg); }
textarea { min-height: 9em; resize: vertical; }
button { justify-self: start; font: inherit; color: var(--bg); background: var(--fg); border: 0; border-radius: 2em; padding: .5em 1.4em; cursor: pointer; }
button:hover { opacity: .8; }

@media (max-width: 700px) {
  body { font-size: 14px; }
  .about { grid-template-columns: 1fr; row-gap: 3em; }
  .work { grid-template-columns: 1fr; row-gap: 3em; padding: 5em 0 0; }
  .work > dl { position: static; max-height: none; margin: 0 var(--gap); }
  .buttons { padding: 2em var(--gap); }
  .grid { grid-template-columns: 1fr; }
}
