/* Écrans produit redessinés en HTML (nets à toute taille), d'après les captures réelles de assets/gestion/.
   Tout est en em : la taille de l'écran suit la largeur de son cadre (.u-fit / .u-ph, unités cqw). */
.u-fit,.u-ph{container-type:inline-size}
.u-fit>*{font-size:1.6cqw}
.u-ph>*{font-size:4.1cqw}
.u,.u *{box-sizing:border-box}
.u{font-family:'DM Sans',system-ui,sans-serif;color:#10254B;line-height:1.3;text-align:left}
.u p,.u ul,.u h4{margin:0;padding:0;list-style:none}
.u h4,.u .u-h{font-family:'Bricolage Grotesque','DM Sans',sans-serif;font-weight:700;letter-spacing:-.02em}
.u svg{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.u-mut{color:#5b6b85}

/* Avatars : vraies photos (banque d'images, usage commercial autorisé) ou initiale */
.u-av{display:grid;place-items:center;width:2.5em;height:2.5em;flex:none;border-radius:50%;overflow:hidden;background:#e7edf8;font-weight:700;font-size:.9em;color:#10254B}
.u-av img{width:100%;height:100%;object-fit:cover;display:block}
.u-av.jean img{object-position:50% 22%}.u-av.marie img{object-position:50% 38%}.u-av.petit img{object-position:50% 30%}.u-av.durand img{object-position:58% 32%}

/* Fenêtre Bureau */
.u-win{display:grid;grid-template-columns:15.5em 1fr;background:#f4f7fd;border-radius:1.2em;overflow:hidden}
.u-win.nos{grid-template-columns:1fr}
.u-side{background:#10254B;color:#fff;padding:1.3em 1em;display:flex;flex-direction:column;gap:.35em}
.u-logo{width:8.2em;padding:.5em .7em;background:#fff;border-radius:.7em;margin-bottom:.9em}
.u-logo img{width:100%;height:auto;display:block}
.u-ws{display:flex;align-items:center;gap:.6em;margin-bottom:.9em;font-weight:700;font-size:.95em}
.u-ws small{display:block;font-weight:400;font-size:.78em;color:#b8c6e2}
.u-ws i{display:grid;place-items:center;width:2.2em;height:2.2em;border-radius:.6em;background:#fff;color:#FF792E;font-style:normal}
.u-seg{display:grid;grid-template-columns:1fr 1fr;padding:.25em;border-radius:.8em;background:#0a1a38;font-size:.85em;font-weight:700;text-align:center;margin-bottom:1em}
.u-seg span{padding:.55em 0;border-radius:.6em;color:#b8c6e2}
.u-seg .on{background:#fff;color:#10254B}
.u-nav{display:flex;align-items:center;gap:.7em;padding:.7em .8em;border-radius:.8em;font-weight:600;font-size:.95em;color:#dbe4f5}
.u-nav.on{background:#fff;color:#10254B}
.u-nav b{margin-left:auto;display:grid;place-items:center;min-width:1.7em;height:1.7em;border-radius:50%;background:#33487a;color:#fff;font-size:.8em}
.u-nav.on b{background:#e7edf8;color:#10254B}
.u-main{padding:1.5em 1.7em 1.7em;min-width:0}
.u-top{display:flex;align-items:center;justify-content:space-between;gap:1em;margin-bottom:1.1em}
.u-date{font-size:.9em;color:#5b6b85}
.u-title{font-size:2em;line-height:1.1}
.u-add{display:inline-flex;align-items:center;gap:.4em;padding:.7em 1em;border-radius:.8em;background:#10254B;color:#fff;font-weight:700;font-size:.85em;white-space:nowrap}
.u-sum{margin:.6em 0 1.1em!important;font-size:.92em;color:#5b6b85}
.u-sum b{color:#10254B}.u-sum .late{color:#b3351c}
.u-cols{display:grid;grid-template-columns:1.75fr 1fr;gap:1.2em;align-items:start}
.u-card{background:#fff;border:1px solid #e1e8f4;border-radius:1.1em;box-shadow:0 .5em 1.4em -1em #10254b40}
.u-sec{display:flex;justify-content:space-between;align-items:baseline;margin:1.2em 0 .6em;font-weight:700}
.u-sec small{font-weight:600;color:#194BEA;font-size:.85em}

/* Prochaine action */
.u-next{padding:1.2em 1.3em}
.u-next small{font-size:.82em;color:#5b6b85}
.u-next .u-h{font-size:1.6em;margin:.25em 0 .55em;display:block}
.u-who{display:flex;align-items:center;gap:.6em;font-size:.95em;color:#3d4f6b}
.u-who .u-av{width:2.1em;height:2.1em}
.u-foot{display:flex;align-items:center;justify-content:space-between;gap:.8em;margin-top:.9em;font-size:.85em;color:#5b6b85}
.u-late{display:inline-block;padding:.25em .6em;border-radius:.5em;background:#fde3dd;color:#a22b18;font-weight:700;font-size:.92em;white-space:nowrap}
.u-open{display:inline-flex;align-items:center;gap:.4em;padding:.65em 1.1em;border-radius:.8em;background:#C9482B;color:#fff;font-weight:700;font-size:1.05em;box-shadow:0 .25em 0 #9c3520}

/* Lignes de dossier */
.u-row{display:flex;align-items:center;gap:.8em;padding:.8em 1em}
.u-row+.u-row{border-top:1px solid #edf1f8}
.u-row .n{min-width:0;flex:1.3}
.u-row .n b{display:block;font-size:1em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u-row .n small,.u-row .s small{display:block;font-size:.82em;color:#5b6b85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u-row .s{flex:1;min-width:0}
.u-row .s small{color:#10254B;font-weight:600;margin-top:.3em}
.u-dots{display:flex;gap:.2em}
.u-dots i{width:1.05em;height:.32em;border-radius:.2em;background:#dfe6f2}
.u-dots i.a{background:#5b6b85}.u-dots i.o{background:#FF792E}
.u-row .a{flex:1;font-size:.88em;color:#3d4f6b;white-space:nowrap}
.u-row .go{padding:.5em .9em;border:1px solid #cfd9ea;border-radius:.7em;font-weight:700;font-size:.85em;background:#fff}
.u-chev{color:#8a98b3;margin-left:auto}

/* Rendez-vous */
.u-rdv{display:flex;gap:.9em;align-items:center;padding:.75em 1em}
.u-rdv+.u-rdv{border-top:1px solid #edf1f8}
.u-rdv .t{width:4.2em;font-weight:700;font-size:1em;white-space:nowrap}
.u-rdv .t small{display:block;font-weight:400;font-size:.72em;color:#5b6b85}
.u-rdv .n{min-width:0;flex:1}
.u-rdv .n b{display:block;font-size:.95em}
.u-rdv .n small{display:block;font-size:.8em;color:#5b6b85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Filtres, recherche, alerte */
.u-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:.8em;margin:1em 0}
.u-filters label{display:block;font-size:.8em;font-weight:700}
.u-filters span{display:block;margin-top:.3em;padding:.7em .9em;border:1px solid #cfd9ea;border-radius:.7em;background:#fff;font-weight:600;font-size:1.05em}
.u-search{display:flex;align-items:center;gap:.6em;padding:.75em 1em;border:1px solid #cfd9ea;border-radius:.8em;background:#fff;color:#5b6b85;font-size:.92em}
.u-search b{color:#10254B;font-weight:600}
.u-search .car{width:1.5px;height:1.2em;background:#194BEA}
.u-alert{display:flex;align-items:center;gap:.7em;padding:.8em 1em;border-radius:.9em;background:#fde8e3;color:#8f2716;font-weight:700}
.u-alert .go{margin-left:auto;padding:.45em .8em;border-radius:.6em;background:#fff;color:#10254B;font-size:.85em}
.u-links .u-row{font-weight:600;font-size:.98em}
.u-links .u-row svg:first-child{color:#194BEA}
.u-links small{display:block;padding:.9em 1em .2em;font-size:.82em;color:#5b6b85}

/* Agenda */
.u-days{display:grid;grid-template-columns:repeat(7,1fr);gap:.4em;margin:1em 0}
.u-days span{padding:.5em 0;border:1px solid #dfe6f2;border-radius:.7em;background:#fff;text-align:center;font-size:.75em;color:#5b6b85}
.u-days b{display:block;font-size:1.5em;color:#10254B}
.u-days .on{background:#10254B;border-color:#10254B;color:#c9d5ec}.u-days .on b{color:#fff}
.u-slot{display:grid;grid-template-columns:3em 1fr;gap:.6em;align-items:start;padding:.45em 1em}
.u-slot>small{font-size:.78em;color:#5b6b85;padding-top:.5em}
.u-ev{padding:.6em .8em;border-radius:.7em;background:#eef2f9;border-left:.25em solid #5b6b85;font-size:.9em}
.u-ev b{display:block}.u-ev small{color:#5b6b85;font-size:.88em}
.u-ev.now{background:#fff1e8;border-color:#FF792E}
.u-ev.ok em{font-style:normal;color:#194BEA;font-weight:700;font-size:.85em}
.u-detail{overflow:hidden}
.u-detail .hd{padding:1.1em 1.2em;background:#10254B;color:#fff}
.u-detail .hd small{font-size:.8em;color:#c9d5ec}
.u-detail .hd .u-h{display:block;font-size:2.1em;line-height:1.1}
.u-detail .hd b{font-size:1.1em}
.u-detail .bd{padding:1em 1.2em;display:grid;gap:.7em}
.u-tag{display:inline-block;padding:.2em .6em;border-radius:.5em;background:#e6edff;color:#194BEA;font-weight:700;font-size:.8em}

/* Téléphone */
.u-screen{background:#f4f7fd;min-height:100%}
.u-phtop{display:flex;align-items:center;gap:.6em;padding:.8em .9em;background:#10254B;color:#fff;font-weight:700;font-size:.9em}
.u-phtop i{display:grid;place-items:center;width:2em;height:2em;border-radius:.5em;background:#fff;color:#FF792E;font-style:normal}
.u-phtop .u-seg{margin:0 0 0 auto;width:9.5em;font-size:.82em}
.u-pad{padding:.8em;display:grid;gap:.8em}
.u-daybox{padding:1em;border-radius:1.1em;background:#10254B;color:#fff}
.u-daybox b{font-size:1.05em}.u-daybox small{display:block;color:#c9d5ec;font-size:.82em;margin:.15em 0 .8em}
.u-line{display:flex;align-items:center;gap:.3em}
.u-line i{flex:1;height:.35em;border-radius:.2em;background:#3a4f80}
.u-line i.b{flex:none;width:2.4em;height:1.2em;border-radius:.5em;background:#C9482B}
.u-line i.d{flex:none;width:1.6em;height:1.2em;border-radius:.5em;background:#5b6b93}
.u-nextrdv{margin-top:.8em;padding:.6em .8em;border-radius:.7em;background:#24396a;font-weight:700;font-size:.86em;display:flex;gap:.5em;align-items:center}
.u-visit{padding:1em}
.u-live{display:inline-flex;align-items:center;gap:.4em;padding:.25em .7em;border-radius:99em;background:#fde8e3;color:#a22b18;font-weight:700;font-size:.8em}
.u-live:before{content:'';width:.5em;height:.5em;border-radius:50%;background:#C9482B}
.u-visit .hd{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:.88em;color:#3d4f6b}
.u-visit .u-who{margin:.8em 0 .2em}
.u-visit .u-who .u-h{font-size:1.5em;color:#10254B}
.u-visit .u-who .u-av{width:2.8em;height:2.8em}
.u-addr{display:flex;align-items:center;gap:.5em;margin:.8em 0;padding:.7em .8em;border-radius:.7em;background:#f1f5fc;font-size:.9em}
.u-cta{display:flex;align-items:center;justify-content:center;gap:.5em;padding:.9em;border-radius:.9em;background:#C9482B;color:#fff;font-weight:700;box-shadow:0 .25em 0 #9c3520}
.u-acts{display:grid;grid-template-columns:repeat(4,1fr);gap:.5em;margin-top:.8em}
.u-acts span{display:grid;justify-items:center;gap:.3em;padding:.7em 0;border-radius:.8em;background:#eef2f9;font-weight:700;font-size:.74em}
.u-acts svg{width:1.6em;height:1.6em}
.u-prog{display:grid;grid-template-columns:repeat(3,1fr);gap:.4em;margin-top:.8em;font-size:.7em;text-align:center;color:#5b6b85}
.u-prog span:before{content:'';display:block;height:.3em;border-radius:.2em;background:#dfe6f2;margin-bottom:.4em}
.u-prog .d:before{background:#194BEA}.u-prog .c:before{background:#FF792E}.u-prog .c{color:#10254B;font-weight:700}

/* Dossier client (panneau) et espace client */
.u-dos .hd{padding:1.2em 1.2em 2.6em;background:#10254B;color:#fff}
.u-dos .u-who .u-h{font-size:1.55em;color:#fff}
.u-dos .u-who small{display:block;color:#c9d5ec;font-size:.85em}
.u-dos .u-who .u-av{width:3.2em;height:3.2em;box-shadow:0 0 0 .18em #fff}
.u-stage{margin-top:1em;font-size:.78em;color:#c9d5ec}
.u-stage .u-dots{margin:.4em 0}.u-stage .u-dots i{flex:1;height:.4em;background:#3a4f80}.u-stage .u-dots i.a{background:#aebbd6}
.u-stage b{color:#fff}
.u-dos .u-next{margin:-1.8em 1em 0;position:relative}
.u-dos .u-next .u-h{font-size:1.25em}
.u-tabs{display:flex;gap:1.2em;padding:1em 1.2em 0;font-weight:700;font-size:.85em;color:#5b6b85;border-bottom:1px solid #e1e8f4;white-space:nowrap;overflow:hidden}
.u-tabs span{padding-bottom:.7em}.u-tabs .on{color:#10254B;border-bottom:.2em solid #FF792E}
.u-btns{display:flex;gap:.5em;padding:1em 1.2em}
.u-btns span{padding:.65em 1em;border-radius:.7em;border:1px solid #cfd9ea;background:#fff;font-weight:700;font-size:.85em}
.u-btns .p{background:#10254B;border-color:#10254B;color:#fff}
.u-info{display:grid;grid-template-columns:1fr 1fr;gap:.6em;padding:0 1.2em 1.2em}
.u-info span{display:flex;gap:.6em;align-items:center;padding:.7em .8em;border:1px solid #e1e8f4;border-radius:.8em;background:#fff;font-weight:700;font-size:.85em}
.u-info small{display:block;font-weight:400;font-size:.85em;color:#5b6b85}
.u-info svg{color:#194BEA}
.u-cli-top{padding:.9em 1em;background:#fff;border-bottom:1px solid #e1e8f4;font-weight:700}
.u-cli-top small{display:block;font-weight:400;color:#5b6b85;font-size:.8em}
.u-proj{padding:1.1em;border-radius:1.2em;background:#10254B;color:#fff}
.u-proj .u-live{background:#C9482B;color:#fff}.u-proj .u-live:before{background:#fff}
.u-proj .st{display:flex;align-items:center;gap:.6em;font-size:.82em;color:#c9d5ec}
.u-proj .u-h{display:block;font-size:1.55em;line-height:1.15;margin:.6em 0}
.u-proj .u-dots i{flex:1;height:.4em;background:#3a4f80}.u-proj .u-dots i.a{background:#fff}
.u-step{display:flex;gap:.8em;align-items:center;margin-top:.9em;padding:.8em;border-radius:.9em;background:#24396a}
.u-step i{display:grid;place-items:center;width:2.6em;height:2.6em;border-radius:.7em;background:#fde8e3;color:#C9482B}
.u-step small{display:block;font-size:.78em;color:#c9d5ec}.u-step b{font-size:1.05em}
.u-chips{display:flex;gap:.4em;overflow:hidden}
.u-chips span{padding:.6em .9em;border:1px solid #dfe6f2;border-radius:99em;background:#fff;font-weight:700;font-size:.82em;white-space:nowrap}
.u-tl{padding:1em}
.u-tl .u-h{font-size:1.1em;display:block;margin-bottom:.6em}
.u-tl p{display:flex;justify-content:space-between;align-items:center;gap:.6em;padding:.55em 0 .55em 1.6em;position:relative;font-weight:700;font-size:.9em}
.u-tl p small{display:block;font-weight:400;color:#5b6b85}
.u-tl p:before{content:'';position:absolute;left:.2em;top:.9em;width:.8em;height:.8em;border-radius:50%;background:#194BEA}
.u-tl p.c:before{background:#FF792E;box-shadow:0 0 0 .25em #ff792e33}
.u-done{padding:.2em .6em;border-radius:.5em;background:#e4f3ea;color:#194BEA;font-size:.82em;white-space:nowrap}
.u-tl p.c .u-done{background:#fff1e8;color:#a1430f}
.u-win{grid-template-columns:15.5em minmax(0,1fr)}
.u-cols{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
.u-cols>*{min-width:0}
.u-info span span{display:block;padding:0;border:0;background:none;border-radius:0;font-size:1em}
.u-prep{margin:0 1.2em 1.2em;padding:1em;display:grid;gap:.5em;font-size:.95em}
.u-prep small{color:#5b6b85;font-size:.88em}
.u-ok{justify-self:start;padding:.3em .7em;border-radius:.5em;background:#e4f3ea;color:#194BEA;font-weight:700;font-size:.85em}
.u-chips .on{background:#10254B;border-color:#10254B;color:#fff}
.u-pics{display:grid;grid-template-columns:1fr 1fr;gap:.5em}
.u-pics img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.7em;display:block}
.u-share{padding:1.1em;display:grid;gap:.7em}
.u-share .u-h{font-size:1.15em}
.u-sw{display:flex;align-items:center;justify-content:space-between;gap:1em;font-weight:600;font-size:.95em;color:#5b6b85}
.u-sw.on{color:#10254B}
.u-sw i{position:relative;width:2.6em;height:1.5em;border-radius:1em;background:#cfd9ea;flex:none;transition:background .3s}
.u-sw i:after{content:'';position:absolute;left:.2em;top:.2em;width:1.1em;height:1.1em;border-radius:50%;background:#fff;transition:transform .3s cubic-bezier(.23,1,.32,1)}
.u-sw.on i{background:#194BEA}.u-sw.on i:after{transform:translateX(1.1em)}
.u-conn{padding:1.1em;display:grid;gap:.75em}
.u-conn .u-h{font-size:1.15em}
.u-prov{display:grid;grid-template-columns:1fr 1fr;gap:.5em}
.u-prov span{padding:.7em;border:1px solid #cfd9ea;border-radius:.8em;text-align:center;font-weight:700;font-size:.95em;color:#5b6b85}
.u-prov .on{border-color:#194BEA;background:#eef3ff;color:#194BEA;box-shadow:0 0 0 .15em #194bea33}
.u-connok{display:flex;align-items:center;gap:.7em;padding:.75em .9em;border-radius:.8em;background:#e4f3ea;color:#10254B}
.u-connok span{display:grid;min-width:0}.u-connok b{font-size:.95em;overflow:hidden;text-overflow:ellipsis}.u-connok small{font-size:.8em}
.u-connok i{margin-left:auto;width:1.5em;height:1.5em;flex:none;border-radius:50%;background:#194BEA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 12.5 4 4 8-9' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/1em no-repeat}
.u-conn>small{font-size:.8em}
.u-row .u-tag{flex:none;white-space:nowrap}
.u-draft{padding:1.1em;display:grid;gap:.6em}
.u-draft p{font-size:1em;line-height:1.45;color:#10254B}
.u-draft .u-foot{justify-content:flex-end;margin-top:.2em}
.u-draft .go{padding:.6em 1em;border:1px solid #cfd9ea;border-radius:.8em;font-weight:700;color:#10254B;background:#fff}

.u-pics3{grid-template-columns:repeat(3,1fr)}
.gs-lg{width:1.5em!important;height:1.5em!important;stroke:none!important}
.u-savc{display:grid;gap:.7em}
.u-savc .u-h{margin:0!important}
.u-savs{display:flex;flex-wrap:wrap;gap:.35em}
.u-savs span{padding:.35em .7em;border-radius:99em;border:1px solid #dfe6f2;background:#fff;font-weight:700;font-size:.78em;color:#5b6b85;white-space:nowrap}
.u-savs .on{background:#fff1e8;border-color:#FF792E;color:#a1430f;box-shadow:0 0 0 .18em #ff792e2e}
.u-savc .u-foot{margin-top:0}
.u-dos .u-savc .u-h{font-size:1.25em}
