@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #111;
  --bg3:      #161616;
  --text:     #e2e2e2;
  --muted:    #888;
  --faint:    #2a2a2a;
  --white:    #fff;
  --black:    #000;
  --font:     'IBM Plex Mono', monospace;
  --nav-h:    64px;
  --max:      1360px;
  --pad:      clamp(1.2rem, 4vw, 3.5rem);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── UTILITAIRES ── */
.label {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.18em 0.55em;
}
.label.inv {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--faint);
}

.divider { border: none; border-top: 1px solid var(--faint); }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.3rem;
}

/* ── PAGE BODY ── */
.page-body { padding-top: var(--nav-h); }

/* ── HERO (accueil) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  padding: clamp(2.5rem, 5vh, 3.5rem) var(--pad) clamp(2rem, 4vh, 3rem);
  border-bottom: 1px solid var(--faint);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero-title strong { font-weight: 500; display: block; }
.hero-title em {
  display: block;
  font-style: normal;
  font-size: 0.42em;
  color: var(--muted);
  margin-top: 0.7em;
  letter-spacing: 0.02em;
}

.hero-meta {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 2;
}
.hero-meta .live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--white);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── BOUTONS ── */
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7em 1.8em;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.8; }
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--faint);
}
.btn.ghost:hover { color: var(--text); border-color: var(--text); }

/* ── SECTION STANDARD ── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5.5rem) var(--pad);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* ── GRILLE INDEX DE GALERIES ── */
.gallery-index {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid var(--faint);
}

.gallery-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--faint);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.gallery-card:hover { background: var(--bg2); }

.gallery-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}
.gallery-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.4s;
}
.gallery-card:hover .gallery-card-thumb img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.gallery-card-body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-card-title {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.gallery-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gallery-card-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 56ch;
}

.gallery-card-hover {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.9;
  max-width: 56ch;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s;
  opacity: 0;
}
.gallery-card:hover .gallery-card-hover {
  max-height: 200px;
  opacity: 1;
}

.gallery-card-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: auto;
  padding-top: 1rem;
  transition: color 0.15s;
}
.gallery-card:hover .gallery-card-arrow { color: var(--white); }

/* ── PAGE GALERIE INDIVIDUELLE ── */
.gallery-page-hero {
  padding: clamp(3rem, 6vh, 5rem) var(--pad) 2rem;
  border-bottom: 1px solid var(--faint);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.gallery-page-title {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.gallery-page-meta {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  line-height: 2;
}

.gallery-page-desc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  border-bottom: 1px solid var(--faint);
}

.gallery-page-desc-meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 2.2;
}
.gallery-page-desc-meta strong {
  display: block;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.gallery-page-desc-text {
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--text);
}
.gallery-page-desc-text p + p { margin-top: 1.2rem; color: var(--muted); }

/* ── GRILLE PHOTOS ── */
.photo-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 4rem;
  columns: 3;
  column-gap: 3px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 3px;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.photo-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.3s;
  filter: grayscale(10%);
}
.photo-item:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

.photo-item.glitch:hover {
  animation: glitch 0.35s steps(2) forwards;
}
@keyframes glitch {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-3px, 1px); }
  50%  { transform: translate(2px,-2px); }
  75%  { transform: translate(-1px, 3px); }
  100% { transform: translate(0,0); }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.97);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 85svh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0.3em 0.6em;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

/* ── À PROPOS ── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-sidebar .meta-block { margin-bottom: 2.5rem; }
.about-sidebar .meta-block > .label { margin-bottom: 0.9rem; }
.about-sidebar ul {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 2.2;
}
.about-sidebar ul li::before { content: '→ '; color: var(--faint); }

.about-body p {
  font-size: 0.94rem;
  line-height: 2.1;
  margin-bottom: 1.4rem;
  max-width: 64ch;
}
.about-body p:nth-child(n+2) { color: var(--muted); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-info .info-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  font-size: 0.86rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--faint);
  color: var(--muted);
}
.contact-info .info-row span:first-child {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.1rem;
}

form { display: flex; flex-direction: column; gap: 1.6rem; }
form input,
form textarea {
  background: none;
  border: none;
  border-bottom: 1px solid var(--faint);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.7rem 0;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color 0.2s;
}
form input:focus,
form textarea:focus { border-color: var(--white); }
form input::placeholder,
form textarea::placeholder {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--faint);
  padding: 1.5rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--faint);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--faint); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }

  .gallery-card { grid-template-columns: 180px 1fr; min-height: 150px; }
  .gallery-card-body { padding: 1.2rem 1.4rem; }

  .gallery-page-desc { grid-template-columns: 1fr; gap: 2rem; }

  .photo-grid { columns: 2; }

  .about-grid  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 54px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1rem;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .gallery-card { grid-template-columns: 1fr; min-height: auto; }
  .gallery-card-thumb { aspect-ratio: 16/9; }
  .gallery-card-body { padding: 1rem 1.2rem; }
  .gallery-card-hover { max-height: none; opacity: 1; }

  .gallery-page-hero { grid-template-columns: 1fr; }
  .gallery-page-meta { text-align: left; }

  .photo-grid { columns: 1; }

  .site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, .photo-item, .gallery-card-thumb img { animation: none !important; transition: none !important; }
}
