/* ============================================================
   cookie-banner.css — Bannière consentement Loi 25 Québec
   Design : toast flottant glassmorphism · AgentiqAI dark theme
   ============================================================ */

#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 100%;
  max-width: 380px;

  /* Glassmorphism */
  background: rgba(22, 25, 32, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;

  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  color: #e4e6ec;

  /* Entrée animée */
  animation: cookie-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.35s cubic-bezier(0.4, 0, 1, 1),
              opacity  0.35s ease;
}

@keyframes cookie-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#cookie-banner.cookie-banner--hidden {
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
}

/* ── Contenu ── */
.cookie-banner__inner {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Ligne d'en-tête avec icône + titre */
.cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 196, 0.15);
  border: 1px solid rgba(59, 130, 196, 0.25);
  display: grid;
  place-items: center;
  color: #3b82c4;
}

.cookie-banner__icon svg {
  width: 15px;
  height: 15px;
}

.cookie-banner__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

/* Texte descriptif */
.cookie-banner__text {
  margin: 0;
  line-height: 1.55;
  color: #9199ab;
  font-size: 0.8125rem;
}

.cookie-banner__text strong {
  color: #c9d1de;
  font-weight: 600;
}

.cookie-banner__link {
  color: #5294d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(82, 148, 212, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.cookie-banner__link:hover {
  color: #7ab3e0;
  border-color: rgba(122, 179, 224, 0.5);
}

/* Boutons */
.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cookie-banner__btn {
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.cookie-banner__btn:active {
  transform: scale(0.97);
}

.cookie-banner__btn--accept {
  background: #3b82c4;
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  background: #5294d4;
}

.cookie-banner__btn--refuse {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9199ab;
}

.cookie-banner__btn--refuse:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #c9d1de;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  #cookie-banner {
    bottom: 16px;
    left: 12px;
    right: 12px;
    max-width: none;
    width: auto;
  }
}
