body.avi-heatmap-modal-open{overflow:hidden}
#avision-dashboard-root .avi-radar-heatmap-module{margin:16px 0 18px}
#avision-dashboard-root .avi-heatmap-closed{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(15,23,42,.95);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;box-shadow:0 16px 34px rgba(15,23,42,.18);cursor:pointer;text-align:left}
#avision-dashboard-root .avi-heatmap-closed-main{display:flex;align-items:center;gap:13px}
#avision-dashboard-root .avi-heatmap-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:var(--premium-gold);color:#fff;font-size:1.35rem;font-weight:800}
#avision-dashboard-root .avi-heatmap-eyebrow{display:block;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#f59e0b}
#avision-dashboard-root .avi-heatmap-title{display:block;font-size:1rem;font-weight:900;color:#fff}
#avision-dashboard-root .avi-heatmap-closed-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.85rem;font-weight:700;color:#e0e7ff}
#avision-dashboard-root .avi-heatmap-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:.74rem;font-weight:900}
#avision-dashboard-root .avi-heatmap-pill--completed{background:rgba(16,185,129,.24);border-color:rgba(52,211,153,.45)}
#avision-dashboard-root .avi-heatmap-pill--processing,#avision-dashboard-root .avi-heatmap-pill--pending{background:rgba(245,158,11,.22);border-color:rgba(251,191,36,.45)}
#avision-dashboard-root .avi-heatmap-pill--error{background:rgba(239,68,68,.22);border-color:rgba(248,113,113,.45)}
#avision-dashboard-root .avi-heatmap-drawer{margin-top:12px;padding:20px;border:2px solid var(--premium-gold);border-radius:16px;background:var(--premium-bg);box-shadow:0 2px 8px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.04)}
#avision-dashboard-root .avi-heatmap-drawer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr) minmax(240px,.8fr);gap:14px}
#avision-dashboard-root .avi-heatmap-panel{border:1px solid rgba(217,119,6,.3);border-radius:12px;background:rgba(217,119,6,.08);padding:14px}
#avision-dashboard-root .avi-heatmap-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
#avision-dashboard-root .avi-heatmap-panel-head h4{margin:0;font-size:.95rem;color:#0f172a;font-weight:900}
#avision-dashboard-root .avi-heatmap-panel-head span{font-size:.76rem;color:#64748b;font-weight:800}
#avision-dashboard-root .avi-hm-info-btn{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:4px;border:none;border-radius:999px;background:none;color:#94a3b8;font-size:.82rem;line-height:1;cursor:pointer;vertical-align:middle;box-shadow:none;padding:0}
#avision-dashboard-root .avi-hm-info-btn:hover,#avision-dashboard-root .avi-hm-info-btn:focus-visible{color:#3b82f6;outline:none}
#avision-dashboard-root .avi-hm-info-btn--inline{width:16px;height:16px;margin-left:3px;font-size:.72rem}
#avision-dashboard-root .avi-hm-modal-section-head{display:flex;align-items:center;gap:6px;margin:12px 0 6px;color:#0f172a;font-size:.8rem;font-weight:950}
#avision-dashboard-root .avi-heatmap-empty,#avision-dashboard-root .avi-heatmap-note{margin:0;color:#64748b;font-size:.86rem;line-height:1.5}
#avision-dashboard-root .avi-heatmap-design-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px;padding:5px;border-radius:12px;background:#fff;border:1px solid #e2e8f0}
#avision-dashboard-root .avi-heatmap-design-switch button{border:0;border-radius:9px;background:transparent;color:#64748b;font-size:.78rem;font-weight:900;padding:8px 6px;cursor:pointer}
#avision-dashboard-root .avi-heatmap-design-switch button.is-active{background:var(--premium-gold);color:#fff;box-shadow:0 6px 14px rgba(217,119,6,.22)}
#avision-dashboard-root .avi-heatmap-keyword-list{display:flex;flex-direction:column;gap:8px;max-height:500px;overflow:auto}
#avision-dashboard-root .avi-heatmap-keyword{display:flex;justify-content:space-between;gap:10px;width:100%;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:9px 10px;color:#0f172a;font-weight:800;cursor:pointer;text-align:left}
#avision-dashboard-root .avi-heatmap-keyword span:last-child{color:#7c3aed;font-size:.78rem}
#avision-dashboard-root .avi-heatmap-keyword.is-selected{border:2px solid var(--premium-gold);background:var(--premium-bg);box-shadow:inset 3px 0 0 rgba(217,119,6,.2),inset 0 0 0 1px rgba(217,119,6,.06)}
#avision-dashboard-root .avi-heatmap-keyword.is-selected-map{border-color:var(--avi-heatmap-keyword-color);border-left:5px solid var(--avi-heatmap-keyword-color);background:#fff;box-shadow:0 0 0 2px rgba(15,23,42,.05),0 8px 18px rgba(15,23,42,.08)}
#avision-dashboard-root .avi-heatmap-grid-desc{margin:0;color:#64748b;font-size:.74rem;font-weight:700;line-height:1.35}
#avision-dashboard-root .avi-heatmap-grid-preview{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:10px;border-radius:14px;background:radial-gradient(circle at 18% 22%,rgba(16,185,129,.14) 0 9%,transparent 10%),radial-gradient(circle at 78% 72%,rgba(217,119,6,.13) 0 10%,transparent 11%),linear-gradient(35deg,transparent 0 44%,rgba(217,119,6,.16) 44.5% 46%,transparent 46.5% 100%),linear-gradient(120deg,transparent 0 38%,rgba(124,58,237,.14) 38.5% 40%,transparent 40.5% 100%),linear-gradient(rgba(0,0,0,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.06) 1px,transparent 1px),linear-gradient(135deg,#e8ede4 0%,#dce8f0 48%,#e4e8dc 100%);background-size:auto,auto,100% 100%,100% 100%,38px 38px,38px 38px,100% 100%}
#avision-dashboard-root .avi-heatmap-grid-preview span{aspect-ratio:1/1;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:900;color:#fff;background:#334155}
#avision-dashboard-root .avi-heatmap-expand-btn{position:absolute;right:10px;bottom:10px;z-index:3;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(15,23,42,.78);color:#fff;font-size:1rem;font-weight:900;line-height:1;box-shadow:0 8px 18px rgba(15,23,42,.3);cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .18s ease,background .18s ease,border-color .18s ease}
#avision-dashboard-root .avi-heatmap-expand-btn:hover,#avision-dashboard-root .avi-heatmap-expand-btn:focus-visible{background:rgba(217,119,6,.92);border-color:rgba(255,255,255,.55);transform:scale(1.06);outline:none}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-points .avi-heatmap-grid-preview{gap:8px;padding:14px}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-points .avi-heatmap-grid-preview span{border-radius:999px;transform:scale(.74);font-size:0;color:transparent;box-shadow:0 0 0 3px rgba(255,255,255,.08)}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-points .avi-heatmap-cell--top3{box-shadow:0 0 18px rgba(16,185,129,.8)!important;transform:scale(.9)}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-territory .avi-heatmap-grid-preview{position:relative;overflow:hidden;gap:3px;padding:12px}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-territory .avi-heatmap-grid-preview:before{content:"";position:absolute;inset:-20%;background:radial-gradient(circle at 35% 35%,rgba(16,185,129,.42),transparent 34%),radial-gradient(circle at 68% 58%,rgba(245,158,11,.34),transparent 30%);filter:blur(12px);opacity:.9}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-territory .avi-heatmap-grid-preview span{position:relative;border-radius:4px;opacity:.82;font-size:.58rem;background:rgba(71,85,105,.6)}
#avision-dashboard-root .avi-radar-heatmap-module.is-design-territory .avi-heatmap-cell--top3{background:rgba(16,185,129,.92)!important}
#avision-dashboard-root .avi-heatmap-cell--top3{background:#10b981!important}
#avision-dashboard-root .avi-heatmap-cell--found{background:#84cc16!important}
#avision-dashboard-root .avi-heatmap-cell--weak{background:#f97316!important}
#avision-dashboard-root .avi-heatmap-cell--missing{background:#475569!important}
#avision-dashboard-root .avi-heatmap-grid-preview .avi-heatmap-cell--found{background:#84cc16!important}
#avision-dashboard-root .avi-heatmap-grid-preview .avi-heatmap-cell--weak{background:#f97316!important}
#avision-dashboard-root .avi-heatmap-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
#avision-dashboard-root .avi-heatmap-metrics div{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:10px}
#avision-dashboard-root .avi-heatmap-metrics strong{display:block;color:#0f172a;font-size:.95rem;font-weight:900}
#avision-dashboard-root .avi-heatmap-metrics span{display:block;color:#64748b;font-size:.72rem;font-weight:700;margin-top:2px}
#avision-dashboard-root .avi-heatmap-scan-controls{display:flex;flex-direction:column;gap:10px;margin-top:12px}
#avision-dashboard-root .avi-heatmap-field{display:flex;flex-direction:column;gap:6px;font-size:.78rem;font-weight:900;color:#334155}
#avision-dashboard-root .avi-heatmap-field select{width:100%;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#0f172a;font-weight:800;padding:10px 11px}
#avision-dashboard-root .avi-heatmap-credit-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#avision-dashboard-root .avi-heatmap-credit-row span{display:flex;flex-direction:column;gap:2px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:8px;color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase}
#avision-dashboard-root .avi-heatmap-credit-row strong{color:#0f172a;font-size:.95rem;font-weight:950}
#avision-dashboard-root .avi-heatmap-scan-feedback{min-height:18px;margin:0;color:#64748b;font-size:.78rem;line-height:1.4;font-weight:700}
#avision-dashboard-root .avi-heatmap-scan-feedback[data-state="ok"]{color:#047857}
#avision-dashboard-root .avi-heatmap-scan-feedback[data-state="warning"]{color:#92400e}
#avision-dashboard-root .avi-heatmap-scan-feedback[data-state="error"]{color:#b91c1c}
#avision-dashboard-root .avi-heatmap-scan-submit:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.15)}
/* ── Filtres mots-clés (search + tri) ── */
#avision-dashboard-root .avi-heatmap-keyword-controls{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
#avision-dashboard-root .avi-heatmap-kw-search{width:100%;box-sizing:border-box;padding:7px 10px;border:1px solid #e2e8f0;border-radius:8px;font-size:.8rem;color:#0f172a;outline:none;background:#fff;font-family:inherit}
#avision-dashboard-root .avi-heatmap-kw-search:focus{border-color:#7c3aed}
#avision-dashboard-root .avi-heatmap-kw-sort-btns{display:flex;gap:4px}
#avision-dashboard-root .avi-heatmap-kw-sort{flex:1;font-size:.72rem;font-weight:700;padding:4px 6px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;color:#64748b;cursor:pointer;transition:background .15s,color .15s;font-family:inherit}
#avision-dashboard-root .avi-heatmap-kw-sort.is-active{background:#7c3aed;color:#fff;border-color:#7c3aed}
#avision-dashboard-root .avi-heatmap-kw-showmore{width:100%;margin-top:6px;padding:6px;border:1px dashed #cbd5e1;border-radius:8px;background:transparent;color:#64748b;font-size:.76rem;font-weight:600;cursor:pointer;transition:background .15s;font-family:inherit}
#avision-dashboard-root .avi-heatmap-kw-showmore:hover{background:#f8fafc}
/* ── Légende concurrent scopée modal ── */
#avision-dashboard-root .avi-heatmap-modal-legend .avi-heatmap-cell--competitor{background:#7c3aed!important;border-radius:50%}
#avision-dashboard-root .avi-heatmap-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
#avision-dashboard-root .avi-heatmap-modal[hidden]{display:none}
#avision-dashboard-root .avi-heatmap-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
#avision-dashboard-root .avi-heatmap-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(4px)}
#avision-dashboard-root .avi-heatmap-modal-card{position:relative;box-sizing:border-box;width:calc(100vw - 16px);max-width:1500px;max-height:calc(100vh - 20px);overflow:hidden;border-radius:22px;background:#fff;padding:0;box-shadow:0 30px 80px rgba(0,0,0,.35)}
#avision-dashboard-root .avi-heatmap-modal-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:0;height:100%;min-height:min(700px,calc(100vh - 24px))}
/* Anti-régression #Sprint43-C12-sidebar-layout-open — supprimé, overlay gauche utilisé */
#avision-dashboard-root .avi-heatmap-modal-info{height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:0;padding:20px;border-right:1px solid #e2e8f0;background:#fff}
#avision-dashboard-root .avi-heatmap-modal-card h3{margin:6px 0 10px;color:#0f172a;font-size:1.35rem}
#avision-dashboard-root .avi-heatmap-modal-close{position:absolute;top:14px;right:14px;z-index:5;width:36px;height:36px;border:0;border-radius:999px;background:#f1f5f9;color:#0f172a;font-size:1.4rem;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.18)}
#avision-dashboard-root .avi-heatmap-modal-title-row{display:flex;align-items:center;gap:6px;margin:4px 42px 8px 0}
#avision-dashboard-root .avi-heatmap-modal-title-row h3{margin:0}
#avision-dashboard-root .avi-heatmap-modal-disclaimer-wrap{margin:0 0 14px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;overflow:hidden}
#avision-dashboard-root .avi-heatmap-modal-disclaimer-summary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;color:#92400e;padding:10px;font-size:.78rem;font-weight:900;text-align:left;cursor:pointer}
#avision-dashboard-root .avi-heatmap-modal-disclaimer-summary .avi-hm-chevron{transition:transform .18s ease;font-size:1rem}
#avision-dashboard-root .avi-heatmap-modal-disclaimer-summary[aria-expanded="true"] .avi-hm-chevron{transform:rotate(90deg)}
#avision-dashboard-root .avi-heatmap-modal-disclaimer{margin:0;padding:0 10px 10px;color:#92400e;font-size:.78rem;line-height:1.45}
#avision-dashboard-root .avi-heatmap-modal-keywords{max-height:270px;min-height:60px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}
#avision-dashboard-root .avi-heatmap-modal-keyword{--avi-heatmap-keyword-color:#cbd5e1;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:1px solid #e2e8f0;border-left:4px solid var(--avi-heatmap-keyword-color);border-radius:12px;background:#fff;color:#0f172a;padding:9px 10px;font-size:.82rem;font-weight:900;text-align:left;cursor:pointer}
#avision-dashboard-root .avi-heatmap-modal-keyword i{width:10px;height:10px;border-radius:999px;background:var(--avi-heatmap-keyword-color)}
#avision-dashboard-root .avi-heatmap-modal-keyword.is-selected{border-color:var(--avi-heatmap-keyword-color);background:rgba(248,250,252,.95);box-shadow:0 0 0 2px rgba(15,23,42,.08),inset 3px 0 0 var(--avi-heatmap-keyword-color)}
#avision-dashboard-root .avi-heatmap-modal-keyword:disabled{opacity:.45;cursor:not-allowed}
#avision-dashboard-root .avi-heatmap-modal-advice-placeholder{display:flex;flex-direction:column;gap:5px;margin:12px 0;margin-top:auto;padding:12px;padding-top:12px;flex-shrink:0;border:1px dashed rgba(217,119,6,.35);border-top:1px solid #f1f5f9;border-radius:14px;background:rgba(217,119,6,.08);color:#64748b;font-size:.8rem;line-height:1.45}
#avision-dashboard-root .avi-heatmap-modal-advice-placeholder strong{color:#0f172a;font-size:.86rem;font-weight:950}
#avision-dashboard-root .avi-heatmap-modal-kpis{display:flex;flex-direction:row;gap:8px;margin:0;flex-shrink:0;flex-wrap:wrap}
#avision-dashboard-root .avi-heatmap-modal-kpis div{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:8px 12px;min-width:110px}
#avision-dashboard-root .avi-heatmap-modal-kpis strong{display:block;color:#0f172a;font-size:.95rem;font-weight:900;white-space:nowrap}
#avision-dashboard-root .avi-heatmap-modal-kpis span{display:block;color:#64748b;font-size:.72rem;font-weight:700;margin-top:2px;white-space:nowrap}
#avision-dashboard-root .avi-heatmap-modal-map{position:relative;display:flex;flex-direction:column;width:100%;height:min(700px,calc(100vh - 24px));min-height:min(700px,calc(100vh - 24px));min-width:0;overflow:hidden;box-sizing:border-box;background:#f0ede8}
#avision-dashboard-root .avi-heatmap-modal-map-stats{position:relative;z-index:3;display:grid;grid-template-columns: 1fr 340px;align-items:start;width:100%;box-sizing:border-box;flex-shrink:0;padding:10px 14px;border-bottom:1px solid #e2e8f0;background:#fff;gap:10px}
#avision-dashboard-root .avi-hm-stats-left{display:flex;flex-direction:column;gap:8px;min-width:0}
#avision-dashboard-root .avi-hm-stats-left .avi-heatmap-modal-selection-note{width:100%}
#avision-dashboard-root .avi-hm-stats-right{border-left:1px solid #e2e8f0;padding-left:10px;padding-right:10px;min-width:0;max-height:120px;overflow-y:auto}
#avision-dashboard-root .avi-hm-stats-right .avi-hm-intel-panel{min-width:0}
#avision-dashboard-root .avi-heatmap-modal-selection-note{flex-basis:100%;margin:0;color:#64748b;font-size:.74rem;font-weight:800}
#avision-dashboard-root .avi-hm-map-wrapper{position:relative;z-index:1;width:100%;min-width:0;flex:1 1 auto;min-height:320px;overflow:hidden;box-sizing:border-box;background:#f0ede8}
#avision-dashboard-root .avi-hm-map-wrapper .avi-heatmap-leaflet{position:relative;z-index:1;width:100%;height:100%;min-height:0;min-width:0;flex:none;background:#f0ede8}
#avision-dashboard-root .avi-heatmap-leaflet:fullscreen{width:100vw!important;height:100vh!important;background:#f0ede8}
#avision-dashboard-root .avi-hm-fs-btn{position:absolute;right:14px;bottom:14px;z-index:500;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(15,23,42,.16);border-radius:12px;background:rgba(255,255,255,.95);color:#0f172a;font-size:1.05rem;font-weight:900;cursor:pointer;box-shadow:0 12px 26px rgba(15,23,42,.22)}
#avision-dashboard-root .avi-hm-fs-btn:hover,#avision-dashboard-root .avi-hm-fs-btn:focus-visible{background:#f59e0b;color:#fff;outline:none}
#avision-dashboard-root .avi-hm-fs-exit-btn{position:absolute;right:18px;top:18px;z-index:10000;width:44px;height:44px;border:0;border-radius:999px;background:rgba(15,23,42,.88);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer;box-shadow:0 14px 30px rgba(15,23,42,.3)}
#avision-dashboard-root .avi-heatmap-map-overlay{position:absolute;left:50%;top:50%;z-index:2;width:calc(100% - 32px);max-width:360px;box-sizing:border-box;transform:translate(-50%,-50%);border:1px solid rgba(15,23,42,.12);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 16px 36px rgba(15,23,42,.16);padding:14px 16px;color:#0f172a;font-size:.9rem;font-weight:800;line-height:1.45;text-align:center}
#avision-dashboard-root .avi-heatmap-map-overlay[data-blocking="1"]{border-color:rgba(239,68,68,.35);color:#991b1b}
#avision-dashboard-root .avi-heatmap-modal-legend{display:flex;gap:5px;flex-wrap:nowrap;align-items:center;color:#334155;font-size:.68rem;font-weight:700;flex-shrink:1;min-width:0;overflow:hidden;order:2}
#avision-dashboard-root .avi-heatmap-modal-legend span{display:inline-flex;align-items:center;gap:4px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;padding:3px 7px;white-space:nowrap;font-size:.68rem}
#avision-dashboard-root .avi-heatmap-modal-legend i{width:10px;height:10px;border-radius:3px;display:inline-block;flex-shrink:0}
#avision-dashboard-root .avi-heatmap-modal-legend .avi-heatmap-cell--weak{background:#f97316!important}
#avision-dashboard-root .avi-heatmap-cell--competitor{background:#7c3aed!important;border-radius:50%}
#avision-dashboard-root .avi-heatmap-modal-missing{min-height:18px;margin:10px 0 0;color:#92400e;font-size:.78rem;font-weight:800;line-height:1.4}
#avision-dashboard-root .leaflet-popup-content-wrapper{padding:0;border-radius:14px;overflow:hidden;box-shadow:0 16px 36px rgba(15,23,42,.22)}
#avision-dashboard-root .leaflet-popup-content{margin:0}
#avision-dashboard-root .leaflet-popup-tip{box-shadow:0 8px 18px rgba(15,23,42,.14)}
#avision-dashboard-root .avi-hm-popup{min-width:180px;padding:12px 13px;background:#fff;border-top:4px solid #64748b;color:#0f172a}
#avision-dashboard-root .avi-hm-popup--top3{border-top-color:#10b981}
#avision-dashboard-root .avi-hm-popup--found{border-top-color:#84cc16}
#avision-dashboard-root .avi-hm-popup--weak{border-top-color:#ef4444}
#avision-dashboard-root .avi-hm-popup-kicker{font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
#avision-dashboard-root .avi-hm-popup-title{margin-top:3px;font-size:.86rem;font-weight:950;color:#0f172a}
#avision-dashboard-root .avi-hm-popup-rank{margin-top:8px;font-size:1.35rem;font-weight:950;color:#111827}
#avision-dashboard-root .avi-hm-popup-zone,#avision-dashboard-root .avi-hm-popup-place{margin-top:2px;font-size:.74rem;font-weight:800;color:#64748b}
#avision-dashboard-root .avi-hm-pedago-overlay{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#avision-dashboard-root .avi-hm-pedago-box{width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 42px);overflow-y:auto;border-radius:16px;border-left:4px solid #f59e0b;background:#fff;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.28);text-align:left}
#avision-dashboard-root .avi-hm-pedago-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:#fff7ed;color:#92400e;font-size:1.45rem;margin-bottom:12px}
#avision-dashboard-root .avi-hm-pedago-title{margin:0 0 10px;color:#0f172a;font-size:1.15rem;font-weight:950}
#avision-dashboard-root .avi-hm-pedago-body{color:#1e293b;font-size:.9rem;line-height:1.55}
#avision-dashboard-root .avi-hm-pedago-body p{margin:0 0 10px}
#avision-dashboard-root .avi-hm-pedago-cta{width:100%;margin-top:16px;border:0;border-radius:12px;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;padding:11px 14px;font-size:.9rem;font-weight:950;cursor:pointer;box-shadow:0 12px 26px rgba(217,119,6,.25)}
#avision-dashboard-root .avi-hm-pedago-cta:hover,#avision-dashboard-root .avi-hm-pedago-cta:focus-visible{filter:brightness(1.03);outline:none}
/* Anti-régression #Sprint43-C12-drawer-float — drawer concurrent flottant sur la carte */
#avision-dashboard-root .avi-heatmap-competitors-bar{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  z-index:500;
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex-wrap:wrap;
  width:100%;
  max-height:50%;
  overflow:visible;
  box-sizing:border-box;
  padding:8px 12px;
  background:rgba(248,247,255,0.97);
  border-top:2px solid #ede9fe;
  box-shadow:0 -4px 20px rgba(124,58,237,0.12);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
#avision-dashboard-root .avi-heatmap-competitors-label{font-size:.74rem;font-weight:700;color:#7c3aed;white-space:nowrap}
#avision-dashboard-root .avi-heatmap-competitors-btn{font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:999px;border:1.5px solid #7c3aed;background:#fff;color:#7c3aed;cursor:pointer}
#avision-dashboard-root .avi-heatmap-competitors-btn.is-active{background:#7c3aed;color:#fff}
@media (max-width:980px){#avision-dashboard-root .avi-heatmap-drawer-grid{grid-template-columns:1fr}#avision-dashboard-root .avi-heatmap-keyword-list{max-height:320px}#avision-dashboard-root .avi-heatmap-closed{align-items:flex-start;flex-direction:column}#avision-dashboard-root .avi-heatmap-metrics,#avision-dashboard-root .avi-heatmap-credit-row{grid-template-columns:1fr}}
@media (max-width:768px){#avision-dashboard-root .avi-heatmap-modal{padding:12px}#avision-dashboard-root .avi-heatmap-modal-card{width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto}#avision-dashboard-root .avi-heatmap-modal-layout{display:flex;flex-direction:column-reverse;min-height:0}#avision-dashboard-root .avi-heatmap-modal-info{height:auto;max-height:none;border-right:0;border-top:1px solid #e2e8f0}#avision-dashboard-root .avi-heatmap-modal-map{min-height:420px}}
/* ── Onglets modal ── */
#avision-dashboard-root .avi-heatmap-modal-tabs{display:flex;gap:4px;padding:10px 14px 0;background:#fff;border-bottom:2px solid #e2e8f0;flex-shrink:0}
#avision-dashboard-root .avi-hm-tab{padding:8px 16px;border:0;border-bottom:2px solid transparent;margin-bottom:-2px;background:transparent;color:#64748b;font-size:.82rem;font-weight:800;cursor:pointer;border-radius:8px 8px 0 0;transition:color .15s,border-color .15s;font-family:inherit}
#avision-dashboard-root .avi-hm-tab.is-active{color:#0f172a;border-bottom-color:#f59e0b;background:#fffbeb}
#avision-dashboard-root .avi-hm-tab:hover:not(.is-active){color:#0f172a;background:#f8fafc}
#avision-dashboard-root [data-avi-heatmap-panel="map"]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#avision-dashboard-root [data-avi-heatmap-panel="map"][hidden]{display:none!important}
#avision-dashboard-root [data-avi-heatmap-panel="evolution"]{display:flex;flex-direction:column;flex:1;overflow-y:auto;padding:16px}
#avision-dashboard-root [data-avi-heatmap-panel="evolution"][hidden]{display:none}
/* ── Mode Évolution ── */
#avision-dashboard-root .avi-hm-evolution-header{margin-bottom:12px}
#avision-dashboard-root .avi-hm-evolution-intro{margin:0 0 8px;color:#64748b;font-size:.82rem;line-height:1.5}
#avision-dashboard-root .avi-hm-evolution-selector{display:flex;flex-direction:column;gap:0;margin-bottom:16px}
#avision-dashboard-root .avi-hm-evolution-list-scroll{max-height:280px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:4px 2px}
#avision-dashboard-root .avi-hm-evo-month-filter{display:flex;gap:4px;flex-wrap:wrap;padding:0 0 8px}
#avision-dashboard-root .avi-hm-evo-month-btn{padding:4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:.72rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s}
#avision-dashboard-root .avi-hm-evo-month-btn.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
#avision-dashboard-root .avi-hm-evo-week-filter{display:flex;gap:4px;flex-wrap:wrap;padding:0 0 6px}
#avision-dashboard-root .avi-hm-evo-week-btn{padding:4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:.7rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
#avision-dashboard-root .avi-hm-evo-week-btn.is-active{background:#334155;color:#fff;border-color:#334155}
#avision-dashboard-root .avi-hm-evo-day-filter{display:flex;gap:4px;flex-wrap:wrap;padding:0 0 8px}
#avision-dashboard-root .avi-hm-evo-day-btn{padding:4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:.72rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s}
#avision-dashboard-root .avi-hm-evo-day-btn.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
#avision-dashboard-root .avi-hm-evo-sort-row{display:flex;align-items:center;justify-content:flex-end;padding:0 0 6px}
#avision-dashboard-root .avi-hm-evo-sort-inline-btn{padding:4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:.7rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
#avision-dashboard-root .avi-hm-evo-sort-inline-btn:hover{background:#0f172a;color:#fff;border-color:#0f172a}
#avision-dashboard-root .avi-hm-evo-group-header{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 4px;margin-top:8px;border-bottom:2px solid #f1f5f9}
#avision-dashboard-root .avi-hm-evo-group-header:first-child{margin-top:0}
#avision-dashboard-root .avi-hm-evo-group-header--solo{border-bottom-color:#e2e8f0}
#avision-dashboard-root .avi-hm-evo-group-label{font-size:.72rem;font-weight:800;color:#0f172a}
#avision-dashboard-root .avi-hm-evo-group-select-all{padding:3px 8px;border:1px solid #f59e0b;border-radius:6px;background:transparent;color:#f59e0b;font-size:.68rem;font-weight:700;cursor:pointer;font-family:inherit}
#avision-dashboard-root .avi-hm-evo-group-select-all:hover{background:#f59e0b;color:#fff}
#avision-dashboard-root .avi-hm-evolution-loading{color:#94a3b8;font-size:.82rem;font-style:italic}
#avision-dashboard-root .avi-hm-evolution-scan-item{display:flex;align-items:center;gap:0;padding:8px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer}
#avision-dashboard-root .avi-hm-evolution-scan-item.is-selected{border-color:#f59e0b;background:#fffbeb}
#avision-dashboard-root .avi-hm-evolution-scan-item input[type="checkbox"]{width:16px;height:16px;accent-color:#f59e0b;flex-shrink:0;margin-right:10px}
#avision-dashboard-root .avi-hm-evolution-scan-col{display:flex;align-items:center;justify-content:center;text-align:center;font-size:.78rem;color:#334155;font-weight:700}
#avision-dashboard-root .avi-hm-evolution-scan-col--date{flex:2;justify-content:flex-start;text-align:left}
#avision-dashboard-root .avi-hm-evolution-scan-col--grid{flex:1}
#avision-dashboard-root .avi-hm-evolution-scan-col--rank{flex:1.5}
#avision-dashboard-root .avi-hm-evolution-scan-col--territory{flex:1.5}
#avision-dashboard-root .avi-hm-evolution-scan-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.7rem;font-weight:800}
#avision-dashboard-root .avi-hm-evolution-scan-badge--rank{background:#f0fdf4;color:#15803d}
#avision-dashboard-root .avi-hm-evolution-scan-badge--territory{background:#eff6ff;color:#1d4ed8}
#avision-dashboard-root .avi-hm-evolution-scan-delete{margin-left:auto;padding:4px 8px;border:1px solid #fecaca;border-radius:6px;background:#fff;color:#ef4444;font-size:.7rem;font-weight:700;cursor:pointer;flex-shrink:0;font-family:inherit}
#avision-dashboard-root .avi-hm-evolution-scan-delete:hover{background:#fef2f2}
#avision-dashboard-root .avi-hm-evolution-actions{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
#avision-dashboard-root .avi-hm-evolution-compare-btn{padding:9px 18px;border:0;border-radius:10px;background:#f59e0b;color:#fff;font-size:.82rem;font-weight:900;cursor:pointer;font-family:inherit;box-shadow:0 4px 12px rgba(245,158,11,.3)}
#avision-dashboard-root .avi-hm-evolution-compare-btn:disabled{opacity:.5;cursor:not-allowed}
#avision-dashboard-root .avi-hm-evolution-grid{display:grid;gap:12px;margin-bottom:16px}
#avision-dashboard-root .avi-hm-evolution-grid[data-count="1"]{grid-template-columns:1fr}
#avision-dashboard-root .avi-hm-evolution-grid[data-count="2"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-evolution-grid[data-count="3"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-evolution-grid[data-count="4"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-evolution-grid[data-count="5"]{grid-template-columns:1fr 1fr 1fr}
#avision-dashboard-root .avi-hm-evolution-mini-card{border:none;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(15,23,42,.08);transition:transform .2s ease,box-shadow .2s ease;border-top:3px solid #f59e0b}
#avision-dashboard-root .avi-hm-evolution-mini-card:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(15,23,42,.14)}
#avision-dashboard-root .avi-hm-evolution-mini-header{padding:10px 12px 8px;background:#fff;border-bottom:1px solid #f1f5f9;display:flex;flex-direction:column;gap:6px}
#avision-dashboard-root .avi-hm-evo-mini-header-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#avision-dashboard-root .avi-hm-evo-drag-handle{cursor:grab;font-size:1rem;color:#cbd5e1;padding:2px 4px;border-radius:4px;user-select:none;-webkit-user-select:none;transition:color .15s;flex-shrink:0;line-height:1}
#avision-dashboard-root .avi-hm-evo-drag-handle:hover{color:#7c3aed;background:#f5f3ff}
#avision-dashboard-root .avi-hm-evo-drag-handle:active{cursor:grabbing}
#avision-dashboard-root .avi-hm-evo-dragging{opacity:.4;border:2px dashed #7c3aed!important}
#avision-dashboard-root .avi-hm-evo-drag-over{border:2px dashed #f59e0b!important;background:#fffbeb!important}
#avision-dashboard-root .avi-hm-evo-mini-order-btns{display:flex;gap:2px}
#avision-dashboard-root .avi-hm-evo-mini-order-btn{width:22px;height:22px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#64748b;font-size:.65rem;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;font-family:inherit;transition:all .15s}
#avision-dashboard-root .avi-hm-evo-mini-order-btn:hover:not(:disabled){background:#0f172a;color:#fff;border-color:#0f172a}
#avision-dashboard-root .avi-hm-evo-mini-order-btn:disabled{opacity:.3;cursor:not-allowed}
#avision-dashboard-root .avi-hm-evo-set-ref-btn{border:none;background:none;cursor:pointer;font-size:.85rem;padding:0;opacity:.35;transition:opacity .15s;line-height:1;vertical-align:middle}
#avision-dashboard-root .avi-hm-evo-set-ref-btn:hover{opacity:1}
#avision-dashboard-root .avi-hm-evo-mini-kw-btns{display:flex;gap:4px;flex-wrap:wrap;padding:6px 10px;border-bottom:1px solid #f1f5f9;background:#f8fafc}
#avision-dashboard-root .avi-hm-evo-mini-kw-btn{padding:3px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:.66rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}
#avision-dashboard-root .avi-hm-evo-mini-kw-btn.is-active{background:#7c3aed;color:#fff;border-color:#7c3aed}
#avision-dashboard-root .avi-hm-evo-mini-kw-btn:hover:not(.is-active){background:#f1f5f9;color:#0f172a}
#avision-dashboard-root .avi-hm-evo-mini-date{font-size:.85rem;font-weight:950;color:#0f172a;letter-spacing:-.01em}
#avision-dashboard-root .avi-hm-evo-mini-grid-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#6d28d9);color:#fff;font-size:.68rem;font-weight:900;letter-spacing:.02em}
#avision-dashboard-root .avi-hm-evo-mini-header-kpis{display:flex;gap:6px;flex-wrap:nowrap}
#avision-dashboard-root .avi-hm-evo-mini-kpi-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap}
#avision-dashboard-root .avi-hm-evo-mini-kpi-pill--rank{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}
#avision-dashboard-root .avi-hm-evo-mini-kpi-pill--territory{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
#avision-dashboard-root .avi-hm-evolution-mini-map{height:200px;background:#f0ede8}
#avision-dashboard-root .avi-hm-evolution-mini-kpis{display:flex;gap:0;padding:0;border-top:1px solid #f1f5f9;flex-wrap:nowrap}
#avision-dashboard-root .avi-hm-evolution-mini-kpi{flex:1;text-align:center;padding:8px 6px;border-right:1px solid #f1f5f9;background:#fff}
#avision-dashboard-root .avi-hm-evolution-mini-kpi:last-child{border-right:none}
#avision-dashboard-root .avi-hm-evolution-mini-kpi strong{display:block;font-size:.88rem;color:#0f172a;font-weight:950;letter-spacing:-.01em;line-height:1.2}
#avision-dashboard-root .avi-hm-evolution-mini-kpi span{display:block;font-size:.58rem;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-top:2px}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--rank{background:#f0fdf4;border-right-color:#dcfce7}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--rank > strong{color:#15803d}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--rank span:not(.avi-hm-evolution-delta):not(.avi-hm-evo-ref-placeholder){color:#16a34a}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--territory{background:#eff6ff;border-right-color:#dbeafe}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--territory > strong{color:#1d4ed8}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--territory span:not(.avi-hm-evolution-delta):not(.avi-hm-evo-ref-placeholder){color:#2563eb}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--grid{background:#faf5ff;border-right-color:#ede9fe}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--grid > strong{color:#7c3aed}
#avision-dashboard-root .avi-hm-evolution-mini-kpi--grid span:not(.avi-hm-evolution-delta){color:#6d28d9}
#avision-dashboard-root .avi-hm-evolution-mini-kpi .avi-hm-evolution-delta--up{color:#14532d!important;background:#bbf7d0!important;border:1px solid #86efac!important}
#avision-dashboard-root .avi-hm-evolution-mini-kpi .avi-hm-evolution-delta--down{color:#7f1d1d!important;background:#fecaca!important;border:1px solid #fca5a5!important}
#avision-dashboard-root .avi-hm-evolution-mini-kpi .avi-hm-evolution-delta--neutral{color:#475569!important;background:#e2e8f0!important;border:1px solid #cbd5e1!important}
#avision-dashboard-root .avi-hm-evo-ref-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.62rem;font-weight:900;border:1px solid #fde68a;cursor:help}
#avision-dashboard-root .avi-hm-evo-ref-badge:hover{background:#fde68a}
#avision-dashboard-root .avi-hm-evo-ref-placeholder{font-size:.62rem;color:#94a3b8;font-weight:600;font-style:italic}
#avision-dashboard-root .avi-hm-evolution-delta{display:inline-flex;align-items:center;gap:2px;font-size:.75rem;font-weight:900;padding:3px 8px;border-radius:6px;margin-top:2px;letter-spacing:.01em}
#avision-dashboard-root .avi-hm-evolution-delta--up{color:#14532d;background:#bbf7d0;border:1px solid #86efac}
#avision-dashboard-root .avi-hm-evolution-delta--down{color:#7f1d1d;background:#fecaca;border:1px solid #fca5a5}
#avision-dashboard-root .avi-hm-evolution-delta--neutral{color:#475569;background:#e2e8f0;border:1px solid #cbd5e1}
#avision-dashboard-root .avi-hm-evolution-kpis{padding:14px 16px;border:none;border-radius:16px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;margin-top:12px;box-shadow:0 4px 20px rgba(15,23,42,.15)}
#avision-dashboard-root .avi-hm-evolution-kpis h4{margin:0 0 10px;font-size:.82rem;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
#avision-dashboard-root .avi-hm-evolution-kpis-values{display:flex;gap:16px;flex-wrap:wrap}
#avision-dashboard-root .avi-hm-evolution-kpis-values .avi-hm-evolution-delta{margin-top:0}
#avision-dashboard-root .avi-hm-evolution-kpi-global{display:flex;flex-direction:column;gap:3px}
#avision-dashboard-root .avi-hm-evolution-kpi-global strong{font-size:1.1rem;color:#fff;font-weight:950}
#avision-dashboard-root .avi-hm-evolution-kpi-global span{font-size:.68rem;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
#avision-dashboard-root .avi-hm-evolution-list-header{display:flex;align-items:center;gap:0;padding:4px 12px 6px;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8}
#avision-dashboard-root .avi-hm-evolution-header-check{flex:0 0 26px}
#avision-dashboard-root .avi-hm-evolution-header-date{flex:2;text-align:left}
#avision-dashboard-root .avi-hm-evolution-header-grid{flex:1;text-align:center}
#avision-dashboard-root .avi-hm-evolution-header-rank{flex:1.5;text-align:center;color:#15803d}
#avision-dashboard-root .avi-hm-evolution-header-territory{flex:1.5;text-align:center;color:#1d4ed8}
#avision-dashboard-root .avi-hm-evolution-header-delete{flex:0 0 70px}
#avision-dashboard-root .avi-hm-evo-mixed-warning{display:flex;align-items:flex-start;gap:8px;padding:10px 14px;margin-bottom:12px;border-radius:10px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:.78rem;font-weight:700;line-height:1.45;grid-column:1/-1}
#avision-dashboard-root .avi-hm-evo-mixed-warning span{display:inline}
#avision-dashboard-root .avi-hm-evo-diff-grid-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.62rem;font-weight:900;border:1px solid #fde68a}
#avision-dashboard-root .avi-hm-evo-common-points{padding:6px 10px;background:#fffbeb;border-top:1px solid #fde68a;font-size:.68rem;color:#92400e;font-weight:700;text-align:center}
#avision-dashboard-root .avi-hm-evolution-sort-btn{padding:6px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#64748b;font-size:.75rem;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s}
#avision-dashboard-root .avi-hm-evolution-sort-btn:hover{background:#f8fafc;color:#0f172a}
body.avi-hm-focus-open{overflow:hidden}
#avision-dashboard-root .avi-hm-focus-overlay{position:fixed;inset:0;z-index:100001;display:flex;flex-direction:column;background:#0f172a;padding:0;overflow-y:auto;overflow-x:hidden}
#avision-dashboard-root .avi-hm-focus-overlay[hidden]{display:none!important}
#avision-dashboard-root .avi-hm-focus-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#0f172a;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0;position:sticky;top:0;z-index:2}
#avision-dashboard-root .avi-hm-focus-title{color:#fff;font-size:.9rem;font-weight:800;letter-spacing:-.01em}
#avision-dashboard-root .avi-hm-focus-close{width:36px;height:36px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit}
#avision-dashboard-root .avi-hm-focus-close:hover{background:rgba(255,255,255,.18)}
#avision-dashboard-root .avi-hm-focus-grid{display:grid;gap:3px;padding:3px;background:#1e293b;grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-focus-grid[data-count="1"]{grid-template-columns:1fr}
#avision-dashboard-root .avi-hm-focus-grid[data-count="2"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-focus-grid[data-count="3"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-focus-grid[data-count="4"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-focus-grid[data-count="5"]{grid-template-columns:1fr 1fr}
#avision-dashboard-root .avi-hm-focus-grid > div{border-radius:6px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
#avision-dashboard-root .avi-hm-focus-map-el{height:60vh;min-height:300px;max-height:70vh;background:#f0ede8;flex:1}
#avision-dashboard-root .avi-hm-focus-btn{padding:7px 14px;border:1px solid #f59e0b;border-radius:8px;background:transparent;color:#f59e0b;font-size:.78rem;font-weight:800;cursor:pointer;font-family:inherit;transition:background .15s,color .15s}
#avision-dashboard-root .avi-hm-focus-btn:hover{background:#f59e0b;color:#fff}
#avision-dashboard-root .avi-hm-focus-nav{display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 20px;background:#0f172a;border-top:1px solid rgba(255,255,255,.08);flex-shrink:0}
#avision-dashboard-root .avi-hm-focus-nav-btn{padding:8px 20px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:.82rem;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s}
#avision-dashboard-root .avi-hm-focus-nav-btn:hover:not(:disabled){background:rgba(255,255,255,.18)}
#avision-dashboard-root .avi-hm-focus-nav-btn:disabled{opacity:.35;cursor:not-allowed}
#avision-dashboard-root .avi-hm-focus-page-info{color:#94a3b8;font-size:.82rem;font-weight:700;min-width:50px;text-align:center}
#avision-dashboard-root .avi-hm-focus-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#0f172a;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0}
#avision-dashboard-root .avi-hm-focus-header-left{display:flex;flex-direction:column;gap:2px;min-width:0}
#avision-dashboard-root .avi-hm-focus-title{color:#fff;font-size:.9rem;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#avision-dashboard-root .avi-hm-focus-subtitle{color:#64748b;font-size:.7rem;font-weight:600}
#avision-dashboard-root .avi-hm-focus-header-center{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;flex:1}
#avision-dashboard-root .avi-hm-focus-kw-btn{padding:4px 10px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:transparent;color:#94a3b8;font-size:.72rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
#avision-dashboard-root .avi-hm-focus-kw-btn.is-active{background:#f59e0b;border-color:#f59e0b;color:#fff}
#avision-dashboard-root .avi-hm-focus-header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
#avision-dashboard-root .avi-hm-focus-layout-btns{display:flex;gap:3px;background:rgba(255,255,255,.06);border-radius:8px;padding:3px}
#avision-dashboard-root .avi-hm-focus-layout-btn{width:28px;height:28px;border:none;border-radius:6px;background:transparent;color:#94a3b8;font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;font-family:inherit}
#avision-dashboard-root .avi-hm-focus-layout-btn.is-active{background:#f59e0b;color:#fff}
#avision-dashboard-root .avi-hm-focus-layout-btn:hover:not(.is-active){background:rgba(255,255,255,.1);color:#fff}
#avision-dashboard-root .avi-hm-evo-session-badge{font-size:.75rem;cursor:help;vertical-align:middle}
/* ── Step badge inline dans panel-head h4 ── */
#avision-dashboard-root .avi-heatmap-panel-head h4 {
  display: flex;
  align-items: center;
  gap: 6px;
}
#avision-dashboard-root .avi-hm-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0a1628;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
#avision-dashboard-root .avi-hm-step-badge.is-done {
  background: #10b981;
}
/* ── Panel title wrap + hint ── */
#avision-dashboard-root .avi-hm-panel-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
#avision-dashboard-root .avi-hm-panel-title-wrap h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  color: #0f172a;
  font-weight: 900;
}
#avision-dashboard-root .avi-hm-panel-hint {
  font-size: 10px;
  color: rgba(15,23,42,0.45);
  padding-left: 26px;
  line-height: 1.4;
}
#avision-dashboard-root span.avi-hm-panel-hint {
  display: block;
}
/* ── Compteur KW sélectionnés ── */
#avision-dashboard-root .avi-hm-kw-counter {
  font-size: .72rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
/* ── Bouton Open Map Step 2 ── */
#avision-dashboard-root .avi-hm-open-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
#avision-dashboard-root .avi-hm-open-map-btn:hover:not(.is-disabled) {
  background: #1e293b;
}
#avision-dashboard-root .avi-hm-open-map-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#avision-dashboard-root .avi-hm-open-map-icon {
  font-size: 1rem;
  line-height: 1;
}
#avision-dashboard-root .avi-hm-open-map-hint {
  font-size: .72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-left: 4px;
}
/* ── Modal confirmation scan ── */
#avision-dashboard-root .avi-hm-confirm-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(245,158,11,0.3);
}
#avision-dashboard-root .avi-hm-confirm-panel[hidden] {
  display: none;
}
#avision-dashboard-root .avi-hm-confirm-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
#avision-dashboard-root .avi-hm-confirm-icon {
  font-size: 1.4rem;
  line-height: 1;
}
#avision-dashboard-root .avi-hm-confirm-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#avision-dashboard-root .avi-hm-confirm-title {
  font-size: .88rem;
  font-weight: 800;
  color: #0f172a;
}
#avision-dashboard-root .avi-hm-confirm-sub {
  font-size: .75rem;
  color: #64748b;
}
#avision-dashboard-root .avi-hm-confirm-btns {
  display: flex;
  gap: 8px;
}
#avision-dashboard-root .avi-hm-confirm-ok {
  flex: 1;
  padding: 8px 12px;
  border-radius: 7px;
  border: none;
  background: #f59e0b;
  color: #0a1628;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
#avision-dashboard-root .avi-hm-confirm-ok:hover {
  background: #d97706;
}
#avision-dashboard-root .avi-hm-confirm-cancel {
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid rgba(15,23,42,0.15);
  background: transparent;
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
#avision-dashboard-root .avi-hm-confirm-cancel:hover {
  background: rgba(15,23,42,0.05);
}
/* ── Popup concurrent v2 ── */
#avision-dashboard-root
  .avi-hm-popup--competitor {
  border-top: 3px solid #7c3aed;
  min-width: 200px;
  max-width: 240px;
  padding: 10px 12px;
}
#avision-dashboard-root
  .avi-hm-popup__comp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
#avision-dashboard-root
  .avi-hm-popup__comp-rank-pill,
#avision-dashboard-root
  .avi-hm-popup__comp-header .avi-hm-popup__comp-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
}
#avision-dashboard-root
  .avi-hm-popup__top-badge {
  font-size: .62rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  border-radius: 4px;
  padding: 1px 5px;
}
#avision-dashboard-root
  .avi-hm-popup__comp-name {
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}
#avision-dashboard-root
  .avi-hm-popup__comp-coverage {
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
}
#avision-dashboard-root
  .avi-hm-popup__cov-pct {
  font-weight: 700;
  color: #7c3aed;
}
#avision-dashboard-root
  .avi-hm-popup__cov-pts {
  color: #94a3b8;
  font-size: .68rem;
}
#avision-dashboard-root
  .avi-hm-popup__comp-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 7px;
}
#avision-dashboard-root
  .avi-hm-popup__gbp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  transition: background 0.12s;
  width: 100%;
  justify-content: center;
}
#avision-dashboard-root
  .avi-hm-popup__gbp-btn:hover {
  background: #ede9fe;
}

/* ── Threat level badge ── */
#avision-dashboard-root
  .avi-hm-popup__comp-threat {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: .72rem;
}
#avision-dashboard-root
  .avi-hm-popup__comp-threat.threat--high,
#avision-dashboard-root
  .avi-hm-popup--competitor .threat--high {
  background: #fee2e2;
}
#avision-dashboard-root
  .avi-hm-popup__comp-threat.threat--medium {
  background: #fef9c3;
}
#avision-dashboard-root
  .avi-hm-popup__comp-threat.threat--low {
  background: #dcfce7;
}
#avision-dashboard-root
  .avi-hm-popup__threat-dot {
  font-size: .8rem;
  line-height: 1;
}
#avision-dashboard-root
  .avi-hm-popup__threat-label {
  font-size: .68rem;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}
#avision-dashboard-root
  .avi-hm-popup__comp-rating {
  font-size: .74rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

/* ── Category tag ── */
#avision-dashboard-root
  .avi-hm-popup__comp-category,
#avision-dashboard-root
  .avi-hm-popup--competitor .avi-hm-popup__comp-category {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
#avision-dashboard-root
  .avi-hm-popup__cat-icon {
  font-size: .72rem;
  line-height: 1;
}
#avision-dashboard-root
  .avi-hm-popup__cat-label {
  font-size: .72rem;
  color: #475569;
  font-weight: 500;
  font-style: italic;
}

/* ── Toggle competitors ── */
#avision-dashboard-root .avi-hm-competitors-toggle {
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #7c3aed;
  background: #fff;
  color: #7c3aed;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
#avision-dashboard-root
  .avi-hm-competitors-toggle.is-active {
  background: #7c3aed;
  color: #fff;
}
#avision-dashboard-root .avi-hm-competitors-individual {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
  /* Anti-régression #Sprint43-C12-scroll-fix — scroll liste concurrents corrigé */
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #f3f0ff;
  padding-right: 4px;
}
#avision-dashboard-root .avi-hm-competitors-individual::-webkit-scrollbar {
  width: 4px;
}
#avision-dashboard-root .avi-hm-competitors-individual::-webkit-scrollbar-track {
  background: #f3f0ff;
  border-radius: 4px;
}
#avision-dashboard-root .avi-hm-competitors-individual::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 4px;
}
/* ── Keyword Power ── */
#avision-dashboard-root
  .avi-hm-popup__kw-power {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#avision-dashboard-root
  .avi-hm-popup__kw-power-bar {
  display: block;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
#avision-dashboard-root
  .avi-hm-popup__kw-power-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
#avision-dashboard-root
  .avi-hm-popup__kw-power-label {
  font-size: .72rem;
  font-weight: 600;
}
#avision-dashboard-root
  .avi-hm-popup__kw-power-sub {
  font-size: .65rem;
  color: #94a3b8;
}
/* ── Competitor Intelligence Panel
   (colonne droite map-stats) ── */
#avision-dashboard-root .avi-hm-intel-panel {
  width: 100%;
}
#avision-dashboard-root
  .avi-hm-intel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
}
#avision-dashboard-root .avi-hm-intel-title {
  font-size: .68rem;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .05em;
}
#avision-dashboard-root
  .avi-hm-intel-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #7c3aed;
  font-size: .8rem;
  padding: 0 2px;
  line-height: 1;
}
#avision-dashboard-root
  .avi-hm-intel-subtitle {
  font-size: .62rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}
#avision-dashboard-root
  .avi-hm-intel-kw-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 4px;
}
#avision-dashboard-root
  .avi-hm-intel-kw-btn {
  font-size: .6rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #7c3aed;
  background: #fff;
  color: #7c3aed;
  cursor: pointer;
}
#avision-dashboard-root
  .avi-hm-intel-kw-btn.is-active {
  background: #7c3aed;
  color: #fff;
}
#avision-dashboard-root .avi-hm-intel-empty {
  font-size: .65rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}
#avision-dashboard-root .avi-hm-intel-group {
  margin-bottom: 2px;
}
#avision-dashboard-root
  .avi-hm-intel-group summary {
  font-size: .65rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 1px 0;
  list-style: none;
  user-select: none;
}
#avision-dashboard-root
  .avi-hm-intel-group
  summary::-webkit-details-marker {
  display: none;
}
#avision-dashboard-root .avi-hm-intel-row {
  display: grid;
  grid-template-columns: 28px 1fr 36px 36px;
  gap: 4px;
  align-items: start;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .65rem;
}
#avision-dashboard-root .avi-hm-intel-rank {
  font-weight: 800;
  color: #7c3aed;
  font-size: .65rem;
}
#avision-dashboard-root .avi-hm-intel-name {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#avision-dashboard-root
  .avi-hm-intel-name em {
  font-size: .58rem;
  color: #94a3b8;
  font-weight: 400;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#avision-dashboard-root .avi-hm-intel-meta {
  text-align: right;
  color: #64748b;
  font-size: .6rem;
  white-space: nowrap;
  line-height: 1.3;
}
#avision-dashboard-root
  .avi-hm-intel-row .avi-hm-intel-rating,
#avision-dashboard-root
  .avi-hm-intel-overlay-body .avi-hm-intel-rating,
#avision-dashboard-root
  .avi-hm-intel-rating {
  text-align: center;
  color: #64748b;
  font-size: .63rem;
  white-space: nowrap;
  font-weight: 600;
}
#avision-dashboard-root
  .avi-hm-intel-row .avi-hm-intel-coverage,
#avision-dashboard-root
  .avi-hm-intel-overlay-body .avi-hm-intel-coverage,
#avision-dashboard-root
  .avi-hm-intel-coverage {
  text-align: right;
  color: #7c3aed;
  font-size: .63rem;
  white-space: nowrap;
  font-weight: 700;
}
#avision-dashboard-root .avi-hm-intel-more {
  font-size: .6rem;
  color: #7c3aed;
  font-weight: 600;
  text-align: right;
  margin: 3px 0 0;
  cursor: pointer;
}
/* ── Intel overlay expand ── */
#avision-dashboard-root
  .avi-hm-intel-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px
    rgba(15,23,42,0.12);
  animation: slideInRight 0.2s ease;
}
#avision-dashboard-root
  .avi-hm-intel-overlay[hidden] {
  display: none!important;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
#avision-dashboard-root
  .avi-hm-intel-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #faf8ff;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-header strong {
  font-size: .78rem;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .05em;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #64748b;
  padding: 0 4px;
  line-height: 1;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-close:hover {
  color: #0f172a;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 12px 16px;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-body
  .avi-hm-intel-row {
  grid-template-columns: 28px 1fr 42px 42px;
  font-size: .74rem;
  padding: 6px 0;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-body
  .avi-hm-intel-name {
  white-space: normal;
  font-size: .72rem;
}
#avision-dashboard-root
  .avi-hm-intel-overlay-body
  .avi-hm-intel-meta {
  font-size: .68rem;
}

/* ── Intel header row (légendes) ── */
#avision-dashboard-root
  .avi-hm-intel-row--header {
  padding: 2px 0 3px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2px;
}
#avision-dashboard-root
  .avi-hm-intel-row--header .avi-hm-intel-col-pos,
#avision-dashboard-root
  .avi-hm-intel-col-pos {
  font-size: .58rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#avision-dashboard-root
  .avi-hm-intel-col-name {
  font-size: .58rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#avision-dashboard-root
  .avi-hm-intel-col-meta {
  font-size: .58rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: right;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#avision-dashboard-root
  .avi-hm-intel-col-rating {
  font-size: .55rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: center;
}
#avision-dashboard-root
  .avi-hm-intel-col-coverage {
  font-size: .55rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: right;
}

/* ── Intel footer ── */
#avision-dashboard-root
  .avi-hm-intel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}
#avision-dashboard-root
  .avi-hm-intel-expand-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  color: #7c3aed;
  font-size: .85rem;
  padding: 1px 5px;
  line-height: 1;
  transition: background 0.12s;
}
#avision-dashboard-root
  .avi-hm-intel-expand-btn:hover {
  background: #f5f3ff;
}
/* ── Onglet Competitors ── */
#avision-dashboard-root
  .avi-hm-competitors-panel-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
#avision-dashboard-root
  .avi-hm-competitors-panel-root[hidden] {
  display: none!important;
}
#avision-dashboard-root
  .avi-hm-comp-tab-header {
  padding: 14px 20px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #faf8ff;
  flex-shrink: 0;
}
#avision-dashboard-root
  .avi-hm-comp-tab-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
#avision-dashboard-root
  .avi-hm-comp-tab-title {
  font-size: .9rem;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .05em;
}
#avision-dashboard-root
  .avi-hm-comp-tab-sub {
  font-size: .72rem;
  color: #94a3b8;
}
#avision-dashboard-root
  .avi-hm-comp-kw-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
#avision-dashboard-root
  .avi-hm-comp-kw-pill {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #7c3aed;
  background: #fff;
  color: #7c3aed;
  cursor: pointer;
  transition: background 0.12s;
}
#avision-dashboard-root
  .avi-hm-comp-kw-pill.is-active {
  background: #7c3aed;
  color: #fff;
}
#avision-dashboard-root
  .avi-hm-comp-sort-label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
#avision-dashboard-root
  .avi-hm-comp-sort-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#avision-dashboard-root
  .avi-hm-comp-sort-btn {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.12s;
}
#avision-dashboard-root
  .avi-hm-comp-sort-btn.is-active {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #7c3aed;
  font-weight: 700;
}
#avision-dashboard-root
  .avi-hm-comp-sort-btn:hover:not(.is-active) {
  border-color: #cbd5e1;
  background: #f8fafc;
}
#avision-dashboard-root
  .avi-hm-comp-tab-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
#avision-dashboard-root
  .avi-hm-comp-tab-empty {
  padding: 20px;
  font-size: .78rem;
  color: #94a3b8;
  font-style: italic;
}
/* ── Tableau concurrent ── */
#avision-dashboard-root
  .avi-hm-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
#avision-dashboard-root
  .avi-hm-comp-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
#avision-dashboard-root
  .avi-hm-comp-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: .68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
#avision-dashboard-root
  .avi-hm-comp-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
#avision-dashboard-root
  .avi-hm-comp-row:hover {
  background: #faf8ff;
}
#avision-dashboard-root
  .avi-hm-threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
#avision-dashboard-root
  .avi-hm-threat-badge.threat--high {
  background: #fee2e2;
  color: #dc2626;
}
#avision-dashboard-root
  .avi-hm-threat-badge.threat--medium {
  background: #fef9c3;
  color: #ca8a04;
}
#avision-dashboard-root
  .avi-hm-threat-badge.threat--low {
  background: #dcfce7;
  color: #16a34a;
}
#avision-dashboard-root .comp-name {
  font-weight: 700;
  color: #0f172a;
}
#avision-dashboard-root .comp-cat {
  font-size: .68rem;
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
}
#avision-dashboard-root .comp-null {
  color: #cbd5e1;
}
#avision-dashboard-root .comp-cov-pct {
  font-weight: 700;
  color: #7c3aed;
}
#avision-dashboard-root .comp-cov-pts {
  font-size: .65rem;
  color: #94a3b8;
}
#avision-dashboard-root
  .avi-hm-comp-gbp-btn {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #ede9fe;
  background: #f5f3ff;
  color: #7c3aed;
  cursor: pointer;
  transition: background 0.12s;
}
#avision-dashboard-root
  .avi-hm-comp-gbp-btn:hover {
  background: #ede9fe;
}
#avision-dashboard-root
  .avi-hm-sort-tip {
  font-size: .65rem;
  cursor: help;
  opacity: 0.7;
}
#avision-dashboard-root
  .avi-hm-comp-table
  .col-rank {
  text-align: center;
  width: 50px;
}
#avision-dashboard-root
  .avi-hm-comp-table th.col-threat,
#avision-dashboard-root
  .avi-hm-comp-table td.col-threat {
  white-space: nowrap;
  min-width: 130px;
}
#avision-dashboard-root
  .avi-hm-comp-table
  .col-name {
  min-width: 150px;
}
#avision-dashboard-root
  .avi-hm-comp-table
  .col-category {
  min-width: 100px;
}
#avision-dashboard-root
  .avi-hm-comp-table
  .col-rating,
#avision-dashboard-root
  .avi-hm-comp-table
  .col-reviews {
  text-align: center;
  width: 70px;
}
#avision-dashboard-root
  .avi-hm-comp-table
  .col-coverage {
  text-align: right;
  width: 90px;
}
#avision-dashboard-root
  .avi-hm-comp-table
  .col-gbp {
  text-align: center;
  width: 50px;
}
#avision-dashboard-root .avi-hm-export-buttons {
  display: flex;
  gap: 8px;
}
#avision-dashboard-root .avi-hm-export-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}
#avision-dashboard-root .avi-hm-export-btn:hover {
  background: #f5f5f5;
}
/* ── Headers tri colonnes ── */
#avision-dashboard-root
  .avi-hm-comp-table th.sortable-col {
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}
#avision-dashboard-root
  .avi-hm-comp-table th.sortable-col:hover {
  background: #f1f5f9;
}
#avision-dashboard-root
  .avi-hm-sort-arrow {
  font-size: .6rem;
  color: #cbd5e1;
  margin-left: 2px;
}
#avision-dashboard-root
  .avi-hm-sort-arrow.is-active {
  color: #7c3aed;
  font-weight: 900;
}
.avi-hm-coverage-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22,163,74,0.08);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}
.avi-hm-coverage-badge .avi-hm-coverage-icon {
    font-size: 11px;
    opacity: 0.8;
}
.avi-hm-coverage-badge .avi-hm-coverage-lbl {
    font-weight: 400;
    opacity: 0.75;
    font-size: 11px;
}
.avi-hm-coverage-badge .avi-hm-coverage-none {
    font-weight: 400;
    color: #94a3b8;
    font-size: 11px;
}
.avi-hm-coverage-sep {
    opacity: 0.35;
    font-weight: 400;
    margin: 0 2px;
}
.avi-hm-coverage-kw {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.65;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ── Trend Overlay Badges ─────────────────────────────── */
.avi-hm-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px 2px 5px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.2px;
    backdrop-filter: blur(2px);
    border: 1.5px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.12);
}
.avi-hm-trend--up {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    animation: avi-trend-pulse-up 2.5s ease-in-out infinite;
}
.avi-hm-trend--down {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
}
.avi-hm-trend--same {
    background: rgba(100,116,139,0.82);
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
}
.avi-hm-trend--new {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    font-size: 10px;
}
.avi-hm-trend-arrow {
    font-size: 10px;
    line-height: 1;
    display: inline-block;
}
.avi-hm-trend-val {
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}
@keyframes avi-trend-pulse-up {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 0 0 0 rgba(22,163,74,0.45);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 0 0 6px rgba(22,163,74,0);
    }
}

/* ── Trend Legend ──────────────────────────────────────── */
/* Anti-régression #Sprint43-C12-drawer-float-override — override drawer flottant */
.avi-heatmap-competitors-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 500 !important;
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
}

/* Légende trend — côté droit */
.avi-hm-trend-legend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.avi-hm-trend-legend-item {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: help;
}
.avi-hm-trend-legend-sep {
    color: #cbd5e1;
    font-size: 11px;
    margin: 0 2px;
}
.avi-hm-trend-legend-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    cursor: help;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-left: 2px;
}

/* Date overlay — bandeau au-dessus de la carte */
.avi-hm-scan-date-overlay {
    display: block;
    text-align: center;
    background: rgba(15,23,42,0.06);
    color: #475569;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 0;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
    box-sizing: border-box;
}

/* Anti-régression #Sprint43-Frontend5-pulse — animations bataille concurrents */
/* Anti-régression #Sprint43-Frontend5-pulse-fix — pulse via opacity+scale sur divIcon Leaflet */
/* Anti-régression #Sprint43-C12-pin-transform-fix — pulse sur .avi-comp-pin-wrap interne uniquement */
#avision-dashboard-root .avi-comp-pin.leaflet-marker-icon {
    background: transparent !important;
    border: none !important;
}
#avision-dashboard-root .avi-comp-pin-wrap {
    width: 28px;
    height: 40px;
    line-height: 0;
    transform-origin: center bottom;
}
/* pulse rapide : DANGER (concurrent top 3, profil absent) */
/* Anti-régression #Sprint43-C12-pulse-3x-css — aligné sur SVG repeatCount=3, pas de boucle infinie */
.avi-comp-pulse-fast {
    animation: avi-comp-pulse-fast 1s ease-in-out 3;
    transform-origin: center bottom;
}
@keyframes avi-comp-pulse-fast {
    0%   { opacity: 1;    transform: scale(1);    filter: drop-shadow(0 0 0px #ef4444); }
    50%  { opacity: 0.7;  transform: scale(1.18); filter: drop-shadow(0 0 8px #ef4444); }
    100% { opacity: 1;    transform: scale(1);    filter: drop-shadow(0 0 0px #ef4444); }
}
/* pulse lent : Menace (concurrent 4-10, profil absent) */
.avi-comp-pulse-slow {
    animation: avi-comp-pulse-slow 2.2s ease-in-out 3;
    transform-origin: center bottom;
}
@keyframes avi-comp-pulse-slow {
    0%   { opacity: 1;    transform: scale(1);    filter: drop-shadow(0 0 0px #f97316); }
    50%  { opacity: 0.75; transform: scale(1.12); filter: drop-shadow(0 0 6px #f97316); }
    100% { opacity: 1;    transform: scale(1);    filter: drop-shadow(0 0 0px #f97316); }
}
/* popup threat labels bataille */
.threat--danger  { background: #fef2f2; border-left: 3px solid #dc2626; }
.threat--menace  { background: #fff7ed; border-left: 3px solid #f97316; }
.threat--lutte   { background: #fffbeb; border-left: 3px solid #f59e0b; }
.threat--repousse{ background: #f8fafc; border-left: 3px solid #94a3b8; }
.avi-hm-popup__prof-rank-pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════
   Anti-régression #Sprint43-C12-sidebar-bataille-css
   Sidebar bataille concurrents — panneau flottant gauche
   ═══════════════════════════════════════════════════════ */
/* Anti-régression #Sprint43-C12-sidebar-over-drawer — overlay par-dessus .avi-heatmap-modal-info (drawer gauche 340px) */
#avision-dashboard-root .avi-hm-battle-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 100%;
  background: #fff;
  border-right: 2px solid #ede9fe;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(124,58,237,0.18);
  animation: slideInLeft 0.22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#avision-dashboard-root .avi-hm-battle-sidebar[hidden] {
  display: none !important;
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
/* Header */
#avision-dashboard-root .avi-hm-bs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  flex-shrink: 0;
}
#avision-dashboard-root .avi-hm-bs-title {
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .01em;
}
#avision-dashboard-root .avi-hm-bs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  font-size: .72rem;
  font-weight: 900;
  margin-left: 6px;
}
#avision-dashboard-root .avi-hm-bs-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Recherche */
#avision-dashboard-root .avi-hm-bs-search {
  padding: 8px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #f1f0fe;
}
#avision-dashboard-root .avi-hm-bs-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #ede9fe;
  border-radius: 8px;
  font-size: .78rem;
  outline: none;
  background: #faf9ff;
}
#avision-dashboard-root .avi-hm-bs-search input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.12);
}
/* Filtres */
#avision-dashboard-root .avi-hm-bs-filters {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #f1f0fe;
  flex-wrap: wrap;
}
#avision-dashboard-root .avi-hm-bs-filter-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid #ede9fe;
  background: #fff;
  color: #6d28d9;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
#avision-dashboard-root .avi-hm-bs-filter-btn.is-active {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}
/* Liste */
#avision-dashboard-root .avi-hm-bs-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #f3f0ff;
}
#avision-dashboard-root .avi-hm-bs-list::-webkit-scrollbar { width: 4px; }
#avision-dashboard-root .avi-hm-bs-list::-webkit-scrollbar-track { background: #f3f0ff; }
#avision-dashboard-root .avi-hm-bs-list::-webkit-scrollbar-thumb { background: #7c3aed; border-radius: 4px; }
/* Groupe */
#avision-dashboard-root .avi-hm-bs-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 3px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  background: #f8f7ff;
  border-top: 1px solid #ede9fe;
  margin-top: 4px;
}
#avision-dashboard-root .avi-hm-bs-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 900;
  color: #fff;
}
/* Item concurrent */
#avision-dashboard-root .avi-hm-bs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f8f7ff;
  transition: background .12s;
}
#avision-dashboard-root .avi-hm-bs-item:hover {
  background: #faf9ff;
}
#avision-dashboard-root .avi-hm-bs-item.is-active {
  background: #f3f0ff;
  border-left: 3px solid #7c3aed;
}
#avision-dashboard-root .avi-hm-bs-badge {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
#avision-dashboard-root .avi-hm-bs-name {
  flex: 1;
  font-size: .74rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#avision-dashboard-root .avi-hm-bs-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
#avision-dashboard-root .avi-hm-bs-rank {
  font-size: .68rem;
  font-weight: 900;
  color: #7c3aed;
}
#avision-dashboard-root .avi-hm-bs-dist {
  font-size: .62rem;
  color: #94a3b8;
}
#avision-dashboard-root .avi-hm-bs-rating {
  font-size: .62rem;
  color: #f59e0b;
}
/* Footer actions */
#avision-dashboard-root .avi-hm-bs-footer {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #ede9fe;
  flex-shrink: 0;
  background: #faf9ff;
}
#avision-dashboard-root .avi-hm-bs-footer-btn {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  border: 1.5px solid #ede9fe;
  background: #fff;
  color: #6d28d9;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
#avision-dashboard-root .avi-hm-bs-footer-btn:hover {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

/* Anti-régression #Sprint43-C12-kw-note-css — note keyword actif sidebar bataille */
#avision-dashboard-root .avi-hm-bs-kw-note {
  padding: 6px 12px;
  background: linear-gradient(135deg, #faf5ff, #f3f0ff);
  border-bottom: 1px solid #ede9fe;
  font-size: .72rem;
  color: #6d28d9;
  flex-shrink: 0;
}
#avision-dashboard-root .avi-hm-bs-kw-note strong {
  color: #4c1d95;
  font-weight: 800;
}

/* Anti-régression #Sprint43-C12-zone-label-css-v2 — label géographique lisible sur fond carte */
.avi-comp-zone-label {
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid currentColor !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
  padding: 2px 6px !important;
  font-size: .65rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
.avi-comp-zone-label::before {
  display: none !important;
}

/* Anti-régression #Sprint43-C12-zone-info-btn-css-v2 — bouton ⬡ ℹ cohérent avec boutons aide bleus */
#avision-dashboard-root .avi-hm-bs-zone-info {
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
#avision-dashboard-root .avi-hm-bs-zone-info:hover {
  background: #2563eb;
}

/* ═══════════════════════════════════════
   #Sprint43-scheduler — Scans programmés
   ═══════════════════════════════════════ */

/* Sélecteur fréquence */
.avi-hm-schedule-selector {
    margin-top: 10px;
}

.avi-hm-frequency-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: .875rem;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: border-color .15s;
}

.avi-hm-frequency-select:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}

/* Note crédits dynamique */
.avi-hm-schedule-note {
    font-size: .75rem;
    color: #6d28d9;
    margin: 4px 0 0;
    min-height: 1.1em;
    transition: opacity .2s;
}

/* Confirm panel enrichi */
.avi-hm-confirm-title {
    font-weight: 600;
    font-size: .9rem;
    margin: 0 0 6px;
    color: #111827;
}

.avi-hm-confirm-detail {
    font-size: .82rem;
    color: #1f2937;
    font-weight: 500;
    margin: 0 0 6px;
}

.avi-hm-confirm-balance {
    font-size: .82rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.avi-hm-confirm-balance.ok   { color: #047857; }
.avi-hm-confirm-balance.warn { color: #b45309; }

.avi-hm-confirm-warn {
    font-size: .78rem;
    color: #7c3aed;
    background: #f5f3ff;
    border-left: 3px solid #7c3aed;
    padding: 4px 8px;
    margin: 0 0 8px;
    border-radius: 0 4px 4px 0;
}

/* Modal hm_schedule — étapes .avi-pedago-step (autres modals = inline via hmPedagoStep) */
.avi-hm-schedule-selector .avi-pedago-step,
#avision-dashboard-root .avi-hm-pedago-body .avi-pedago-step {
    background: #f5f3ff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#avision-dashboard-root .avi-hm-pedago-body .avi-pedago-num {
    background: #6d28d9;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Schedule actif — bloc enrichi */
.avi-hm-schedule-active-block {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: .8rem;
    overflow: hidden;
}

.avi-hm-schedule-active-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: .85rem;
}

.avi-hm-schedule-toggle {
    cursor: pointer;
    user-select: none;
}

.avi-hm-schedule-toggle:hover {
    background: #ede9fe;
    border-radius: 6px;
}

.avi-hm-schedule-chevron {
    margin-left: auto;
    font-size: .8rem;
    color: #6d28d9;
    transition: transform .2s;
}

.avi-hm-schedule-active-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd6fe;
}

.avi-hm-schedule-active-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    flex-shrink: 0;
    animation: avi-pulse-dot 2s infinite;
}

@keyframes avi-pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.avi-hm-schedule-freq-badge {
    background: #ede9fe;
    color: #6d28d9;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .72rem;
    font-weight: 600;
    margin-left: auto;
}

.avi-hm-schedule-active-row {
    color: #374151;
    margin-bottom: 4px;
    min-width: 0;
}

.avi-hm-schedule-active-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.avi-hm-schedule-dates-label {
    font-size: .75rem;
    color: #6b7280;
    width: 100%;
}

.avi-hm-schedule-date {
    background: #ede9fe;
    color: #5b21b6;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: .75rem;
}

.avi-hm-schedule-date.next {
    background: #6d28d9;
    color: #fff;
    font-weight: 600;
}

.avi-hm-schedule-cancel-btn {
    width: 100%;
    padding: 5px 0;
    background: transparent;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    font-size: .78rem;
    cursor: pointer;
    transition: background .15s;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avi-hm-schedule-cancel-btn:hover {
    background: #fef2f2;
}

/* ═══════════════════════════════════════
   Fin #Sprint43-scheduler
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   #Sprint43-scheduler-overlay — Panneau schedules
   ═══════════════════════════════════════════════ */

/* Badge minimal dans drawer */
.avi-hm-schedule-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.avi-hm-schedule-badge-count {
    font-size: .82rem;
    color: #374151;
    font-weight: 500;
}

.avi-hm-schedule-manage-btn {
    margin-left: auto;
    background: #ede9fe;
    color: #6d28d9;
    border: none;
    border-radius: 5px;
    padding: 3px 10px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.avi-hm-schedule-manage-btn:hover {
    background: #ddd6fe;
}

/* Panneau overlay */
.avi-hm-schedule-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.avi-hm-schedule-panel.is-open {
    pointer-events: all;
}

.avi-hm-sp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .25s;
}

.avi-hm-schedule-panel.is-open .avi-hm-sp-backdrop {
    opacity: 1;
}

.avi-hm-sp-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    overflow: visible;
}

.avi-hm-schedule-panel.is-open .avi-hm-sp-drawer {
    transform: translateX(0);
}

.avi-hm-sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #faf5ff;
}

.avi-hm-sp-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.avi-hm-sp-close {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s;
}

.avi-hm-sp-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.avi-hm-sp-strategy {
    font-size: .8rem;
    color: #6d28d9;
    background: #f5f3ff;
    margin: 0;
    padding: 10px 20px;
    border-bottom: 1px solid #ede9fe;
    display: flex;
    align-items: center;
    gap: 6px;
}

.avi-hm-sp-strategy-icon {
    font-size: 1rem;
}

.avi-hm-sp-table-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 16px 20px;
}

.avi-hm-sp-table {
    width: 100%;
    min-width: 340px;
    border-collapse: collapse;
    font-size: .82rem;
}

.avi-hm-sp-table thead th {
    text-align: left;
    color: #6b7280;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0 8px 10px;
    border-bottom: 2px solid #e5e7eb;
}

.avi-hm-sp-row {
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}

.avi-hm-sp-row:hover {
    background: #faf5ff;
}

.avi-hm-sp-row td {
    padding: 10px 8px;
    vertical-align: middle;
    color: #1f2937;
}

.avi-hm-sp-grid-badge {
    display: inline-block;
    background: #1f2937;
    color: #fff;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 700;
    font-family: monospace;
}

.avi-hm-sp-freq-badge {
    display: inline-block;
    background: #ede9fe;
    color: #6d28d9;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: .75rem;
    font-weight: 600;
}

.avi-hm-sp-kw {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
}

.avi-hm-sp-next {
    color: #059669;
    font-weight: 500;
    white-space: nowrap;
}

.avi-hm-sp-cancel-btn {
    background: transparent;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    color: #dc2626;
    font-size: .72rem;
    padding: 3px 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.avi-hm-sp-cancel-btn:hover {
    background: #fef2f2;
}

/* #SprintL1-L3.7 mobile cancel fix */
@media (max-width: 480px) {
    .avi-hm-sp-table-wrap {
        padding: 12px 10px;
    }
    .avi-hm-sp-table {
        min-width: 300px;
        font-size: .75rem;
    }
}

.avi-hm-sp-empty {
    text-align: center;
    color: #9ca3af;
    padding: 32px 0;
    font-style: italic;
}

/* Modal pédago — stratégie multi-grilles */
.avi-hm-pedago-strategy {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
}

.avi-hm-pedago-strategy-title {
    font-weight: 700;
    font-size: .88rem;
    color: #5b21b6;
    margin-bottom: 4px;
}

.avi-hm-pedago-grid-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.avi-hm-pedago-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: #374151;
}

.avi-hm-pedago-grid-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 700;
    font-family: monospace;
    font-size: .75rem;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.avi-hm-pedago-grid-badge.sm {
    background: #d1fae5;
    color: #065f46;
}

.avi-hm-pedago-grid-badge.md {
    background: #dbeafe;
    color: #1e40af;
}

.avi-hm-pedago-grid-badge.lg {
    background: #fde8d8;
    color: #92400e;
}

/* ═══════════════════════════════════════════════
   Fin #Sprint43-scheduler-overlay
   ═══════════════════════════════════════════════ */
