/* Interface privée PRO Home Services — styles strictement limités au composant. */
#phs-cookie-ui {
  --phsc-orange: #ff7900;
  --phsc-ink: #171717;
  --phsc-muted: #51514d;
  --phsc-paper: #ffffff;
  --phsc-soft: #f6f6f2;
  --phsc-line: #d9d9d1;
  color: var(--phsc-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
#phs-cookie-ui *, #phs-cookie-ui *::before, #phs-cookie-ui *::after,
[data-phs-consent-placeholder].phsc-placeholder * { box-sizing: border-box; }
#phs-cookie-ui [hidden], [data-phs-consent-placeholder][hidden] { display: none !important; }
#phs-cookie-ui p, #phs-cookie-ui h2, #phs-cookie-ui h3 { margin: 0; padding: 0; color: inherit; }
#phs-cookie-ui button, #phs-cookie-ui input { font: inherit; }
#phs-cookie-ui button { cursor: pointer; text-transform: none; box-shadow: none; margin: 0; }
#phs-cookie-ui a { text-decoration: underline; text-underline-offset: 3px; color: var(--phsc-ink); }
#phs-cookie-ui :is(button,a,input):focus-visible,
[data-phs-consent-placeholder].phsc-placeholder :is(button,a):focus-visible {
  outline: 3px solid #a44300;
  outline-offset: 4px;
}
#phs-cookie-ui .phsc-banner {
  position: fixed;
  z-index: 2147483000;
  bottom: 24px;
  left: 24px;
  width: min(540px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 28px 30px 23px;
  border: 1px solid var(--phsc-line);
  border-top: 4px solid var(--phsc-orange);
  border-radius: 0;
  background: var(--phsc-paper);
  box-shadow: 0 10px 50px rgb(0 0 0 / 16%);
}
#phs-cookie-ui .phsc-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #863900;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1.4px;
}
#phs-cookie-ui .phsc-eyebrow::before {
  content: '';
  display: inline-block;
  width: 23px;
  height: 2px;
  flex: 0 0 23px;
  background: var(--phsc-orange);
}
#phs-cookie-ui .phsc-title {
  font-family: inherit;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 13px;
  margin-bottom: 15px;
  text-transform: none;
}
#phs-cookie-ui .phsc-copy {
  font-size: 13px;
  line-height: 1.75;
  color: #43433f;
  margin: 0 0 21px;
}
#phs-cookie-ui .phsc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#phs-cookie-ui .phsc-button,
[data-phs-consent-placeholder].phsc-placeholder .phsc-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
  transition: background-color 120ms ease, color 120ms ease;
}
#phs-cookie-ui .phsc-button-dark,
[data-phs-consent-placeholder].phsc-placeholder .phsc-button-dark {
  color: #fff;
  background: var(--phsc-ink, #171717);
  border-color: var(--phsc-ink, #171717);
}
#phs-cookie-ui .phsc-button-dark:hover,
[data-phs-consent-placeholder].phsc-placeholder .phsc-button-dark:hover { color: #fff; background: #353531; border-color: #353531; }
#phs-cookie-ui .phsc-button-customize {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin: 10px 0 12px;
  color: var(--phsc-ink);
  background: var(--phsc-soft);
  border-color: var(--phsc-line);
}
#phs-cookie-ui .phsc-button-customize:hover { background: #eeeeE7; }
#phs-cookie-ui .phsc-policy { display: inline-block; font-size: 11px; line-height: 1.6; }
#phs-cookie-ui .phsc-reopen {
  position: fixed;
  z-index: 2147483000;
  left: 24px;
  bottom: 20px;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid #555;
  background: var(--phsc-ink);
  box-shadow: 0 3px 15px rgb(0 0 0 / 15%);
  font-size: 12px;
}
#phs-cookie-ui .phsc-reopen::before { content: ''; width: 8px; height: 8px; background: var(--phsc-orange); }
#phs-cookie-ui .phsc-reopen:hover { background: #353531; }
#phs-cookie-ui .phsc-overlay {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgb(0 0 0 / 58%);
}
#phs-cookie-ui .phsc-dialog {
  position: relative;
  width: min(100%, 700px);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--phsc-paper);
  color: var(--phsc-ink);
  padding: 25px 30px 0;
  border-top: 4px solid var(--phsc-orange);
  box-shadow: 0 20px 70px rgb(0 0 0 / 25%);
}
#phs-cookie-ui .phsc-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#phs-cookie-ui .phsc-close {
  flex: 0 0 44px;
  min-height: 44px;
  width: 44px;
  padding: 0;
  background: var(--phsc-soft);
  color: var(--phsc-ink);
  border: 1px solid var(--phsc-line);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
#phs-cookie-ui .phsc-close:hover { background: #e9e9e1; }
#phs-cookie-ui .phsc-dialog .phsc-title { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; }
#phs-cookie-ui .phsc-services { border: 1px solid var(--phsc-line); }
#phs-cookie-ui .phsc-service { padding: 18px 20px; border-bottom: 1px solid var(--phsc-line); }
#phs-cookie-ui .phsc-service:last-child { border-bottom: 0; }
#phs-cookie-ui .phsc-essential { background: var(--phsc-soft); }
#phs-cookie-ui .phsc-service-heading, #phs-cookie-ui .phsc-service-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 28px;
  color: var(--phsc-ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}
#phs-cookie-ui .phsc-service-heading h3 { font-family: inherit; font-size: 15px; line-height: 1.4; font-weight: 700; text-transform: none; letter-spacing: 0; }
#phs-cookie-ui .phsc-service-label { cursor: pointer; padding: 1px 0; margin: 0; }
#phs-cookie-ui .phsc-service input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block;
  width: 23px;
  height: 23px;
  min-width: 23px;
  margin: 0 1px 0 0;
  opacity: 1;
  position: static;
  accent-color: #a44300;
  cursor: pointer;
  clip: auto;
  clip-path: none;
  transform: none;
}
#phs-cookie-ui .phsc-tag { flex: 0 0 auto; font-size: 10px; font-weight: 700; color: #44443f; border: 1px solid #c5c5bb; padding: 3px 6px; background: #fff; }
#phs-cookie-ui .phsc-service p { font-size: 12px; line-height: 1.7; color: #4b4b46; margin: 8px 0 0; }
#phs-cookie-ui .phsc-service .phsc-service-meta { font-size: 11px; margin-top: 5px; }
#phs-cookie-ui .phsc-service-privacy { display: inline-block; font-size: 11px; margin-top: 6px; }
#phs-cookie-ui .phsc-dialog-footer { position: sticky; bottom: 0; padding: 20px 0 18px; background: var(--phsc-paper); margin-top: 15px; border-top: 1px solid var(--phsc-line); }
#phs-cookie-ui .phsc-button-save { display: flex; width: 100%; margin-top: 10px; background: var(--phsc-orange); color: var(--phsc-ink); border-color: var(--phsc-orange); }
#phs-cookie-ui .phsc-button-save:hover { background: #ed7000; border-color: #ed7000; }
#phs-cookie-ui .phsc-retention { font-size: 11px; color: #51514d; line-height: 1.6; margin-top: 12px; }
#phs-cookie-ui .phsc-status { position: fixed; z-index: 2147483200; left: 24px; bottom: 76px; width: min(450px, calc(100vw - 48px)); padding: 15px 18px; border-left: 4px solid var(--phsc-orange); background: #fff; color: var(--phsc-ink); box-shadow: 0 3px 25px rgb(0 0 0 / 18%); font-size: 12px; }
[data-phs-consent-placeholder].phsc-placeholder {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 160px;
  padding: 24px;
  border: 1px solid #d9d9d1;
  border-left: 3px solid #ff7900;
  background: #f6f6f2;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}
[data-phs-consent-placeholder].phsc-placeholder p { color: #454541; font-size: 13px; line-height: 1.6; padding: 0; margin: 0; }
[data-phs-consent-placeholder].phsc-placeholder .phsc-placeholder-title { color: #171717; font-size: 16px; font-weight: 700; }
[data-phs-consent-placeholder].phsc-placeholder .phsc-button { cursor: pointer; font-family: inherit; margin: 0; text-transform: none; box-shadow: none; }
@media (max-width: 600px) {
  #phs-cookie-ui .phsc-banner { left: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); padding: 21px 20px 18px; }
  #phs-cookie-ui .phsc-title { font-size: 27px; }
  #phs-cookie-ui .phsc-copy { font-size: 12px; line-height: 1.7; margin-bottom: 17px; }
  #phs-cookie-ui .phsc-eyebrow { letter-spacing: 1px; font-size: 9px; }
  #phs-cookie-ui .phsc-overlay { padding: 12px; }
  #phs-cookie-ui .phsc-dialog { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); padding: 18px 18px 0; }
  #phs-cookie-ui .phsc-dialog .phsc-title { font-size: 31px; }
  #phs-cookie-ui .phsc-service { padding: 16px 13px; }
  #phs-cookie-ui .phsc-service-label, #phs-cookie-ui .phsc-service-heading h3 { font-size: 14px; }
  #phs-cookie-ui .phsc-service-heading { flex-wrap: wrap; gap: 8px; }
  #phs-cookie-ui .phsc-dialog-footer { padding-top: 15px; padding-bottom: 16px; }
  #phs-cookie-ui .phsc-reopen { left: 12px; bottom: 12px; }
  #phs-cookie-ui .phsc-status { left: 12px; bottom: 66px; width: calc(100vw - 24px); }
  [data-phs-consent-placeholder].phsc-placeholder { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #phs-cookie-ui .phsc-button, [data-phs-consent-placeholder].phsc-placeholder .phsc-button { transition: none; }
}
@media (forced-colors: active) {
  #phs-cookie-ui .phsc-button, #phs-cookie-ui .phsc-service, #phs-cookie-ui .phsc-banner, #phs-cookie-ui .phsc-dialog,
  [data-phs-consent-placeholder].phsc-placeholder { border: 1px solid ButtonText; }
}

/* Les médias neutralisés restent invisibles même si le thème les force en display:block. */
[data-phs-service][hidden] { display: none !important; }
iframe.phsc-video[data-phs-service] { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Biscuit-électricien original PHS : zéro fichier distant, zéro texte à lire. */
#phs-cookie-ui .phsc-welcome { display: flex; align-items: center; gap: 12px; margin: 10px 0 17px; }
#phs-cookie-ui .phsc-welcome .phsc-title { flex: 1; min-width: 0; margin: 0; font-size: clamp(25px,3vw,31px); line-height: 1.12; }
#phs-cookie-ui .phsc-cookie-mascot { position: relative; display: inline-block; flex: 0 0 112px; width: 112px; height: 110px; vertical-align: middle; pointer-events: none; }
#phs-cookie-ui .phsc-cookie-drawing { position: absolute; display: block; width: 112px; height: 110px; transform: rotate(-7deg); transform-origin: 48% 80%; }
#phs-cookie-ui .phsc-cookie-body { display: block; position: absolute; left: 5px; top: 24px; width: 80px; height: 80px; border-radius: 48% 52% 49% 51%; background: #ffc57c; border: 3px solid #171717; box-shadow: inset 0 -5px 0 #eda14a; }
#phs-cookie-ui .phsc-cookie-body > span { position: absolute; display: block; }
#phs-cookie-ui .phsc-cookie-chip-a { left: 13px; top: 12px; width: 9px; height: 8px; border-radius: 3px; background: #76452b; transform: rotate(24deg); }
#phs-cookie-ui .phsc-cookie-chip-b { left: 8px; top: 48px; width: 7px; height: 9px; border-radius: 3px; background: #76452b; transform: rotate(-22deg); }
#phs-cookie-ui .phsc-cookie-chip-c { right: 10px; bottom: 10px; width: 10px; height: 8px; border-radius: 3px; background: #76452b; transform: rotate(18deg); }
#phs-cookie-ui .phsc-cookie-chip-d { right: 19px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #76452b; }
#phs-cookie-ui .phsc-cookie-eye-left, #phs-cookie-ui .phsc-cookie-eye-right { top: 28px; width: 5px; height: 8px; border-radius: 50%; background: #171717; }
#phs-cookie-ui .phsc-cookie-eye-left { left: 23px; }
#phs-cookie-ui .phsc-cookie-eye-right { left: 45px; }
#phs-cookie-ui .phsc-cookie-smile { left: 26px; top: 39px; width: 22px; height: 13px; border: 0; border-bottom: 3px solid #171717; border-radius: 0 0 50% 50%; transform: rotate(-4deg); }
#phs-cookie-ui .phsc-cookie-bite { right: -4px; top: 11px; width: 18px; height: 21px; background: var(--phsc-paper); border: 0; border-left: 3px solid #171717; border-bottom: 3px solid #171717; border-radius: 50%; transform: rotate(24deg); }
#phs-cookie-ui .phsc-cookie-cap { display:block; position:absolute; left:21px; top:9px; width:47px; height:26px; border:3px solid #171717; border-radius:24px 24px 0 0; background:var(--phsc-orange); transform:rotate(-6deg); }
#phs-cookie-ui .phsc-cookie-cap::before { content:''; position:absolute; left:17px; top:-4px; height:17px; width:7px; border:2px solid #171717; border-radius:4px 4px 0 0; background:#ff9633; }
#phs-cookie-ui .phsc-cookie-cap::after { content:''; position:absolute; left:-8px; bottom:-4px; width:57px; height:6px; border:2px solid #171717; background:var(--phsc-orange); border-radius:3px; }
#phs-cookie-ui .phsc-cookie-cable { display:block; position:absolute; left:83px; top:57px; width:20px; height:27px; border:0; border-right:3px solid #171717; border-bottom:3px solid #171717; border-radius:0 0 10px 0; }
#phs-cookie-ui .phsc-cookie-plug { display:block; position:absolute; left:94px; top:44px; width:15px; height:18px; border:2px solid #171717; border-radius:2px 2px 6px 6px; background:var(--phsc-orange); }
#phs-cookie-ui .phsc-cookie-plug::before, #phs-cookie-ui .phsc-cookie-plug::after { content:''; position:absolute; top:-9px; width:3px; height:7px; border-radius:2px 2px 0 0; background:#171717; }
#phs-cookie-ui .phsc-cookie-plug::before { left:1px; }
#phs-cookie-ui .phsc-cookie-plug::after { right:1px; }
#phs-cookie-ui .phsc-cookie-mascot--small { flex: 0 0 34px; width:34px; height:34px; }
#phs-cookie-ui .phsc-cookie-mascot--small .phsc-cookie-drawing { transform:scale(.31); transform-origin:0 0; }
#phs-cookie-ui .phsc-reopen { gap:8px; padding:6px 13px 6px 7px; }
#phs-cookie-ui .phsc-reopen::before { display:none; }
#phs-cookie-ui .phsc-reopen .phsc-cookie-bite { background:var(--phsc-ink); }
@keyframes phsc-cookie-hello { 0%,65%,100% { transform:rotate(-7deg); } 22% { transform:rotate(2deg); } 44% { transform:rotate(-10deg); } }
@keyframes phsc-cookie-wink { 0%,44%,53%,100% { transform:scaleY(1); } 47%,50% { transform:scaleY(.18); } }
@media (prefers-reduced-motion:no-preference) {
  #phs-cookie-ui .phsc-banner .phsc-cookie-drawing { animation:phsc-cookie-hello 2.2s ease 1; }
  #phs-cookie-ui .phsc-banner .phsc-cookie-eye-right { animation:phsc-cookie-wink 2.2s ease 1; }
}
@media (max-width:420px) {
  #phs-cookie-ui .phsc-welcome { gap:8px; margin-bottom:15px; }
  #phs-cookie-ui .phsc-welcome .phsc-title { font-size:25px; }
  #phs-cookie-ui .phsc-welcome .phsc-cookie-mascot { flex-basis:78px; width:78px; height:80px; }
  #phs-cookie-ui .phsc-welcome .phsc-cookie-drawing { scale:.72; transform-origin:0 0; }
}
