From 2fe92a00e07882dddc5c68de325750380826b1cf Mon Sep 17 00:00:00 2001 From: Cedric Date: Mon, 22 Jun 2026 11:58:51 +0200 Subject: [PATCH] Actualiser css/admin.css --- css/admin.css | 217 +++++++++++++------------------------------------- 1 file changed, 54 insertions(+), 163 deletions(-) diff --git a/css/admin.css b/css/admin.css index 9299b8d..7d8a0e6 100644 --- a/css/admin.css +++ b/css/admin.css @@ -1,20 +1,20 @@ /* ══════════════════════════════════════════════════════════════ -admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes) -═══════════════════════════════════════════════════════════════ */ -.admin-wrap { - max-width: 1400px; - margin: 0 auto; - padding: 1rem 1.5rem; /* Réduit de 2rem à 1rem */ + admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes) + ══════════════════════════════════════════════════════════════ */ +.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; /* Réduit de 1.5rem à 1rem */ - margin-bottom: 1rem; /* Réduit de 2rem à 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); } @@ -28,39 +28,19 @@ admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes) .btn-action.primary:hover { background: #e5c347; transform: translateY(-1px); } .btn-action.danger-solid { background: #ff4757; color: #fff; border-color: #ff4757; } .btn-action.danger-solid:hover { background: #ff6b81; } -.btn-action.outline { - background: transparent !important; - border: 1px solid var(--border) !important; - color: var(--muted) !important; -} - -.btn-action.outline:hover { - background: transparent !important; - border-color: var(--text) !important; - color: var(--text) !important; -} +.btn-action.outline { background: transparent !important; border: 1px solid var(--border) !important; color: var(--muted) !important; } +.btn-action.outline:hover { background: transparent !important; border-color: var(--text) !important; color: var(--text) !important; } .btn-small { padding: 0.4rem 0.8rem; font-size: 0.8rem; } /* ONGLETS */ -.pub-tabs-container { - display: flex; - justify-content: center; - margin-bottom: 1rem; /* Réduit de 2rem à 1rem */ -} +.pub-tabs-container { display: flex; justify-content: center; margin-bottom: 1rem; } .pub-tabs { background-color: var(--surface); border: 1px solid var(--border); padding: 0.4rem; border-radius: 30px; display: inline-flex; gap: 0.4rem; } .tab-btn { background: none; border: none; color: #d4d4de; font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; padding: 0.65rem 1.6rem; border-radius: 25px; display: flex; align-items: center; gap: 0.6rem; transition: all 0.3s; } .tab-btn:hover { color: var(--text); background-color: var(--surface-hover); } .tab-btn.active { color: var(--background); background-color: var(--gold); font-weight: 600; } /* TOOLBAR */ -.admin-toolbar { - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 1rem; /* Réduit de 1.5rem à 1rem */ - flex-wrap: wrap; - gap: 1rem; -} +.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; } .count { font-weight: 600; color: var(--muted); background: var(--surface); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.85rem; } .search-box { position: relative; flex-grow: 1; max-width: 400px; } .search-box input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 0.9rem; } @@ -70,17 +50,16 @@ admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes) /* BULK ACTIONS */ .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 (6 COLONNES FIXES) */ +/* 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); - /* Suppression des propriétés de scroll */ - max-height: none; + max-height: none; overflow-y: visible; } .admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; } @@ -93,12 +72,9 @@ admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes) .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 { +.stars-muted { /* Augmentez l'opacité de 0.2 à 0.4 ou 0.5 */ - color: rgba(255, 255, 255, 0.45); - - /* OPTIONNEL : Si vous voulez qu'elles soient un peu plus grises/métalliques */ - /* color: #666; */ + 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; } @@ -135,46 +111,23 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background) .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: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; } + +.import-box { border: 2px dashed var(--border); border-radius: 8px; padding: 2rem 1rem; text-align: center; background: var(--surface); cursor: pointer; transition: all 0.2s; } +.import-box:hover { border-color: var(--gold); } +.import-box i { font-size: 2.5rem; color: var(--gold); margin-bottom: 0.5rem; display: block; } + .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: 8px; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; } -.admin-table { - table-layout: fixed; /* Force les colonnes à respecter les largeurs du HTML */ -} -.admin-table tbody td { - padding: 0.6rem 0.5rem; /* Réduit le padding pour compacter */ -} +.admin-table tbody td { padding: 0.6rem 0.5rem; } +.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; } -.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 améliorée */ -.import-box p { - margin: 0.3rem 0; -} -.import-box p strong { - color: var(--text); - font-size: 1rem; -} +.import-box p { margin: 0.3rem 0; } +.import-box p strong { color: var(--text); font-size: 1rem; } /* Correction affichage zone import */ #import-box, .import-box { - display: block; /* <-- Ligne clé pour réparer la bordure */ + display: block; /*<-- Ligne clé pour réparer la bordure */ width: 100%; box-sizing: border-box; border: 2px dashed var(--border); @@ -186,77 +139,15 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background) transition: all 0.2s; margin-top: 1rem; } +#import-box:hover, .import-box:hover { border-color: var(--gold); background: var(--surface-hover); } +#import-box i, .import-box i { font-size: 2.5rem; color: var(--gold); margin-bottom: 0.5rem; display: block; } -#import-box:hover, .import-box:hover { - border-color: var(--gold); - background: var(--surface-hover); -} +.modal h3 { white-space: nowrap; overflow: visible; text-overflow: clip; } -#import-box i, .import-box i { - font-size: 2.5rem; - color: var(--gold); - margin-bottom: 0.5rem; - display: block; -} +.import-section { margin: 1rem 0; border: 2px dashed var(--border); border-radius: 8px; padding: 1rem; transition: 0.3s; background: var(--bg-alt); } -#import-box p, .import-box p { - margin: 0.3rem 0; -} - -#import-box p strong, .import-box p strong { - color: var(--text); - font-size: 1rem; -} - -/* S'assurer que le h3 ne soit pas tronqué */ -.modal h3 { - white-space: nowrap; - overflow: visible; - text-overflow: clip; -} - -.import-section { - margin: 1rem 0; - border: 2px dashed var(--border); - border-radius: 8px; - padding: 1rem; - transition: 0.3s; - background: var(--bg-alt); -} - -.import-box { - display: flex; - align-items: center; - gap: 1rem; - cursor: pointer; - width: 100%; -} - -.import-box:hover { - border-color: var(--gold); -} - -.import-box i { - font-size: 2rem; - color: var(--gold); -} - -.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); /* Ou votre couleur primaire */ - width: 0%; - transition: width 0.4s ease; - border-radius: 10px; -} +.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; } /* RESPONSIVE MOBILE */ @media (max-width: 768px) { @@ -264,28 +155,28 @@ input[type="checkbox"]:checked::after { content: '✓'; color: var(--background) .form-grid { grid-template-columns: 1fr; } .form-group[style*="grid-column: span 2"] { grid-column: span 1 !important; } - /* Transformation du tableau en cartes */ .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: 60px 1fr 40px; /* Layout ajusté */ - grid-template-areas: - "poster title actions" - "poster director actions" - "poster info actions"; - gap: 0.2rem 1rem; - padding: 0.8rem; - } + .admin-table tbody tr { + display: grid; + grid-template-columns: 60px 1fr 40px; + grid-template-areas: + "poster title actions" + "poster director actions" + "poster info actions"; + gap: 0.2rem 1rem; + padding: 0.8rem; + } + .admin-table td { border: none; padding: 0.3rem 0; text-align: left; } - .admin-table td:nth-child(1) { display: none; } /* Checkbox cachée sur mobile */ - .admin-table td:nth-child(2) { grid-area: poster; } + .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(3) { grid-area: title; font-size: 1rem; margin-bottom: 0; } - .admin-table td:nth-child(4) { display: none; } /* L'année est masquée pour aérer le design */ + .admin-table td:nth-child(4) { display: none; } /* Année */ .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; flex-direction: column; gap: 0.5rem; justify-content: flex-start; } + .admin-table td:nth-child(7) { grid-area: actions; grid-row: span 3; flex-direction: column; gap: 0.5rem; justify-content: flex-start; } /* 🔥 FIX */ .tbl-actions { justify-content: flex-start; } } \ No newline at end of file