/* OpticMate · site : widgets du Journal de la journée (copie de extension/accueil.css). Charte : docs/design/charte-graphique.md */
#homeBlocks { --panel: #fff; --mut: #4B5B57; --soft: rgba(10,25,21,.05); --sh: 0 1px 0 rgba(255,255,255,.9) inset, 0 8px 24px rgba(10,25,21,.06);
  --lun: #6D3FD1; --len: #2563EB; --chq: #C2680A; --done: #16A34A; --bad: #DC2626; --bg1: #F4F7F6;
  --font: "Instrument Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)) !important; grid-auto-flow: dense; }
#homeBlocks .hb.m, #homeBlocks .hb.bare { grid-column: span 2; }
#homeBlocks .hb.l { grid-column: span 2; grid-row: span 2; }
#homeBlocks .hb-res .hb-eyebox.flush { width: 44%; } #homeBlocks .hb-res .hb-eyebox.flush svg { width: 100%; height: 100%; }
#homeBlocks .hb-res:has(.hb-eyebox.flush) .hb-col { padding-right: 44%; } #homeBlocks .hb-res.s:has(.hb-eyebox.flush) .hb-col { padding-right: 0; }
@media (max-width: 520px) { #homeBlocks { grid-template-columns: 1fr 1fr !important; } }
#homeBlocks .btn.gh { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 13.5px var(--font); cursor: pointer; }
#homeBlocks .w2-trk .st { background: none; border: 0; border-radius: 0; padding: 0; flex-direction: initial; }
#homeBlocks.calme .row { animation: none; }
#homeBlocks .lb { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mut); margin: 0 4px 8px; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --fa { syntax: "<angle>"; inherits: true; initial-value: 96deg; }
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

#homeBlocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
#homeBlocks > .panelc.list { grid-column: 1 / -1; }
.hb { position: relative; min-width: 0; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh); padding: 12px; overflow: hidden;
  display: flex; flex-direction: column; isolation: isolate; animation: hbIn .5s cubic-bezier(.2,.9,.2,1) both; }
/* 8.89 : vrai découpage aux coins pour les blocs à effet (prisme, œil) : Safari / iPhone ne coupe pas les effets flous ou en mode
   de fusion avec overflow seul, le prisme et l'œil débordaient de leur case sur le site. clip-path enlève l'ombre : contour à la place. */
.hb.prism, .hb.ink { clip-path: inset(0 round 22px); }
.hb.prism { box-shadow: none; border-color: rgba(10,25,21,.12); }
.hb:nth-child(2) { animation-delay: .06s; } .hb:nth-child(3) { animation-delay: .12s; } .hb:nth-child(4) { animation-delay: .18s; } .hb:nth-child(n+5) { animation-delay: .24s; }
.hb.s { aspect-ratio: 1; }
.hb.m, .hb.l, .hb.bare { grid-column: 1 / -1; }
.hb.l { min-height: 300px; }
.hb.bare { background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.hb.bare .lb { margin-top: 2px; }
/* Apparition simple (un seul effet par bloc : les effets riches sont réservés aux informations principales) */
@keyframes hbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hb-h { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mut); white-space: nowrap; overflow: hidden; position: relative; z-index: 4; }
.hb-h i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hb-h span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.hb-h.ink { color: #9FB5AD; }
.hb-big { font-family: var(--mono); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--ink); position: relative; z-index: 4; }
.hb-big.c { text-align: center; } .hb-big.w { color: #fff; }
.hb small { display: block; font-size: 12px; color: var(--mut); line-height: 1.35; position: relative; z-index: 4; }
.hb-gr { flex: 1; min-height: 0; display: flex; align-items: flex-end; position: relative; z-index: 4; }
.hb-gr.c { justify-content: center; align-items: center; }
.hb-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; position: relative; z-index: 4; }
.hb-row.b { align-items: baseline; gap: 8px; margin-top: 6px; }
/* 2026-12 : le cadran TABO garde sa taille (ses chiffres aussi) ; c'est la colonne de texte qui se resserre */
.hb-row > svg { flex: none; }
/* Graphiques tracés à la largeur réelle du bloc (hbFit) : leur texte garde sa taille sur tous les écrans */
.hb-fit { width: 100%; min-width: 0; } .hb-fit > svg { display: block; }
.hb-fit.still .hb-bar, .hb-fit.still .hb-draw { animation: none; }
.hb-col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hb-leg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.hb-leg i { width: 8px; height: 8px; border-radius: 50%; } .hb-leg b { color: var(--ink); font-size: 12.5px; margin-left: auto; }
.hb-late { font-size: 11.5px; font-weight: 600; color: var(--bad); }
.hb-foot { margin-top: 6px; }
.hb-list { display: flex; flex-direction: column; margin-top: 10px; position: relative; z-index: 4; }
.hb-list div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.hb-list div:first-child { border-top: 0; } .hb-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .hb-list em { font-style: normal; font-size: 11px; }
.hb-donut { position: relative; flex: none; } .hb-donut > div { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; align-content: center; }
.hb-donut b { font-size: 13px; color: var(--ink); } .hb-donut small { font-size: 11px; }
.hb-tx { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.hb-tl { font-family: var(--font); font-size: 11px; }
.hb-bar { transform-box: fill-box; transform-origin: bottom; animation: hbGrow .8s cubic-bezier(.2,.9,.2,1) both; }
@keyframes hbGrow { from { transform: scaleY(0); } }
.hb-ring { animation: hbRing 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hbRing { from { stroke-dashoffset: var(--c); } }
.hb-draw { stroke-dasharray: 1; animation: hbDraw 1.4s cubic-bezier(.3,.7,.2,1) both; }
@keyframes hbDraw { from { stroke-dashoffset: 1; } }
/* Graduation TABO : l'aiguille tourne jusqu'à la valeur */
.hb-needle { transform-origin: 100px 100px; animation: hbNeedle 1.6s cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes hbNeedle { from { transform: rotate(0deg); } }

/* Résumé encre + reflet antireflet */
.hb.ink { background: radial-gradient(120% 90% at 0% 0%, #1D3A33 0%, #13241F 45%, #0A1915 100%); border-color: transparent; box-shadow: 0 14px 30px -16px rgba(10,25,21,.7); color: #fff; }
.hb.ink small { color: #9FB5AD; }
.hb-res { display: flex; align-items: center; gap: 12px; margin-top: 6px; position: relative; z-index: 4; flex: 1; }
.hb-res.s { gap: 8px; }
.hb-msg { transition: opacity .3s; }
.hb-sheen { height: 3px; width: 56px; border-radius: 3px; margin-top: 10px; background: linear-gradient(90deg, #7C5CFF, #22D3EE, #34D399, #7C5CFF); background-size: 200% 100%; animation: hbSheen 3s linear infinite; position: relative; z-index: 4; }
@keyframes hbSheen { to { background-position: -200% 0; } }
.ar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: radial-gradient(90% 70% at var(--ax, 30%) var(--ay, 20%), rgba(124,92,255,.34), rgba(34,211,238,.22) 38%, rgba(52,211,153,.16) 58%, rgba(52,211,153,0) 78%); }
.ar::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: 0; width: 46%; pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: linear-gradient(90deg, rgba(124,92,255,0) 0%, rgba(124,92,255,.45) 26%, rgba(255,255,255,.85) 44%, rgba(34,211,238,.6) 54%, rgba(52,211,153,.45) 66%, rgba(52,211,153,0) 88%);
  filter: blur(7px); transform: translateX(-160%) skewX(-20deg); animation: hbAr 5.2s cubic-bezier(.5,0,.2,1) .6s infinite; }
@keyframes hbAr { 0% { transform: translateX(-160%) skewX(-20deg); } 26%, 100% { transform: translateX(330%) skewX(-20deg); } }

/* Pupille : l'icône (le logo) tourne et se dilate pendant l'actualisation ; les chiffres apparaissent depuis elle */
.hb-iris { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; border-radius: 9px; }
.hb-iris svg { width: 30px; height: 30px; display: block; }
.hb-iris .pup, .hb-iris .str { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.3,0,.2,1); }
.loading .hb-iris .pup { transform: scale(1.55); }
.loading .hb-iris .str { animation: hbTurn 1.4s linear infinite; }
@keyframes hbTurn { to { transform: rotate(360deg); } }
.hb.reveal { animation: none; -webkit-mask: radial-gradient(circle at calc(100% - 27px) 27px, #000 var(--r), transparent calc(var(--r) + 14%)); mask: radial-gradient(circle at calc(100% - 27px) 27px, #000 var(--r), transparent calc(var(--r) + 14%)); animation: hbReveal 1.1s cubic-bezier(.4,0,.2,1) both; }
@keyframes hbReveal { from { --r: 0%; } to { --r: 140%; } }

/* Œil (clin d'œil et petit jeu) */
.hb-eyebox { display: grid; place-items: center; cursor: pointer; filter: drop-shadow(0 4px 10px rgba(124,92,255,.16)); opacity: .92;
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.hb-res .hb-col { padding-right: 84px; } .hb-res.s .hb-col { padding-right: 64px; }
/* L'œil épouse le bord droit du bloc, sur toute sa hauteur (les coins droits sont ceux du bloc) */
.hb-res:has(.hb-eyebox.flush) { position: static; }
.hb-res:has(.hb-eyebox.flush) .hb-col { padding-right: 104px; } .hb-res.s:has(.hb-eyebox.flush) .hb-col { padding-right: 0; }
.hb-eyebox.flush { position: absolute; right: 0; top: 0; bottom: 0; transform: none; opacity: 1; filter: none; }
.hb-eyebox.flush svg { height: 100%; width: auto; display: block; }
.hb-eyebox.flush .hb-eye { overflow: hidden; }
/* Sans tuile : l'anneau se pose directement sur le fond encre du bloc */
.hb-eyebox.bare .tile, .hb-eyebox.bare .halo { display: none; }
.hb-eye { overflow: visible; transform-origin: center; }
.hb-eye .lt { animation: hbLidT 5s cubic-bezier(.6,0,.3,1) infinite; }
.hb-eye .lb { animation: hbLidB 5s cubic-bezier(.6,0,.3,1) infinite; }
.hb-eye .lash { animation: hbLash 5s cubic-bezier(.6,0,.3,1) infinite; }
.hb-eye .look { animation: hbLook 5s cubic-bezier(.5,0,.2,1) infinite; }
.hb-eye .dil { transform-box: fill-box; transform-origin: center; animation: hbDil 5s ease-in-out infinite; }
@keyframes hbLidT { 0%, 74%, 84%, 87%, 93%, 100% { transform: translateY(-80px); } 78%, 81%, 90% { transform: translateY(0); } }
@keyframes hbLidB { 0%, 74%, 84%, 87%, 93%, 100% { transform: translateY(80px); } 78%, 81%, 90% { transform: translateY(0); } }
@keyframes hbLash { 0%, 75%, 83%, 88%, 92%, 100% { opacity: 0; } 78%, 81%, 90% { opacity: 1; } }
@keyframes hbLook { 0%, 12% { transform: translate(0, 0); } 18%, 34% { transform: translate(-7px, -2px); } 40%, 58% { transform: translate(7px, 1px); } 64%, 100% { transform: translate(0, 0); } }
@keyframes hbDil { 0%, 70% { transform: scale(1); } 86% { transform: scale(.8); } 100% { transform: scale(1); } }
.hb-eye.shake { animation: hbShake .6s cubic-bezier(.36,.07,.19,.97); }
@keyframes hbShake { 0%, 100% { transform: none; } 12% { transform: translateX(-4px) rotate(-4deg); } 30% { transform: translateX(4px) rotate(3.5deg); } 48% { transform: translateX(-3px) rotate(-2.5deg); } 66% { transform: translateX(2px) rotate(1.5deg); } 84% { transform: translateX(-1px) rotate(-.5deg); } }
.hb-eye.hold .look, .hb-eye.hold .lt, .hb-eye.hold .lb, .hb-eye.hold .dil { animation: none; }
.hb-eye.hold .lash { animation: none; opacity: 0; transition: opacity .12s; }
.hb-eye.hold .look, .hb-eye .look2 { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.hb-eye.hold .lt, .hb-eye.hold .lb { transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hb-eye.hold.fast .lt, .hb-eye.hold.fast .lb { transition-duration: .14s; }
.hb-eye.hold .dil { transition: transform .4s cubic-bezier(.3,0,.2,1); }
.hb-eye .red { transition: opacity .9s cubic-bezier(.4,0,.2,1); }
.hb-eye .tear { animation: hbTear 1.6s cubic-bezier(.45,0,.75,.6) forwards; transform-box: fill-box; transform-origin: top center; }
@keyframes hbTear { 0% { transform: translate(0, -2px) scale(.15, .2); opacity: 0; } 22% { transform: translate(0, 0) scale(1); opacity: 1; } 55% { transform: translate(calc(var(--tx, 0px) * .6), 22px) scale(.95, 1.05); } 80% { opacity: .9; } 100% { transform: translate(var(--tx, 0px), 58px) scale(.8, 1.15); opacity: 0; } }
.hb-eye .ls, .eye .ls { opacity: 0; transition: opacity .35s; } .hb-eye .ln, .eye .ln { transition: opacity .35s; }
.hb-eye.sad .ls, .eye.sad .ls { opacity: 1; } .hb-eye.sad .ln, .eye.sad .ln { opacity: 0; }

/* Verre sur la courbe */
.hb-lens .ldot, .hb-lens .lrip, .hb-lens .ltip { opacity: 0; }
.hb-lens .lgi { transform-box: fill-box; transform-origin: center; }
.hb-lens.done .lgi { animation: hbLensOut .55s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes hbLensOut { 0% { transform: scale(1) rotate(0); opacity: 1; } 40% { transform: scale(1.08) rotate(-8deg); } 100% { transform: scale(0) rotate(40deg); opacity: 0; } }
.hb-lens.done .ldot { transform-box: fill-box; transform-origin: center; animation: hbDot .6s .32s cubic-bezier(.2,.9,.3,1.6) forwards; }
@keyframes hbDot { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }
.hb-lens.done .lrip { transform-box: fill-box; transform-origin: center; animation: hbRip 1.2s .4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes hbRip { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(4.2); } }
.hb-lens.done .ltip { transform-box: fill-box; transform-origin: bottom center; animation: hbTip .45s .6s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes hbTip { from { transform: translateY(6px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Prisme : arête irisée, verre éclairé, rayon blanc fixé au point touché, éventail du spectre, reflets colorés, rayons au clic */
.hb.prism { cursor: pointer; transition: transform .25s cubic-bezier(.2,.9,.3,1.3); touch-action: none; }
.hb.prism.lit { transform: scale(.988); }
.hb > .fx { position: absolute; pointer-events: none; opacity: 0; transition: opacity .8s ease-out; }
.hb.lit > .fx { opacity: 1; transition: opacity .25s ease-out; }
.hb > .edge { inset: 0; border-radius: inherit; z-index: 5; padding: 1.6px; background: conic-gradient(from var(--a), #FF8A80, #FFD180, #FFFF8D, #B9F6CA, #84FFFF, #82B1FF, #B388FF, #FF80AB, #FF8A80);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hbSpin 4s linear infinite; }
.hb.lit > .edge { opacity: .9; }
.hb > .beam { left: var(--bx, 40%); top: var(--by, 50%); width: 420px; height: 14px; z-index: 2; border-radius: 10px; transform-origin: 100% 50%; transform: translate(-100%, -50%) rotate(var(--ba, 0deg));
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35) 55%, rgba(255,255,255,.95) 92%, #fff); filter: blur(2.4px); mix-blend-mode: screen; }
.hb > .disp { inset: 0; z-index: 2; mix-blend-mode: screen; filter: blur(5px);
  background: conic-gradient(from var(--fa) at var(--mx, 40%) var(--my, 50%), rgba(0,0,0,0) 0deg, rgba(255,64,64,0) 2deg, rgba(255,64,64,.85) 6deg, rgba(255,160,40,.85) 10deg, rgba(255,235,60,.85) 14deg, rgba(80,230,120,.85) 18deg, rgba(40,210,255,.85) 22deg, rgba(70,110,255,.85) 26deg, rgba(150,80,255,.85) 30deg, rgba(150,80,255,0) 35deg, rgba(0,0,0,0) 360deg);
  -webkit-mask: radial-gradient(circle at var(--mx, 40%) var(--my, 50%), rgba(0,0,0,0) 0 6px, #000 26px, rgba(0,0,0,.85) 45%, rgba(0,0,0,0) 95%);
  mask: radial-gradient(circle at var(--mx, 40%) var(--my, 50%), rgba(0,0,0,0) 0 6px, #000 26px, rgba(0,0,0,.85) 45%, rgba(0,0,0,0) 95%); }
.hb > .disp.d2 { --fa: var(--fb, 266deg); filter: blur(8px); }
.hb.lit > .disp.d2 { opacity: .35; }
.hb > .spot { left: var(--mx, 40%); top: var(--my, 50%); width: 70px; height: 70px; z-index: 3; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.35) 28%, rgba(255,255,255,0) 66%); mix-blend-mode: screen; }
.hb > .ca { z-index: 3; width: 46px; height: 10px; border-radius: 10px; filter: blur(3px); mix-blend-mode: screen; background: linear-gradient(90deg, rgba(255,80,80,.7), rgba(255,220,60,.7), rgba(60,220,140,.7), rgba(60,170,255,.7), rgba(170,90,255,.7)); }
.hb > .ca.c1 { left: 12%; top: 22%; transform: rotate(-18deg); animation: hbDrift 5s ease-in-out infinite; }
.hb > .ca.c2 { right: 10%; bottom: 20%; width: 34px; transform: rotate(14deg); animation: hbDrift 6s ease-in-out -2s infinite reverse; }
.hb > .ca.c3 { right: 26%; top: 14%; width: 22px; height: 7px; transform: rotate(-30deg); animation: hbDrift 4.5s ease-in-out -1s infinite; }
@keyframes hbDrift { 0%, 100% { translate: 0 0; } 50% { translate: 10px -4px; } }
.hb > .glass { inset: 0; border-radius: inherit; z-index: 1; background: radial-gradient(60% 80% at var(--mx, 40%) var(--my, 40%), rgba(255,255,255,.22), rgba(255,255,255,0) 70%), linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 45%); }
/* visée au survol : le rayon blanc pivote sur 360° (du centre vers la souris) et montre où partiront les couleurs */
.hb.prism.aim:not(.lit) > .beam { opacity: .75; transition: opacity .2s; }
.hb.prism.aim:not(.lit) > .spot { opacity: .45; transition: opacity .2s; width: 34px; height: 34px; }
.hb.prism.aim:not(.lit) > .edge { opacity: .35; }
/* Jour : version claire du prisme. Couleurs posées en douceur (la lumière « écran » ne se voit pas sur du blanc), rayon blanc
   cerné d'un fin contour et d'une lueur bleutée, bloc qui fonce légèrement au survol puis au clic pour que la lumière se voie */
body:not(.dark) .hb.prism:not(.ink) { transition: background-color .5s ease, transform .25s cubic-bezier(.2,.9,.3,1.3); }
body:not(.dark) .hb.prism:not(.ink).aim:not(.lit) { background-color: #E2E8E6; transition: background-color .3s ease; }
body:not(.dark) .hb.prism:not(.ink).lit { background-color: #C9D3CF; transition: background-color .2s ease, transform .25s cubic-bezier(.2,.9,.3,1.3); }
body:not(.dark) .hb:not(.ink) > .disp, body:not(.dark) .hb:not(.ink) > .ca { mix-blend-mode: multiply; }
body:not(.dark) .hb:not(.ink) > .disp { filter: blur(6px) saturate(.9); }
body:not(.dark) .hb:not(.ink).lit > .disp { opacity: .55; }
body:not(.dark) .hb:not(.ink).lit > .disp.d2 { opacity: .35; }
body:not(.dark) .hb:not(.ink) > .beam, body:not(.dark) .hb:not(.ink) > .spot { mix-blend-mode: normal; }
body:not(.dark) .hb:not(.ink) > .beam { height: 10px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85) 55%, #fff); filter: blur(1.2px) drop-shadow(0 0 1.5px rgba(10,25,21,.55)) drop-shadow(0 0 7px rgba(70,110,255,.45)); }
body:not(.dark) .hb:not(.ink) > .glass { background: radial-gradient(60% 80% at var(--mx, 40%) var(--my, 40%), rgba(255,255,255,.75), rgba(255,255,255,0) 70%); }
body:not(.dark) .hb:not(.ink).lit > .glass { background: radial-gradient(60% 80% at var(--mx, 40%) var(--my, 40%), rgba(255,255,255,.45), rgba(255,255,255,0) 70%); }
/* Nuit : blocs en verre sombre, plus doux que l'encre du bloc clin d'œil (le résumé, toujours encre) */
body.dark .hb:not(.ink):not(.bare) { background: linear-gradient(180deg, #1A2825 0%, #121D1B 100%); border-color: rgba(255,255,255,.07); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 30px -16px rgba(0,0,0,.85); }
@keyframes hbSpin { to { --a: 360deg; } }
.rays { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: visible; }
.rays.scr { mix-blend-mode: screen; }
.rays .ry { stroke-dasharray: 1; animation-name: hbDraw, hbFade; animation-timing-function: linear, ease-in; animation-fill-mode: both, forwards; }
.rays .rf { stroke-dasharray: 1; animation-name: hbDraw, hbFade; animation-timing-function: cubic-bezier(.1,0,.4,1), ease-in; animation-fill-mode: both, forwards; }
.rays .hit, .rays .flash { transform-box: fill-box; transform-origin: center; animation: hbHit 1s cubic-bezier(.2,.8,.2,1) both; }
.rays .flash { animation-duration: .7s; }
@keyframes hbHit { 0% { opacity: 0; transform: scale(.3); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes hbFade { to { opacity: 0; } }

/* Personnaliser */
.hb-ed { position: absolute; inset: auto 8px 8px auto; z-index: 8; display: flex; gap: 4px; }
.hb-ed button { border: 0; border-radius: 999px; padding: 5px 9px; font: 600 11.5px var(--font); background: var(--ink); color: var(--bg1); cursor: pointer; }
#homeBlocks.editing .hb { animation: hbWiggle .32s ease-in-out infinite alternate; }
#homeBlocks.editing .hb:nth-child(2n) { animation-delay: -.16s; }
@keyframes hbWiggle { from { transform: rotate(-.5deg); } to { transform: rotate(.5deg); } }
.hb-add { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.hb-add button { border: 1px dashed var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 7px 11px; font: 600 12px var(--font); cursor: pointer; }
.hb-cust { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; margin: 4px 0 6px; }

/* Bloc encre : le résumé (clin d'œil), le même de jour comme de nuit */
.hb.ink .hb-h { color: #9FB5AD; }
.hb.ink .hb-big { color: #fff; }
.hb.ink .hb-leg { color: #9FB5AD; } .hb.ink .hb-leg b, .hb.ink .hb-donut b, .hb.ink .hb-list span { color: #fff; }
.hb.ink .hb-late { color: #FCA5A5; }
.hb.ink .hb-list div { border-color: rgba(255,255,255,.1); }
.hb.ink .hb-donut circle:first-child { stroke: rgba(255,255,255,.08) !important; }

/* ---------- 8.80 · Assistant personnel (popup-equipe.js) : accueil animé, « Ta journée », notes et rappels ---------- */
.eqw-hello { display: block; font: 700 19px/1.18 var(--font); letter-spacing: -.4px; color: #fff; min-height: 23px; }
.eqw-hello .nm { background: linear-gradient(115deg,#7C5CFF 0%,#22D3EE 45%,#34D399 80%,#A3E635 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: eqSh 3s linear infinite; }
@keyframes eqSh { to { background-position: -200% 0; } }
.eqw-hello.in { animation: eqFin .7s cubic-bezier(.2,.9,.3,1) both; }
@keyframes eqFin { from { opacity: 0; transform: translateY(4px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.eqw-sub { font-size: 12.5px; color: #9FB5AD; margin-top: 4px; opacity: 0; transition: opacity .5s; }
.eqw-sub.on { opacity: 1; }
.eqw-lst { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.eqw-lst li { display: flex; gap: 7px; font-size: 12px; color: #DCE7E3; line-height: 1.3; }
.eqw-lst li i { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex: none; }
.eqw-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; }
.eqw-stats div { background: rgba(255,255,255,.08); border-radius: 11px; padding: 6px 7px; font-size: 11px; color: #9FB5AD; line-height: 1.2; }
.eqw-stats b { display: block; font: 700 18px var(--mono); color: #fff; }
.eqw-priv { display: block; margin-top: 6px; font-size: 11px; }
.eqw-top { display: flex; justify-content: flex-end; margin-top: -18px; }
.eqw-n { font: 600 11px var(--mono); color: #9FB5AD; }
.eqw-deck { position: relative; height: 112px; margin-top: 6px; }
.eqw-card { position: absolute; inset: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; color: #fff;
  transition: transform .5s cubic-bezier(.2,.9,.3,1), opacity .4s, box-shadow .4s; }
.eqw-card .k { display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; }
.eqw-card .k i { width: 7px; height: 7px; border-radius: 50%; }
.eqw-card b { font-size: 13.5px; line-height: 1.25; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eqw-card small { color: #9FB5AD; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqw-acts { margin-top: auto; display: flex; gap: 5px; align-items: center; }
.eqw-acts button { font: 600 11.5px var(--font); border: 0; border-radius: 999px; padding: 5px 10px; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; }
.eqw-acts button.p { background: #fff; color: #0A1915; }
.eqw-acts button.nx { margin-left: auto; padding: 5px 9px; }
.eqw-acts button:hover { filter: brightness(1.12); }
.eqw-card.out { transform: translateX(-110%) rotate(-4deg); opacity: 0; }
.eqw-card.in { transform: translateX(110%) rotate(4deg); opacity: 0; transition: none; }
.eqw-card.ar { transform: scale(.94); opacity: 0; transition: none; }
.eqw-card.ga { box-shadow: 0 0 0 1px rgba(245,158,11,.65), 0 0 20px rgba(245,158,11,.35); animation: eqDu 1.6s ease-in-out 2; }
.eqw-card.gv { box-shadow: 0 0 0 1px rgba(139,92,246,.7), 0 0 20px rgba(139,92,246,.35); animation: eqMv 1.6s ease-in-out 2; }
@keyframes eqDu { 50% { box-shadow: 0 0 0 1px rgba(245,158,11,.95), 0 0 30px rgba(245,158,11,.55); } }
@keyframes eqMv { 50% { box-shadow: 0 0 0 1px rgba(139,92,246,.95), 0 0 30px rgba(139,92,246,.55); } }
.eqw-card .chk { position: absolute; right: 10px; top: 8px; width: 24px; height: 24px; opacity: 0; transition: opacity .2s; }
.eqw-card .chk path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .4s .05s; }
.eqw-card.done .chk { opacity: 1; } .eqw-card.done .chk path { stroke-dashoffset: 0; }
.eqw-dots { display: flex; gap: 4px; margin-top: 7px; }
.eqw-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
.eqw-dots i.on { width: 14px; background: #fff; }
.eqw-bar { display: flex; gap: 6px; margin-top: 10px; position: relative; z-index: 4; }
.eqw-bar button { flex: 1; font: 600 11.5px var(--font); border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #DCE7E3; border-radius: 999px; padding: 6px 4px; cursor: pointer; white-space: nowrap; }
.eqw-bar button:hover { background: rgba(255,255,255,.12); }
.hb-eye .lh { transform: translateY(70px); }
.hb-eye .wave { opacity: 0; transform-box: fill-box; transform-origin: center; }
/* Bloc « Mes notes et rappels » */
.eq-lb { display: flex; align-items: center; justify-content: space-between; }
.eq-all { font: 600 11.5px var(--font); border: 0; background: none; color: var(--fac); cursor: pointer; padding: 0; letter-spacing: 0; text-transform: none; }
.eq-notes { padding: 5px; display: grid; gap: 2px; }
.eq-row { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 13px; font-size: 13px; transition: background .2s, transform .35s, opacity .35s; }
.eq-row:hover { background: var(--soft); }
.eq-row .tm { font: 600 11.5px var(--mono); min-width: 42px; color: var(--fac); }
.eq-row .tx { flex: 1; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.eq-row .tx small { display: block; color: var(--mut); font-size: 11px; }
.eq-row.du { background: rgba(245,158,11,.12); } .eq-row.du .tm { color: var(--chq); }
.eq-row.pin .tm { color: var(--lun); }
.eq-row.fait .tx { color: var(--mut); text-decoration: line-through; }
.eq-row .ck { width: 19px; height: 19px; border-radius: 50%; border: 2px solid #C9D3CF; flex: none; cursor: pointer; background: var(--panel); padding: 0; transition: background .2s, border-color .2s; }
.eq-row .ck:hover { border-color: var(--done); }
.eq-row.ok { opacity: 0; transform: translateX(30px); } .eq-row.ok .ck { background: var(--done); border-color: var(--done); }
.eq-row.nv { animation: eqNv .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes eqNv { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.eq-add { display: flex; gap: 6px; padding: 5px; }
.eq-add input { flex: 1; min-width: 0; font: 500 13px var(--font); border: 1px dashed var(--line); border-radius: 11px; padding: 8px 10px; background: var(--soft); color: var(--ink); }
.eq-add button { border: 0; border-radius: 11px; background: var(--ink); color: var(--bg1); font: 600 13px var(--font); padding: 0 11px; cursor: pointer; }
.eq-add .eq-rap { background: var(--soft); color: var(--ink); border: 1px solid var(--line); font-size: 12px; }
.eq-add button:disabled { opacity: .45; cursor: default; }
.eq-vide { font-size: 12.5px; color: var(--mut); margin: 6px 8px; line-height: 1.45; }
/* Fenêtres (même cadre que la biométrie) */
.eq-card { max-width: 360px; width: 100%; text-align: left; max-height: calc(100vh - 40px); overflow: auto; }
.eq-card textarea { width: 100%; box-sizing: border-box; font: 500 13.5px var(--font); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; background: var(--soft); color: var(--ink); resize: vertical; margin-bottom: 4px; }
.eq-card input[type=datetime-local] { width: 100%; box-sizing: border-box; margin-top: 6px; font: 500 13px var(--font); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--soft); color: var(--ink); }
.eq-l { font: 600 10.5px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--mut); margin: 12px 2px 6px; }
.eq-pick { display: flex; flex-wrap: wrap; gap: 5px; }
.eq-pick button { font: 600 12px var(--font); border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.eq-pick button[aria-pressed="true"] { background: var(--ink); color: var(--bg1); border-color: transparent; }
.eq-lie, .eq-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 10px; cursor: pointer; }
.eq-checks label { margin-top: 6px; }
.eq-liste { margin-top: 4px; }
.eq-card .bio-btns { margin-top: 16px; }
/* Réglages › Équipe */
.eq-role { padding: 10px 12px; }
.eq-role b { display: block; font-size: 13.5px; margin-bottom: 7px; }
/* Widget personnel : l'œil garde une taille fixe en haut à droite (le bloc grandit avec les cartes) */
.hb.eqw-on .hb-res:has(.hb-eyebox.flush) .hb-col { padding-right: 84px; }
.hb.eqw-on .hb-eyebox.flush { top: 4px; bottom: auto; right: 2px; height: 84px; width: 84px; }
.hb.eqw-on .hb-eyebox.flush svg { height: 84px; width: 84px; }
.hb.eqw-on .hb-col { flex: 1; }
.hb.eqw-on .eqw-top { margin-top: 0; justify-content: flex-start; }
/* 8.81 : textes du widget en blanc (lisibles sur l'encre), compteur à droite des points */
.hb.eqw-on .hb-h, .hb.eqw-on .hb-h span { color: #fff; }
.eqw-dots { align-items: center; }
.eqw-n { margin-left: auto; color: rgba(255,255,255,.85); }
.eqw-card small { color: #C9D8D3; }
/* 8.83 : fermer un message (✕), réinitialiser une personne (Biométrie) */
.eqw-card .k .fx { margin-left: auto; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; line-height: 22px; padding: 0; cursor: pointer; }
.eqw-card .k .fx:hover { background: rgba(255,255,255,.22); }
.eqw-card .k { position: relative; z-index: 2; }
.q-reset { flex: none; align-self: center; font-size: 11.5px !important; padding: 5px 10px !important; min-height: 0 !important; }
/* 8.83 : cartes plus larges (œil 64 px), réponses sur une ligne, « › » à côté du compteur */
.hb.eqw-on .hb-res:has(.hb-eyebox.flush) .hb-col { padding-right: 66px; }
.hb.eqw-on .hb-eyebox.flush { height: 64px; width: 64px; }
.hb.eqw-on .hb-eyebox.flush svg { height: 64px; width: 64px; }
.eqw-acts { flex-wrap: nowrap; overflow: hidden; }
.eqw-acts button { white-space: nowrap; padding: 5px 9px; font-size: 11px; flex: none; }
.eqw-nx { margin-left: 8px; border: 0; border-radius: 999px; width: 24px; height: 24px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; line-height: 24px; padding: 0; cursor: pointer; }
.eqw-nx:hover { background: rgba(255,255,255,.22); }
.eqw-dots .eqw-n.num { color: rgba(255,255,255,.85); font-size: 11px; }
/* 8.86 : heures chargées (Réglages › Équipe) */
.eq-aff { display: grid; grid-template-columns: 30px repeat(12, 1fr); gap: 3px; align-items: center; font-size: 10.5px; color: var(--mut); }
.eq-aff b { font: 500 10px var(--mono); text-align: center; color: var(--mut); }
.eq-aff em { font-style: normal; }
.eq-aff i { display: block; height: 16px; border-radius: 4px; }
/* 8.90 : iris des chèques (bloc « Argent en attente ») */
.hb-h .hb-irtot { margin-left: auto; font: 700 14px var(--mono); letter-spacing: -.3px; color: #fff; text-transform: none; }
.hb-ir { display: flex; gap: 12px; align-items: center; margin-top: 8px; position: relative; z-index: 4; }
.hb-ir.s { justify-content: center; margin-top: 4px; }
.hb-ircv { flex: none; touch-action: none; cursor: grab; }
.hb-ircv:active { cursor: grabbing; }
.hb-irdet { min-width: 0; flex: 1; display: grid; gap: 3px; color: #fff; }
.hb-irdet .q { font: 600 11px var(--font); letter-spacing: .6px; text-transform: uppercase; color: #9FB5AD; display: flex; align-items: baseline; gap: 6px; line-height: 1.25; }
.hb-irdet .q i, .hb-irpied i, .hb-irs i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hb-irdet .nm { font-weight: 600; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-irdet .ds { font: 500 11px var(--mono); color: #9FB5AD; }
.hb-irdet .mt { font-size: 18px; font-weight: 700; letter-spacing: -.5px; color: #fff; margin-top: 2px; }
.hb-irdet .ag { font-size: 11.5px; color: #C9D8D3; } .hb-irdet .ag.r { color: #F87171; font-weight: 600; }
.hb-irpied { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: #9FB5AD; position: relative; z-index: 4; }
.hb-irpied span, .hb-irs { display: inline-flex; align-items: center; gap: 5px; }
.hb-irpied b { font-size: 11px; color: #fff; }
.hb-irs { margin-top: 6px; font-size: 11.5px; color: #C9D8D3; position: relative; z-index: 4; min-width: 0; }
.hb-irs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb-irs b { margin-left: auto; font-size: 11.5px; color: #fff; }

/* Glisser-déposer des blocs à la souris (8.91) : le bloc suit la souris, sa place est marquée en pointillés */
@media (pointer: fine) { #homeBlocks > .hb[data-hb] { cursor: grab; } }
.hb.hb-place { opacity: .3; outline: 2px dashed rgba(124,92,255,.55); outline-offset: -3px; }
.hb.hb-flot { position: absolute !important; z-index: 50; pointer-events: none; margin: 0; box-shadow: 0 24px 48px rgba(10,25,21,.28); transform: rotate(1.2deg) scale(1.03); animation: none !important; transition: none !important; }
body.hb-tire, body.hb-tire * { cursor: grabbing !important; user-select: none !important; }

/* ---------- 8.92 : nouveaux blocs (maquette validée), trois tailles chacun ---------- */
.w2-r { margin-left: auto; font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 11px; }
.w2-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w2-rowb { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.w2-k { font-size: 11px; color: var(--mut); }
.w2-empty { font-size: 12.5px; color: var(--mut); line-height: 1.45; padding: 6px 2px; position: relative; z-index: 4; }
.w2-empty b { color: var(--ink); } .hb.ink .w2-empty b { color: #fff; }
.w2-empty kbd, .w2-paste kbd, .w2-vbody kbd { font: 700 11px var(--mono); background: #fff; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; padding: 1px 6px; color: #0A1915; }
.w2-act { border: 0; border-radius: 999px; padding: 7px 12px; background: var(--ink); color: #fff; font: 600 12px var(--font); cursor: pointer; white-space: nowrap; transition: background .2s, transform .15s; }
.w2-act:hover { transform: translateY(-1px); } .w2-act.sure { background: #E11D48; } .w2-act:disabled { opacity: .7; cursor: default; }
body.dark .w2-act { background: #fff; color: #0A1915; } body.dark .w2-act.sure { background: #E11D48; color: #fff; }
.w2-when { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--soft); border-radius: 14px; padding: 6px 6px 6px 11px; font-size: 11.5px; color: var(--mut); margin-top: auto; position: relative; z-index: 4; }
.w2-when b { font-family: var(--mono); color: var(--ink); }
.w2-list { display: grid; gap: 4px; position: relative; z-index: 4; }
.w2-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 12px; padding: 5px 8px; border-radius: 10px; background: var(--soft); }
.w2-list > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2-list em { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; }
.w2-list em.pret { background: rgba(96,165,250,.18); color: #2563EB; } .w2-list em.chez { background: rgba(225,29,72,.12); color: #E11D48; }
body.dark .w2-list em.pret { color: #93C5FD; }
.w2-list small { color: var(--mut); font-size: 11px; padding-left: 8px; }
.w2-ring { position: relative; flex: none; }
.w2-ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 700 15px/1 var(--mono); color: var(--ink); }
.hb.ink .w2-ring b { color: #fff; }
.w2-ring b small { display: block; font: 600 11px/1.1 var(--font); letter-spacing: 0; color: var(--mut); margin: 3px auto 0; max-width: 84%; white-space: normal; }
.w2-track { stroke: var(--soft); } .hb.ink .w2-track { stroke: rgba(255,255,255,.08); }
.w2-arc { animation: w2Arc 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes w2Arc { from { stroke-dashoffset: var(--c); } }
.w2-draw { stroke-dasharray: 1; animation: w2Draw 1.3s cubic-bezier(.4,0,.2,1) both; }
@keyframes w2Draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hb-h i.rfl, .rfl { background: linear-gradient(90deg, #7C5CFF, #22D3EE, #34D399) !important; }
.w2-chips { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 4; }
.w2-chips > div { border-radius: 12px; padding: 4px 9px; display: grid; font-size: 11px; color: var(--mut); background: var(--soft); border: 1px solid var(--line); }
.w2-chips b { font: 700 12.5px var(--mono); color: var(--ink); }
.w2-chips .lu { border-color: rgba(109,63,209,.35); } .w2-chips .lu b { color: var(--lun); }
.w2-chips .le { border-color: rgba(37,99,235,.35); } .w2-chips .le b { color: var(--len); }
.hb.ink .w2-chips b { color: #fff; } .hb.ink .w2-chips .lu b { color: #C4B5FD; } .hb.ink .w2-chips .le b { color: #93C5FD; }
.hb.ink .w2-chips > div { border-color: rgba(255,255,255,.12); }
.w2-up { font-size: 12px; font-weight: 700; color: #34D399; } .w2-up.dn { color: #FCA5A5; }

/* Chèques à déposer : fond ambre doux, éventail de chèques, suivi façon colis */
.hb[data-hb="depot"]:not(.ink) { background: linear-gradient(150deg, #FFF7EB, #fff 58%); }
body.dark .hb[data-hb="depot"] { background: linear-gradient(150deg, #2A2316, #121D1B 62%) !important; }
.w2-c1 { display: grid; grid-template-columns: 1fr 112px; gap: 8px; align-items: center; position: relative; z-index: 4; }
.w2-c1 h3 { margin: 0; font-size: 14.5px; line-height: 1.25; letter-spacing: -.2px; color: var(--ink); text-wrap: balance; }
.w2-c1 h3 em { font-style: normal; background: linear-gradient(90deg, #F59E0B, #E11D48); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w2-c1 .hb-big { font-size: 22px; }
.w2-fan { position: relative; height: 70px; }
.w2-chq { position: absolute; left: 6px; top: 10px; width: 96px; height: 48px; border-radius: 9px; background: #FFFDF7; border: 1px solid rgba(217,119,6,.35);
  box-shadow: 0 6px 14px rgba(217,119,6,.18); padding: 5px 7px; display: grid; align-content: space-between; color: #0A1915; transform-origin: 20% 100%;
  transform: rotate(var(--w2r, 0deg)) translateX(var(--w2x, 0px)); animation: w2Fan .7s cubic-bezier(.3,1.3,.5,1) both; }
.w2-chq b { font: 700 11px var(--mono); } .w2-chq span { font-size: 9.5px; color: #7A5B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2-chq::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 15px; border-bottom: 1px dashed rgba(217,119,6,.35); }
.w2-chq:nth-child(1) { --w2r: -11deg; --w2x: -6px; } .w2-chq:nth-child(2) { --w2r: -3deg; --w2x: 0px; animation-delay: .08s; } .w2-chq:nth-child(3) { --w2r: 7deg; --w2x: 8px; animation-delay: .16s; }
@keyframes w2Fan { from { transform: rotate(0deg) translate(0, 12px); opacity: 0; } }
.w2-chq.vide { opacity: .5; }
.w2-cnt { position: absolute; right: -2px; top: 0; min-width: 24px; height: 24px; border-radius: 12px; background: linear-gradient(135deg, #F59E0B, #E11D48); color: #fff; font: 700 11.5px var(--mono);
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(225,29,72,.3); padding: 0 6px; animation: w2Pop .5s .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes w2Pop { from { transform: scale(0); } }
.w2-ds { display: flex; flex-direction: column; gap: 2px; flex: 1; position: relative; z-index: 4; }
.w2-ds .w2-fan { height: 60px; width: 120px; transform: scale(.82); transform-origin: left top; margin-bottom: -6px; }
.w2-ds .hb-big { font-size: 20px; } .w2-ds small { font-size: 11px; color: var(--mut); }
.w2-trk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; z-index: 4; }
.w2-trk::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 4px; border-radius: 4px; background: var(--soft); }
.w2-trk .bar { position: absolute; left: 12.5%; top: 9px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #F59E0B, #F97316, #E11D48); overflow: hidden; animation: w2Grow 1s .2s cubic-bezier(.3,0,.2,1) both; transform-origin: left; }
.w2-trk .bar.fin { background: var(--done); }
.w2-trk .bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: w2Stream 2.2s linear infinite; }
@keyframes w2Grow { from { transform: scaleX(0); } }
@keyframes w2Stream { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.w2-trk .st { display: grid; justify-items: center; gap: 3px; position: relative; font-size: 11px; color: var(--mut); text-align: center; line-height: 1.2; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.w2-trk .st i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font); font-style: normal; background: #fff; border: 2px solid var(--line); color: var(--mut); }
body.dark .w2-trk .st i { background: #121D1B; }
.w2-trk .st.f i { border-color: #F59E0B; background: #F59E0B; color: #fff; }
.w2-trk .st.ok i { border-color: var(--done); background: var(--done); color: #fff; }
.w2-trk .st.cur { color: var(--ink); font-weight: 600; }
.w2-trk .st.cur i { border-color: #E11D48; background: #E11D48; color: #fff; animation: w2Ring 1.8s ease-out infinite; }
@keyframes w2Ring { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.45); } 100% { box-shadow: 0 0 0 9px rgba(225,29,72,0); } }

/* Chiffre d'affaires */
.w2-fill { display: flex; flex-direction: column; gap: 8px; flex: 1; position: relative; z-index: 4; min-width: 0; }
.w2-fill .sk { height: 60px; border-radius: 14px; background: var(--soft); }
.w2-ca { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.w2-ca small, .w2-cas small { font-size: 11px; color: var(--mut); }
.w2-cas { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.w2-cas .hb-big { font-size: 20px; }
.w2-big { margin-top: 2px; } .w2-leg { display: flex; gap: 12px; font-size: 11px; color: var(--mut); }
.w2-leg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; } .w2-leg i.pt { border-top: 2px dashed rgba(255,255,255,.4); height: 0; }

/* Heures chargées */
.w2-hh { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.w2-hx { font-size: 11px; color: var(--mut); } .w2-hx b { color: var(--ink); }
.w2-days { display: flex; gap: 3px; }
.w2-days button { border: 1px solid var(--line); background: none; color: var(--mut); border-radius: 999px; font: 600 11px var(--font); width: 24px; height: 21px; cursor: pointer; padding: 0; }
.w2-days button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
body.dark .w2-days button[aria-pressed="true"] { background: #fff; color: #0A1915; }
.w2-hc text { font: 500 11px var(--mono); fill: var(--mut); }
.w2-hc .w2-gl { stroke: var(--line); } .w2-hc .avg { stroke: var(--mut); stroke-opacity: .45; stroke-width: 1.3; }
.w2-hc .nl { stroke: var(--mut); stroke-opacity: .4; stroke-dasharray: 2 3; }
.w2-halo { animation: w2Halo 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes w2Halo { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.w2-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.w2-tips div { background: var(--soft); border-radius: 12px; padding: 6px 8px; display: grid; font-size: 11px; color: var(--mut); }
.w2-tips b { font-size: 12px; color: var(--ink); }

/* Délai de retrait */
.w2-dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; position: relative; z-index: 4; }
.hb[data-hb="delai"] small { font-size: 11px; color: var(--mut); position: relative; z-index: 4; }
.w2-tr { font: 700 11.5px var(--mono); color: var(--chq); } .w2-tr.mieux { color: var(--lun); }
.hb[data-hb="delai"] small.w2-late { color: #B3261E; } body.dark .hb[data-hb="delai"] small.w2-late { color: #FCA5A5; }
.w2-mb { display: flex; gap: 8px; align-items: flex-end; height: 76px; }
.w2-mb > div { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--mut); }
.w2-mb i { width: 20px; border-radius: 6px; background: color-mix(in srgb, var(--lun) 28%, transparent); animation: w2Up .8s cubic-bezier(.3,1.2,.5,1) both; transform-origin: bottom; }
.w2-mb i.on { background: var(--lun); } .w2-mb em { font-style: normal; text-transform: capitalize; }
@keyframes w2Up { from { transform: scaleY(0); } }
.w2-chips.l { margin-top: 2px; }
.w2-hist { display: grid; gap: 4px; position: relative; z-index: 4; }
.w2-hist > div { display: grid; grid-template-columns: 52px 1fr 22px; gap: 8px; align-items: center; font-size: 11px; color: var(--mut); }
.w2-hist em { font-style: normal; } .w2-hist i { height: 8px; border-radius: 6px; background: var(--soft); overflow: hidden; display: block; }
.w2-hist s { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--lun), #22D3EE); animation: w2Grow .9s cubic-bezier(.3,0,.2,1) both; transform-origin: left; }
.w2-hist b { text-align: right; color: var(--ink); }

/* Avis Google */
.w2-bulle { width: 40px; height: 40px; flex: none; animation: w2Float 4s ease-in-out infinite; }
@keyframes w2Float { 50% { transform: translateY(-3px) rotate(-3deg); } }
.w2-avs { display: flex; align-items: center; gap: 10px; flex: 1; position: relative; z-index: 4; }
.w2-avm { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; position: relative; z-index: 4; }
.w2-av0 { display: flex; gap: 10px; align-items: center; }
.hb[data-hb="avis"] small { font-size: 11px; color: var(--mut); position: relative; z-index: 4; }
.hb[data-hb="avis"] small.w2-foot { font-size: 11px; }

/* Vente relevée : en-tête encre, correction en deux lignes colorées, équipement avec ses codes */
.hb[data-hb="vente"] { padding: 0; }
.w2-vtop { background: linear-gradient(160deg, #14302A, #0A1915); color: #fff; padding: 11px 12px 12px; display: grid; gap: 7px; position: relative; }
.w2-vtop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #7C5CFF, #22D3EE, #34D399, #7C5CFF); background-size: 200% 100%; animation: hbSheen 3s linear infinite; }
.w2-vtop .hb-h { color: #9FB5AD; }
.w2-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.w2-av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 700 13px var(--font); color: #fff; background: linear-gradient(135deg, #7C5CFF, #22D3EE); flex: none; box-shadow: 0 4px 12px rgba(124,92,255,.35); }
.w2-who b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2-who div { min-width: 0; } .w2-who > div span { font: 500 11px var(--mono); color: #9FB5AD; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2-vbody { padding: 9px 12px 12px; display: grid; gap: 7px; }
.w2-eyes { display: grid; gap: 3px; }
.w2-eye { display: grid; grid-template-columns: 30px repeat(4, 1fr); gap: 4px; align-items: center; }
.w2-eye .o { font: 700 11px var(--font); border-radius: 7px; text-align: center; padding: 3px 0; color: #fff; }
.w2-eye .od { background: #0E9FB8; } .w2-eye .og { background: #6D4AF0; }
.w2-eye b { font: 700 12px var(--mono); text-align: center; background: var(--soft); border-radius: 7px; padding: 3px 0; color: var(--ink); }
.w2-eye.h span { font: 600 11px var(--font); letter-spacing: .1px; text-transform: uppercase; color: var(--mut); text-align: center; }
.w2-eq { display: grid; gap: 4px; }
.w2-eq > div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink); }
.w2-eq > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2-eq svg { width: 22px; height: 22px; }
.w2-eq .bd { font: 700 11px var(--mono); border-radius: 7px; padding: 2px 6px; white-space: nowrap; }
.w2-eq .bd.lpp { background: rgba(14,116,144,.14); color: #0E7490; } .w2-eq .bd.edi { background: rgba(109,74,240,.14); color: #6D4AF0; }
body.dark .w2-eq .bd.lpp { color: #67D4E6; } body.dark .w2-eq .bd.edi { color: #C4B5FD; }
.w2-ben { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 11.5px; background: var(--soft); border-radius: 12px; padding: 6px 9px; }
.w2-ben span { display: block; font-size: 11px; color: var(--mut); } .w2-ben b { color: var(--ink); }
.w2-paste { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 13px; padding: 6px 9px; background: var(--soft); font-size: 11.5px; color: var(--mut); }

/* Iris */
.w2-ir { display: flex; align-items: center; gap: 12px; position: relative; z-index: 4; flex: 1; }
.w2-ir.s { flex-direction: column; align-items: flex-start; gap: 6px; }
.w2-qr { width: 46px; height: 46px; flex: none; color: var(--ink); } .w2-ir.l .w2-qr { width: 64px; height: 64px; }
.w2-qrd { fill: currentColor; }
.w2-qrr { stroke-dasharray: 1; animation: w2Draw 1.2s cubic-bezier(.4,0,.2,1) both; }
.w2-ir small { font-size: 11px; color: var(--mut); }
.w2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; position: relative; z-index: 4; }
.w2-steps li { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--mut); }
.w2-steps li b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: linear-gradient(135deg, #7C5CFF, #22D3EE); flex: none; }

/* Santé d'OpticMate : battement de cœur de la marque, note sur 5, voyants qui pulsent */
.w2-hs { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.w2-t { font-size: 15px; letter-spacing: -.2px; color: #fff; }
.w2-hs small { font-size: 11px; color: #9FB5AD; }
.w2-ss { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; flex: 1; justify-content: center; }
.w2-ss > b { font-size: 12.5px; color: #fff; }
.w2-ecg { width: calc(100% + 24px); height: 40px; margin: 0 -12px; display: block; }
.hb.s .w2-ecg { height: 28px; }
.w2-ecg .tr { stroke-dasharray: 360; stroke-dashoffset: 360; animation: w2Trace 2.6s linear infinite; }
@keyframes w2Trace { 0% { stroke-dashoffset: 360; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -360; } }
.w2-sl { display: flex; flex-wrap: wrap; gap: 5px; }
.w2-sl span { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 9px 3px 7px; font-size: 11px; color: #E8F0EE; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.w2-sl i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: w2Live 2s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes w2Live { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 100% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
.w2-sl span.wa { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.5); color: #FCD34D; font-weight: 600; }
.w2-sl span.wa i { background: #F59E0B; animation: none; }
.w2-fix { background: rgba(245,158,11,.12); border-radius: 13px; padding: 7px 10px; font-size: 11.5px; color: #FDE68A; }
.w2-det { display: grid; gap: 5px; }
.w2-det > div { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 12px; color: #E8F0EE; }
.w2-det i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font); font-style: normal; background: rgba(255,255,255,.1); }
.w2-det .wa i { background: #F59E0B; color: #fff; } .w2-det .wa b { color: #FCD34D; }
.w2-det small { display: block; color: #9FB5AD; font-size: 11px; }

/* L'œil, mascotte d'OpticMate (8.92) : halo aux couleurs de la marque qui respire, reflet qui fait le tour de l'iris ;
   petit = l'œil au centre ; moyen = à droite ; grand = en vedette avec trois chiffres */
.hb-aura { isolation: isolate; }
.hb-aura::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(34,211,238,.30), rgba(124,92,255,.16) 46%, transparent 70%); animation: hbAura 4.5s ease-in-out infinite; }
.hb-res.veille .hb-aura::before { background: radial-gradient(circle, rgba(245,158,11,.28), rgba(124,92,255,.14) 46%, transparent 70%); }
@keyframes hbAura { 50% { transform: scale(1.12); opacity: .7; } }
.hb-res.stack { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 2px; }
.hb-res.stack .hb-col { padding-right: 0 !important; align-items: center; }
.hb-res.stack .hb-eyebox { position: relative; top: auto; right: auto; transform: none; opacity: 1; }
.hb-res.s.stack .hb-big { font-size: 22px; } .hb-res.s.stack .hb-msg { font-size: 11px; line-height: 1.3; }
.hb-res.l.stack { gap: 10px; } .hb-res.l.stack .hb-big { font-size: 30px; }
.hb-res.l.stack .hb-eyebox { filter: drop-shadow(0 10px 30px rgba(34,211,238,.25)); }
.hb-rst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.hb-rst div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; padding: 6px 4px; display: grid; gap: 1px; }
.hb-rst b { font-size: 16px; color: #fff; } .hb-rst span { font-size: 11px; color: #9FB5AD; }
.hb.s[data-hb="resume"] .hb-sheen { margin: 6px auto 0; }
.hb.l[data-hb="resume"] .hb-sheen { margin: 10px auto 0; width: 80px; }

/* Ma journée et Mes notes en petit / grand */
.hb.s #homeDay .feed, .hb.s #homeDay .nx { display: none; }
.hb.s #eqNotes > :nth-child(n+3) { display: none; }
@media (prefers-reduced-motion: reduce) { .w2-trk .bar::after, .w2-trk .st.cur i, .w2-halo, .w2-ecg .tr, .w2-sl i, .w2-bulle, .hb-aura::before { animation: none !important; } .w2-ecg .tr { stroke-dashoffset: 0; } }
/* Petit format : le titre garde toute la largeur ; l'éventail des chèques ne passe pas sur la phrase */
.hb.s .w2-r { display: none; }
.w2-c1 { grid-template-columns: 1fr 124px; } .w2-c1 .w2-fan { margin-left: 10px; }
.hb.s .w2-paste { flex-direction: column; align-items: flex-start; }
.hb.s[data-hb="heures"] .w2-fill { justify-content: flex-end; }
/* 2026-12 : lisibilité. Plus aucun texte sous 11 px dans les blocs (surtitre de la charte : 11, capitales espacées) ;
   les étiquettes héritées de la fenêtre (.lb à 10,5 px, tuiles de « Ma journée ») remontées à 11 px dans l'Accueil */
#homeBlocks .lb { font-size: 11px; }
#homeBlocks .day .tl small { font-size: 11px; }
.hb.s .hb-h { letter-spacing: .8px; }
/* Résumé en petit carré : l'œil suit la largeur du bloc (40 %, 74 px au plus) et le message tient en deux lignes ;
   avant, sur un bloc de 160-180 px (site, téléphone), la pile débordait et l'œil passait sur le titre « À FAIRE » */
.hb-res.s.stack .hb-eyebox { width: 40%; max-width: 74px; }
.hb-res.s.stack .hb-eyebox svg { width: 100%; height: auto; display: block; }
.hb-res.s.stack .hb-msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 2026-12 : animations propres.
   Redessin « calme » (rafraîchissement du site toutes les 30 s, personnalisation) : pas d'animation d'arrivée, tout est à sa place */
#homeBlocks.calme:not(.editing) .hb, #homeBlocks.calme .hb-bar, #homeBlocks.calme .hb-ring, #homeBlocks.calme .hb-draw, #homeBlocks.calme .hb-needle,
#homeBlocks.calme .w2-arc, #homeBlocks.calme .w2-draw, #homeBlocks.calme .w2-trk .bar, #homeBlocks.calme .w2-mb i, #homeBlocks.calme .w2-hist s,
#homeBlocks.calme .w2-qrr, #homeBlocks.calme .day .tl, #homeBlocks.calme .day .feed li { animation: none; }
/* Courbe « verre » tracée directement : le point final et son montant, sans le verre */
.hb-lens.fixe .lgi, .hb-lens.fixe .lrip { display: none; }
.hb-lens.fixe .ldot, .hb-lens.fixe .ltip { opacity: 1; animation: none; }
/* Bloc hors de l'écran : ses animations en boucle sont en pause (rien à voir, rien à calculer) */
.hb-off .hb-sheen, .hb-off .hb-eye .lt, .hb-off .hb-eye .lb, .hb-off .hb-eye .lash, .hb-off .hb-eye .look, .hb-off .hb-eye .dil,
.hb-off .w2-trk .bar::after, .hb-off .w2-trk .st.cur i, .hb-off .w2-halo, .hb-off .w2-bulle, .hb-off .w2-vtop::after, .hb-off .w2-ecg .tr,
.hb-off .w2-sl i, .hb-off .hb-aura::before, .hb-off > .ca { animation-play-state: paused; }
/* Reflet qui défile sur la barre du suivi du lot : déplacé par transform (calculé par la carte graphique) au lieu de background-position
   (qui redessinait la barre à chaque image) ; même allure */
.w2-trk .bar::after { inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: w2Stream2 2.2s linear infinite; }
@keyframes w2Stream2 { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Ondes des pastilles (étape en cours du lot, voyants de la santé) : un cercle qui grandit et s'efface (transform + opacity,
   calculés par la carte graphique) au lieu d'un box-shadow animé (redessiné à chaque image). Même taille et même rythme */
.w2-trk .st.cur i, .w2-sl i { animation: none; position: relative; isolation: isolate; }
.w2-trk .st.cur i::after, .w2-sl i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; pointer-events: none; }
.w2-trk .st.cur i::after { inset: -2px; background: rgba(225,29,72,.45); animation: w2Onde 1.8s ease-out infinite; --o: 1.7; }
.w2-sl i::after { background: rgba(52,211,153,.6); animation: w2Onde 2s ease-out infinite; animation-delay: var(--d, 0s); --o: 3; }
.w2-sl span.wa i::after { display: none; }
@keyframes w2Onde { from { transform: scale(1); opacity: 1; } to { transform: scale(var(--o)); opacity: 0; } }
.hb-off .w2-trk .st.cur i::after, .hb-off .w2-sl i::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .w2-trk .st.cur i::after, .w2-sl i::after { animation: none !important; opacity: 0; } }
