447 lines
14 KiB
CSS
447 lines
14 KiB
CSS
/* ══════════════════════════════════════════════════════════════
|
|
admin.css — Backoffice Mon Cinéma
|
|
══════════════════════════════════════════════════════════════ */
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
--gold: #C9A84C;
|
|
--gold-light: #E8C97A;
|
|
--gold-dim: rgba(201, 168, 76, 0.08);
|
|
--dark: #0E0E0E;
|
|
--surface: #1A1A1A;
|
|
--surface2: #252525;
|
|
--text: #F0ECE3;
|
|
--text-secondary: #C8C4BE;
|
|
--muted: #A8A4A0;
|
|
--border: rgba(201, 168, 76, 0.2);
|
|
--red: #c0392b;
|
|
}
|
|
|
|
body {
|
|
background: var(--dark);
|
|
color: var(--text);
|
|
font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
min-height: 100vh;
|
|
padding: 2rem 1rem 4rem;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ── Visibilité des pages ── */
|
|
.page { display: none; }
|
|
.page.active { display: block; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
LAYOUT ADMIN
|
|
══════════════════════════════════════════════════════════════ */
|
|
.admin-wrap { max-width: 960px; margin: 0 auto; }
|
|
|
|
.admin-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-bottom: 1.2rem;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 1.8rem;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.admin-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; }
|
|
.admin-title span { color: var(--gold); font-style: italic; }
|
|
.admin-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
ONGLETS ADMIN
|
|
══════════════════════════════════════════════════════════════ */
|
|
.admin-tabs {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
margin-bottom: 2rem;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--muted);
|
|
padding: 0.55rem 1.2rem;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
}
|
|
|
|
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
|
|
.tab-btn.active { color: var(--gold); background: rgba(201,168,76,0.08); }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
BOUTONS GÉNÉRAUX
|
|
══════════════════════════════════════════════════════════════ */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0.55rem 1.1rem;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
letter-spacing: 0.04em;
|
|
transition: background 0.2s, color 0.2s, border-color 0.2s;
|
|
border: none;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-gold { background: var(--gold); color: var(--dark); }
|
|
.btn-gold:hover { background: var(--gold-light); }
|
|
|
|
.btn-outline { background: transparent; border: 1px solid rgba(201,168,76,0.3); color: #C8C4BE; }
|
|
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
|
|
|
|
.btn-danger { background: transparent; border: 1px solid #555; color: #C0BBBB; }
|
|
.btn-danger:hover { border-color: var(--red); color: var(--red); }
|
|
|
|
.btn-primary { background: var(--gold); color: var(--dark); font-weight: 600; }
|
|
.btn-primary:hover { background: var(--gold-light); }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
TABLEAU
|
|
══════════════════════════════════════════════════════════════ */
|
|
.admin-table-wrap { overflow-x: auto; }
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.admin-table th {
|
|
text-align: left;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: #B8B4B0;
|
|
padding: 0.6rem 0.8rem;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-table td {
|
|
padding: 0.75rem 0.8rem;
|
|
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.admin-table tr:hover td { background: var(--surface2); }
|
|
|
|
.thumb {
|
|
width: 36px; height: 54px;
|
|
object-fit: cover;
|
|
border-radius: 3px;
|
|
display: block;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.thumb-ph {
|
|
width: 36px; height: 54px;
|
|
background: var(--surface2);
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--muted);
|
|
font-size: 1rem;
|
|
border: 1px dashed var(--border);
|
|
}
|
|
|
|
.tbl-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.05em; }
|
|
|
|
.tbl-actions { display: flex; gap: 0.4rem; justify-content: center; }
|
|
.tbl-actions button {
|
|
background: none;
|
|
border: 1px solid #444;
|
|
cursor: pointer;
|
|
color: #B0ACAA;
|
|
font-size: 0.9rem;
|
|
padding: 5px 7px;
|
|
border-radius: 3px;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
line-height: 1;
|
|
}
|
|
.tbl-actions button:hover { color: var(--gold); border-color: var(--gold); }
|
|
.tbl-actions button.del:hover { color: var(--red); border-color: var(--red); }
|
|
|
|
.badge-format {
|
|
background: var(--gold-dim);
|
|
color: var(--gold);
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 3px;
|
|
border: 1px solid rgba(201,168,76,0.25);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
BARRE D'ACTIONS EN MASSE
|
|
══════════════════════════════════════════════════════════════ */
|
|
.bulk-actions-bar {
|
|
background: var(--gold-dim);
|
|
border: 1px solid rgba(201,168,76,0.3);
|
|
padding: 0.8rem 1.2rem;
|
|
border-radius: 6px;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
BANNIÈRE SÉCURITÉ
|
|
══════════════════════════════════════════════════════════════ */
|
|
.security-banner {
|
|
background: #7f1d1d;
|
|
border: 1px solid #f87171;
|
|
color: #fca5a5;
|
|
padding: 1rem 1.2rem;
|
|
border-radius: 6px;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.85rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.security-banner button {
|
|
background: #f87171;
|
|
color: #7f1d1d;
|
|
border: none;
|
|
padding: 0.4rem 0.9rem;
|
|
font-weight: 700;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
.security-banner button:hover { background: #fca5a5; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
MODALES — Overlay + panneau
|
|
══════════════════════════════════════════════════════════════ */
|
|
.overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.88);
|
|
backdrop-filter: blur(6px);
|
|
z-index: 500;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.overlay.open { display: flex; }
|
|
|
|
.modal {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
max-width: 540px;
|
|
max-height: 92vh;
|
|
overflow-y: auto;
|
|
padding: 2rem;
|
|
position: relative;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border) transparent;
|
|
}
|
|
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
background: rgba(255,255,255,0.04);
|
|
border: 1px solid var(--border);
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
font-size: 1.1rem;
|
|
line-height: 1;
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
|
|
|
|
.modal-h {
|
|
font-family: 'Playfair Display', serif;
|
|
font-size: 1.4rem;
|
|
color: var(--gold);
|
|
margin-bottom: 1.4rem;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
FORMULAIRES DANS LES MODALES
|
|
══════════════════════════════════════════════════════════════ */
|
|
.form-group { margin-bottom: 1rem; }
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: #C0BCB8;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
width: 100%;
|
|
background: var(--surface2);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
color: var(--text);
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.9rem;
|
|
padding: 0.65rem 0.8rem;
|
|
border-radius: 4px;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
appearance: auto;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus { border-color: var(--gold); }
|
|
|
|
.form-group textarea { resize: vertical; min-height: 100px; }
|
|
|
|
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
|
|
|
|
.btn-save {
|
|
width: 100%;
|
|
background: var(--gold);
|
|
color: var(--dark);
|
|
border: none;
|
|
padding: 0.8rem;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
margin-top: 0.8rem;
|
|
transition: background 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.btn-save:hover { background: var(--gold-light); }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
API NOTICE
|
|
══════════════════════════════════════════════════════════════ */
|
|
.api-notice {
|
|
background: var(--surface2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 0.9rem 1.1rem;
|
|
margin-bottom: 1.2rem;
|
|
font-size: 0.82rem;
|
|
color: #C0BCB8;
|
|
line-height: 1.6;
|
|
}
|
|
.api-notice a { color: var(--gold); }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
PAGE LOGIN
|
|
══════════════════════════════════════════════════════════════ */
|
|
.login-wrap {
|
|
max-width: 360px;
|
|
margin: 7rem auto;
|
|
padding: 2rem 1.5rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.login-wrap h2 {
|
|
font-family: 'Playfair Display', serif;
|
|
color: var(--gold);
|
|
margin-bottom: 1.8rem;
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.login-wrap input {
|
|
width: 100%;
|
|
background: var(--surface2);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
color: var(--text);
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.9rem;
|
|
padding: 0.7rem 0.85rem;
|
|
border-radius: 4px;
|
|
outline: none;
|
|
margin-bottom: 1rem;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.login-wrap input:focus { border-color: var(--gold); }
|
|
|
|
.login-err {
|
|
color: var(--red);
|
|
font-size: 0.82rem;
|
|
margin-bottom: 0.8rem;
|
|
display: none;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
RESPONSIVE
|
|
══════════════════════════════════════════════════════════════ */
|
|
@media (max-width: 600px) {
|
|
.form-row { grid-template-columns: 1fr; }
|
|
.admin-header { flex-direction: column; align-items: flex-start; }
|
|
.admin-actions { width: 100%; }
|
|
.modal { padding: 1.5rem; }
|
|
}
|
|
|
|
/* Amélioration du bouton "Choisir un fichier" pour matcher avec le style admin */
|
|
#import-section button {
|
|
border-color: var(--gold);
|
|
color: var(--gold);
|
|
background: rgba(201, 168, 76, 0.05);
|
|
}
|
|
#import-section button:hover {
|
|
background: var(--gold);
|
|
color: var(--dark);
|
|
}
|
|
|
|
/* Rendre le tableau plus élégant */
|
|
.admin-table { border-spacing: 0 0.5rem; border-collapse: separate; }
|
|
.admin-table tbody tr {
|
|
background: #141414;
|
|
transition: all 0.2s;
|
|
}
|
|
.admin-table td:first-child { border-radius: 6px 0 0 6px; }
|
|
.admin-table td:last-child { border-radius: 0 6px 6px 0; }
|
|
|
|
/* Amélioration des inputs dans les modales */
|
|
.form-group input, .form-group select, .form-group textarea {
|
|
background: #111; /* Un peu plus sombre que le reste */
|
|
border: 1px solid #333;
|
|
}
|
|
.form-group input:focus { border-color: var(--gold); } |