/* ============================================
   ZETARYS — Cookie Consent Banner
   RGPD-compliant, Privacy by Design
   ============================================ */

/* --- Banner Container --- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  color: #E8E8E8;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.5s;
}

.cc-banner.cc-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

/* --- Inner Layout --- */
.cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- Text Content --- */
.cc-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #bbb;
}

.cc-text a {
  color: #00F0FF;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cc-text a:hover {
  color: #fff;
  border-bottom-color: #00F0FF;
}

/* --- Buttons Container --- */
.cc-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* --- Shared Button Base --- */
.cc-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
}

.cc-btn:active {
  transform: scale(0.97);
}

/* --- Accept All Button --- */
.cc-btn-accept {
  background: #00F0FF;
  color: #0a0a0a;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.cc-btn-accept:hover {
  background: #33f4ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* --- Necessary Only Button --- */
.cc-btn-necessary {
  background: transparent;
  color: #999;
  border: 1px solid #444;
}

.cc-btn-necessary:hover {
  color: #E8E8E8;
  border-color: #666;
  background: rgba(255, 255, 255, 0.04);
}

/* --- Backdrop glow line at top of banner --- */
.cc-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.4) 30%,
    rgba(0, 240, 255, 0.6) 50%,
    rgba(0, 240, 255, 0.4) 70%,
    transparent 100%
  );
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .cc-banner {
    padding: 1rem 1.25rem;
  }

  .cc-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cc-text {
    font-size: 0.8125rem;
    text-align: center;
  }

  .cc-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cc-btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .cc-banner {
    padding: 0.875rem 1rem;
  }

  .cc-text {
    font-size: 0.75rem;
  }

  .cc-btn {
    font-size: 0.75rem;
    min-width: 120px;
  }
}
