.page-univers {
  background-image: url("/images/Univers.jpg");
  background-color: #000;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  overflow-x: hidden;
}

.universe-page {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 80px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.universe-summary {
  position: sticky;
  top: calc(var(--header-height, 120px) + 20px);
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.universe-summary nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.universe-summary a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b1208;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  padding: 8px 10px;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.universe-summary a:hover,
.universe-summary a:focus-visible {
  background: rgba(144, 252, 2, 0.35);
  transform: translateX(4px);
  outline: none;
}

.summary-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.summary-cta {
  margin-top: 18px;
  text-align: center;
}

.summary-cta img {
  width: min(180px, 100%);
  height: auto;
  transition: transform 0.2s ease;
}

.summary-cta img:hover {
  transform: scale(1.04);
}

.universe-card {
  padding: 28px;
  line-height: 1.65;
  font-size: 1.1rem;

  background-color: rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(255, 255, 255, 0.45);
}

.universe-card h1 {
  text-align: center;
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.universe-card h2 {
  text-align: center;
  margin-top: 34px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.universe-card p {
  text-align: justify;
}

.universe-card ul {
  padding-left: 28px;
}

.universe-card li {
  margin-bottom: 8px;
}

.universe-card a,
.back-link {
  color: #6c2500;
  font-weight: bold;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

.back-link:hover,
.universe-card a:hover {
  color: #a43800;
}

.universe-section {
  scroll-margin-top: calc(var(--header-height, 120px));
  margin-top: 28px;
}

.universe-section:first-of-type {
  margin-top: 0;
}

.globe {
  display: flex;
  justify-content: center;
  margin: 12px auto 24px;
  width: min(360px, 80vw);
}

.globe img {
  width: 100%;
  height: auto;
  clip-path: circle(27%);
}

.universe-note {
  text-align: center;
  font-weight: bold;
  text-indent: 0;
}

.small-collab {
  width: auto;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 6px;
}

.universe-cta {
  margin: 28px auto;
  padding: 14px;
  text-align: center;
  text-indent: 0;
  border-radius: 12px;
  background: rgba(102, 252, 2, 0.22);
  border: 1px solid rgba(108, 37, 0, 0.25);
}

.back-to-summary {
  display: none;
}

@media (max-width: 900px) {
  .universe-page {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .universe-summary {
    position: static;
    scroll-margin-top: 420px;
  }

  .universe-summary nav {
    flex-flow: row wrap;
    justify-content: center;
  }

  .universe-summary a {
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
  }

  .summary-cta {
    display: flex;
    justify-content: center;
  }

  .summary-cta img {
    margin: 0 auto;
  }

  .universe-section {
    scroll-margin-top: 24px;
  }

  .back-to-summary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(252, 206, 2, 0.35);
    color: #1b1208;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(108, 37, 0, 0.35);
  }

  .back-to-summary:hover,
  .back-to-summary:focus-visible {
    background: rgba(156, 252, 2, 0.55);
    outline: none;
  }
}

@media (max-width: 640px) {
  .universe-page {
    width: min(100% - 20px, 1200px);
    margin-bottom: 48px;
  }

  .universe-card {
    padding: 18px;
    font-size: 1rem;
  }

  .universe-card p {
    text-align: left;
  }

  .summary-icon {
    width: 26px;
    height: 26px;
  }
}
