:root { color-scheme: light; --ink: #29283e; --muted: #625f77; --accent: #5b50c6; --accent-soft: #eeecff; --ground: #f5f6fa; --line: #dfdeea; --green: #276344; --amber: #80520b; --radius: 12px; font-family: 'Nunito', 'Trebuchet MS', system-ui, sans-serif; color: var(--ink); background: var(--ground); }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
::selection { background: #d8d3ff; color: #28204f; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input, textarea { caret-color: var(--accent); }
* { scrollbar-color: #aaa3ca var(--ground); scrollbar-width: thin; }
button, input, select, textarea { font: inherit; }
button, select, input:not([type=checkbox]), textarea { min-height: 46px; }
button { border: 1px solid var(--line); background: white; color: var(--ink); padding: 10px 16px; border-radius: 9px; cursor: pointer; font-weight: 700; }
button:hover { background: #f0eff8; }
button:disabled { opacity: .6; cursor: wait; }
button.primary { background: var(--accent); color: white; border-color: var(--accent); }
button.primary:hover { background: #493eb0; }
button.quiet { color: var(--accent); border-color: transparent; background: transparent; }
button.danger { color: #a52632; }
.icon-button { font-size: 1.5rem; width: 46px; padding: 2px; flex-shrink: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
input, select, textarea { border: 1px solid #b9b6cb; border-radius: 8px; background: white; color: var(--ink); padding: 10px 12px; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 130px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { max-width: 70ch; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; background: white; padding: 12px; }
.app-header { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 30px; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#etat { font-size: .8rem; color: var(--green); }
.workspace { display: grid; grid-template-columns: 245px minmax(0, 1fr); max-width: 1600px; margin: auto; min-height: calc(100dvh - 86px); }
.themes { background: white; border-right: 1px solid var(--line); padding: 24px 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 16px; }
.section-title h2 { font-size: .95rem; color: var(--muted); }
#themes { display: grid; gap: 4px; }
.theme { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 11px 12px; font-size: .92rem; }
.theme[aria-current=true] { background: var(--accent-soft); color: #4537a4; }
.theme .theme-icon { width: 26px; font-size: 1.2rem; text-align: center; }
.theme .count { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.sidebar-tools { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; display: grid; gap: 6px; }
.sidebar-tools button { text-align: left; font-size: .85rem; border: none; font-weight: 400; }
.install-help { font-size: .82rem; color: var(--muted); margin: 20px 10px; }
summary { cursor: pointer; padding: 10px 0; color: var(--ink); font-weight: 700; }
.install-help p + p { margin-top: 10px; }
.carnet-link { display: block; margin: 20px 10px 0; font-size: .82rem; }
.library { min-width: 0; padding: 36px 38px 70px; }
.library-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
#compteur { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.context { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; background: #ebe9f6; border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.context label { flex: 1 1 190px; }
.context p { flex: 1 1 230px; font-size: .85rem; color: #57516f; align-self: center; }
.search { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #b9b6cb; border-radius: 10px; padding: 3px 15px; }
.search svg { color: var(--muted); flex-shrink: 0; }
.search input { width: 100%; border: 0; font-size: 1rem; min-width: 0; background: transparent; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input:focus-visible { outline: 0; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 24px; }
.filters select { font-size: .85rem; background: transparent; }
.song-list { border-radius: var(--radius); background: white; overflow: hidden; }
#resultats { margin: 0 0 12px; }
.song { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px 22px; gap: 20px; border-bottom: 1px solid var(--line); }
.song:last-child { border-bottom: 0; }
.song-open { min-width: 0; border: 0; background: transparent; text-align: left; padding: 0; border-radius: 3px; }
.song-open:hover { background: transparent; color: var(--accent); }
.song-title { display: block; font-size: 1.08rem; font-weight: 800; overflow-wrap: anywhere; }
.song-meta { display: block; font-weight: 400; color: var(--muted); font-size: .83rem; margin-top: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { display: inline-block; padding: 3px 9px; font-size: .76rem; border-radius: 6px; background: #f0eef6; color: #58506b; font-weight: 600; }
.tag.previous { color: var(--amber); background: #fcf0d9; }
.tag.current { color: var(--green); background: #e7f3eb; }
.song-actions { display: flex; align-items: center; gap: 8px; }
.empty { padding: 52px 30px; text-align: center; }
.empty img { margin-bottom: 20px; }
.empty h2 { font-size: 1.4rem; margin-bottom: 10px; }
.empty p { color: var(--muted); margin: 0 auto 22px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.error { background: #fff0ee; color: #8c2530; padding: 15px 30px; border-bottom: 1px solid #e2bac1; overflow-wrap: anywhere; }
.error a { color: #8c2530; }
.loading { padding: 70px 30px; text-align: center; }
.loading p { margin: 16px auto; color: var(--muted); }
dialog { border: none; border-radius: 16px; color: var(--ink); background: white; width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 28px; box-shadow: 0 18px 65px #28234440; overflow-y: auto; }
dialog::backdrop { background: #28234470; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { font-size: 1.5rem; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.form-actions .danger { margin-right: auto; }
.help, .detail-meta { color: var(--muted); font-size: .87rem; }
.detail-meta { margin-bottom: 24px; }
.detail-section { margin-top: 28px; }
.detail-section h3 { margin-bottom: 12px; }
audio { display: block; width: 100%; margin-top: 12px; }
.lyrics { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; background: var(--ground); border-radius: 10px; max-height: 380px; overflow: auto; }
.history { list-style: none; padding: 0; margin: 12px 0; }
.history li { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; align-items: center; }
.history small { display: block; color: var(--muted); white-space: pre-wrap; }
.history-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--ground); padding: 18px; border-radius: 10px; }
.history-entry button { grid-column: 1/-1; }
.inline-error { color: #a52632; margin-top: 12px; }
.group-row { display: flex; gap: 10px; margin: 10px 0; }
.group-row input { flex: 1; min-width: 0; }
.management-intro { margin-bottom: 22px; color: var(--muted); }
.account-actions { display: grid; gap: 12px; margin-top: 22px; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 205px minmax(0,1fr); } .library { padding: 28px 24px 60px; } .library-heading { flex-direction: column; } .heading-actions { justify-content: flex-start; } .context p { flex-basis: 100%; } .song { padding: 18px; } .song-actions { flex-direction: column; } }
@media (max-width: 680px) { .app-header { padding: 16px; align-items: flex-start; flex-wrap: wrap; gap: 12px; } .brand { font-size: 1.08rem; } .header-actions { width: 100%; justify-content: space-between; } .header-actions button { font-size: .83rem; padding: 8px 12px; } .workspace { display: block; } .themes { padding: 14px 16px; border-right: none; border-bottom: 1px solid var(--line); } .section-title { margin: 0 0 6px; } #themes { display: flex; overflow-x: auto; gap: 8px; padding: 4px 3px 10px; } .theme { width: auto; white-space: nowrap; border: 1px solid var(--line); flex-shrink: 0; } .theme .count { margin-left: 6px; } .sidebar-tools { display: flex; overflow-x: auto; gap: 4px; border: 0; padding: 0; margin: 6px 0 0; } .sidebar-tools button { white-space: nowrap; padding: 8px 12px; } .install-help { margin: 4px 0; } .carnet-link { display: none; } .library { padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); } .library-heading { gap: 16px; margin-bottom: 20px; } .heading-actions { width: 100%; } .heading-actions .primary { flex: 1; } .context { padding: 16px; gap: 14px; } .context label { flex: 1 1 130px; min-width: 0; } .context select { width: 100%; } .context p { font-size: .8rem; } .filters { align-items: stretch; } .filters label { flex: 1 1 180px; } .filters select { width: 100%; } .song { grid-template-columns: minmax(0,1fr); gap: 12px; } .song-actions { flex-direction: row; justify-content: flex-end; } .song-actions button { flex: 1; } .empty { padding: 34px 18px; } dialog { padding: 20px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); } .form-grid { grid-template-columns: 1fr; } .history-entry { grid-template-columns: 1fr; } .form-grid .full { grid-column: 1; } .error { padding: 14px 16px; } }
@media (max-width: 680px) { .filters label, .context label { flex-basis: 100%; } .header-actions { gap: 8px; } .header-actions button { padding-inline: 10px; } }
@media (prefers-reduced-motion: no-preference) { dialog[open] { animation: appear .18s cubic-bezier(.16,1,.3,1); } @keyframes appear { from { transform: translateY(8px); box-shadow: 0 4px 20px #28234420; } to { transform: translateY(0); box-shadow: 0 18px 65px #28234440; } } }
@media print { body { background: white; color: black; } .app-header, .themes, .context, .search, .filters, .heading-actions, .song-actions, #erreur, .skip, #chargement { display: none !important; } .workspace { display: block; } .library { padding: 0; } .song { break-inside: avoid; } .song-open { color: black; } dialog[open] { position: static; width: 100%; max-height: none; overflow: visible; box-shadow: none; padding: 0; } body:has(dialog[open]) .workspace, dialog button, dialog audio, dialog form, dialog a { display: none !important; } .lyrics { max-height: none; overflow: visible; } }
