/* =========================================================
   Annguéléïa Spectacles — Module cookies RGPD premium
   Fichier : /css/cookies-consent.css
   ========================================================= */

.cookie-box {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 390px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(23, 79, 128, 0.18);
  border: 1px solid rgba(31, 111, 178, 0.12);
  z-index: 9999;
  overflow: hidden;
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.cookie-box.cookie-show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 26px 22px 24px;
}

.cookie-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe4a7, #f6a21a);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: inset 0 -5px 12px rgba(0, 0, 0, 0.08);
}

.cookie-text h2 {
  margin: 0;
  color: #174f80;
  font-size: 1.18rem;
  line-height: 1.28;
}

.cookie-text p {
  margin: 8px 0 0;
  color: #65758b;
  line-height: 1.45;
  font-size: 0.95rem;
}

.cookie-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.94rem;
  font-family: inherit;
}

.cookie-btn:focus-visible,
.cookie-link:focus-visible {
  outline: 3px solid rgba(31, 111, 178, 0.35);
  outline-offset: 3px;
}

.cookie-accept {
  background: #f6a21a;
  color: #1f1f1f;
  box-shadow: 0 8px 18px rgba(246, 162, 26, 0.24);
}

.cookie-refuse {
  background: #eef3f8;
  color: #174f80;
}

.cookie-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.86rem;
}

.cookie-link {
  color: #1f6fb2;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 820px) {
  .cookie-box {
    left: 50vw;
    right: auto;
    bottom: 18px;
    width: min(390px, calc(100vw - 36px));
    max-width: none;
    transform: translate3d(-50%, 120%, 0);
  }

  .cookie-box.cookie-show {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-box {
    transition: none;
  }
}
