/* ══════════════════════════════════════════════════════════════════════════════
   AI Meta Cleaner — CSS spécifique à l'outil.
   Le chrome commun (tokens :root, header, tool-head, footer, toast…) vient de
   ../shared/innospira-ui.css, lié AVANT ce fichier. Ne pas le redéfinir ici.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 20px auto 40px;
  padding: 0 24px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Dropzone ── */
#dropzone {
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 20px;
}
#dropzone:hover, #dropzone.drag-over { border-color: var(--brand); background: var(--brand-wash); }
#dropzone:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#dropzone .drop-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
#dropzone p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
#dropzone strong { color: var(--brand-strong); }

.frames-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Liste des fichiers ── */
.file-list { display: flex; flex-direction: column; gap: 12px; }

#emptyState {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.file-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.file-card.is-error { border-color: color-mix(in oklab, var(--danger) 45%, var(--line)); }

.file-card__thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background:
    conic-gradient(var(--panel-2) 90deg, var(--bg) 90deg 180deg,
                   var(--panel-2) 180deg 270deg, var(--bg) 270deg)
    0 0 / 14px 14px;
}
.file-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.file-card__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.file-card__top { display: flex; align-items: flex-start; gap: 8px; }
.file-card__name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-card__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.file-card__remove:hover { color: var(--danger); border-color: var(--danger); }

.file-card__meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

.file-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* ── Pastilles par catégorie ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  white-space: nowrap;
}
.chip--c2pa, .chip--ai { background: var(--brand-wash); color: var(--brand-strong); border-color: color-mix(in oklab, var(--brand) 45%, transparent); }
.chip--gps { background: var(--danger-wash); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 35%, transparent); }
.chip.is-removed { text-decoration: line-through; opacity: 0.6; }

/* ── Verdict de la vérification ── */
.verify { font-size: 0.8rem; color: var(--muted); }
.verify--ok { color: var(--ok); font-weight: 600; }
.verify--error { color: var(--danger); font-weight: 600; }

.card-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.card-download:hover { background: var(--brand-2); transform: translateY(-1px); }
.card-download svg { width: 15px; height: 15px; }

/* ── Rapport détaillé ── */
.report summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  width: fit-content;
}
.report summary:hover { color: var(--text); }
.report__list { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.report__list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 0.78rem;
}
.report__list .chip { text-align: center; }
.report__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.report__txt strong { font-weight: 600; }
.report__detail { color: var(--muted); overflow-wrap: anywhere; }
.report__status { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.report__list li.is-removed .report__status { color: var(--ok); }
.report__list li.is-kept .report__status { color: var(--text); }

/* ── Modes (barre latérale) ── */
.modes { display: flex; flex-direction: column; gap: 8px; }
.mode {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.mode:hover { background: var(--panel-2); }
.mode:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.mode input { accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; }
.mode__body { display: flex; flex-direction: column; gap: 3px; }
.mode__name { font-size: 0.88rem; font-weight: 700; }
.mode__desc { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }

/* ── Bilan ── */
.stats { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.stat-value { font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.stat-strong { color: var(--brand-strong); font-weight: 700; }

.divider { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* ── Boutons ── */
.btn-accent {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-accent:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn-accent:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); }
.btn-ghost:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Limites ── */
.limits { margin-top: 18px; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.limits summary { cursor: pointer; font-weight: 600; }
.limits summary:hover { color: var(--text); }
.limits p { margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; padding: 0 16px; }
  .panel { padding: 18px; }
}
@media (max-width: 420px) {
  .file-card { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .file-card__thumb { width: 56px; height: 56px; }
  .report__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .report__list li > .chip { display: none; }
}
