@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);
}
/* Accueil : plein écran réel sur mobile sans ascenseur */
body.home {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

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 */
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;
}

/* Page avec élément courant */
header:has([aria-current]) a:not([aria-current], :hover) {
  opacity: .6;
}

/* Page sans élément courant */
header:not(:has([aria-current])) a {
  opacity: .6;
}

/* FOOTER */
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);
}

/* Footer fixe sur les pages Reel */
.reel footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Éléments de gauche : copyright + mentions légales */
.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: .4em 1.2em;
  font-size: .85em;
  color: rgba(0, 0, 0, .4);
}

/* Newsletter (uniquement sur About) */
.news {
  display: flex;
  align-items: center;
  gap: .8em;
  width: min(100%, 40em);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}

.news input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.news:focus-within {
  border-color: var(--fg);
}

/* Champs de formulaire */
footer input {
  flex: 1;
  min-width: 0;
  padding: .4em 0;
  border: 0;
}

/* Bouton d'envoi */
footer button {
  padding: 0;
  color: inherit;
  background: none;
  border-radius: 0;
}

/* Zone de droite : changement de langue */
.fine {
  display: flex;
  flex-wrap: wrap;
  gap: .4em 1.2em;
  margin-left: auto;
  font-size: .85em;
  color: rgba(0, 0, 0, .4);
}

/* Hover */
.fine a:hover,
.footer-left a:hover {
  color: var(--fg);
}

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

/* Index des œuvres : grille galerie */
.works-index {
  width: 100%;
  padding: 5.5em var(--gap) 5em;
}

.works-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2.2rem);
  row-gap: clamp(2.2rem, 3.8vw, 3.8rem);
}

.works-grid li {
  min-width: 0;
}

.works-grid a {
  display: block;
}

/* Passe-partout gris mur de galerie autour du visuel 16:9 */
.works-grid .work-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: clamp(1.1rem, 2.2vw, 2.2rem);
  background: linear-gradient(180deg, #e7e7e6 0%, #dcdcdb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color .3s ease;
}

.works-grid .work-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .1);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

.works-grid a:hover .work-frame img,
.works-grid a:focus-visible .work-frame img {
  transform: scale(1.025);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24), 0 4px 10px rgba(0, 0, 0, .12);
}

/* Badge "new" en haut à droite */
.works-grid .work-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  padding: .22em .6em;
  background: #fff;
  color: var(--fg);
  font-size: .78em;
  line-height: 1.2;
  letter-spacing: .02em;
}

/* Légende sous l'encadrement */
.works-grid .work-meta {
  margin-top: .75em;
  display: flex;
  flex-direction: column;
  gap: .15em;
}

.works-grid .work-name {
  text-transform: uppercase;
  font-size: .88em;
  letter-spacing: .04em;
}

.works-grid .work-tag {
  font-style: normal;
  font-size: .84em;
  opacity: .55;
}

@media (max-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Page œuvre : médias qui défilent à gauche, cartel fixe à droite, ensemble centré */
.work {
  width: min(100% - 2 * var(--gap), 78rem);
  margin: 0 auto;
  padding: 5.5em 0 4em;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.media {
  min-width: 0;
  display: grid;
  gap: 1.5em;
}

.media img {
  display: block;
  width: 100%;
  height: auto;
}

.media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  align-items: start;
}

/* Cartel fixe à droite */
.cartel {
  position: sticky;
  top: 5.5em;
  min-width: 0;
  max-height: calc(100vh - 7em);
  overflow-y: auto;
  scrollbar-width: none;
  padding-top: 1.5em;
}

.cartel dl {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: .65em 1em;
  align-items: baseline;
}

.cartel .work-title {
  grid-column: 1 / -1;
  margin-bottom: 1em;
}

.work h1 {
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cartel dt {
  opacity: .55;
  text-transform: uppercase;
  font-size: .88em;
  letter-spacing: .04em;
}

.cartel dd {
  min-width: 0;
  max-width: 34em;
}
.cartel dd span:not(.line span) {
  opacity: .25;
}

.cartel .line {
  min-width: 0;
}

/* Description séparée par un filet supérieur */
.cartel dt:has(+ .work-desc),
.cartel .work-desc {
  grid-column: 1 / -1;
}

.cartel dt:has(+ .work-desc) {
  margin-top: 1.4em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(0, 0, 0, .15);
}

.cartel .work-desc p + p {
  margin-top: .9em;
}

/* Crédits complémentaires en bas de cartel : même grille <dl>/<dt>/<dd> que le haut */
.cartel .cartel-credits {
  margin-top: 1.4em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(0, 0, 0, .15);
}

.work a,
.about p a ,
.text a{
  text-decoration: underline;
  text-underline-offset: .2em;
}

.work a:hover,
.about p a:hover,
.text a:hover{
  opacity: .6;
}

.work .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .6em 1.4em;
  margin-top: 1.8em;
  padding: 1.4em 0 0;
  border-top: 1px solid rgba(0, 0, 0, .15);
}

/* 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,
  .works-grid .work-frame img {
    transition: none;
  }
}

/* « + 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; }
    .home main img,
    .home main video {
      width: 58vmin;
      height: 58vmin;
    }
  .works-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; row-gap: 3em; }
  .work {
    width: calc(100% - 2 * var(--gap));
    grid-template-columns: 1fr;
    row-gap: 2.5em;
    padding: 4.5em 0 3em;
  }
  .cartel {
    position: static;
    max-height: none;
    padding-top: 0;
  }
  .grid { grid-template-columns: 1fr; }
}