/* Bandeau de consentement aux cookies (js/lt-consent.js).
   « Tout refuser » et « Tout accepter » ont exactement le même poids visuel (exigence CNIL).
   Style « comics » du site : encre, ombre dure ; lisible en clair comme en sombre. */
.lt-consent {
  --lc-paper: #fffaf0;
  --lc-ink: #1a1712;
  --lc-muted: #4a4337;
  --lc-line: #1a1712;
  --lc-btn: #1a1712;
  --lc-btn-ink: #fffaf0;
  --lc-accent: #c99a2e;
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="dark"] .lt-consent {
  --lc-paper: #211d17;
  --lc-ink: #f6efe2;
  --lc-muted: #cfc5b3;
  --lc-line: #f6efe2;
  --lc-btn: #f6efe2;
  --lc-btn-ink: #1a1712;
}
.lt-consent__box {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 18px 20px;
  background: var(--lc-paper);
  color: var(--lc-ink);
  border: 3px solid var(--lc-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--lc-line);
}
.lt-consent__title {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--lc-ink) !important;
}
.lt-consent__text,
.lt-consent__purpose-text {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--lc-muted) !important;
}
.lt-consent__text a {
  color: var(--lc-ink) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lt-consent__details {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.lt-consent__details[hidden] { display: none; }
.lt-consent__purpose {
  padding: 10px 12px;
  border: 2px solid var(--lc-line);
  border-radius: 10px;
}
.lt-consent__purpose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  cursor: pointer;
}
.lt-consent__purpose-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lc-ink);
}
.lt-consent__always {
  font-size: 12px;
  font-weight: 700;
  color: var(--lc-muted);
}
.lt-consent__purpose input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--lc-line);
  border-radius: 999px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lt-consent__purpose input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lc-ink);
  transition: transform .15s ease;
}
.lt-consent__purpose input[type="checkbox"]:checked { background: var(--lc-accent); }
.lt-consent__purpose input[type="checkbox"]:checked::after { transform: translateX(20px); }
.lt-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.lt-consent__btn {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--lc-btn-ink);
  background: var(--lc-btn);
  border: 2px solid var(--lc-line);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--lc-accent);
  cursor: pointer;
}
.lt-consent__btn--link {
  flex: 0 1 auto;
  color: var(--lc-ink);
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lt-consent__btn:focus-visible,
.lt-consent__purpose input:focus-visible,
.lt-consent__text a:focus-visible {
  outline: 3px solid var(--lc-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .lt-consent__purpose input[type="checkbox"],
  .lt-consent__purpose input[type="checkbox"]::after { transition: none; }
}
@media print { .lt-consent { display: none; } }
