/* Data Center 2 - feuille de style (aucun style ni script dans le HTML : politique CSP stricte) */
:root {
  --bg: #f4f4f6; --panel: #ffffff; --ink: #141416; --muted: #66666f; --line: #e2e2e8;
  /* identite D.E.S Studios (des-studios.com) : noir, violet #c000ff, gris */
  --accent: #8a00c2; --accent-btn: #a100d6; --accent-vivid: #c000ff; --accent-light: #d98cff; --accent-soft: #f5e6ff;
  --dark: #070707; --dark-2: #141416; --dark-line: #2a2a2e; --dark-ink: #e6e6ec; --dark-muted: #9a9aa6;
  --good: #1f7a4d; --good-soft: #e3f3ea; --warn: #9a6200; --warn-soft: #fbf0d9; --bad: #a3262a; --bad-soft: #f8e3e3;
  --radius: 8px; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; margin: .2rem 0 .3rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 2rem 0 .7rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .5rem; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.count { display: inline-block; min-width: 1.6em; padding: 0 .45em; margin-left: .3em; border-radius: 99px; background: var(--line); color: var(--muted); font-size: .8rem; text-align: center; vertical-align: middle; }

/* en-tete */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1.5rem; background: var(--dark); color: var(--dark-ink); border-bottom: 2px solid var(--accent-vivid); }
.top a { color: var(--dark-ink); }
.top a:hover { color: #fff; }
.top .brand, .top .brand:hover { color: #fff; }
.top .brand-v { color: var(--accent-light); }
.brand { color: var(--ink); font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-in { display: inline-flex; align-items: center; gap: .55rem; }
.brand-logo { flex: none; display: block; }
.brand-text { line-height: 1.1; }
.brand-des { font-weight: 800; letter-spacing: .08em; }
.brand-dc { font-weight: 500; letter-spacing: .02em; }
.brand-v { color: var(--accent-vivid); font-weight: 800; }
.top-search { flex: 1; max-width: 560px; }
.top-search input { width: 100%; padding: .5rem .8rem; border: 1px solid var(--dark-line); border-radius: 99px; background: var(--dark-2); color: #fff; font: inherit; }
.top-search input::placeholder { color: var(--dark-muted); }
.top-search input:focus { outline: 2px solid rgba(192, 0, 255, .35); border-color: var(--accent-vivid); background: #0f0f11; }
.top-user { display: flex; align-items: center; gap: .8rem; margin-left: auto; white-space: nowrap; font-size: .9rem; }
.top-user form { margin: 0; }
.client-badge { padding: .15rem .6rem; border-radius: 99px; background: rgba(192, 0, 255, .18); color: var(--accent-light); font-weight: 600; }
.who { color: var(--muted); }
.top .who { color: var(--dark-muted); }
.top button.link { color: var(--accent-light); }
.top .count { background: var(--dark-line); color: var(--dark-ink); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
button.link:hover { text-decoration: underline; }

.page { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.foot { max-width: 1280px; margin: 2rem auto; padding: 0 1.5rem; color: var(--muted); font-size: .8rem; }
.crumb { margin: 0; font-size: .85rem; color: var(--muted); }
.subtitle { margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; }

/* connexion */
.login { max-width: 380px; margin: 8vh auto; padding: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.login h1 { font-size: 1.4rem; }
.stack { display: grid; gap: 1rem; margin-top: 1.2rem; }
.stack label { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.stack input, .stack select { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
.btn { padding: .65rem 1rem; border: 0; border-radius: var(--radius); background: var(--accent-btn); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.alert { padding: .6rem .8rem; border-radius: var(--radius); background: var(--bad-soft); color: var(--bad); }

/* chiffres */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1rem 0; }
.card { padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-n { display: block; font-size: 1.8rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-l { color: var(--muted); }

/* fiche */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem 1.5rem; margin: 1rem 0; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* tableaux */
.grid { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.grid th { padding: .55rem .7rem; background: #f8f8fa; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.grid td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover { background: #faf5ff; }
.comment { max-width: 320px; color: var(--muted); font-size: .85rem; }

.tag { display: inline-block; margin: 0 .25rem .2rem 0; padding: 0 .45rem; border-radius: 4px; background: var(--line); font-size: .78rem; white-space: nowrap; }
.status { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: var(--line); font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.s-delivered, .s-finished, .s-invoiced { background: var(--good-soft); color: var(--good); }
.s-in-progress, .s-delivery { background: var(--warn-soft); color: var(--warn); }
.s-receipted { background: var(--accent-soft); color: var(--accent); }
.s-deleted { background: var(--bad-soft); color: var(--bad); }
.cond { font-weight: 600; font-size: .8rem; }
.c-good { color: var(--good); }
.c-baked { color: var(--warn); }
.c-broken { color: var(--bad); }
.files { padding-left: 1.2rem; }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .grid { display: block; overflow-x: auto; }
}

/* pochettes et documents */
.thumb-col { width: 52px; padding-right: 0 !important; }
.thumb { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); }
.project-head { display: flex; gap: 1.5rem; align-items: flex-start; }
.project-head .facts { flex: 1; margin-top: 0; }
.covers { flex: 0 0 220px; }
.cover { display: block; width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.cover-more { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.files { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.files li { display: flex; gap: 1rem; align-items: center; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.doc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .project-head { flex-direction: column; } .covers { flex-basis: auto; } }

/* fiche titre */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.version { font-weight: 400; color: var(--muted); font-size: .7em; }
.pager { display: flex; gap: 1rem; font-size: .9rem; white-space: nowrap; }
.warn-text { color: var(--warn); }
.note { padding: .7rem 1rem; background: var(--warn-soft); border-radius: var(--radius); }
.deliv { display: flex; flex-wrap: wrap; gap: .4rem; }
.deliv-item { padding: .2rem .6rem; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); font-size: .85rem; }
.deliv-item.on { border: 1px solid var(--good); background: var(--good-soft); color: var(--good); font-weight: 600; }
.hash { font-size: .8rem; color: var(--muted); }

/* saisie */
.flash { padding: .6rem .9rem; border-radius: var(--radius); background: var(--good-soft); color: var(--good); font-weight: 500; }
.toolbar { display: flex; gap: .6rem; align-items: flex-start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.section-head h2 { margin: 0; }
a.btn, .btn { display: inline-block; text-decoration: none; }
.btn-light { background: var(--panel); color: var(--accent); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; font: inherit; }
.btn-light:hover { border-color: var(--accent); text-decoration: none; }
.btn-danger { background: var(--bad); color: #fff; }
details.danger { position: relative; }
details.danger summary { list-style: none; cursor: pointer; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--bad); background: var(--panel); font-weight: 600; }
details.danger summary::-webkit-details-marker { display: none; }
details.danger[open] form { position: absolute; right: 0; z-index: 5; width: 260px; margin-top: .4rem; padding: .8rem; background: var(--panel); border: 1px solid var(--bad); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
details.danger form p { margin: 0 0 .6rem; font-size: .85rem; }
.form fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem 1.2rem; margin: 0 0 1.2rem; padding: 1rem 1.2rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.form legend { padding: 0 .4rem; font-weight: 650; }
.form label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.form .wide { grid-column: 1 / -1; }
.form input[type=text], .form input[type=number], .form input[type=date], .form select, .form textarea { padding: .5rem .65rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.checks-list { flex-direction: column; }
.form label.check { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); font-size: .9rem; }
.field-err { color: var(--bad); font-size: .8rem; }
.actions { display: flex; align-items: center; gap: 1rem; }
.kind-switch { display: flex; gap: 1rem; color: var(--muted); }
.history li { font-size: .85rem; }

/* type de projet */
.type-badge { display: inline-block; padding: 0 .5rem; border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; background: var(--accent-soft); color: var(--accent); }
.t-program { background: #e4effa; color: #1f5f99; }
.t-archive { background: #ececf0; color: #3d3d45; }
.segmented { display: flex; gap: .5rem; flex-wrap: wrap; }
.form label.seg { display: inline-flex; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: .5rem 1.2rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-soft); }
.tabs { display: flex; gap: .3rem; margin: 1.5rem 0 0; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .9rem; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { border-bottom-color: var(--accent); color: var(--accent); }

/* administration */
.space-switch { display: flex; gap: .25rem; margin: 0; }
.space-switch .space { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: .15rem .6rem; border-radius: 99px; font: inherit; font-size: .82rem; cursor: pointer; }
.space-switch .space.on { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); font-weight: 600; }
.space-switch .space:hover { border-color: var(--accent); }
.top .space-switch .space { border-color: var(--dark-line); background: transparent; color: var(--dark-ink); }
.top .space-switch .space.on { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.top .space-switch .space:hover { border-color: var(--accent-vivid); }
.secret { margin-bottom: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--warn); border-radius: var(--radius); background: var(--warn-soft); }
.secret code { margin-left: .4rem; padding: .15rem .5rem; background: #fff; border-radius: 4px; font-size: 1.05rem; user-select: all; }
.secret p { margin: .4rem 0 0; font-size: .85rem; }
form.inline { display: inline; margin-left: .6rem; }
.client-logo { height: 32px; width: auto; margin-left: .25rem; padding: 2px 6px; border-radius: 6px; background: #fff; }
/* programmes */
.program-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.program-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.program-card:hover { text-decoration: none; border-color: var(--accent); }
.program-card img { height: 56px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.program-title img { height: 54px; width: auto; vertical-align: middle; }
.sort { margin: 0; font-size: .9rem; color: var(--muted); }
.logo-current { display: flex; align-items: center; gap: 1.2rem; }
.logo-current img { height: 48px; width: auto; padding: .4rem; background: var(--bg); border-radius: 6px; }
.top-nav { color: var(--ink); }
/* champs propres a un type de projet (sans script : :has sur le bouton coche) */
.form .only-program { display: none; }
.form:has(input[name="project_type"][value="program"]:checked) .only-program { display: grid; }
.form:has(input[name="project_type"][value="program"]:checked) .not-program { display: none; }
.inline-logo { height: 1.4em; width: auto; vertical-align: middle; }
.wide-fact { grid-column: span 2; }
.file-list { margin: .8rem 0 1.5rem; }
.file-list summary { cursor: pointer; color: var(--accent); }
.file-list ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .85rem; }
.file-list li { margin: .15rem 0; overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1.2rem; margin: 1.2rem 0 .4rem; padding: .9rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.filters input, .filters select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--ink); background: var(--bg); min-width: 12rem; }
.ok { color: var(--good); font-weight: 600; }
.small { font-size: .85rem; }
.tag-nofile { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }
.tc-warn { color: var(--warn); font-weight: 600; }
/* preservation */
.card-warn { border-color: var(--warn); }
.card-warn .card-n { color: var(--warn); }
.card-bad { border-color: var(--bad); }
.card-bad .card-n { color: var(--bad); }
.risk { display: inline-block; padding: 0 .45rem; border-radius: 4px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.risk.r3 { background: var(--bad-soft); color: var(--bad); }
.risk.r2 { background: var(--warn-soft); color: var(--warn); }
.risk.r1 { background: var(--good-soft); color: var(--good); }
.risk.r0 { background: var(--line); color: var(--muted); }
.grid.narrow { width: auto; min-width: 420px; }
.inline-form { display: flex; gap: .4rem; align-items: center; margin: 0; }
.inline-form select { padding: .2rem .3rem; font: inherit; font-size: .85rem; }
.artist-links { margin: -.5rem 0 1rem; color: var(--muted); }
/* player */
.player { margin: 1rem 0 1.5rem; padding: .9rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.player-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.player-play { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1rem; cursor: pointer; }
.player-now { display: flex; flex-direction: column; flex: 1; min-width: 12rem; }
.player-title { font-weight: 600; }
.player-time { color: var(--muted); font-size: .85rem; }
.player-wave { display: block; width: 100%; height: 64px; margin-top: .7rem; cursor: pointer; }
.player-list { margin: .7rem 0 0; padding-left: 1.4rem; columns: 2; font-size: .9rem; }
.player-list li { break-inside: avoid; }
.player-list button { border: 0; background: none; padding: .1rem 0; color: var(--accent); cursor: pointer; text-align: left; font: inherit; }
.player-list button.on { font-weight: 700; color: var(--ink); }
/* commandes */
.count-alert { background: var(--bad); color: #fff; }
.order-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1rem 0; }
.order-actions form { margin: 0; display: flex; gap: .4rem; }
.cart-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.cart-form select { padding: .35rem .4rem; font: inherit; font-size: .9rem; }
.o-submitted { background: var(--warn-soft); color: var(--warn); }
.o-approved, .o-preparing { background: var(--accent-soft); color: var(--accent); }
.o-delivered, .o-verified { background: var(--good-soft); color: var(--good); }
.o-refused, .o-cancelled { background: var(--bad-soft); color: var(--bad); }
.o-cart { background: var(--line); color: var(--muted); }
.pdf-link { margin: -.6rem 0 1rem; font-size: .9rem; }
/* outils de recherche */
.adv-link { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); }
.top .adv-link { margin: 0; color: var(--dark-muted); }
.top .adv-link a { color: var(--dark-muted); }
.top .adv-link a:hover { color: var(--accent-light); }
.tools-nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0 0 1rem; font-size: .9rem; }
.tools-nav a.on { font-weight: 700; color: var(--ink); }
.adv-form fieldset { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tree { list-style: none; padding-left: 0; }
.tree ul { list-style: none; padding-left: 1.4rem; margin: .3rem 0 .6rem; border-left: 2px solid var(--line); }
.tree li { margin: .25rem 0; }
.tree summary { cursor: pointer; }
.pager { margin: 1rem 0; display: flex; gap: 1rem; align-items: center; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cover-tile { display: flex; flex-direction: column; gap: .2rem; color: var(--ink); font-size: .85rem; }
.cover-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); }
.cover-tile span { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: .5rem 0 1.4rem; overflow-x: auto; }
.bar { position: relative; flex: 1 0 18px; height: 100%; display: flex; align-items: flex-end; }
.bar-fill { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; height: 2%; }
.bar-l { position: absolute; bottom: -1.2rem; left: 0; right: 0; text-align: center; font-size: .65rem; color: var(--muted); }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.crumbs { font-size: .85rem; margin: 0 0 .3rem; }
.warn-box { margin: 1rem 0; padding: .6rem 1rem; border: 1px solid #e3b341; background: #fff8e1; border-radius: var(--radius); }
.warn-box summary { cursor: pointer; font-weight: 600; }

/* boutons : survol au violet vif du site */
.btn:hover { background: var(--accent-vivid); }
.player-play { background: var(--accent-btn); }
.player-play:hover { background: var(--accent-vivid); }

/* connexion dans l'esprit de des-studios.com : fond noir, halo violet */
body.is-login { background: radial-gradient(ellipse at 50% 0%, rgba(192, 0, 255, .22), transparent 60%), var(--dark); color: var(--dark-ink); }
body.is-login .foot { color: var(--dark-muted); }
.is-login .login { background: var(--dark-2); border-color: var(--dark-line); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.is-login .login h1 { color: #fff; margin-bottom: .6rem; }
.is-login .login .brand-in { gap: .7rem; }
.is-login .login .brand-logo { width: 44px; height: 44px; }
.is-login .muted { color: var(--dark-muted); }
.is-login .login input, .is-login .login select { background: #0d0d0f; color: #fff; border-color: var(--dark-line); }
.is-login .login input:focus, .is-login .login select:focus { outline: 2px solid rgba(192, 0, 255, .35); border-color: var(--accent-vivid); }
.is-login .login .btn { width: 100%; }
.is-login .stack label { color: var(--dark-muted); }

/* Barre de recherche et de tri du catalogue */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.2rem 0 .4rem; }
.list-tools input[type=search] { flex: 1 1 320px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font: inherit; }
.list-tools input[type=search]:focus, .list-tools select:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }
.list-tools label { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; }
.list-tools select { padding: .55rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font: inherit; color: var(--ink); }
.list-tools .btn { padding: .55rem 1rem; }
.grid th a.sort { color: inherit; }
.grid th a.sort:hover { color: var(--accent); text-decoration: none; }
.grid th a.sort.on { color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 1rem 0; color: var(--muted); }
.pager a { font-weight: 600; }
.pager { flex-wrap: wrap; }
.pager .per-page { display: inline-flex; gap: .5rem; align-items: center; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.pager .per-page strong { color: var(--accent); }

/* Lecteur : haut-parleur dans la liste des titres, telechargement a cote de la forme d'onde */
/* sur grand ecran, le lecteur reste en haut pendant qu'on parcourt la liste */
@media (min-width: 900px) and (min-height: 700px) {
  .player { position: sticky; top: var(--head-h, 0px); z-index: 5; box-shadow: 0 6px 12px -10px rgba(0,0,0,.25); }
  .grid tr { scroll-margin-top: calc(var(--head-h, 0px) + 190px); }
}
.player-wave-row { display: flex; align-items: center; gap: .8rem; margin-top: .7rem; }
.player-wave-row .player-wave { flex: 1; margin-top: 0; min-width: 0; }
.player-wave-row .player-dl { white-space: nowrap; }
.spk-col { width: 2rem; padding-left: 0 !important; padding-right: 0 !important; text-align: center; }
.spk { border: 0; background: none; padding: .1rem .3rem; font-size: 1.05rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.spk:hover { background: var(--accent-soft); }
.spk.on { background: var(--accent-soft); }
.grid tr.playing td { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* projet dont la duree de conservation est depassee (expiration confirmee) : visible, mais signale */
.status.s-expired { background: var(--warn-soft); color: var(--warn); }
