/* ══════════════════════════════════════════════════════════════ TABLEAU ADMIN — ALIGNEMENT CORRIGÉ ══════════════════════════════════════════════════════════════ */ .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; table-layout: fixed; /* Force les largeurs de colonnes */ } /* En-têtes */ .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.8rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; } /* Largeurs fixes des 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: 80px; text-align: center; } .admin-table thead th:nth-child(3), .admin-table tbody td:nth-child(3) { width: 30%; text-align: left; } .admin-table thead th:nth-child(4), .admin-table tbody td:nth-child(4) { width: 80px; text-align: left; } .admin-table thead th:nth-child(5), .admin-table tbody td:nth-child(5) { width: 20%; text-align: left; } .admin-table thead th:nth-child(6), .admin-table tbody td:nth-child(6) { width: 25%; text-align: left; } .admin-table thead th:nth-child(7), .admin-table tbody td:nth-child(7) { width: 100px; text-align: right; } /* Cellules */ .admin-table tbody td { padding: 0.8rem; 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 tbody td strong { color: var(--text); font-weight: 600; font-size: 1rem; } /* Affiches */ .thumb { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.5); display: block; margin: 0 auto; } .thumb-ph { width: 50px; height: 70px; background: var(--surface); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--border); margin: 0 auto; } /* Badges */ .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; } .info-cell { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; } .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; display: inline-block; } .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: 200px; 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); } /* Actions */ .tbl-actions { display: flex; justify-content: flex-end; gap: 0.3rem; } .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; display: inline-flex; align-items: center; justify-content: center; } .tbl-actions button:hover { color: var(--gold); background: var(--surface); } .tbl-actions button.del:hover { color: #ff4757; } /* Checkbox */ 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; display: inline-block; vertical-align: middle; } 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; } /* Demi-étoiles */ .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; } .stars-muted { color: #ffffff; opacity: 0.35; } /* ══════════════════════════════════════════════════════════════ RESPONSIVE MOBILE ═══════════════════════════════════════════════════════════════ */ @media (max-width: 768px) { .table-container { background: transparent; border: none; box-shadow: none; } .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { display: block; } .admin-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .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; } .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; } .admin-table td:first-child { justify-content: flex-end; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); margin-bottom: 0.4rem; } .admin-table td:nth-child(2) { justify-content: center; padding: 0.6rem 0; } .thumb, .thumb-ph { width: 70px; height: 100px; } .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; } .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; } .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; } .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); } }