/* ================================
   CHAPITOUR MENU
================================ */

/* Header */
.chapitour-header {
  width: 100%;
  height: 58px;
  padding: 3.5rem 2rem;
  background:
   radial-gradient(circle at left center, rgba(0, 0, 0, 1), transparent 40%),
   radial-gradient(circle at right center, rgba(0,0, 0, 1), transparent 15%);
  color: #ebeaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position:fixed;
  top: 0;
  z-index: 10;
  border-radius: 5px;
}

/* Logo */
.chapitour-logo {
  margin: 0;

  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;

  color: transparent;
  background:
    linear-gradient(
      135deg,
      #ff4b00 0%,
      #ffb000 22%,
      #e8f200 38%,
      #00d084 54%,
      #0099ff 74%,
      #7657ff 100%
    );
  background-size: 220% 220%;
  background-clip: text;
  -webkit-background-clip: text;
  font-family: 'Porky Bold', cursive;


  animation: chapitourTitle 12s ease-in-out infinite;
  }

  @keyframes chapitourTitle {
  0% {
    background-position: 0% 50%;
    transform: rotate(-1deg);
  }

  50% {
    background-position: 100% 50%;
    transform: rotate(1deg);
  }

  100% {
    background-position: 0% 50%;
    transform: rotate(-1deg);
  }
  }


/* Right buttons */
.chapitour-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;

  display: grid;
  place-items: center;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 18px rgba(126, 65, 255, 0.18);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 24px rgba(126, 65, 255, 0.35);
}

/* Search icon */
.search-icon {
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #fff;
  position: absolute;
  right: -6px;
  bottom: -4px;
  transform: rotate(45deg);
  border-radius: 999px;
}

/* Burger icon */
.menu-btn {
  gap: 4px;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Active burger */
.menu-btn.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Dropdown menu */
.chapitour-menu {
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;

  background:
    radial-gradient(circle at top right, rgba(128, 54, 255, 0.22), transparent 35%),
    linear-gradient(180deg, #080808, #020202);

  border-bottom: 1px solid rgba(156, 88, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.chapitour-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.menu-inner a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;

  padding: 0.85rem 1rem;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.menu-inner a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(126, 65, 255, 0.22);
  border-color: rgba(177, 121, 255, 0.45);
}

/* Responsive */
@media (max-width: 600px) {
  .chapitour-header {
    min-height: 58px;
    padding: 1rem;
    justify-content:space-around;
    gap:2rem;


  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .menu-inner {
    width: calc(100% - 1.4rem);
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .menu-inner a {
    text-align: center;
    padding: 0.9rem 1rem;
  }
}
