/* ===== Consent Banner – Voyance Immédiate Suisse ===== */
#consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 2147483647;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 18px 18px;
  border: 1px solid rgba(106,90,205,0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(154,132,238,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,247,255,0.98) 100%);
  box-shadow: 0 -10px 40px rgba(31,27,46,0.16), 0 1px 0 rgba(255,255,255,0.75) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: consentSlideUp 0.38s ease-out;
}

#consent-banner::before {
  content: "";
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(106,90,205,0.20);
  margin: -8px auto 4px;
}

#consent-banner::after {
  content: "🔒";
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(106,90,205,0.10);
  color: #6A5ACD;
  font-size: 19px;
  box-shadow: 0 8px 22px rgba(106,90,205,0.10);
  order: -1;
}

#consent-banner p {
  margin: 0;
  color: #334155;
  font-size: 14.5px;
  max-width: 470px;
  line-height: 1.55;
}


#consent-buttons {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

#consent-banner button {
  border: 0;
  cursor: pointer;
  font-weight: 750;
  border-radius: 14px;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

#consent-banner button:active {
  transform: translateY(1px);
}

#consent-accept {
  background: linear-gradient(180deg, #7B69E6 0%, #6A5ACD 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(106,90,205,0.24);
}
#consent-accept:hover {
  opacity: 0.96;
  box-shadow: 0 12px 28px rgba(106,90,205,0.30);
}

#consent-decline {
  background: #fff;
  color: #334155;
  border: 1px solid rgba(106,90,205,0.16) !important;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}
#consent-decline:hover {
  background: #f8f7ff;
}



/* Desktop uniquement : bannière consentement plus large et mieux posée */
@media (min-width: 768px) {
  #consent-banner {
    left: 50%;
    right: auto;
    bottom: 28px;
    width: min(760px, calc(100vw - 80px));
    max-width: 760px;
    padding: 24px 32px 22px;
    transform: translateX(-50%);
  }

  #consent-banner p {
    max-width: 660px;
    font-size: 15.5px;
    line-height: 1.55;
  }

  #consent-buttons {
    max-width: 520px;
    gap: 12px;
  }

  #consent-banner button {
    min-height: 46px;
    border-radius: 15px;
    font-size: 14.5px;
  }
}

@media (min-width: 768px) {
  #consent-banner {
    animation: consentDesktopSlideUp 0.38s ease-out;
  }
}

@keyframes consentDesktopSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@media (max-width: 639px) {
  #consent-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 20px 16px 16px;
    border-radius: 24px;
  }

  #consent-banner p {
    font-size: 14px;
    line-height: 1.5;
  }

  #consent-buttons {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@keyframes consentSlideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
