/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
@font-face {
  font-family: "UN11ST";
  src: url("UN-11STTrial-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
 
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "UN11ST", Helvetica, sans-serif;
  color: white;
  background: #111;
}
 
.grid {
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 100vh;
  transition: transform 0.4s ease;
  will-change: transform;
}
 
.pair {
  display: grid;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  grid-template-columns: 50vw 50vw;
  grid-template-rows: 100vh;
}
 
.cell {
  position: relative;
  overflow: hidden;
  background: #111;
}
 
.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
 
.cell.full {
  grid-column: 1 / 3;
}
 
/* ── CAPTION ── */
.caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 15px;
  font-family: "UN11ST", Helvetica, sans-serif;
  color: white;
  pointer-events: none;
  white-space: nowrap;
}
 
/* ── TOP BAR ── */
.top-bar {
  position: fixed;
  top: 20px;
  width: 100%;
  z-index: 50;
  pointer-events: none;
}
.top-content {
  display: flex;
  width: 100%;
  pointer-events: all;
}
 
#name-btn, #contact-btn {
  width: 50%;
  text-align: center;
  font-size: 20px;
  font-family: "UN11ST", Helvetica, sans-serif;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: inline-block;
  color: white;
  user-select: none;
  opacity: 1;
}
#name-btn span, #contact-btn span {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
#name-btn.disabled, #contact-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
 
/* ── OVERLAY ── */
.overlay {
  position: fixed;
  top: 0;
  width: 50vw;
  height: 100vh;
  background: #e5e5e5;
  z-index: 30;
  padding: 16px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: color 0.2s ease;
}
.left-overlay  { left: 0; }
.right-overlay { right: 0; }
 
.overlay-text {
  font-size: 36px;
  line-height: 44px;
  max-width: 1500px;
  margin-top: 34px;
  font-family: "UN11ST", Helvetica, sans-serif;
}
.overlay-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.right-overlay .overlay-text {
  text-align: center;
  width: 100%;
  max-width: none;
}
 
/* ── CV BTN ── */
#cv-btn {
  font-size: 36px;
  font-family: "UN11ST", Helvetica, sans-serif;
  text-align: left;
}
#cv-btn a {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
 
.hidden { display: none !important; }
 
/* ── COLORS ── */
:root {
  --c1: #8c746e;
  --c2: #835fab;
  --c3: #ff00a4;
  --c4: #3ec9ff;
  --c5: #779593;
  --c6: #f14a59;
}
 
/* ════════════════════════════════════════
   MOBILE  ≤ 768px
   ════════════════════════════════════════ */
@media (max-width: 768px) {

  .grid {
    flex-direction: column;
    width: 100vw;
    height: max-content;
  }

  .pair {
    width: 100vw;
    height: 100vh;
    grid-template-columns: 100vw;
    grid-template-rows: 50vh 50vh;
  }

  .cell.full {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .overlay {
    width: 100vw;
    height: 50vh;
    padding: 10px 20px 20px;
  }

  /* "name" recouvre la moitié haute */
  .left-overlay {
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
  }

  /* "contact" recouvre la moitié basse */
  .right-overlay {
    top: 50vh;
    left: 0;
    bottom: auto;
    right: auto;
  }

  .overlay-text {
    font-size: 24px;
    line-height: 30px;
    margin-top: 26px;
    text-align: left;
  }
  .right-overlay .overlay-text { text-align: center; }

  #cv-btn { font-size: 24px; }

  .top-bar { top: 20px; }
  .top-content { justify-content: center; }

  #name-btn {
    width: auto;
    font-size: 14px;
  }

#contact-btn {
  position: fixed;
  top: calc(50vh + 20px);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: white;
  z-index: 50;
}

	
  .caption { font-size: 14px; bottom: 10px; }
}

#name-btn.active span, #contact-btn.active span {
  border-bottom: none;
}