/* Cookie consent Kilom — aligné sur le bandeau React */
.kilom-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  display: flex;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  animation: kilom-consent-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
.kilom-consent--out {
  animation: kilom-consent-out 0.32s ease forwards;
}
@keyframes kilom-consent-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kilom-consent-out {
  to { opacity: 0; transform: translateY(18px); }
}
.kilom-consent__card {
  pointer-events: auto;
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 252, 0.98) 100%);
  border: 1px solid rgba(208, 224, 239, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 50px rgba(30, 58, 95, 0.16),
    0 4px 14px rgba(30, 58, 95, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.kilom-consent__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 126, 194, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.kilom-consent__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}
.kilom-consent__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1E3A5F 0%, #227EC2 100%);
  box-shadow: 0 8px 20px rgba(34, 126, 194, 0.28);
}
.kilom-consent__mark img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}
.kilom-consent__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1E3A5F;
  line-height: 1.25;
}
.kilom-consent__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #1E3A5F;
}
.kilom-consent__link {
  color: #227EC2;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kilom-consent__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  position: relative;
}
.kilom-consent__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  border-radius: 14px;
  padding: 12px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.kilom-consent__btn:active {
  transform: scale(0.98);
}
.kilom-consent__btn--ghost {
  background: transparent;
  color: #5B7FA8;
  padding-left: 12px;
  padding-right: 12px;
}
.kilom-consent__btn--ghost:hover {
  color: #1E3A5F;
  background: rgba(30, 58, 95, 0.05);
}
.kilom-consent__btn--primary {
  background: linear-gradient(165deg, #2a8fd4 0%, #227EC2 45%, #1a6aa8 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 126, 194, 0.35);
  min-width: 148px;
}
.kilom-consent__btn--primary:hover {
  box-shadow: 0 12px 28px rgba(34, 126, 194, 0.42);
}
@media (max-width: 480px) {
  .kilom-consent__actions {
    flex-direction: column-reverse;
  }
  .kilom-consent__btn--primary,
  .kilom-consent__btn--ghost {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kilom-consent,
  .kilom-consent--out {
    animation: none;
  }
}
