/* ------------------------------------------------------------------
   Baromètre mensuel — écran du portail.
   Jetons de couleur : dashboard.css (charte OpinionWay 2025).
   ------------------------------------------------------------------ */
.baro{max-width:1400px;margin:0 auto;padding:20px 20px 70px;--up:#1E8C4E;--down:#CB2F58;--grey:#9A90A0}
.baro .bhead{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.baro .bhead h1{font-size:22px;color:var(--cassis);line-height:1.2}
.baro .bhead .qs{color:var(--muted);font-size:12.5px;margin-top:4px}
.baro .bhead .tools{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}

.baro .bbar{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:18px}
.baro .segs{display:inline-flex;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:3px}
.baro .segs button{border:0;background:transparent;padding:6px 14px;border-radius:999px;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
.baro .segs button.on{background:var(--cassis);color:#fff;font-weight:600}
.baro .btabs{display:flex;gap:2px;flex-wrap:wrap}
.baro .btabs button{border:0;background:transparent;padding:8px 12px;font:inherit;font-size:13.5px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}
.baro .btabs button.on{color:var(--cassis);font-weight:600;border-bottom-color:var(--framboise)}
.baro .btabs button.staff{color:var(--framboise)}
.baro select{padding:6px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13px;background:#fff;color:var(--ink)}
.baro .bbar .sp{flex:1}

/* tuiles KPI */
.baro .ktiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-bottom:22px}
.baro .ktile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px 12px;position:relative;overflow:hidden}
.baro .ktile:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--cassis)}
.baro .ktile .klab{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.baro .ktile .kq{font-size:11.5px;color:var(--muted);margin-top:2px}
.baro .ktile .kval{font-size:34px;font-weight:700;color:var(--cassis);letter-spacing:-.02em;margin-top:8px;line-height:1;display:flex;align-items:baseline;gap:10px}
.baro .ktile .kval small{font-size:14px;color:var(--muted);font-weight:600}
.baro .ktile .kdelta{font-size:13px;font-weight:600;color:var(--grey)}
.baro .ktile .kdelta.up{color:var(--up)} .baro .ktile .kdelta.down{color:var(--down)}
.baro .ktile .kfoot{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-top:10px;font-size:11.5px;color:var(--muted)}
.baro .ktile svg.spark{display:block}

/* cartes et sections */
.baro .bcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 20px;margin-bottom:18px}
.baro .bcard h2{font-size:15.5px;color:var(--cassis)}
.baro .bcard .sub{font-size:12px;color:var(--muted);margin:3px 0 14px}
.baro .cols2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:18px}
.baro .cols2>*,.baro .bcard{min-width:0}
.baro .note{font-size:11.5px;color:var(--muted);line-height:1.5}

/* tableaux */
.baro .btbl{width:100%;border-collapse:collapse;font-size:13px}
.baro .btbl th{font-size:11.5px;font-weight:700;color:var(--muted);text-align:center;padding:6px 8px;border-bottom:2px solid var(--line);white-space:nowrap}
.baro .btbl th:first-child,.baro .btbl td:first-child{text-align:left}
.baro .btbl td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:center;white-space:nowrap}
.baro .btbl td:first-child{white-space:normal;min-width:220px}
.baro .btbl tr.btot td{font-weight:700;background:#FBF8FC;color:var(--cassis)}
.baro .btbl tr.base td{color:var(--muted);font-size:12px;background:var(--soft)}
.baro .btbl td.cur,.baro .btbl th.cur{background:#F3EAF1}
.baro .btbl td.cum,.baro .btbl th.cum{color:var(--muted)}
.baro .btbl tr.btot td.cur{background:#EBDDE8}
.baro .btbl td.lowb{color:var(--grey)}
.baro .btbl .scroll{overflow-x:auto}
.baro .tscroll{overflow-x:auto;margin:0 -4px;padding:0 4px}
.baro .arr{font-size:10px;margin-left:3px;vertical-align:1px}
.baro .arr.up{color:var(--up)} .baro .arr.down{color:var(--down)}
.baro .ev{display:inline-block;min-width:34px}

/* barres de raisons */
.baro .rbars{display:grid;gap:9px}
.baro .rbar{display:grid;grid-template-columns:minmax(160px,1.3fr) 2fr 70px;gap:10px;align-items:center;font-size:12.5px}
.baro .rbar .track{position:relative;height:16px;background:var(--soft);border-radius:4px}
.baro .rbar .fill{position:absolute;inset:0 auto 0 0;background:var(--cassis);border-radius:4px}
.baro .rbar.bad .fill{background:var(--framboise)}
.baro .rbar .cmark{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ink);opacity:.45}
.baro .rbar .v{font-weight:700;text-align:right}
.baro .legend2{display:flex;gap:16px;font-size:11.5px;color:var(--muted);margin-bottom:10px;flex-wrap:wrap}
.baro .legend2 i{display:inline-block;width:12px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}

/* graphe d'évolution */
.baro .chart{width:100%;height:auto;display:block}
.baro .chart .grid line{stroke:var(--line)}
.baro .chart .grid text,.baro .chart .xax text{fill:var(--muted);font-size:11px}
.baro .chart .ln{fill:none;stroke-width:2.2}
.baro .chart .cumul{stroke-dasharray:4 4;stroke-width:1.4;opacity:.8}
.baro .ctl{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.baro .chips2{display:flex;gap:6px;flex-wrap:wrap}
.baro .chips2 button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font:inherit;font-size:12.5px;cursor:pointer;color:var(--ink);display:inline-flex;align-items:center;gap:6px}
.baro .chips2 button.on{border-color:var(--cassis);background:var(--cassis);color:#fff}
.baro .chips2 button i{width:9px;height:9px;border-radius:50%;display:inline-block}
.baro .tip{position:fixed;pointer-events:none;background:var(--ink);color:#fff;font-size:12px;padding:7px 10px;border-radius:6px;z-index:50;line-height:1.45;box-shadow:0 6px 20px rgba(0,0,0,.2)}

/* verbatims */
.baro .vlist{display:grid;gap:8px}
.baro .vitem{border-left:3px solid var(--p4);background:var(--soft);padding:9px 12px;border-radius:0 8px 8px 0;font-size:13px}
.baro .vitem.bad{border-left-color:var(--framboise)}
.baro .vitem.good{border-left-color:var(--p9)}
.baro .vitem .vm{font-size:11px;color:var(--muted);margin-bottom:3px;text-transform:uppercase;letter-spacing:.04em;font-weight:700}

/* mise à jour */
.baro .steps{display:grid;gap:14px}
.baro .drop{border:2px dashed var(--line);border-radius:var(--radius);padding:16px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:var(--soft)}
.baro .drop.ok{border-color:#9ACFB5;background:#F2FAF6}
.baro .drop b{color:var(--cassis)}
.baro .drop .fname{font-size:12px;color:var(--muted)}
.baro .msgs{font-size:12.5px;display:grid;gap:6px;margin:10px 0}
.baro .msgs div{padding:8px 11px;border-radius:8px;background:var(--creme);color:#7a4a1b}
.baro .msgs div.err{background:#FFF1F3;color:#8a2340}
.baro .msgs div.ok{background:#E7F3EE;color:#1E7A5F}
.baro .deliv{margin-top:12px;padding:14px 16px;border:1px solid #9ACFB5;background:#F7FCF9;border-radius:var(--radius)}
.baro .deliv h3{font-size:14px;color:var(--cassis);margin:4px 0 10px}
.baro .privacy{font-size:12px;color:#1E7A5F;background:#E7F3EE;border-radius:8px;padding:9px 12px}

/* --- wow --- */
.baro .bcard{animation:bfade .45s ease both}
.baro .ktile{animation:bfade .45s ease both}
.baro .ktile:nth-child(2){animation-delay:.05s}.baro .ktile:nth-child(3){animation-delay:.1s}.baro .ktile:nth-child(4){animation-delay:.15s}
@keyframes bfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.baro .ktile{background:linear-gradient(160deg,#fff 55%,#FBF6FA)}
.baro .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;vertical-align:0}
.baro .chead{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.baro .chead select{margin-left:auto}

/* faits marquants */
.baro .hl{background:linear-gradient(135deg,#4B3052 0%,#6A3F63 60%,#8A3D63 100%);color:#fff;border:0}
.baro .hl h2{color:#fff}
.baro .hl .sub{color:rgba(255,255,255,.72)}
.baro .hlist{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.baro .hlist li{position:relative;padding:9px 12px 9px 34px;border-radius:9px;font-size:13.2px;line-height:1.45;background:rgba(255,255,255,.1)}
.baro .hlist li:before{position:absolute;left:11px;top:9px;font-weight:700}
.baro .hlist li.t-up:before{content:"▲";color:#7EE0A6;font-size:11px;top:11px}
.baro .hlist li.t-down:before{content:"▼";color:#FF9DB4;font-size:11px;top:11px}
.baro .hlist li.t-none{padding-left:12px}
.baro .glegend.elegend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px}
.baro .hlist li.t-info:before{content:"●";color:#E9B7D4;font-size:10px;top:11px}
.baro .bcard:not(.hl) .hlist li{background:var(--soft);color:var(--ink)}
.baro .bcard:not(.hl) .hlist li.t-up:before{color:var(--up)}
.baro .bcard:not(.hl) .hlist li.t-info:before{color:var(--p3)}

/* photo du mois */
.baro .snap{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}
.baro .gcell{text-align:center}
.baro .ngauge{width:100%;max-width:240px}
.baro .ngauge .gval{font-size:30px;font-weight:700;fill:var(--cassis)}
.baro .ngauge .gtick{font-size:10px;fill:var(--muted)}
.baro .ngauge .needle{transform-origin:110px 112px;animation:needle .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes needle{from{transform:rotate(calc(-1 * var(--a) - 90deg))}to{transform:none}}
.baro .glab{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;margin-top:-4px}
.baro .donut{width:128px;height:128px}
.baro .donut .dval{font-size:20px;font-weight:700;fill:var(--cassis)}
.baro .donut .dsub{font-size:10px;fill:var(--muted)}
.baro .glegend{display:grid;gap:3px;font-size:11.5px;text-align:left;margin-top:6px}
.baro .glegend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}
.baro .effort{margin-top:14px}
.baro .effort .elab{font-size:12px;color:var(--muted);margin-bottom:6px}
.baro .ebar{display:flex;height:22px;border-radius:6px;overflow:hidden}
.baro .ebar span{display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:700;color:#2B1B31;min-width:2px}
.baro .eleg{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted);margin-top:3px}

/* carte de chaleur */
.baro .heat{border-collapse:separate;border-spacing:3px;font-size:12px;width:100%}
.baro .heat th{font-size:11px;color:var(--muted);font-weight:700;padding:4px 6px;white-space:nowrap;text-align:left}
.baro .heat thead th{text-align:center}
.baro .heat thead th.cur{color:var(--framboise)}
.baro .heat td{text-align:center;padding:9px 4px;border-radius:6px;cursor:pointer;font-weight:600;min-width:50px;transition:transform .12s,box-shadow .12s}
.baro .heat td:hover{transform:scale(1.07);box-shadow:0 4px 14px rgba(43,27,49,.2)}
.baro .heat td.cur{outline:2px solid var(--framboise);outline-offset:1px}
.baro .heat td.low{background-image:repeating-linear-gradient(45deg,#F1ECF3 0 5px,#fff 5px 10px)!important;color:var(--muted)!important}
.baro .heat td.na{color:var(--line);cursor:default}

/* distribution, raisons */
.baro .histo{width:100%}
.baro .histo .hv{font-size:10px;fill:var(--muted)}
.baro .histo .hx{font-size:11px;fill:var(--ink);font-weight:600}
.baro .hlab{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;margin:6px 0}
.baro .cols2.flat>*{min-width:0}
.baro .rbar .fill.grow{animation:grow .7s ease both;transform-origin:left}
@keyframes grow{from{transform:scaleX(0)}to{transform:none}}
.baro .tog{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink);cursor:pointer}

/* tableaux longs : première colonne figée */
.baro .btbl.wide td.stick,.baro .btbl.wide th.stick{position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 0 var(--line)}
.baro .btbl.wide tr.btot td.stick{background:#FBF8FC}
.baro .btbl.wide tr.base td.stick{background:var(--soft)}

/* verbatims */
.baro input[type=search]{padding:6px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13px;min-width:200px}
.baro .wcloud{display:flex;flex-wrap:wrap;gap:6px 8px;margin-bottom:14px}
.baro .wcloud button{border:0;background:#F3EAF1;color:var(--cassis);border-radius:999px;padding:3px 11px;cursor:pointer;font-weight:600;font-family:inherit}
.baro .wcloud button small{font-size:10px;opacity:.6;font-weight:600}
.baro .wcloud button.on{background:var(--cassis);color:#fff}
.baro mark{background:#FFE08A;padding:0 2px;border-radius:3px}

/* --- en-tête co-marqué (études dont le client a une charte déclarée) --- */
.baro .bhead.cobrand{align-items:center;gap:20px;padding:18px 22px;margin:0 0 14px;border-radius:14px;
  background:linear-gradient(100deg,#fff 0%,#fff 55%,var(--brand-pale,#F7F5F9) 100%);border:1px solid var(--line);box-shadow:var(--shadow)}
.baro .blogo{flex:none;display:flex;align-items:center}
.baro .blogo img{height:76px;width:auto;display:block}
.baro .bhead.cobrand .btitle{min-width:0}
.baro .bhead.cobrand h1{font-size:24px}
.baro .byow{font-weight:600;letter-spacing:.04em;color:var(--muted)}

/* --- charte client : GEG --- */
@font-face{font-family:'Rubik';font-style:normal;font-weight:400 700;font-display:swap;
  src:url(/vendor/fonts/rubik-latin.woff2) format('woff2')}
.baro.theme-geg{--cassis:#007D57;--framboise:#C8423A;--up:#007D57;--down:#C8423A;--brand-accent:#BED600;--brand-pale:#EEF6E1;
  --p3:#5BAE8C;--p4:#BED600;--p9:#007D57;--soft:#F4F8F5;--line:#DCE7E1;--ink:#1E2B25;--muted:#5D6B64;
  font-family:'Rubik',"Segoe UI",Roboto,Arial,sans-serif}
.baro.theme-geg select,.baro.theme-geg button,.baro.theme-geg input{font-family:inherit}
.baro.theme-geg .bhead.cobrand{border-top:5px solid #BED600}
.baro.theme-geg .btabs button.on{border-bottom-color:#BED600;color:#007D57}
.baro.theme-geg .btabs button.staff{color:#007D57;opacity:.85}
.baro.theme-geg .ktile{background:linear-gradient(160deg,#fff 55%,#F2F8EC)}
.baro.theme-geg .ktile:before{background:#BED600;width:5px}
.baro.theme-geg .btbl tr.btot td,.baro.theme-geg .btbl.wide tr.btot td.stick{background:#F3F8F4}
.baro.theme-geg .btbl td.cur,.baro.theme-geg .btbl th.cur{background:#EEF6E1}
.baro.theme-geg .btbl tr.btot td.cur{background:#E2F0CC}
.baro.theme-geg .hl{background:linear-gradient(135deg,#007D57 0%,#006A4A 55%,#00563D 100%)}
.baro.theme-geg .hl .hlist li{background:rgba(255,255,255,.11)}
.baro.theme-geg .hl .hlist li.t-up:before{color:#D7EC4D}
.baro.theme-geg .hl .hlist li.t-down:before{color:#FFB4A8}
.baro.theme-geg .hl .hlist li.t-info:before{color:#FFE313}
.baro.theme-geg .heat thead th.cur{color:#007D57}
.baro.theme-geg .heat td.cur{outline-color:#007D57}
.baro.theme-geg .heat td.low{background-image:repeating-linear-gradient(45deg,#ECF2EE 0 5px,#fff 5px 10px)!important}
.baro.theme-geg .wcloud button{background:#EEF6E1;color:#006A4A}
.baro.theme-geg .wcloud button.on{background:#007D57;color:#fff}
.baro.theme-geg mark{background:#FFE313}
.baro.theme-geg .ebar span{color:#1E2B25}
.baro.theme-geg .chips2 button.on,.baro.theme-geg .segs button.on{background:#007D57;border-color:#007D57}
@media (max-width:640px){
  .baro .bhead.cobrand{padding:14px 16px;gap:14px}
  .baro .blogo img{height:56px}
  .baro .bhead.cobrand h1{font-size:19px}
}
@media print{
  .baro .bhead.cobrand{box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .baro .bhead.cobrand .tools{display:none!important}
}

@media (prefers-reduced-motion:reduce){
  .baro .bcard,.baro .ktile,.baro .ngauge .needle,.baro .rbar .fill.grow{animation:none}
}
@media print{
  .pheader,.baro .bbar,.baro .bhead .tools,.baro .ctl,.baro .wcloud{display:none!important}
  .baro{max-width:none;padding:0}
  .baro .bcard,.baro .ktile{box-shadow:none;break-inside:avoid;animation:none}
  .baro .hl{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .baro .heat td,.baro .ebar span,.baro .ktile:before{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .baro .tscroll{overflow:visible}
}
@media (max-width:640px){
  .baro .snap{grid-template-columns:1fr}
}

@media (max-width:640px){
  .baro{padding:14px 16px 60px}
  .baro .cols2{grid-template-columns:1fr}
  .baro .rbar{grid-template-columns:1fr 60px}
  .baro .rbar .track{grid-column:1 / -1;order:3}
  .baro .ktile .kval{font-size:28px}
  .baro .btbl td:first-child{min-width:130px}
  .baro .bbar{position:static}
}
