/* ════════════════════════════════════════════════════════════════════════════
   CLIENTS, L'APPLI (29/11/2026) · tout le style du module Clients (studio-crm.js, STU.clients), chargé après studio.css.
   Modèle Sylva (Companies, table triable, Leaderboard), couleur signature gris clair (le bleu ciel est retiré le 2/12/2026 : aucun bleu), socle commun du Studio :
   fond noir, verre rgba(255,255,255,.045), filet 1px rgba(255,255,255,.14), rayon 22, police système, petites écritures.
   Tout est rangé sous .clx : rien ne fuit vers les autres modules.
   ════════════════════════════════════════════════════════════════════════════ */
.clx{--sky:#e6e6ee;--sky-i:#f3f3f6;--verre:rgba(255,255,255,.045);--filet:rgba(255,255,255,.14);--filet2:rgba(255,255,255,.08);--puits:rgba(255,255,255,.04);
  --tx:#eef0f3;--mu:#8d929b;--mu2:#62666e;--alerte:#ff5d5d;--r:22px;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;color:var(--tx);font-size:14px;
  max-width:1360px;position:relative;isolation:isolate}
/* deux halos discrets, bleu ciel, derrière la page */
.clx::before{content:"";position:absolute;z-index:-1;inset:-120px 0 auto auto;width:620px;height:420px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,255,255,.104),transparent 70%);filter:blur(8px)}
.clx::after{content:"";position:absolute;z-index:-1;left:-140px;top:520px;width:560px;height:480px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,255,255,.048),transparent 70%)}
.clx button{font-family:inherit;color:inherit}
.clx svg{flex:none}

/* ── la tête : titre 24 px souligné de bleu ciel, recherche en pilule, une action blanche ── */
.clx-h{display:flex;align-items:flex-end;gap:12px;margin:0 0 20px}
.clx-ht{flex:1;min-width:0}
body.s3 #view .ecx-page.clx .clx-h h1,.clx .clx-h h1{font-size:22px;font-weight:600;letter-spacing:-.025em;line-height:1.15;margin:0;color:#f4f5f7;display:inline-block;position:relative;padding-bottom:7px}
.clx .clx-h h1::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:var(--sky);opacity:.9}
.clx-ht p{margin:6px 0 0;font-size:12px;color:var(--mu)}
.clx-q{display:flex;align-items:center;gap:8px;height:40px;width:280px;max-width:34vw;padding:0 14px;border-radius:20px;background:rgba(10,12,15,.55);border:1px solid var(--filet2);color:var(--mu)}
.clx-q:focus-within{border-color:rgba(255,255,255,.44)}
.clx-q svg{width:16px;height:16px}
.clx-q input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--tx);font:inherit;font-size:14px}
.clx-q input::placeholder{color:var(--mu2)}
.clx-b1,.clx-b2{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 16px;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;
  transition:transform .16s cubic-bezier(.23,1,.32,1),background .16s}
.clx-b1{background:#f4f5f7;color:#0a0b0d!important;border:0}
.clx-b1:hover{background:#fff}.clx-b1:active,.clx-b2:active{transform:scale(.97)}
.clx-b1 svg{width:15px;height:15px}
.clx-b2{background:rgba(255,255,255,.07);border:1px solid var(--filet2);color:#d9dce1}
.clx-b2:hover{background:rgba(255,255,255,.11)}
.clx-b1.petit,.clx-b2{height:30px;padding:0 12px;font-size:12px;border-radius:15px}
.clx-b2{height:30px}

/* les onglets de l'appli : la barre de gauche les porte sur ordinateur, la page les montre sur tablette étroite et téléphone */
.clx-tabs{display:none}

/* ── les cartes de verre ── */
.clx-c{background:var(--verre);border:1px solid var(--filet);border-radius:var(--r);padding:18px 20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 60px -34px rgba(0,0,0,.7);min-width:0}
.clx-ch{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px}
.clx-ch h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.005em;color:#f1f2f4}
.clx-ch p{margin:3px 0 0;font-size:12px;color:var(--mu)}
.clx-lien{background:none;border:0;padding:4px 0;font-size:12px;font-weight:500;color:#cfd3d9;cursor:pointer;white-space:nowrap}
.clx-lien:hover{color:#fff}
.clx-h3{display:flex;align-items:center;gap:8px;margin:16px 0 8px;font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.07em;color:var(--mu)}
.clx-h3 i{font-style:normal;color:var(--sky);letter-spacing:0}
.clx-calme{margin:6px 0;color:var(--mu2);font-size:12px}
.clx-faint{color:var(--mu2);font-style:normal}
.clx-vide{padding:40px 20px;text-align:center;border:1px dashed var(--filet2);border-radius:var(--r)}
.clx-vide b{display:block;font-size:14px;font-weight:600}.clx-vide small{color:var(--mu);font-size:12px}
.clx-charge{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.clx-charge i{height:120px;border-radius:var(--r);background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.07),rgba(255,255,255,.03));background-size:200% 100%;animation:clxCh 1.2s linear infinite}
@keyframes clxCh{to{background-position:-200% 0}}

/* ── les 4 chiffres : une tuile héros bleu ciel, trois en verre neutre (logique d'Affaires et de Contacts) ── */
.clx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 14px}
.clx-kpis.trois{grid-template-columns:repeat(3,minmax(0,1fr))}
.clx-kpi{--t:var(--sky);display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;text-align:left;padding:16px 18px 15px;border-radius:var(--r);cursor:pointer;
  background:var(--verre);border:1px solid var(--filet);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 60px -34px rgba(0,0,0,.75);transition:transform .2s cubic-bezier(.23,1,.32,1),border-color .2s}
div.clx-kpi{cursor:default}
.clx-kpi:hover{border-color:rgba(255,255,255,.26)}
.clx-kpi.t1{background:color-mix(in oklab,var(--sky) 20%,rgba(16,19,22,.72));border-color:color-mix(in oklab,var(--sky) 38%,rgba(255,255,255,.1))}
.clx-kpi.t1:hover{border-color:color-mix(in oklab,var(--sky) 60%,rgba(255,255,255,.16))}
button.clx-kpi:active{transform:scale(.985)}
.clx-kl{font-size:12px;font-weight:600;color:#c9cdd4}
.clx-kpi.t1 .clx-kl{color:color-mix(in oklab,var(--sky) 45%,#e8eaee)}
.clx-kpi b{font-size:22px;font-weight:600;letter-spacing:-.025em;line-height:1.1;font-variant-numeric:tabular-nums;color:#f6f7f9;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clx-kpi small{font-size:12px;color:var(--mu);line-height:1.35;max-width:100%}
.clx-kpi.t1 small{color:color-mix(in oklab,var(--sky) 22%,#a3a8b0)}
.clx-kpi small .haut{color:var(--sky-i);font-weight:600}.clx-kpi small .bas,.clx .alerte{color:var(--alerte);font-weight:600}
.clx-mt{display:block;width:100%;height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden;margin:2px 0 1px}
.clx-mt i{display:block;height:100%;border-radius:3px;background:var(--t);transform-origin:left;transform:scaleX(var(--v,0))}

/* ── la grille du tableau de bord : 12 colonnes ── */
.clx-grille{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;align-items:start}
.clx-pm{grid-column:span 4}.clx-sig{grid-column:span 8}
.clx-agc{grid-column:span 7}.clx-geste{grid-column:span 5}
.clx-cla{grid-column:span 5}.clx-vus-c{grid-column:span 7}
.clx-une{grid-column:1/-1}
.clx-pm,.clx-sig,.clx-cla,.clx-geste,.clx-vus-c,.clx-agc{align-self:stretch}
.clx-sig{display:flex;flex-direction:column}.clx-sig .clx-bars{flex:1;min-height:200px;max-height:240px}
.clx-cla{display:flex;flex-direction:column}.clx-cla #clxBoard{flex:1;display:flex;flex-direction:column}.clx-cla .clx-board{flex:1;justify-content:space-between}
.clx-nbg{font-style:normal;font-size:12px;font-weight:600;color:var(--sky-i);margin-left:6px}
.clx-plusn{margin-top:8px}
/* le panneau du tableau de bord : une tuile par agent, deux de front */
.clx-agc .clx-ags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.clx-agc .clx-ag{padding:12px 14px;border-radius:16px;background:var(--puits);border:1px solid var(--filet2);box-shadow:none;min-width:0}
.clx-agc .clx-ag.vit{border-color:rgba(255,255,255,.36)}
.clx-agc .clx-agl{margin:8px 0 0}
.clx-agc .clx-af small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clx-agc .clx-agq small{white-space:normal;max-width:150px}
.clx-agc .clx-calme{margin:8px 0 0}

/* le signé par mois : 12 rails, le mois courant plein, la moyenne en pointillé */
.clx-bars{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;height:200px;padding-top:22px}
.clx-bar{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
.clx-br{position:relative;flex:1;border-radius:8px;background:linear-gradient(to top,rgba(255,255,255,.05),rgba(255,255,255,.015))}
.clx-br i{position:absolute;left:0;right:0;bottom:0;height:max(3px,calc(var(--v,0) * 100%));border-radius:8px;background:color-mix(in oklab,var(--sky) 55%,transparent);transform-origin:bottom}
.clx-bar.cour .clx-br i{background:var(--sky)}
.clx-br em{position:absolute;left:-6px;right:-6px;bottom:calc(var(--v,0) * 100% + 5px);text-align:center;font-style:normal;font-size:12px;font-weight:600;color:#f0f0f4;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:0;transition:opacity .15s;pointer-events:none}
.clx-bar.cour .clx-br em,.clx-bar.coupe .clx-br em,.clx-bar:hover .clx-br em{opacity:1}
.clx-bar:hover .clx-br i{background:color-mix(in oklab,var(--sky) 80%,transparent)}
.clx-bar.coupe .clx-br em{bottom:auto;top:-20px}
/* le pic coupé : deux traits obliques au tiers haut de la barre */
.clx-bar.coupe .clx-br i::after{content:"";position:absolute;left:-2px;right:-2px;top:22%;height:7px;background:repeating-linear-gradient(-18deg,transparent 0 2px,#0b0d11 2px 4px,transparent 4px 7px);transform:skewY(-12deg)}
.clx-bar small{text-align:center;font-size:12px;color:var(--mu);text-transform:capitalize}
.clx-bar.cour small{color:#f2f4f7;font-weight:700}
.clx-moy{position:absolute;left:0;right:0;bottom:calc(23px + (100% - 45px) * var(--moy,0));border-top:1.5px dashed rgba(255,255,255,.4);pointer-events:none}

/* ── segmentés ── */
.clx-seg{display:inline-flex;gap:2px;padding:4px;border-radius:22px;background:rgba(255,255,255,.05);border:1px solid var(--filet2);flex:none}
.clx-seg button{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;border-radius:16px;border:0;background:none;color:#b9bdc5;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.clx-seg button i{font-style:normal;font-size:12px;min-width:20px;height:18px;line-height:18px;border-radius:9px;padding:0 5px;background:rgba(255,255,255,.08);color:#c7cbd2}
.clx-seg button.on{background:rgba(255,255,255,.13);color:#fff}
.clx-seg.petit button{height:26px;padding:0 10px;font-size:12px}
.clx-barre{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 14px}
.clx-aide{font-size:12px;color:var(--mu)}

/* ── logos ── */
.clx-lg{flex:none;display:inline-grid;place-items:center;width:28px;height:28px}
.clx-lg .ecx-logo{width:28px!important;height:28px!important;border-radius:9px!important;font-size:12px}
.clx .clx-tu{color:rgba(12,13,18,.84);font-weight:700;letter-spacing:.02em}
.clx .clx-lg.grand .clx-tu{font-size:14px}
.clx-lg.grand,.clx-lg.grand .ecx-logo{width:40px!important;height:40px!important;border-radius:12px!important}
.clx-lg.vide{border-radius:9px;background:rgba(255,255,255,.112);color:var(--sky)}
.clx-lg.vide svg{width:15px;height:15px}

/* ── le classement, façon Leaderboard ── */
.clx-board{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.clx-board li+li{box-shadow:0 -1px 0 var(--filet2)}
.clx-board button{display:grid;grid-template-columns:22px 28px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:8px 6px;border:0;background:none;border-radius:12px;text-align:left;cursor:pointer}
.clx-board button:hover{background:rgba(255,255,255,.04)}
.clx-rg{font-size:12px;font-weight:700;color:var(--mu2);text-align:center;font-variant-numeric:tabular-nums}
.clx-rg.un{color:var(--sky)}
.clx-bn{display:flex;flex-direction:column;gap:4px;min-width:0}
.clx-bn b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clx-bn small{font-size:12px;color:var(--mu)}
.clx-bj{display:block;height:4px;border-radius:2px;background:rgba(255,255,255,.08);overflow:hidden}
.clx-bj i{display:block;height:100%;border-radius:2px;background:var(--sky);transform-origin:left;transform:scaleX(var(--v,0))}
.clx-bv{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}

/* ── les agents ── */
.clx-ags{display:flex;flex-direction:column;gap:2px}
.clx-ag{padding:8px 0}
.clx-ag+.clx-ag{box-shadow:0 -1px 0 var(--filet2)}
.clx-agh{display:flex;align-items:center;gap:10px}
.clx-av{position:relative;flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.128);color:var(--sky-i);font-size:12px;font-weight:700;letter-spacing:.02em}
.clx-pt{position:absolute;right:-3px;top:-3px;width:9px;height:9px;border-radius:50%;background:#5d636c;box-shadow:0 0 0 2px #0c0e12}
.clx-pt.off{background:#33373d}
.clx-pt.vit{background:var(--sky)}
.clx-pt.vit::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--sky);animation:clxPouls 1.8s cubic-bezier(.23,1,.32,1) infinite}
@keyframes clxPouls{0%{transform:scale(1);opacity:.75}100%{transform:scale(2.8);opacity:0}}
@media (prefers-reduced-motion:reduce){.clx-pt.vit::after{animation:none}.clx-charge i{animation:none}}
.clx-agn{display:flex;flex-direction:column;min-width:0;flex:1}
.clx-agn b{font-size:14px;font-weight:600;white-space:normal;line-height:1.3}
.clx-agn small{font-size:12px;color:var(--mu)}
.clx-agq{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;color:#c9cdd4;text-align:right;white-space:nowrap}
.clx-agq small{font-size:12px;color:var(--mu2)}
.clx-ag.vit .clx-agq{color:var(--sky-i)}
.clx-agw{flex:none;height:22px;padding:0 9px;border-radius:11px;display:inline-flex;align-items:center;background:rgba(255,255,255,.128);color:var(--sky-i);font-size:12px;font-weight:600;white-space:nowrap}
.clx-agl{margin:4px 0 0 40px}
.clx-af{display:flex;align-items:flex-start;gap:9px;width:100%;padding:6px 8px;margin:0 -8px;border:0;background:none;border-radius:12px;text-align:left;cursor:pointer}
.clx-af:hover{background:rgba(255,255,255,.04)}
.clx-af .clx-lg,.clx-af .clx-lg .ecx-logo{width:24px!important;height:24px!important;border-radius:7px!important;font-size:12px}
.clx-aft{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.clx-aft b{font-size:12px;font-weight:600;color:#e7e9ec;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clx-aft b em{font-style:normal;color:var(--sky-i)}
.clx-aft small{font-size:12px;color:var(--mu);line-height:1.4}
.clx-aft q{font-size:12px;color:#bcbcc6;font-style:italic;line-height:1.4;padding-left:8px;border-left:2px solid rgba(255,255,255,.32)}
.clx-aft q::before,.clx-aft q::after{content:none}
.clx-when{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;color:var(--mu2);white-space:nowrap;font-variant-numeric:tabular-nums}
.clx-when em{font-style:normal;color:var(--mu)}
.clx-src{margin:8px 0 0 40px;font-size:12px;color:var(--mu2)}

/* ce qui attend le geste de François */
.clx-ouis{display:flex;flex-direction:column;gap:8px}
.clx-oui{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:var(--puits);border:1px solid var(--filet2);transition:opacity .25s}
.clx-oui.fait{opacity:.45}.clx-oui.fait b{text-decoration:line-through}
.clx-oui-b{display:flex;gap:6px;flex:none}
.clx-oui .clx-aft b{white-space:normal;line-height:1.35}

/* la page Agents : une carte par agent */
.clx-agpage .clx-ags{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}
.clx-agpage .clx-ag{background:var(--verre);border:1px solid var(--filet);border-radius:var(--r);padding:16px 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.clx-agpage .clx-ag+.clx-ag{box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.clx-agpage .clx-ag.vit{border-color:rgba(255,255,255,.36)}
.clx-agpage .clx-agl{margin:10px 0 0}
.clx-agpage .clx-src{margin:10px 0 0}
.clx-ouic{margin:0 0 14px}

/* ── vus cette semaine ── */
.clx-vus{display:flex;flex-direction:column}
.clx-vu{display:flex;align-items:center;gap:10px;width:100%;padding:8px 6px;border:0;background:none;border-radius:12px;text-align:left;cursor:pointer}
.clx-vu+.clx-vu{box-shadow:0 -1px 0 var(--filet2)}
.clx-vu:hover{background:rgba(255,255,255,.04)}

/* ── les cartes sociétés (Sylva, onglet Companies) ── */
.clx-socs{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:14px}
.clx-une .clx-socs{grid-template-columns:repeat(3,minmax(0,1fr))}
.clx-soc{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--r);background:var(--verre);border:1px solid var(--filet);cursor:pointer;min-width:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 60px -36px rgba(0,0,0,.7);transition:border-color .2s,transform .2s cubic-bezier(.23,1,.32,1)}
.clx-une .clx-soc{background:rgba(255,255,255,.03)}
.clx-soc:hover{border-color:color-mix(in srgb,var(--neon,#c9a2ff) 50%,transparent);box-shadow:var(--neon-lueur,0 0 0 1px rgba(255,255,255,.3))}
.clx-soc:active{transform:scale(.99)}
.clx-soc header{display:flex;align-items:center;gap:11px;min-width:0}
.clx-sn{display:flex;flex-direction:column;min-width:0;flex:1}
.clx-sn b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clx-sn small{font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clx-plus{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;border:0;background:none;color:var(--mu);cursor:pointer}
.clx-plus:hover{background:rgba(255,255,255,.08);color:#fff}
.clx-plus svg{width:18px;height:18px;fill:currentColor}
.clx-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:10px 12px;border-radius:14px;background:var(--puits)}
.clx-trio div{min-width:0}
.clx-trio dt{font-size:12px;color:var(--mu)}
.clx-trio dd{margin:2px 0 0;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.clx-trio dd.alerte{color:var(--alerte)}
.clx-pj{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;color:#c9cdd4;min-height:18px;min-width:0}
.clx-pj span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clx-pj svg{width:14px;height:14px;color:var(--sky)}
.clx-soc footer{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--mu);font-variant-numeric:tabular-nums}
.clx-soc footer span{display:inline-flex;align-items:center;gap:5px}
.clx-soc footer svg{width:13px;height:13px;opacity:.8}
.clx-soc footer .clx-pil{margin-left:auto}
.clx-pil{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:11px;font-size:12px;font-weight:600;background:rgba(255,255,255,.08);color:#c3c7ce;white-space:nowrap}
.clx-pil.cli{background:rgba(255,255,255,.16);color:#ececf1}

/* ── la table triable ── */
.clx-tab{padding:6px 8px;overflow:hidden}
.clx-tab table{width:100%;border-collapse:collapse;table-layout:auto}
.clx-tab th{text-align:left;padding:0;font-weight:600}
.clx-tab th button{display:inline-flex;align-items:center;gap:4px;padding:11px 12px;border:0;background:none;font-size:12px;font-weight:600;color:var(--mu);cursor:pointer;white-space:nowrap}
.clx-tab th button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;opacity:0;transition:transform .2s,opacity .2s}
.clx-tab th button.on{color:#eef0f3}.clx-tab th button.on svg{opacity:1}.clx-tab th button svg.inv{transform:rotate(180deg)}
.clx-tab th.n,.clx-tab td.n{text-align:right}
.clx-tab th.n button{flex-direction:row-reverse}
.clx-tab td{padding:10px 12px;border-top:1px solid var(--filet2);font-size:12px;color:#d3d6db;font-variant-numeric:tabular-nums;white-space:nowrap}
.clx-tab td.n{font-weight:600;color:#eef0f3}
.clx-tab tbody tr{cursor:pointer;transition:background .15s}
.clx-tab tbody tr:hover{background:rgba(255,255,255,.035)}
.clx-tab td.g{width:40px;padding:4px 6px}
.clx-cell{display:flex;align-items:center;gap:10px;min-width:0;max-width:300px}

/* ── le menu des gestes ── */
.clx-menu{position:fixed;z-index:9000;width:240px;padding:6px;border-radius:16px;background:rgba(22,25,30,.96);border:1px solid var(--filet, rgba(255,255,255,.14));box-shadow:0 24px 60px -20px rgba(0,0,0,.8);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
.clx-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:none;color:#e6e8eb;font:500 13px/1.2 inherit;text-align:left;cursor:pointer}
.clx-menu button:hover:not(:disabled){background:rgba(255,255,255,.07)}
.clx-menu button svg{width:16px;height:16px;opacity:.75}
.clx-menu button.rouge{color:#ff8a8a}
.clx-menu button:disabled{color:#6b7078;cursor:default}

/* ── espaces : les tuiles existantes, en verre ── */
.clx-esps .stu-esp-t{border-radius:var(--r)}

/* ════ tablette : 1024 et moins ════ */
@media (max-width:1240px){
  .clx-pm{grid-column:span 5}.clx-sig{grid-column:span 7}.clx-agc,.clx-geste{grid-column:1/-1}.clx-cla{grid-column:span 6}.clx-vus-c{grid-column:span 6}
  .clx-bars{gap:6px}
  .clx-une .clx-socs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1100px){
  .clx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .clx-h{flex-wrap:wrap;align-items:center}.clx-ht{flex-basis:100%}
  .clx-q{flex:1;max-width:none;width:auto}
  .clx-tabs{display:flex;gap:6px;overflow-x:auto;margin:0 -20px 16px;padding:0 20px;scrollbar-width:none}.clx-tabs::-webkit-scrollbar{display:none}
  .clx-tabs button{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:17px;border:1px solid var(--filet2);background:rgba(255,255,255,.04);color:#b4b8c0;font-size:14px;font-weight:600;cursor:pointer}
  .clx-tabs button.on{background:#f4f5f7;color:#0a0b0d;border-color:#f4f5f7}
  .clx-tabs i{font-style:normal;font-size:12px;opacity:.7}.clx-tabs i:empty{display:none}
  .clx-cla,.clx-vus-c{grid-column:1/-1}
}
/* ════ téléphone : 390 ════ */
@media (max-width:760px){
  .clx{font-size:14px}
  .clx-h{margin-bottom:14px}
  .clx-b1 span{display:none}.clx-h .clx-b1{width:40px;padding:0}
  .clx-tabs{margin:0 -16px 14px;padding:0 16px}
  .clx-kpis,.clx-kpis.trois{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .clx-kpis.trois .clx-kpi:last-child{grid-column:1/-1}
  .clx-kpi{padding:13px 14px;gap:5px}.clx-kpi b{font-size:22px}
  .clx-grille{gap:10px}
  .clx-c{padding:15px 14px;border-radius:20px}
  .clx-ch{flex-wrap:wrap}
  .clx-bars{gap:4px;height:170px}.clx-br{border-radius:7px}.clx-br i{border-radius:7px}.clx-br em{display:none}.clx-bar small{font-size:12px}
  .clx-une .clx-socs,.clx-socs{grid-template-columns:1fr;gap:10px}
  .clx-agl{margin-left:0}.clx-src{margin-left:0}
  .clx-agq small{display:none}
  .clx-oui{flex-wrap:wrap}.clx-oui-b{margin-left:38px}
  .clx-agpage .clx-ags,.clx-agc .clx-ags{grid-template-columns:1fr}
  .clx-barre{gap:8px}.clx-seg{max-width:100%;overflow-x:auto}
  /* la table devient une pile de cartes, libellés en clair */
  .clx-tab{padding:0;background:none;border:0;box-shadow:none}
  .clx-tab thead{display:none}
  .clx-tab table,.clx-tab tbody{display:block}
  .clx-tab tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:14px;margin:0 0 10px;border-radius:20px;background:var(--verre);border:1px solid var(--filet)}
  .clx-tab td{display:flex;flex-direction:column;gap:2px;padding:0;border:0;white-space:normal;text-align:left!important}
  .clx-tab td::before{content:attr(data-l);font-size:12px;font-weight:500;color:var(--mu)}
  .clx-tab td:first-child{grid-column:1/-1}.clx-tab td:first-child::before{display:none}
  .clx-tab td.g{position:absolute;display:none}
}
/* la table tient dans la largeur : colonnes resserrées, nom tronqué, défilement interne en dernier recours */
.clx-tab{overflow-x:auto}
@media (min-width:761px){.clx-tab th button{padding:11px 9px}.clx-tab td{padding:10px 9px}}
@media (max-width:760px){.clx-tab td{border:0!important;align-items:flex-start}.clx-tab tr{position:relative}}
.clx-tab .clx-sn{max-width:210px}
/* la fiche d'une société : titre ramené à 24 px, filet bleu ciel sous le nom */
body.s3 #view .ecx-page.clx-fiche .stu-tete h1,.clx-fiche .stu-tete h1{font-size:22px;font-weight:600;letter-spacing:-.025em;line-height:1.15}
.clx-fiche .stu-kpis b{font-size:22px}
/* la carte « Agents » de la fiche d'une société (STU.client) */
.clx-fag .clx-av{position:relative;flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.128);color:#f3f3f6;font-size:12px;font-weight:700}
.clx-fag .stu-ligne small{white-space:normal}
.clx-mc{display:none}
@media (max-width:760px){.clx-ml{display:none}.clx-mc{display:inline}
  .clx-agc .clx-ag:nth-child(n+5){display:none}   /* sur téléphone, quatre tuiles ; « Tout le journal » ouvre le reste */
  .clx-sig .clx-bars{min-height:170px}}
/* la page Agents : les agents à gauche, ce qui attend François à droite */
.clx-agpage-g{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:14px;align-items:start}
.clx-agpage-g .clx-agpage .clx-ags{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.clx-agpage-g .clx-ouic{margin:0;position:sticky;top:16px}
.clx-ouic .clx-oui{flex-wrap:wrap}.clx-ouic .clx-oui-b{margin-left:38px}
.clx-agpage-g .clx-ouic .clx-oui .clx-aft{flex-basis:calc(100% - 40px)}
.clx-agpage .clx-agh{flex-wrap:wrap;row-gap:4px}
.clx-agpage .clx-agq{order:3;flex-basis:100%;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding-left:40px;text-align:left;white-space:normal;font-size:12px}
.clx-agpage .clx-agq small{display:inline}
.clx-agpage .clx-af small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:1240px){.clx-agpage-g{grid-template-columns:1fr}.clx-agpage-g .clx-ouic{position:static;order:-1}}
/* tuile d'agent : le nom entier sur sa ligne, le moment et le rythme en dessous */
.clx-agc .clx-agh{flex-wrap:wrap;row-gap:4px}
.clx-agc .clx-agq{order:3;flex-basis:100%;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding-left:40px;text-align:left;white-space:normal;font-size:12px}
.clx-agc .clx-agq small{max-width:none;display:inline}

/* ════ CORRECTIONS DU JUGE (29/11/2026) ════ */
/* le prochain geste, façon « Next best move » : le seul chiffre héros de l'appli, un bouton blanc */
.clx-pm{display:flex;flex-direction:column;border-color:rgba(255,255,255,.288);background:linear-gradient(165deg,rgba(255,255,255,.088),rgba(255,255,255,.035) 62%)}
.clx-pm-n{display:flex;align-items:flex-end;gap:12px;margin:2px 0 16px}
.clx-pm-n b{font-size:32px;font-weight:600;letter-spacing:-.035em;line-height:.95;color:#f6f8fb;font-variant-numeric:tabular-nums}
.clx-pm-n span{display:flex;flex-direction:column;gap:2px;font-size:14px;font-weight:600;color:var(--sky-i);padding-bottom:2px}
.clx-pm-n small{font-size:12px;font-weight:500;color:var(--mu)}
.clx .clx-pm .clx-pm-o{margin-top:auto;flex-wrap:wrap;align-items:flex-start;gap:12px;padding:14px;border-radius:16px;background:rgba(8,10,13,.5);border-color:rgba(255,255,255,.1)}
.clx-pm-o .clx-aft{flex:1 1 calc(100% - 56px)}
.clx-pm-o .clx-aft b{white-space:normal;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clx-pm-c{font-style:normal;font-size:12px;font-weight:600;color:var(--sky-i)}
.clx .clx-pm .clx-oui-b{flex-basis:100%;justify-content:flex-end;margin-left:0}
.clx-pm.vide .clx-calme{margin-top:auto}
/* la table : la dernière trace, son genre en petit */
.clx-tab td.clx-sg small{margin-left:6px;font-size:12px;color:var(--mu2)}
@media (max-width:760px){.clx-tab td.clx-sg small{margin-left:0}}
/* téléphone et tablette étroite : ce qui attend un Oui juste après les chiffres, puis les agents */
@media (max-width:900px){
  .clx-pm,.clx-sig,.clx-agc,.clx-geste,.clx-cla,.clx-vus-c{grid-column:1/-1}
  .clx-pm{order:0}.clx-geste{order:1}.clx-agc{order:2}.clx-sig{order:3}.clx-cla{order:4}.clx-vus-c{order:5}.clx-une{order:6}
  .clx-cla .clx-board{justify-content:flex-start}
}
@media (max-width:760px){
  .clx-pm-n b{font-size:32px}
  .clx-bars{height:160px;padding-top:20px}.clx-sig .clx-bars{min-height:160px}
  .clx-br em{font-size:12px}.clx-bar:not(.cour):not(.coupe) .clx-br em{display:none}.clx-bar.cour .clx-br em,.clx-bar.coupe .clx-br em{display:block}
}
/* iPad, rail de l'appli (861 à 1180 px) : le libellé sur deux lignes à 11 px, jamais coupé ; le compte en pastille sur l'icône */
@media (min-width:861px) and (max-width:1180px){
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"]{padding-left:4px;padding-right:4px}
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav{overflow:visible}
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav>button{position:relative;width:100%;min-height:60px;padding:6px 1px}
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav>button>span:not(.ecx-nb){max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.15;overflow-wrap:normal;word-break:normal;hyphens:none}
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav>button>.ecx-nb{position:absolute;top:3px;left:calc(50% + 6px);right:auto;margin:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;display:grid;place-items:center;background:var(--sky,#e6e6ee);color:#0a0b0d;font-size:12px;font-weight:700;line-height:1}
}
@media (max-width:760px){
  .clx-oui .clx-aft{flex:1 1 calc(100% - 40px)}
  .clx-oui .clx-aft b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .clx-oui-b{flex-basis:100%;justify-content:flex-end;margin-left:0}
}
.clx .clx-pm .clx-pm-o .clx-aft{flex:1 1 0;min-width:0}
/* un seul geste en attente : le prochain geste le porte, les agents prennent toute la largeur */
.clx-grille.seul .clx-geste{display:none}.clx-grille.seul .clx-agc{grid-column:1/-1}
.clx-grille.seul .clx-agc .clx-ags{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1240px){.clx-grille.seul .clx-agc .clx-ags{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.clx-grille.seul .clx-agc .clx-ags{grid-template-columns:1fr}}

/* ════════════════════════════════════════════════════════════════════════════
   CHARTE D'ERGONOMIE (29/11/2026, nuit) · H1 « Clients », une seule surface vedette (À valider), quatre chiffres neutres sur une rangée,
   « Fait pour toi » replié en bas, états vides positifs, cinq tailles (12, 14, 16, 22, 32), cibles tactiles de 44 px.
   ════════════════════════════════════════════════════════════════════════════ */
.clx{--app-accent:var(--sky);font-size:14px}
.clx-ret{display:none}
.clx-ht p{font-size:12px}
.clx-q input{font-size:14px}
.clx-ch h2{font-size:16px;display:flex;align-items:center;gap:8px}
.clx-nbg{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;font-style:normal;font-size:12px;font-weight:650;background:color-mix(in oklab,var(--app-accent) 24%,transparent);color:var(--sky-i)}

/* À valider : la seule surface vedette, noir teinté à 8 % de l'accent, filet d'un pixel */
.clx-aval{background:color-mix(in oklab,var(--app-accent) 8%,#090a0c);border:1px solid color-mix(in oklab,var(--app-accent) 34%,transparent);box-shadow:none;margin:0 0 14px;padding:18px 20px 14px}
.clx-aval .clx-ouis{display:flex;flex-direction:column;gap:8px}
.clx .clx-aval .clx-oui{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.clx-aval .clx-oui .clx-aft{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.clx-aval .clx-oui .clx-aft b{font-size:14px;font-weight:600;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#f1f3f6}
.clx-aval .clx-oui small{font-size:12px;color:var(--mu);line-height:1.35}
.clx-aval .clx-oui small em{font-style:normal;color:var(--sky-i);font-weight:600}
.clx .clx-aval .clx-oui-b{display:flex;gap:8px;flex:none;margin:0}
.clx-aval .clx-oui-b .clx-b1,.clx-aval .clx-oui-b .clx-b2{min-width:72px}

/* les quatre chiffres : neutres, aucun en vedette ; un zéro devient une coche et une phrase */
.clx-kpis{margin:0 0 14px}
.clx .clx-kpi,.clx .clx-kpi.t1{background:var(--verre);border:1px solid var(--filet)}
.clx-kpi .clx-kl{font-size:12px}
.clx-kpi b{font-size:22px}
.clx-kpi small{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clx-okc{display:grid;place-items:center;width:28px;height:28px;border-radius:14px;background:color-mix(in oklab,var(--app-accent) 18%,transparent);color:var(--sky-i)}
.clx-okc svg,.clx-ok svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.clx-ok{display:flex;align-items:center;gap:10px;margin:6px 0;color:#c9ccd2;font-size:14px}
.clx-ok svg{flex:none;width:22px;height:22px;padding:4px;border-radius:11px;background:color-mix(in oklab,var(--app-accent) 18%,transparent);color:var(--sky-i)}

/* sous la ligne de flottaison : les sociétés, qui rapporte le plus, ce que les clients ont ouvert */
.clx-grille{margin-bottom:14px}
.clx .clx-grille .clx-une{grid-column:1/-1}
.clx .clx-grille .clx-cla,.clx .clx-grille .clx-vus-c{grid-column:span 6}
.clx-cla .clx-plusn{margin-top:8px}
.clx-vct{display:block;margin:12px 0 0;color:var(--sky-i)}

/* Fait pour toi : une ligne repliée, un agent par ligne derrière le clic */
.clx-fpt{padding:0;overflow:hidden}
.clx-fpt summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:52px;padding:0 18px;cursor:pointer}
.clx-fpt summary::-webkit-details-marker{display:none}
.clx-fpi{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.06);color:#cfd3d9}
.clx-fpi svg{width:15px;height:15px}
.clx-fpt summary b{font-size:14px;font-weight:600}
.clx-fps{flex:1;font-size:12px;color:var(--mu)}
.clx-fch{width:16px;height:16px;fill:none;stroke:#9aa0a8;stroke-width:2;transition:transform .2s}
.clx-fpt[open] .clx-fch{transform:rotate(90deg)}
.clx-agrs{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px;padding:0 18px 6px}
.clx-agr{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 10px;border-radius:12px;border:1px solid var(--filet2);background:rgba(255,255,255,.03);text-align:left;cursor:pointer}
.clx-agr:hover{background:rgba(255,255,255,.06)}
.clx-agr .clx-agn{flex:1;min-width:0;display:flex;flex-direction:column}
.clx-agr .clx-agn b{font-size:14px;font-weight:600}
.clx-agr .clx-agn small{font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clx-agr .clx-when{font-size:12px;color:var(--mu2);flex:none}
.clx-fpj{display:block;margin:4px 18px 14px}

/* le bandeau de panne : une ligne, « Relancer » */
.clx-panne{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:8px 8px 8px 14px;border-radius:14px;border:1px solid rgba(255,93,93,.35);background:rgba(255,93,93,.08);font-size:12px;color:#f3c7c7}
.clx-panne span{flex:1}

/* le graphique écrête en silence : plus de hachures, la valeur reste écrite au-dessus */
.clx .clx-bar.coupe .clx-br i::after{display:none}

/* la page Fait pour toi : la colonne À valider, les propositions anciennes repliées */
.clx-agcol{display:flex;flex-direction:column;gap:14px;min-width:0}
.clx-agcol .clx-aval{margin:0}
.clx-anc summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}
.clx-anc summary::-webkit-details-marker{display:none}
.clx-anc summary i{font-style:normal;font-size:12px;color:var(--mu)}
.clx-anc summary small{margin-left:auto;font-size:12px;color:var(--mu);font-weight:500}
.clx-anc .clx-ouis{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.clx-anc .clx-oui{display:flex;align-items:center;gap:10px}
.clx-anc .clx-oui .clx-aft{flex:1;min-width:0}

@media (max-width:1240px){.clx .clx-grille .clx-cla,.clx .clx-grille .clx-vus-c{grid-column:span 6}}
/* tablette et téléphone : cibles de 44 px, 8 px entre deux boutons */
@media (max-width:1100px){
  .clx-b1,.clx-b2,.clx-b1.petit{height:44px;padding:0 16px;font-size:14px;border-radius:22px}
  .clx-q{height:44px;border-radius:22px}
  .clx-tabs button{height:44px;border-radius:22px}
}
@media (max-width:900px){.clx .clx-grille .clx-cla,.clx .clx-grille .clx-vus-c{grid-column:1/-1}}
@media (max-width:760px){
  .clx{font-size:14px}
  .clx small,.clx .clx-kl,.clx-ht p,.clx-fps,.clx-when,.clx-aval .clx-oui small,.clx-kpi small{font-size:13px}
  .clx-q input{font-size:16px}
  /* l'en-tête du téléphone : « ‹ Accueil » puis Clients, le bouton garde son texte */
  .clx-ret{display:inline-flex;align-items:center;gap:2px;height:32px;margin:0 0 4px -6px;padding:0 8px 0 2px;border:0;background:none;color:var(--sky-i);font-size:14px;font-weight:500;cursor:pointer}
  .clx-ret svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
  .clx-h{display:grid;grid-template-columns:1fr auto;gap:10px 8px}
  .clx-ht{grid-column:1/-1}
  .clx-q{width:auto;max-width:none}
  .clx .clx-h .clx-b1{width:auto;padding:0 16px}
  .clx .clx-h .clx-b1 span{display:inline}
  /* les sous-pages en puces défilantes, collées sous l'en-tête, fondu à droite */
  .clx-tabs{position:sticky;top:calc(56px + env(safe-area-inset-top));z-index:20;padding-top:8px;padding-bottom:8px;margin-top:-8px;background:linear-gradient(#0a0b0e 80%,rgba(10,11,14,0));
    -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .clx-tabs button{height:40px}
  /* une ligne À valider : texte au-dessus, Ouvrir à gauche et Oui à droite dessous */
  .clx .clx-aval .clx-oui{flex-wrap:wrap;align-items:flex-start}
  .clx-aval .clx-oui .clx-aft{flex-basis:calc(100% - 52px)}
  .clx .clx-aval .clx-oui-b{flex-basis:100%;justify-content:space-between;padding-left:42px}
  .clx .clx-aval .clx-oui-b button{flex:1}
  .clx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .clx-agrs{grid-template-columns:1fr;padding:0 12px 6px}
  .clx-fpt summary{padding:0 14px}
  .clx{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}
/* un seul menu sur téléphone : l'onglet « Menu » en bas, pas de bouton à trois traits en haut quand Clients est ouvert */
@media (max-width:760px){body:has(.clx) #stuMenuBtn{visibility:hidden;pointer-events:none}}
.clx-b1 svg.clx-plus-i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
/* iPad : le rail de l'appli garde ses libellés courts lisibles, la pastille à côté de l'icône, jamais dessus */
@media (min-width:861px) and (max-width:1180px){
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav>button{position:relative;width:68px;padding:6px 0;margin-left:-7px}
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav>button>span:not(.ecx-nb){max-width:68px;white-space:normal;overflow:visible;font-size:12px;line-height:1.15}
  body.stu-on.lin.rail-on:has(.clx) .stu-side[data-mode="projet"] .ecx-nav>button>.ecx-nb{position:absolute!important;top:4px!important;left:calc(50% + 11px)!important;right:auto!important;min-width:18px;height:18px;padding:0 4px;font-size:12px;line-height:18px}
}
/* téléphone : « ‹ Accueil » et Clients à gauche, le bouton à droite, la recherche sur toute la largeur */
@media (max-width:760px){
  .clx-h{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t b" "q q";align-items:start}
  .clx-ht{grid-area:t;grid-column:auto}
  .clx .clx-h .clx-b1{grid-area:b;margin-top:2px}
  .clx-q{grid-area:q}
  .clx-aval .clx-ch{flex-wrap:nowrap}
}
@media (max-width:760px){
  .clx-h{grid-template-areas:none;grid-template-columns:minmax(0,1fr) auto;gap:0 8px}
  .clx-ht{display:contents}
  .clx-ret{grid-column:1;grid-row:1;justify-self:start}
  .clx-h h1{grid-column:1;grid-row:2;justify-self:start}
  .clx .clx-h .clx-b1{grid-column:2;grid-row:1/span 2;align-self:center;margin:0}
  .clx-ht p{grid-column:1/-1;grid-row:3;margin:6px 0 12px}
  .clx-q{grid-column:1/-1;grid-row:4}
}
.clx .clx-soc{align-items:stretch}
@media (max-width:760px){
  .clx-une .clx-soc:nth-child(n+4){display:none}
  .clx-fpi{display:none}
  .clx-fpt summary{gap:8px}
  .clx .clx-grille .clx-une{order:0}.clx .clx-grille .clx-cla{order:1}.clx .clx-grille .clx-vus-c{order:2}
}
/* la colonne À valider de « Fait pour toi » : le texte sur toute la largeur, Ouvrir et Oui dessous */
.clx .clx-agcol .clx-aval .clx-oui,.clx .clx-anc .clx-oui{flex-wrap:wrap;align-items:flex-start}
.clx-agcol .clx-aval .clx-oui .clx-aft,.clx-anc .clx-oui .clx-aft{flex-basis:calc(100% - 52px)}
.clx .clx-agcol .clx-aval .clx-oui-b,.clx .clx-anc .clx-oui-b{flex-basis:100%;justify-content:space-between;padding-left:42px;margin:0}
.clx .clx-agcol .clx-oui-b button,.clx .clx-anc .clx-oui-b button{flex:1}
@media (max-width:1240px){.clx-agpage-g .clx-agcol{order:-1}}
@media (min-width:761px) and (max-width:1100px){.clx .clx-kpis:not(.trois){grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.clx .clx-kpis:not(.trois) .clx-kpi{padding:14px}}

/* ════════════════════════════════════════════════════════════════════════════
   CLIENTS · LE PLUS (par-crm, 29/11/2026) · la Liste en tableur avec ses vues et listes, la Relation en colonnes, les Listes,
   les Doublons, la Corbeille et la fiche société augmentée (studio-crm-plus.js). Bleu ciel en teinte seulement.
   ════════════════════════════════════════════════════════════════════════════ */
.clx .crp-lv{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start}
.clx .crp-rail{display:flex;flex-direction:column;gap:2px;position:sticky;top:12px}
.clx .crp-rail h5{margin:10px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu2)}
.clx .crp-rail button{display:flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--mu);font:inherit;font-size:12.5px;text-align:left;cursor:pointer}
.clx .crp-rail button em{margin-left:auto;font-style:normal;font-size:11px;color:var(--mu2)}
.clx .crp-rail button:hover{background:rgba(255,255,255,.05);color:var(--tx)}
.clx .crp-rail button.on{background:rgba(255,255,255,.096);color:var(--tx)}
.clx .crp-rail small{padding:0 10px}
.clx .crp-grh{min-width:0}
.clx .crp-kbc{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;align-items:flex-start}
.clx .crp-kbc .afx-col{flex:0 0 260px;min-width:260px;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:20px;background:var(--verre);border:1px solid var(--filet2)}
.clx .crp-kbc .afx-col h4{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:12.5px;font-weight:600}
.clx .crp-kbc .afx-col h4 em{font-style:normal;color:var(--mu);font-weight:500}
.clx .crp-kbc .afx-pt{width:7px;height:7px;border-radius:4px;background:var(--sky);flex:none}
.clx .crp-kbc .afx-col.survol{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.048)}
.clx .crp-kbc .afx-cl{display:flex;flex-direction:column;gap:8px}
.clx .crp-cc{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}
.clx .crp-cc:hover{background:rgba(255,255,255,.09);transform:translateY(-1px)}
.clx .crp-cc header{display:flex;align-items:center;justify-content:space-between;gap:8px}.clx .crp-cc header b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clx .crp-cc .afx-dso{color:var(--mu);font-size:12px}
.clx .crp-cc.glisse{opacity:.4}.clx .crp-cc.crp-sel{border-color:var(--sky);background:rgba(255,255,255,.08)}
.clx .crp-lh{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.clx .crp-lh h3{margin:0;font-size:18px;font-weight:600}.clx .crp-lh small{color:var(--mu);font-size:12px}
.clx .crp-lidx,.clx .crp-dbl,.clx .crp-corb{border-radius:22px}
.clx .crp-t3{width:100%;border-collapse:collapse;font-size:13px}
.clx .crp-t3 th{text-align:left;font-size:11.5px;font-weight:600;color:var(--mu);padding:8px 10px;border-bottom:1px solid var(--filet2)}
.clx .crp-t3 td{padding:10px;border-bottom:1px solid rgba(255,255,255,.05)}
.clx .crp-t3 tbody tr{cursor:pointer}.clx .crp-t3 tbody tr:hover td{background:rgba(255,255,255,.04)}
.clx .crp-dg{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);margin-bottom:10px}
.clx .crp-dg>small{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--mu2)}
.clx .crp-dr{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:10px;cursor:pointer}
.clx .crp-dr:hover{background:rgba(255,255,255,.04)}
.clx .crp-dr input{position:absolute;opacity:0;pointer-events:none}
.clx .crp-dr svg{width:17px;height:17px;fill:none;stroke:var(--mu2);stroke-width:1.6}
.clx .crp-dr input:checked+svg{fill:var(--sky);stroke:var(--sky)}
.clx .crp-dr input:focus-visible+svg{outline:2px solid var(--sky);outline-offset:2px;border-radius:4px}
.clx .crp-dr>span{display:flex;flex-direction:column;min-width:0}.clx .crp-dr small{color:var(--mu);font-size:11.5px}
.crp-tx{pointer-events:none}

/* ── la fiche société ── */
.clx-fiche .crp-fbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.clx-fiche .crp-rel{display:inline-flex;align-items:center;gap:8px;font-size:12px}
.clx-fiche .crp-rel>span:not(.crp-force){display:flex;flex-direction:column;line-height:1.25}.clx-fiche .crp-rel small{color:var(--mu);font-size:11px}
.clx-fiche .crp-cad{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--mu)}
.clx-fiche .crp-cad select{height:30px;border-radius:15px;border:1px solid var(--filet2);background:rgba(255,255,255,.04);color:var(--tx);font:inherit;font-size:12px;padding:0 10px}
.clx-fiche .crp-cad.rouge span{color:var(--alerte)}.clx-fiche .crp-cad.rouge select{border-color:rgba(255,93,93,.45)}
.clx-fiche .crp-frl{width:100%;margin:0 0 14px}
.clx-fiche .crp-ong{margin:0 0 16px}
.clx-fiche #crpFo{display:flex;flex-direction:column;gap:14px;max-width:860px}
.clx-fiche #crpFo[hidden]{display:none}
.clx-fiche .stu-grille.crp-seul{grid-template-columns:minmax(0,1fr)!important}.clx-fiche .stu-grille.crp-seul>div:last-child{display:none}
.clx-fiche .stu-grille[hidden],.clx-fiche .stu-kpis[hidden]{display:none!important}
.clx-fiche .crp-res .stu-sec-h h2{display:flex;align-items:center;gap:6px}
.clx-fiche .crp-res h2 svg{width:15px;height:15px;fill:none;stroke:var(--sky);stroke-width:1.8}
.clx-fiche .stu-boite.pad{padding:12px 14px}
.clx-fiche .crp-finf .stu-infos{resize:vertical;overflow:auto;max-height:70vh;min-height:120px}
.clx-fiche .crp-fch{width:100%;box-sizing:border-box;height:34px;margin:0 0 8px;padding:0 14px;border-radius:17px;border:1px solid var(--filet2);background:rgba(255,255,255,.04);color:var(--tx);font:inherit;font-size:12.5px}
.clx-fiche .stu-inf[hidden]{display:none}
.clx-fiche .crp-dic{margin-top:6px}
.clx-fiche .crp-mord{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.clx-fiche .crp-mord li{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.04);cursor:grab;font-size:13px}
.clx-fiche .crp-mord li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.clx-fiche .crp-mord li em{font-style:normal;font-size:11px;color:var(--sky)}
.clx-fiche .crp-mord .ecx-i{width:15px;height:15px}
.crp-coms{display:flex;flex-direction:column;gap:12px}
.crp-com{display:flex;gap:10px;font-size:13px}.crp-com>div{flex:1;min-width:0}.crp-com small{margin-left:6px;color:#9aa09d;font-size:11px}.crp-com p{margin:3px 0 0}
.crp-comz{display:flex;flex-direction:column;gap:8px;margin-top:auto;position:sticky;bottom:0;padding-top:8px;background:rgba(16,18,21,.94)}
.crp-comz .btn{align-self:flex-end}
.stu-tl .crp-men{color:#e6e6ee}
@media (max-width:900px){.clx .crp-lv{grid-template-columns:1fr}.clx .crp-rail{position:static;flex-direction:row;flex-wrap:wrap;gap:4px}.clx .crp-rail h5{width:100%;margin:4px 6px 0}}
@media (max-width:640px){.clx-fiche .crp-fbar .crp-act span{display:none}.clx-fiche .crp-fbar .crp-act{padding:0 10px}.clx-fiche .crp-rel{order:5}.clx .crp-kbc .afx-col{flex-basis:240px;min-width:240px}}

/* ══ JUGE 7.3 (29/11) · corrections de Clients ══ */
/* 11 · téléphone : les puces des pages collées sous l'en-tête, « À valider » dessous */
@media (max-width:760px){
  .clx>.clx-tabs{order:-2}
  .clx>.s3-ov,.clx>.s3-ov-haut{order:-1}
}
/* 12 · la fiche : les initiales si le logo ne vient pas ; un seul « Contacter » sur téléphone */
.stu-tete .crp-lgf{display:grid;place-items:center;flex:none;font-weight:700;letter-spacing:.02em;color:#0b0c0e;background:var(--tu,#cfd3d1)}
.stu-tete .crp-lgf.logofit,.stu-tete .crp-lgf.s3-ok{background:#fff}
.clx-fiche .crp-contacter,.clx-fiche .crp-fplus{display:none}
@media (max-width:640px){
  .clx-fiche .crp-fbar{flex-wrap:wrap;row-gap:10px}
  .clx-fiche .crp-fbar .crp-acts,.clx-fiche .crp-fbar>[data-copl],.clx-fiche .crp-fbar>[data-fav],.clx-fiche .crp-fbar>[data-coms],.clx-fiche .crp-fbar>[data-expl]{display:none!important}
  .clx-fiche .crp-contacter{display:inline-flex!important;align-items:center;gap:6px;height:44px;padding:0 16px}
  .clx-fiche .crp-contacter svg:last-child{width:14px;height:14px;opacity:.7}
  .clx-fiche .crp-fplus{display:inline-grid!important;width:44px;height:44px}
  .clx-fiche .stu-acts #soAff,.clx-fiche .stu-acts #soDevis,.clx-fiche .stu-acts #soInv{display:none!important}
  .clx-fiche .crp-fbar .crp-cad{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
}
/* 3 · l'onglet Mails : « Écrire » et la note sur une rangée propre */
.crp-mlb{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}
.crp-mlb .crp-lien{display:inline-flex;align-items:center;gap:6px;height:36px}
.crp-mlb span{flex:1;min-width:180px}
@media (max-width:760px){
  html body .clx>.clx-tabs{order:-2!important}
  html body .clx>.s3-ov-haut{order:-1!important}
  .clx-fiche .stu-tete{flex-wrap:wrap!important}
  .clx-fiche .stu-tete>.stu-acts,.clx-fiche .stu-tete .stu-acts{flex-basis:100%;width:100%;order:3;margin-top:10px}
}
@media (max-width:760px){html body .ecx-page.clx:not(.clx-fiche){display:flex!important;flex-direction:column}html body .ecx-page.clx>*{min-width:0}}

/* ══ r3 · second juge ══ */
/* 4 · trois gestes visibles en tête de fiche : Ouvrir son espace, Contacter, « … » */
.clx-fiche.crp-f3 .stu-acts #soEcrire,.clx-fiche.crp-f3 .stu-acts #soAff,.clx-fiche.crp-f3 .stu-acts #soDevis,.clx-fiche.crp-f3 .stu-acts #soInv,.clx-fiche.crp-f3 .stu-acts [id^=soInv]{display:none!important}
.clx-fiche.crp-f3 .crp-fbar .crp-acts,.clx-fiche.crp-f3 .crp-fbar>[data-copl],.clx-fiche.crp-f3 .crp-fbar>[data-fav],.clx-fiche.crp-f3 .crp-fbar>[data-coms],.clx-fiche.crp-f3 .crp-fbar>[data-expl]{display:none!important}
.clx-fiche.crp-f3 .stu-acts .crp-contacter{display:inline-flex!important;align-items:center;gap:6px}
.clx-fiche.crp-f3 .stu-acts .crp-contacter svg:last-child{width:14px;height:14px;opacity:.7}
.clx-fiche.crp-f3 .stu-acts .crp-fplus{display:inline-grid!important;place-items:center;width:44px;height:44px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--tx,#eef0ef)}
.clx-fiche.crp-f3 .crp-fbar{justify-content:space-between}
.clx-fiche.crp-f3 .crp-fbar .ecx-sp{display:none}
@media (max-width:760px){.clx-fiche.crp-f3 .stu-acts{display:flex!important;flex-wrap:nowrap!important;gap:8px}.clx-fiche.crp-f3 .stu-acts #soVoir{flex:1 1 auto;min-width:0}.clx-fiche.crp-f3 .stu-acts .crp-contacter,.clx-fiche.crp-f3 .stu-acts .crp-fplus{flex:none}}
/* 5 · rail iPad : même largeur et mêmes pastilles qu'Affaires (blanches, détachées de l'icône) */
@media (min-width:861px) and (max-width:1180px){
  html body.stu-on.lin.verre.stu2.s3[data-page="clients"] #stuSide.stu-side{width:88px!important;padding:14px 8px 10px!important}
  html body.stu-on[data-page="clients"] #stuSide .ecx-nav>button[data-mo]{width:72px!important;overflow:visible;position:relative}
  html body[data-page="clients"] #stuSide .ecx-nav>button[data-mo] .ecx-nb{position:absolute!important;top:0!important;right:-7px!important;left:auto!important;margin:0!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border-radius:9px!important;display:grid!important;place-items:center;font:700 12px/1 -apple-system,system-ui,sans-serif!important;background:#f4f5f4!important;color:#08090a!important;box-shadow:0 0 0 2px #0d0f12!important}
}

/* ── r4 (29/11) · troisième juge : sur téléphone, le fil de la fiche tient dans l'écran ── */
@media (max-width:760px){
  .clx-fiche .stu-grille{grid-template-columns:minmax(0,1fr)!important}
  .clx-fiche .stu-grille>*{min-width:0;max-width:100%}
  .clx-fiche #soFil .stu-sec-h{flex-wrap:wrap;gap:10px;min-width:0}
  .clx-fiche #soFil .ecx-filtres{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .clx-fiche #soFil .ecx-filtres::-webkit-scrollbar{display:none}
  .clx-fiche #soFil .ecx-filtres>button{flex:none}
  .clx-fiche .stu-compo,.clx-fiche .stu-compo-b{min-width:0;max-width:100%}
  .clx-fiche .stu-compo-b{flex-wrap:wrap}
  .clx-fiche .stu-compo>div:first-child{overflow-x:auto;scrollbar-width:none}
}
