
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Playfair+Display:wght@400;500&display=swap');

:root {
  --paper: #f3f0e8;
  --ink: #262622;
  --muted: #77756d;
  --line: #d8d3c8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* EN-TÊTE ET NAVIGATION */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6%;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.navigation {
  display: flex;
  gap: 28px;
}

.navigation a,
.site-footer a {
  transition: opacity 0.2s ease;
}

.navigation a:hover,
.site-footer a:hover {
  opacity: 0.55;
}

/* INTRODUCTION */

.introduction {
  max-width: 900px;
  margin: 0 auto;
  padding: 105px 24px 65px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 25px;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.98;
}

.intro-text {
  max-width: 390px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

/* PHOTO D'ACCUEIL — CONSERVÉE */

.featured {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: transparent;
}

.featured img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  margin: 0;
}

.image-caption {
  margin: 12px 6% 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

/* GALERIE DES SIX SÉRIES */

.series-section {
  padding: 125px 8% 110px;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

/* CARTES ET PHOTOS DE COUVERTURE */

.series-card {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #e7e2d8;
}

.series-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e2d8;
}

.series-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  filter: blur(0.35px);
  transform: scale(1.01);
  transition:
    transform 0.6s ease,
    opacity 0.4s ease,
    filter 0.4s ease;
}

/* VOILE SUR LES PHOTOS */

.series-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 24, 21, 0.24);
  transition: background 0.4s ease;
}

/* TITRES SUPERPOSÉS */

.series-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #fffdf7;
  text-align: center;
  pointer-events: none;
}

.series-overlay h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.series-arrow {
  align-self: center;
  font-size: 17px;
  opacity: 0.85;
}

/* SURVOL SUR ORDINATEUR */

@media (hover: hover) {
  .series-card:hover .series-cover img {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.045);
  }

  .series-card:hover .series-cover::after {
    background: rgba(25, 24, 21, 0.1);
  }
}

/* À PROPOS */

.about-section {
  padding: 90px 24px 110px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.about-section h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.about-section > p:last-child {
  max-width: 450px;
  margin: 0 auto;
  color: var(--muted);
}

/* PIED DE PAGE */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer .copyright {
  margin-top: 22px;
  font-size: 10px;
}

/* ADAPTATION DE L'ACCUEIL AUX TÉLÉPHONES */

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    padding: 22px 18px;
  }

  .navigation {
    gap: 22px;
  }

  .introduction {
    padding: 75px 20px 45px;
  }

  .featured {
    width: 100%;
    max-width: none;
  }

  .featured img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    background: transparent;
  }

  .image-caption {
    margin-right: 5%;
    margin-left: 5%;
  }

  .series-section {
    padding: 85px 6% 75px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .series-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .series-cover {
    aspect-ratio: 4 / 3;
  }

  .series-cover img {
    opacity: 0.84;
    filter: none;
  }

  .series-cover::after {
    background: rgba(25, 24, 21, 0.22);
  }

  .series-overlay {
    padding: 20px;
  }

  .series-overlay h3 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .about-section {
    padding: 75px 22px;
  }
}

/* PAGES DE SÉRIES PHOTOGRAPHIQUES */

.project-page {
  padding: 0 0 55px;
}

.project-intro {
  max-width: 850px;
  margin: 0 auto;
  padding: 85px 24px 35px;
  text-align: center;
}

.project-intro h1 {
  font-size: clamp(42px, 7vw, 82px);
}

.project-description {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
}

/* ANCIEN FORMAT DE GALERIE */

.project-image {
  margin: 0 auto 24px;
  padding: 0;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-image-wide {
  width: 86%;
  max-width: 1100px;
}

.project-image-narrow {
  width: 62%;
  max-width: 720px;
}

/* LIEN DE RETOUR */

.project-back {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
}

.project-back a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

/* GALERIES ÉDITORIALES */

.editorial-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 45px;
  padding: 0 5%;
}

.editorial-photo {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.editorial-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.photo-opening {
  width: 86%;
  margin: 0 auto;
}

.editorial-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 16px;
  width: 86%;
  margin: 0 auto;
}

.pair-first {
  width: 86%;
  margin: 0 auto;
}

.photo-portrait,
.photo-landscape {
  width: 100%;
  margin: 0;
}

.photo-offset {
  width: 68%;
  margin: 0 auto;
}

/* GALERIES SUR MOBILE */

@media (max-width: 700px) {
  .project-page {
    padding-bottom: 35px;
  }

  .project-intro {
    padding: 65px 20px 28px;
  }

  .project-image {
    margin-bottom: 14px;
  }

  .project-image-wide {
    width: 92%;
  }

  .project-image-narrow {
    width: 78%;
  }

  .editorial-gallery {
    gap: 14px;
    padding: 0 4%;
    margin-bottom: 28px;
  }

  .photo-opening {
    width: 96%;
  }

  .editorial-pair {
    width: 96%;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
  }

  .pair-first {
    width: 96%;
  }

  .photo-offset {
    width: 78%;
  }

  .project-page .project-back {
    margin-top: 20px;
  }
}

/* =========================================
   VISIONNEUSE PLEIN ÉCRAN
   ========================================= */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(18, 18, 17, 0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

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

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 0;
  min-height: 0;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 115px);
  object-fit: contain;
  cursor: default;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.lightbox-description {
  text-align: left;
}

.lightbox-counter {
  flex-shrink: 0;
  white-space: nowrap;
}

.lightbox button {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.lightbox .lightbox-close {
  top: 18px;
  right: 22px;
  font-size: 34px;
}

.lightbox .lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox button[hidden] {
  display: none;
}

/* VISIONNEUSE SUR MOBILE */

@media (max-width: 700px) {
  .lightbox {
    padding: 55px 12px 35px;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 125px);
  }

  .lightbox .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox .lightbox-prev {
    left: 4px;
  }

  .lightbox .lightbox-next {
    right: 4px;
  }

  .lightbox button {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .lightbox-caption {
    padding: 0 4px;
    font-size: 10px;
  }
}
