/* ================================
   VARIABLES & RESET
================================ */
:root {
  --cream:       #f5f2ed;
  --white:       #ffffff;
  --ink:         #1a1a1a;
  --ink-light:   #5a5a5a;
  --blue-tint:   rgba(30, 60, 110, 0.18);
  --shadow:      rgba(0, 0, 0, 0.15);
  --shadow-deep: rgba(0, 0, 0, 0.35);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Jost', sans-serif;
}

/* Accessible mais invisible : lu par les moteurs et assistants vocaux, non affiché */
.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;
}

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

html, body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

body.home {
  height: 100vh;
  overflow: hidden;
}

/* About page — scroll container interne, pas de scrollbar sur la fenêtre */
.page-scroll {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  z-index: 1;
}

/* ================================
   HEADER
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: linear-gradient(to bottom, var(--cream) 70%, transparent);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: all;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-light);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-light);
}

.site-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.title-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.title-sub {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 2px;
}

/* ================================
   VIEWPORT CLIP
================================ */
.viewport-clip {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  z-index: 1;
  background: var(--cream);
}

.viewport-clip.is-dragging {
  cursor: grabbing;
}

.viewport-clip.is-dragging .photo-card {
  pointer-events: none;
}

/* ================================
   CANVAS — scattered photos
================================ */
.canvas {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  contain: layout;
}

/* ================================
   PHOTO CARD
================================ */
.photo-card {
  position: absolute;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.photo-card.is-hovered {
  transform: rotate(calc(var(--rot, 0deg) * 0.25)) translateY(-14px) scale(1.06);
  z-index: 100 !important;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 18px var(--shadow), 0 1px 3px rgba(0,0,0,0.08);
}

.photo-card.is-hovered .photo-frame {
  box-shadow: 0 22px 65px var(--shadow-deep);
}

.photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cfc7 100%);
}

.photo-img.is-loaded {
  opacity: 1;
}

.photo-img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4de 0%, #d4cfc7 100%);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.82);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.photo-card.is-hovered .photo-overlay {
  opacity: 0;
}

/* Caption overlay on hover */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card.is-hovered .photo-caption {
  opacity: 1;
}

/* ================================
   LIGHTBOX
================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(245, 242, 237, 0.97);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  z-index: 10;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--ink-light);
  cursor: pointer;
  letter-spacing: 0;
  padding: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-body);
  font-weight: 200;
}

.lightbox-close:hover {
  color: var(--ink);
  transform: rotate(90deg);
}

.lightbox-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.25, 0.9, 0.25, 1);
  will-change: transform;
}

.lightbox-slide.slide-center { transform: translateX(0); }
.lightbox-slide.slide-left   { transform: translateX(-100%); }
.lightbox-slide.slide-right  { transform: translateX(100%); }
.lightbox-slide.no-anim      { transition: none !important; }

.lightbox-inner {
  display: flex;
  align-items: stretch;
  max-width: 1240px;
  width: 94%;
  height: 85vh;
  max-height: 90vh;
}

.lightbox-photo-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lightbox-img.is-loaded {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--ink-light);
  cursor: pointer;
  padding: 20px 18px;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-nav:hover {
  color: var(--ink);
  transform: translateY(-50%) scale(1.15);
}

.lightbox-info {
  width: 310px;
  flex-shrink: 0;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow-y: auto;
}

.info-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: rgba(0,0,0,0.1);
  line-height: 1;
  margin-bottom: 4px;
}

.info-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--ink);
}

.info-location {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.info-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-light);
}

.info-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-top: 8px;
}

.info-engagement {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(26, 26, 26, 0.12);
}

.info-engagement:empty {
  display: none;
}

.info-line {
  width: 28px;
  height: 1px;
  background: var(--ink);
  opacity: 0.2;
  margin: 12px 0;
}

.info-credit {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}

/* ================================
   GROUP LABELS — flottants sur le canvas
================================ */
.group-label {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.72);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  background: rgba(245, 242, 237, 0.88);
  padding: 4px 12px;
}

/* ================================
   RESET VIEW BUTTON
================================ */
.canvas-reset {
  position: fixed;
  bottom: 54px;
  right: 40px;
  z-index: 99;
  background: rgba(245, 242, 237, 0.88);
  border: 1px solid rgba(26, 26, 26, 0.2);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.canvas-reset:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

@media (max-width: 768px) {
  .canvas-reset {
    right: 20px;
    bottom: 50px;
    padding: 6px 12px;
  }
}

/* ================================
   EXPLORE HINT
================================ */
.explore-hint {
  position: fixed;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  z-index: 99;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.explore-hint.hidden {
  opacity: 0;
}

.explore-arrow {
  animation: drift 1.6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

/* ================================
   ABOUT PAGE
================================ */
.about-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
}

.about-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  max-width: 760px;
  width: 100%;
}

.about-photo-wrap {
  flex-shrink: 0;
}

.about-photo-placeholder {
  width: 220px;
  height: 290px;
  background: linear-gradient(160deg, #c8d8e8, #7a9ab8);
  box-shadow: 0 8px 40px var(--shadow);
  filter: grayscale(30%) sepia(20%) hue-rotate(185deg) saturate(120%) brightness(0.9);
}

.about-photo {
  width: 220px;
  height: 290px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 40px var(--shadow);
  display: block;
}

.about-text {
  padding-top: 8px;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 22px;
  color: var(--ink);
}

.about-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: 14px;
}

/* ================================
   BIO FICHE — section structurée lisible par les IA (DL/DT/DD)
================================ */
.bio-fiche {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.bio-fiche-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.bio-fiche-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.55;
}

.bio-fiche-list dt {
  font-weight: 400;
  color: var(--ink-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 1px;
}

.bio-fiche-list dd {
  color: var(--ink);
  font-weight: 300;
  margin: 0;
}

.bio-fiche-list dd + dd {
  grid-column: 2;
  margin-top: -4px;
}

.bio-fiche-list dd strong {
  font-weight: 400;
}

.bio-fiche-list dd a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .bio-fiche-list {
    grid-template-columns: 1fr;
  }
  .bio-fiche-list dd + dd {
    grid-column: 1;
  }
  .bio-fiche-list dt {
    margin-top: 8px;
  }
}

.about-contact {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.5;
}

.cv-download {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(26, 26, 26, 0.35);
  padding: 9px 22px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cv-download:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.cv-download--secondary {
  color: var(--ink-light);
  border-color: rgba(26, 26, 26, 0.18);
}

.cv-download--secondary:hover {
  background: var(--ink-light);
  color: var(--cream);
  border-color: var(--ink-light);
}

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

/* Touch: no overlay (images always fully visible) */
body.is-touch .photo-overlay {
  display: none;
}

body.is-touch .photo-caption {
  opacity: 0;
  font-size: 0.52rem;
  padding: 12px 6px 6px;
  transition: opacity 0.25s ease;
}

body.is-touch .photo-card:active .photo-caption {
  opacity: 1;
}

body.is-touch .photo-card {
  transition: none;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
  }

  .title-name {
    font-size: 1.1rem;
  }

  .title-sub {
    font-size: 0.55rem;
  }

  .lightbox-inner {
    flex-direction: column;
    width: 96%;
    height: 92vh;
    max-height: 92vh;
  }

  .lightbox-photo-wrap {
    flex: 0 0 auto;
    max-height: 55vh;
    min-height: 40vh;
  }

  .lightbox-info {
    flex: 1 1 auto;
    width: 100%;
    padding: 18px 22px;
    gap: 6px;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .info-title {
    font-size: 1.3rem;
  }

  .info-desc {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .lightbox-close {
    top: 16px;
    right: 20px;
  }

  .about-content {
    flex-direction: column;
    gap: 32px;
  }

  .about-photo-placeholder {
    width: 180px;
    height: 240px;
  }

  .about-photo {
    width: 180px;
    height: 240px;
  }
}

/* ================================
   FOOTER
================================ */
/* ================================
   HOME BIO — section sémantique indexée par les moteurs de recherche.
   La galerie fixe la recouvre visuellement ; elle reste dans le DOM
   pour les crawlers et sert de fallback si le JS est bloqué.
================================ */
.home-bio {
  padding: 100px 40px 40px;
  pointer-events: none;
}

.home-bio-inner {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-light);
}

.home-bio-inner strong {
  font-weight: 400;
  color: var(--ink);
}

.home-bio-inner a {
  color: var(--ink);
  pointer-events: all;
}

.home-bio-inner h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1.8em 0 0.6em;
  color: var(--ink);
}

.home-bio-inner h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin: 1.2em 0 0.3em;
  color: var(--ink);
}

.home-bio-inner p {
  margin: 0 0 0.8em;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: linear-gradient(to top, var(--cream) 60%, transparent);
  pointer-events: none;
}

.footer-copy,
.footer-link {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.footer-link {
  pointer-events: all;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--ink);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 14px 20px;
  }
}
