.pfc-root {
  --pfc-bg: #fff;
  --pfc-text: #1a1a1a;
  --pfc-muted: #444;
  --pfc-accent: #1a1a1a;
  --pfc-link: #0b57d0;
  --pfc-focus: #0b57d0;
  --pfc-line: #d0d0d0;
  --pfc-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pfc-text);
}
.pfc-root *, .pfc-root *::before, .pfc-root *::after { box-sizing: border-box; }
.pfc-root :focus-visible { outline: 3px solid var(--pfc-focus); outline-offset: 2px; }

.pfc-banner[hidden], .pfc-panel[hidden], .pfc-cat-desc[hidden], .pfc-manage[hidden] { display: none; }

.pfc-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  width: calc(100% - 32px);
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px;
  background: var(--pfc-bg);
  color: var(--pfc-text);
  border: 1px solid var(--pfc-line);
  border-radius: var(--pfc-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
}
.pfc-banner:focus { outline: none; }

.pfc-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: inherit; }
.pfc-text { margin: 0 0 10px; font-size: 14px; color: var(--pfc-muted); }
.pfc-text a, .pfc-cat-desc a { color: var(--pfc-link); text-decoration: underline; }

/* Trois boutons strictement identiques : même taille, même forme, même contraste. */
.pfc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pfc-btn {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--pfc-text);
  background: var(--pfc-bg);
  border: 2px solid var(--pfc-accent);
  border-radius: var(--pfc-radius);
  cursor: pointer;
}
.pfc-btn:hover { background: var(--pfc-accent); color: var(--pfc-bg); }

.pfc-panel { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--pfc-line); }
.pfc-cat { padding: 8px 0; border-bottom: 1px solid var(--pfc-line); }
.pfc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pfc-cat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.pfc-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}
.pfc-cat-toggle[aria-expanded="true"] .pfc-chev { transform: rotate(45deg); }
.pfc-state { font-size: 13px; color: var(--pfc-muted); text-align: right; }
.pfc-cat-desc { padding: 0 0 8px 18px; font-size: 14px; color: var(--pfc-muted); }
.pfc-cat-desc p { margin: 0 0 8px; }

.pfc-switch { position: relative; flex: none; display: block; width: 52px; height: 44px; }
.pfc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pfc-slider {
  position: absolute;
  top: 10px;
  left: 4px;
  width: 44px;
  height: 24px;
  background: #767676;
  border-radius: 12px;
  transition: background .15s;
  pointer-events: none;
}
.pfc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.pfc-switch input:checked + .pfc-slider { background: var(--pfc-accent); }
.pfc-switch input:checked + .pfc-slider::before { transform: translateX(20px); }
.pfc-switch input:focus-visible + .pfc-slider { outline: 3px solid var(--pfc-focus); outline-offset: 2px; }

.pfc-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--pfc-bg);
  border: 1px solid var(--pfc-line);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  cursor: pointer;
}
.pfc-manage:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.pfc-manage img { display: block; width: 28px; height: 28px; }

.pfc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .pfc-banner { left: 8px; bottom: 8px; width: calc(100% - 16px); padding: 16px; }
  .pfc-btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pfc-chev, .pfc-slider, .pfc-slider::before { transition: none; }
}
