:root {
  --haap-max: 1180px;
  --haap-side: 96px;
  --haap-center-min: 78px;
  --haap-page-gap: 18px;

  --haap-bg: rgba(255,255,255,.94);
  --haap-header-bg: #fff;
  --haap-bg-strong: #fff;
  --haap-text: #21192f;
  --haap-muted: rgba(33,25,47,.64);
  --haap-border: rgba(82,61,126,.18);
  --haap-border-strong: rgba(116,76,255,.30);
  --haap-accent: #744cff;
  --haap-accent-soft: rgba(116,76,255,.11);
  --haap-chat-1: #7C3AED;
  --haap-chat-2: #5B21B6;
  --haap-chat-border: rgba(124,58,237,.50);
  --haap-chat-glow: rgba(91,33,182,.24);
  --haap-danger: #e84080;
  --haap-open-red: #ef3340;
  --haap-open-red-soft: rgba(239,51,64,.22);

  --haap-grad-l1: #5B21B6;
  --haap-grad-l2: #7C3AED;
  --haap-grad-l3: #A78BFA;
  --haap-grad-d1: #F4EEFF;
  --haap-grad-d2: #C4B5FD;
  --haap-grad-d3: #8B5CF6;
  --haap-title-g1: var(--haap-grad-l1);
  --haap-title-g2: var(--haap-grad-l2);
  --haap-title-g3: var(--haap-grad-l3);

  --haap-title-desktop: 17px;
  --haap-title-mobile: 14px;
  --haap-subtitle-desktop: 11px;
  --haap-subtitle-mobile: 9px;

  --haap-shadow: 0 18px 44px rgba(35,24,55,.13),0 4px 12px rgba(35,24,55,.06);
  --haap-panel-shadow: 0 26px 72px rgba(29,19,48,.24);
}

html[data-theme="dark"] {
  --haap-bg: rgba(29,25,39,.96);
  --haap-header-bg: #1d1927;
  --haap-bg-strong: #241f30;
  --haap-text: #f5efff;
  --haap-muted: rgba(232,222,247,.68);
  --haap-border: rgba(255,255,255,.12);
  --haap-border-strong: rgba(174,151,255,.32);
  --haap-accent: #ae97ff;
  --haap-accent-soft: rgba(174,151,255,.14);
  --haap-chat-1: #7C3AED;
  --haap-chat-2: #5B21B6;
  --haap-chat-border: rgba(196,181,253,.38);
  --haap-chat-glow: rgba(0,0,0,.30);
  --haap-danger: #ff5c99;
  --haap-title-g1: var(--haap-grad-d1);
  --haap-title-g2: var(--haap-grad-d2);
  --haap-title-g3: var(--haap-grad-d3);
  --haap-shadow: 0 20px 50px rgba(0,0,0,.34),0 5px 14px rgba(0,0,0,.20);
  --haap-panel-shadow: 0 30px 82px rgba(0,0,0,.50);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --haap-bg: rgba(29,25,39,.96);
    --haap-header-bg: #1d1927;
    --haap-bg-strong: #241f30;
    --haap-text: #f5efff;
    --haap-muted: rgba(232,222,247,.68);
    --haap-border: rgba(255,255,255,.12);
    --haap-border-strong: rgba(174,151,255,.32);
    --haap-accent: #ae97ff;
    --haap-accent-soft: rgba(174,151,255,.14);
    --haap-chat-1: #7C3AED;
    --haap-chat-2: #5B21B6;
    --haap-chat-border: rgba(196,181,253,.38);
    --haap-chat-glow: rgba(0,0,0,.30);
    --haap-danger: #ff5c99;
    --haap-title-g1: var(--haap-grad-d1);
    --haap-title-g2: var(--haap-grad-d2);
    --haap-title-g3: var(--haap-grad-d3);
    --haap-shadow: 0 20px 50px rgba(0,0,0,.34),0 5px 14px rgba(0,0,0,.20);
    --haap-panel-shadow: 0 30px 82px rgba(0,0,0,.50);
  }
}

.haap-header-host {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index:2147483647!important;
  width: 100%;
  margin: 0;
  padding: env(safe-area-inset-top,0px) 12px 0;
  opacity: 1;
  transform: translate3d(0,0,0);
  transition: transform .38s cubic-bezier(.22,.75,.24,1),opacity .28s ease;
  will-change: transform,opacity;
  pointer-events: none;
}
.haap-header-host.is-hidden {
  opacity: 0;
  transform: translate3d(0,calc(-100% - 18px),0);
  pointer-events: none;
}
.haap-header-host.is-hidden .haap-header-shell { pointer-events: none; }
.haap-header-host.is-visible { opacity: 1; transform: translate3d(0,0,0); }
body.admin-bar .haap-header-host { top: 32px; }
@media (max-width:782px) { body.admin-bar .haap-header-host { top: 46px; } }

.haap-header-shell {
  position: relative;
  width: 100%;
  max-width: var(--haap-max);
  margin: 0 auto;
  pointer-events: auto;
  animation: haap-header-first-appearance .48s cubic-bezier(.22,.75,.24,1) both;
}
@keyframes haap-header-first-appearance {
  from { opacity: 0; transform: translate3d(0,-28px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
.haap-header-spacer { width:100%; height:0; margin:0 0 var(--haap-page-gap); pointer-events:none; }

.haap-header {
  position: relative;
  display: grid;
  grid-template-columns: var(--haap-side) minmax(0,1fr) var(--haap-side);
  align-items: center;
  width: 100%;
  filter: drop-shadow(0 16px 24px rgba(25,16,42,.13));
}
.haap-segment {
  position: relative;
  padding: 1px;
  background: var(--haap-border);
  color: var(--haap-text);
}
.haap-segment__inner {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(540px 180px at 50% -40%,var(--haap-accent-soft),transparent 70%),
    var(--haap-header-bg);
}

.haap-logo {
  z-index: 3;
  width: var(--haap-side);
  height: var(--haap-side);
  min-width: var(--haap-side);
  min-height: var(--haap-side);
  display: block;
  clip-path: polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%);
  border-radius: 30px 0 0 30px;
  text-decoration: none!important;
}
.haap-logo .haap-segment__inner {
  display:flex; align-items:center; justify-content:center;
  padding:7px 17px 7px 7px;
  clip-path:inherit; border-radius:inherit;
}
.haap-logo img { display:block; width:100%; height:100%; object-fit:contain; transform:scale(1.07); transform-origin:center; }
html[data-theme="light"] .haap-logo--dark,html[data-theme="dark"] .haap-logo--light { display:block; }
html[data-theme="light"] .haap-logo--light,html[data-theme="dark"] .haap-logo--dark { display:none; }
@media (prefers-color-scheme:dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .haap-logo--dark { display:none; }
  html:not([data-theme="light"]):not([data-theme="dark"]) .haap-logo--light { display:block; }
}

.haap-title-segment {
  z-index:1;
  min-width:0;
  min-height:var(--haap-center-min);
  margin-inline:-13px;
  clip-path:polygon(16px 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,16px 100%,0 50%);
}
.haap-title-segment .haap-segment__inner {
  position: relative;
  min-height:var(--haap-center-min);
  padding:10px 31px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  clip-path:inherit;
  overflow:hidden;
}
.haap-title-segment .haap-segment__inner::after {
  content:"";
  position:absolute;
  inset:1px 18px auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);
  opacity:.68;
  pointer-events:none;
}
html[data-theme="dark"] .haap-title-segment .haap-segment__inner::after { opacity:.20; }
@media (prefers-color-scheme:dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .haap-title-segment .haap-segment__inner::after { opacity:.20; }
}

.haap-category {
  align-self:flex-start;
  max-width:100%;
  padding:4px 10px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--haap-accent)!important;
  background:var(--haap-accent-soft);
  border:1px solid var(--haap-border-strong);
  border-radius:999px;
  font-size:10px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:.035em;
  text-transform:uppercase;
  text-decoration:none!important;
}
.haap-category::before { content:""; width:6px; height:6px; flex:0 0 6px; background:currentColor; border-radius:50%; box-shadow:0 0 0 4px var(--haap-accent-soft); }

.haap-title-copy { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:2px; }
.haap-title {
  min-width:0;
  margin:0;
  display:inline;
  width:fit-content;
  max-width:100%;
  background:linear-gradient(105deg,var(--haap-title-g1) 0%,var(--haap-title-g2) 48%,var(--haap-title-g3) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  font-size:clamp(14px,1.45vw,var(--haap-title-desktop));
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.025em;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:normal;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.20));
}
html[data-theme="dark"] .haap-title { filter:drop-shadow(0 2px 8px rgba(115,79,255,.12)); }
@media (prefers-color-scheme:dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .haap-title { filter:drop-shadow(0 2px 8px rgba(115,79,255,.12)); }
}
.haap-subtitle {
  min-width:0;
  max-width:100%;
  color:var(--haap-muted);
  font-size:var(--haap-subtitle-desktop);
  font-weight:650;
  line-height:1.25;
  letter-spacing:-.005em;
  white-space:normal;
  overflow-wrap:anywhere;
}

.haap-account-toggle {
  z-index:3;
  appearance:none; -webkit-appearance:none;
  width:var(--haap-side); height:var(--haap-side); min-width:var(--haap-side); min-height:var(--haap-side);
  margin:0; padding:1px;
  clip-path:polygon(15px 0,100% 0,100% 100%,15px 100%,0 50%);
  border:0; border-radius:0 30px 30px 0; cursor:pointer;
}
.haap-account-toggle .haap-segment__inner { position:relative; display:flex; align-items:center; justify-content:center; padding:7px 7px 7px 17px; clip-path:inherit; border-radius:inherit; }
.haap-account-toggle:hover,.haap-logo:hover { background:var(--haap-border-strong); }
.haap-account-toggle[aria-expanded="true"] { background:var(--haap-open-red)!important; filter:drop-shadow(0 0 10px var(--haap-open-red-soft)); }
.haap-account-toggle[aria-expanded="true"] .haap-avatar,.haap-account-toggle[aria-expanded="true"] .haap-account-icon { border-color:var(--haap-open-red); box-shadow:0 0 0 3px var(--haap-open-red-soft),0 9px 22px rgba(31,20,51,.17); }
.haap-account-toggle[aria-expanded="true"] .haap-account-icon { color:var(--haap-open-red); background:var(--haap-open-red-soft); }
.haap-account-toggle:focus-visible,.haap-logo:focus-visible { outline:3px solid var(--haap-accent); outline-offset:4px; }

.haap-avatar { display:block; width:58px; height:58px; object-fit:cover; border:2px solid var(--haap-bg-strong); border-radius:19px; box-shadow:0 9px 22px rgba(31,20,51,.17),0 0 0 1px var(--haap-border-strong); }
.haap-account-icon { width:52px; height:52px; display:flex; align-items:center; justify-content:center; color:var(--haap-accent); background:var(--haap-accent-soft); border:1px solid var(--haap-border-strong); border-radius:18px; }
.haap-account-person { position:relative!important; width:24px!important; height:24px!important; display:block!important; color:currentColor!important; }
.haap-account-person::before { content:""!important; position:absolute!important; left:50%!important; top:2px!important; width:8px!important; height:8px!important; border:1.9px solid currentColor!important; border-radius:50%!important; transform:translateX(-50%)!important; box-sizing:border-box!important; }
.haap-account-person::after { content:""!important; position:absolute!important; left:50%!important; bottom:1px!important; width:18px!important; height:10px!important; border:1.9px solid currentColor!important; border-bottom:0!important; border-radius:12px 12px 0 0!important; transform:translateX(-50%)!important; box-sizing:border-box!important; }
.haap-status-dot { position:absolute; top:16px; right:15px; width:11px; height:11px; background:var(--haap-danger); border:2px solid var(--haap-bg-strong); border-radius:50%; box-shadow:0 0 0 4px rgba(232,64,128,.15); }
.haap-status-dot--online { background:#35c888; box-shadow:0 0 0 4px rgba(53,200,136,.15); }

.haap-overlay {
  position:fixed!important;
  inset:0!important;
  z-index:2147483646!important;
  background:rgba(12,8,20,.18)!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,visibility .18s ease;
}
.haap-overlay.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.haap-panel {
  position:fixed!important;
  top:var(--haap-panel-top,104px)!important;
  right:var(--haap-panel-right,12px)!important;
  left:auto!important;
  bottom:auto!important;
  z-index:2147483647!important;
  width:min(390px,calc(100vw - 24px))!important;
  max-height:min(680px,calc(100dvh - var(--haap-panel-top,104px) - 8px))!important;
  padding:14px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  color:var(--haap-text)!important;
  background:var(--haap-bg)!important;
  border:1px solid var(--haap-border)!important;
  border-radius:25px!important;
  box-shadow:var(--haap-panel-shadow)!important;
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px) scale(.98);
  transform-origin:top right;
  transition:opacity .18s ease,visibility .18s ease,transform .18s ease;
  -webkit-backdrop-filter:blur(24px) saturate(155%);
  backdrop-filter:blur(24px) saturate(155%);
  isolation:isolate!important;
}
.haap-panel.is-open { opacity:1; visibility:visible; transform:translateY(0) scale(1); }

/* Carte profil premium : le profil reste simple. La fermeture vit désormais tout en bas du panneau. */
.haap-profile-card {
  position:relative!important;
  min-height:84px!important;
  padding:12px!important;
  display:block!important;
  background:var(--haap-bg-strong)!important;
  border:1px solid var(--haap-border)!important;
  border-radius:19px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.haap-profile-main {
  position:relative!important;
  z-index:1!important;
  min-width:0!important;
  width:100%!important;
  min-height:60px!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:center!important;
  gap:13px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.haap-profile-copy {
  min-width:0!important;
  width:100%!important;
}

/* Chat premium : on neutralise les styles globaux du thème. Aucun SVG. */
body .haap-panel button.haap-chat-cta {
  all:unset!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:62px!important;
  margin:10px 0 0!important;
  padding:9px 12px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 26px!important;
  align-items:center!important;
  gap:11px!important;
  color:#fff!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,0) 42%),
    linear-gradient(135deg,#8b63ff 0%,#7547f1 47%,#6032d9 100%)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:17px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(63,25,146,.24),
    0 12px 28px rgba(95,51,217,.24),
    0 2px 7px rgba(45,25,70,.10)!important;
  font-family:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
  overflow:hidden!important;
  isolation:isolate!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
body .haap-panel button.haap-chat-cta:hover {
  color:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(63,25,146,.20),
    0 15px 34px rgba(95,51,217,.30),
    0 3px 9px rgba(45,25,70,.12)!important;
  filter:saturate(1.05) brightness(1.02)!important;
}
body .haap-panel button.haap-chat-cta:active { transform:translateY(0) scale(.992)!important; }
body .haap-panel button.haap-chat-cta:focus-visible { outline:3px solid var(--haap-accent)!important; outline-offset:3px!important; }
body .haap-panel .haap-chat-cta-icon {
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.23)!important;
  border-radius:12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 5px 12px rgba(50,18,119,.14)!important;
}
body .haap-panel .haap-chat-bubble {
  position:relative!important;
  width:19px!important;
  height:15px!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:1.8px solid currentColor!important;
  border-radius:6px!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
body .haap-panel .haap-chat-bubble::before {
  content:""!important;
  position:absolute!important;
  left:4px!important;
  top:5px!important;
  width:2px!important;
  height:2px!important;
  border-radius:999px!important;
  background:currentColor!important;
  box-shadow:4px 0 0 currentColor,8px 0 0 currentColor!important;
}
body .haap-panel .haap-chat-bubble::after {
  content:""!important;
  position:absolute!important;
  left:3px!important;
  bottom:-4px!important;
  width:6px!important;
  height:6px!important;
  background:transparent!important;
  border-left:1.8px solid currentColor!important;
  border-bottom:1.8px solid currentColor!important;
  transform:skew(-26deg) rotate(-18deg)!important;
  transform-origin:center!important;
}
body .haap-panel .haap-chat-cta-copy {
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  text-align:left!important;
}
body .haap-panel .haap-chat-cta-copy strong {
  width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:12.8px!important;
  font-weight:850!important;
  line-height:1.18!important;
  white-space:normal!important;
}
body .haap-panel .haap-chat-cta-copy small {
  width:100%!important;
  margin:0!important;
  padding:0!important;
  color:rgba(255,255,255,.80)!important;
  font-family:inherit!important;
  font-size:9.7px!important;
  font-weight:650!important;
  line-height:1.18!important;
  white-space:normal!important;
}
body .haap-panel .haap-chat-cta-arrow {
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0 0 1px!important;
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.17)!important;
  border-radius:9px!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1!important;
}

.haap-panel-avatar { display:block; width:58px; height:58px; object-fit:cover; border-radius:18px; box-shadow:0 0 0 1px var(--haap-border-strong); }
.haap-profile-name { margin:0; color:var(--haap-text); font-size:16px; font-weight:850; line-height:1.25; }
.haap-profile-meta { margin:4px 0 0; color:var(--haap-muted); font-size:12.5px; line-height:1.4; overflow-wrap:anywhere; }
.haap-panel-section { margin-top:12px; padding:14px; background:var(--haap-bg-strong); border:1px solid var(--haap-border); border-radius:19px; }
.haap-section-title { margin:0 0 10px; color:var(--haap-text); font-size:12px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.haap-theme-switch { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:5px; background:var(--haap-accent-soft); border:1px solid var(--haap-border); border-radius:15px; }
.haap-theme-option { appearance:none; -webkit-appearance:none; min-height:38px; padding:7px 8px; color:var(--haap-muted); background:transparent; border:0; border-radius:11px; font-size:12px; font-weight:800; cursor:pointer; }
.haap-theme-option.is-active { color:var(--haap-text); background:var(--haap-bg-strong); box-shadow:0 5px 16px rgba(30,20,49,.12); }
.haap-panel-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:12px; }
.haap-button { min-height:44px; padding:10px 14px; display:inline-flex; align-items:center; justify-content:center; gap:8px; color:var(--haap-text)!important; background:var(--haap-bg-strong); border:1px solid var(--haap-border); border-radius:14px; font-size:13px; font-weight:800; text-align:center; text-decoration:none!important; }
.haap-button--primary { color:#fff!important; background:linear-gradient(135deg,#815bff,#6236e8); border-color:transparent; box-shadow:0 11px 25px rgba(116,76,255,.27); }
.haap-button--danger { color:var(--haap-danger)!important; }
.haap-button:hover,.haap-theme-option:hover { transform:translateY(-1px); }
.haap-button:focus-visible,.haap-theme-option:focus-visible,.haap-account-toggle:focus-visible { outline:3px solid var(--haap-accent); outline-offset:3px; }
.haap-panel-footer {
  width:100%!important;
  box-sizing:border-box!important;
  margin:13px 0 0!important;
  padding:0 2px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  color:var(--haap-muted)!important;
  text-align:center!important;
  overflow:visible!important;
}
body .haap-panel footer.haap-panel-footer .haap-panel-footer-inner {
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:0!important;
  color:var(--haap-muted)!important;
  font-family:inherit!important;
  font-size:9px!important;
  font-weight:650!important;
  line-height:1.2!important;
  letter-spacing:-.01em!important;
  text-align:center!important;
  white-space:nowrap!important;
}
body .haap-panel footer.haap-panel-footer a {
  display:inline!important;
  margin:0!important;
  padding:0!important;
  color:var(--haap-muted)!important;
  font-family:inherit!important;
  font-size:9px!important;
  font-weight:650!important;
  line-height:1.2!important;
  letter-spacing:-.01em!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
body .haap-panel footer.haap-panel-footer a:hover { color:var(--haap-accent)!important; text-decoration:underline!important; text-underline-offset:2px!important; }
body .haap-panel footer.haap-panel-footer span {
  display:inline!important;
  margin:0 4px!important;
  padding:0!important;
  color:var(--haap-muted)!important;
  opacity:.48!important;
  font-size:7px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Zone dédiée tout en bas : robuste, centrée et indépendante du profil. */
body .haap-panel .haap-panel-close-zone {
  width:100%!important;
  box-sizing:border-box!important;
  margin:12px 0 0!important;
  padding:12px 0 2px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-top:1px solid var(--haap-border)!important;
  background:transparent!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close {
  all:unset!important;
  box-sizing:border-box!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:var(--haap-open-red)!important;
  background:
    linear-gradient(145deg,rgba(239,51,64,.11),rgba(239,51,64,.025)),
    var(--haap-bg-strong)!important;
  border:1px solid rgba(239,51,64,.58)!important;
  border-radius:14px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 8px 18px rgba(45,24,66,.10),
    0 0 0 3px rgba(239,51,64,.04)!important;
  font-family:Arial,Helvetica,sans-serif!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close > span {
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0 0 2px!important;
  color:inherit!important;
  background:transparent!important;
  border:0!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:28px!important;
  font-weight:300!important;
  line-height:1!important;
  pointer-events:none!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close:hover {
  background:
    linear-gradient(145deg,rgba(239,51,64,.17),rgba(239,51,64,.05)),
    var(--haap-bg-strong)!important;
  border-color:var(--haap-open-red)!important;
  transform:translateY(-1px)!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close:active { transform:translateY(0) scale(.97)!important; }
body .haap-panel .haap-panel-close-zone button.haap-panel-close:focus-visible { outline:3px solid var(--haap-accent)!important; outline-offset:3px!important; }

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

body.single-ha_resource .ha-resource-header,
body.single-ha_resource .ha-resource-reader-header,
body.single-ha_resource .ha-resource-reader__header,
body.single-ha_resource .ha-resource-single__header,
body.single-ha_resource .ha-resource-single-header,
body.single-ha_resource .ha-resource-reader > header,
body.single-ha_resource .ha-resource-single > header,
body.single-ha_resource article.ha-resource-single > header,
body.single-ha_resource .page-header,
body.single-ha_resource .entry-header,
body.single-ha_resource h1.entry-title,
body.single-ha_resource .ha-resource-categories,
body.single-ha_resource .ha-resource-category-list,
body.single-ha_resource .ha-resource-taxonomies,
body.single-ha_resource .ha-resource-title,
body.single-ha_resource .ha-resource-reader__title,
body.single-ha_resource .ha-resource-meta,
body.single-ha_resource .ha-resource-reader__meta { display:none!important; }
body.single-ha_resource .ha-resource-single,
body.single-ha_resource .ha-resource-reader,
body.single-ha_resource .ha-resource-reader-content,
body.single-ha_resource .ha-resource-content-wrap { margin-top:0!important; padding-top:0!important; }
body.single-ha_resource .ha-resource-featured-image,
body.single-ha_resource figure.ha-resource-featured-image,
body.single-ha_resource .ha-resource-reader__featured-image,
body.single-ha_resource .ha-resource-single__featured-image,
body.single-ha_resource .ha-resource-single > :first-child,
body.single-ha_resource .ha-resource-reader > :first-child,
body.single-ha_resource .ha-resource-reader-content > :first-child { margin-top:0!important; }

@media (max-width:680px) {
  :root { --haap-side:74px; --haap-center-min:68px; --haap-page-gap:14px; }
  .haap-header-host { padding:env(safe-area-inset-top,0px) 6px 0; }
  .haap-logo { border-radius:24px 0 0 24px; }
  .haap-account-toggle { border-radius:0 24px 24px 0; }
  .haap-title-segment { margin-inline:-11px; }
  .haap-title-segment .haap-segment__inner { padding:8px 23px; gap:4px; }
  .haap-title { font-size:clamp(11.5px,3.2vw,var(--haap-title-mobile)); line-height:1.16; letter-spacing:-.023em; }
  .haap-subtitle { font-size:var(--haap-subtitle-mobile); line-height:1.18; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .haap-category { max-width:100%; padding:3px 7px; font-size:8px; }
  .haap-logo .haap-segment__inner { padding:6px 14px 6px 5px; }
  .haap-account-toggle .haap-segment__inner { padding:6px 5px 6px 14px; }
  .haap-avatar { width:45px; height:45px; border-radius:15px; }
  .haap-account-icon { width:44px; height:44px; border-radius:15px; }
  .haap-status-dot { top:12px; right:11px; width:9px; height:9px; }
  .haap-panel { width:calc(100vw - 12px)!important; border-radius:21px!important; }
}
@media (max-width:420px) {
  :root { --haap-side:64px; --haap-center-min:64px; }
  .haap-title-segment .haap-segment__inner { padding-inline:19px; padding-block:7px; }
  .haap-title { font-size:min(var(--haap-title-mobile),11.5px); }
  .haap-subtitle { font-size:min(var(--haap-subtitle-mobile),8.5px); }
  .haap-category { font-size:7.5px; }
  .haap-avatar,.haap-account-icon { width:40px; height:40px; }
  .haap-panel-actions { grid-template-columns:1fr; }
}
@media (max-width:420px) {
  .haap-profile-card { min-height:78px!important; padding:10px!important; }
  .haap-profile-main { min-height:56px!important; grid-template-columns:40px minmax(0,1fr)!important; gap:10px!important; padding:0!important; }
  body .haap-panel button.haap-chat-cta { min-height:54px!important; padding:8px 10px!important; grid-template-columns:34px minmax(0,1fr) 22px!important; gap:9px!important; }
  body .haap-panel .haap-chat-cta-icon { width:34px!important; min-width:34px!important; max-width:34px!important; height:34px!important; min-height:34px!important; max-height:34px!important; border-radius:11px!important; }
  body .haap-panel .haap-chat-bubble { width:17px!important; height:14px!important; }
  body .haap-panel .haap-chat-cta-copy strong { font-size:12px!important; }
  body .haap-panel .haap-chat-cta-copy small { font-size:9px!important; }
  body .haap-panel footer.haap-panel-footer .haap-panel-footer-inner,
  body .haap-panel footer.haap-panel-footer a { font-size:8.2px!important; letter-spacing:-.018em!important; }
  body .haap-panel footer.haap-panel-footer span { margin-inline:3px!important; font-size:6px!important; }
  body .haap-panel .haap-panel-close-zone { margin-top:10px!important; padding-top:10px!important; }
  body .haap-panel .haap-panel-close-zone button.haap-panel-close { width:44px!important; min-width:44px!important; max-width:44px!important; height:44px!important; min-height:44px!important; max-height:44px!important; border-radius:13px!important; }
}
@media (max-width:350px) {
  body .haap-panel footer.haap-panel-footer .haap-panel-footer-inner,
  body .haap-panel footer.haap-panel-footer a { font-size:7.4px!important; letter-spacing:-.025em!important; }
  body .haap-panel footer.haap-panel-footer span { margin-inline:2px!important; font-size:5.5px!important; }
}
@media (prefers-reduced-motion:reduce) {
  .haap-header-host,.haap-overlay,.haap-panel,.haap-button,.haap-theme-option,.haap-panel-close,.haap-chat-cta { transition:none!important; }
  .haap-header-shell { animation:none!important; }
}


/* ==========================================================================\n   V5.0 — PANEL ACCOUNT : centrage global + chat Hypno-Alchimiste responsive\n   ========================================================================== */
.haap-panel,
.haap-panel * { box-sizing:border-box; }
.haap-panel { overflow-x:clip!important; }
.haap-panel > * { max-width:100%!important; }

/* Profil : avatar, nom et e-mail parfaitement centrés sur tous les supports. */
body .haap-panel .haap-profile-card {
  text-align:center!important;
}
body .haap-panel .haap-profile-main {
  width:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
}
body .haap-panel .haap-panel-avatar,
body .haap-panel .haap-account-icon {
  margin-left:auto!important;
  margin-right:auto!important;
  flex:0 0 auto!important;
}
body .haap-panel .haap-profile-copy {
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
body .haap-panel .haap-profile-name,
body .haap-panel .haap-profile-meta {
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}

/* Chat : deux lignes réelles, largeur contenue, aucune couleur rouge. */
body .haap-panel button.haap-chat-cta {
  all:unset!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:66px!important;
  margin:11px 0 0!important;
  padding:10px 11px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 38px!important;
  align-items:center!important;
  justify-items:center!important;
  gap:8px!important;
  overflow:hidden!important;
  color:#fff!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,0) 44%),
    linear-gradient(135deg,var(--haap-chat-1),var(--haap-chat-2))!important;
  border:1px solid var(--haap-chat-border)!important;
  border-radius:17px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(55,17,130,.25),
    0 12px 28px var(--haap-chat-glow),
    0 2px 7px rgba(45,25,70,.10)!important;
  font-family:inherit!important;
  text-align:center!important;
  cursor:pointer!important;
  isolation:isolate!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
body .haap-panel button.haap-chat-cta:hover {
  color:#fff!important;
  transform:translateY(-1px)!important;
  filter:saturate(1.06) brightness(1.025)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(55,17,130,.20),
    0 15px 34px var(--haap-chat-glow),
    0 3px 9px rgba(45,25,70,.12)!important;
}
body .haap-panel button.haap-chat-cta:active { transform:translateY(0) scale(.992)!important; }
body .haap-panel button.haap-chat-cta:focus-visible { outline:3px solid var(--haap-accent)!important; outline-offset:3px!important; }
body .haap-panel .haap-chat-cta-icon,
body .haap-panel .haap-chat-cta-arrow {
  justify-self:center!important;
  margin:0!important;
  color:#fff!important;
}
body .haap-panel .haap-chat-cta-icon {
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18)!important;
}
body .haap-panel .haap-chat-cta-copy {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:center!important;
  gap:3px!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  text-align:center!important;
  overflow:hidden!important;
}
body .haap-panel .haap-chat-cta-copy strong,
body .haap-panel .haap-chat-cta-copy small {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  color:#fff!important;
  font-family:inherit!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
}
body .haap-panel .haap-chat-cta-copy strong {
  font-size:clamp(11.5px,2.5vw,13px)!important;
  font-weight:850!important;
  line-height:1.16!important;
}
body .haap-panel .haap-chat-cta-copy small {
  color:rgba(255,255,255,.82)!important;
  font-size:clamp(8.4px,1.9vw,9.7px)!important;
  font-weight:650!important;
  line-height:1.16!important;
}
body .haap-panel .haap-chat-cta-arrow {
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 0 1px!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:10px!important;
  font-size:15px!important;
  line-height:1!important;
}

/* Le reste du panneau suit le même axe visuel centré. */
body .haap-panel .haap-section-title { text-align:center!important; }
body .haap-panel .haap-panel-actions { width:100%!important; }
body .haap-panel .haap-button { text-align:center!important; }
body .haap-panel footer.haap-panel-footer {
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  text-align:center!important;
}
body .haap-panel footer.haap-panel-footer .haap-panel-footer-inner {
  width:auto!important;
  max-width:100%!important;
  margin-inline:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  text-align:center!important;
  white-space:nowrap!important;
}
body .haap-panel footer.haap-panel-footer a {
  text-align:center!important;
  white-space:nowrap!important;
}

/* Fermeture : zone et bouton réellement centrés, avec la DA violette. */
body .haap-panel .haap-panel-close-zone {
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  place-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close {
  all:unset!important;
  box-sizing:border-box!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  margin:0 auto!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  justify-self:center!important;
  color:var(--haap-accent)!important;
  background:
    linear-gradient(145deg,var(--haap-accent-soft),rgba(116,76,255,.025)),
    var(--haap-bg-strong)!important;
  border:1px solid var(--haap-border-strong)!important;
  border-radius:14px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 8px 18px rgba(45,24,66,.10),
    0 0 0 3px rgba(116,76,255,.035)!important;
  cursor:pointer!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close > span {
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  padding:0 0 2px!important;
  color:inherit!important;
  font-size:28px!important;
  line-height:1!important;
}
body .haap-panel .haap-panel-close-zone button.haap-panel-close:hover {
  color:var(--haap-accent)!important;
  background:
    linear-gradient(145deg,rgba(116,76,255,.17),rgba(116,76,255,.05)),
    var(--haap-bg-strong)!important;
  border-color:var(--haap-accent)!important;
  transform:translateY(-1px)!important;
}

@media (max-width:420px) {
  body .haap-panel .haap-profile-main {
    grid-template-columns:none!important;
    gap:7px!important;
  }
  body .haap-panel button.haap-chat-cta {
    min-height:62px!important;
    padding:9px 8px!important;
    grid-template-columns:34px minmax(0,1fr) 34px!important;
    gap:6px!important;
  }
  body .haap-panel .haap-chat-cta-icon {
    width:34px!important; min-width:34px!important; max-width:34px!important;
    height:34px!important; min-height:34px!important; max-height:34px!important;
  }
  body .haap-panel .haap-chat-cta-arrow {
    width:28px!important; min-width:28px!important; max-width:28px!important;
    height:28px!important; min-height:28px!important; max-height:28px!important;
  }
  body .haap-panel .haap-chat-cta-copy strong { font-size:11.4px!important; }
  body .haap-panel .haap-chat-cta-copy small { font-size:8.4px!important; }
}
@media (max-width:350px) {
  body .haap-panel button.haap-chat-cta {
    grid-template-columns:30px minmax(0,1fr) 30px!important;
    gap:5px!important;
    padding-inline:7px!important;
  }
  body .haap-panel .haap-chat-cta-icon {
    width:30px!important; min-width:30px!important; max-width:30px!important;
    height:30px!important; min-height:30px!important; max-height:30px!important;
  }
  body .haap-panel .haap-chat-cta-arrow {
    width:26px!important; min-width:26px!important; max-width:26px!important;
    height:26px!important; min-height:26px!important; max-height:26px!important;
  }
  body .haap-panel .haap-chat-cta-copy strong { font-size:10.6px!important; }
  body .haap-panel .haap-chat-cta-copy small { font-size:7.7px!important; }
}

/* ==========================================================================\n   V5.1 — PASTILLE DE THÈME FLOTTANTE\n   ========================================================================== */
.haap-theme-fab {
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:10px!important;
  z-index:20!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:1px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  color:var(--haap-accent)!important;
  background:linear-gradient(145deg,var(--haap-border-strong),var(--haap-border))!important;
  border:0!important;
  border-radius:17px!important;
  box-shadow:0 14px 30px rgba(31,20,51,.16),0 3px 8px rgba(31,20,51,.08)!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  isolation:isolate!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:transform .16s ease,opacity .16s ease,visibility .16s ease,filter .16s ease,box-shadow .16s ease!important;
}
.haap-theme-fab__inner {
  position:relative!important;
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  color:inherit!important;
  background:radial-gradient(70px 46px at 50% -18%,var(--haap-accent-soft),transparent 70%),var(--haap-bg-strong)!important;
  border-radius:16px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.58)!important;
}
html[data-theme="dark"] .haap-theme-fab__inner { box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important; }
@media (prefers-color-scheme:dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .haap-theme-fab__inner { box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important; }
}
.haap-theme-fab:hover {
  transform:translateY(-2px)!important;
  filter:saturate(1.06)!important;
  box-shadow:0 17px 35px rgba(31,20,51,.19),0 4px 10px rgba(31,20,51,.09)!important;
}
.haap-theme-fab:active { transform:translateY(0) scale(.96)!important; }
.haap-theme-fab:focus-visible { outline:3px solid var(--haap-accent)!important; outline-offset:3px!important; }
body.haap-account-open .haap-theme-fab {
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-4px) scale(.94)!important;
}
.haap-theme-icon {
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  display:block!important;
  transform:translate(-50%,-50%)!important;
  transition:opacity .18s ease,transform .22s cubic-bezier(.22,.75,.24,1)!important;
}
.haap-theme-icon--moon {
  width:19px!important;
  height:19px!important;
  border:2px solid currentColor!important;
  border-radius:50%!important;
  box-sizing:border-box!important;
}
.haap-theme-icon--moon::after {
  content:""!important;
  position:absolute!important;
  width:16px!important;
  height:16px!important;
  left:5px!important;
  top:-4px!important;
  background:var(--haap-bg-strong)!important;
  border-radius:50%!important;
}
.haap-theme-icon--sun {
  width:17px!important;
  height:17px!important;
  border:2px solid currentColor!important;
  border-radius:50%!important;
  box-sizing:border-box!important;
  opacity:0!important;
  transform:translate(-50%,-50%) rotate(-25deg) scale(.72)!important;
}
.haap-theme-icon--sun::before,
.haap-theme-icon--sun::after {
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:27px!important;
  height:2px!important;
  background:linear-gradient(90deg,currentColor 0 5px,transparent 5px 22px,currentColor 22px 27px)!important;
  border-radius:999px!important;
  transform:translate(-50%,-50%)!important;
}
.haap-theme-icon--sun::after { transform:translate(-50%,-50%) rotate(90deg)!important; }
.haap-theme-fab[data-haap-effective-theme="dark"] .haap-theme-icon--moon {
  opacity:0!important;
  transform:translate(-50%,-50%) rotate(22deg) scale(.72)!important;
}
.haap-theme-fab[data-haap-effective-theme="dark"] .haap-theme-icon--sun {
  opacity:1!important;
  transform:translate(-50%,-50%) rotate(0deg) scale(1)!important;
}
.haap-theme-fab[data-haap-effective-theme="light"] .haap-theme-icon--moon {
  opacity:1!important;
  transform:translate(-50%,-50%) rotate(0deg) scale(1)!important;
}
@media (max-width:680px) {
  .haap-theme-fab {
    top:calc(100% + 8px)!important;
    right:7px!important;
    width:44px!important;min-width:44px!important;max-width:44px!important;
    height:44px!important;min-height:44px!important;max-height:44px!important;
    border-radius:15px!important;
  }
  .haap-theme-fab__inner { border-radius:14px!important; }
}
@media (max-width:420px) {
  .haap-theme-fab {
    width:42px!important;min-width:42px!important;max-width:42px!important;
    height:42px!important;min-height:42px!important;max-height:42px!important;
    border-radius:14px!important;
  }
  .haap-theme-fab__inner { border-radius:13px!important; }
}
@media (prefers-reduced-motion:reduce) { .haap-theme-fab,.haap-theme-icon { transition:none!important; } }
