/* ══════════════════════════════════════════════════════════════ admin.css — Backoffice Mon Cinéma (Hérite de public.css) ══════════════════════════════════════════════════════════════ */ /* Conteneur principal plus large pour le tableau */ .admin-wrap { max-width: 1200px; padding-top: 3rem; } /* En-tête */ .admin-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2rem; text-align: left; } .header-titles { margin: 0; } .header-actions { display: flex; gap: 0.8rem; } /* Boutons d'action */ .btn-action { background: var(--surface-card); color: var(--text); border: 1px solid var(--border); padding: 0.65rem 1.2rem; border-radius: 8px; font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .btn-action:hover { border-color: var(--gold); background: var(--gold-dim); } .btn-action.outline.danger:hover { border-color: #ff6b6b; background: rgba(255, 107, 107, 0.1); color: #ff6b6b; } .btn-action.primary { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; } .btn-action.primary:hover { background: var(--gold); box-shadow: 0 0 15px var(--gold-glow); transform: translateY(-2px); } .btn-action.danger-solid { background: #ff4757; color: #fff; border-color: #ff4757; } .btn-action.danger-solid:hover { background: #ff6b81; box-shadow: 0 0 15px rgba(255, 71, 87, 0.3); } .btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; } /* Barre d'outils */ .admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .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 */ .table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-cinematic); } .admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; } .admin-table th { background: var(--surface); color: var(--muted); font-weight: 500; padding: 1.2rem 1rem; border-bottom: 1px solid var(--border); text-align: left; } .admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); } .admin-table tbody tr { transition: background 0.2s; } .admin-table tbody tr:hover { background: var(--surface-hover); } .admin-table tbody tr:last-child td { border-bottom: none; } .admin-table strong { color: var(--text); font-weight: 600; font-size: 1.05rem; } /* Éléments du tableau */ .thumb { width: 45px; height: 65px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.5); } .thumb-ph { width: 45px; height: 65px; background: var(--surface); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--border); } .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; } .tbl-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; } .tbl-actions button { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 0.5rem; font-size: 1.2rem; transition: all 0.2s; border-radius: 6px; } .tbl-actions button:hover { color: var(--gold); background: var(--surface); } .tbl-actions button.del:hover { color: #ff4757; } /* Checkbox personnalisées */ input[type="checkbox"] { appearance: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 6px; 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: 13px; font-weight: 900; } /* Bandeau de sécurité */ .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; } .security-banner i { font-size: 1.3rem; margin-right: 0.5rem; } .security-banner .sec-text { display: flex; align-items: center; } /* Modales (Surcouche) */ .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; } .overlay.open { opacity: 1; visibility: visible; } .modal { background: var(--surface-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; width: 90%; position: relative; transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-overlay); 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: 1px solid var(--border); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; } .modal-close:hover { color: var(--text); border-color: var(--text); } .modal-h { margin-bottom: 2rem; color: var(--text); font-size: 1.4rem; display: flex; align-items: center; gap: 0.6rem; } .modal-h i { color: var(--gold); font-size: 1.6rem; } /* Formulaires */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; } .form-group { margin-bottom: 1.2rem; text-align: left; } .form-group label { display: block; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; } .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-family: inherit; font-size: 0.95rem; transition: all 0.2s; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); } .divider { margin: 2rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; } /* Zone d'import CSV */ .import-box { border: 2px dashed var(--border); border-radius: 12px; padding: 3rem 2rem; text-align: center; background: var(--surface); transition: all 0.2s; cursor: pointer; position: relative; } .import-box:hover { border-color: var(--gold); background: var(--gold-dim); } .import-box input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; } .import-box i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; display: block; } /* Responsive */ @media (max-width: 768px) { .admin-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; } .header-actions { width: 100%; flex-wrap: wrap; } .form-grid { grid-template-columns: 1fr; } .table-container { overflow-x: auto; } .admin-table th, .admin-table td { white-space: nowrap; } } /* ══════════════════════════════════════════════════════════════ AMÉLIORATIONS UI (Recherche, Pagination, Lignes) ═══════════════════════════════════════════════════════════════ */ /* Barre de recherche */ .admin-filters { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; } .search-box { position: relative; flex: 1; max-width: 350px; } .search-box input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.8rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: all 0.2s; } .search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); } .search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; } /* Pagination */ .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-card); 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.2s; 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; 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; } /* Amélioration des lignes du tableau */ .admin-table tbody tr { transition: all 0.2s ease; } .admin-table tbody tr:hover { background: var(--surface-hover); } .film-title-cell { display: flex; flex-direction: column; gap: 0.2rem; } .film-title-cell strong { font-size: 1rem; color: var(--text); line-height: 1.2; } .film-title-cell span { font-size: 0.85rem; color: var(--muted); } .info-cell { display: flex; flex-direction: column; gap: 0.4rem; } .streaming-badge { font-size: 0.75rem; color: var(--gold); background: var(--gold-dim); padding: 0.25rem 0.7rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid rgba(212, 175, 55, 0.2); font-weight: 500; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .physical-badge { font-size: 0.75rem; color: var(--muted); background: var(--surface); padding: 0.25rem 0.7rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid var(--border); } /* Badge note numérique à côté des étoiles */ .rating-badge { background: var(--surface); border: 1px solid var(--border); color: var(--gold); font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; min-width: 32px; text-align: center; } /* Badge streaming : plus large, pas de troncation agressive */ .streaming-badge { font-size: 0.75rem; color: var(--gold); background: var(--gold-dim); padding: 0.3rem 0.8rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid rgba(212, 175, 55, 0.25); font-weight: 500; max-width: 220px; /* élargi */ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; } .physical-badge { font-size: 0.75rem; color: var(--muted); background: var(--surface); padding: 0.3rem 0.8rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid var(--border); } /* Espacement vertical dans la cellule infos */ .info-cell { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; } /* Alignement vertical des cellules */ .admin-table td { vertical-align: middle; } /* Support des demi-étoiles dans le tableau admin */ .info-cell { display: flex; align-items: center; gap: 0.6rem; } .half-star { position: relative; display: inline-block; color: #ffffff; opacity: 0.45; font-size: 0.95rem; } .half-star::before { content: '★'; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--gold); opacity: 1; } .rating-badge { background: var(--surface); border: 1px solid var(--border); color: var(--gold); font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 4px; } /* ══════════════════════════════════════════════════════════════ RESPONSIVE MOBILE (dashboard.html) ═══════════════════════════════════════════════════════════════ */ @media (max-width: 768px) { .admin-wrap { padding-top: 1.5rem; } /* En-tête admin */ .admin-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1.2rem; } .header-actions { width: 100%; flex-wrap: wrap; gap: 0.5rem; } .btn-action { padding: 0.55rem 0.9rem; font-size: 0.82rem; } /* Barre d'outils admin */ .admin-toolbar { flex-direction: column; gap: 0.8rem; align-items: flex-start; } /* Barre de recherche admin */ .admin-filters { margin-bottom: 1rem; } .search-box { max-width: 100%; } .search-box input { padding: 0.7rem 1rem 0.7rem 2.5rem; font-size: 0.88rem; } /* Onglets admin : scroll horizontal */ .pub-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .pub-tabs::-webkit-scrollbar { display: none; } .tab-btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; } /* Barre bulk actions */ .bulk-actions-bar { padding: 0.7rem 1rem; font-size: 0.85rem; } /* ═══ TRANSFORMATION DU TABLEAU EN CARTES ═══ */ .table-container { border-radius: 10px; background: transparent; box-shadow: none; border: none; } .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { display: block; } /* Cacher l'en-tête du tableau */ .admin-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } /* Chaque ligne devient une carte */ .admin-table tbody tr { background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.8rem; padding: 0.8rem; box-shadow: 0 2px 8px rgba(0,0,0,0.3); } .admin-table tbody tr:hover { background: var(--surface-card); transform: none; } /* Cellules en flex */ .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; padding-bottom: 0; } /* Checkbox : pleine largeur en haut */ .admin-table td:first-child { justify-content: flex-end; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); margin-bottom: 0.4rem; } /* Affiche : centrée avec taille augmentée */ .admin-table td:nth-child(2) { justify-content: center; padding: 0.6rem 0; } .thumb { width: 70px; height: 100px; border-radius: 6px; } .thumb-ph { width: 70px; height: 100px; } /* Titre : mis en avant */ .admin-table td:nth-child(3) { flex-direction: column; align-items: flex-start; padding: 0.5rem 0; } .admin-table td:nth-child(3) strong { font-size: 1.05rem; line-height: 1.3; } /* Année et Réalisateur : avec labels */ .admin-table td:nth-child(4)::before { content: 'Année'; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.5rem; } .admin-table td:nth-child(5)::before { content: 'Réal.'; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.5rem; } /* Informations : pleine largeur */ .admin-table td:nth-child(6) { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.6rem 0; } .admin-table td:nth-child(6)::before { content: 'Informations'; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; } /* Actions : boutons plus grands pour le tactile */ .admin-table td:nth-child(7) { justify-content: flex-end; gap: 0.5rem; padding-top: 0.6rem; } .tbl-actions button { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); } .tbl-actions button:hover { background: var(--surface-hover); } /* Pagination */ .pagination { gap: 0.3rem; } .pagination button { min-width: 36px; height: 36px; font-size: 0.82rem; } .pagination-info { font-size: 0.78rem; } /* ═══ MODALES ═══ */ .modal { width: 95%; padding: 2rem 1.2rem; max-height: 95vh; border-radius: 12px; } .modal-h { font-size: 1.2rem; margin-bottom: 1.5rem; } .form-grid { grid-template-columns: 1fr; gap: 0.8rem; } .form-group input, .form-group textarea, .form-group select { padding: 0.7rem 0.9rem; font-size: 0.92rem; } /* Zone d'import */ .import-box { padding: 2rem 1rem; } .import-box i { font-size: 2.2rem; } /* Bandeau de sécurité */ .security-banner { flex-direction: column; gap: 0.8rem; text-align: center; } .security-banner .sec-text { justify-content: center; } } /* Très petits écrans */ @media (max-width: 380px) { .admin-table td:nth-child(3) strong { font-size: 0.95rem; } .thumb { width: 60px; height: 85px; } .thumb-ph { width: 60px; height: 85px; } }