/**
 * Cookie Consent Banner — Braidabelle Studio
 * Légère, accessible, compatible dark/light mode.
 */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 88888; /* Sous WhatsApp (8000) mais au-dessus du reste */
  background: rgba(13, 13, 13, 0.97);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Visible quand hidden est retiré par JS */
.cookie-banner:not([hidden]) {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--color-gold, #C9A227);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  opacity: 0.8;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Mode clair */
[data-theme="light"] .cookie-banner {
  background: rgba(250, 249, 246, 0.97);
  border-color: rgba(201, 162, 39, 0.25);
}

[data-theme="light"] .cookie-banner__text {
  color: rgba(13, 13, 13, 0.75);
}

[data-theme="light"] .cookie-banner .btn--outline {
  border-color: rgba(13, 13, 13, 0.2);
  color: rgba(13, 13, 13, 0.6);
}

/* Focus visible pour accessibilité */
.cookie-banner .btn:focus-visible {
  outline: 2px solid var(--color-gold, #C9A227);
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 640px) {
  .cookie-banner {
    padding: 1.25rem 1.25rem 2rem;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }
}
