/* ════════════════════════════════════════════════════════════════════════════
   AFFAIRES, L'APPLI (29/11/2026) · tout le dessin de l'appli Affaires, à part de studio.css.
   Modèle Sylva : pipeline en colonnes, prévision par mois, carte « prochain coup ». Couleur signature : jade #e7e7ed.
   Socle commun : fond noir #07080b à halos discrets, verre rgba(255,255,255,.045), filet 1px rgba(255,255,255,.14), rayon 22,
   police système, petites écritures, boutons monochromes (blanc = action principale), rouge pour l'alerte seulement.
   ════════════════════════════════════════════════════════════════════════════ */
.afx{
  --j:#e7e7ed; --j-12:rgba(231,231,237,.12); --j-20:rgba(231,231,237,.2); --j-35:rgba(231,231,237,.35); --j-60:rgba(231,231,237,.6);
  --verre:rgba(255,255,255,.045); --verre2:rgba(255,255,255,.07); --filet:rgba(255,255,255,.14); --filet2:rgba(255,255,255,.08);
  --tx:#f2f4f3; --mu:#a6aca9; --fa:#6f7672; --rouge:#ff6b6b;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;font-size:13px;color:var(--tx);
  max-width:1480px;margin:0 auto;font-variant-numeric:tabular-nums
}
/* le fond de l'appli : noir, deux halos discrets dont un jade */
body.stu-on[data-page="affaires"],body.stu-on.lin.verre.stu2[data-page="affaires"]{background:radial-gradient(44% 40% at 80% 2%,rgba(231,231,237,.11),transparent 70%),radial-gradient(40% 40% at 10% 4%,rgba(120,130,255,.07),transparent 70%),radial-gradient(50% 44% at 55% 100%,rgba(231,231,237,.05),transparent 72%),#07080b!important;background-attachment:fixed!important}
.afx button{font-family:inherit}

/* ── l'en-tête ── */
body.s3 #view .ecx-page.afx .afx-h h1,.afx .afx-h h1{font-size:24px;font-weight:650;letter-spacing:-.02em;line-height:1.1;margin:0;color:var(--tx)}
.afx .afx-h{align-items:center;margin:0 0 18px;padding-top:6px}
.afx .afx-ey{display:flex;width:max-content;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--j);margin-bottom:6px}
.afx .afx-ey .ecx-i{width:14px;height:14px}
.afx .afx-h .af2-ht p{font-size:12.5px;color:var(--mu);margin-top:5px}
.afx .afx-h .af2-ht h1{position:relative;display:inline-block}
.afx .afx-h .af2-ht h1::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:3px;border-radius:3px;background:var(--j);opacity:.85;transform-origin:0 50%}
.afx .af2-q{height:38px;width:240px;border-radius:19px;background:var(--verre);border:1px solid var(--filet2)}
.afx .af2-q input{font-size:13px}
.afx .af2-nv{height:38px;border-radius:19px;padding:0 16px;font-size:13px;font-weight:600;background:#f4f5f4;color:#08090a;border:0}
.afx .af2-nv .ecx-i{width:16px;height:16px}

/* ── les cartes de verre ── */
.afx-c{background:var(--verre);border:1px solid var(--filet);border-radius:22px;padding:18px 20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 30px 60px -34px rgba(0,0,0,.7);min-width:0}
.afx-ch{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px}
.afx-ch h3{margin:0;font-size:15px;font-weight:600;letter-spacing:-.005em;color:var(--tx)}
.afx-ch small{display:block;margin-top:3px;font-size:12px;color:var(--mu)}
.afx-lien{flex:none;display:inline-flex;align-items:center;gap:2px;height:28px;padding:0 6px 0 10px;border-radius:14px;border:0;background:transparent;color:var(--tx);font-size:12.5px;font-weight:500;cursor:pointer}
.afx-lien svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.afx-lien:hover{background:var(--verre2)}
.afx-calme{margin:4px 0;font-size:12.5px;color:var(--fa)}
.afx-vide{border-radius:22px!important;background:var(--verre)!important;border:1px solid var(--filet)!important}

/* ── le bandeau : quatre chiffres, le premier en jade ── */
.afx-kpis{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:14px;margin:0 0 14px}
.afx-k{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;min-width:0;padding:16px 18px;border-radius:22px;background:var(--verre);border:1px solid var(--filet);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);cursor:pointer;transition:border-color .2s,transform .2s}
.afx-k:hover{border-color:rgba(255,255,255,.24);transform:translateY(-1px)}
.afx-k:focus-visible{outline:2px solid var(--j);outline-offset:2px}
.afx-k1{background:linear-gradient(160deg,rgba(231,231,237,.2),rgba(231,231,237,.07) 70%);border-color:rgba(231,231,237,.34)}
.afx-kl{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--mu)}
.afx-k1 .afx-kl{color:#f6f6fc}
.afx-k b{font-size:22px;font-weight:600;letter-spacing:-.02em;line-height:1.1;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-k b.afx-hero{font-size:34px;letter-spacing:-.03em}
.afx-k small{font-size:12px;color:var(--mu);line-height:1.35}
.afx-k small b{font-size:12px;font-weight:600;color:var(--tx);letter-spacing:0}
.afx-j{position:relative;display:block;height:6px;border-radius:4px;background:rgba(255,255,255,.1);overflow:hidden}
.afx-j i,.afx-j em{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--j);transform-origin:0 50%}
.afx-j2 i{background:rgba(231,231,237,.42)}.afx-j2 em{background:var(--j)}

/* ── la grille du tableau de bord ── */
.afx-g{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
.afx-g>.afx-pipe{grid-column:span 12}
.afx-g>.afx-ags{grid-column:span 8}
.afx-g>.afx-next{grid-column:span 4}
.afx-g>.afx-fc{grid-column:span 12}
.afx-g>.afx-ags.plein{grid-column:span 12}
.afx-g>.afx-todo{grid-column:span 8}

/* ── le pipeline en colonnes ── */
.afx-pipe{padding:16px 14px 14px}
.afx-pipe .afx-ch{padding:0 6px}
.afx-kb{display:flex;gap:10px;align-items:flex-start;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.afx-kb::-webkit-scrollbar{display:none}
.afx-col{flex:1 1 0;min-width:176px;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:18px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06);transition:background .2s,box-shadow .2s}
.afx-col h4{display:flex;align-items:center;gap:7px;margin:2px 2px 4px;font-size:13px;font-weight:600;color:var(--tx);white-space:nowrap;min-width:0}
.afx-col h4 span{overflow:hidden;text-overflow:ellipsis}
.afx-col h4 em{font-style:normal;font-size:11px;font-weight:600;min-width:20px;height:20px;padding:0 6px;border-radius:10px;display:inline-grid;place-items:center;background:rgba(255,255,255,.08);color:var(--mu)}
.afx-col h4 b{margin-left:auto;font-size:12px;font-weight:600;color:var(--mu)}
.afx-pt{flex:none;width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3)}
.afx-col.proposition .afx-pt,.afx-col.negociation .afx-pt{background:rgba(231,231,237,.55)}
.afx-col.gagne{background:rgba(231,231,237,.1);border-color:rgba(231,231,237,.22)}
.afx-col.gagne .afx-pt{background:var(--j)}
.afx-col.perdu{background:rgba(255,255,255,.012);border-color:rgba(255,255,255,.05)}
.afx-col.perdu .afx-dc{opacity:.62}
.afx-col.perdu .afx-pt{background:rgba(255,255,255,.18)}
.afx-col.repli{flex:0 0 46px;min-width:46px;padding:10px 0;align-items:center;background:rgba(255,255,255,.015)}
.afx-col.repli h4{writing-mode:vertical-rl;transform:rotate(180deg);margin:2px 0;gap:8px;color:var(--fa)}
.afx-col.repli h4 em{transform:rotate(90deg)}
.afx-col.repli .afx-cl{display:none}
.afx-col.survol{background:rgba(231,231,237,.18);box-shadow:inset 0 0 0 2px var(--j)}
.afx-kb.glisse .afx-col.repli{flex-basis:120px;min-width:120px}
.afx-cl{display:flex;flex-direction:column;gap:8px;min-width:0}
.afx-dc{display:flex;flex-direction:column;gap:5px;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.06);cursor:pointer;transition:background .18s,transform .18s,border-color .18s;min-width:0}
.afx-dc:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.12);transform:translateY(-1px)}
.afx-dc:focus-visible{outline:2px solid var(--j);outline-offset:1px}
.afx-dc.glisse{opacity:.4}
.afx-dc header{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.afx-dc header b{font-size:13px;font-weight:600;line-height:1.3;color:var(--tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0}
.afx-dc header span{flex:none;font-size:12.5px;font-weight:700;color:var(--tx)}
.afx-dso{font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-dc footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}
.afx-dc footer .af2-lg .ecx-logo,.afx-dc footer .af2-lg0{width:22px!important;height:22px!important;min-width:22px;border-radius:50%!important;font-size:9px}
.afx-dc footer small{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--mu)}
.afx-dc footer small .ecx-i{width:13px;height:13px}
.afx-dc footer small.af2-rouge{color:var(--rouge)}
.afx-plus{all:unset;cursor:pointer;text-align:center;padding:7px;border-radius:12px;font-size:12px;color:var(--mu);border:1px dashed rgba(255,255,255,.12)}
.afx-plus:hover{color:var(--tx);border-color:rgba(255,255,255,.24)}
.afx-pipe.grand .afx-col{min-height:340px}

/* ── les agents au travail ── */
.afx-agl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.afx-ags.plein .afx-agl{grid-template-columns:repeat(2,minmax(0,1fr))}
.afx-ag{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);min-width:0}
.afx-ag>header{display:flex;align-items:center;gap:10px;min-width:0}
.afx-av{position:relative;flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:11px;font-weight:700;letter-spacing:.02em;color:#202026;background:linear-gradient(150deg,#f0f0f6,#dcdce2)}
.afx-av i{position:absolute;right:-3px;bottom:-3px;width:11px;height:11px;border-radius:50%;background:#4a4f4c;border:2px solid #0d0f0e}
.afx-ag.vit .afx-av i{background:var(--j);box-shadow:0 0 0 0 rgba(231,231,237,.6);animation:afxPouls 1.8s ease-out infinite}
@keyframes afxPouls{0%{box-shadow:0 0 0 0 rgba(231,231,237,.55)}70%{box-shadow:0 0 0 7px rgba(231,231,237,0)}100%{box-shadow:0 0 0 0 rgba(231,231,237,0)}}
@media (prefers-reduced-motion:reduce){.afx-ag.vit .afx-av i{animation:none}}
.afx-an{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.afx-an b{font-size:13.5px;font-weight:600;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-an small{font-size:11.5px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-ag>header em{flex:none;font-style:normal;font-size:11px;color:var(--fa);white-space:nowrap}
.afx-ag.vit>header em{color:var(--j);font-weight:600}
.afx-as h5{display:flex;align-items:center;gap:6px;margin:0 0 4px;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--fa)}
.afx-as h5 i{font-style:normal;font-size:10.5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;display:inline-grid;place-items:center;background:#f4f5f4;color:#08090a;letter-spacing:0}
.afx-ai{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:baseline;gap:8px;width:100%;padding:5px 6px;margin:0 -6px;border-radius:9px;font-size:12.5px;line-height:1.35;color:#d4d8d6}
.afx-ai span{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-ai small{flex:none;font-size:11px;color:var(--fa)}
.afx-ai:hover{background:rgba(255,255,255,.05)}
.afx-aw{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;margin-top:6px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);transition:opacity .25s,transform .25s}
.afx-aw.part{opacity:0;transform:translateX(12px)}
.afx-aw>span:first-child{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.afx-aw b{font-size:12.5px;font-weight:600;line-height:1.3;color:var(--tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-aw small{font-size:11.5px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-awb{flex:none;display:flex;align-items:center;gap:4px}
.afx .afx-oui{height:28px;min-height:28px;padding:0 12px;border-radius:14px;font-size:12px;font-weight:600}
.afx .btn.afx-oui:not(.ecx-alt){background:#f4f5f4;color:#08090a;border:0}
.afx .btn.ecx-alt.afx-oui{background:rgba(255,255,255,.08);color:var(--tx);border:1px solid rgba(255,255,255,.1)}
.afx-ign{all:unset;cursor:pointer;height:28px;padding:0 8px;border-radius:14px;font-size:11.5px;color:var(--fa)}
.afx-ign:hover{color:var(--tx);background:rgba(255,255,255,.06)}

/* ── le prochain coup, façon « Next best move » ── */
.afx-next{align-self:start;display:flex;flex-direction:column;gap:10px;background:linear-gradient(165deg,rgba(231,231,237,.17),rgba(231,231,237,.04) 60%,rgba(255,255,255,.03));border-color:rgba(231,231,237,.3)}
.afx-next .afx-ey{margin:0}
.afx-next h3{margin:0;font-size:18px;font-weight:650;letter-spacing:-.015em;line-height:1.25;color:var(--tx)}
.afx-next p{margin:0;font-size:12.5px;line-height:1.45;color:#c9ceca}
.afx-next .afx-pq{color:var(--mu)}
.afx-next .afx-pq b{display:block;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--fa);margin-bottom:2px}
.afx-mail{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08)}
.afx-mail:hover{border-color:rgba(255,255,255,.18)}
.afx-mi{flex:none;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:rgba(231,231,237,.16);color:var(--j)}
.afx-mi .ecx-i{width:16px;height:16px}
.afx-mail>span:last-child{min-width:0;display:flex;flex-direction:column;gap:1px}
.afx-mail b{font-size:12.5px;font-weight:600;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-mail small{font-size:11.5px;color:var(--mu)}
.afx-nb{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:4px}
.afx-nb .btn{height:36px;min-height:36px;border-radius:18px;padding:0 14px;font-size:12.5px;font-weight:600}
.afx-nb .btn:not(.ecx-alt){flex:1 1 100%;background:#f4f5f4;color:#08090a;border:0}
.afx-nb .btn.ecx-alt{flex:1;background:rgba(255,255,255,.08);color:var(--tx);border:1px solid rgba(255,255,255,.1)}
.afx-qd{font-size:11px;color:var(--fa)}
.afx-file{display:flex;flex-direction:column;gap:2px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}
.afx-file h5{margin:0 0 4px;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--fa)}
.afx-file .afx-ai span{-webkit-line-clamp:1}
.afx-file .afx-ai em{flex:none;font-style:normal;width:18px;height:18px;border-radius:6px;display:grid;place-items:center;font-size:10.5px;font-weight:700;background:rgba(255,255,255,.08);color:var(--mu)}
.afx-next.vide h3{font-size:16px}

/* ── la prévision sur quatre mois ── */
.afx-seg{flex:none;display:flex;gap:2px;padding:3px;border-radius:18px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08)}
.afx-seg button{all:unset;cursor:pointer;height:28px;padding:0 12px;border-radius:14px;font-size:12px;font-weight:500;color:var(--mu)}
.afx-seg button.on{background:#f4f5f4;color:#08090a;font-weight:600}
.afx-fct{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 12px}
.afx-fct b{font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--tx)}
.afx-fct span{font-size:12px;color:var(--mu)}
.afx-fm{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.afx-fb{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-width:0}
.afx-fbz{position:relative;display:block;height:150px;border-radius:14px;background:rgba(255,255,255,.035);overflow:hidden}
.afx-fbz i{position:absolute;bottom:0;border-radius:10px 10px 0 0;transform-origin:50% 100%}
.afx-fbz i.po{left:0;right:0;background:rgba(231,231,237,.2);border-radius:14px 14px 0 0}
.afx-fbz i.pr{left:14%;right:14%;background:rgba(231,231,237,.42)}
.afx-fbz i.si{left:30%;right:30%;background:var(--j)}
.afx-fb:hover .afx-fbz{background:rgba(255,255,255,.06)}
.afx-fbl{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0}
.afx-fbl b{font-size:13px;font-weight:600;color:var(--tx)}
.afx-fbl small{font-size:12px;color:var(--mu);white-space:nowrap}
.afx-fb.cour .afx-fbl b::after{content:"";display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:var(--j);vertical-align:middle}
.afx-leg{display:flex;gap:14px;margin-top:12px;font-size:12px;color:var(--mu)}
.afx-leg span{display:inline-flex;align-items:center;gap:6px}
.afx-leg i{width:10px;height:10px;border-radius:3px}
.afx-leg i.si{background:var(--j)}.afx-leg i.pr{background:rgba(231,231,237,.42)}.afx-leg i.po{background:rgba(231,231,237,.16)}
.afx-fl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.afx-flm{padding:14px;border-radius:18px;background:rgba(255,255,255,.03);box-shadow:none}
.afx-flm>header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.afx-flm>header b{font-size:13.5px;font-weight:600}.afx-flm>header small{font-size:12px;color:var(--mu)}
.afx-fli{all:unset;box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;gap:10px;width:100%;padding:9px 6px;margin:0 -6px;border-radius:10px;border-top:1px solid rgba(255,255,255,.06)}
.afx-fli:hover{background:rgba(255,255,255,.05)}
.afx-fli span{display:flex;flex-direction:column;gap:2px;min-width:0}
.afx-fli span:last-child{flex:none;align-items:flex-end}
.afx-fli b{font-size:12.5px;font-weight:600;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-fli small{font-size:11.5px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-fc.grand .afx-fbz{height:190px}

/* ── les autres pages : listes et onglets aux couleurs de l'appli ── */
.afx .afx-aide{font-size:12.5px;color:var(--mu);margin:0 0 12px}
.afx .af2-liste{border-radius:22px;background:var(--verre);border-color:var(--filet)}
.afx .af2-g .af2-gn{font-size:13px}
.afx .af2-b.af2-av,.afx .af2-b{border-radius:14px}
.afx-todo .af2-td{display:flex;gap:10px;align-items:flex-start;padding:8px 6px;border-radius:10px}
.afx-todo .af2-td b{font-size:13px;font-weight:600}.afx-todo .af2-td small{display:block;font-size:11.5px;color:var(--mu)}

/* ── tablette ── */
@media (max-width:1280px){
  .afx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .afx-g>.afx-ags{grid-column:span 12}
  .afx-g>.afx-next{grid-column:span 12}
  .afx-ags.plein .afx-agl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .afx-g>.afx-todo{grid-column:span 12}
  .afx-fl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .afx-col{min-width:150px}.afx-col.repli{flex-basis:40px;min-width:40px}
  .afx-col h4{flex-wrap:wrap;row-gap:2px}.afx-col h4 b{flex-basis:100%;margin-left:14px}
  .afx-next .afx-nb .btn:not(.ecx-alt){flex:1 1 auto}
}
/* ── téléphone ── */
@media (max-width:760px){
  .afx{font-size:13px}
  body.s3 #view .ecx-page.afx .afx-h h1,.afx .afx-h h1{font-size:22px}
  .afx .afx-h{margin-bottom:12px}
  .afx .af2-q{width:auto;flex:1}
  .afx .af2-nv span{display:none}.afx .af2-nv{width:38px;padding:0;justify-content:center}
  .afx .afx-tabs button.on{background:#f4f5f4;color:#08090a;border-color:#f4f5f4}
  .afx-kpis{gap:10px}
  .afx-k{padding:13px 14px;border-radius:18px}
  .afx-k1,.afx-k:last-child{grid-column:1/-1}
  .afx-k b{font-size:18px}.afx-k b.afx-hero{font-size:30px}
  .afx-c{padding:14px;border-radius:20px}
  .afx-g{gap:10px}
  .afx-agl,.afx-ags.plein .afx-agl{grid-template-columns:1fr}
  .afx-kb{scroll-snap-type:x mandatory;margin:0 -14px;padding:0 14px 2px;scroll-padding:0 14px}
  .afx-col{flex:0 0 78%;min-width:0;scroll-snap-align:start}
  .afx-col.repli{flex:0 0 44px;min-width:44px}
  .afx-fm{gap:6px}.afx-fbz{height:110px}.afx-fc.grand .afx-fbz{height:130px}
  .afx-fbl{flex-direction:column;align-items:flex-start;gap:1px}
  .afx-fc .afx-ch{flex-wrap:wrap}
  .afx-col.repli{display:none}
  .afx-fc .afx-seg{width:100%}.afx-fc .afx-seg button{flex:1;text-align:center}
  .afx-fl{grid-template-columns:1fr}
}

/* ════ RETOUR DU JUGE (29/11, 7/10) · disposition, bulles, rail, alerte ════ */
.afx{--rouge:#ff453a}
.afx .af2-rouge,.afx .afx-dc footer small.af2-rouge{color:var(--rouge)!important}

/* la bulle d'une société : initiales teintées dessous, logo par-dessus quand il se charge */
.afx-bul{position:relative;display:inline-grid;place-items:center;width:22px;height:22px;flex:none;border-radius:50%;overflow:hidden}
.af2-r .afx-bul{width:32px;height:32px}
.afx-ini{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;font-size:9px;font-weight:700;letter-spacing:.02em;color:#0b0c0d}
.af2-r .afx-ini{font-size:11px}
.afx-bul .afx-lgi{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-width:0!important;border-radius:50%!important;margin:0!important}
.afx-bul .afx-lgi:not(:has(img)){opacity:0}

/* le tableau de bord · ordi : pipeline en tête, puis les agents et, à droite, prochain coup et prévision l'un sous l'autre */
.afx-g.afx-bord{grid-template-columns:minmax(0,8fr) minmax(0,4fr);align-items:start}
.afx-bord>.afx-pipe{grid-column:1/-1}
.afx-bord>.afx-ags{grid-column:1}
.afx-cote{display:flex;flex-direction:column;gap:14px;min-width:0}
.afx-bord>.afx-cote{grid-column:2}
.afx .afx-next{height:auto;align-self:stretch}
.afx-cote .afx-fc .afx-ch{flex-wrap:wrap}
.afx-cote .afx-fc .afx-seg{width:100%}.afx-cote .afx-fc .afx-seg button{flex:1;text-align:center}
.afx-cote .afx-fc .afx-fm{gap:6px}.afx-cote .afx-fc .afx-fbz{height:120px}
.afx-cote .afx-fc .afx-leg{flex-wrap:wrap;gap:6px 12px}
.afx-g.afx-gag{grid-template-columns:minmax(0,8fr) minmax(0,4fr);align-items:start}
.afx-gag>.afx-ags{grid-column:1/-1}.afx-gag>.afx-cote{grid-column:2;grid-row:2}.afx-gag>.afx-todo{grid-column:1;grid-row:2}
.afx-age{display:inline-flex;width:max-content;align-items:center;height:22px;padding:0 9px;border-radius:11px;font-size:11px;font-weight:600;color:var(--mu);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}
.afx-next.vieux{background:linear-gradient(165deg,rgba(231,231,237,.1),rgba(231,231,237,.03) 60%,rgba(255,255,255,.03))}
.afx-k small.afx-src{font-size:11px;color:var(--fa);margin-top:-2px}

/* la prévision : le montant sous le mois, comme Sylva */
.afx-fbl{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:1px}

/* le pipeline : la somme des colonnes closes dit « 90 j » */
.afx-col h4 b small{font-size:11px;font-weight:500;color:var(--fa)}
.afx-vides{display:none}

/* les agents : deux sur deux, les titres respirent sur deux lignes */
.afx-ags.plein .afx-agl,.afx-agl{grid-template-columns:repeat(2,minmax(0,1fr))}
.afx-an b,.afx-an small{white-space:normal;overflow:visible;text-overflow:clip}
.afx-aw small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-ai.vis span::before,.afx-aw.vis b::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--j);vertical-align:1px;box-shadow:0 0 0 3px rgba(231,231,237,.18)}
.afx-aw.vis{background:rgba(231,231,237,.08);border-color:rgba(231,231,237,.24)}
.afx-aw.tard small{color:var(--rouge)}
.afx-todo .afx-tout{margin-top:8px}

/* tablette : une colonne ; l'ordre suit l'iPhone (chiffres, prochain coup, pipeline, agents, prévision) */
@media (max-width:1280px){
  .afx-g.afx-bord,.afx-g.afx-gag{grid-template-columns:minmax(0,1fr)}
  .afx-bord>*,.afx-gag>*{grid-column:1!important;grid-row:auto!important}
  .afx-bord>.afx-cote{display:contents}
  .afx-bord .afx-next{order:1}.afx-bord>.afx-pipe{order:2}.afx-bord>.afx-ags{order:3}.afx-bord .afx-fc{order:4}
  .afx-gag>.afx-cote{order:1}.afx-gag>.afx-ags{order:2}.afx-gag>.afx-todo{order:3}
  .afx-cote .afx-fc .afx-seg{width:auto}.afx-cote .afx-fc .afx-fbz{height:150px}.afx-cote .afx-fc .afx-fm{gap:10px}
  .afx-col:not(.repli){min-width:220px;flex:1 0 220px}
}
/* iPad : le rail de l'appli · libellé court sous l'icône, le compteur en pastille sur l'icône */
@media (min-width:861px) and (max-width:1180px){
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo]{position:relative}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo][data-court] .stu-long{display:none!important}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo][data-court]::after{content:attr(data-court);display:block;font-size:10.5px;line-height:1.2;white-space:nowrap;text-align:center}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .ecx-nb{position:absolute;top:0;left:calc(50% + 6px);margin:0!important;min-width:17px;height:17px;padding:0 4px;border-radius:9px;display:grid!important;place-items:center;font:700 10px/1 -apple-system,system-ui,sans-serif;background:#f4f5f4;color:#08090a;box-shadow:0 0 0 2px #0d0f12}
}
/* téléphone : les étapes vides tiennent dans une pastille ; le prochain coup garde ses trois boutons sur deux lignes */
@media (max-width:760px){
  .afx-vides{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:8px;max-width:100%;height:28px;padding:0 12px;margin:0 0 10px;border-radius:14px;font-size:12px;font-weight:600;color:var(--mu);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
  .afx-vides span{font-weight:400;color:var(--fa);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .afx-kb .afx-col.repli{display:none}
  .afx-kb.voir .afx-col.repli{display:flex}
  .afx-col:not(.repli){flex:0 0 78%;min-width:0}
  .afx-agl,.afx-ags.plein .afx-agl{grid-template-columns:1fr}
}
/* retouches après captures (29/11) */
.afx-fbl b{white-space:nowrap}
@media (min-width:861px) and (max-width:1180px){
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo][data-court]::after{font-size:10px;letter-spacing:-.01em}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .ecx-nb{top:-2px;left:calc(50% + 3px);min-width:15px;height:15px;padding:0 3px;font-size:9.5px}
}
@media (max-width:760px){
  .afx-vides{white-space:nowrap;flex-wrap:nowrap}
  .afx-cote .afx-fc .afx-seg,.afx-fc .afx-seg{width:100%}
}
.afx-fb.cour .afx-fbl b::after{display:none}
.afx-fb.cour .afx-fbl b::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--j);vertical-align:middle}

/* ════════════════════════════════════════════════════════════════════════════
   CHARTE D'ERGONOMIE (29/11) · François : « que ça avance vite, que tout soit simple à trouver, que j'aime passer du temps dedans ».
   En-tête au nom de l'appli, « À valider », le grand bloc « Aujourd'hui » (seule surface vedette), quatre chiffres sur une rangée,
   puis les affaires ouvertes et ce qui peut rentrer, et « Fait pour toi » replié en bas. Tailles : 12, 14, 16, 22 ; boutons tactiles 44.
   ════════════════════════════════════════════════════════════════════════════ */
.afx{font-size:14px}
/* l'en-tête : H1 = Affaires, une ligne de contexte ; à droite « Chercher dans Affaires » puis un seul bouton blanc */
body.s3 #view .ecx-page.afx .afx-h h1,.afx .afx-h h1{font-size:22px;line-height:1.15}
.afx .afx-h .af2-ht p{font-size:14px;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60ch}
.afx-ret{display:none}
.afx .af2-q{height:40px;width:260px;border-radius:20px}
.afx .af2-q input{font-size:14px}
.afx .af2-nv{display:inline-flex;align-items:center;gap:8px;height:40px;border-radius:20px;padding:0 18px 0 14px;font-size:14px}
.afx .af2-nv .afx-plus-i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.afx .af2-nv .afx-nvc{display:none}

/* les chiffres : une rangée de quatre, une ligne de sous-texte, aucune tuile en vedette */
.afx-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
.afx-k{padding:14px 16px;gap:4px;border-radius:20px}
.afx-k1{background:var(--verre);border-color:var(--filet)}
.afx-kl{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--mu)}
.afx-k b{font-size:22px}
.afx-k small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-k b.afx-ok{display:inline-flex;align-items:center;gap:6px;font-size:16px;color:var(--tx)}
.afx-k b.afx-ok .ecx-i{width:18px;height:18px;color:var(--j)}
.afx-k b.afx-inc{font-size:16px;color:var(--mu);font-weight:500}

/* « À valider » : quoi, pour qui, échéance ; « Ouvrir » à gauche, « Oui » à droite ; trois lignes */
.afx-val{padding:14px 18px;margin:0 0 14px}
.afx-val .afx-ch{margin-bottom:6px;align-items:center}
.afx-val .afx-ch h3{display:flex;align-items:center;gap:8px}
.afx-nbv{font-style:normal;min-width:20px;height:20px;padding:0 6px;border-radius:10px;display:inline-grid;place-items:center;font-size:12px;font-weight:700;background:var(--j);color:#202026}
.afx-vl{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07);transition:opacity .25s,transform .25s}
.afx-vl:first-of-type{border-top:0}
.afx-vl.part{opacity:0;transform:translateX(12px)}
.afx-vq{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.afx-vq b{font-size:14px;font-weight:600;line-height:1.35;color:var(--tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-vq small{font-size:12px;color:var(--mu)}
.afx-vb{flex:none;display:flex;gap:8px}
.afx .afx-vb .btn,.afx .afx-tb .btn{height:36px;min-height:36px;padding:0 14px;border-radius:18px;font-size:14px;font-weight:600;background:rgba(255,255,255,.08);color:var(--tx);border:1px solid rgba(255,255,255,.12)}
.afx .afx-vb .btn:hover,.afx .afx-tb .btn:hover{background:rgba(255,255,255,.14)}
.afx .afx-vb .afx-oui{border-color:rgba(231,231,237,.45);color:#fafaff}

/* le grand bloc « Aujourd'hui » : la seule surface vedette (noir teinté à 8 % de jade, filet 1 px) */
.afx-auj{margin:0 0 14px;padding:16px 20px 10px;background:linear-gradient(rgba(231,231,237,.08),rgba(231,231,237,.08)),#0b0d0c;border:1px solid rgba(231,231,237,.3);box-shadow:none}
.afx-auj .afx-ch{margin-bottom:4px}
.afx-auj .afx-ch h3{font-size:16px}
.afx-auj .afx-ch small{font-size:14px}
.afx-tls{display:flex;flex-direction:column}
.afx-tl{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(255,255,255,.07);cursor:pointer;transition:opacity .25s,transform .25s}
.afx-tl:first-child{border-top:0}
.afx-tl.part{opacity:0;transform:translateX(12px)}
.afx-tl:hover .afx-tt b{text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
.afx-tl:focus-visible{outline:2px solid var(--j);outline-offset:2px;border-radius:12px}
.afx-tl .af2-lg .afx-bul{width:32px;height:32px}.afx-tl .afx-ini{font-size:11px}
.afx-ti{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(231,231,237,.16);color:var(--j)}
.afx-ti .ecx-i{width:16px;height:16px}
.afx-tc{cursor:default}
.afx-tt{flex:1 1 30%;min-width:0;display:flex;flex-direction:column;gap:2px}
.afx-tt b{font-size:14px;font-weight:600;line-height:1.35;color:var(--tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-tt small{font-size:12px;color:var(--mu);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-tm{flex:none;font-size:14px;font-weight:600;color:var(--tx);min-width:76px;text-align:right}
.afx-tb{flex:none;display:flex;gap:8px}
.afx-vok{display:flex;align-items:center;gap:10px;padding:10px 0 8px;font-size:14px}
.afx-vok>.ecx-i{width:20px;height:20px;color:var(--j)}
.afx-vok b{font-weight:600;flex:1}
.afx .afx-vok .btn{height:36px;min-height:36px;padding:0 14px;border-radius:18px;font-size:14px;background:rgba(255,255,255,.08);color:var(--tx);border:1px solid rgba(255,255,255,.12)}

/* la panne : un bandeau d'une ligne, « Relancer » */
.afx-panne{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 16px;margin:0 0 14px;border-radius:16px;font-size:14px;color:var(--tx);background:rgba(255,69,58,.1);border:1px solid rgba(255,69,58,.35)}
.afx-panne span{flex:1;min-width:0}
.afx .afx-panne .btn{height:36px;min-height:36px;border-radius:18px;padding:0 14px;font-size:14px;background:rgba(255,255,255,.08);color:var(--tx);border:1px solid rgba(255,255,255,.12)}

/* sous la flottaison : les affaires ouvertes (8 colonnes) et ce qui peut rentrer (4) */
.afx-g.afx-bord2{grid-template-columns:minmax(0,8fr) minmax(0,4fr);align-items:start}
.afx-bord2>.afx-pipe,.afx-bord2>.afx-fc{grid-column:auto}
.afx-bord2 .afx-fc .afx-ch{flex-wrap:wrap}
.afx-bord2 .afx-fc .afx-seg{width:100%}.afx-bord2 .afx-fc .afx-seg button{flex:1;text-align:center}
.afx-bord2 .afx-fc .afx-fm{gap:6px}.afx-bord2 .afx-fc .afx-fbz{height:120px}
.afx-bord2 .afx-fc .afx-leg{flex-wrap:wrap;gap:6px 12px}
.afx-col{min-width:220px}
.afx-col.repli{display:none}
.afx-kb.voir .afx-col.repli,.afx-kb.glisse .afx-col.repli{display:flex;flex:1 1 0;min-width:150px;padding:10px;align-items:stretch}
.afx-kb.voir .afx-col.repli h4,.afx-kb.glisse .afx-col.repli h4{writing-mode:horizontal-tb;transform:none;margin:2px 2px 4px;color:var(--mu)}
.afx-kb.voir .afx-col.repli h4 em,.afx-kb.glisse .afx-col.repli h4 em{transform:none}
.afx-col.cible{display:none}
.afx-kb.glisse .afx-col.cible{display:flex;flex:0 0 150px;min-width:150px}
.afx-cib{margin:0;padding:18px 8px;border:1px dashed rgba(255,255,255,.16);border-radius:12px;text-align:center;font-size:12px;color:var(--mu)}
.afx-vides{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:8px;max-width:100%;height:32px;padding:0 14px;margin:10px 0 0 4px;border-radius:16px;font-size:12px;font-weight:600;color:var(--mu);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);white-space:nowrap}
.afx-vides span{font-weight:400;color:var(--fa);overflow:hidden;text-overflow:ellipsis}
.afx-vides:hover{color:var(--tx);border-color:rgba(255,255,255,.22)}
.afx-vides[aria-expanded="true"]{color:var(--tx)}
.afx-dc header b{font-size:14px}
.afx-dc header span{font-size:14px}
.afx-dso{font-size:12px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.afx-dc footer small{font-size:12px}
.afx-col h4{font-size:14px}.afx-col h4 b{font-size:12px}.afx-col h4 em{font-size:12px}
.afx-ch h3{font-size:16px}
.afx-ch small{font-size:12px}
.afx-lien{font-size:14px;height:32px}
.afx-fbl b{font-size:14px}.afx-fbl small,.afx-leg,.afx-fct span{font-size:12px}
.afx-seg button{font-size:12px;height:32px}

/* « Fait pour toi » : replié sur une ligne, en bas */
.afx-fpt{margin:14px 0 0;border-radius:20px;background:var(--verre);border:1px solid var(--filet)}
.afx-fpt>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:56px;padding:0 18px;cursor:pointer;font-size:14px}
.afx-fpt>summary::-webkit-details-marker{display:none}
.afx-fpt>summary b{font-weight:600;color:var(--tx)}
.afx-fps{flex:1;min-width:0;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afx-fpi{flex:none;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:rgba(231,231,237,.14);color:var(--j)}
.afx-fpi .ecx-i{width:15px;height:15px}
.afx-fpc{flex:none;width:18px;height:18px;fill:none;stroke:var(--mu);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.afx-fpt[open] .afx-fpc{transform:rotate(90deg)}
.afx-fpt>summary:focus-visible{outline:2px solid var(--j);outline-offset:2px;border-radius:20px}
.afx-fpb{padding:0 14px 14px}
.afx-fpl{margin-top:10px}
.afx-as h5{font-size:12px}.afx-an small,.afx-ag>header em,.afx-ai small,.afx-aw small{font-size:12px}
.afx-ai{font-size:14px}.afx-aw b{font-size:14px}.afx-an b{font-size:14px}
.afx .afx-oui{height:36px;min-height:36px;padding:0 14px;border-radius:18px;font-size:14px}
.afx-ign{height:36px;font-size:12px}

/* tablette */
@media (max-width:1280px){
  .afx-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .afx-g.afx-bord2{grid-template-columns:minmax(0,1fr)}
  .afx-bord2>*{grid-column:1!important}
  .afx-bord2 .afx-fc .afx-seg{width:auto}.afx-bord2 .afx-fc .afx-fbz{height:150px}
}
@media (max-width:1100px){
  .afx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .afx-k1,.afx-k:last-child{grid-column:auto}
}
/* iPad : rail de 88 px, libellé court toujours visible, la pastille hors de l'icône */
@media (min-width:861px) and (max-width:1180px){
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo][data-court]::after{font-size:12px;letter-spacing:-.01em}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .ecx-nb{top:2px;left:auto;right:4px;min-width:18px;height:18px;padding:0 4px;font-size:12px}
}
/* iPhone : « ‹ Accueil », le bouton garde son texte, les pages en puces collées sous l'en-tête avec un fondu à droite */
@media (max-width:760px){
  .afx{font-size:14px}
  .afx .afx-h{flex-wrap:wrap;gap:10px}
  .afx .afx-h .af2-ht{flex:1 1 100%}
  .afx-ret{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:2px;height:32px;margin:0 0 4px -6px;padding:0 8px 0 2px;border-radius:16px;font-size:14px;color:var(--mu)}
  .afx-ret svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .afx .afx-h .af2-ht p{font-size:13px;white-space:normal}
  .afx .af2-q{height:44px;flex:1;width:auto;order:1}
  .afx .af2-q input{font-size:16px}
  .afx .af2-nv{order:2;width:auto;height:44px;padding:0 16px 0 12px;border-radius:22px}
  .afx .af2-nv span.afx-nvl{display:none}
  .afx .af2-nv span.afx-nvc{display:inline}
  .afx-tabw{position:sticky;top:calc(56px + env(safe-area-inset-top));z-index:5;margin:0 -16px 14px;padding:6px 0;background:linear-gradient(#07080b 70%,rgba(7,8,11,0));-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .afx-tabw .af2-tabs{margin:0;padding:0 16px}
  .afx .afx-tabs button{height:36px;font-size:13px}
  .afx-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .afx-k{padding:12px 14px;border-radius:18px}
  .afx-k b{font-size:22px}
  .afx-kl,.afx-k small{font-size:13px}
  .afx-val,.afx-auj{padding:14px}
  .afx-vl{flex-wrap:wrap;gap:8px}
  .afx-vb{width:100%}.afx .afx-vb .btn{flex:1;height:44px;min-height:44px}
  .afx-tl{flex-wrap:wrap;gap:8px 12px}
  .afx-tt{flex:1 1 calc(100% - 140px)}
  .afx-tm{min-width:0}
  .afx-tb{width:100%;padding-left:44px;box-sizing:border-box}.afx .afx-tb .btn{flex:1;height:44px;min-height:44px}
  .afx-tc .afx-tb{flex-wrap:wrap}
  .afx-vq small,.afx-tt small,.afx-ch small,.afx-dso,.afx-dc footer small,.afx-col h4 b,.afx-fbl small,.afx-leg,.afx-fct span,.afx-cib,.afx-vides{font-size:13px}
  .afx-fpt>summary{padding:0 14px}
  .afx-vides{margin-left:0}
  .afx-col:not(.repli){flex:0 0 84%}
  body[data-page="affaires"] main,body[data-page="affaires"] #view{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}
/* tour 2 · quatre chiffres sur une rangée jusqu'à l'iPad ; rail de 88 px ; iPhone : le titre prend toute la ligne */
@media (max-width:1100px) and (min-width:761px){.afx-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.afx-k{padding:12px 14px}.afx-k b{font-size:22px}}
@media (min-width:861px) and (max-width:1180px){
  body.stu-on.lin.verre.stu2.s3[data-page="affaires"] .stu-side{width:88px!important;padding:14px 8px 10px!important}
  body.stu-on[data-page="affaires"] .stu-side .ecx-nav>button[data-mo]{width:72px!important;overflow:visible}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo][data-court]::after{font-size:12px;letter-spacing:-.02em}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .ecx-nb{top:4px;left:auto;right:0;min-width:18px;height:18px;padding:0 4px;font-size:12px}
}
@media (max-width:760px){
  .afx-tl{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:6px 12px;align-items:start}
  .afx-tl>.af2-lg,.afx-tl>.afx-ti{grid-row:1/3}
  .afx-tt{grid-column:2/4}
  .afx-tm{grid-column:2;grid-row:2;align-self:center;text-align:left;font-size:16px}
  .afx-tb{grid-column:3;grid-row:2;width:auto;padding:0}
  .afx .afx-tb .btn{flex:none;padding:0 16px}
  .afx-tc .afx-tb{grid-column:1/4;grid-row:3;flex-wrap:wrap}.afx-tc .afx-tb .btn{flex:1}
  .afx-tt b{-webkit-line-clamp:3}
}
@media (max-width:760px){
  .afx-tl{grid-template-columns:32px auto minmax(0,1fr)}
  .afx-tl>.af2-lg,.afx-tl>.afx-ti{grid-column:1;grid-row:1/3}
  .afx-tt{grid-column:2/4;grid-row:1}
  .afx-tm{grid-column:2;grid-row:2}
  .afx-tb{grid-column:3;grid-row:2;justify-content:flex-end}
  .afx .afx-tb .btn{padding:0 12px}
  .afx-tc .afx-tb{grid-column:2/4;grid-row:2;justify-content:stretch}
}
/* tour 3 · un seul bouton blanc par écran : « Oui » des agents passe en monochrome ; iPhone : sous-textes sur deux lignes */
.afx .btn.afx-oui:not(.ecx-alt){background:rgba(255,255,255,.08);color:#fafaff;border:1px solid rgba(231,231,237,.45)}
@media (max-width:760px){
  .afx-k small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .afx-fps{white-space:normal;line-height:1.3}
  .afx-tabw{top:calc(57px + env(safe-area-inset-top))}
}
@media (max-width:760px){.afx .af2-r .af2-t small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px}}

/* ════════════════════════════════════════════════════════════════════════════
   LE PLUS DU CRM (par-crm, 29/11/2026) · studio-crm-plus.js. Partagé par Affaires et Clients : tableur, panneaux, menus, fenêtres,
   recherche, palette, fiches. Même ADN : verre, filet 1px, rayon 22, boutons monochromes, rouge pour l'alerte seulement ;
   la couleur de l'appli (jade ou bleu ciel) seulement en teinte, jauge et courbe. Mouvement sous 600 ms, coupé en reduced-motion.
   ════════════════════════════════════════════════════════════════════════════ */
body{--crp-sig:#e7e7ed;--crp-sig-12:rgba(231,231,237,.12);--crp-sig-30:rgba(231,231,237,.3)}
body[data-page="clients"]{--crp-sig:#e6e6ee;--crp-sig-12:rgba(255,255,255,.1);--crp-sig-30:rgba(255,255,255,.24)}
.crp-gr,.crp-pan,.crp-menu,.crp-fen,.crp-ch,.crp-fbar,.crp-ong,.crp-bl,.crp-lv,.crp-kbc,.crp-epf,.crp-favs,.crp-fa,.crp-cal,.crp-tk,.crp-rap,.crp-auto{
  --cv:rgba(255,255,255,.045);--cv2:rgba(255,255,255,.075);--cf:rgba(255,255,255,.14);--cf2:rgba(255,255,255,.08);--ctx:#f0f2f1;--cmu:#9aa09d;--cfa:#6c726f;--crouge:#ff6b6b}
.crp-gr svg,.crp-pan svg,.crp-menu svg,.crp-fen svg,.crp-ch svg,.crp-fbar svg,.crp-bl svg,.crp-epf svg,.crp-favs svg,.crp-act svg,.crp-ib svg,.crp-lien svg,.crp-nx svg,.crp-tplus svg,.crp-repb svg,.crp-nxp svg,.crp-aujl svg,.crp-ong svg,.crp-rail svg,.crp-dr svg,.crp-pnav svg,.crp-hi svg,.crp-crm svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.crp-calme{margin:6px 0;font-size:12.5px;color:#6c726f}
.crp-faint{color:#6c726f;font-size:12px}
.crp-note{margin:0 0 10px;font-size:12px;color:#9aa09d;line-height:1.45}
.crp-h5{margin:14px 0 6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9aa09d}
.crp-ib{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:15px;border:0;background:transparent;color:inherit;cursor:pointer;font-size:16px;line-height:1}
.crp-ib:hover{background:rgba(255,255,255,.08)}.crp-ib:disabled{opacity:.35;cursor:default}.crp-ib.on{background:var(--crp-sig-12);color:var(--crp-sig)}
.crp-lien{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px;border-radius:14px;border:0;background:transparent;color:#f0f2f1;font:inherit;font-size:12.5px;font-weight:500;cursor:pointer}
.crp-lien:hover{background:rgba(255,255,255,.08)}
.crp-chip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 12px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#cfd3d1;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.crp-chip:hover{background:rgba(255,255,255,.08)}.crp-chip.on{background:#f2f3f2;color:#08090a;border-color:transparent}
/* vérif. de régression (29/11) : la touche du CRM reste dans le CRM */
:where(:not(body)[class*="crp"],.afx,.clx,.af2) kbd{font:600 10.5px/1 -apple-system,system-ui,sans-serif;padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);color:#cfd3d1}

/* ── le tableur ── */
.crp-gr{display:flex;flex-direction:column;gap:10px;min-width:0;color:var(--ctx);font-size:13px}
.crp-gbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.crp-gb{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;border:1px solid var(--cf2);background:var(--cv);color:var(--ctx);font:inherit;font-size:12.5px;cursor:pointer}
.crp-gb:hover{background:var(--cv2)}.crp-gb.crp-ib{padding:0;width:32px;justify-content:center}
.crp-gb.crp-vue b{font-weight:600}.crp-fav svg{fill:var(--crp-sig);stroke:var(--crp-sig)}
.crp-gn{font-size:12px;color:var(--cmu);padding:0 6px}
.crp-chips{display:flex;gap:6px;flex-wrap:wrap}
.crp-sale{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border-radius:14px;background:var(--cv);border:1px dashed var(--cf);font-size:12.5px;color:var(--cmu)}
.crp-sale span{margin-right:auto}
.crp-gbulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid var(--cf)}
.crp-gbulk[hidden]{display:none}.crp-gbulk b{font-size:12.5px;margin-right:6px}
.crp-gbulk .btn,.crp-kbulk .btn{height:30px;font-size:12.5px;padding:0 12px;border-radius:15px}
.btn.rouge,.crp-menu button.rouge{color:var(--crouge,#ff6b6b)}
.crp-gw{overflow:auto;max-height:calc(100vh - 260px);min-height:180px;border-radius:18px;border:1px solid var(--cf);background:rgba(255,255,255,.025);outline:none;overscroll-behavior:contain}
.crp-gw:focus-visible{border-color:var(--crp-sig-30)}
.crp-gt{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:12.5px}
.crp-gt th{position:sticky;top:0;z-index:2;background:#111316;border-bottom:1px solid var(--cf);text-align:left;padding:0;height:36px;font-weight:600;color:var(--cmu)}
.crp-gt th:first-child,.crp-gt td:first-child{position:sticky;left:0;z-index:3;background:#0e1013}
.crp-gt th:nth-child(2),.crp-gt td:nth-child(2){position:sticky;left:36px;z-index:2;background:#0e1013;border-right:1px solid var(--cf2)}
.crp-gt th:nth-child(2){z-index:4}
.crp-gt th.vise{box-shadow:inset 2px 0 0 var(--crp-sig)}
.crp-th{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 4px 0 10px;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer;max-width:calc(100% - 26px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-tsg{font-style:normal;color:var(--ctx);font-size:11px}
.crp-thm{width:22px;height:22px;border:0;border-radius:11px;background:transparent;color:var(--cfa);cursor:pointer;vertical-align:middle;opacity:0}
.crp-gt th:hover .crp-thm,.crp-thm:focus-visible{opacity:1}.crp-thm svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.crp-rz{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:5}
.crp-rz:hover,.crp-gt.tire .crp-rz{background:linear-gradient(90deg,transparent 3px,var(--crp-sig-30) 3px,var(--crp-sig-30) 4px,transparent 4px)}
.crp-gt td{height:36px;padding:0 10px;border-bottom:1px solid rgba(255,255,255,.05);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dfe2e0}
.crp-gt td.n,.crp-gt th.n{text-align:right;font-variant-numeric:tabular-nums}
.crp-gt tr:hover td{background:rgba(255,255,255,.03)}
.crp-gt tr:hover td:first-child,.crp-gt tr:hover td:nth-child(2){background:#131518}
.crp-gt tr.sel td{background:var(--crp-sig-12)}
.crp-gt td.act{box-shadow:inset 0 0 0 2px var(--crp-sig);border-radius:4px}
.crp-gt td.edit{padding:0;overflow:visible}
.crp-gt td.edit input,.crp-gt td.edit select{width:100%;height:34px;border:0;outline:2px solid var(--crp-sig);border-radius:4px;background:#16191c;color:#fff;font:inherit;padding:0 9px}
.crp-gt tfoot td{position:sticky;bottom:0;background:#111316;border-top:1px solid var(--cf);color:var(--cmu);font-size:11.5px}
.crp-calc{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;width:100%;text-align:inherit;height:30px}
.crp-calc:hover{color:var(--ctx)}
.crp-ck{text-align:center;padding:0!important}.crp-ck input,.crp-ck0{accent-color:var(--crp-sig);width:15px;height:15px;cursor:pointer}
.crp-c0{display:flex;align-items:center;gap:6px;min-width:0}.crp-c0>:first-child{overflow:hidden;text-overflow:ellipsis}
.crp-ouv{margin-left:auto;flex:none;display:inline-grid;place-items:center;height:22px;padding:0 6px;border-radius:11px;border:1px solid var(--cf2);background:rgba(255,255,255,.06);color:var(--ctx);cursor:pointer;opacity:0}
.crp-gt tr:hover .crp-ouv,.crp-gt td.act .crp-ouv{opacity:1}.crp-ouv svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}
.crp-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;margin-right:4px;border-radius:10px;background:rgba(255,255,255,.08);font-size:11.5px;color:#dfe2e0}
.crp-ml{color:inherit;text-decoration:none}.crp-ml:hover{text-decoration:underline}
.crp-gvide{padding:28px!important;text-align:center!important;color:var(--cfa)}
.crp-grip{cursor:grab;color:var(--cfa);margin-right:6px}
.crp-colz{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:52vh;overflow:auto}
.crp-colz li{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.04)}
.crp-fg{border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:8px 10px 10px;margin:0 0 8px}
.crp-fg legend{font-size:12px;color:#9aa09d;padding:0 6px}
.crp-fr{display:flex;gap:6px;align-items:center;margin:6px 0;flex-wrap:wrap}
.crp-fr select,.crp-fr input,.crp-fop select{height:32px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#f0f2f1;font:inherit;font-size:12.5px;padding:0 8px;min-width:0}
.crp-tn{font-style:normal;color:#9aa09d;font-size:12px;width:34px}

/* ── panneaux, voile, fenêtres, menus ── */
.crp-voile{position:fixed;inset:0;z-index:900;background:rgba(3,4,6,.45);opacity:0;transition:opacity .28s}
.crp-voile.on{opacity:1}
.crp-pan{position:fixed;top:10px;right:10px;bottom:10px;z-index:901;width:min(520px,calc(100vw - 20px));display:flex;flex-direction:column;border-radius:22px;background:rgba(16,18,21,.94);backdrop-filter:blur(24px) saturate(1.3);-webkit-backdrop-filter:blur(24px) saturate(1.3);border:1px solid var(--cf);box-shadow:0 40px 90px -30px rgba(0,0,0,.8);color:var(--ctx);font-size:13px;transform:translateX(24px);opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .24s}
.crp-pan.on{transform:none;opacity:1}.crp-pan.large{width:min(760px,calc(100vw - 20px))}.crp-pan.tire{transition:none;user-select:none}
.crp-poign{position:absolute;left:-4px;top:22px;bottom:22px;width:8px;cursor:ew-resize;border-radius:4px}
.crp-poign:hover{background:linear-gradient(90deg,transparent 3px,var(--crp-sig-30) 3px,var(--crp-sig-30) 5px,transparent 5px)}
.crp-pt{display:flex;align-items:center;gap:10px;padding:16px 16px 10px 20px}
.crp-pt h3{margin:0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-pt h3 small{font-weight:400;color:var(--cmu);font-size:12px}
.crp-x{width:32px;height:32px;border-radius:16px;border:0;background:rgba(255,255,255,.06);color:#fff;font-size:18px;cursor:pointer}
.crp-x:hover{background:rgba(255,255,255,.12)}
.crp-pc{flex:1;overflow:auto;padding:4px 20px 20px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.crp-fen-fond{z-index:950}
.crp-fen{max-width:min(560px,calc(100vw - 32px))}.crp-fen.large{max-width:min(820px,calc(100vw - 32px));width:100%}
.crp-fen .stu-fen-c{max-height:62vh;overflow:auto}
.crp-menu{position:fixed;z-index:1000;padding:6px;border-radius:16px;background:rgba(20,22,26,.97);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--cf);box-shadow:0 24px 60px -20px rgba(0,0,0,.8);display:flex;flex-direction:column;max-height:70vh;overflow:auto;color:var(--ctx);font-size:13px;animation:crpPop .16s ease-out}
.crp-menu small{padding:8px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--cfa)}
.crp-menu hr{border:0;border-top:1px solid var(--cf2);margin:5px 4px}
.crp-menu button{display:flex;align-items:center;gap:9px;min-height:32px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.crp-menu button span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-menu button:hover,.crp-menu button:focus-visible{background:rgba(255,255,255,.08);outline:none}
.crp-menu button.on{color:var(--crp-sig)}.crp-menu button:disabled{opacity:.45;cursor:default}
.crp-menu button svg,.crp-menu button .ecx-i{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
@keyframes crpPop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.crp-cases{display:flex;flex-direction:column;gap:6px}.crp-cases label{display:flex;align-items:center;gap:8px;font-size:13px}
.crp-cases.crp-num label input:first-child{flex:1}.crp-cases.crp-num input[type=number]{width:70px}
.crp-map{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.crp-map label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#9aa09d}
.crp-impl{display:flex;flex-direction:column;gap:3px;max-height:220px;overflow:auto;font-size:12.5px}
.crp-impl label.dbl{color:#9aa09d}.crp-impl em{font-style:normal;margin-left:8px;color:#ff6b6b;font-size:11.5px}

/* ── recherche et palette ── */
.crp-ch{position:fixed;inset:0;z-index:960;background:rgba(3,4,6,.5);display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;animation:crpFond .18s ease-out}
@keyframes crpFond{from{opacity:0}to{opacity:1}}
.crp-chb{width:min(640px,100%);max-height:70vh;display:flex;flex-direction:column;border-radius:22px;background:rgba(18,20,23,.97);border:1px solid var(--cf);box-shadow:0 40px 100px -30px rgba(0,0,0,.85);overflow:hidden;animation:crpPop .2s ease-out}
.crp-chi{display:flex;align-items:center;gap:10px;padding:0 16px;height:54px;border-bottom:1px solid var(--cf2)}
.crp-chi input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:#fff;font:inherit;font-size:15px;outline:none}
.crp-chi .ecx-i,.crp-chi svg{width:18px;height:18px;color:var(--cmu)}
.crp-chr{overflow:auto;padding:6px 8px 10px}
.crp-chr h5{margin:10px 8px 4px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--cfa)}
.crp-chr h5 em{font-style:normal;font-weight:500}
.crp-chr button{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:6px 10px;border:0;border-radius:12px;background:transparent;color:var(--ctx);font:inherit;text-align:left;cursor:pointer}
.crp-chr button b{font-weight:500;flex:none;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-chr button small{flex:1;min-width:0;color:var(--cmu);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-chr button.on,.crp-chr button:hover{background:rgba(255,255,255,.08)}
.crp-chr .crp-calme{padding:14px 10px}
.crp-aide{display:flex;flex-direction:column;gap:2px}.crp-aide div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px}

/* ── l'onglet « Plus » et la page de plus ── */
.crp-tplus{display:inline-flex;align-items:center;gap:4px}.crp-tplus svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.crp-pas{font-style:normal;display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--crp-sig);color:#121218;font-size:10px;font-weight:700}

/* ── blocs des fiches et panneaux ── */
.crp-bl{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:18px;background:var(--cv);border:1px solid var(--cf2);min-width:0;color:var(--ctx)}
.crp-bl>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.crp-bl>header h4{margin:0;font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:6px}
.crp-bl>header small{font-size:12px;color:var(--cmu)}
.crp-bl textarea,.crp-comz textarea{width:100%;border-radius:12px;border:1px solid var(--cf2);background:rgba(255,255,255,.04);color:#fff;font:inherit;font-size:13px;padding:10px 12px;resize:vertical;box-sizing:border-box}
.crp-vg{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.crp-v{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);min-width:0}
.crp-v span{font-size:11.5px;color:#9aa09d}.crp-v b{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-v.haute b{color:var(--crp-sig)}.crp-v.basse b{color:#ff6b6b}
.crp-hi{display:flex;flex-direction:column;gap:3px;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);color:#e6e9e7;font:inherit;text-align:left;min-width:0}
button.crp-hi{cursor:pointer}button.crp-hi:hover{background:rgba(255,255,255,.07)}
.crp-hi b{font-weight:500;font-size:13px}.crp-hi small{color:#9aa09d;font-size:11.5px}
.crp-hi.etape{border-left:2px solid var(--crp-sig)}.crp-hi.modif{opacity:.78}.crp-hi.epi{border-color:var(--crp-sig-30)}
.crp-hi p{margin:0 0 3px}.crp-hi .crp-lien{align-self:flex-start;height:24px;padding:0 6px;font-size:12px;color:#9aa09d}
.crp-hf{display:flex;gap:6px;flex-wrap:wrap}
.crp-nx{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);font:inherit;font-size:13px;color:#e6e9e7;text-align:left;cursor:pointer;min-width:0}
.crp-nx span{flex:1;min-width:0}.crp-nx time{flex:none;font-size:11.5px;color:#9aa09d}
.crp-nx.tard time{color:#ff6b6b}.crp-nx.fait span{text-decoration:line-through;color:#6c726f}
.crp-nx input{accent-color:var(--crp-sig);width:15px;height:15px}
.crp-brl{border-color:var(--crp-sig-30);background:var(--crp-sig-12)}
.crp-nba{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--crp-sig-30);background:var(--crp-sig-12);color:#fff;font:inherit;text-align:left;cursor:pointer}
.crp-nba span{display:flex;flex-direction:column;gap:2px}.crp-nba small{color:#9aa09d;font-size:11.5px}
.crp-epi,.crp-epf{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:rgba(247,246,240,.07);border:1px solid rgba(247,246,240,.2);font-size:13px}
.crp-epi>div,.crp-epf>div{flex:1;min-width:0}.crp-epi small,.crp-epf small{display:block;color:#9aa09d;font-size:11.5px;margin-top:3px}
.crp-epi p,.crp-epf p{margin:0}
.crp-epf{position:sticky;bottom:14px;z-index:5;margin:18px auto 0;max-width:720px;background:rgba(32,30,22,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 20px 50px -20px rgba(0,0,0,.8)}
.crp-pr{display:flex;align-items:center;gap:10px;min-width:0;padding:4px 0}
.crp-pr>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}.crp-pr small{color:#9aa09d;font-size:11.5px}
.crp-pr select{height:28px;border-radius:9px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#fff;font:inherit;font-size:12px}
.crp-prb{width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:12px;padding:6px 8px}.crp-prb:hover{background:rgba(255,255,255,.06)}
.crp-rt p{margin:0 0 6px;line-height:1.5;font-size:13px}
.crp-force{display:inline-flex;gap:2px;align-items:flex-end;height:14px;flex:none}
.crp-force i{width:4px;border-radius:2px;background:rgba(255,255,255,.15)}
.crp-force i:nth-child(1){height:5px}.crp-force i:nth-child(2){height:8px}.crp-force i:nth-child(3){height:11px}.crp-force i:nth-child(4){height:14px}
.crp-force i.on{background:var(--crp-sig)}
.crp-fl{display:flex;flex-direction:column;gap:6px}.crp-fi{display:flex;align-items:center;gap:10px;min-width:0}
.crp-fi>span:last-child{display:flex;flex-direction:column;min-width:0}.crp-fi small{color:#9aa09d;font-size:11.5px}
.crp-fx{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.06);font-size:10px;font-weight:700;color:#cfd3d1}
.crp-fic.survol{border-color:var(--crp-sig);background:var(--crp-sig-12)}
.crp-dga{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crp-ni{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:12px;border:0;background:rgba(255,255,255,.04);color:#e6e9e7;font:inherit;text-align:left;cursor:pointer;width:100%}
.crp-ni.lu{opacity:.6}.crp-ni small{color:#9aa09d;font-size:11.5px}.crp-ni.statique{cursor:default}.crp-ni>span{margin-top:4px}
.crp-nl{display:flex;flex-direction:column;gap:6px}
.crp-asf{display:flex;flex-direction:column;gap:10px;min-height:120px}
.crp-asm{padding:10px 12px;border-radius:14px;font-size:13px;line-height:1.5;max-width:92%}
.crp-asm.user{align-self:flex-end;background:rgba(255,255,255,.1)}.crp-asm.assistant{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.crp-asm p{margin:0 0 4px}.crp-src{display:block;color:#9aa09d;font-size:11px;margin-top:6px}
.crp-asp{display:flex;gap:6px;flex-wrap:wrap}
.crp-asc{width:100%;display:flex;flex-direction:column;gap:6px;margin-top:6px}
.crp-asc textarea{width:100%;box-sizing:border-box;border-radius:14px;border:1px solid var(--cf);background:rgba(255,255,255,.04);color:#fff;font:inherit;padding:10px 12px;resize:vertical}
.crp-asc>div{display:flex;align-items:center;gap:6px}
.crp-asa{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.crp-men{color:var(--crp-sig);text-decoration:none;font-weight:500}.crp-men:hover{text-decoration:underline}
.crp-dic.on,[data-dicter].on,[data-dic].on{background:rgba(255,107,107,.15);color:#ff6b6b}
.crp-bravo{position:fixed;left:50%;top:40%;z-index:1100;pointer-events:none;transform:translate(-50%,-50%);animation:crpBravo 1.2s ease-out forwards}
.crp-bravo span{display:grid;place-items:center;width:84px;height:84px;border-radius:42px;background:var(--crp-sig-12);border:1px solid var(--crp-sig-30)}
.crp-bravo svg{width:40px;height:40px;fill:var(--crp-sig);stroke:none}
@keyframes crpBravo{0%{opacity:0;transform:translate(-50%,-40%) scale(.7)}25%{opacity:1;transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-60%) scale(.96)}}
.crp-dbz:empty{display:none}.crp-dbz p{margin:0 0 10px;padding:8px 12px;border-radius:12px;background:rgba(247,246,240,.07);border:1px solid rgba(247,246,240,.2);font-size:12.5px}
.crp-favs{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}
.crp-favs h5{margin:4px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6c726f}
.crp-favs button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
body.stu-plie .crp-favs h5{display:none}
.crp-pnav{display:flex;align-items:center;gap:6px;font-size:12px;color:#9aa09d}
.crp-pb{height:30px;padding:0 14px;border-radius:15px;border:0;background:#f2f3f2;color:#08090a;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.crp-acts{display:flex;gap:6px;flex-wrap:wrap}
.crp-act{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#f0f2f1;font:inherit;font-size:12.5px;text-decoration:none;cursor:pointer;white-space:nowrap}
.crp-act:hover{background:rgba(255,255,255,.1)}.crp-act.off{opacity:.45}.crp-act.on svg{fill:var(--crp-sig);stroke:var(--crp-sig)}
.crp-act .ecx-i,.crp-act svg{width:15px;height:15px}

/* ── le kanban : sélection, repli, minuteur, zone Supprimer ── */
.crp-cx{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#9aa09d;min-width:0}
.crp-cx small{margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-tm{font-variant-numeric:tabular-nums;white-space:nowrap}.crp-tm.rouge{color:#ff6b6b}
.afx-dc.crp-sel{border-color:var(--crp-sig);background:var(--crp-sig-12)}
.afx-dc.crp-pourrit{border-color:rgba(255,107,107,.35)}
.afx-col.crp-repl{min-width:46px!important;max-width:46px!important;flex:0 0 46px!important;overflow:hidden}
.afx-col.crp-repl h4{writing-mode:vertical-rl;transform:rotate(180deg);height:auto}
.afx-col.crp-repl .afx-cl,.afx-col.crp-repl>p,.afx-col.crp-repl>small,.afx-col.crp-repl>footer{display:none}
.crp-repb{margin-left:auto;width:24px;height:24px;border:0;border-radius:12px;background:transparent;color:#9aa09d;cursor:pointer;display:inline-grid;place-items:center}
.crp-repb:hover{background:rgba(255,255,255,.08)}
.crp-supz{display:none!important}.afx-kb.glisse .crp-supz{display:flex!important;border:1px dashed rgba(255,107,107,.45)!important;background:rgba(255,107,107,.06)!important}
.crp-supz.survol{background:rgba(255,107,107,.14)!important}
.crp-kbulk{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:800;display:flex;align-items:center;gap:8px;padding:8px 10px 8px 16px;border-radius:22px;background:rgba(20,22,26,.96);border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 60px -20px rgba(0,0,0,.8);font-size:12.5px;color:#f0f2f1;max-width:calc(100vw - 32px);flex-wrap:wrap}
.crp-nxp,.crp-rel0{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#cfd3d1;font:inherit;font-size:11.5px;cursor:pointer}
.crp-rel0{border-color:var(--crp-sig-30);color:var(--crp-sig)}
.crp-nomseul .afx-dc>:not(header){display:none}
.crp-aujl{display:flex;align-items:center;gap:8px;width:100%;margin-top:10px;padding:8px 10px;border-radius:12px;border:0;background:rgba(255,255,255,.04);color:#cfd3d1;font:inherit;font-size:12.5px;text-align:left;cursor:pointer}
.crp-aujl:hover{background:rgba(255,255,255,.08)}
.crp-m3{display:flex;gap:10px;flex-wrap:wrap;font-size:11.5px;color:#9aa09d;margin-top:2px}
.afx-flm.survol{outline:1px dashed var(--crp-sig);outline-offset:2px;border-radius:16px}

/* ── fiche pleine page d'une affaire et barre d'étapes ── */
.crp-etb{display:flex;gap:4px;flex-wrap:wrap}
.crp-etb button{flex:1 1 90px;display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:#cfd3d1;font:inherit;font-size:12px;text-align:left;cursor:pointer;min-width:0}
.crp-etb button small{font-size:11px;color:#6c726f}
.crp-etb button.on{background:var(--crp-sig-12);border-color:var(--crp-sig-30);color:#fff}
.crp-etb.fige button{cursor:default}
.crp-fa .crp-fag{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:16px;align-items:start}
.crp-fac,.crp-fad,.crp-pz{display:flex;flex-direction:column;gap:12px;min-width:0}
.crp-faa{display:flex;gap:8px;flex-wrap:wrap}
.crp-ong{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:2px;border-radius:20px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);width:max-content;max-width:100%}
.crp-ong::-webkit-scrollbar{display:none}
.crp-ong button{height:32px;padding:0 14px;border-radius:16px;border:0;background:transparent;color:#9aa09d;font:inherit;font-size:12.5px;cursor:pointer;white-space:nowrap}
.crp-ong button.on{background:#f2f3f2;color:#08090a;font-weight:600}.crp-ong button em{font-style:normal;opacity:.7}
.crp-det .stu-inf,.crp-det label{display:flex}.crp-cch{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:12px;background:rgba(255,255,255,.04)}
.crp-cch input{flex:1;border:0;background:transparent;color:#fff;font:inherit;outline:none}
.crp-brief p{margin:0 0 6px;line-height:1.5}

/* ── tâches, calendrier, rapports, automatismes ── */
.crp-tk{display:flex;flex-direction:column;gap:12px}
.crp-tka{display:flex;gap:8px}.crp-tka input{flex:1;min-width:0;height:38px;border-radius:19px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font:inherit;padding:0 16px}
.crp-tkf{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.crp-tg{display:flex;flex-direction:column;gap:6px}.crp-tg h4{margin:6px 0 2px;font-size:12px;font-weight:600;color:#9aa09d;display:flex;gap:6px}
.crp-tg h4 em{font-style:normal}.crp-tg.retard h4{color:#ff6b6b}
.crp-tt{flex:1;min-width:0;display:flex;flex-direction:column}.crp-tt b{font-weight:500}.crp-tt p{margin:0}
.crp-tgl{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#9aa09d}
.crp-cal .crp-calg{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.crp-cald,.crp-calj{min-height:96px;padding:6px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);display:flex;flex-direction:column;gap:3px;min-width:0;font-size:11.5px}
.crp-cald.auj,.crp-calj.auj{border-color:var(--crp-sig-30)}
.crp-cale{display:block;padding:3px 6px;border-radius:7px;background:rgba(255,255,255,.07);color:#e6e9e7;font:inherit;font-size:11px;border:0;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
.crp-cale.rdv{background:var(--crp-sig-12)}.crp-calb{display:flex;gap:6px;align-items:center}
.crp-rap{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.crp-hb{display:flex;flex-direction:column;gap:8px}.crp-hb>div{display:grid;grid-template-columns:120px 1fr auto;gap:10px;align-items:center;font-size:12.5px}
.crp-hb em{font-style:normal;color:#9aa09d;margin-left:6px}
.crp-hb i{display:block;height:8px;border-radius:4px;background:var(--crp-sig);opacity:.75;transform-origin:0 50%}
.crp-vb{display:flex;align-items:flex-end;gap:6px;height:140px}.crp-vb>div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;height:100%;font-size:10.5px;color:#9aa09d}
.crp-vb i{display:block;width:100%;border-radius:6px 6px 2px 2px;background:var(--crp-sig);opacity:.8}
.crp-gg{display:flex;flex-direction:column;gap:10px}
.crp-auto .crp-ar,.crp-ar{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.035);margin-bottom:6px}
.crp-ar>span{flex:1;min-width:0;display:flex;flex-direction:column}.crp-ar small{color:#9aa09d;font-size:11.5px}
.crp-sw{position:relative;display:inline-flex}.crp-sw input{appearance:none;-webkit-appearance:none;width:34px;height:20px;border-radius:10px;background:rgba(255,255,255,.15);cursor:pointer;transition:background .2s;margin:0}
.crp-sw input::after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:7px;background:#fff;transition:transform .2s}
.crp-sw input:checked{background:var(--crp-sig)}.crp-sw input:checked::after{transform:translateX(14px)}
.crp-plan{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px}.crp-jour{border-left:1px solid rgba(255,255,255,.08);padding-left:14px}
.crp-jl{display:flex;gap:8px;font-size:12px;padding:4px 0}.crp-jl b{width:52px;flex:none;color:#9aa09d;font-weight:500}
.crp-types,.crp-mod{display:flex;gap:6px;flex-wrap:wrap}
.crp-quand{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#9aa09d}
.crp-pj summary{cursor:pointer;font-size:12.5px;color:#9aa09d}

@media (max-width:900px){.crp-fa .crp-fag{grid-template-columns:1fr}.crp-plan{grid-template-columns:1fr}.crp-jour{border-left:0;padding-left:0}}
@media (max-width:640px){.crp-pan{top:auto;left:8px;right:8px;bottom:8px;width:auto!important;max-height:88vh}.crp-gb span{display:none}.crp-gb{padding:0 10px}.crp-cal .crp-calg{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crp-kbulk{bottom:12px}.crp-ch{padding-top:8vh}.crp-hb>div{grid-template-columns:90px 1fr auto}}
@media (prefers-reduced-motion:reduce){.crp-pan,.crp-voile,.crp-menu,.crp-ch,.crp-chb{transition:none!important;animation:none!important}.crp-bravo{display:none}}
.crp-fc{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 4px 0 12px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:12px;color:#cfd3d1}
.crp-fc em{font-style:normal;color:#9aa09d}.crp-fc b{font-weight:600;color:#f0f2f1}
.crp-fc button{width:22px;height:22px;border-radius:11px;border:0;background:transparent;color:#9aa09d;cursor:pointer;font-size:14px}.crp-fc button:hover{background:rgba(255,255,255,.1);color:#fff}
/* le panneau d'une affaire : la barre de navigation, les jours sur la barre d'étapes, la recherche de champ */
.crp-tir .crp-pnav{display:flex;align-items:center;gap:6px;margin:0 0 12px}
.crp-tir .crp-pb{display:inline-flex;align-items:center;gap:6px}.crp-pb .ecx-i,.crp-pb svg{width:15px;height:15px}
.crp-tir #afEt [data-e] small{margin-left:6px;font-size:10.5px;opacity:.65;font-weight:500}
.crp-tir .crp-pz{display:flex;flex-direction:column;gap:12px;margin:14px 0}
.crp-cch{display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);margin:6px 0 12px}
.crp-cch .ecx-i,.crp-cch svg{width:15px;height:15px;color:#9aa09d;flex:none}
.crp-cch input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:#fff;font:inherit;font-size:13px;outline:none;padding:0}
.crp-tir .crp-poign{left:-4px}
.crp-rel .crp-force{height:16px}
.crp-force i{display:block;flex:none}
.crp-pb{white-space:nowrap}.crp-pnav span{white-space:nowrap}
@media (max-width:640px){.crp-tir .crp-pnav .crp-pb{padding:0 10px}.clx-fiche .crp-cad select{max-width:170px}.clx-fiche .crp-cad{margin-left:auto}}

/* ══ JUGE 7.3 (29/11) · corrections d'Affaires ══ */
/* 1 · rapports : la piste grise, la barre au prorata du plus grand */
.crp-hb i{position:relative;overflow:hidden;background:rgba(255,255,255,.07)!important;opacity:1!important}
.crp-hb i b{display:block;height:100%;max-width:100%;border-radius:4px;background:var(--crp-sig);opacity:.85;transition:width .5s cubic-bezier(.2,.7,.2,1)}
.crp-hb i b.rouge{background:#ff6b6b}
.crp-vb>div{min-width:0}
.crp-vb i{flex:1 1 auto;display:flex!important;align-items:flex-end;width:100%;background:transparent!important;opacity:1!important;min-height:0}
.crp-vb i b{display:block;width:100%;border-radius:6px 6px 2px 2px;background:var(--crp-sig);opacity:.85}
.crp-vb small{white-space:nowrap;font-size:10px;letter-spacing:-.02em}
@media (prefers-reduced-motion:reduce){.crp-hb i b{transition:none}}

/* 2 · iPad : un seul libellé court par bouton du rail, la pastille hors de l'icône */
@media (min-width:861px) and (max-width:1180px){
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .s3-mc,body[data-page="clients"] .stu-side .ecx-nav>button[data-mo][data-court] .s3-mc{display:none!important}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .ecx-nb{top:-4px!important;right:-6px!important;left:auto!important;box-shadow:0 0 0 2px #0d0f12}
  body[data-page="affaires"] .stu-side .ecx-nav>button[data-mo] .ecx-i{margin-right:10px}
  .stu-side .crp-nplus .stu-long,.stu-side .crp-nplus>svg:last-child{display:none!important}
  .stu-side .crp-nplus .crp-npc{display:block!important;font-size:12px;line-height:1.2}
  .stu-side .crp-nplus{flex-direction:column!important;align-items:center!important;gap:4px!important}
}
.stu-side .crp-nplus .crp-npc{display:none}
.stu-side .crp-nplus{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.stu-side .crp-nplus>svg:last-child{margin-left:auto;width:14px;height:14px;opacity:.6}
.stu-side .crp-nplus .stu-long{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 5 · le compositeur : la fiche du destinataire en carte, la case et la date sur une rangée de 44 px */
.crp-fen .crp-relm{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;margin:0 0 12px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
.crp-fen .crp-relm .ecx-av{flex:none;width:34px;height:34px;border-radius:17px;display:grid;place-items:center;font-size:12px;font-weight:700;color:#0b0c0e}
.crp-fen .crp-relm>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.crp-fen .crp-relm b{font-size:14px;font-weight:600}
.crp-fen .crp-relm small{display:block;font-size:12px;color:#9aa09d}
.crp-fen .crp-relm ul{margin:4px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;font-size:12px}
.crp-fen .crp-relm li{display:flex;gap:8px;min-width:0}.crp-fen .crp-relm li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crp-fen .crp-relm li em{font-style:normal;color:#9aa09d;flex:none}
.crp-fen .crp-plt{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:12px 0 4px}
.crp-fen .crp-plt label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;min-height:44px;margin:0!important;font-size:13.5px;color:#e6e9e7;text-align:left}
.crp-fen .crp-plt input[type=checkbox]{flex:none;width:20px!important;height:20px!important;margin:0!important;accent-color:var(--crp-sig)}
.crp-fen .crp-plt .crp-quand span{white-space:nowrap;color:#9aa09d}
.crp-fen .crp-plt .crp-quand input{width:auto!important;height:44px;box-sizing:border-box;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font:inherit;color-scheme:dark}
@media (max-width:640px){.crp-fen .crp-plt{grid-template-columns:1fr}.crp-fen .crp-plt .crp-quand input{flex:1;min-width:0}}

/* 7 · l'aperçu : le titre sur deux lignes puis l'ellipse, un clic pour le renommer ; la recherche de champ à 44 px */
.crp-ptv{margin:2px 0 12px;font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-.01em;color:var(--tx,#f4f5f4);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:text;border-radius:8px;word-break:break-word}
.crp-ptv:hover{background:rgba(255,255,255,.04)}.crp-ptv:focus-visible{outline:2px solid var(--crp-sig);outline-offset:2px}
textarea.crp-pta{display:block;width:100%;box-sizing:border-box;margin:2px 0 12px;resize:none;overflow:hidden;font:700 22px/1.25 inherit;font-family:inherit;color:#fff;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:6px 10px;outline:none}
textarea.crp-pta[hidden],.crp-ptv[hidden]{display:none!important}
.stu-tiroir .crp-cch,.crp-fa .crp-cch,label.crp-cch{height:44px!important;min-height:44px!important;box-sizing:border-box;flex:none}
.crp-cch input{height:100%!important;min-height:40px;font-size:14px!important}

/* 8 · la carte : titre, société, montant, une ligne d'état ; la case et les gestes au survol */
.afx-kb .afx-dc:has(.crp-cx)>footer{display:none}
.afx-kb .afx-dc{position:relative}
.afx-kb .crp-cx{position:relative;min-height:22px;margin-top:2px}
.crp-et{display:flex;align-items:center;gap:6px;min-width:0;flex:1;font-size:12px;color:#9aa09d}
.crp-et>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crp-et>svg,.crp-et .ecx-i{flex:none;width:13px;height:13px;opacity:.75}
.crp-et time{flex:none;margin-left:auto;font-variant-numeric:tabular-nums;color:#cfd3d1}
.crp-et .rouge,.crp-et time.rouge{color:#ff6b6b}
.crp-et.sig{color:var(--crp-sig)}
.crp-gx{position:absolute;right:-4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;padding:2px 2px 2px 10px;border-radius:12px;background:linear-gradient(90deg,transparent,rgba(24,26,30,.96) 14px);opacity:0;pointer-events:none;transition:opacity .16s}
.afx-dc:hover .crp-gx,.afx-dc:focus-within .crp-gx,.afx-dc.crp-sel .crp-gx{opacity:1;pointer-events:auto}
.crp-gx .crp-ck0{margin:0 2px}
.crp-gb2{display:inline-flex!important;align-items:center;gap:4px;height:26px;padding:0 9px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.06)!important;color:#e6e9e7;font:inherit;font-size:11.5px!important;cursor:pointer;white-space:nowrap;margin:0!important;flex:none}
.crp-gb2 svg,.crp-gb2 .ecx-i{width:12px;height:12px}
.crp-gb2 input{width:13px;height:13px;margin:0}
.crp-gb2:hover{background:rgba(255,255,255,.12)!important}
@media (hover:none){.crp-gx{display:none!important}.afx-kb .afx-dc{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}
.afx-dc.crp-fant{box-shadow:0 24px 60px -18px rgba(0,0,0,.85);transform:rotate(1.5deg) scale(1.02);opacity:.96;border-color:var(--crp-sig-30)}
.crp-doigt{touch-action:none}

/* 9 · toutes les étapes visibles : les vides en colonnes étroites, repliées, qui reçoivent quand même une carte */
.afx-kb .afx-col.repli{display:flex!important;flex:0 0 52px!important;min-width:52px!important;max-width:52px;padding:12px 0!important;align-items:center!important;background:rgba(255,255,255,.02)}
.afx-kb .afx-col.repli h4{writing-mode:vertical-rl!important;transform:rotate(180deg)!important;margin:2px 0!important;gap:8px;color:var(--fa,#7c827f)!important;white-space:nowrap}
.afx-kb .afx-col.repli h4 em{transform:rotate(90deg)!important}
.afx-kb .afx-col.repli .afx-cl{display:none!important}
.afx-kb.glisse .afx-col.repli{flex:0 0 120px!important;min-width:120px!important;max-width:120px}
.afx-kb .afx-col.repli.survol,.afx-kb .afx-col.survol{outline:1px dashed var(--crp-sig);outline-offset:-2px}
.afx-vides{display:none!important}
@media (max-width:760px){.afx-kb .afx-col.repli{display:flex!important}.afx-kb.glisse .afx-col.repli{flex-basis:96px!important;min-width:96px!important}}

/* 10 · la fiche pleine page : « ‹ Affaires » partout ; l'écart avec le devis se voit */
.crp-faret{all:unset;cursor:pointer;display:inline-flex!important;align-items:center;gap:2px;height:32px;margin:0 0 6px -6px;padding:0 10px 0 2px;border-radius:16px;font-size:14px;color:var(--mu,#9aa09d)}
.crp-faret:hover{background:rgba(255,255,255,.06);color:#fff}
.crp-faret svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.crp-ecart{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0 12px;padding:10px 14px;border-radius:14px;background:rgba(255,107,107,.07);border:1px solid rgba(255,107,107,.25);font-size:12.5px;color:#f1c9c9}
.crp-ecart span{flex:1;min-width:200px}
.crp-v.ecart b{color:#ff8f8f}

/* 15 · les tâches : le texte reste clair, seule l'échéance passée rougit */
.crp-tl .crp-tt b,.crp-tg.retard .crp-tl .crp-tt b{color:var(--tx,#eef0ef)!important;font-weight:500}
.crp-tg.retard .crp-tl,.crp-tg.retard .crp-tl small{color:inherit}
.crp-tl .crp-tt small{color:#9aa09d!important}
.crp-tl time{color:#9aa09d}.crp-tl time.rouge{color:#ff6b6b!important}

/* 13 · le pied de colonne du tableur : « Calculer » n'apparaît qu'au survol */
.crp-calc span{opacity:0;transition:opacity .15s}
tfoot:hover .crp-calc span,.crp-calc:focus-visible span{opacity:1}

/* 11 · téléphone : les puces des pages collées sous l'en-tête, avant « À valider » */
@media (max-width:760px){
  .afx>.afx-tabw{order:-2}
  .afx>.s3-ov,.afx>.s3-ov-haut{order:-1}
  .crp-tka .btn{flex:none}
}
@media (min-width:861px) and (max-width:1180px){
  html body.s3[data-page="affaires"] #stuSide .ecx-nav>button[data-mo][data-court] .s3-mc,html body.s3[data-page="clients"] #stuSide .ecx-nav>button[data-mo][data-court] .s3-mc{display:none!important}
  html body.s3[data-page="affaires"] #stuSide .ecx-nav>button[data-mo] .ecx-nb{top:0!important;right:0!important;left:auto!important}
  html body.s3 #stuSide .crp-nplus>svg:first-child{width:20px;height:20px}
}
.crp-ptv{flex:none!important;display:block!important}
.crp-ptv>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stu-side .crp-nplus .crp-npi{width:18px!important;height:18px!important;flex:none;fill:currentColor;stroke:none}
.crp-faret{display:flex!important;width:fit-content}
@media (max-width:760px){
  .crp-tk .crp-tl{display:grid!important;grid-template-columns:22px minmax(0,1fr) 32px;gap:4px 10px;align-items:start;padding:10px 0}
  .crp-tk .crp-tl>input{grid-column:1;grid-row:1;margin:3px 0 0}
  .crp-tk .crp-tl .crp-tt{grid-column:2;grid-row:1}
  .crp-tk .crp-tl time{grid-column:2;grid-row:2;font-size:12px}
  .crp-tk .crp-tl [data-tmenu]{grid-column:3;grid-row:1/3;align-self:center}
}
@media (max-width:760px){
  html body .afx>.afx-tabw{order:-2!important}
  html body .afx>.s3-ov-haut{order:-1!important}
  .afx-kb .afx-col.repli{flex:0 0 38px!important;min-width:38px!important;max-width:38px}
  .afx-kb .afx-col.repli .crp-repb{display:none}
}
@media (max-width:760px){html body .ecx-page.afx:not(.crp-fa){display:flex!important;flex-direction:column}html body .ecx-page.afx>*{min-width:0}}
/* juge 7.3 : une carte qui dort garde un liseré discret, le rouge reste pour la date dépassée */
.afx .afx-dc.crp-pourrit{border-color:rgba(255,107,107,.16)}
.afx .afx-dc.crp-pourrit:hover{border-color:rgba(255,107,107,.32)}

/* ══ r3 · second juge ══ */
/* 1 · le glisser ne bouge plus rien : colonnes à taille fixe, Gagné · Perdu · Supprimer en surimpression en bas */
.afx-kb.glisse .afx-col.repli{flex:0 0 52px!important;min-width:52px!important;max-width:52px!important}
@media (max-width:760px){.afx-kb.glisse .afx-col.repli{flex:0 0 38px!important;min-width:38px!important;max-width:38px!important}}
.afx-kb .crp-zones{display:none}
.afx-kb.glisse .crp-zones{display:flex;position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1100;gap:10px;padding:10px;border-radius:22px;background:rgba(14,15,18,.92);border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 60px -20px rgba(0,0,0,.85);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);max-width:calc(100vw - 32px)}
.afx-kb.glisse .crp-zones>.afx-col{display:flex!important;flex:0 0 168px!important;min-width:0!important;max-width:168px!important;min-height:76px!important;height:auto;padding:12px 14px!important;justify-content:center;writing-mode:horizontal-tb}
.afx-kb.glisse .crp-zones>.afx-col h4{writing-mode:horizontal-tb!important;transform:none!important;margin:0 0 2px!important}
.afx-kb.glisse .crp-zones .afx-cib{margin:0;font-size:12px;color:var(--mu,#9aa09d)}
@media (max-width:760px){.afx-kb.glisse .crp-zones{bottom:calc(92px + env(safe-area-inset-bottom));z-index:1300;left:16px;right:16px;transform:none;max-width:none;gap:6px;padding:6px}.afx-kb.glisse .crp-zones>.afx-col{flex:1 1 0!important;max-width:none!important;min-height:64px!important;padding:10px!important}.afx-kb.glisse .crp-zones .afx-cib{display:none}}
/* 8 · les colonnes repliées ont toutes la même hauteur */
.afx-kb{align-items:flex-start}
.afx-kb .afx-col.repli{height:320px!important;min-height:320px!important;align-self:flex-start!important;overflow:hidden}
/* 3 · le compositeur : le corps défile, la phrase reste entière ; case et menu monochromes */
.crp-fen{max-height:calc(100dvh - 48px);display:flex;flex-direction:column}
.crp-fen>.stu-fen-c{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:4px}
.crp-fen>footer{flex:none}
.crp-fen input[type=checkbox],.crp-fen input[type=radio],.crp-fen .crp-plt input[type=checkbox],.crp-ck input,.crp-ck0,.crp-nx input{accent-color:#e9ecea!important}
.crp-quand select{height:40px;border-radius:12px;padding:0 12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);color:var(--tx,#eef0ef);font:inherit;font-size:13px;max-width:100%}
.crp-plt{flex-wrap:wrap;row-gap:10px}
.crp-relder{display:block;color:var(--tx,#eef0ef)!important}
/* 8 · À : le nom en puce, l'adresse à côté */
.crp-apu{display:flex;align-items:center;gap:8px;min-width:0}
.crp-apu input{flex:1 1 auto;min-width:0}
.crp-puce{flex:none;max-width:60%;height:28px;display:inline-flex;align-items:center;padding:0 12px;border-radius:14px;background:rgba(255,255,255,.1);font-size:13px;font-weight:600;color:var(--tx,#eef0ef);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:760px){.crp-apu:not(.edit):has(.crp-puce) input{display:none}.crp-apu:not(.edit) .crp-puce{max-width:100%;height:36px;cursor:pointer}.crp-apu.edit .crp-puce{display:none}}
/* 6 · Gagné par mois : le montant au-dessus des barres, des mois lisibles */
.crp-vb{gap:4px}
.crp-vb i{flex-direction:column;justify-content:flex-end}
.crp-vbv{font-style:normal;font-size:10.5px;font-weight:600;color:var(--mu,#9aa09d);white-space:nowrap;text-align:center;margin-bottom:4px;font-variant-numeric:tabular-nums}
.crp-vbv.max{color:var(--tx,#eef0ef)}
.crp-vb small{font-size:10px;letter-spacing:0}
.crp-vb>div:nth-child(even) small{visibility:hidden}
.crp-vbv:not(.max){visibility:hidden}
.crp-vb>div:hover .crp-vbv{visibility:visible;color:var(--tx,#eef0ef)}
.crp-vb>div:hover b{opacity:1}
.crp-vb{border-bottom:0;position:relative}
.crp-vb>div>i{border-bottom:1px solid rgba(255,255,255,.1)}

/* ── r4 (29/11) · troisième juge ── */
/* compositeur : la rangée Suivre / Plus tard et la note en pied fixe, hors de la zone qui défile */
.crp-fen>.crp-fpied{flex:none;padding-top:4px;border-top:1px solid rgba(255,255,255,.06);margin-top:4px}
.crp-fen>.crp-fpied .crp-plt{margin:8px 0 2px}
.crp-fen>.crp-fpied .crp-note{margin:2px 0 10px}
.crp-fen textarea[name=corps]{min-height:120px}
/* champs en focus : filet monochrome, jamais le bleu système */
.crp-fen .et-pch input:focus,.crp-fen .et-pch select:focus,.crp-fen .et-pch textarea:focus,.crp-fen .crp-quand select:focus,.crp-fen input:focus-visible,.crp-fen select:focus-visible,.crp-fen textarea:focus-visible{border-color:rgba(255,255,255,.42)!important;outline:none!important;box-shadow:none!important}
/* rapports : « Pourquoi on perd » en teinte monochrome, une ligne par raison */
.crp-hb i b.mono{background:rgba(236,239,237,.55)}
.crp-hb>div>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* téléphone : les étapes vides ne prennent plus de place ; la pastille « étapes vides » les ramène, le glisser les montre en cibles */
@media (max-width:760px){
  .afx-kb:not(.voir):not(.glisse) .afx-col.repli{display:none!important}
  .afx-kb .afx-col:not(.repli):not(.crp-repl){flex:0 0 calc(100% - 44px)!important;min-width:0!important;max-width:calc(100% - 44px)}
  .afx-kb .afx-dc{min-width:0;max-width:100%;overflow:hidden}
  .afx-kb .afx-dc *{min-width:0}
}
/* la fenêtre tient toujours dans l'écran, pied compris */
.crp-fen-fond{align-items:center!important;padding:24px 16px!important}
.crp-fen{max-height:calc(100dvh - 48px)!important}
.crp-fen .crp-quand{min-width:0}
.crp-fen .crp-quand select{min-width:0;flex:1 1 auto;width:auto;max-width:100%}
@media (max-width:760px){
  .crp-fen-fond{padding:12px!important}
  .crp-fen{max-height:calc(100dvh - 24px)!important}
  .crp-fen>.crp-fpied .crp-plt{gap:4px;margin:6px 0 0}
  .crp-fen>.crp-fpied .crp-plt label{min-height:40px}
  .crp-fen>.crp-fpied .crp-note{font-size:11.5px;margin:2px 0 8px}
}
