/* ==========================================================================
   NUMÉRO HOMME — ÉDITION ART & AVANT-GARDE PARISIENNE
   Design System : Galerie brutaliste, lignes géométriques pures,
   blanc minéral (#F7F7F5) & noir absolu (#080808).
   ========================================================================== */

:root {
  --nh-bg: #f7f7f5;
  --nh-surface: #ffffff;
  --nh-ink: #080808;
  --nh-muted: #5c5c58;
  --nh-stone: #e5e3dc;
  --nh-line: #141414;
  --nh-silver: #8a8d91;

  --font-grotesk: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --max-w: 1400px;
  --gutter: clamp(1rem, 3vw, 2.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nh-bg);
  color: var(--nh-ink);
  font-family: var(--font-grotesk);
  line-height: 1.55;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Kiosque Top Strip */
.kiosque-strip {
  border-bottom: 1px solid var(--nh-line);
  padding: 0.45rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--nh-surface);
}

.kiosque-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.kiosque-nav a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Sticky Masthead */
.nh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nh-line);
}

.nh-header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 1rem;
  gap: 1rem;
}

.nh-issue {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nh-muted);
}

.nh-logo {
  text-align: center;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.9;
}

.nh-logo span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.55em;
  margin-top: 0.35rem;
}

.nh-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nh-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Exhibition Split Hero */
.nh-hero {
  border-bottom: 1px solid var(--nh-line);
}

.nh-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82vh;
}

.nh-hero-text {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--nh-line);
}

.nh-plate-code {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--nh-muted);
}

.nh-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  font-weight: 400;
  line-height: 0.96;
  margin: 1.25rem 0;
  letter-spacing: -0.02em;
}

.nh-hero-title em { font-style: italic; }

.nh-hero-manifesto {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 48ch;
  color: #2b2b29;
  margin-bottom: 1.75rem;
}

.nh-btn-sharp {
  display: inline-block;
  border: 1px solid var(--nh-line);
  padding: 0.9rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--nh-ink);
  color: var(--nh-surface);
  transition: all 0.25s ease;
}

.nh-btn-sharp:hover {
  background: transparent;
  color: var(--nh-ink);
}

.nh-hero-photo {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.nh-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nh-photo-tag {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(247, 247, 245, 0.92);
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Gallery Plates Section */
.nh-section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--nh-line);
}

.nh-section--dark {
  background: var(--nh-ink);
  color: var(--nh-surface);
}

.nh-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.nh-sec-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  margin: 0;
}

.nh-plates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nh-plate-card {
  border: 1px solid var(--nh-line);
  background: var(--nh-surface);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nh-plate-card:hover { transform: translateY(-4px); }

.nh-plate-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid var(--nh-line);
}

.nh-plate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nh-plate-meta {
  padding: 1.25rem;
}

.nh-plate-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0.35rem 0 0.5rem;
}

.nh-plate-meta p {
  font-size: 0.88rem;
  color: var(--nh-muted);
  margin: 0;
}

/* Art & Architecture Essay */
.nh-essay-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.nh-essay-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-style: italic;
  line-height: 1.28;
  border-left: 2px solid currentColor;
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
}

.nh-essay-body {
  font-size: 1.02rem;
  line-height: 1.85;
  opacity: 0.86;
}

.nh-footer {
  padding-block: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Lightbox Modal */
.nh-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}

.nh-modal.open { display: flex; }

.nh-modal-card {
  background: var(--nh-surface);
  color: var(--nh-ink);
  max-width: 820px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--nh-line);
}

.nh-modal-card img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: cover;
  object-position: center top;
}

.nh-modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 980px) {
  .nh-hero-split,
  .nh-plates-grid,
  .nh-essay-grid,
  .nh-modal-card {
    grid-template-columns: 1fr;
  }

  .nh-hero-text { border-right: none; border-bottom: 1px solid var(--nh-line); }
  .nh-links { display: none; }
}
