/* Wellputt — Cookies. Les trois boutons ont le meme style : refuser ne doit pas etre
   moins visible qu'accepter (CNIL). Au-dessus du chatbot (z-index 999999). */
.wpc-banner,
.wpc-prefs {
  --wpc-ink: #111;
  --wpc-text: #333;
  --wpc-muted: #666;
  --wpc-line: #e2e2e2;
  --wpc-accent: #e8520a;
  --wpc-bg: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--wpc-text);
  box-sizing: border-box;
}
.wpc-banner *,
.wpc-prefs * {
  box-sizing: border-box;
}
.wpc-banner[hidden],
.wpc-prefs[hidden] {
  display: none !important;
}

.wpc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.wpc-banner__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 960px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--wpc-bg);
  border: 1px solid var(--wpc-line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 20px 24px;
}
.wpc-banner__title {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--wpc-ink);
  margin: 0 0 8px;
}
.wpc-banner__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.wpc-banner__text a {
  color: var(--wpc-accent);
  text-decoration: underline;
}

.wpc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.wpc-btn {
  flex: 0 1 auto;
  min-width: 160px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--wpc-ink);
  border-radius: 4px;
  background: var(--wpc-ink);
  color: #fff;
  font: 500 14px/1.2 'Poppins', Arial, sans-serif;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.wpc-btn:hover {
  background: var(--wpc-accent);
  border-color: var(--wpc-accent);
}
.wpc-btn:focus-visible,
.wpc-prefs__close:focus-visible,
.wpc-switch input:focus-visible + .wpc-switch__slider {
  outline: 3px solid var(--wpc-accent);
  outline-offset: 2px;
}

.wpc-prefs {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .5);
}
.wpc-prefs__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--wpc-bg);
  border-radius: 8px;
  padding: 24px;
}
.wpc-prefs__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--wpc-ink);
  cursor: pointer;
}
.wpc-cat {
  border-top: 1px solid var(--wpc-line);
  padding: 14px 0;
}
.wpc-cat:last-of-type {
  margin-bottom: 8px;
}
.wpc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wpc-cat__name {
  font-weight: 600;
  color: var(--wpc-ink);
}
.wpc-cat__always {
  font-size: 13px;
  color: var(--wpc-muted);
}
.wpc-cat__desc,
.wpc-cat__services {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}
.wpc-cat__services {
  color: var(--wpc-muted);
}

.wpc-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  margin: 0;
  cursor: pointer;
}
.wpc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.wpc-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #bbb;
  transition: background .15s;
  pointer-events: none;
}
.wpc-switch__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}
.wpc-switch input:checked + .wpc-switch__slider {
  background: var(--wpc-accent);
}
.wpc-switch input:checked + .wpc-switch__slider::before {
  transform: translateX(20px);
}

/* Lien du pied de page : discret (petit, couleur des autres liens du footer), mais lisible */
.wpc-footer {
  padding-top: 8px;
  font-size: 12px;
}
.wpc-footer__link,
.wpc-footer__link:hover {
  color: inherit;
  text-decoration: underline;
}

html.wpc-locked,
html.wpc-locked body {
  overflow: hidden;
}

@media (max-width: 640px) {
  .wpc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .wpc-banner__inner,
  .wpc-prefs__box {
    padding: 16px;
  }
  .wpc-btn {
    flex: 1 1 100%;
  }
}
