:root {
  --white: #ffffff;
  --off: #f8f7f5;
  --black: #0f0f0f;
  --grey: #888;
  --grey-light: #ccc;
  --serif: 'Cormorant', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
  --nav-w: 200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── LAYOUT ── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── NAV GAUCHE ── */
aside {
  width: var(--nav-w);
  flex-shrink: 0;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 10;
  background: var(--white);
}

.site-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: none;
  display: block;
  margin-bottom: 2.5rem;
  cursor: pointer;
}

nav { display: flex; flex-direction: column; gap: 0; }

.nav-section { margin-bottom: 0.3rem; }

.nav-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 400;
  padding: 0.25rem 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  text-align: left;
  width: 100%;
  transition: color 0.2s;
}
.nav-label:hover { color: var(--grey); }
.nav-label--link { text-decoration: none; display: block; }
.nav-label.active { color: var(--black); }

.nav-sep {
  height: 1px;
  background: var(--grey-light);
  margin: 0.8rem 0;
  opacity: 0.4;
}

.nav-bottom {
  margin-top: auto;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
}

/* ── MAIN ── */
main {
  margin-left: var(--nav-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page { flex: 1; display: flex; flex-direction: column; }

/* ── GALERIE ── */
.galerie {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 4rem 5rem;
  gap: 0;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image principale */
.img-main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.img-main img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: zoom-in;
}
.img-main img.loaded { opacity: 1; }

.img-caption {
  margin-top: 1.2rem;
  text-align: center;
}
.img-caption .serie-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--black);
  display: block;
}
.img-caption .serie-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--grey);
  display: block;
  margin-top: 0.2rem;
}

/* Navigation images */
.img-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.img-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.img-nav button:hover { color: var(--black); }
.img-nav .img-counter {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--grey-light);
}

/* Lien achat */
.buy-line { margin-top: 1.8rem; }
.buy-line a {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.buy-line a:hover { color: var(--black); border-color: var(--black); }

/* Thumbnails */
.thumbs {
  display: flex;
  gap: 6px;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 860px;
}
.thumb {
  width: 60px;
  height: 60px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.thumb.active, .thumb:hover { opacity: 1; }
.thumb:focus-visible { opacity: 1; outline: 1px solid var(--black); outline-offset: 2px; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texte intention */
.intention {
  max-width: 480px;
  margin: 4rem auto 0;
  text-align: center;
}
.intention p {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--grey);
}
.intention em { font-style: italic; color: var(--black); }

/* Texte de fond des séries */
.serie-texte {
  max-width: 620px;
  margin: 5rem auto 1rem;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 3rem;
}
.serie-texte h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 2.8rem 0 1.2rem;
}
.serie-texte h2:first-child { margin-top: 0; }
.serie-texte p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey);
  margin-bottom: 1.2rem;
}
.serie-texte em { font-style: italic; color: var(--black); }

.nav-lang { color: var(--grey) !important; }

/* ── BIO ── */
#bio {
  display: flex;
  flex: 1;
  flex-direction: row;
  padding: 3.5rem 4rem;
  gap: 5rem;
  align-items: flex-start;
}

.contact-inner {
  display: flex;
  flex: 1;
  flex-direction: row;
  padding: 3.5rem 4rem;
  gap: 5rem;
  align-items: flex-start;
}

.bio-img {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 3.5rem;
}
.bio-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

.bio-text-block { max-width: 520px; }

.eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 1.8rem;
}

.bio-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 2.5rem;
}

.bio-p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey);
  margin-bottom: 1.4rem;
}
.bio-p em { font-style: italic; color: var(--black); }
.bio-list { margin-bottom: 0.4rem; color: var(--black); }

.bio-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--black);
  border-left: 1px solid var(--grey-light);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

.facts { margin-top: 3rem; }
.fact {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid #eee;
  gap: 1rem;
}
.fact:last-child { border-bottom: 1px solid #eee; }
.fact-k {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
  flex-shrink: 0;
}
.fact-v {
  font-size: 0.8rem;
  color: var(--grey);
  text-align: right;
}
.fact-link {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.fact-link:hover { color: var(--black); }

/* ── CONTACT ── */
.contact-left { max-width: 360px; }
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1.8rem;
}
.contact-body {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 2.5rem;
}
.c-line {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: var(--grey);
}
.c-line:last-child { border-bottom: 1px solid #eee; }
.c-line a { color: var(--grey); text-decoration: none; transition: color 0.2s; }
.c-line a:hover { color: var(--black); }

.contact-form { max-width: 400px; padding-top: 0.5rem; }
.field { margin-bottom: 1.8rem; }
.field label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 0.6rem;
}
.field input,
.field textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--black); }
.field textarea { min-height: 90px; resize: none; }

.btn-send {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.btn-send:hover { color: var(--black); }
.btn-circle {
  width: 34px; height: 34px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.btn-send:hover .btn-circle { border-color: var(--black); }

#form-status {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--grey);
  display: none;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
.lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  display: block;
}

.nav-label:focus-visible,
.img-nav button:focus-visible,
.btn-send:focus-visible,
.buy-line a:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 2px;
}

/* ── FOOTER ── */
.page-footer {
  margin-top: auto;
  padding: 1.5rem 4rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
}

/* Burger caché sur desktop */
.burger { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  :root { --nav-w: 160px; }
  .galerie { padding: 2rem 1.5rem 4rem; }
  #bio, .contact-inner { flex-direction: column; padding: 2rem 1.5rem; }
  .bio-img { width: 100%; position: static; }
}

/* ── MOBILE PORTRAIT ── */
@media (max-width: 600px) {
  :root { --nav-w: 0px; }

  body { font-size: 13px; }

  .layout { flex-direction: column; }

  aside {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 50;
    background: var(--white);
    padding: 0;
    flex-direction: column;
    border-bottom: 1px solid #eee;
  }

  .aside-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
  }

  .site-name {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.1;
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }
  .burger span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--black);
    transition: all 0.25s;
  }
  .burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.2rem 1rem;
    border-top: 1px solid #eee;
  }
  nav.open { display: flex; }

  .nav-label {
    font-size: 0.65rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-label:last-child { border-bottom: none; }
  .nav-sep { margin: 0.3rem 0; }
  .nav-bottom { display: none; }

  main { margin-left: 0; }

  .galerie {
    padding: 1.2rem 1rem 5rem;
    align-items: center;
  }

  .img-main { max-width: 100%; }
  .img-main img { width: 100%; }

  .img-caption { margin-top: 0.8rem; }
  .img-caption .serie-name { font-size: 0.95rem; }
  .img-caption .serie-date { font-size: 0.78rem; }

  .thumbs { gap: 4px; margin-top: 1.2rem; }
  .thumb { width: 48px; height: 48px; }

  .intention { margin-top: 2.5rem; padding: 0 0.5rem; }
  .intention p { font-size: 0.9rem; line-height: 1.8; }

  #bio,
  .contact-inner {
    flex-direction: column !important;
    padding: 1.5rem 1rem 3rem !important;
    gap: 2rem !important;
  }
  .bio-img { width: 100%; position: static; max-width: 280px; margin: 0 auto; }
  .bio-name { font-size: 2.2rem; }
  .bio-p { font-size: 0.95rem; }
  .bio-quote { font-size: 1rem; padding-left: 1rem; }

  .contact-title { font-size: 1.8rem; }
  .contact-body { font-size: 0.9rem; }

  .page-footer { padding: 1rem; }
}
