/* ============================================================
   LOOKITSGRAPHIC — En-tête portail (logo glitch + menubar)
   Reprise du navigation-bar / menubar du site principal,
   adapté à la palette outils (--paper, --ink, --acid…)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap");

/* --- Barre fixe ------------------------------------------------ */

.site-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: unset !important;
  min-height: 78px;
  padding: 10px clamp(16px, 3vw, 40px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--ink);
  background: #f3f0e8f7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .brand,
.site-header .main-nav,
.site-header .header-note,
.site-header .menu-button {
  display: none !important;
}

/* Logo texte — calqué sur h1 + #navigation-bar a / .logo a (index.css) */
.site-logo,
.site-navigation-logo {
  margin: 0;
  font-size: 28px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  line-height: normal;
}

.site-logo a,
.site-navigation-logo a {
  display: inline-block;
  text-decoration: none;
  opacity: 0.8;
  padding: 3px 5px;
  border: 5px solid #fcfcfc;
  box-shadow: 5px 5px 0 var(--acid);
  cursor: pointer;
  transition: all 0.4s ease;
  animation: lig-glitch-middle 3s infinite;
}

.site-logo {
  color: var(--ink);
}

.site-logo a {
  color: var(--ink);
  border-color: var(--ink);
}

.site-navigation-logo {
  color: #fcfcfc;
}

.site-navigation-logo a {
  color: #fcfcfc;
  border-color: #fcfcfc;
}

.site-logo a:hover,
.site-navigation-logo a:hover {
  opacity: 1;
}

@keyframes lig-glitch-middle {
  0%, 26%, 30%, 72%, 76%, 100% {
    transform: translate(0, 0) skew(0deg);
    box-shadow: 5px 5px 0 var(--acid);
  }
  30%, 70% { transform: translate(0, 0) skew(30deg); }
  29%, 31%, 69%, 71% { transform: translate(0, 0) skew(0deg); }
  28%, 74% {
    box-shadow:
      -0.2em 0.1em 0 0 var(--cyan),
      0.2em -0.1em 0 0 var(--coral),
      5px 5px 0 var(--acid);
  }
}

/* --- Menubar --------------------------------------------------- */

.site-header .menubar {
  position: relative;
  right: auto;
  top: auto;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.site-header .menubar:hover {
  opacity: 1;
}

.site-header .menubar span {
  position: relative;
  display: block;
  width: 20px;
  height: 3px;
  margin: 6px;
  border-radius: 20px;
  background: transparent;
}

.site-header .menubar .first-span,
.site-header .menubar .second-span,
.site-header .menubar .third-span {
  width: 35px;
}

.site-header .menubar .first-span::before,
.site-header .menubar .second-span::before,
.site-header .menubar .third-span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 120%;
  background-color: var(--ink);
  transition: height 0.3s ease;
}

.site-header .menubar .first-span::before {
  transition-duration: 0.5s;
}

.site-header .menubar:hover .first-span::before,
.site-header .menubar:hover .second-span::before,
.site-header .menubar:hover .third-span::before {
  height: 100%;
}

/* --- Overlay navigation ---------------------------------------- */

.site-navigation {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  visibility: hidden;
}

.site-navigation.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.site-navigation-logo {
  position: absolute;
  top: 6%;
  left: clamp(16px, 3vw, 40px);
  z-index: 2;
}

.navigation-close {
  position: absolute;
  top: 6%;
  right: clamp(16px, 3vw, 40px);
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.navigation-close .close-first,
.navigation-close .close-second {
  display: block;
  width: 35px;
  height: 3px;
  margin: -2px;
  padding: 1px;
  border-radius: 20px;
  background-color: #fcfcfc;
  cursor: pointer;
}

.navigation-close .close-first {
  transform: rotate(45deg);
}

.navigation-close .close-second {
  transform: rotate(-45deg);
}

.navigation-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial Narrow, "Helvetica Neue", Arial, sans-serif;
}

.navigation-links a {
  position: relative;
  z-index: 2;
  padding: 10px;
  text-decoration: none;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(252, 252, 252, 0);
  -webkit-text-stroke: 1px #fcfcfc;
  opacity: 0.7;
  transition: all 0.4s ease;
}

.navigation-links a:hover,
.navigation-links a.is-current {
  opacity: 1;
  color: rgba(252, 252, 252, 1);
  -webkit-text-stroke: 0;
}

.navigation-links a::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 100vw;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  font-size: 9vw;
  font-weight: 400;
  font-family: "Climate Crisis", sans-serif;
  color: rgb(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  letter-spacing: 100px;
  transition: opacity 0.4s ease, letter-spacing 0.4s ease;
}

.navigation-links a:hover::before {
  content: attr(data-text);
  opacity: 1;
  letter-spacing: 10px;
}

.navigation-links a.is-current {
  color: var(--acid);
  -webkit-text-stroke: 0;
}

/* --- Responsive ------------------------------------------------ */

@media (max-width: 900px) {
  .site-header {
    min-height: 70px;
    padding: 8px 16px;
  }

  .site-logo,
  .site-navigation-logo {
    font-size: 25px;
  }

  .site-header .menubar .first-span,
  .site-header .menubar .second-span,
  .site-header .menubar .third-span {
    width: 28px;
  }

  .navigation-links a {
    font-size: clamp(24px, 7vw, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-logo a,
  .site-navigation-logo a {
    animation: none !important;
  }

  .site-navigation {
    transition: none;
  }

  .navigation-links a::before {
    display: none;
  }
}

/* --- Philosophy — logo index ----------------------------------- */

.philosophy-index {
  display: grid;
  place-items: center;
  padding: 14px;
  letter-spacing: normal;
  line-height: normal;
  font-size: inherit;
  font-weight: inherit;
  background: var(--violet);
  box-shadow: 8px 8px 0 var(--acid);
}

.philosophy-index img,
.philosophy-index .philosophy-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
