body {
  font-family: "Montserrat", sans-serif;
}

/* =========================
   HERO ARTWORK
========================= */

body {
  background: #000;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}


/* Hero */
.hero-artwork {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero-picture,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  object-fit: cover;
  object-position: center;
}

/* Text block desktop */
.hero-content {
  position: absolute;
  top: 43%;
  right: 15vw;
  transform: translateY(-50%);
  text-align: center;
  z-index: 2;
}

.hero-content h1 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1;
  font-weight: 400;
  color: #fff;
  margin-top: 50%;
}

.hero-content p {
  margin-top: 2.2rem;
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  letter-spacing: 1.15em;
  text-indent: 1.15em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1024px) {

  .hero-content {
    right: 8vw;
  }

}

/* =========================
   MOBILE PORTRAIT
========================= */

@media (max-width: 767px) and (orientation: portrait) {
 

  .hero-artwork {
    min-height: 100svh;
  }

  .hero-img {
    object-position: center top;
  }

  .hero-content {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 5.2rem;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-content p {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 1.05em;
    text-indent: 1.05em;
  }
}

/* =========================
   MOBILE PAYSAGE
========================= */

@media (max-width: 900px) and (orientation: landscape) {

  .hero-content {
    right: 10vw;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    margin-top: 1.2rem;
    font-size: 0.7rem;
  }
}


/* Intro Gallery */
.intro {
  width: 100%;
  margin: 10rem auto 20rem auto;
}
.intro p {
  text-align: center;
}

/* =========================
   IMMERSIVE ART GRID
========================= */

.works-section {
  min-height: 100svh;
  background: #000;
  color: #fff;
  padding: clamp(6rem, 10vw, 10rem) 4vw;
}

.works-intro {
  margin-bottom: clamp(4rem, 8vw, 8rem);
  text-align: center;
}

.works-intro p {
  font-size: 0.8rem;
  letter-spacing: 1.2em;
  text-indent: 1.2em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.2rem, 2.2vw, 3rem);
  row-gap: clamp(4rem, 8vw, 9rem);
  align-items: start;
}

.offset-down,
.offset-up {
  margin-top: 0;
}


.art-item {
  position: relative;
  overflow: hidden;
  background: #090909;
  cursor: pointer;
  min-height: 0;
}

.art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.85s ease,
    opacity 0.85s ease,
    filter 0.85s ease;
}

.art-item:hover img {
  transform: scale(1.035);
  opacity: 0.82;
  filter: contrast(1.05);
}

/* Formats A4 */
.art-item.portrait {
  aspect-ratio: 210 / 297;
}

.art-item.landscape {
  aspect-ratio: 297 / 210;
}

/* Largeurs */
.art-item.medium {
  grid-column: span 4;
}

.art-item.wide {
  grid-column: span 8;
}

.art-item.large {
  grid-column: span 6;
}

.art-item.full {
  grid-column: 2 / span 10;
}

/* Rythme vertical */
.offset-down {
  margin-top: 8vh;
}

.offset-up {
  margin-top: -3vh;
}

/* Placement plus éditorial */
.art-item:nth-child(1) {
  grid-column: 1 / span 4;
}

.art-item:nth-child(2) {
  grid-column: 5 / span 8;
}

.art-item:nth-child(3) {
  grid-column: 2 / span 4;
}

.art-item:nth-child(4) {
  grid-column: 7 / span 6;
  margin-top: 6vh;
}

.art-item:nth-child(5) {
  grid-column: 2 / span 4;
}

.art-item:nth-child(6) {
  grid-column: 7 / span 4;
}

.art-item:nth-child(7) {
  grid-column: 2 / span 10;
  margin-top: 10vh;
}

.art-item:nth-child(8) {
  grid-column: 1 / span 7;
  margin-top: 8vh;
}

.art-item:nth-child(9) {
  grid-column: 9 / span 4;
}

.art-item:nth-child(10) {
  grid-column: 4 / span 8;
  margin-top: 10vh;
}

.art-item:nth-child(11) {
  grid-column: 1 / span 4;
  margin-top: 0;
}

.art-item:nth-child(12) {
  grid-column: 7 / span 4;
  margin-top: 4vh;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(0, 0, 0, 0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88svh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 3100;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1024px) {
  .works-section {
    padding: 7rem 3vw;
  }

  .art-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .art-item:nth-child(n) {
    margin-top: 0;
  }

  .art-item.portrait {
    grid-column: span 4;
  }

  .art-item.landscape {
    grid-column: span 8;
  }

  .art-item:nth-child(1),
  .art-item:nth-child(3),
  .art-item:nth-child(5),
  .art-item:nth-child(9),
  .art-item:nth-child(11) {
    grid-column: 1 / span 4;
  }

  .art-item:nth-child(6),
  .art-item:nth-child(12) {
    grid-column: 5 / span 4;
  }

  .art-item:nth-child(2),
  .art-item:nth-child(4),
  .art-item:nth-child(7),
  .art-item:nth-child(8),
  .art-item:nth-child(10) {
    grid-column: 1 / span 8;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .works-section {
    padding: 6rem 1.1rem;
  }

  .works-intro {
    margin-bottom: 3rem;
  }

  .works-intro p {
    font-size: 0.7rem;
    letter-spacing: 0.9em;
    text-indent: 0.9em;
  }

  .art-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
  }

  .art-item:nth-child(n) {
    width: 100%;
    margin-top: 0;
  }

  .art-item:hover img {
    transform: none;
    opacity: 1;
    filter: none;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 84svh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 3.2rem;
    top: auto;
    bottom: 1.2rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1.2rem;
  }

  .lightbox-next {
    right: 1.2rem;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  padding: 8rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  line-height: 1;
}

.footer-text {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  font-weight: 300;
}

.footer-nav {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.45;
}

.footer-copyright {
  margin-top: 4rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.45;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .site-footer {
    padding: 6rem 1.2rem 2.5rem;
  }

  .footer-logo {
    font-size: 2.4rem;
  }

  .footer-text {
    margin-top: 1.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    line-height: 1.8;
  }

  .footer-nav {
    margin-top: 3rem;
    gap: 1.2rem;
  }

  .footer-nav a {
    font-size: 0.72rem;
  }

  .footer-copyright {
    margin-top: 3rem;
    font-size: 0.62rem;
  }
}