/* Cookie consent — tokens mappés sur :root du site (thème client) */
.cc {
  --cc-bg: var(--background);
  --cc-bg-soft: var(--secondary);
  --cc-txt: var(--foreground);
  --cc-muted: var(--muted);
  --cc-acc: var(--accent);
  --cc-acc-dim: color-mix(in srgb, var(--accent) 35%, var(--background));
  --cc-on-acc: var(--background);
  --cc-line: var(--border);
  --cc-font: var(--font-sans);
  --cc-ease: var(--ease-out);
  font-family: var(--cc-font);
}

.cc__banner {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 9100;
  width: min(380px, calc(100vw - 2rem));
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  border-radius: 2px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--foreground) 12%, transparent);
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s,
    transform 0.5s var(--cc-ease),
    visibility 0s 0.5s;
}

.cc__banner.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cc__head {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.cc__emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.cc__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cc-txt);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.cc__desc {
  font-size: 0.84rem;
  color: var(--cc-muted);
  line-height: 1.55;
}

.cc__desc a {
  color: var(--cc-acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc__desc a:hover {
  color: var(--accent-hover);
}

.cc__actions {
  display: flex;
  gap: 0.6rem;
}

.cc__btn {
  flex: 1;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cc-line);
  border-radius: 2px;
  font-family: var(--cc-font);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-txt);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s;
}

.cc__btn:hover {
  border-color: var(--cc-acc);
  color: var(--cc-acc);
}

.cc__btn--solid {
  background: var(--cc-acc);
  border-color: var(--cc-acc);
  color: var(--cc-on-acc);
}

.cc__btn--solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--cc-on-acc);
}

.cc__link {
  min-height: 44px;
  font-family: var(--cc-font);
  font-size: 0.76rem;
  color: var(--cc-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.cc__link:hover {
  color: var(--cc-txt);
}

.cc__overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--foreground) 45%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cc__overlay.is-open {
  display: flex;
}

.cc__modal {
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  border-radius: 2px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc__cat {
  background: var(--cc-bg-soft);
  border: 1px solid var(--cc-line);
  border-radius: 2px;
  padding: 1rem 1.1rem;
}

.cc__cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  min-height: 28px;
}

label.cc__cat-row {
  cursor: pointer;
}

.cc__cat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cc-txt);
}

.cc__cat-lock {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cc-acc);
}

.cc__cat-desc {
  font-size: 0.8rem;
  color: var(--cc-muted);
  line-height: 1.55;
}

.cc-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.cc-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc-toggle i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--cc-line);
  transition: background 0.3s;
  pointer-events: none;
}

.cc-toggle i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cc-muted);
  transition:
    transform 0.3s var(--cc-ease),
    background 0.3s;
}

.cc-toggle input:checked + i {
  background: var(--cc-acc-dim);
}

.cc-toggle input:checked + i::after {
  transform: translateX(20px);
  background: var(--cc-acc);
}

.cc-toggle input:focus-visible + i {
  outline: 2px solid var(--cc-acc);
  outline-offset: 2px;
}

.cc__reopen {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 9090;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  font-size: 1.3rem;
  cursor: pointer;
  transition:
    border-color 0.3s,
    transform 0.3s var(--cc-ease);
}

.cc__reopen.is-visible {
  display: flex;
}

.cc__reopen:hover {
  border-color: var(--cc-acc);
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .cc__banner,
  .cc__btn,
  .cc-toggle i,
  .cc-toggle i::after,
  .cc__reopen {
    transition-duration: 0.001s;
  }
}

/* ============================================================
   WATTZ SKIN — the standard above is untouched (logic, markup, rules).
   This block only restyles it to the site: rounded card, pill buttons,
   the neon on "Accept all", the Lucide cookie instead of the emoji.
   ============================================================ */
.cc {
  --cc-bg: var(--secondary);
  --cc-bg-soft: var(--background);
  --cc-font: var(--ff-sans);
  --cc-cookie: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M11%2017h.01%27/%3E%3Cpath%20d=%27M11.496%202c.324-.016.558.292.529.615a4%204%200%20004.235%204.368.713.713%200%2001.758.757%204%204%200%20004.366%204.237c.323-.03.63.204.614.527a10%2010%200%2001-2.915%206.566A1%201%200%20114.93%204.918%2010%2010%200%200111.496%202%27/%3E%3Cpath%20d=%27M12%2012h.01%27/%3E%3Cpath%20d=%27M16%2016h.01%27/%3E%3Cpath%20d=%27M16%203h.01%27/%3E%3Cpath%20d=%27M21%204h.01%27/%3E%3Cpath%20d=%27M21%208h.01%27/%3E%3Cpath%20d=%27M7%2014h.01%27/%3E%3Cpath%20d=%27M9%208h.01%27/%3E%3C/svg%3E");
}

.cc__banner {
  width: min(400px, calc(100vw - 2rem));
  padding: 1.5rem;
  gap: 1.125rem;
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -20px var(--shade-deep), 0 0 0 1px var(--shade);
}

.cc__head {
  gap: 0.875rem;
}

/* The emoji stays in the markup; the site shows the Lucide cookie, in a chip like the support cards */
.cc__emoji,
.cc__reopen {
  font-size: 0;
}
.cc__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--raised);
}
.cc__emoji::before,
.cc__reopen::before {
  content: '';
  width: 1.125rem;
  height: 1.125rem;
  background: var(--accent);
  -webkit-mask: var(--cc-cookie) center / contain no-repeat;
  mask: var(--cc-cookie) center / contain no-repeat;
}

.cc__title {
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.cc__desc {
  font-size: 0.875rem;
  line-height: 1.6;
}
.cc__desc a {
  color: var(--cc-txt);
  text-decoration-color: var(--label);
  text-underline-offset: 4px;
}
.cc__desc a:hover {
  color: var(--cc-txt);
  text-decoration-color: var(--accent);
}

/* Pills, sentence case, the same weight for both choices */
.cc__btn {
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: var(--surface);
  border-color: var(--raised);
  transition:
    border-color var(--dur-s) var(--ease-out),
    filter var(--dur-s) var(--ease-out),
    transform var(--dur-s) var(--ease-out);
}
.cc__btn:hover {
  border-color: var(--muted);
  color: var(--cc-txt);
}
.cc__btn--solid,
.cc__btn--solid:hover {
  background: var(--neon);
  border-color: transparent;
  color: var(--background);
  font-weight: 800;
}
.cc__btn--solid:hover {
  filter: brightness(1.06);
}

.cc__link {
  font-size: 0.8125rem;
  text-decoration-color: var(--label);
  text-underline-offset: 4px;
}

/* Preferences */
.cc__overlay {
  background: color-mix(in srgb, var(--background) 72%, transparent);
}
.cc__modal {
  width: min(480px, 100%);
  padding: 1.75rem;
  gap: 1.125rem;
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -20px var(--shade-deep);
}
.cc__modal .cc__title {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.cc__cat {
  padding: 1rem 1.125rem;
  border-radius: 1rem;
}
.cc__cat-name {
  font-size: 0.9375rem;
}
.cc__cat-lock {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.cc__cat-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
}
.cc-toggle i {
  background: var(--raised);
}
.cc-toggle input:checked + i {
  background: var(--neon);
}
.cc-toggle input:checked + i::after {
  background: var(--foreground);
  box-shadow: 0 1px 3px var(--shade);
}

/* The way back to the preferences */
.cc__reopen {
  background: var(--secondary);
  border-color: var(--raised);
  box-shadow: 0 12px 30px -10px var(--shade-deep);
}
.cc__reopen::before {
  width: 1.25rem;
  height: 1.25rem;
}
.cc__reopen:hover {
  border-color: var(--muted);
}
