:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #f4f4f5; background: #09090b; font-synthesis: none; color-scheme: dark; --bg: #09090b; --surface: #101012; --surface-raised: #17171a; --border: #26262b; --border-strong: #3f3f46; --text: #f4f4f5; --text-muted: #a1a1aa; --text-faint: #71717a; --danger: #f87171; --danger-soft: #fecaca; --warning: #facc15; --warning-soft: #fde68a; --accent: #fafafa; --on-accent: #09090b; --border-hover: #d4d4d8; --pill: rgba(255, 255, 255, 0.06); --pill-hover: rgba(255, 255, 255, 0.12); --glow: rgba(255, 255, 255, 0.03); } [data-theme="light"] { color: #18181b; background: #fafafa; color-scheme: light; --bg: #fafafa; --surface: #ffffff; --surface-raised: #f4f4f5; --border: #e4e4e7; --border-strong: #d4d4d8; --border-hover: #a1a1aa; --text: #18181b; --text-muted: #52525b; --text-faint: #71717a; --danger: #dc2626; --danger-soft: #b91c1c; --warning: #ca8a04; --warning-soft: #a16207; --accent: #18181b; --on-accent: #fafafa; --pill: rgba(0, 0, 0, 0.06); --pill-hover: rgba(0, 0, 0, 0.12); --glow: rgba(0, 0, 0, 0.04); } * { box-sizing: border-box; } body { margin: 0; min-width: 320px; min-height: 100vh; } button, input { font: inherit; } button { border: 1px solid var(--border-strong); border-radius: 8px; padding: 0.7rem 1.1rem; color: var(--text); background: transparent; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; } button:hover:not(:disabled) { border-color: var(--border-hover); } button:disabled { cursor: not-allowed; opacity: 0.4; } button.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 650; } button.primary:hover:not(:disabled) { filter: brightness(1.08); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 3.5rem 0 4rem; } header, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; } .eyebrow { color: var(--text-faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; margin-bottom: 0.6rem; } .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 2.5rem 0 0; } .stat { background: var(--surface); padding: 1.25rem 1.4rem; } .stat-value { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; } .stat-label { display: block; margin-top: 0.15rem; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.04em; } .panel { margin: 2rem 0 0; padding: 1.75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); } .settings { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; } .panel-head h2 { font-size: 1.15rem; font-weight: 650; margin-bottom: 0.4rem; } .settings p, article p { color: var(--text-muted); } form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 0.75rem; } form.wide { grid-template-columns: 1fr 1fr 1fr auto; } label { display: grid; gap: 0.45rem; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.03em; } input { width: 100%; padding: 0.7rem 0.85rem; color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); transition: border-color 0.15s ease; } input::placeholder { color: #52525b; } input:focus { outline: none; border-color: var(--accent); } .hint { grid-column: 1 / -1; margin: 0.6rem 0 0; color: var(--text-faint); font-size: 0.8rem; } .message { margin: 1.25rem 0 0; padding: 0.85rem 1.1rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); font-size: 0.92rem; } .message.error { border-left-color: var(--danger); color: #fecaca; } .library { margin-top: 3rem; } .library h2 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; } .section-title { margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } .section-title > span { color: var(--text-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; } .empty { padding: 4rem 1rem; text-align: center; color: var(--text-faint); border: 1px dashed var(--border-strong); border-radius: 12px; font-size: 0.95rem; } .movie-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } article { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.15rem 1.4rem; background: var(--surface); transition: background 0.15s ease; } article:hover { background: var(--surface-raised); } article[role="button"] { cursor: pointer; } article h3 { margin-bottom: 0.25rem; font-size: 1rem; font-weight: 650; } article p { margin-bottom: 0.5rem; font-size: 0.85rem; font-variant-numeric: tabular-nums; } code { color: var(--text-muted); font-size: 0.8rem; overflow-wrap: anywhere; } .status { align-self: start; flex-shrink: 0; padding: 0.3rem 0.7rem; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; } .status.error { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); } .status.linked { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); } .row-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; } button.small { padding: 0.45rem 0.9rem; font-size: 0.85rem; border-radius: 8px; } button.validate { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); } button.validate:hover:not(:disabled) { color: #09090b; background: #4ade80; border-color: #4ade80; } button.delete-row { color: var(--text-faint); border-color: transparent; } button.delete-row:hover:not(:disabled) { color: var(--danger); border-color: rgba(248, 113, 113, 0.45); } .title-actions { display: flex; align-items: center; gap: 0.9rem; } .bulk-bar { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; padding: 0.85rem 1.1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); } .bulk-bar .spacer { flex: 1; } .bulk-count { color: var(--text-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; } .check-all { display: flex; align-items: center; gap: 0.55rem; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; } input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; } article.selected { background: var(--surface-raised); box-shadow: inset 2px 0 0 var(--accent); } .modal.confirm { width: min(480px, 100%); padding: 1.6rem; } .modal.confirm h2 { font-size: 1.25rem; margin-bottom: 0.5rem; } .notifications { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; display: flex; flex-direction: column; width: min(380px, calc(100vw - 2.5rem)); } .notification { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.85rem 0.95rem; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--glow); animation: rise 0.2s ease; transition: margin 0.3s ease; } .notification p { margin: 0; font-size: 0.9rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; } .notification .dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 0.35rem; border-radius: 999px; background: var(--accent); } .notification.error { color: var(--danger-soft); } .notification.warning { color: var(--warning-soft); } .notification.error .dot { background: var(--danger); } .notification.warning .dot { background: var(--warning); } /* Deck facon sonner: chaque carte est recouverte par la suivante; la plus recente est devant, en bas, et les anciennes depassent au-dessus. */ .notification:not(:last-child) { margin-bottom: -2.2rem; } /* Au survol, la pile se deploie en colonne, de bas en haut. */ .notifications:hover .notification:not(:last-child) { margin-bottom: 0.55rem; } .notification-close { flex-shrink: 0; padding: 0.1rem 0.55rem; border: 0; border-radius: 999px; color: var(--text-muted); background: var(--pill); font-size: 0.95rem; line-height: 1.3; cursor: pointer; } .notification-close:hover { color: var(--text); background: var(--pill-hover); } .header-actions { display: flex; align-items: center; gap: 0.6rem; } .auth-main { width: min(1100px, calc(100% - 2rem)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; } .auth-panel { width: min(420px, 100%); padding: 2.5rem; margin: 0; } .auth-panel h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 0.5rem; } .auth-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin-bottom: 1.5rem; } .auth-form { grid-template-columns: 1fr; gap: 1rem; } .auth-form button { margin-top: 0.5rem; } .auth-main .notifications { position: fixed; } .activity { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } .activity-col { padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); } .activity-col h3 { margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); } .activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; } .activity-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: var(--bg); } .activity-list li > div { display: grid; gap: 0.15rem; min-width: 0; } .activity-list strong { font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; } .activity-list span { color: var(--text-faint); font-size: 0.78rem; } .activity-list time { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; } .pages { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); } .page-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; } .page-link:hover:not(.active) { color: var(--text); border-color: var(--border-hover); } .page-link.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); } .page-link .count { font-variant-numeric: tabular-nums; font-size: 0.78rem; opacity: 0.7; } .tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; } .tab { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: 999px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; } .tab:hover:not(.active) { color: var(--text); } .tab.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); } .tab .count { font-variant-numeric: tabular-nums; font-size: 0.78rem; opacity: 0.7; } .empty.small { padding: 1.6rem 1rem; font-size: 0.88rem; border-radius: 8px; } .panel-head .eyebrow { margin-bottom: 0.3rem; } .overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(9, 9, 11, 0.78); backdrop-filter: blur(4px); animation: fade-in 0.15s ease; } .modal { width: min(680px, 100%); max-height: calc(100vh - 3rem); overflow-y: auto; padding: 2rem; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); animation: rise 0.18s ease; } .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; } .modal-head h2 { margin: 0 0 0.25rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; } .modal-head .eyebrow { margin-bottom: 0.3rem; } .modal-sub { margin: 0; color: var(--text-muted); font-size: 0.9rem; } .modal-poster { display: block; width: 138px; aspect-ratio: 2 / 3; object-fit: cover; margin: 1.5rem auto 0; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); } .modal-poster.placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: 2.4rem; font-weight: 700; } .modal-close { flex-shrink: 0; } .modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 1.5rem 0 0; } .modal-grid > div { background: var(--bg); padding: 0.9rem 1.1rem; } .modal-grid dt { color: var(--text-faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; } .modal-grid dd { margin: 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; } .modal-grid .modal-path { grid-column: 1 / -1; } .modal-explain { margin: 1.25rem 0 0; padding: 1rem 1.15rem; border-left: 3px solid var(--border-strong); color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; } .modal .message { margin: 1.25rem 0 0; } .modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; } .modal-actions .primary { flex-grow: 1; } button.danger { color: var(--danger); border-color: rgba(248, 113, 113, 0.45); background: transparent; } button.danger:hover:not(:disabled) { color: var(--on-accent); background: var(--danger); border-color: var(--danger); } .hint.center { text-align: center; margin-top: 0.75rem; } @keyframes fade-in { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(8px); } } @media (max-width: 800px) { .settings { grid-template-columns: 1fr; gap: 1.25rem; } form, form.wide { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .activity { grid-template-columns: 1fr; } .modal-grid { grid-template-columns: 1fr; } header { align-items: flex-end; } article { flex-direction: column; gap: 0.75rem; } article.selected { box-shadow: inset 2px 0 0 var(--accent); } .bulk-bar { flex-wrap: wrap; gap: 0.75rem; } } .header-actions { display: flex; align-items: center; gap: 0.6rem; } .user-menu { position: relative; } .avatar { width: 2.4rem; height: 2.4rem; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-raised); color: var(--text); font-weight: 700; font-size: 0.95rem; } .avatar:hover:not(:disabled) { border-color: var(--border-hover); } .user-dropdown { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 90; min-width: 210px; padding: 0.5rem; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); display: grid; gap: 0.15rem; animation: rise 0.15s ease; } .user-dropdown .user-name { margin: 0 0 0.3rem; padding: 0.45rem 0.7rem 0.55rem; border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; } .user-dropdown button { padding: 0.55rem 0.7rem; border-color: transparent; border-radius: 8px; background: transparent; color: var(--text); font-size: 0.9rem; font-weight: 600; text-align: left; } .user-dropdown button:hover:not(:disabled) { background: var(--surface-raised); border-color: transparent; }