/* All selectors scoped. No global reset, no external font/resource. */
#spcc-ui{font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17212b;--spcc-offset:0px}
#spcc-ui *,#spcc-ui *::before,#spcc-ui *::after{box-sizing:border-box}
#spcc-ui [hidden]{display:none!important}
#spcc-ui button{font:inherit;cursor:pointer;white-space:normal;min-height:44px;padding:9px 14px;border:1px solid #215b72;border-radius:6px;background:#fff;color:#163f52;box-shadow:none}
#spcc-ui button:hover{background:#edf5f7}
#spcc-ui button:focus-visible,#spcc-ui a:focus-visible,#spcc-ui input:focus-visible{outline:3px solid #134e65;outline-offset:3px}
#spcc-ui a{color:#134e65;text-decoration:underline}
#spcc-banner{position:fixed;z-index:100000;bottom:calc(var(--spcc-offset) + env(safe-area-inset-bottom,0px));left:12px;right:12px;max-width:1000px;margin:auto;background:#fff;border:1px solid #668596;border-radius:10px;padding:16px;box-shadow:0 4px 22px #0003;max-height:calc(90dvh - var(--spcc-offset));overflow:auto}
#spcc-ui .spcc-title{font-weight:700;font-size:18px;margin:0 0 8px}
#spcc-ui p{margin:0 0 10px;overflow-wrap:anywhere}
#spcc-ui .spcc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#spcc-ui .spcc-actions button{flex:1 1 140px}
#spcc-ui .spcc-equal{background:#1E6373;color:#fff;border-color:#1E6373}
#spcc-ui .spcc-equal:hover{background:#16485e}
#spcc-manage{position:fixed;z-index:99990;bottom:calc(10px + var(--spcc-offset) + env(safe-area-inset-bottom,0px));left:12px;font-size:13px!important;max-width:180px;box-shadow:0 2px 8px #0002!important}
#spcc-modal{color:inherit;border:1px solid #668596;border-radius:10px;padding:20px;background:white;width:min(660px,calc(100vw - 24px));max-height:85dvh;overflow:auto;margin:auto;z-index:100010}
#spcc-modal::backdrop{background:#0007}
#spcc-modal:not([open]){display:none}
#spcc-modal.spcc-fallback[open]{position:fixed;top:5dvh;bottom:auto;left:12px;right:12px;box-shadow:0 0 0 100vmax #0007}
#spcc-ui .spcc-row{border-top:1px solid #d9e2e7;padding:14px 0}
#spcc-ui .spcc-row label{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer;margin-bottom:8px}
#spcc-ui input[type=checkbox]{width:20px;height:20px;min-width:20px;position:static;opacity:1;margin:0}
#spcc-ui .spcc-close{float:right;min-width:44px;margin:0 0 8px 10px}
#spcc-ui .spcc-small{font-size:13px}
#spcc-ui .spcc-notice{background:#fff5dd;border-left:3px solid #9a6300;padding:10px}
#spcc-ui ul{margin:8px 0;padding-left:20px}
.spcc-embed-placeholder{padding:12px;border:1px solid #81959f;border-radius:6px;font:14px/1.5 system-ui;margin:8px 0}
.spcc-embed-placeholder button{padding:8px;min-height:44px;cursor:pointer}
@media(max-width:767px){#spcc-ui{font-size:14px;--spcc-offset:72px}#spcc-banner{padding:12px}#spcc-ui .spcc-actions button{flex-basis:calc(50% - 4px);padding:9px 8px}#spcc-ui .spcc-actions button:last-child{flex-basis:100%}#spcc-modal{padding:14px}#spcc-manage{max-width:150px}}

/* U01: geometry limited to owned media renderers; no catalogue-wide margin override. */
.spcc-held-frame{display:none!important}
.wd-product-video.spcc-held-gallery-video{display:none!important}
.spcc-gallery-slide>.wd-video-actions{display:none!important}
.spcc-gallery-slide .woocommerce-product-gallery__image>.spcc-media{position:relative!important;display:block!important;width:100%!important}
[data-sp-consent-widget-type="video.default"] .elementor-wrapper.spcc-media-container{height:auto!important;min-height:0!important;padding:0!important;aspect-ratio:auto!important;position:relative!important}
.spcc-held-widget .elementor-wrapper.spcc-media-container> .spcc-media{position:relative!important;width:100%!important;height:auto!important}
.spcc-media{margin:12px 0;border:1px solid #b1c8d2;border-radius:8px;overflow:hidden;background:#f4f9fb;color:#17212b;font:15px/1.5 system-ui;max-width:100%;box-sizing:border-box}
.spcc-media-poster{position:relative;min-height:200px;padding:20px;box-sizing:border-box;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.spcc-media-poster>img{width:min(180px,100%);height:auto;object-fit:contain}
.spcc-media-neutral{font-size:24px;font-weight:700;letter-spacing:.02em;color:#265c70}
.spcc-media-info{flex:1 1 240px;min-width:0}.spcc-media p{margin:0 0 10px!important;overflow-wrap:anywhere}
.spcc-media-title{font-weight:700}.spcc-media-scope{font-size:13px}
.spcc-media button{min-height:44px;padding:9px 13px;border:1px solid #215b72;border-radius:6px;cursor:pointer;white-space:normal;font:inherit}
.spcc-media-activate{background:#1E6373;color:white}.spcc-media-manage,.spcc-media-footer button{background:white;color:#163f52}
.spcc-media-external{display:inline-block;margin:9px 12px;color:#134e65;text-decoration:underline}
.spcc-media button:focus-visible,.spcc-media a:focus-visible{outline:3px solid #134e65;outline-offset:2px}
.spcc-media .spcc-player{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9;min-height:200px!important;border:0!important;position:relative!important}
.spcc-media-audio .spcc-player{aspect-ratio:auto;height:300px!important}.spcc-media-footer{padding:8px 12px;background:#fff}
@media(max-width:480px){.spcc-media-poster{padding:14px}.spcc-media .spcc-player{min-height:200px!important}.spcc-media-info{flex-basis:100%}}

/* R02 V3: equal choices, independently scrollable details, local permanent access. */
#spcc-modal[open]{display:flex;flex-direction:column;overflow:hidden;max-height:90dvh}
#spcc-modal>.spcc-title,#spcc-modal>.spcc-actions,#spcc-modal>.spcc-close{flex-shrink:0}
#spcc-modal>.spcc-close{position:absolute;top:8px;right:8px;margin:0}
#spcc-modal>.spcc-title{padding-right:52px;min-height:36px}
#spcc-modal .spcc-modal-body{overflow:auto;min-height:0;overscroll-behavior:contain;padding:3px}
#spcc-modal>.spcc-actions{border-top:1px solid #d9e2e7;padding-top:8px}
#spcc-modal summary{cursor:pointer;min-height:44px;padding:10px 0;list-style:revert}
#spcc-modal summary:focus-visible{outline:3px solid #134e65;outline-offset:2px}
#spcc-modal .spcc-service-details li{margin-bottom:14px}
.spcc-permanent-footer{text-align:center;padding:12px;background:#fff;color:#1E6373}
.spcc-permanent-footer a,.spcc-menu-entry a{color:inherit;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px;padding:8px 12px}
.spcc-permanent-footer a:focus-visible,.spcc-menu-entry a:focus-visible{outline:3px solid #134e65;outline-offset:2px}
#spcc-manage{font-size:12px!important;max-width:140px}
/* R02: only an existing theme popup containing a consent-managed player.
 * Keep its close control and full original text reachable on small screens. */
.custom-popup:has(.spcc-media){max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;}

/* RC5.1 — présentation issue du candidat RC1, appliquée après le CSS actif rc3.5.
   Aucun changement des catégories, reçus, chargements ou décisions. */
#spcc-ui {
  font-family: inherit;
  color: #20475a;
}
#spcc-banner {
  max-width: 920px;
  border: 1px solid #80b4c5;
  border-top: 4px solid #63a50a;
  border-radius: 14px;
  padding: 16px 20px;
  background: #fff;
  box-shadow: 0 5px 24px #163f5229;
  max-height: calc(100dvh - var(--spcc-offset) - 24px - env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}
#spcc-ui .spcc-title {
  color: #126e9d;
  font-size: 18px;
  line-height: 1.3;
}
#spcc-ui button { border-radius: 8px; }
#spcc-ui .spcc-equal {
  background: #1e6373;
  border-color: #1e6373;
  color: #fff;
  font-weight: 600;
}
#spcc-ui .spcc-equal:hover { background: #16485e; border-color: #16485e; }
#spcc-banner .spcc-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}
#spcc-banner .spcc-actions button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
}
#spcc-modal {
  border-color: #80b4c5;
  border-top: 4px solid #63a50a;
  border-radius: 14px;
}
#spcc-modal .spcc-row { border-color: #d5e6ec; }
#spcc-modal input[type=checkbox] { accent-color: #1e6373; }
#spcc-ui button:focus-visible,
#spcc-ui a:focus-visible,
#spcc-ui input:focus-visible,
#spcc-modal summary:focus-visible {
  outline: 3px solid #126e9d;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  #spcc-banner { left: 8px; right: 8px; padding: 12px; border-radius: 10px; }
  #spcc-ui .spcc-title { font-size: 17px; }
  #spcc-banner .spcc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #spcc-banner .spcc-actions button:last-child { grid-column: 1 / -1; }
  #spcc-banner .spcc-actions button { padding: 9px 8px; }
  #spcc-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
}
