alpinux-static/app/static/app.css
Alpinux 0513afdbb4 feat: page Erreurs 404 — logs, détail IP/date/referer, ignore, ban fail2ban
- Onglet "Erreurs" dans la navigation
- Analyse des logs Apache des 7 derniers jours (.gz inclus)
- Tableau trié par nombre de requêtes avec badge statut (résolu/actif)
- Détail AJAX par chemin : IPs, compteurs, referers
- Vérification live au clic sur le point de statut
- Ignorer une IP (persisté dans ignored_ips.json, cache invalidé)
- Bannir une IP via fail2ban-client (global-blacklist)
- Section IPs ignorées avec suppression depuis la page

Closes #37 #38 #39 #40 #41

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 12:57:13 +02:00

370 lines
28 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:root {
--blue: #1a6bbf;
--blue-dark: #0f4e8f;
--blue-light: #e8f1fb;
--bg: #f3f6fb;
--text: #1a1a2e;
--muted: #666;
--border: #dce6f3;
--radius: 10px;
--shadow: 0 2px 12px rgba(26,107,191,.1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; scrollbar-gutter: stable; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #e8eef7; padding: .1rem .4rem; border-radius: 4px; font-size: .88em; }
/* ── Header ─────────────────────────────────────────────────────── */
header { background: var(--blue-dark); color: #fff; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.brand strong { font-weight: 800; }
.brand-sub { opacity: .7; font-weight: 300; }
.brand img { border-radius: 5px; }
.header-nav { display: flex; gap: .15rem; flex: 1; }
.header-nav a { color: rgba(255,255,255,.8); padding: .4rem .6rem; border-radius: 6px; font-size: .88rem; white-space: nowrap; transition: background .15s; }
.header-nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.header-nav a.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.nav-trash { position: relative; }
.trash-badge { display: inline-flex; align-items: center; justify-content: center;
background: #ef4444; color: #fff; border-radius: 9px; font-size: .68rem;
font-weight: 700; min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem;
margin-left: .3rem; vertical-align: middle; line-height: 1; }
.header-user { margin-left: auto; display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.user-chip { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.9); font-size: .88rem; }
.user-avatar { display: inline-flex; align-items: center; justify-content: center;
width: 1.6rem; height: 1.6rem; border-radius: 50%;
background: rgba(255,255,255,.25); color: #fff;
font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.btn-logout-icon { display: inline-flex; align-items: center; justify-content: center;
width: 1.8rem; height: 1.8rem; border-radius: 50%;
color: rgba(255,255,255,.7); font-size: 1rem;
border: 1px solid rgba(255,255,255,.3); transition: background .15s, color .15s; }
.btn-logout-icon:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.width-switcher { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.width-switcher button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
color: rgba(255,255,255,.6); border-radius: 4px; padding: .2rem .45rem; font-size: .72rem;
font-weight: 700; cursor: pointer; transition: background .15s, color .15s; line-height: 1.3; }
.width-switcher button:hover { background: rgba(255,255,255,.18); color: #fff; }
.width-switcher button.ws-active { background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.5); }
/* ── Mise en page ─────────────────────────────────────────────── */
main { width: 100%; margin: 2rem auto; padding: 0 1.5rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
html[data-cw="900"] main { max-width: 900px; }
html[data-cw="1200"] main { max-width: 1200px; }
html[data-cw="1600"] main { max-width: 1600px; }
/* ── Carte générique ──────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.8rem; }
.card h2 { font-size: 1.05rem; color: var(--blue-dark); margin-bottom: 1rem; }
/* ── Statistiques globales ────────────────────────────────────── */
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 160px; background: var(--blue-light); border-radius: 8px; padding: 1.2rem 1.5rem; }
.stat-box .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.stat-box .value { font-size: 1.9rem; font-weight: 700; color: var(--blue-dark); line-height: 1; }
.stat-box .stat-sub { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
.stat-box--trash { background: #fef2f2; text-decoration: none; transition: box-shadow .15s; cursor: pointer; }
.stat-box--trash:hover { box-shadow: 0 4px 16px rgba(239,68,68,.18); text-decoration: none; }
.stat-box--trash .label { color: #b91c1c; }
.stat-box--trash .value { color: #991b1b; }
/* ── Grille de dossiers ───────────────────────────────────────── */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.folder-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .1s; border: 2px solid transparent; }
.folder-card:hover { box-shadow: 0 4px 20px rgba(26,107,191,.2); transform: translateY(-2px); text-decoration: none; border-color: var(--blue-light); }
.folder-card .icon { font-size: 1.8rem; }
.folder-card .name { font-weight: 700; color: var(--blue-dark); }
.folder-card .meta { font-size: .82rem; color: var(--muted); }
/* ── Fil d'Ariane ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .35rem; font-size: .88rem; flex-wrap: wrap; margin-bottom: .8rem; }
.breadcrumb a { color: var(--blue); }
.breadcrumb .sep { color: var(--muted); }
.breadcrumb .current { color: var(--text); font-weight: 600; }
/* ── Tableau de fichiers ──────────────────────────────────────── */
.file-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.file-table th { text-align: left; padding: .55rem .8rem; background: var(--blue-light); color: var(--blue-dark); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.file-table td { padding: .5rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.file-table tr:last-child td { border-bottom: none; }
.file-table tr:hover td { background: #f8faff; }
.col-icon { width: 2.2rem; text-align: center; font-size: 1.05rem; }
.col-name { display: flex; align-items: center; gap: .7rem; }
.col-name a { color: var(--text); font-weight: 500; }
.col-name a:hover { color: var(--blue); text-decoration: underline; }
.thumb-sm { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.type-badge { display: inline-block; font-size: .7rem; background: var(--blue-light); color: var(--blue-dark); border-radius: 3px; padding: .1rem .35rem; font-family: monospace; }
.col-size { color: var(--muted); font-size: .85rem; white-space: nowrap; width: 7rem; }
.col-date { color: var(--muted); font-size: .82rem; white-space: nowrap; width: 11rem; }
/* ── Aperçu de fichier ────────────────────────────────────────── */
.preview-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
/* ── Navigation précédent/suivant ────────────────────────────────────── */
.preview-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; background: var(--blue-light); color: var(--blue-dark); text-decoration: none; transition: background .15s; }
.nav-arrow:hover { background: var(--blue); color: #fff; text-decoration: none; }
.nav-arrow--off { background: #f0f0f0; color: #ccc; cursor: default; }
.nav-pos { font-size: .78rem; color: var(--muted); padding: 0 .3rem; white-space: nowrap; }
.preview-header h1 { font-size: 1.1rem; font-weight: 700; }
.back-link { color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.back-link:hover { color: var(--blue); text-decoration: none; }
.preview-meta { display: flex; gap: 1.5rem; align-items: center; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.preview-meta strong { color: var(--text); }
.preview-image-wrap { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.preview-image-wrap img { max-width: 100%; max-height: 72vh; border-radius: 6px; border: 1px solid var(--border); }
.preview-text-wrap { background: #111827; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.text-bar { background: #1f2937; color: #d1d5db; padding: .6rem 1.2rem; font-size: .85rem; display: flex; align-items: center; gap: .8rem; }
.preview-text-wrap pre { color: #a3e635; font-family: 'Courier New', monospace; font-size: .82rem; line-height: 1.6; padding: 1.2rem; overflow: auto; max-height: 72vh; white-space: pre-wrap; word-break: break-word; margin: 0; }
/* ── Recherche (header) ───────────────────────────────────────────── */
.header-search { display: flex; align-items: center; gap: .3rem; }
.header-search input { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; padding: .35rem .7rem; font-size: .88rem; width: 180px; outline: none; transition: background .15s, width .2s; }
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus { background: rgba(255,255,255,.2); width: 240px; }
.header-search button { background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; font-size: 1rem; padding: .3rem .4rem; line-height: 1; }
.header-search button:hover { color: #fff; }
/* ── Formulaire de recherche ──────────────────────────────────────── */
.search-form { display: flex; flex-direction: column; gap: .8rem; }
.search-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.search-field { display: flex; flex-direction: column; gap: .3rem; }
.search-field label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.search-field input { border: 1px solid var(--border); border-radius: 6px; padding: .5rem .8rem; font-size: .9rem; color: var(--text); background: #fff; outline: none; }
.search-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,107,191,.12); }
.search-field--grow { flex: 1; min-width: 200px; }
.search-options { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); cursor: pointer; }
.checkbox-label input { accent-color: var(--blue); }
.search-count { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.file-path { display: block; font-size: .78rem; color: var(--muted); font-family: monospace; }
.content-match { display: block; font-size: .8rem; color: #555; font-style: italic; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 500px; }
/* ── Statistiques (iframe) ────────────────────────────────────────── */
.stats-frame-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.stats-frame { width: 100%; height: calc(100vh - 120px); min-height: 600px; border: none; display: block; }
.inline-pre { background: #111827; color: #a3e635; font-family: 'Courier New', monospace; font-size: .82rem; padding: 1rem 1.2rem; border-radius: 8px; white-space: pre-wrap; word-break: break-all; }
/* ── Boutons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.4rem; border-radius: 6px; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 2rem; font-style: italic; }
/* ── Vues / actions (browse) ─────────────────────────────────────────── */
.col-hits { width: 4.5rem; text-align: right; white-space: nowrap; }
.col-actions { width: 5.5rem; text-align: right; }
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: .1rem; }
.hits-badge { display: inline-block; font-size: .75rem; border-radius: 10px; padding: .1rem .45rem; font-weight: 600; }
.hits-active { background: #dcfce7; color: #15803d; }
.hits-zero { background: #f3f4f6; color: #9ca3af; }
.btn-del { background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .4; padding: .2rem; line-height: 1; transition: opacity .15s; }
.btn-del:hover { opacity: 1; }
.btn-rename { background: none; border: none; cursor: pointer; font-size: .85rem; opacity: .35; padding: .2rem; line-height: 1; transition: opacity .15s; }
.btn-rename:hover { opacity: 1; }
/* ── Rename inline ───────────────────────────────────────────────────── */
.btn-icon { background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .4; padding: .15rem; line-height: 1; transition: opacity .15s; }
.btn-icon:hover { opacity: 1; }
.rename-inline { display: flex; align-items: center; gap: .4rem; padding: .4rem 0; flex-wrap: wrap; }
.rename-input { border: 1px solid var(--blue); border-radius: 5px; padding: .3rem .6rem; font-size: .88rem; outline: none; min-width: 200px; }
.rename-input:focus { box-shadow: 0 0 0 2px rgba(26,107,191,.18); }
.btn-rename-ok { background: none; border: none; cursor: pointer; color: #15803d; font-size: 1rem; padding: .2rem .4rem; border-radius: 4px; }
.btn-rename-ok:hover { background: #dcfce7; }
.btn-rename-cancel { background: none; border: none; cursor: pointer; color: #b91c1c; font-size: 1rem; padding: .2rem .4rem; border-radius: 4px; }
.btn-rename-cancel:hover { background: #fef2f2; }
.rename-error { font-size: .8rem; color: #b91c1c; font-style: italic; }
/* ── Upload ───────────────────────────────────────────────────────── */
.upload-card h2 { margin-bottom: .8rem; }
.conflict-panel { margin-top: .9rem; padding: 1rem 1.2rem; background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); display: flex; flex-direction: column; gap: .7rem; }
.conflict-title { font-size: .88rem; color: #92400e; }
.conflict-actions { display: flex; align-items: center; gap: .8rem; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; text-align: center; position: relative; margin-bottom: 1rem; }
.drop-zone:hover, .drop-zone:focus-within { border-color: var(--blue); background: var(--blue-light); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon { font-size: 2rem; pointer-events: none; }
.drop-text { font-size: .9rem; color: var(--muted); line-height: 1.5; pointer-events: none; }
.drop-names { font-size: .82rem; color: var(--blue-dark); font-style: italic; word-break: break-all; pointer-events: none; }
/* ── Métadonnées image ────────────────────────────────────────────── */
.meta-card { padding: 1rem 1.8rem; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem .8rem; }
.meta-item { display: flex; flex-direction: column; gap: .1rem; padding: .4rem .5rem; border-radius: 6px; background: var(--bg); }
.meta-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.meta-value { font-size: .88rem; color: var(--text); font-weight: 500; word-break: break-word; }
.meta-value a { color: var(--blue); font-weight: 400; }
/* ── Redimensionnement ────────────────────────────────────────────── */
.resize-card h2 { margin-bottom: 1rem; }
.resize-body { display: flex; flex-direction: column; gap: 1rem; }
.resize-group { display: flex; flex-direction: column; gap: .5rem; }
.resize-group-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.resize-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
display: inline-block; padding: .3rem .75rem; border-radius: 20px;
border: 2px solid var(--border); background: #fff; font-size: .85rem;
color: var(--text); transition: border-color .12s, background .12s, color .12s;
user-select: none;
}
.chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip:hover:not(.chip--disabled) span { border-color: var(--blue); }
.chip--disabled { cursor: not-allowed; opacity: .45; }
.chip--disabled span { background: #f3f4f6; color: #9ca3af; }
.resize-chips--radio { gap: 0; }
.resize-chips--radio .chip span { border-radius: 0; border-right-width: 0; }
.resize-chips--radio .chip:first-child span { border-radius: 20px 0 0 20px; }
.resize-chips--radio .chip:last-child span { border-radius: 0 20px 20px 0; border-right-width: 2px; }
.resize-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.resize-hint { font-size: .82rem; color: var(--muted); font-style: italic; }
.resize-custom-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.custom-dim { width: 5.5rem; padding: .35rem .5rem; border: 1.5px solid var(--border); border-radius: 6px;
font-size: .9rem; text-align: center; background: var(--surface); color: var(--text); }
.custom-dim:focus { outline: none; border-color: var(--accent); }
.custom-dim:invalid { border-color: #ef4444; }
.custom-dim-sep { font-size: 1rem; color: var(--muted); }
.custom-dim-unit { font-size: .82rem; color: var(--muted); }
.custom-square-lock { display: flex; align-items: center; gap: .3rem; font-size: .82rem;
color: var(--muted); cursor: pointer; user-select: none; }
.resize-result { border-top: 1px solid var(--border); padding-top: .9rem; font-size: .88rem; }
.resize-ok-title { color: #15803d; font-weight: 600; margin-bottom: .35rem; }
.resize-err-title { color: #b91c1c; font-weight: 600; margin-bottom: .35rem; }
.resize-none { color: var(--muted); font-style: italic; }
.resize-list { list-style: none; margin: 0 0 .6rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.resize-list li { font-size: .83rem; }
.resize-list a { color: var(--blue); font-family: monospace; }
.resize-list--err li { color: #b91c1c; }
.resize-list--err code { background: #fef2f2; border-radius: 3px; padding: .1rem .3rem; }
/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
.header-inner { flex-wrap: wrap; }
.header-nav { order: 3; width: 100%; }
.header-search { order: 4; width: 100%; }
.header-search input { width: 100%; }
.header-user { order: 2; }
.col-date { display: none; }
.stat-box .value { font-size: 1.4rem; }
}
/* ── Footer ─────────────────────────────────────────────────────────── */
footer { background: var(--blue-dark); color: rgba(255,255,255,.6); margin-top: auto; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: .9rem 1.5rem;
display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.85);
font-size: .88rem; text-decoration: none; }
.footer-brand img { opacity: .75; border-radius: 3px; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-brand strong { font-weight: 700; }
.footer-nav { display: flex; gap: 1.2rem; flex: 1; }
.footer-nav a { color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-nav a:hover { color: rgba(255,255,255,.9); text-decoration: none; }
.footer-version { margin-left: auto; font-size: .75rem; color: rgba(255,255,255,.35);
font-family: monospace; text-decoration: none; }
.footer-version:hover { color: rgba(255,255,255,.7); text-decoration: none; }
/* ── Changelog ──────────────────────────────────────────────────────── */
.cl-section { padding: .25rem 0 1rem; }
.cl-section--latest .cl-header { margin-bottom: .75rem; }
.cl-header { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .6rem; flex-wrap: wrap; }
.cl-version { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); font-family: monospace; }
.cl-date { font-size: .82rem; color: var(--muted); }
.cl-badge { background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700;
padding: .15rem .5rem; border-radius: 20px; letter-spacing: .03em; }
.cl-group { margin: .6rem 0 0 0; }
.cl-group-title { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
letter-spacing: .06em; padding: .1rem .5rem; border-radius: 3px; margin-bottom: .35rem; }
.cl-group-title--ajouté { background: #dcfce7; color: #166534; }
.cl-group-title--corrigé { background: #fee2e2; color: #991b1b; }
.cl-group-title--modifié { background: #fef3c7; color: #92400e; }
.cl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.cl-list li { font-size: .88rem; color: var(--text); padding-left: 1.1rem; position: relative; }
.cl-list li::before { content: ""; position: absolute; left: 0; color: var(--muted); }
.cl-sep { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
/* ── Corbeille ──────────────────────────────────────────────────────── */
.trash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: .5rem; }
.trash-header h2 { margin: 0; font-size: 1.1rem; }
.trash-count-label { font-weight: 400; color: var(--muted); }
.trash-info { font-size: .82rem; color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.trash-filename { font-weight: 500; }
.col-origin { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--muted); }
.btn-restore { background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .5; padding: .2rem; line-height: 1; transition: opacity .15s; }
.btn-restore:hover { opacity: 1; }
.btn-del--perm { color: #b91c1c; }
.btn-danger { background: #b91c1c; color: #fff; border: none; border-radius: 6px; padding: .45rem .9rem; font-size: .88rem; cursor: pointer; font-weight: 600; transition: background .15s; }
.btn-danger:hover { background: #991b1b; }
/* ── Erreurs 404 ────────────────────────────────────────────────────── */
.err-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: .5rem; }
.err-header h2 { margin: 0; }
.err-total-badge { font-size: .75rem; font-weight: 400; color: var(--muted); margin-left: .5rem; }
.btn-sm { font-size: .8rem; padding: .3rem .7rem; background: var(--blue-light); color: var(--blue); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.err-table .err-path code { font-size: .82rem; color: var(--text); word-break: break-all; }
.col-err-status { width: 1.5rem; text-align: center; }
.col-err-count { width: 6rem; text-align: right; }
.col-err-ips { width: 4rem; text-align: right; }
.err-status-dot { font-size: 1rem; cursor: pointer; transition: color .2s; }
.err-status-dot--active { color: #ef4444; }
.err-status-dot--ok { color: #22c55e; }
.err-status-dot--unk { color: #d1d5db; }
.err-detail-cell { padding: 0 !important; background: #f8fafd; }
.err-detail-content { padding: .75rem 1.2rem; }
.err-detail-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.err-detail-info { font-size: .82rem; color: var(--muted); }
.err-badge { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 20px; }
.err-badge--active { background: #fee2e2; color: #991b1b; }
.err-badge--ok { background: #dcfce7; color: #166534; }
.err-ip-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.err-ip-table th { text-align: left; padding: .3rem .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); }
.err-ip-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.err-ip-table tr:last-child td { border-bottom: none; }
.err-ip-ignored td { opacity: .45; }
.err-ip { font-size: .82rem; }
.err-ignored-tag { font-size: .68rem; background: #e5e7eb; color: #6b7280; padding: .1rem .35rem; border-radius: 3px; margin-left: .3rem; }
.err-referers { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 28rem; }
.err-referer { font-size: .75rem; background: var(--blue-light); color: var(--blue); border-radius: 3px; padding: .1rem .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }
.btn-ignore-ip { background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .5; padding: .15rem; transition: opacity .15s; }
.btn-ignore-ip:hover, .btn-ignore-ip--active { opacity: 1; }
.btn-ban-ip { background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .5; padding: .15rem; transition: opacity .15s; }
.btn-ban-ip:hover { opacity: 1; }
.err-loading { color: var(--muted); font-size: .85rem; font-style: italic; }
.err-ignored-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.err-ignored-chip { display: inline-flex; align-items: center; gap: .35rem; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 20px; padding: .2rem .6rem .2rem .8rem; font-size: .82rem; font-family: monospace; }
.err-ignored-remove { background: none; border: none; cursor: pointer; font-size: .75rem; color: #9ca3af; line-height: 1; padding: 0; transition: color .15s; }
.err-ignored-remove:hover { color: #ef4444; }