/* Interface CoFiles (phases 1 et 2) : épuré, teal #0B7A6C, graphite #2F3A45, fond #f6f6f4. Aucun violet, jaune ni rose. Aucune police ni ressource externe. */
:root{--teal:#0B7A6C;--teal-d:#085f54;--teal-l:#e3f2ef;--graphite:#2F3A45;--slate:#46515e;--ink:#1f2933;--muted:#5b6573;--line:#e4e2dc;--line2:#8C8A82;--bg:#f6f6f4;--red:#b3261e;--r:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.45;color:var(--ink);background:var(--bg)}
h1{margin:0;font-size:26px;line-height:1.2;overflow-wrap:anywhere}h2{margin:0;font-size:18px}p{margin:0}
a{color:var(--teal)}a:hover{color:var(--teal-d)}
:focus-visible{outline:3px solid var(--graphite);outline-offset:2px}
.skip{position:absolute;left:-9999px;top:8px;background:#fff;color:var(--ink);padding:10px 14px;border-radius:8px;z-index:100}.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sr-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.sr-file:focus-visible+label{outline:3px solid var(--graphite);outline-offset:2px}
.muted{color:var(--muted)}.small{font-size:13px}.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px}.nowrap{white-space:nowrap}
.ic{flex:none;vertical-align:middle}
.stack{display:flex;flex-direction:column;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.grow{flex:1 1 220px}
label{font-weight:600;font-size:14px}
.input{width:100%;min-height:46px;padding:0 14px;border:1.5px solid var(--line2);border-radius:10px;font:inherit;background:#fff;color:var(--ink)}
.input:focus{border-color:var(--teal);outline:3px solid var(--teal-l);outline-offset:0}.input::placeholder{color:#6b7480}
select.input{padding-right:8px}
/* boutons */
.btn{min-height:46px;padding:0 18px;border-radius:10px;border:1.5px solid var(--line2);background:#fff;color:var(--graphite);font:inherit;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none;text-align:center}
.btn:hover{border-color:var(--graphite);color:var(--graphite)}
.btn-primary{background:var(--teal);border-color:var(--teal);color:#fff}.btn-primary:hover{background:var(--teal-d);border-color:var(--teal-d);color:#fff}
.btn-dark{background:var(--graphite);border-color:var(--graphite);color:#fff}.btn-dark:hover{background:#222b34;color:#fff}
.btn-danger{background:var(--red);border-color:var(--red);color:#fff}.btn-danger:hover{background:#8f1f19;border-color:#8f1f19;color:#fff}
.btn-danger-ghost{color:var(--red);border-color:var(--red)}.btn-danger-ghost:hover{background:var(--red);color:#fff;border-color:var(--red)}
.btn-small{min-height:44px;padding:0 14px;font-size:14px}.btn-block{width:100%;min-height:48px;border-radius:12px;font-size:15px}.btn-icon{width:46px;padding:0;flex:none}
.icon-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid transparent;border-radius:10px;background:none;color:var(--slate);cursor:pointer;list-style:none}
.icon-btn:hover{background:var(--bg);color:var(--ink)}.viewtoggle{display:flex;gap:8px}.viewtoggle .icon-btn{width:46px;height:46px;border-color:var(--line2);background:#fff}.viewtoggle .icon-btn.on{border-color:var(--teal);background:var(--teal-l);color:var(--teal)}
/* mise en page */
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.side{background:#fff;border-right:1px solid var(--line);padding:20px 16px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;overflow:auto}
.side-top{display:flex;flex-direction:column;gap:18px}.side-bot{margin-top:auto;display:flex;flex-direction:column;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--graphite)}.brand:hover{color:var(--graphite)}
.brand-mark{width:30px;height:30px;border-radius:8px;background:var(--teal);display:inline-block;flex:none}.brand-name{font-weight:800;font-size:20px;overflow-wrap:anywhere}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:#46515e;text-decoration:none}
.nav a:hover{background:var(--bg)}.nav a.on{background:var(--teal-l);color:var(--teal);font-weight:600}
.main{padding:24px 32px;display:flex;flex-direction:column;gap:20px;min-width:0}
.main:focus{outline:none}
.quota p{font-size:13px;color:var(--muted)}.gauge{height:6px;border-radius:3px;background:var(--line);overflow:hidden;margin-bottom:6px}.gauge span{display:block;height:100%;background:var(--teal)}.gauge-warn span{background:var(--red)}
.pagehead{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.pagehead p{margin-top:4px}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.search{flex:1 1 320px;display:flex;gap:8px}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:14px;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:6px}.crumbs a{display:inline-block;padding:10px 2px;color:var(--teal)}.crumbs [aria-current]{color:var(--ink)}
.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:none}
.eyebrow{margin:0 0 12px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
section+section{margin-top:4px}
/* cartes */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.card-item{position:relative;display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.card-link{flex:1;display:flex;align-items:center;gap:12px;padding:16px;min-width:0;min-height:60px;color:var(--ink);text-decoration:none;border-radius:var(--r)}.card-link:hover{color:var(--ink);background:#fbfbfa}
.card-t{display:flex;flex-direction:column;min-width:0}.card-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ico{color:var(--graphite);display:inline-flex}.ico-folder{color:var(--teal)}.card-item .rowmenu{margin-right:4px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:14px}
.card-foot{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-top:8px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.share-card{max-width:640px}
.empty{background:#fff;border:1px dashed var(--line2);border-radius:var(--r);padding:36px 16px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:8px}
/* tableau */
.table-wrap{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r)}.table-wrap.scroll{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;color:var(--muted);font-weight:600;padding:12px 16px}.table td{padding:8px 16px;border-top:1px solid #efede7;vertical-align:middle}
.c-name{font-weight:600;overflow-wrap:anywhere}.namecell{display:flex;align-items:center;gap:10px;min-height:52px}.c-name a{color:var(--ink);text-decoration:none}.c-name a:hover{text-decoration:underline}
.c-act{text-align:right;white-space:nowrap}.table .c-by,.table .c-date,.table .c-size{color:#46515e}
.link-strong{font-weight:600;display:inline-block;padding:12px 6px}
.plans .cur td{font-weight:700;background:var(--teal-l)}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#e9ebee;color:var(--graphite);font-size:12px;font-weight:600}
/* menus */
details.menu{position:relative}details.menu>summary{list-style:none;cursor:pointer}details.menu>summary::-webkit-details-marker{display:none}
.menu-panel{position:absolute;z-index:30;top:calc(100% + 6px);left:0;min-width:240px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(31,41,51,.16);padding:8px;display:flex;flex-direction:column;gap:2px}
.newmenu .menu-panel{width:100%;min-width:240px}.menu-right{left:auto;right:0}.menu-up{top:auto;bottom:calc(100% + 6px)}
.menu-link{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:8px;color:var(--ink);text-decoration:none;font:inherit;font-weight:500;background:none;border:0;cursor:pointer;width:100%;text-align:left}
.menu-link:hover{background:var(--bg);color:var(--ink)}.menu-danger{color:var(--red)}.menu-danger:hover{color:var(--red)}.menu-panel form{margin:0}
.rename-form{padding:6px 8px 8px;display:flex;flex-direction:column;gap:6px}.row-inline{display:flex;gap:8px;align-items:center}.row-inline .input{flex:1;min-width:110px}
.usermenu>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 6px;border-radius:10px}.usermenu>summary:hover{background:var(--bg)}.uname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.newmenu .stack{padding:6px}.newmenu .menu-link{margin-top:4px}
.avatar{width:36px;height:36px;border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex:none}.av-graphite{background:var(--graphite)}.av-teal{background:var(--teal)}.av-slate{background:#46515e}
.langs{display:flex;gap:6px;padding:4px 12px;flex-wrap:wrap}.langs a{padding:10px 6px;font-size:13px}.langs a.on{font-weight:700;color:var(--ink);text-decoration:none}
/* messages */
.notice{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:10px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--graphite)}
.notice-ok{border-left-color:var(--teal);background:var(--teal-l)}.notice-error{border-left-color:var(--red)}.notice-info{border-left-color:var(--graphite);background:#eef0f2}
.callout{display:flex;gap:12px;align-items:center;background:var(--bg);border-radius:10px;padding:12px 14px;color:#46515e}
/* téléversement */
.dropzone{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:#fff;border:2px dashed var(--teal);border-radius:var(--r);padding:16px 20px}
.dropzone.drag{background:var(--teal-l);border-style:solid}.dz-ico{color:var(--teal);display:inline-flex}.dz-text{display:flex;flex-direction:column;flex:1 1 220px}
.js [data-nojs]{display:none}.uplist{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:8px}.uplist:empty{display:none}
.up-item{display:grid;grid-template-columns:1fr auto;gap:2px 12px;font-size:14px;padding:8px 0;border-top:1px solid #efede7}.up-item .gauge{grid-column:1/-1;margin:0}.up-fail .up-state{color:var(--red);font-weight:600}.up-ok .up-state{color:var(--teal);font-weight:600}.up-err{grid-column:1/-1;color:var(--red);font-size:13px}
/* partage */
.addrow{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.people{list-style:none;margin:0;padding:0}.people li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #efede7;flex-wrap:wrap}.pi{flex:1;display:flex;flex-direction:column;min-width:160px;overflow-wrap:anywhere}
.rolef{display:flex;gap:6px;align-items:center}.rolef .input{width:auto}.help{font-size:14px;color:var(--muted)}.help summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.help ul{margin:0;padding-left:18px}
.newlink{display:flex;flex-direction:column;gap:6px}.destlist{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:2px;max-height:50vh;overflow:auto}.destlist legend{font-weight:600;margin-bottom:8px}
.dest{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border-radius:8px;font-weight:500;cursor:pointer}.dest:hover{background:var(--bg)}.dest input{width:18px;height:18px;accent-color:var(--teal)}
.depth-1{margin-left:16px}.depth-2{margin-left:32px}.depth-3{margin-left:48px}.depth-4{margin-left:64px}.depth-5{margin-left:80px}.depth-6{margin-left:96px}.depth-7{margin-left:112px}.depth-8{margin-left:128px}
.viewer{width:100%;height:75vh;border:1px solid var(--line);border-radius:var(--r);background:#fff}.viewer-img{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:12px;text-align:center}.viewer-img img{max-width:100%;max-height:75vh}
.code{background:var(--graphite);color:#f6f6f4;padding:14px;border-radius:10px;overflow:auto;font-size:12.5px;line-height:1.5}
.actions-row{display:flex;flex-wrap:wrap;gap:10px}
/* authentification */
.auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px 16px}.auth-card{width:100%;max-width:420px;padding:28px}.auth-card h1{font-size:24px}.links{text-align:center;font-size:14px}.links a{display:inline-block;padding:10px 4px}
.pubbar{padding:14px 24px;background:#fff;border-bottom:1px solid var(--line)}.main-public{max-width:980px;margin:0 auto;padding:28px 16px}.main-embed{padding:16px;max-width:1100px;margin:0 auto}
.lay-embed{background:var(--bg)}
/* mobile d'abord pour la barre latérale */
@media (max-width:899px){
  .shell{display:block}.side{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px;gap:10px}
  .side-top{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.newmenu{flex:0 0 auto}.newmenu .btn-block{width:auto;padding:0 16px}.newmenu .menu-panel{left:auto;right:0;width:280px}
  .nav{flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:2px}.nav a{white-space:nowrap}
  .side-bot{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-top:0}.quota{flex:1}.menu-up{top:calc(100% + 6px);bottom:auto;left:auto;right:0}.usermenu .uname{display:none}
  .main{padding:16px;gap:16px}h1{font-size:22px}
}
@media (max-width:640px){.table .c-by,.table .c-size{display:none}.table td,.table th{padding-left:12px;padding-right:8px}.cards{grid-template-columns:1fr}.pagehead .btn{flex:1 1 auto}}
@media (max-width:420px){.table .c-date{display:none}}

/* ===== Phase 2 : marque, sélecteur FR | EN, pastilles, clients, réception, espace client ===== */
.logo{flex:none;display:block}.bn-a{color:var(--teal)}.bn-b{color:var(--graphite)}.brand-name{letter-spacing:-.02em}
.langs{padding:0}.langbtn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 12px;border:1.5px solid var(--line2);border-radius:10px;background:#fff;color:var(--graphite);font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.langbtn:hover{border-color:var(--graphite);color:var(--graphite)}.langbtn .on{font-weight:800;color:var(--teal)}
.cbadge{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--teal);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none}
.nav a .cbadge{margin-left:auto}.namecell .cbadge{margin-left:4px}.btn .cbadge{margin-left:2px;background:#fff;color:var(--teal)}
.tree{display:flex;flex-direction:column;gap:6px;min-height:0}.tree .eyebrow{margin:0}.tree nav{display:flex;flex-direction:column;gap:2px}
.tnode{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border-radius:10px;color:#46515e;text-decoration:none;font-size:14px}.tnode:hover{background:var(--bg);color:var(--ink)}.tnode .ic{color:var(--graphite)}
.tnode.on{background:var(--teal-l);color:#065a50;font-weight:700}.tnode.on .ic{color:var(--teal)}.tnode.t1{padding-left:28px}.tnode.t2{padding-left:46px}.tn-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pagehead-actions{display:flex;flex-wrap:wrap;gap:10px}.btn-outline{border-color:var(--teal);color:var(--teal);background:#fff}.btn-outline:hover{border-color:var(--teal-d);color:var(--teal-d);background:var(--teal-l)}
.reception-banner{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px;background:var(--teal-l);border:1px solid #bfe0d9;border-radius:12px;font-size:14px;color:#065a50}.reception-banner>span{flex:1 1 260px}.reception-banner .ic{flex:none}
.newtag{margin-left:6px;padding:3px 8px;border-radius:999px;background:var(--teal);color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
.chip{display:inline-block;padding:5px 10px;border:1.5px solid var(--line2);border-radius:999px;background:#fff;color:var(--graphite);font-size:13px;font-weight:600}
.chip-active{background:var(--teal-l);border-color:#bfe0d9;color:#065a50}.chip-invited{background:#eef0f2;border-color:#d4d9de}.chip-none{color:var(--muted)}
.chip .ic{margin-right:4px;vertical-align:-2px}.private{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.callout-card{background:#fff;border:1px solid var(--line)}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:500}.check input{width:20px;height:20px;accent-color:var(--teal);flex:none}
.area{min-height:160px;padding:12px 14px;resize:vertical;line-height:1.5}
.reqlist{list-style:none;margin:0;padding:0}.reqlist li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #efede7;flex-wrap:wrap}.reqlist li:first-child{border-top:0}.rq-t{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.inline{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
/* tableaux empilés sur mobile : aucune barre de défilement horizontale */
@media (max-width:640px){
  .stk thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .stk,.stk tbody,.stk tr,.stk td{display:block;width:100%}
  .stk tr{padding:12px 14px;border-top:1px solid #efede7}.stk tr:first-child{border-top:0}
  .stk td{padding:3px 0;border:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
  .stk td[data-label]:not(.c-name)::before{content:attr(data-label);flex:0 0 112px;color:var(--muted);font-size:13px;font-weight:600}
  .table.stk .c-by,.table.stk .c-size,.table.stk .c-date{display:flex}
  .stk td.c-act{text-align:left;justify-content:flex-start;white-space:normal;padding-top:6px}
  .stk td.c-act .menu-panel{left:0;right:auto;max-width:calc(100vw - 48px)}
}
/* espace client : accueil, Mes fichiers, partage (maquettes Client-mobile / Client-fichiers) */
.cshell{min-height:100vh;display:flex;flex-direction:column}.cside{display:none}.cwrap{flex:1;display:flex;flex-direction:column;min-width:0}
.ctop{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#fff;border-bottom:1px solid var(--line)}.ctop .brand-name{font-size:18px}.ctop-r{display:flex;align-items:center;gap:8px}
.ctop .menu-panel{top:calc(100% + 6px);bottom:auto;left:auto;right:0}.ctop .usermenu .uname{display:none}
.cmain{flex:1;padding:20px;display:flex;flex-direction:column;gap:18px;min-width:0;max-width:760px;width:100%;margin:0 auto}.cmain:focus{outline:none}
.cbottom{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid var(--line);z-index:20}
.cbottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;color:#46515e;font-weight:600;font-size:12px;text-decoration:none;text-align:center}.cbottom a.on{color:var(--teal);font-weight:700;background:var(--teal-l)}
.btn-big{min-height:56px;border-radius:14px;background:var(--teal);color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;padding:0 18px}.btn-big:hover{background:var(--teal-d);color:#fff}
.center{text-align:center}.bigh{margin-top:-8px}.stack-s{display:flex;flex-direction:column;gap:10px}.stack-s>.eyebrow{margin:0}
.rows{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:14px}.rows li{border-top:1px solid #efede7}.rows li:first-child{border-top:0}
.row-item{display:flex;align-items:center;gap:12px;padding:14px 16px;flex-wrap:wrap}.row-link{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:60px;color:var(--ink);text-decoration:none}.row-link:hover{background:#fbfbfa;color:var(--ink)}
.pill-ok{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:var(--teal-l);color:#065a50;font-size:13px;font-weight:600}
.empty.slim{padding:20px 16px}
.dialog{width:100%;max-width:480px;margin:0 auto;background:#fff;border-radius:18px;padding:28px;display:flex;flex-direction:column;gap:16px;box-shadow:0 24px 60px rgba(31,41,51,.16);border:1px solid var(--line)}.dialog h1{font-size:20px}
.choices{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.choice{display:flex;align-items:center;gap:14px;padding:14px;border:1.5px solid var(--line2);border-radius:12px;min-height:44px;cursor:pointer;font-weight:500}.choice input{width:20px;height:20px;accent-color:var(--teal);flex:none}.choice:has(input:checked){border:2px solid var(--teal);background:var(--teal-l);padding:13px}
.dz-client .dz-full{flex:1 1 100%}
.pubbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.pubbar .brand{display:flex;align-items:center;gap:8px}
.authtop{display:flex;justify-content:flex-end}
@media (min-width:900px){
  .cshell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
  .cside{display:flex;flex-direction:column;gap:18px;padding:20px 16px;background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;overflow:auto}
  .cnav{display:flex;flex-direction:column;gap:4px}.cnav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:#46515e;text-decoration:none}.cnav a:hover{background:var(--bg)}.cnav a.on{background:var(--teal-l);color:#065a50;font-weight:600}
  .cbottom{display:none}.ctop .brand-top{display:none}.ctop{justify-content:flex-end;padding:12px 36px}.cmain{padding:28px 36px;max-width:1000px}.ctop .usermenu .uname{display:inline}
  .cmain .btn-big{align-self:flex-start;min-width:280px}.cmain .bigh{text-align:left}
}
@media (max-width:899px){.tree{display:none}.side-bot{flex-wrap:wrap}.side-bot .usermenu,.side-bot .langs{flex:0 0 auto}.pubbar,.ctop{padding-left:16px;padding-right:16px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.pct-0{width:0%}.pct-1{width:1%}.pct-2{width:2%}.pct-3{width:3%}.pct-4{width:4%}.pct-5{width:5%}.pct-6{width:6%}.pct-7{width:7%}.pct-8{width:8%}.pct-9{width:9%}.pct-10{width:10%}.pct-11{width:11%}.pct-12{width:12%}.pct-13{width:13%}.pct-14{width:14%}.pct-15{width:15%}.pct-16{width:16%}.pct-17{width:17%}.pct-18{width:18%}.pct-19{width:19%}.pct-20{width:20%}.pct-21{width:21%}.pct-22{width:22%}.pct-23{width:23%}.pct-24{width:24%}.pct-25{width:25%}.pct-26{width:26%}.pct-27{width:27%}.pct-28{width:28%}.pct-29{width:29%}.pct-30{width:30%}.pct-31{width:31%}.pct-32{width:32%}.pct-33{width:33%}.pct-34{width:34%}.pct-35{width:35%}.pct-36{width:36%}.pct-37{width:37%}.pct-38{width:38%}.pct-39{width:39%}.pct-40{width:40%}.pct-41{width:41%}.pct-42{width:42%}.pct-43{width:43%}.pct-44{width:44%}.pct-45{width:45%}.pct-46{width:46%}.pct-47{width:47%}.pct-48{width:48%}.pct-49{width:49%}.pct-50{width:50%}.pct-51{width:51%}.pct-52{width:52%}.pct-53{width:53%}.pct-54{width:54%}.pct-55{width:55%}.pct-56{width:56%}.pct-57{width:57%}.pct-58{width:58%}.pct-59{width:59%}.pct-60{width:60%}.pct-61{width:61%}.pct-62{width:62%}.pct-63{width:63%}.pct-64{width:64%}.pct-65{width:65%}.pct-66{width:66%}.pct-67{width:67%}.pct-68{width:68%}.pct-69{width:69%}.pct-70{width:70%}.pct-71{width:71%}.pct-72{width:72%}.pct-73{width:73%}.pct-74{width:74%}.pct-75{width:75%}.pct-76{width:76%}.pct-77{width:77%}.pct-78{width:78%}.pct-79{width:79%}.pct-80{width:80%}.pct-81{width:81%}.pct-82{width:82%}.pct-83{width:83%}.pct-84{width:84%}.pct-85{width:85%}.pct-86{width:86%}.pct-87{width:87%}.pct-88{width:88%}.pct-89{width:89%}.pct-90{width:90%}.pct-91{width:91%}.pct-92{width:92%}.pct-93{width:93%}.pct-94{width:94%}.pct-95{width:95%}.pct-96{width:96%}.pct-97{width:97%}.pct-98{width:98%}.pct-99{width:99%}.pct-100{width:100%}

/* ===== Phase 3 : console d'administration (maquettes Admin-tableau / -comptes / -compte / -forfaits) ===== */
.adm{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.adm-side{background:#fff;border-right:1px solid var(--line);padding:20px 16px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;overflow:auto}
.adm-top{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.adm-top .langs{display:none}
.adm-eyebrow{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.adm-nav{display:flex;flex-direction:column;gap:4px;font-size:15px}
.adm-nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:#46515e;text-decoration:none}
.adm-nav a:hover{background:var(--bg)}.adm-nav a.on{background:var(--teal-l);color:#065a50;font-weight:600}
.adm-bot{margin-top:auto;display:flex;flex-direction:column;gap:8px;min-width:0}.adm-me{overflow-wrap:anywhere}
.adm-links{display:flex;flex-direction:column;gap:2px}.adm-bot form{margin:0}
.adm-link{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;color:var(--graphite);font:inherit;font-weight:600;font-size:14px;text-decoration:none;background:none;border:0;cursor:pointer;width:100%;text-align:left}.adm-link:hover{color:var(--teal)}
.adm-bot .langs{display:block}
.adm-main{padding:28px 36px;display:flex;flex-direction:column;gap:20px;min-width:0}.adm-main:focus{outline:none}
.adm-main h1{font-size:26px}
.adm-search{flex:0 1 360px;max-width:100%}
/* indicateurs colorés */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi{border-radius:var(--r);padding:18px 20px;color:#fff;display:flex;flex-direction:column;gap:4px;min-width:0}
.kpi-teal{background:var(--teal)}.kpi-graphite{background:var(--graphite)}
.kpi-l{font-size:13px;color:rgba(255,255,255,.92)}.kpi-v{font-size:30px;letter-spacing:-.02em;line-height:1.15;overflow-wrap:anywhere}.kpi-s{font-size:13px;color:rgba(255,255,255,.9)}
.adm-grid{display:grid;gap:16px;align-items:start}.adm-grid-dash{grid-template-columns:1.4fr 1fr}.adm-grid-acc{grid-template-columns:1.2fr 1fr}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:14px;min-width:0}.panel h2{font-size:16px}
.barlist,.toollist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;font-size:14px}
.bl-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}.bl-name{color:var(--ink);text-decoration:none;display:inline-block;padding:8px 0}.bl-name:hover{text-decoration:underline;color:var(--ink)}
.bar{height:8px;border-radius:4px;background:var(--line);margin-top:2px;overflow:hidden}.bar span{display:block;height:100%;background:var(--teal)}.bar-full span{background:var(--graphite)}
.toollist li{display:flex;align-items:center;gap:10px}.tl-n{flex:0 0 96px;overflow-wrap:anywhere}.toollist .bar{flex:1;margin:0}.bar-thick{height:14px;border-radius:7px;background:var(--teal-l)}.toollist b{min-width:36px;text-align:right}
.adm-note{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--muted)}.adm-note .ic{margin-top:1px;color:var(--graphite)}
/* listes et pastilles */
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line2);background:#fff;color:var(--ink);font-weight:600;font-size:14px;text-decoration:none}
.pill:hover{border-color:var(--graphite);color:var(--ink)}.pill.on{background:var(--graphite);border-color:var(--graphite);color:#fff}
.chip-plan{background:#eceef0}.chip-off{color:var(--muted);background:#fff}.chip-wait{background:#eef0f2;color:var(--graphite)}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pager .is-off{opacity:.45;pointer-events:none}.pager-n{flex:1;text-align:center}
.table td.c-name b{font-weight:700}
/* fiche d'un compte */
.plan-pick{border:0;padding:0;margin:0;min-width:0}.plan-pick legend{font-weight:600;font-size:14px;margin-bottom:8px;padding:0}
.plan-opts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;position:relative}
.plan-opt{display:flex;flex-direction:column;gap:2px;min-height:64px;padding:12px;border:1.5px solid var(--line2);border-radius:12px;background:#fff;cursor:pointer;font-weight:400;font-size:14px;color:var(--muted)}.plan-opt b{color:var(--ink)}
.sr-file:checked+.plan-opt{border:2px solid var(--teal);background:var(--teal-l);padding:11.5px;color:var(--slate)}.sr-file:focus-visible+.plan-opt{outline:3px solid var(--graphite);outline-offset:2px}
.actions-end{display:flex;justify-content:flex-end}
.adm-act{justify-content:flex-start;text-align:left}.btn-dark-line{border-color:var(--graphite)}
.sep{border:0;border-top:1px solid #efede7;margin:2px 0;width:100%}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0}.facts div{display:flex;flex-direction:column;gap:2px;min-width:0}.facts dt{font-size:13px;color:var(--muted)}.facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
/* forfaits et réglages */
.plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.plan-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--slate);min-width:0}
.plan-card-hi{border:2px solid var(--teal);padding:19px}.plan-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.plan-head b{font-size:18px;color:var(--ink)}
.plan-q{font-size:28px;color:var(--teal);letter-spacing:-.02em}
.setrow{display:flex;align-items:center;gap:14px;min-height:44px;font-weight:400}.setrow input{width:22px;height:22px;accent-color:var(--teal);flex:none}.setrow>span{display:flex;flex-direction:column}.setrow b{font-size:15px}
.field-narrow{max-width:360px}
@media (max-width:1100px){.kpis,.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899px){
  .adm{display:block}.adm-side{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px;gap:10px}
  .adm-top{flex-direction:row;align-items:center;justify-content:space-between}.adm-top .langs{display:block}.adm-bot .langs{display:none}
  .adm-nav{flex-direction:row;flex-wrap:wrap;gap:4px}.adm-bot{margin-top:0;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px}.adm-links{flex-direction:row;gap:12px}.adm-link{width:auto}
  .adm-main{padding:16px;gap:16px}.adm-main h1{font-size:22px}
  .adm-grid-dash,.adm-grid-acc{grid-template-columns:minmax(0,1fr)}.adm-search{flex:1 1 100%}
}
@media (max-width:480px){.kpi{padding:14px}.kpi-v{font-size:24px}.plan-opts{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-grid{grid-template-columns:minmax(0,1fr)}.tl-n{flex-basis:80px}}
.adm-side .brand{min-height:44px}.bl-name{display:inline-flex;align-items:center;min-height:44px;padding:0}
.adm-main .crumbs a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 2px}
.adm-search .btn-icon{flex:none;width:46px}

.adm-grid .panel{margin-top:0}
.plan-card{position:relative}.plan-head .chip{position:absolute;top:-14px;right:14px;font-size:12px;padding:4px 10px}
.table .chip{border-radius:10px;line-height:1.3}
@media (max-width:899px){.adm-nav a{padding:0 10px}}

/* ===== Tranche 1 : équipe, statuts de documents, packs métier (maquettes Equipe*, Reception-statuts, Statut-refus, Client-renvoi, Profession-pack) ===== */
.inl{display:inline-flex;gap:6px;align-items:center;margin:0}.linkbtn{background:none;border:0;padding:0 6px;min-height:44px;cursor:pointer;font:inherit;text-decoration:underline}
.pager{display:flex;gap:8px;margin-top:12px}.input-num{max-width:110px}.icon-danger{color:var(--red)}.icon-danger:hover{background:#fbeceb;color:var(--red)}
.fname{font-weight:700;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}.fname:hover{text-decoration:underline;color:var(--ink)}
/* pastilles de statut (distinctes de .pill, qui est un filtre de 44 px) */
.spill{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:2px 11px;border-radius:999px;border:1.5px solid var(--line2);background:#fff;color:var(--graphite);font-size:13px;font-weight:700;white-space:nowrap}
.st-received{background:#eef0f2;border-color:#d4d9de;color:var(--graphite)}.st-review{background:#e6eff8;border-color:#c5d8ec;color:#1d4a73}.st-ok{background:var(--teal);border-color:var(--teal);color:#fff}.st-ko{background:#fff;border-color:var(--red);color:var(--red)}
.spill-sm{min-height:22px;padding:0 8px;font-size:12px;margin-left:auto}.st-why{display:flex;align-items:center;gap:4px;margin-top:4px;color:var(--red);font-size:12px;font-weight:600}
.rq-why{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.statusbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:0 0 14px}
.fchips{display:flex;flex-wrap:wrap;gap:8px}.fchip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1.5px solid var(--line2);border-radius:999px;background:#fff;color:var(--graphite);font-weight:600;text-decoration:none}
.fchip:hover{border-color:var(--graphite);color:var(--graphite)}.fchip.on{background:var(--teal-l);border-color:var(--teal);color:#065a50}
.fcount{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#eef0f2;font-size:12px;display:inline-flex;align-items:center;justify-content:center}.fchip.on .fcount{background:var(--teal);color:#fff}
.fsel{display:flex;flex-wrap:wrap;gap:8px}.fsel .input{width:auto;min-width:150px}
.btn-ok{color:var(--teal);border-color:var(--teal)}.btn-ok:hover{background:var(--teal-l);color:#065a50;border-color:var(--teal)}.btn-ko{color:var(--red);border-color:var(--red)}.btn-ko:hover{background:#fbeceb;color:var(--red);border-color:var(--red)}
.c-act{white-space:nowrap}.c-act .btn{min-height:44px;margin-left:6px}
/* refus */
.form-narrow{max-width:640px}.form-wide{max-width:860px}.reasons{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.reasons legend{font-weight:700;margin-bottom:8px;padding:0}
.radiorow{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 14px;border:1.5px solid var(--line2);border-radius:10px;background:#fff;font-weight:600;cursor:pointer}.radiorow:has(input:checked){border-color:var(--teal);background:var(--teal-l)}
.radiorow input{width:20px;height:20px;accent-color:var(--teal)}
.mailprev{background:var(--bg);border-radius:10px;padding:12px 14px}.pre{white-space:pre-wrap;font:inherit;font-size:14px;margin:8px 0 0}.actions{display:flex;flex-wrap:wrap;gap:10px}
/* équipe */
.seatcard{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}.seathead{display:flex;justify-content:space-between;align-items:center;gap:10px}.seathead h2{display:flex;align-items:center;gap:8px;font-size:18px}
.rolecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:16px}.rolecard{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.rolepick{border:0;padding:0;margin:0}.rolepick-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.rolecard-pick{flex-direction:row;align-items:flex-start;gap:12px;border:1.5px solid var(--line2);cursor:pointer}.rolecard-pick:has(input:checked){border-color:var(--teal);background:#fff;box-shadow:0 0 0 1px var(--teal)}.rolecard-pick input{width:20px;height:20px;margin-top:2px;accent-color:var(--teal)}.rolecard-pick span{display:flex;flex-direction:column;gap:2px}
.grants{border:0;padding:12px;margin:0;background:var(--bg);border-radius:12px;display:flex;flex-direction:column;gap:8px}.grants legend{padding:0 4px}
.grantrow{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;border-bottom:1px solid var(--line);padding:4px 0}.grantrow .input{width:auto;min-width:130px}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600;cursor:pointer}.check input{width:20px;height:20px;accent-color:var(--teal)}
.formfoot{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end}.formfoot>p{flex:1 1 260px;text-align:left}
.viewbox{background:var(--bg);border-radius:12px;padding:12px 14px;margin:12px 0;display:flex;flex-direction:column;gap:8px}.viewbox-off{background:#fff;border:1.5px dashed var(--line2)}.viewrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:36px}.viewrow .spill{margin-left:auto}
.eyebrow{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:0}
/* packs métier */
.packpage{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:12px}.packform{display:flex;flex-direction:column;gap:18px}
.packr{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.packgrid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:20px;align-items:start}.packlist{display:flex;flex-direction:column;gap:10px}
.packopt{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 16px;background:#fff;border:1.5px solid var(--line2);border-radius:14px;cursor:pointer;font-weight:400}
.packico{width:40px;height:40px;border-radius:10px;background:#eef0f2;color:var(--graphite);display:inline-flex;align-items:center;justify-content:center;flex:none}.packtx{display:flex;flex-direction:column;flex:1;min-width:0}.packtx b{font-size:16px}
.packdot{width:22px;height:22px;border-radius:50%;border:2px solid var(--line2);flex:none}
.packprev{display:none;flex-direction:column;gap:14px}.prevgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.prevbox{background:var(--bg);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}.plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.plain li{display:flex;align-items:center;gap:8px}.plain .ic{color:var(--teal)}.retrow{justify-content:space-between}
.packfoot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
#pk-accounting:checked~.packgrid .packprev-accounting,#pk-law:checked~.packgrid .packprev-law,#pk-planning:checked~.packgrid .packprev-planning,#pk-notary:checked~.packgrid .packprev-notary,#pk-immigration:checked~.packgrid .packprev-immigration,#pk-other:checked~.packgrid .packprev-other{display:flex}
#pk-accounting:checked~.packgrid [data-pack=accounting],#pk-law:checked~.packgrid [data-pack=law],#pk-planning:checked~.packgrid [data-pack=planning],#pk-notary:checked~.packgrid [data-pack=notary],#pk-immigration:checked~.packgrid [data-pack=immigration],#pk-other:checked~.packgrid [data-pack=other]{border-color:var(--teal);background:var(--teal-l);box-shadow:0 0 0 1px var(--teal)}
#pk-accounting:checked~.packgrid [data-pack=accounting] .packdot,#pk-law:checked~.packgrid [data-pack=law] .packdot,#pk-planning:checked~.packgrid [data-pack=planning] .packdot,#pk-notary:checked~.packgrid [data-pack=notary] .packdot,#pk-immigration:checked~.packgrid [data-pack=immigration] .packdot,#pk-other:checked~.packgrid [data-pack=other] .packdot{border:6px solid var(--teal);background:#fff}
#pk-accounting:checked~.packgrid [data-pack=accounting] .packico,#pk-law:checked~.packgrid [data-pack=law] .packico,#pk-planning:checked~.packgrid [data-pack=planning] .packico,#pk-notary:checked~.packgrid [data-pack=notary] .packico,#pk-immigration:checked~.packgrid [data-pack=immigration] .packico,#pk-other:checked~.packgrid [data-pack=other] .packico{background:var(--teal);color:#fff}
.packr:focus-visible~.packgrid .packopt{outline:0}
@media (max-width:899px){.packgrid{grid-template-columns:1fr}.statusbar{align-items:stretch}.fsel .input{flex:1 1 140px}.formfoot{justify-content:stretch}.formfoot .btn{flex:1 1 auto}.c-act{white-space:normal}.c-act .btn{margin:4px 6px 0 0}}
.resend{background:#fff;border:2px solid var(--red);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;margin:14px 0}.resend-k{display:flex;align-items:center;gap:8px;color:var(--red);font-weight:700;margin:0}.resend h2{font-size:19px}
.resend-note{display:flex;gap:10px;align-items:flex-start;background:var(--bg);border-radius:10px;padding:10px 12px;color:#46515e}

.viachip{display:flex;align-items:center;gap:6px;margin-top:5px}
