/* Quanticura Hub — Menu latéral ☰ (0.9.0) */
body.qchm-on{--qchm-navy:#0F4787;--qchm-aqua:#5EC3D8;--qchm-lbl:#1f7f96;--qchm-ink:#1d2b3f;--qchm-line:#e2eaf3;--qchm-soft:#eef5fc;--qchm-bg:#fff}
html.qc-dark body.qchm-on{--qchm-navy:#9fd8ff;--qchm-lbl:#7fd3e4;--qchm-ink:#e6ecf5;--qchm-line:rgba(255,255,255,.12);--qchm-soft:rgba(94,195,216,.14);--qchm-bg:#0e1a2c}

/* Menu horizontal du thème et ☰ propre au dashboard : remplacés */
body.qchm-on #site-navigation-wrap,body.qchm-on .oceanwp-mobile-menu-icon,body.qchm-on #mobile-dropdown,body.qchm-on #sidr,body.qchm-on #mobile-fullscreen,
body.qchm-on .qc-sitebar,body.qchm-on .qc-site,body.qchm-on .qc-site-scrim,body.qchm-on .qc-topbar .qc-burger--site{display:none!important}

/* En-tête OceanWP : ☰ Menu · logo · boutons à droite */
body.qchm-on #site-header-inner{display:flex!important;align-items:center;gap:24px}
body.qchm-on #site-header-inner::after{display:none}
body.qchm-on #site-logo{float:none!important;flex:0 1 auto;min-width:0}
.qchm-btn{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 18px 0 14px;border:1px solid #d6e2f0;border-radius:999px;background:#fff;color:#0F4787;font:600 15px/1 inherit;letter-spacing:.02em;cursor:pointer;flex:0 0 auto;transition:box-shadow .2s,transform .2s,border-color .2s}
.qchm-btn:hover{border-color:#0F4787;box-shadow:0 8px 22px rgba(15,71,135,.14);transform:translateY(-1px);color:#0F4787;background:#fff}
.qchm-btn:focus-visible{outline:2px solid #5EC3D8;outline-offset:2px}
.qchm-btn__i{font-size:20px;line-height:1}
.qchm-right{margin-left:auto;display:flex;align-items:center;gap:12px;flex:0 0 auto}
.qchm-pill{display:inline-flex;align-items:center;height:44px;padding:0 18px;border:1px solid #d6e2f0;border-radius:999px;color:#0F4787!important;font-weight:600;font-size:14px;text-decoration:none!important;background:#fff;transition:box-shadow .2s,border-color .2s}
.qchm-pill:hover{border-color:#0F4787;box-shadow:0 8px 22px rgba(15,71,135,.12)}
.qchm-pill--cta{background:#0F4787;border-color:#0F4787;color:#fff!important}
.qchm-pill--cta:hover{background:#0b3a70}
@media(max-width:959px){
 body.qchm-on #site-header-inner{gap:14px}
 .qchm-right{display:none}
 body.qchm-on #site-logo{margin-left:auto}
}
@media(max-width:420px){.qchm-btn{padding:0 13px}.qchm-btn__l{display:none}}

/* Bouton de secours (thème sans en-tête OceanWP) */
.qchm-btn--float{position:fixed;top:16px;left:16px;z-index:99990;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.admin-bar .qchm-btn--float{top:48px}

/* Dashboard (mobile) : ☰ à gauche de la barre du haut */
.qc-topbar .qchm-tb{display:none}
@media(max-width:1020px){.qc-topbar .qchm-tb{display:inline-flex;align-items:center;justify-content:center;order:-1;font-size:20px;line-height:1}}

/* Panneau */
.qchm-scrim{position:fixed;inset:0;z-index:100010;background:rgba(8,20,40,.45);backdrop-filter:blur(2px);opacity:0;transition:opacity .3s}
.qchm-scrim.on{opacity:1}
.qchm{position:fixed;top:0;bottom:0;left:0;z-index:100011;width:min(86vw,340px);display:flex;flex-direction:column;background:var(--qchm-bg);color:var(--qchm-ink);padding:20px 20px calc(18px + env(safe-area-inset-bottom));box-shadow:none;transform:translateX(-105%);visibility:hidden;transition:transform .38s cubic-bezier(.2,.8,.2,1),visibility .38s,box-shadow .38s;font-family:inherit;outline:0}
.qchm.on{transform:none;visibility:visible;box-shadow:16px 0 50px rgba(7,26,48,.28)}
.admin-bar .qchm{top:32px}
@media(max-width:782px){.admin-bar .qchm{top:46px}}
.qchm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.qchm-logo{display:inline-flex;align-items:center;min-width:0;color:var(--qchm-navy);font-weight:700;text-decoration:none}
.qchm-logo img{display:block;max-height:54px;max-width:220px;width:auto;height:auto}
html.qc-dark .qchm-logo img{background:#fff;border-radius:10px;padding:4px 8px}
.qchm-x{flex:0 0 auto;width:38px;height:38px;border-radius:50%;border:1px solid var(--qchm-line);background:transparent;color:var(--qchm-navy);font-size:16px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.qchm-x:hover{background:var(--qchm-soft);color:var(--qchm-navy)}
.qchm-nav{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:0 -6px;padding:0 6px 10px}
.qchm-t{margin:18px 0 6px;padding:0 12px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--qchm-lbl);line-height:1.3}
.qchm-t--sub{margin-top:12px}
.qchm-nav>.qchm-t:first-child,.qchm-nav>.qchm-grp:first-child>.qchm-t{margin-top:6px}
.qchm-a{display:flex;align-items:center;padding:10px 12px;border-radius:12px;color:var(--qchm-ink)!important;text-decoration:none!important;font-size:15px;line-height:1.3;transition:background .15s,color .15s}
.qchm-a:hover{background:var(--qchm-soft);color:var(--qchm-navy)!important}
.qchm-a.is-cur{background:var(--qchm-soft);color:var(--qchm-navy)!important;font-weight:600}
.qchm-a--d1{padding-left:24px;font-size:14px}
.qchm-a--d2{padding-left:36px;font-size:14px}
.qchm-a:focus-visible,.qchm-t:focus-visible,.qchm-lang:focus-visible,.qchm-go:focus-visible,.qchm-l:focus-visible{outline:2px solid var(--qchm-aqua);outline-offset:1px}
.qchm-grp--fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding-top:4px;padding-bottom:4px;border-radius:10px}
.qchm-grp--fold>summary::-webkit-details-marker{display:none}
.qchm-grp--fold>summary:hover{background:var(--qchm-soft)}
.qchm-ar{font-size:14px;transition:transform .2s}
.qchm-grp--fold[open]>summary .qchm-ar{transform:rotate(180deg)}
.qchm-foot{flex:0 0 auto;display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--qchm-line)}
.qchm-lang{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:11px 14px;border:1px solid var(--qchm-line);border-radius:12px;background:transparent;color:var(--qchm-navy);font:500 14px/1.2 inherit;cursor:pointer;text-align:left}
.qchm-lang em{font-style:normal;font-weight:600;font-size:13px;color:var(--qchm-lbl)}
.qchm-lang:hover{background:var(--qchm-soft);color:var(--qchm-navy)}
.qchm-go{display:flex;align-items:center;justify-content:center;height:46px;border-radius:999px;background:#0F4787;color:#fff!important;font-weight:600;font-size:15px;text-decoration:none!important;transition:background .2s}
.qchm-go:hover{background:#0b3a70}
.qchm-go--out{background:transparent;border:1px solid var(--qchm-line);color:var(--qchm-navy)!important}
.qchm-go--out:hover{background:var(--qchm-soft)}
html.qchm-lock,html.qchm-lock body{overflow:hidden!important}

/* Pop-up langues */
.qchm-pop{position:fixed;inset:0;z-index:100020;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,20,40,.5);opacity:0;transition:opacity .25s}
.qchm-pop[hidden]{display:none}
.qchm-pop.on{opacity:1}
.qchm-pop__box{width:min(560px,100%);max-height:calc(100vh - 40px);overflow-y:auto;background:var(--qchm-bg);color:var(--qchm-ink);border-radius:22px;padding:24px 26px 26px;box-shadow:0 24px 70px rgba(0,0,0,.3);transform:translateY(8px);transition:transform .25s}
.qchm-pop.on .qchm-pop__box{transform:none}
.qchm-pop__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.qchm-pop__head h2{margin:0;font-size:20px;line-height:1.25;color:var(--qchm-navy)!important;font-family:inherit}
.qchm-pop p{margin:6px 0 18px;font-size:14px;color:#5b6b80}
html.qc-dark .qchm-pop p{color:#a9b6c8}
.qchm-pop__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:480px){.qchm-pop__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.qchm-l{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--qchm-line);border-radius:14px;color:var(--qchm-ink)!important;text-decoration:none!important;transition:border-color .2s,background .2s}
.qchm-l b{font-size:15px;font-weight:600}
.qchm-l span{font-size:12px;color:#6b7c92;letter-spacing:.06em}
.qchm-l:hover{border-color:var(--qchm-navy)}
.qchm-l.is-cur{border-color:var(--qchm-navy);background:var(--qchm-soft)}
.qchm-l.is-cur b{color:var(--qchm-navy)}
.qchm-l.is-cur span::after{content:" ✓";color:var(--qchm-navy)}
@media(prefers-reduced-motion:reduce){.qchm,.qchm-scrim,.qchm-pop,.qchm-pop__box{transition:none}}

/* ===== 0.9.1 ===== */
/* Ordinateur : ☰ et boutons alignés sur la marge des pages, logo au centre */
@media(min-width:1021px){
 body.qchm-on #site-header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:24px;min-height:var(--qchm-hh,100px)}
 body.qchm-on #site-header-inner{width:auto!important;max-width:none!important;margin:0!important;padding-left:max(20px,calc((100% - 1440px) / 2 + 20px))!important;padding-right:max(20px,calc((100% - 1440px) / 2 + 20px))!important} /* 0.9.4 : mêmes marges que le dashboard, sans attendre le JavaScript */
 body.qchm-on #site-header-inner>.qchm-btn{grid-column:1;justify-self:start}
 body.qchm-on #site-logo{grid-column:2;margin:0!important}
 body.qchm-on #site-header-inner>.qchm-right{grid-column:3;justify-self:end;margin:0}
}
/* Mobile : ☰ et logo à la même marge à gauche et à droite */
@media(max-width:1020px){
 body.qchm-on #site-header-inner{width:auto!important;max-width:none!important;margin:0!important;padding-left:20px!important;padding-right:20px!important;gap:14px}
 body.qchm-on #site-logo{flex:0 1 auto;min-width:0;margin-left:auto!important;margin-right:0!important;text-align:right}
 body.qchm-on #site-logo #site-logo-inner{display:block;height:auto!important}
 body.qchm-on #site-logo img{max-width:100%!important;height:auto!important;display:block;margin-left:auto}
 /* Plus de débordement à droite (flèche flottante, formulaire du pied de page) */
 html.qchm-x0,html.qchm-x0 body{overflow-x:clip}
 .wpr-stt-btn,.elementor-widget-wpr-back-to-top,#scroll-top{display:none!important}
 .elementor-widget[class*="fluent"]>.elementor-widget-container{margin-left:0!important;margin-right:0!important;max-width:100%}
}
/* Chat dans le menu */
.qchm-chat{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;border:1px solid var(--qchm-line);border-radius:999px;background:transparent;color:var(--qchm-navy);font:600 15px/1 inherit;cursor:pointer}
.qchm-chat[hidden]{display:none}
.qchm-chat:hover{background:var(--qchm-soft);color:var(--qchm-navy)}
/* Flèche haut de page (mobile uniquement) */
.qchm-top{display:none}
@media(max-width:1020px){.qchm-top:not([hidden]){display:flex;justify-content:center;align-self:stretch;width:100%;padding:18px 0 calc(22px + env(safe-area-inset-bottom))}}
.qchm-top a{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(94,195,216,.55);color:#5EC3D8!important;font-size:20px;text-decoration:none!important;background:rgba(255,255,255,.04)}
.qchm-top:not(.qchm-top--in) a{border-color:#d6e2f0;color:#0F4787!important;background:#fff}

/* 0.9.8 : drapeaux des langues (angles arrondis) */
.qchm-f{display:inline-block;width:20px;height:15px;border-radius:4px;object-fit:cover;vertical-align:-2px;box-shadow:0 0 0 1px rgba(15,71,135,.14);background:#eef3f8;flex:0 0 auto}
.qchm-lang>span{display:inline-flex;align-items:center;gap:8px;min-width:0}
.qchm-l.has-f{align-items:flex-start}
.qchm-l.has-f .qchm-f{width:32px;height:24px;border-radius:6px;margin-bottom:4px}
.qchm-l b{overflow-wrap:anywhere}

/* 0.9.12 : message « adresse copiée » (lien e-mail sans messagerie) */
.qchm-mail{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:1000000;width:min(92vw,420px);padding:14px 18px;border-radius:16px;background:#0F4787;color:#fff;box-shadow:0 12px 34px rgba(15,71,135,.35);font:400 14px/1.45 Inter,Arial,sans-serif;opacity:0;transform:translate(-50%,24px);pointer-events:none;transition:opacity .25s,transform .25s}
.qchm-mail.on{opacity:1;transform:translate(-50%,0)}
.qchm-mail b{display:block;font-weight:600;margin-bottom:2px}.qchm-mail span{display:block;opacity:.9}.qchm-mail em{display:block;margin-top:6px;font-style:normal;font-weight:600;color:#5EC3D8;word-break:break-all}
