/* Bandeau de consentement Parapheo - première partie uniquement. */
.pph-consent-panel[hidden], .pph-consent-manage[hidden] { display: none !important; }
.pph-consent-panel {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px;
  color: #171717;
  background: #fff;
  border: 1px solid #171717;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pph-consent-open:before { content: ""; position: fixed; inset: 0; z-index: 2147482998; background: rgba(0,0,0,.28); }
.pph-consent-panel.is-preferences { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(680px, calc(100vw - 24px)); max-height: min(650px, calc(100vh - 24px)); overflow-y: auto; }
.pph-consent-close { display: none; position: absolute; top: 9px; right: 11px; width: 34px; height: 34px; border: 1px solid #171717; border-radius: 50%; background: #fff; color: #171717; font-size: 22px; line-height: 1; cursor: pointer; }
.pph-consent-panel.is-preferences .pph-consent-close { display: block; }
.pph-consent-close:hover, .pph-consent-close:focus-visible { background: #f0f0ed; }
.pph-consent-panel h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.pph-consent-panel p { margin: 0 0 12px; }
.pph-consent-panel h3 { margin: 18px 0 10px; font-size: 16px; }
.pph-consent-panel a { color: inherit; text-underline-offset: 2px; }
.pph-consent-banner-actions, .pph-consent-preference-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pph-consent-banner-actions button, .pph-consent-preference-actions button {
  flex: 1 1 160px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #171717;
  border-radius: 3px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pph-consent-banner-actions button:hover, .pph-consent-banner-actions button:focus-visible,
.pph-consent-preference-actions button:hover, .pph-consent-preference-actions button:focus-visible { background: #f0f0ed; }
.pph-consent-category { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid #ddd; padding: 12px 0; }
.pph-consent-category > div:first-child, .pph-consent-category label { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pph-consent-category span { color: #555; font-size: 12.5px; }
.pph-consent-status { color: #555; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pph-switch { position: relative; display: inline-flex !important; flex: 0 0 50px !important; width: 50px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; touch-action: manipulation; }
.pph-switch-track { position: absolute; inset: 0; border-radius: 999px; border: 1px solid #555; background: #ddd; pointer-events: none; transition: background .15s ease, border-color .15s ease; }
.pph-switch-track:after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform .15s ease; }
.pph-switch[aria-checked="true"] .pph-switch-track { background: #171717; border-color: #171717; }
.pph-switch[aria-checked="true"] .pph-switch-track:after { transform: translateX(20px); }
.pph-switch:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.pph-switch:disabled { cursor: not-allowed; }
.pph-switch:disabled .pph-switch-track { opacity: .6; }
.pph-consent-preference-actions { margin-top: 14px; }
.pph-consent-preference-actions button { flex: 1 1 180px; }
.pph-consent-manage {
  position: fixed;
  z-index: 2147482999;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #171717;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: #171717;
  box-shadow: 0 3px 14px rgba(0,0,0,.14);
  font: 700 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  transition: width .18s ease, background .15s ease, box-shadow .15s ease;
}
.pph-consent-manage:hover, .pph-consent-manage:focus-visible { background: #f0f0ed; }
.pph-consent-manage:focus-visible { outline: 3px solid #6b8afd; outline-offset: 2px; }
.pph-consent-manage-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; }
.pph-consent-manage-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pph-consent-manage-label { padding-left: 13px; white-space: nowrap; opacity: 0; transform: translateX(5px); transition: opacity .14s ease, transform .14s ease; }
@media (hover: hover) and (pointer: fine) {
  .pph-consent-manage:hover, .pph-consent-manage:focus-visible { width: 174px; }
  .pph-consent-manage:hover .pph-consent-manage-label, .pph-consent-manage:focus-visible .pph-consent-manage-label { opacity: 1; transform: translateX(0); }
}
@media (max-width: 520px) {
  .pph-consent-panel { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .pph-consent-panel.is-preferences { left: 50%; right: auto; top: 50%; bottom: auto; width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .pph-consent-banner-actions, .pph-consent-preference-actions { gap: 8px; }
  .pph-consent-banner-actions button, .pph-consent-preference-actions button { flex-basis: 100%; }
  .pph-consent-category { align-items: flex-start; }
  .pph-consent-manage { right: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pph-consent-manage-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pph-consent-manage, .pph-consent-manage-label { transition: none; } }
