Actualiser css/admin.css
This commit is contained in:
+78
-627
@@ -2,634 +2,85 @@
|
||||
admin.css — Backoffice Mon Cinéma (Refonte Ergonomique)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* --- VARIABLES DE BASE (Surcharge optionnelle de public.css) --- */
|
||||
:root {
|
||||
--transition-speed: 0.25s;
|
||||
--border-radius-sm: 6px;
|
||||
--border-radius-md: 10px;
|
||||
--border-radius-lg: 16px;
|
||||
--shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
|
||||
--shadow-md: 0 8px 24px rgba(0,0,0,0.2);
|
||||
--shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
/* --- CONTENEUR PRINCIPAL --- */
|
||||
.admin-wrap {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
EN-TÊTE ADMIN
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.admin-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.header-titles h1 {
|
||||
font-size: 2.2rem;
|
||||
font-weight: 800;
|
||||
margin-bottom: 0.2rem;
|
||||
letter-spacing: -0.5px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.header-titles h1 span {
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.header-titles p {
|
||||
color: var(--muted);
|
||||
font-size: 0.95rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
BOUTONS D'ACTION (Boutons plus tactiles et accessibles)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.btn-action {
|
||||
background: var(--surface-card);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.6rem 1.2rem;
|
||||
border-radius: var(--border-radius-md);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: all var(--transition-speed) ease;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn-action i {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.btn-action:hover {
|
||||
border-color: var(--gold);
|
||||
color: var(--gold);
|
||||
background: var(--surface-hover);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-action.outline {
|
||||
background: transparent;
|
||||
border-color: var(--muted);
|
||||
color: var(--muted);
|
||||
}
|
||||
.btn-action.outline:hover {
|
||||
color: var(--text);
|
||||
border-color: var(--text);
|
||||
}
|
||||
|
||||
.btn-action.primary {
|
||||
background: var(--gold);
|
||||
color: var(--background);
|
||||
border-color: var(--gold);
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
|
||||
}
|
||||
|
||||
.btn-action.primary:hover {
|
||||
background: #e5c347; /* Légèrement plus clair */
|
||||
box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-action.danger-solid {
|
||||
background: #ff4757;
|
||||
color: #fff;
|
||||
border-color: #ff4757;
|
||||
}
|
||||
|
||||
.btn-action.danger-solid:hover {
|
||||
background: #ff6b81;
|
||||
box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 0.4rem 0.8rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
ONGLETS (Style Segmented Control moderne)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.pub-tabs-container {
|
||||
display: flex;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.pub-tabs {
|
||||
background-color: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.3rem;
|
||||
border-radius: var(--border-radius-md);
|
||||
display: inline-flex;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--muted);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
padding: 0.6rem 1.5rem;
|
||||
border-radius: var(--border-radius-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: all var(--transition-speed) ease;
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.tab-btn.active {
|
||||
background-color: var(--surface-card);
|
||||
color: var(--gold);
|
||||
font-weight: 600;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* ═════════════════════════════════════════════════════════════
|
||||
BARRES D'OUTILS ET RECHERCHE
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.admin-toolbar, .admin-filters {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.count {
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
background: var(--surface);
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: var(--border-radius-sm);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
width: 100%;
|
||||
padding: 0.85rem 1rem 0.85rem 2.8rem;
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--border-radius-md);
|
||||
color: var(--text);
|
||||
font-size: 0.95rem;
|
||||
transition: all var(--transition-speed);
|
||||
}
|
||||
|
||||
.search-box input:focus {
|
||||
outline: none;
|
||||
border-color: var(--gold);
|
||||
box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
|
||||
}
|
||||
|
||||
.search-box i {
|
||||
position: absolute;
|
||||
left: 1rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--muted);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
BARRE ACTIONS GROUPÉES (Sticky & Animée)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.bulk-actions-bar {
|
||||
background: rgba(255, 71, 87, 0.1);
|
||||
border: 1px solid rgba(255, 71, 87, 0.3);
|
||||
border-radius: var(--border-radius-md);
|
||||
padding: 0.8rem 1.5rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #ff4757;
|
||||
font-weight: 600;
|
||||
animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-15px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
TABLEAU PRINCIPAL (Sticky Header)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.table-container {
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--border-radius-lg);
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
max-height: 65vh; /* Ergonomie : le tableau a son propre scroll */
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.admin-table {
|
||||
width: 100%;
|
||||
border-collapse: separate; /* Nécessaire pour le sticky */
|
||||
border-spacing: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* En-tête fixe */
|
||||
.admin-table thead th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: var(--surface-card);
|
||||
z-index: 10;
|
||||
padding: 1rem;
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: var(--muted);
|
||||
font-weight: 600;
|
||||
border-bottom: 2px solid var(--border);
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Ombre légère sous le header */
|
||||
}
|
||||
|
||||
.admin-table tbody td {
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
vertical-align: middle;
|
||||
transition: background var(--transition-speed);
|
||||
}
|
||||
|
||||
.admin-table tbody tr:hover td {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
/* Checkbox personnalisées */
|
||||
input[type="checkbox"] {
|
||||
appearance: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid var(--muted);
|
||||
border-radius: 4px;
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
background: var(--gold);
|
||||
border-color: var(--gold);
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked::after {
|
||||
content: '✓';
|
||||
color: var(--background);
|
||||
position: absolute;
|
||||
top: 50%; left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 14px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
ÉLÉMENTS DU TABLEAU (Badges, Affiches, Actions)
|
||||
══════════════════════════════════════════════════════════════ */
|
||||
.thumb, .thumb-ph {
|
||||
width: 60px;
|
||||
height: 85px;
|
||||
object-fit: cover;
|
||||
border-radius: var(--border-radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.thumb-ph {
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.tbl-stars {
|
||||
color: var(--gold);
|
||||
font-size: 1rem;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.half-star { position: relative; display: inline-block; color: rgba(255,255,255,0.2); }
|
||||
.half-star::before { content: '★'; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--gold); }
|
||||
.stars-muted { color: rgba(255,255,255,0.2); }
|
||||
|
||||
.info-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
/* Badges unifiés */
|
||||
.rating-badge, .streaming-badge, .physical-badge, .badge-format {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.25rem 0.6rem;
|
||||
border-radius: 20px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
width: fit-content;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.rating-badge, .badge-format {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--gold);
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.streaming-badge {
|
||||
background: rgba(212, 175, 55, 0.1);
|
||||
color: var(--gold);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.physical-badge {
|
||||
background: var(--surface);
|
||||
color: var(--muted);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Actions des lignes */
|
||||
.tbl-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.tbl-actions button {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: var(--border-radius-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.1rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tbl-actions button:hover {
|
||||
border-color: var(--gold);
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.tbl-actions button.del:hover {
|
||||
border-color: #ff4757;
|
||||
color: #ff4757;
|
||||
background: rgba(255, 71, 87, 0.1);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
PAGINATION
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.pagination button {
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
min-width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--border-radius-sm);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.pagination button:hover:not(:disabled) {
|
||||
border-color: var(--gold);
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.pagination button.active {
|
||||
background: var(--gold);
|
||||
color: var(--background);
|
||||
border-color: var(--gold);
|
||||
}
|
||||
|
||||
.pagination button:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
MODALES (Fenêtres pop-up)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.overlay {
|
||||
position: fixed;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
backdrop-filter: blur(5px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.overlay.open {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--surface-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--border-radius-lg);
|
||||
padding: 2.5rem;
|
||||
width: 90%;
|
||||
max-width: 650px;
|
||||
position: relative;
|
||||
transform: translateY(20px) scale(0.98);
|
||||
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
box-shadow: var(--shadow-lg);
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.overlay.open .modal {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
position: absolute;
|
||||
top: 1.5rem; right: 1.5rem;
|
||||
background: var(--surface);
|
||||
border: none;
|
||||
color: var(--muted);
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
background: #ff4757;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.modal-h {
|
||||
margin-bottom: 2rem;
|
||||
color: var(--text);
|
||||
font-size: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.modal-h i {
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
/* ═════════════════════════════════════════════════════════════
|
||||
FORMULAIRES (Intégrés dans les modales)
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group textarea,
|
||||
.form-group select {
|
||||
width: 100%;
|
||||
padding: 0.9rem 1rem;
|
||||
background: var(--background);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
border-radius: var(--border-radius-md);
|
||||
font-size: 0.95rem;
|
||||
transition: all var(--transition-speed);
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group textarea:focus,
|
||||
.form-group select:focus {
|
||||
outline: none;
|
||||
border-color: var(--gold);
|
||||
box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
|
||||
}
|
||||
|
||||
.divider {
|
||||
margin: 2rem 0 1.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px dashed var(--border);
|
||||
color: var(--gold);
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Zone d'import CSV */
|
||||
.import-box {
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: var(--border-radius-md);
|
||||
padding: 2.5rem 1rem;
|
||||
text-align: center;
|
||||
background: var(--surface);
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.import-box:hover {
|
||||
border-color: var(--gold);
|
||||
background: rgba(212, 175, 55, 0.05);
|
||||
}
|
||||
|
||||
.import-box input[type="file"] {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.import-box i {
|
||||
font-size: 2.5rem;
|
||||
color: var(--gold);
|
||||
margin-bottom: 0.5rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Barre de sécurité */
|
||||
.security-banner {
|
||||
background: rgba(255, 71, 87, 0.1);
|
||||
border: 1px solid rgba(255, 71, 87, 0.3);
|
||||
color: #ff4757;
|
||||
padding: 1rem 1.5rem;
|
||||
border-radius: var(--border-radius-md);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
--bg: #0a0a0c; --surface: #121216; --surface-card: #1a1a20;
|
||||
--border: #2a2a35; --text: #e8e8ed; --muted: #8a8a9a;
|
||||
--gold: #c9a84c; --gold-dim: rgba(201, 168, 76, 0.2);
|
||||
--shadow-sm: 0 4px 12px rgba(0,0,0,0.4); --shadow-lg: 0 10px 30px rgba(0,0,0,0.6);
|
||||
--radius: 10px; --radius-lg: 14px;
|
||||
}
|
||||
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 2rem; }
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
/* HEADER */
|
||||
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
|
||||
.header-titles h1 { margin: 0; font-size: 1.8rem; font-family: serif; }
|
||||
.header-titles h1 span { color: var(--gold); }
|
||||
.header-titles p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; }
|
||||
.header-actions { display: flex; gap: 0.6rem; }
|
||||
.btn-action { padding: 0.6rem 1rem; background: var(--surface-card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; transition: all 0.2s; }
|
||||
.btn-action:hover { border-color: var(--gold); color: var(--gold); }
|
||||
.btn-action.secondary { background: var(--gold); color: #000; border: none; font-weight: 600; }
|
||||
.btn-action.secondary:hover { background: #b5953f; }
|
||||
|
||||
/* ONGLETS CENTRÉS */
|
||||
.tabs-container { display: flex; justify-content: center; margin-bottom: 1.5rem; }
|
||||
.tab-btns { display: inline-flex; background: var(--surface); padding: 0.4rem; border-radius: 12px; border: 1px solid var(--border); }
|
||||
.tab-btn { background: transparent; border: none; color: var(--muted); padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; transition: all 0.2s; }
|
||||
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
|
||||
.tab-btn.active { background: var(--surface-card); color: var(--gold); box-shadow: var(--shadow-sm); font-weight: 600; }
|
||||
|
||||
/* TOOLBAR */
|
||||
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
|
||||
.search-box { position: relative; flex: 1; max-width: 400px; }
|
||||
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
|
||||
.search-box input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.8rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.95rem; outline: none; }
|
||||
.search-box input:focus { border-color: var(--gold); }
|
||||
.admin-count { color: var(--muted); font-size: 0.9rem; }
|
||||
|
||||
/* TABLEAU (Fixe, sans scroll horizontal) */
|
||||
.table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); max-height: 65vh; overflow-y: auto; }
|
||||
.admin-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
|
||||
.admin-table thead th { background: var(--surface); color: var(--muted); padding: 0.9rem 1rem; border-bottom: 2px solid var(--border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; position: sticky; top: 0; z-index: 10; }
|
||||
.admin-table tbody td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.admin-table tbody tr:hover td { background: var(--surface); }
|
||||
.admin-table tbody tr:last-child td { border-bottom: none; }
|
||||
|
||||
/* Largeurs fixes pour éviter le débordement */
|
||||
.admin-table thead th:nth-child(1), .admin-table tbody td:nth-child(1) { width: 50px; text-align: center; }
|
||||
.admin-table thead th:nth-child(2), .admin-table tbody td:nth-child(2) { width: auto; }
|
||||
.admin-table thead th:nth-child(3), .admin-table tbody td:nth-child(3) { width: 80px; }
|
||||
.admin-table thead th:nth-child(4), .admin-table tbody td:nth-child(4) { width: 25%; }
|
||||
.admin-table thead th:nth-child(5), .admin-table tbody td:nth-child(5) { width: 20%; }
|
||||
.admin-table thead th:nth-child(6), .admin-table tbody td:nth-child(6) { width: 110px; text-align: right; }
|
||||
|
||||
.tbl-stars .half-star { color: var(--muted); }
|
||||
.badge-format { background: var(--surface); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; border: 1px solid var(--border); }
|
||||
.tbl-actions { display: inline-flex; gap: 0.5rem; }
|
||||
.tbl-actions button { background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; padding: 0.4rem; border-radius: 6px; transition: all 0.2s; }
|
||||
.tbl-actions button:hover { color: var(--gold); border-color: var(--gold); }
|
||||
.tbl-actions button.del:hover { color: #ff4757; border-color: #ff4757; background: rgba(255,71,87,0.1); }
|
||||
|
||||
/* PAGINATION */
|
||||
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 1rem 0; }
|
||||
.pagination button { background: var(--surface-card); border: 1px solid var(--border); color: var(--muted); padding: 0.5rem 0.8rem; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
|
||||
.pagination button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
|
||||
.pagination button.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 600; }
|
||||
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.pagination-info { color: var(--muted); font-size: 0.85rem; margin-right: 0.5rem; }
|
||||
|
||||
/* MODALES */
|
||||
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; }
|
||||
.overlay.open { opacity: 1; visibility: visible; }
|
||||
.modal { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; width: 90%; max-width: 600px; position: relative; transform: translateY(20px); transition: all 0.3s ease; max-height: 90vh; overflow-y: auto; }
|
||||
.overlay.open .modal { transform: translateY(0); }
|
||||
.modal-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
|
||||
.modal-close:hover { color: var(--text); }
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
|
||||
.form-grid input, .form-grid textarea { width: 100%; padding: 0.7rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); outline: none; }
|
||||
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--gold); }
|
||||
.form-grid textarea { grid-column: span 2; min-height: 80px; resize: vertical; }
|
||||
input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════
|
||||
RESPONSIVE MOBILE (Transformation en Cartes)
|
||||
|
||||
Reference in New Issue
Block a user