Actualiser css/admin.css

This commit is contained in:
2026-06-21 10:47:57 +02:00
parent c38b540209
commit 82017f29a9
+10 -32
View File
@@ -1,5 +1,5 @@
/* ══════════════════════════════════════════════════════════════
admin.css — Backoffice Mon Cinéma (Version Corrigée & 6 Colonnes)
admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes)
═══════════════════════════════════════════════════════════════ */
.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; }
@@ -40,7 +40,7 @@ admin.css — Backoffice Mon Cinéma (Version Corrigée & 6 Colonnes)
.bulk-actions-bar { background: var(--gold-dim); border: 1px solid var(--gold); border-radius: 8px; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: var(--gold); animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
/* TABLEAU (6 COLONNES) */
/* TABLEAU (6 COLONNES FIXES) */
.table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); max-height: 65vh; overflow-y: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
.admin-table thead th { background: var(--surface); color: var(--muted); font-weight: 600; padding: 1rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; position: sticky; top: 0; z-index: 10; }
@@ -51,11 +51,11 @@ admin.css — Backoffice Mon Cinéma (Version Corrigée & 6 Colonnes)
/* Largeurs des 6 colonnes */
.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: 35%; }
.admin-table thead th:nth-child(2), .admin-table tbody td:nth-child(2) { width: auto; } /* Titre prend l'espace restant */
.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: 20%; }
.admin-table thead th:nth-child(5), .admin-table tbody td:nth-child(5) { width: 25%; }
.admin-table thead th:nth-child(6), .admin-table tbody td:nth-child(6) { width: 120px; text-align: right; }
.admin-table thead th:nth-child(6), .admin-table tbody td:nth-child(6) { width: 100px; text-align: right; }
/* Éléments tableau */
.badge-format { background: var(--surface); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; color: var(--gold); display: inline-block; font-weight: 500; }
@@ -79,7 +79,7 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background)
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2rem; padding: 1rem 0; flex-wrap: wrap; }
.pagination button { background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); min-width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s; font-weight: 500; font-size: 0.9rem; }
.pagination button:hover:not(:disabled):not(.active) { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.pagination button.active { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; }
.pagination button.active { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; box-shadow: 0 4px 10px var(--gold-glow); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination-info { color: var(--muted); font-size: 0.9rem; margin: 0 1rem; font-weight: 500; }
@@ -104,38 +104,16 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background)
.import-box i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.security-banner { background: rgba(255, 71, 87, 0.05); border: 1px solid rgba(255, 71, 87, 0.3); color: #ff4757; padding: 1.2rem 1.5rem; border-radius: 12px; margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: center; }
/* RESPONSIVE MOBILE (Adapté à 6 colonnes) */
/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
.admin-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.form-grid { grid-template-columns: 1fr; }
.table-container { background: transparent; border: none; box-shadow: none; overflow-y: visible; max-height: none; }
.admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { display: block; }
.admin-table thead { display: none; }
.admin-table tbody tr {
display: grid;
grid-template-columns: 40px 1fr;
grid-template-areas: "check title" "check year" "check director" "check badges" "actions actions";
gap: 0.4rem 1rem;
background: var(--surface-card);
border: 1px solid var(--border);
border-radius: 10px;
margin-bottom: 0.8rem;
padding: 1rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
align-items: center;
}
.admin-table td { display: block; padding: 0; border: none; text-align: left; white-space: normal; }
.admin-table td:nth-child(1) { grid-area: check; }
.admin-table td:nth-child(2) { grid-area: title; }
.admin-table td:nth-child(2) strong { font-size: 1.1rem; color: var(--gold); }
.admin-table td:nth-child(3) { grid-area: year; font-size: 0.85rem; color: var(--muted); }
.admin-table td:nth-child(3)::before { content: '🗓️ '; }
.admin-table td:nth-child(4) { grid-area: director; font-size: 0.85rem; color: var(--muted); }
.admin-table td:nth-child(4)::before { content: '🎬 '; }
.admin-table td:nth-child(5) { grid-area: badges; margin-top: 0.5rem; }
.admin-table td:nth-child(6) { grid-area: actions; display: flex; justify-content: stretch; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.tbl-actions { width: 100%; justify-content: space-between; }
.tbl-actions button { flex: 1; height: 44px; border: 1px solid var(--border); }
.admin-table tbody tr { background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.8rem; padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.admin-table td { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; }
.admin-table td:last-child { border-bottom: none; }
.admin-table td:first-child { justify-content: flex-end; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); margin-bottom: 0.4rem; }
.search-box { max-width: 100%; }
}