Actualiser css/admin.css

This commit is contained in:
2026-06-22 13:59:17 +02:00
parent 4823874c8f
commit 565b4aced7
+28 -115
View File
@@ -1,21 +1,10 @@
/* ══════════════════════════════════════════════════════════════
admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes)
admin.css — Backoffice Mon Cinéma
══════════════════════════════════════════════════════════════ */
.admin-wrap {
max-width: 1400px;
margin: 0 auto;
padding: 1rem 1.5rem;
}
.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 1rem 1.5rem; }
/* EN-TÊTE */
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
margin-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.header-titles h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text); }
.header-titles h1 span { color: var(--gold); }
.header-titles p { color: var(--muted); font-size: 0.9rem; margin: 0; }
@@ -51,17 +40,7 @@
.bulk-actions-bar { background: rgba(212, 175, 55, 0.1); 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); }
/* TABLEAU */
/* ══════════════════════════════════════════════════════════════
CORRECTION : SUPPRESSION DU SCROLL INTERNE
══════════════════════════════════════════════════════════════ */
.table-container {
background: var(--surface-card);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
max-height: none;
overflow-y: visible;
}
.table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); max-height: none; overflow-y: visible; }
.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; position: sticky; top: 0; z-index: 10; }
.admin-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
@@ -72,10 +51,7 @@
.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 {
/* Augmentez l'opacité de 0.2 à 0.4 ou 0.5 */
color: rgba(255, 255, 255, 0.45);
}
.stars-muted { color: rgba(255, 255, 255, 0.45); }
.badge-format { font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--gold); color: var(--gold); font-weight: 600; }
.tbl-actions button { background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; width: 34px; height: 34px; border-radius: 6px; display: inline-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); }
@@ -87,7 +63,7 @@ input[type="checkbox"]:checked { background: var(--gold); border-color: var(--go
input[type="checkbox"]:checked::after { content: '✓'; color: var(--background); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 900; }
/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding-top: 1.5rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding-top: 1.5rem; flex-wrap: wrap; }
.pagination span.pagination-info { color: var(--muted); font-size: 0.85rem; margin-right: 1rem; }
.pagination button { background: var(--surface-card); border: 1px solid var(--border); color: var(--text); min-width: 36px; height: 36px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pagination button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
@@ -108,7 +84,7 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background)
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; background: var(--background); border: 1px solid var(--border); color: var(--text); border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; background: var(--background); border: 1px solid var(--border); color: var(--text); border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.divider { margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); color: var(--gold); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
@@ -118,89 +94,22 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background)
.thumb, .thumb-ph { width: 45px; height: 65px; object-fit: cover; border-radius: 6px; 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); font-size: 1.5rem; }
/* ZONE D'IMPORT CSV */
.import-section { margin: 1.5rem 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.import-section h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.import-section h3 i { color: var(--gold); }
.import-section > p { margin: 0 0 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
.modal h3 { white-space: nowrap; overflow: visible; text-overflow: clip; }
/* ══════════════════════════════════════════════════════════════
ZONE D'IMPORT CSV (Style Unifié et Corrigé)
══════════════════════════════════════════════════════════════ */
.import-section {
margin: 1.5rem 0;
padding: 1.5rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
}
.import-section h3 {
margin: 0 0 0.5rem 0;
font-size: 1.1rem;
color: var(--text);
display: flex;
align-items: center;
gap: 0.5rem;
}
.import-section h3 i {
color: var(--gold);
}
.import-section > p {
margin: 0 0 1.5rem 0;
color: var(--muted);
font-size: 0.9rem;
}
/* 🔥 LA ZONE DE DROP / CLIC (CORRIGÉE) */
.import-box {
display: flex;
flex-direction: column; /* 🔥 CLÉ : Force le contenu à être vertical (icône en haut, texte en bas) */
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
box-sizing: border-box;
padding: 2.5rem 1.5rem;
margin-top: 0.5rem;
background: var(--background);
border: 2px dashed var(--border); /* Bordure pointillée restaurée */
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
}
.import-box:hover {
border-color: var(--gold);
background: var(--surface-hover);
transform: translateY(-2px); /* Léger effet de survol */
}
.import-box i {
font-size: 3rem;
color: var(--gold);
margin-bottom: 1rem;
display: block;
}
.import-box p {
margin: 0.2rem 0;
color: var(--muted);
font-size: 0.9rem;
line-height: 1.4;
}
.import-box p strong {
color: var(--text);
font-size: 1rem;
display: block;
margin-bottom: 0.3rem;
}
/* Cache l'input file natif pour ne pas casser le layout */
.import-box input[type="file"] {
display: none;
display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
width: 100%; box-sizing: border-box; padding: 2.5rem 1.5rem; margin-top: 0.5rem;
background: var(--background); border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; transition: all 0.3s ease;
}
.import-box:hover { border-color: var(--gold); background: var(--surface-hover); transform: translateY(-2px); }
.import-box i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.import-box p { margin: 0.2rem 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.import-box p strong { color: var(--text); font-size: 1rem; display: block; margin-bottom: 0.3rem; }
.import-box input[type="file"] { display: none; }
.progress-container { background: var(--border); border-radius: 10px; height: 12px; width: 100%; margin: 1.5rem 0; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gold); width: 0%; transition: width 0.4s ease; border-radius: 10px; }
@@ -224,15 +133,19 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background)
"poster info actions";
gap: 0.2rem 1rem;
padding: 0.8rem;
background: var(--surface-card);
border: 1px solid var(--border);
border-radius: 8px;
margin-bottom: 1rem;
}
.admin-table td { border: none; padding: 0.3rem 0; text-align: left; }
.admin-table td:nth-child(1) { display: none; } /* Checkbox */
.admin-table td:nth-child(2) { grid-area: poster; grid-row: span 3; } /* 🔥 FIX: Ajout de grid-row pour éviter le collapse */
.admin-table td:nth-child(1) { display: none; }
.admin-table td:nth-child(2) { grid-area: poster; grid-row: span 3; }
.admin-table td:nth-child(3) { grid-area: title; font-size: 1rem; margin-bottom: 0; }
.admin-table td:nth-child(4) { display: none; } /* Année */
.admin-table td:nth-child(4) { display: none; }
.admin-table td:nth-child(5) { grid-area: director; margin-top: 0; font-size: 0.85rem; color: var(--muted); }
.admin-table td:nth-child(6) { grid-area: info; display: flex; align-items: center; gap: 5px; }
.admin-table td:nth-child(7) { grid-area: actions; grid-row: span 3; flex-direction: column; gap: 0.5rem; justify-content: flex-start; } /* 🔥 FIX */
.admin-table td:nth-child(7) { grid-area: actions; grid-row: span 3; flex-direction: column; gap: 0.5rem; justify-content: flex-start; }
.tbl-actions { justify-content: flex-start; }
}