/* Bannière cookies (RGPD) — partagé Astro (global.css) et deploy statique */
.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 120;
  pointer-events: none;
}

.cookie-consent:not([hidden]) {
  pointer-events: auto;
}

.cookie-consent__banner,
.cookie-consent__prefs {
  border-top: 1px solid rgba(158, 158, 158, 0.22);
  background: rgba(2, 4, 11, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.cookie-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cookie-consent__text,
.cookie-consent__item-desc,
.cookie-consent__legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #9e9e9e;
}

.cookie-consent__legal {
  margin-top: 0.75rem;
}

.cookie-consent__legal a {
  color: #6bf9c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-consent__btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.cookie-consent__btn--primary {
  border: 1px solid rgba(107, 249, 196, 0.5);
  background: #6bf9c4;
  color: #01030a;
}

.cookie-consent__btn--primary:hover {
  background: #4eedb5;
}

.cookie-consent__btn--secondary {
  border: 1px solid rgba(158, 158, 158, 0.35);
  background: transparent;
  color: #fff;
}

.cookie-consent__btn--secondary:hover {
  border-color: rgba(107, 249, 196, 0.45);
  color: #6bf9c4;
}

.cookie-consent__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-consent__item {
  border: 1px solid rgba(158, 158, 158, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #0a0d18;
}

.cookie-consent__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-consent__item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.cookie-consent__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6bf9c4;
}

.cookie-consent__toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.cookie-consent__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-consent__switch {
  width: 2.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(158, 158, 158, 0.35);
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.cookie-consent__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.cookie-consent__toggle input:checked + .cookie-consent__switch {
  background: #6bf9c4;
}

.cookie-consent__toggle input:checked + .cookie-consent__switch::after {
  transform: translateX(1.1rem);
}

.cookie-consent__toggle input:focus-visible + .cookie-consent__switch {
  outline: 2px solid #6bf9c4;
  outline-offset: 2px;
}

html.cookie-banner-open {
  scroll-padding-bottom: 12rem;
}

@media (min-width: 640px) {
  .cookie-consent__actions {
    flex-wrap: nowrap;
  }

  .cookie-consent__btn {
    flex: 1 1 0;
  }
}
