/* LumiSchema — bandeau de consentement */

.lc-consent {
  position: fixed;
  visibility: hidden;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.lc-consent__panel {
  pointer-events: auto;
  width: min(100%, 470px);
  background: #232221;
  color: #f0eeeb;
  border: 1px solid rgba(240, 238, 235, 0.16);
  border-radius: 12px;
  padding: 22px 24px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.lc-consent.is-open {
  visibility: visible;
}

.lc-consent.is-open .lc-consent__panel {
  transform: none;
  opacity: 1;
}

.lc-consent__head {
  margin-bottom: 10px;
}

.lc-consent__eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #938f89;
}

.lc-consent__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lc-consent__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #d6d3ce;
}

.lc-consent__details {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(240, 238, 235, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.lc-consent__switch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.lc-consent__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lc-consent__track {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: #4a4846;
  transition: background 180ms ease;
}

.lc-consent__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0eeeb;
  transition: transform 180ms ease;
}

.lc-consent__switch input:checked + .lc-consent__track {
  background: #5f7f5a;
}

.lc-consent__switch input:checked + .lc-consent__track::after {
  transform: translateX(16px);
}

.lc-consent__switch input:focus-visible + .lc-consent__track {
  outline: 2px solid #f0eeeb;
  outline-offset: 3px;
}

.lc-consent__switch-text {
  display: grid;
  gap: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #d6d3ce;
}

.lc-consent__switch-text strong {
  color: #f0eeeb;
  font-weight: 500;
}

.lc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-consent__btn {
  appearance: none;
  border: 1px solid rgba(240, 238, 235, 0.28);
  background: transparent;
  color: #f0eeeb;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.lc-consent__btn:hover {
  background: rgba(240, 238, 235, 0.08);
  border-color: rgba(240, 238, 235, 0.5);
}

.lc-consent__btn--solid {
  background: #f0eeeb;
  border-color: #f0eeeb;
  color: #292827;
}

.lc-consent__btn--solid:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.lc-consent__btn--ghost {
  border-color: transparent;
  color: #c2bfba;
  padding-inline: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc-consent__btn:focus-visible {
  outline: 2px solid #f0eeeb;
  outline-offset: 2px;
}

.lc-consent__foot {
  margin-top: 12px;
}

.lc-consent__foot a {
  font-size: 12px;
  color: #938f89;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc-consent__foot a:hover {
  color: #f0eeeb;
}

@media (max-width: 640px) {
  .lc-consent {
    padding: 10px;
  }

  .lc-consent__panel {
    padding: 18px 18px 16px;
  }

  .lc-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .lc-consent__btn {
    width: 100%;
    text-align: center;
  }

  .lc-consent__btn--ghost {
    grid-column: 1 / -1;
  }
}

@media print {
  .lc-consent {
    display: none !important;
  }
}
