/* css/ALB.css — Album photo live collaboratif (mur + wall/TV). Préfixe : ALB-. Thémé via tokens GN. */

.ALB-wrap { max-width: 1100px; margin: 18px auto; padding: 0 14px; color: var(--text, #16202b); }

.ALB-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ALB-head h1 { font-size: 1.35rem; margin: 0; color: var(--text, #16202b); }
.ALB-status { font-size: .82rem; color: var(--muted, #6b7a88); }
.ALB-status.ALB-live::before { content: "● "; color: #e0245e; }

/* Barre de contrôle */
.ALB-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 16px; }
.ALB-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--bd, #d6dde5); background: var(--card-bg, #fff); color: var(--text, #16202b);
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; line-height: 1;
  transition: background .15s, border-color .15s;
}
.ALB-btn:hover { border-color: var(--brand, #2f6fed); }
.ALB-btn--primary { background: var(--brand, #2f6fed); border-color: var(--brand, #2f6fed); color: #fff; }
.ALB-btn--primary:hover { filter: brightness(1.05); }
.ALB-btn[disabled] { opacity: .55; cursor: default; }
.ALB-note { font-size: .85rem; color: var(--muted, #6b7a88); margin: 0; }

/* Le mur */
.ALB-wall {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.ALB-empty { color: var(--muted, #6b7a88); text-align: center; padding: 40px 10px; grid-column: 1 / -1; }

.ALB-tile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px;
  background: var(--surface-2, #eef2f6); border: 1px solid var(--bd, #d6dde5);
  cursor: pointer; animation: ALB-pop .25s ease;
}
.ALB-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes ALB-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.ALB-tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 8px 5px;
  font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ALB-tile-pending::after {
  content: attr(data-pending); position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; padding: 2px 7px; border-radius: 20px;
}
.ALB-tile-report {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.45); color: #fff; font-size: .8rem; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.ALB-tile:hover .ALB-tile-report { opacity: 1; }

/* Lightbox */
.ALB-lb {
  position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center;
  background: rgba(6, 14, 22, .88); padding: 20px;
}
.ALB-lb.ALB-lb--open { display: flex; }
.ALB-lb img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }
.ALB-lb-close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; cursor: pointer;
}

/* Mode mur / TV : plein écran, tuiles plus grandes, contrôles masqués */
.ALB-wrap.ALB-tv { max-width: none; margin: 0; padding: 10px; background: #06121e; }
.ALB-wrap.ALB-tv .ALB-bar, .ALB-wrap.ALB-tv .ALB-note { display: none; }
.ALB-wrap.ALB-tv .ALB-head h1, .ALB-wrap.ALB-tv .ALB-status { color: #eaf2f8; }
.ALB-wrap.ALB-tv .ALB-wall { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }

/* Toast discret */
.ALB-toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: rgba(20,28,38,.94); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: .88rem; z-index: 4100; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ALB-toast.ALB-toast--show { opacity: 1; }

/* Sas « aperçu + légende » avant publication */
.ALB-compose {
  position: fixed; inset: 0; z-index: 4200; display: flex; align-items: center; justify-content: center;
  background: rgba(6,14,22,.82); padding: 16px;
}
.ALB-compose-panel {
  width: min(560px, 96vw); max-height: 88vh; padding: 16px; border-radius: 14px;
  background: var(--card-bg, #fff); color: var(--text, #16202b); border: 1px solid var(--bd, #d6dde5);
  display: flex; flex-direction: column; /* liste scrollable + actions toujours visibles en bas */
}
.ALB-compose-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; flex: 0 0 auto; }
.ALB-compose-hint { font-size: .82rem; color: var(--muted, #6b7a89); margin-bottom: 10px; flex: 0 0 auto; }
/* Grille de vignettes carrées (compact, on voit vite le bouton Publier) */
.ALB-compose-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px;
  overflow: auto; flex: 1 1 auto; min-height: 0; padding: 2px;
}
.ALB-compose-item { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #0c1620; }
.ALB-compose-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.ALB-compose-item--wait::after {
  content: ""; position: absolute; inset: 0; background: rgba(12,22,32,.35);
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  background-size: 200% 100%; animation: albShimmer 1.1s infinite;
}
@keyframes albShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* Bulle « … » : ajouter un commentaire */
.ALB-compose-capbtn {
  position: absolute; bottom: 5px; right: 5px; width: 28px; height: 28px; z-index: 2;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.ALB-compose-capbtn--on { background: #2f6fed; }
.ALB-compose-cap { flex: 1 1 auto; min-width: 0; padding: 9px 11px; border: 1px solid var(--bd, #d6dde5); border-radius: 9px; font-size: .92rem; }
.ALB-compose-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; flex: 0 0 auto; }
.ALB-compose-actions .ALB-btn--primary { flex: 1 1 auto; }

/* Panneau de modération */
.ALB-mod-h { margin: 22px 0 8px; font-size: 1.05rem; color: var(--text, #16202b); }
.ALB-mod-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ALB-mod-card { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--bd, #d6dde5); border-radius: 10px; background: var(--card-bg, #fff); }
.ALB-mod-thumb { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; }
.ALB-mod-info { flex: 1 1 120px; min-width: 0; }
.ALB-mod-cap { font-size: .9rem; color: var(--text, #16202b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ALB-mod-meta { font-size: .78rem; color: var(--muted, #6b7a88); margin-top: 3px; }
.ALB-mod-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ALB-mod-list { display: flex; flex-direction: column; gap: 8px; }
.ALB-mod-contrib { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--bd, #d6dde5); border-radius: 10px; background: var(--card-bg, #fff); }
.ALB-mod-name { font-size: .92rem; color: var(--text, #16202b); }
.ALB-mod-tag { font-size: .72rem; color: var(--muted, #6b7a88); border: 1px solid var(--bd, #d6dde5); border-radius: 20px; padding: 1px 7px; margin-left: 6px; }
