/* Espace GRABE — styles propres au chantier S4 (préfixer par .es). BAT de site web + BAT en cours (admin). */

/* ---------- Client : /espace/projets/:id/bat (maquette BAT-site-web.html) ---------- */
.es.solo .main.bw{max-width:none;padding:0;gap:0}
.es .bw-pad{padding:32px 40px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.es .bw-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:22px 40px;border-bottom:1px solid var(--line)}
.es .bw-title{gap:20px}
.es .bw-title .brand{padding:0}
.es .bw-actions{gap:10px}
.es .bw-done{max-width:340px}
.es .bw-pages{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 40px;background:rgba(255,255,255,.03);position:sticky;top:0;z-index:20;backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.es .bw-pills{gap:8px}
.es .bw-count-label{margin-right:8px}
.es .bw-pills .btn{gap:8px}
.es .bw-check{display:inline-grid;place-items:center;color:#b9d3a5}
.es .bw-pills .btn-white .bw-check{color:#4f7a3c}
.es .bw-count{padding:0 7px;font-size:11px}
.es .tabs a.is-off{opacity:.4;cursor:not-allowed}
.es .bw-body{display:flex;align-items:flex-start;min-height:calc(100vh - 160px)}
.es .bw-view{flex:1 1 auto;min-width:0;padding:32px;display:flex;flex-direction:column;align-items:center;gap:12px;background:rgba(0,0,0,.18);align-self:stretch}
.es .bw-stage{width:100%;display:flex;justify-content:center}
.es .bw-canvas{position:relative;width:100%;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.es .bw-view.is-mobile .bw-canvas{border-radius:28px;box-shadow:0 0 0 10px #11151d,0 20px 50px rgba(0,0,0,.45)}
.es .bw-img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none;user-select:none}
.es .bw-stage[data-tool="none"] .an-ov{cursor:default}
.es .bw-url{max-width:1100px;width:100%;text-align:center;overflow-wrap:anywhere}
.es .bw-url a{color:var(--soft)}
.es .bw-side{flex:0 0 360px;width:360px;padding:26px 24px;display:flex;flex-direction:column;gap:14px;border-left:1px solid var(--line);position:sticky;top:64px;max-height:calc(100vh - 64px);overflow-y:auto}
.es .bw-tools{gap:6px}
.es .bw-list{display:flex;flex-direction:column;gap:10px}
.es .bw-comment{padding:16px;display:flex;flex-direction:column;gap:6px;border-radius:20px}
.es .bw-comment.is-active{border-color:rgba(229,55,63,.7);box-shadow:0 0 0 1px rgba(229,55,63,.5)}
.es .bw-cmeta{gap:8px;background:none;border:0;color:inherit;padding:0;cursor:pointer;text-align:left;flex-wrap:wrap}
.es .bw-cmeta .tag{padding:2px 9px}
.es .tag.bw-admin{background:#3d4a63;color:#fff}
.es .bw-reply{padding-left:10px;border-left:2px solid rgba(255,255,255,.2)}
.es .bw-act{align-self:flex-start;background:none;border:0;padding:0;color:var(--muted);font-family:ABeeZee,sans-serif;font-size:12px;cursor:pointer;text-decoration:underline}
.es .bw-replybox{gap:8px}
.es .bw-replybox textarea.input,.es .bw-composer textarea.input{min-height:70px}
.es .bw-composer{gap:8px}
.es .bw-chip{color:#ff8a90}
.es .bw-empty{padding:12px 0}

@media (max-width:900px){
  .es .bw-top{padding:16px}
  .es .bw-title{gap:12px;flex-wrap:wrap}
  .es .bw-title .brand span{display:none}
  .es .bw-actions{width:100%}
  .es .bw-actions .btn{flex:1 1 auto;justify-content:center}
  .es .bw-actions .bw-back{flex:0 0 auto}
  .es .bw-pages{padding:10px 16px;gap:10px}
  .es .bw-pills{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:4px;scrollbar-width:thin}
  .es .bw-pills .btn{flex:none}
  .es .bw-count-label{flex:none}
  .es .bw-body{flex-direction:column}
  .es .bw-view{padding:16px;width:100%}
  .es .bw-view.is-mobile .bw-canvas{box-shadow:0 0 0 6px #11151d}
  .es .bw-side{position:static;width:100%;flex:none;max-height:none;border-left:0;border-top:1px solid var(--line);padding:20px 16px 40px}
  .es .bw-pad{padding:20px 16px}
}

/* ---------- Admin : section « BAT du site web » (page projet) ---------- */
.es .wb{gap:16px}
.es .wb-pages{display:flex;flex-direction:column;gap:10px}
.es .wb-page{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.04)}
.es .wb-n{color:var(--muted);text-align:center}
.es .wb-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:8px}
.es .wb-fields .input,.es .wb-add .input{padding:8px 12px;border-radius:12px}
.es .wb-caps{display:flex;flex-direction:column;gap:4px}
.es .wb-cap{gap:6px}
.es .wb-cap .t-mention:first-child{width:44px}
.es .wb-see{text-decoration:underline}
.es .wb-btns{gap:6px}
.es .wb-error{grid-column:2 / -1}
.es .wb-add{gap:8px}
.es .wb-add .input{flex:1 1 180px;width:auto}
.es .wb-add .input[type="url"]{flex:2 1 260px}
.es .wb-actions{gap:10px;align-items:center}
.es .wb-mail{gap:6px}
.es .wb-dec{gap:4px}
@media (max-width:900px){
  .es .wb-page{grid-template-columns:22px minmax(0,1fr)}
  .es .wb-fields{grid-template-columns:minmax(0,1fr)}
  .es .wb-caps,.es .wb-btns{grid-column:2}
}

/* ---------- Admin : /admin/bat ---------- */
.es .bl-intro{margin-top:8px}
.es .bl-hero{min-height:150px}
.es .bl-light{color:#ffe9ea}
.es .bl-panel{padding:24px 24px 10px}
.es .bl-av{width:36px;height:36px;font-size:10px}
