/* Bandeau cookies RGPD — fixe en bas du viewport, pleine largeur */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.cookie-consent:not([hidden]) {
  pointer-events: auto;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__bar {
  width: 100%;
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.97), rgba(8, 8, 14, 0.99));
  border-top: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  animation: cookie-bar-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookie-bar-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__text strong {
  color: #fff;
  font-weight: 700;
}

.cookie-consent a {
  color: #c4b5fd;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-consent__btn {
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-consent__btn--primary {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #0a0a0f;
  border: none;
}

.cookie-consent__btn:hover {
  filter: brightness(1.08);
}

/* Réserve de place pour ne pas masquer le contenu sous le bandeau */
html.cookie-consent-visible body {
  padding-bottom: var(--cookie-bar-height, 5.5rem);
}

/* App : au-dessus de la bottom nav mobile */
html.cookie-consent-visible body.app-body {
  padding-bottom: calc(var(--cookie-bar-height, 5.5rem) + 3.5rem);
}

@media (min-width: 768px) {
  html.cookie-consent-visible body.app-body {
    padding-bottom: var(--cookie-bar-height, 5.5rem);
  }
}
