/* Espace GRABE — lot E : fichiers en vue « Finder », fenêtre « Message », fil des messages, « Projet finalisé ». Tout est préfixé .es */

/* ---------- En-tête du projet : « Projet finalisé » */
.es .fs-hero-tags{gap:8px}
.es .fs-done-tag{background:#fff;color:var(--bg);font-weight:700}
.es .fs-done-tag svg{flex:none}

/* ---------- Finder : barre (fil d'Ariane + outils) */
.es .fs{gap:16px;border-radius:24px;transition:box-shadow .15s}
.es .fs.fs-dropping{box-shadow:0 0 0 2px rgba(255,255,255,.35),0 0 0 8px rgba(229,55,63,.18)}
.es .fs-head{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.es .fs-crumbs{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
.es .fs-crumb{border:0;background:none;color:var(--muted);padding:6px 10px;border-radius:999px;font-family:"Neulis Alt","Source Sans 3",sans-serif;font-style:italic;font-weight:600;font-size:15px;cursor:pointer;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.es .fs-crumb:hover{color:#fff;background:rgba(255,255,255,.06)}
.es .fs-crumb.on{color:#fff;background:rgba(255,255,255,.1)}
.es .fs-sep{color:var(--muted);font-size:14px}
.es .fs-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.es .fs-sort{width:auto;padding:8px 14px;border-radius:999px;font-size:13px}
.es .fs-sort option{color:#1e2430}
.es .fs-views{display:inline-flex;padding:3px;border-radius:999px;background:var(--surf);gap:2px}
.es .fs-vbtn{border:0;background:none;color:var(--muted);width:34px;height:30px;border-radius:999px;display:grid;place-items:center;cursor:pointer}
.es .fs-vbtn.on{background:rgba(255,255,255,.12);color:#fff}
.es .fs-import{position:relative;overflow:hidden}
.es .fs-hidden-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}

/* ---------- Finder : éléments communs */
.es .fs-item{position:relative;border-radius:20px;background:var(--surf);border:1px solid var(--line);color:#fff;min-width:0;transition:background .15s,border-color .15s,transform .15s}
.es .fs-item:hover{background:rgba(255,255,255,.07)}
.es .fs-item.sel{border-color:var(--red);background:rgba(229,55,63,.1)}
.es .fs-item.fs-over{border-color:#fff;border-style:dashed;background:rgba(255,255,255,.12)}
.es .fs-item.fs-dragging{opacity:.45}
.es .fs-admin .fs-file{cursor:grab}
.es .fs-thumb{border:0;padding:0;background:rgba(255,255,255,.07);border-radius:14px;display:grid;place-items:center;overflow:hidden;color:var(--soft);cursor:pointer;flex:none}
.es .fs-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.es .fs-ext{font-family:ABeeZee,sans-serif;font-size:12px;letter-spacing:.06em;color:var(--soft)}
.es .fs-thumb-folder{background:none;color:#c9a9ad}
.es .fs-folder .fs-thumb-folder{color:#d7b9bc}
.es .fs-folder-ico{display:block;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25))}
.es .fs-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.es .fs-name{font-family:"Neulis Alt","Source Sans 3",sans-serif;font-style:italic;font-weight:600;font-size:14px;line-height:1.25;color:#fff;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.es a.fs-name:hover{text-decoration:underline;text-underline-offset:3px}
.es .fs-meta{font-family:ABeeZee,sans-serif;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.es .fs-open{display:flex;border:0;background:none;color:inherit;padding:0;text-align:left;cursor:pointer;width:100%;min-width:0;font:inherit}
.es .fs-up{border:1px dashed var(--line);background:none;cursor:pointer;font:inherit;text-align:left}
.es .fs-up .fs-thumb-folder{font-size:26px;color:var(--muted)}
.es .fs-check{position:absolute;z-index:2;width:20px;height:20px;margin:0;accent-color:#e5373f;cursor:pointer;opacity:0;transition:opacity .15s}
.es .fs-item:hover .fs-check,.es .fs-item:focus-within .fs-check,.es .fs-item.sel .fs-check,.es .fs-check:checked{opacity:1}
.es .fs-acts{display:flex;gap:6px;z-index:2;opacity:0;transition:opacity .15s}
.es .fs-item:hover .fs-acts,.es .fs-item:focus-within .fs-acts{opacity:1}
.es .fs-act{width:34px;height:34px;border-radius:50%;border:0;display:grid;place-items:center;background:rgba(22,26,36,.82);color:#fff;cursor:pointer;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.es .fs-act:hover{background:var(--red)}
.es .fs-rename-form{display:flex;gap:6px;align-items:center;min-width:0;width:100%}
.es .fs-rename{padding:7px 10px;border-radius:10px;font-size:13px;min-width:0}
.es .fs-empty{grid-column:1/-1}

/* ---------- Grille */
.es .fs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:16px}
.es .fs-grid .fs-item{display:flex;flex-direction:column;gap:10px;padding:10px 10px 14px}
.es .fs-grid .fs-thumb{width:100%;aspect-ratio:4/3}
.es .fs-grid .fs-open{flex-direction:column;gap:10px}
.es .fs-grid .fs-txt{padding:0 4px}
.es .fs-grid .fs-check{top:18px;left:18px}
.es .fs-grid .fs-acts{position:absolute;top:18px;right:18px}
.es .fs-grid .fs-item > .tag{align-self:flex-start;margin:-4px 4px 0;max-width:calc(100% - 8px);overflow:hidden;text-overflow:ellipsis}
.es .fs-grid .fs-up{display:flex;flex-direction:column;gap:10px;padding:10px 10px 14px}

/* ---------- Liste */
.es .fs-list{display:flex;flex-direction:column;gap:8px}
.es .fs-list .fs-item{display:flex;align-items:center;gap:14px;padding:10px 14px 10px 46px}
.es .fs-list .fs-thumb{width:46px;height:46px;border-radius:12px}
.es .fs-list .fs-open{align-items:center;gap:14px}
.es .fs-list .fs-txt{flex:1 1 auto}
.es .fs-list .fs-check{left:16px;top:50%;margin-top:-10px;opacity:.55}
.es .fs-list .fs-acts{margin-left:auto;opacity:.6}
.es .fs-list .fs-item > .tag{flex:none}
.es .fs-list .fs-up{display:flex;align-items:center;gap:14px;padding:10px 14px 10px 46px}

/* ---------- Barre de sélection */
.es .fs-selbar{position:sticky;bottom:16px;z-index:20;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px 10px 22px;border-radius:999px;background:#1e2430;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.45)}
.es .fs-selbar[hidden]{display:none}
.es .fs-selbar .t-label{display:flex;align-items:baseline;gap:4px}
.es .fs-grow{flex:1 1 auto}
.es .fs-dlsel svg{width:15px;height:15px}

/* Écrans tactiles : pas de survol, les actions restent visibles. */
@media (hover:none){
  .es .fs-check,.es .fs-acts{opacity:1}
}
@media (max-width:900px){
  .es .fs-selbar{bottom:96px;border-radius:22px;padding:12px 14px}
  .es .fs-selbar .fs-grow{display:none}
}
@media (max-width:640px){
  .es .fs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .es .fs-grid .fs-check{top:14px;left:14px}
  .es .fs-grid .fs-acts{top:14px;right:14px}
  .es .fs-act{width:32px;height:32px}
  .es .fs-list .fs-item{padding:10px 10px 10px 40px;gap:10px}
  .es .fs-list .fs-item > .tag{display:none}
  .es .fs-list .fs-check{left:12px}
  .es .fs-list .fs-acts{opacity:1}
  .es .fs-crumb{max-width:150px}
  .es .fs-tools{width:100%}
  .es .fs-sort{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){.es .fs-item,.es .fs-check,.es .fs-acts{transition:none}}

/* ---------- Fenêtre « Message » (dialog .es.es-msg) */
.es.es-msg{position:fixed;inset:0;margin:auto;padding:0;border:0;width:min(580px,calc(100vw - 24px));height:fit-content;max-height:calc(100vh - 24px);overflow:auto;border-radius:28px;background:var(--bg2);color:#fff;box-shadow:0 30px 80px rgba(0,0,0,.55);display:block;min-height:0}
.es.es-msg:not([open]){display:none}
.es.es-msg::backdrop{background:rgba(10,14,22,.65)}
.es .es-msg-in{padding:26px 28px 24px;display:flex;flex-direction:column;gap:18px;min-height:0;background:transparent}
.es .es-msg-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.es .es-msg-head .t-title{font-size:22px}
.es .es-msg-x{width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
.es .es-msg-x:hover{background:rgba(255,255,255,.16)}
.es .es-msg-form{display:flex;flex-direction:column;gap:14px}
.es .es-msg-to{padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.05)}
.es .es-msg-to b{color:#fff;font-weight:400}
.es .es-msg-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.es .es-msg-body{min-height:160px;resize:vertical;line-height:1.5;font-family:ABeeZee,sans-serif}
.es .es-msg-form select.input option{color:#1e2430}
.es .es-msg-count{align-self:flex-end}
.es .es-msg-err{min-height:0;color:#ffa3a8;font-family:ABeeZee,sans-serif;font-size:13px}
.es .es-msg-err:empty{display:none}
.es .es-msg-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.es .es-msg-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:18px 0 6px}
.es .es-msg-ok{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--red),var(--red2));color:#fff}
@media (max-width:560px){
  .es .es-msg-in{padding:20px 18px}
  .es .es-msg-two{grid-template-columns:minmax(0,1fr)}
  .es .es-msg-actions .btn{flex:1 1 auto;justify-content:center}
}

/* Bouton « Contact » de la barre du haut : seulement sur mobile (le menu de gauche est caché) */
.es .es-contact-top{display:none;border:0;cursor:pointer}
@media (max-width:900px){.es .es-contact-top{display:inline-flex}}

/* ---------- Fil des messages (fiche client admin, lecture seule) */
.es .es-thread-panel{gap:14px}
.es .es-thread{gap:10px}
.es .es-msg-item{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.04);border-left:3px solid #9db58a}
.es .es-msg-item.out{border-left-color:var(--red)}
.es .es-msg-subj{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#fff}
.es .es-msg-item summary{cursor:pointer;width:fit-content}
.es .es-msg-text{white-space:pre-wrap;margin-top:6px}
