/* ===== Bannière de consentement aux cookies ===== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1d26;
  border-top: 1px solid rgba(55, 239, 186, 0.25);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#cookie-banner.visible {
  display: flex;
  animation: cookieFadeUp 0.3s ease;
}

@keyframes cookieFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
  color: #c8cad4;
  line-height: 1.5;
}

.cookie-banner-text strong {
  color: #e8eaf0;
}

.cookie-banner-text a {
  color: #37EFBA;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cookie-btn-refuse {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #c8cad0;
}

.cookie-btn-refuse:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #e8eaf0;
}

.cookie-btn-accept {
  background: #37EFBA;
  color: #0d0f14;
  border-color: #37EFBA;
}

.cookie-btn-accept:hover {
  background: #5af5c8;
  border-color: #5af5c8;
}

/* Lien "Gérer les cookies" dans le footer */
.cookie-manage-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.cookie-manage-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  #cookie-banner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
