/* Halfstar — style du site (version 2, octobre 2026).
   L'ancien style « Registre des écoutes » est archivé dans archive/style-registre-2026-10/.
   Thème clair et thème sombre : <html data-theme="light|dark"> (choix mémorisé), sinon celui du système. */

/* ======================= couleurs (thème clair par défaut) ======================= */
:root {
  --map-bg: #ffffff; --map-land: #d8d8e0;
  --bg: #f6f6f9; --surface: #ffffff; --paper: #efeff4; --ink: #131318; --mute: #686876; --rule: #e3e3ea; --rule-strong: #cfcfd9;
  --accent: #8b2ee6; --accent-fg: #ffffff; --accent-soft: #f2e8ff; --danger: #d92d4b; --ok: #13804a;
  --btn: #131318; --btn-fg: #ffffff;
  --grad: linear-gradient(100deg, #fbbf24 0%, #fb7a55 32%, #ec4899 62%, #a855f7 100%);
  --grad-soft: linear-gradient(100deg, rgba(251, 191, 36, .14), rgba(236, 72, 153, .12) 55%, rgba(168, 85, 247, .14));
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 4px 16px rgba(20, 20, 40, .06);
  --shadow-lg: 0 18px 50px rgba(20, 20, 40, .16);
  --radius: 16px; --radius-sm: 10px;
  /* notes : couleur calculée (--h : rouge 0 → vert 125), teinte et luminosité par thème */
  --sc-fg: 70% 24%; --sc-bg: 75% 92%; --sc-bd: 45% 72%; --sc-on: 55% 38%;
  --gold-fg: #8a6410; --gold-bg: #fbf3d6; --gold-bd: #e2c25e;
  --overlay: rgba(10, 10, 20, .42);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* thème sombre : choisi, ou celui du système quand aucun thème n'est choisi */
:root[data-theme="dark"] {
  --map-bg: initial; --map-land: initial;
  --bg: #0c0c11; --surface: #15151d; --paper: #1d1d27; --ink: #f2f2f6; --mute: #a0a0b0; --rule: #2a2a37; --rule-strong: #3a3a4a;
  --accent: #c48cff; --accent-fg: #14101c; --accent-soft: #2a1d3d; --danger: #ff6b85; --ok: #4ade80;
  --btn: #f2f2f6; --btn-fg: #121218;
  --grad-soft: linear-gradient(100deg, rgba(251, 191, 36, .12), rgba(236, 72, 153, .12) 55%, rgba(168, 85, 247, .16));
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
  --sc-fg: 70% 80%; --sc-bg: 40% 17%; --sc-bd: 35% 33%; --sc-on: 45% 42%;
  --gold-fg: #f1d36a; --gold-bg: #2c240f; --gold-bd: #7a6420;
  --overlay: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --map-bg: initial; --map-land: initial;
    --bg: #0c0c11; --surface: #15151d; --paper: #1d1d27; --ink: #f2f2f6; --mute: #a0a0b0; --rule: #2a2a37; --rule-strong: #3a3a4a;
    --accent: #c48cff; --accent-fg: #14101c; --accent-soft: #2a1d3d; --danger: #ff6b85; --ok: #4ade80;
    --btn: #f2f2f6; --btn-fg: #121218;
    --grad-soft: linear-gradient(100deg, rgba(251, 191, 36, .12), rgba(236, 72, 153, .12) 55%, rgba(168, 85, 247, .16));
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
    --sc-fg: 70% 80%; --sc-bg: 40% 17%; --sc-bd: 35% 33%; --sc-on: 45% 42%;
    --gold-fg: #f1d36a; --gold-bg: #2c240f; --gold-bd: #7a6420;
    --overlay: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ======================= base ======================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.mute { color: var(--mute); }
.u { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.u:hover { text-decoration-color: currentColor; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ======================= en-tête ======================= */
.topband { height: 3px; background: var(--grad); }
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand > span { display: grid; min-width: 0; }
.brand .wordmark { height: 34px; width: auto; display: block; }
.brand .wordmark.on-dark { display: none; }
:root[data-theme="dark"] .brand .wordmark.on-light { display: none; }
:root[data-theme="dark"] .brand .wordmark.on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .wordmark.on-light { display: none; }
  :root:not([data-theme="light"]) .brand .wordmark.on-dark { display: block; }
}
.brand-name { font: 600 19px/1.2 var(--serif); }
.brand-sub { font-size: 12px; color: var(--mute); margin-top: 1px; padding-left: 14px; border-left: 1px solid var(--rule); }
.account { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.account > a:not(.btn):not(.bell) { font-weight: 600; }
.account > button { color: var(--mute); }
.account > button:hover { color: var(--ink); }
.iconbtn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); border: 1px solid var(--rule); background: var(--surface); }
.iconbtn:hover { border-color: var(--rule-strong); }
.iconbtn svg { width: 18px; height: 18px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; background: #ec4899; color: #fff; border-radius: 9px; margin-left: 4px; text-decoration: none; }

nav.main { background: var(--surface); border-bottom: 1px solid var(--rule); }
nav.main .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
nav.main .wrap::-webkit-scrollbar { display: none; }
nav.main a { padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--mute); border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
nav.main a:hover { color: var(--ink); background: var(--paper); }
nav.main a.on { color: var(--btn-fg); background: var(--btn); }

/* ======================= mise en page, titres ======================= */
main { padding: 30px 0 90px; min-height: 60vh; }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
h1 { font: 700 32px/1.15 var(--serif); margin-bottom: 8px; letter-spacing: -.01em; }
.lead { color: var(--mute); max-width: 64ch; margin-bottom: 24px; font-size: 16px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
h2.sec { font: 700 20px/1.3 var(--serif); margin: 0 0 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
h2.sec .num { color: var(--accent); font-family: var(--sans); font-size: 15px; font-weight: 700; }
h2.sec .aside { margin-left: auto; font: 400 13px var(--sans); color: var(--mute); }
h3.small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin: 24px 0 10px; }
section.block { margin-bottom: 46px; }

/* ======================= boutons, formulaires ======================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; background: var(--btn); color: var(--btn-fg); border: 1px solid var(--btn);
  border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: transform .1s, opacity .15s, background .15s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { opacity: 1; border-color: var(--ink); }
.btn.danger { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); background: transparent; }
.btn.grad { background: var(--grad); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link-btn { font-size: 13px; color: var(--mute); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
label.field, .field { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form { max-width: 540px; display: grid; gap: 16px; }
.form .help { font-size: 12px; color: var(--mute); margin-top: 5px; }
input.in, textarea, select.in {
  font: inherit; color: inherit; background: var(--surface); width: 100%;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input.search { border: 2px solid var(--ink); font-size: 17px; border-radius: 999px; padding: 12px 20px; }
input.in:focus, textarea:focus, select.in:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; min-height: 120px; font-family: var(--serif); font-size: 16px; line-height: 1.6; }
input.line, textarea.just { font: inherit; color: inherit; width: 100%; border: 1px solid transparent; background: var(--paper); border-radius: 8px; padding: 7px 11px; font-size: 14px; outline: none; }
textarea.just { min-height: 0; height: 36px; overflow: hidden; resize: none; font-family: var(--sans); line-height: 1.5; }
input.line:focus, textarea.just:focus { background: var(--surface); border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input, .quiz input, .switch input { accent-color: var(--accent); }
.check input { margin-top: 4px; }
.notice { padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-size: 14px; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.notice.err { border-left-color: var(--danger); }
.notice.warn { border-left-color: var(--warn, #b7791f); }
.langpick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
.langpick select { max-width: 260px; }
.req { color: var(--danger); }
.notice.ok { border-left-color: var(--ok); }
.err-text { color: var(--danger); font-size: 13px; }

.seg, .filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; width: fit-content; max-width: 100%; margin: 12px 0 6px; }
.seg button, .filters button { padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--mute); border-radius: 999px; }
.seg button:hover, .filters button:hover { color: var(--ink); }
.seg button.on, .filters button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg .c, .filters .c { opacity: .7; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ======================= listes ======================= */
.list { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.list > a, .list > button, .list > div:not(.msg) { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); width: 100%; text-align: left; transition: background .12s; }
.list > :last-child { border-bottom: 0; }
.list > a:hover, .list > button:hover { background: var(--paper); }
.list img, .ph { width: 52px; height: 52px; object-fit: cover; flex: none; background: var(--paper); border-radius: 8px; }
.ph { display: grid; place-items: center; font: 700 18px var(--serif); color: var(--mute); }
.list .round, .ph.round, img.round { border-radius: 50%; }
.list .t { flex: 1; min-width: 0; }
.list .ti { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .me { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--paper); padding: 1px 7px; border-radius: 6px; margin-right: 6px; color: var(--mute); vertical-align: 1px; }
.score { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.score b { font: 600 18px var(--serif); }
.score small { display: block; font-size: 12px; color: var(--mute); }
.msg { padding: 26px 16px; color: var(--mute); text-align: center; }
.list .msg { border: 0; }

/* ======================= fiches (œuvre, morceau, artiste) ======================= */
.fiche { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-bottom: 42px; align-items: start; }
.fiche > img, .fiche > .ph { width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius); background: var(--paper); font-size: 64px; box-shadow: var(--shadow-lg); }
.fiche .who { font-size: 18px; font-weight: 600; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.who a:first-child:hover { color: var(--accent); }
dl.meta { display: grid; grid-template-columns: 140px 1fr; font-size: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 4px 16px; }
dl.meta dt, dl.meta dd { padding: 8px 0; border-bottom: 1px solid var(--rule); }
dl.meta dt:last-of-type, dl.meta dd:last-of-type { border-bottom: 0; }
dl.meta dt { color: var(--mute); font-size: 13px; }
dl.meta a { text-decoration: underline; text-underline-offset: 3px; }

.verdict { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 20px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.verdict::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad); }
.verdict .val { font: 700 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
.verdict .val span { font-size: 18px; color: var(--mute); font-weight: 400; }
.verdict .men { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.verdict .men b { display: block; font: 700 19px var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.verdict .how { margin-left: auto; font-size: 13px; color: var(--mute); }

.rate { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rate button { min-width: 38px; padding: 6px 7px; font-size: 13px; color: var(--mute); background: var(--paper); border-radius: 8px; font-variant-numeric: tabular-nums; transition: background .12s, color .12s; }
.rate button:hover { color: var(--ink); }
.rate button.in { color: var(--ink); background: var(--accent-soft); }
.rate.sm button { min-width: 31px; padding: 3px 4px; font-size: 12px; border-radius: 6px; }
/* notes en étoiles : chaque étoile a deux moitiés cliquables (demi-point) */
.rate.stars { --star: 32px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.rate.stars.sm { --star: 24px; }
.rate.stars .st { position: relative; display: inline-block; width: var(--star); height: var(--star); flex: none; }
.rate.stars .st svg, .starsrow svg { width: 100%; height: 100%; display: block; overflow: visible; }
.s-bg { fill: color-mix(in srgb, currentColor 14%, transparent); stroke: color-mix(in srgb, currentColor 28%, transparent); stroke-width: 1; stroke-linejoin: round; }
.s-fg { fill: hsl(var(--h, 90) 70% 46%); transition: clip-path .08s; }
.rate.stars.leg .s-fg, .starsrow.leg .s-fg { fill: #d6a933; }
.rate.stars .h { position: absolute; top: 0; bottom: 0; width: 50%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none !important; cursor: pointer; }
.rate.stars .h.l { left: 0; } .rate.stars .h.r { right: 0; }
.rate.stars .h:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
.rate.stars .st:active { transform: scale(.92); }
.rate.stars .rv { margin-left: 8px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.rate.stars .rv b { color: var(--ink); font: 700 15px var(--serif); }
.starsrow { --star: 20px; display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 12px; }
.starsrow svg { width: var(--star); height: var(--star); }
/* petites notes : une étoile devant le chiffre */
.sc:not(.none):not(.leg):not(.big)::before { content: "★"; font-size: .7em; margin-right: .22em; vertical-align: .08em; opacity: .9; }
.hint { font-size: 12px; color: var(--mute); margin-top: 6px; }

.bars { display: grid; gap: 10px; margin-top: 8px; }
.barrow { display: grid; grid-template-columns: 210px 1fr 80px; gap: 12px; align-items: center; font-size: 14px; }
.bt { height: 8px; background: var(--paper); border-radius: 999px; position: relative; overflow: hidden; }
.bt span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px; }
.bv { text-align: right; font-variant-numeric: tabular-nums; }
.bv small { color: var(--mute); }

.crit { display: grid; grid-template-columns: 1fr auto 120px; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.crit .cl b { display: block; font-weight: 600; font-size: 14px; }
.crit .cl span { font-size: 12px; color: var(--mute); }
.crit .cv { font-size: 13px; text-align: right; }
.crit .cv b { font: 600 15px var(--serif); }
.crit input.line { grid-column: 1 / -1; }

.thead, .track .row { display: grid; grid-template-columns: 44px 1fr 64px 120px; gap: 12px; align-items: baseline; }
.thead { font-size: 12px; font-weight: 600; color: var(--mute); padding: 0 0 8px; border-bottom: 1px solid var(--rule-strong); }
.r { text-align: right; }
.track { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.track .n, .track .du { color: var(--mute); font-variant-numeric: tabular-nums; }
.track .nm { font-weight: 600; }
.track .nm:hover { color: var(--accent); }
.track .tv { font-size: 13px; font-variant-numeric: tabular-nums; }
.track .sub { margin: 6px 0 0 56px; display: grid; gap: 6px; }
.track .tc, .track .pos { font-size: 12px; color: var(--mute); }
.track .mine { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; }

.credit { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.credit .cn { font-weight: 600; }
.credit .cn:hover { color: var(--accent); }
.credit .cr { font-size: 12px; color: var(--mute); }
.credit .cs:empty, .credit .cm:empty { display: none; }
.credit .cx { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
.addc { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 14px; }

.review { padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 10px; }
.review .rh { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.review .rn { font-weight: 700; }
.review .rn:hover { color: var(--accent); }
.review .rs { margin-left: auto; font-variant-numeric: tabular-nums; }
.review .rm { font-size: 12px; }
.review .rc { font-size: 13px; margin-top: 6px; color: var(--mute); }
.review .rc b { color: var(--ink); }
.review .rd { font-family: var(--serif); font-size: 16px; margin-top: 8px; white-space: pre-wrap; }
.review details { margin-top: 8px; font-size: 13px; }
.review summary { cursor: pointer; color: var(--accent); }
.review details ol, .review details ul { margin: 8px 0 0 20px; display: grid; gap: 4px; }
.review.hidden-vote { opacity: .8; border-style: dashed; }
.review .flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.modbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 36px; }
.kpis div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.kpis b { display: block; font: 700 28px var(--serif); font-variant-numeric: tabular-nums; }
.kpis span { font-size: 13px; color: var(--mute); }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }

.bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.tablewrap { overflow-x: auto; margin-top: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 4px 14px; }
table.reg { width: 100%; border-collapse: collapse; font-size: 14px; }
table.reg th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 10px 10px 8px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
table.reg td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.reg tr:last-child td { border-bottom: 0; }
table.reg tr[data-href] { cursor: pointer; }
table.reg tr[data-href]:hover td { background: var(--paper); }
table.reg .oe { font-weight: 600; }
table.reg .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.reg img { width: 38px; height: 38px; object-fit: cover; display: block; border-radius: 6px; }
table.reg .acts { display: flex; gap: 6px; flex-wrap: wrap; }

.savebar { position: fixed; left: 12px; right: 12px; bottom: 12px; background: var(--btn); color: var(--btn-fg); z-index: 25; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 936px; margin: 0 auto; }
.savebar .wrap { display: flex; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.savebar span { font-size: 14px; margin-right: auto; }
.savebar .btn { background: var(--btn-fg); color: var(--btn); border-color: var(--btn-fg); }
.savebar .btn.ghost { background: transparent; color: var(--btn-fg); border-color: color-mix(in srgb, var(--btn-fg) 40%, transparent); }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--btn); color: var(--btn-fg); padding: 11px 20px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); border-radius: 999px; box-shadow: var(--shadow-lg); }

footer.site { border-top: 1px solid var(--rule); background: var(--surface); font-size: 13px; color: var(--mute); }
footer.site { line-height: 1.8; }
footer.site .wrap { padding-top: 48px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 22px 28px; flex-wrap: wrap; }
footer.site a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
footer.site a:hover { color: var(--ink); }
footer.site .footlogo { height: 22px; width: auto; vertical-align: -6px; margin-right: 4px; }
body.has-savebar footer.site { padding-bottom: 80px; }
footer.site #langslot { flex-basis: 100%; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.langsel select { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
details.trbox { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; background: var(--surface); }
details.trbox summary { cursor: pointer; }

@media (max-width: 680px) {
  h1 { font-size: 26px; }
  .fiche { grid-template-columns: 1fr; gap: 18px; }
  .fiche > img, .fiche > .ph { width: 150px; height: 150px; }
  .thead { display: none; }
  .track .row { grid-template-columns: 30px 1fr auto; }
  .track .row .du { display: none; }
  .track .sub { margin-left: 0; }
  .crit { grid-template-columns: 1fr auto; }
  .crit .rw { grid-column: 1 / -1; grid-row: 2; }
  .barrow { grid-template-columns: 1fr 70px; }
  .barrow .bt { grid-column: 1 / -1; grid-row: 2; }
  .addc { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  table.reg .hide-sm { display: none; }
  .verdict .how { margin-left: 0; width: 100%; }
  dl.meta { grid-template-columns: 110px 1fr; }
}

/* ======================= étiquettes, onglets, questionnaires, documents ======================= */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; text-decoration: none !important;
  color: var(--mute); background: var(--paper); }
.pill.cert { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.wait { color: var(--accent); background: var(--accent-soft); }
.pill.no { color: var(--mute); }
.pill.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.pill.warn { color: var(--warn, #b7791f); background: color-mix(in srgb, var(--warn, #b7791f) 14%, transparent); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 26px; padding: 4px; background: var(--paper); border-radius: var(--radius-sm); }
.tabs a { padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--mute); border-radius: 8px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.quiz { display: grid; gap: 12px; }
.quiz fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 18px 16px; background: var(--surface); }
.quiz fieldset.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.quiz legend { font-weight: 700; padding: 0 6px; margin-left: -6px; font-size: 14px; }
.quiz label { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 14px; cursor: pointer; }
.quiz input { margin-top: 4px; }
.rules { font-family: var(--serif); font-size: 16px; line-height: 1.65; }
.rules p { margin-bottom: 10px; }
.rules ul { margin: 0 0 12px 22px; display: grid; gap: 6px; }
.rules-box { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; max-height: 340px; overflow: auto; background: var(--surface); }
.steps { counter-reset: st; }
.steps > section { counter-increment: st; }
.steps > section > h2.sec::before { content: counter(st) "."; color: var(--accent); }
.doc { font-family: var(--serif); font-size: 16px; line-height: 1.7; max-width: 70ch; }
.doc h2 { font: 700 20px/1.3 var(--serif); margin: 32px 0 10px; }
.doc p, .doc ul { margin-bottom: 12px; }
.doc ul { margin-left: 22px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc table { border-collapse: collapse; width: 100%; font: 14px/1.5 var(--sans); margin-bottom: 14px; }
.doc th, .doc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-size: 12px; color: var(--mute); border-bottom-color: var(--rule-strong); }
.appl dt { font-size: 12px; color: var(--mute); margin-top: 12px; }
.appl dd { white-space: pre-wrap; font-family: var(--serif); font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.card h3 { font: 700 16px var(--serif); margin-bottom: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.card .actions { margin-top: 12px; }
.qedit { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; background: var(--surface); }
.qedit .opt { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-size: 13px; }
.switch { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }
.log { font-size: 13px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 4px 16px; }
.log li { list-style: none; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.log li:last-child { border-bottom: 0; }
@media (max-width: 680px) { .grid-form { grid-template-columns: 1fr; } }
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cal div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px; }
.cal span { display: block; font-size: 12px; color: var(--mute); }
.cal b { font: 700 16px var(--serif); }
.award .choice { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.award .choice img, .award .choice .ph, .winner img, .winner .ph { width: 48px; height: 48px; object-fit: cover; flex: none; border-radius: 8px; }
.award .choice div, .winner div { display: grid; }
.award .choice b { font: 700 16px var(--serif); }
.award .picker { margin-top: 12px; }
.winner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--grad-soft); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; }
.winner .eyebrow { margin: 0; }
.winner b { font: 700 20px var(--serif); }
.winner img, .winner .ph { width: 64px; height: 64px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin: 0 0 28px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.toc a { color: var(--mute); }
.toc a:hover { color: var(--accent); }
table.res tr.first td { background: var(--accent-soft); }
.pctcell { display: flex; gap: 10px; align-items: center; min-width: 150px; font-variant-numeric: tabular-nums; }
.pbar { flex: 1; height: 8px; background: var(--paper); border-radius: 999px; position: relative; min-width: 60px; overflow: hidden; }
.pbar span { position: absolute; inset: 0 auto 0 0; background: var(--grad); }
@media (max-width: 680px) { .cal { grid-template-columns: 1fr; } #fe.grid-form { grid-template-columns: 1fr !important; } }

/* ======================= notes : couleur du rouge (0,5) au vert (4,5), or « légendaire » pour 5/5 ======================= */
.sc { --h: 90; display: inline-block; min-width: 2.3em; padding: 1px 7px; border-radius: 7px; text-align: center; vertical-align: baseline;
      font: 700 15px/1.35 var(--serif); font-variant-numeric: tabular-nums;
      color: hsl(var(--h) var(--sc-fg)); background: hsl(var(--h) var(--sc-bg)); border: 1px solid hsl(var(--h) var(--sc-bd)); }
.sc.md { font-size: 17px; }
.sc.big { font-size: 34px; line-height: 1.1; padding: 3px 12px; border-radius: 12px; }
.sc.none { color: var(--mute); background: transparent; border-color: var(--rule); }
.sc.leg { color: #3b2700; border-color: #b8860b; text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
          background: linear-gradient(115deg, #f1d36a 0%, #d6a933 30%, #fff1b8 48%, #d6a933 66%, #f1d36a 100%); background-size: 260% 100%;
          box-shadow: 0 0 0 1px rgba(184, 134, 11, .18), 0 0 12px rgba(214, 169, 51, .5); animation: legend-shine 5s linear infinite; }
.sc.leg::before { content: "✦"; font-size: .62em; margin-right: .25em; vertical-align: .25em; }
@keyframes legend-shine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.verdict.leg { background: linear-gradient(90deg, rgba(241, 211, 106, .22), var(--surface) 60%); }
.verdict.leg::before { background: linear-gradient(180deg, #f1d36a, #c9971f); }
.verdict.leg .men b { color: var(--gold-fg); }
.rate button.on { background: hsl(var(--h) var(--sc-on)); color: #fff; }
.rate button.on.five { background: linear-gradient(115deg, #f1d36a, #d6a933 45%, #fff1b8 55%, #d6a933); color: #3b2700; }
.sc.low { border-style: dashed; opacity: .82; }
@media (prefers-reduced-motion: reduce) { .sc.leg { animation: none; background-position: 40% 0; } }

/* ======================= barre d'actions, lecteur, certifications ======================= */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.toolbar .btn { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.toolbar .btn:hover { opacity: 1; border-color: var(--ink); }
.toolbar .btn.deezer, .btn.deezer { background: #a238ff; border-color: #a238ff; color: #fff; }
.playerbox { margin-top: 12px; }
.playerbox iframe { width: 100%; border: 0; display: block; background: var(--paper); border-radius: var(--radius-sm); }
.certs { display: flex; flex-wrap: wrap; gap: 6px; }
.cert { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 2px 9px 2px 6px; border-radius: 12px; border: 1px solid; text-decoration: none !important; }
.cert::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.cert.or { color: var(--gold-fg); border-color: var(--gold-bd); background: var(--gold-bg); }
.cert.platine { color: #6b7280; border-color: #b6bcc6; background: color-mix(in srgb, #b6bcc6 18%, transparent); }
.cert.diamant { color: #2a8ab0; border-color: #8cc8de; background: color-mix(in srgb, #8cc8de 18%, transparent); }

/* ======================= indicateurs d'artiste, graphiques ======================= */
.ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ind > div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.ind .k { font-size: 12px; color: var(--mute); display: block; margin-bottom: 6px; }
.ind .v { font: 700 17px/1.3 var(--serif); }
.ind .d { font-size: 12px; color: var(--mute); margin-top: 4px; }
.gauge { height: 6px; background: var(--paper); border-radius: 999px; margin-top: 8px; position: relative; overflow: hidden; }
.gauge span { position: absolute; inset: 0 auto 0 0; background: var(--grad); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--sans); fill: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a, .chips span { font-size: 12px; padding: 3px 10px; background: var(--paper); border-radius: 999px; }
.chips a:hover { background: var(--accent-soft); color: var(--accent); }

/* ======================= comparateur ======================= */
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cmp th, table.cmp td { padding: 10px; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; color: var(--mute); font-size: 12px; font-weight: 600; width: 22%; }
table.cmp thead th { vertical-align: top; font-weight: 400; }
table.cmp thead img, table.cmp thead .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin: 0 auto 6px; display: block; }
table.cmp .best { background: var(--accent-soft); }
table.cmp .best::after { content: " ★"; color: var(--accent); font-size: 12px; }
.cmpbars { display: grid; gap: 10px; margin-top: 18px; }
.cmpbars .row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; font-size: 13px; }
.cmpbars .set { display: grid; gap: 3px; }
.cmpbars .b { height: 9px; position: relative; background: var(--paper); border-radius: 999px; overflow: hidden; }
.cmpbars .b span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; border-radius: 3px; }

/* ======================= cartographie des collaborations ======================= */
.graphbox { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); height: 620px; overflow: hidden; touch-action: none; }
.graphbox svg { width: 100%; height: 100%; display: block; cursor: grab; }
.graphbox .link { stroke: var(--rule-strong); stroke-opacity: .9; }
.graphbox .link.hl { stroke: var(--accent); stroke-opacity: 1; }
.graphbox .node circle { stroke: var(--surface); stroke-width: 1.5px; cursor: pointer; }
.graphbox .node.center circle { stroke: var(--ink); stroke-width: 2.5px; }
.graphbox .node text { font: 11px var(--sans); fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.graphbox .node.dim { opacity: .25; }
.graphpanel { position: absolute; right: 10px; top: 10px; width: 260px; max-width: calc(100% - 20px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; box-shadow: var(--shadow); }
.graphpanel b { font: 700 16px var(--serif); display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--mute); margin: 8px 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 680px) {
  .ind { grid-template-columns: 1fr 1fr; }
  .cmpbars .row { grid-template-columns: 1fr; }
  .graphbox { height: 460px; }
  .graphpanel { position: static; width: auto; max-width: none; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
}

/* ======================= bouton de menu, menu latéral ======================= */
.menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--surface); }
.menu-btn:hover { border-color: var(--rule-strong); }
.burger { display: grid; gap: 3px; width: 16px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 310px; max-width: 86vw; background: var(--surface); border-right: 1px solid var(--rule);
          z-index: 40; overflow-y: auto; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
.drawer:not(.open) { box-shadow: none; }
.drawer.open { transform: none; }
.drawer-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 35; backdrop-filter: blur(2px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer-head .wordmark { height: 28px; }
.drawer-close { font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; color: var(--mute); }
.drawer-close:hover { color: var(--ink); background: var(--paper); }
#drawerNav { padding: 6px 10px 28px; }
#drawerNav h2 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin: 18px 10px 6px; }
#drawerNav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
#drawerNav a:hover { background: var(--paper); }
#drawerNav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
#drawerNav .badge { margin-left: 8px; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } body { transition: none; } }
@media (max-width: 680px) {
  .menu-label { display: none; }
  .menu-btn { padding: 9px 10px; }
  .brand .brand-sub { display: none; }
  .brand .wordmark { height: 28px; }
  header.site .wrap { flex-wrap: nowrap; }
  .account { gap: 8px; font-size: 13px; min-width: 0; flex-wrap: nowrap; }
  .account > a:not(.btn):not(.bell) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account #logout { display: none; }
  header.site .wrap { gap: 10px; }
  nav.main a { padding: 6px 12px; font-size: 13px; }
}

/* ======================= pochettes et disques de certification ======================= */
.cover { position: relative; flex: none; display: inline-block; line-height: 0; vertical-align: middle; }
.cover .cdisc { position: absolute; right: -7px; bottom: -7px; width: 44%; min-width: 19px; max-width: 70px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); pointer-events: auto; }
.cover .cdisc svg, .disc svg { width: 100%; height: auto; display: block; }
.list .cover { margin-right: 4px; }
.fiche > .cover { justify-self: start; align-self: start; }
.fiche > .cover img, .fiche > .cover .ph { width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius); background: var(--paper); font-size: 64px; box-shadow: var(--shadow-lg); }
.fiche > .cover .cdisc { right: -12px; bottom: -12px; width: 68px; }
table.reg .cover .cdisc { right: -5px; bottom: -5px; width: 20px; }
table.reg .cover .ph { width: 38px; height: 38px; font-size: 14px; }
.disc { display: inline-block; width: 22px; vertical-align: middle; flex: none; }
.discs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.discs .dc { display: grid; justify-items: center; text-align: center; gap: 4px; font-size: 13px; }
.discs .dc .disc { width: 72px; }
.discs .dc b { font: 700 15px/1.25 var(--serif); }
.discs .dc .mute { font-size: 12px; }
.discsum { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 20px; }
.discsum div { display: flex; gap: 10px; align-items: center; }
.discsum .disc { width: 44px; }
.discsum b { font: 700 24px var(--serif); display: block; line-height: 1; }
.discsum span { font-size: 12px; color: var(--mute); }
.disc-shine { animation: disc-shine 4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes disc-shine { 0%, 70%, 100% { opacity: 0; } 80% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .disc-shine { animation: none; opacity: .5; } }

/* ======================= indice de confiance ======================= */
.conf { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--mute); margin: -4px 0 14px; padding: 10px 18px; background: var(--paper); border-radius: var(--radius-sm); }
.conf b { color: var(--ink); }
.cgauge { display: inline-flex; gap: 2px; vertical-align: middle; }
.cgauge i { width: 7px; height: 10px; background: var(--rule-strong); display: block; border-radius: 2px; }
.cgauge i.on { background: var(--accent); }
.cgauge.l1 i.on, .cgauge.l0 i.on { background: #e0703a; }
.conftag { font-size: 11px; color: var(--mute); white-space: nowrap; }

/* ======================= Album d'une vie ======================= */
.life { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--gold-bd); border-radius: var(--radius); background: linear-gradient(90deg, rgba(241, 211, 106, .16), transparent 70%); margin-bottom: 14px; }
.life .emb { width: 34px; height: 34px; flex: none; }
.life b { font: 700 16px var(--serif); }
.lifebadge { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--gold-fg); border: 1px solid var(--gold-bd); border-radius: 999px; padding: 1px 9px; background: var(--gold-bg); white-space: nowrap; }

/* ======================= découverte, blind test, connexion ======================= */
.disco { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px; background: var(--grad-soft); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 28px; align-items: center; }
.disco .cover img, .disco .cover .ph { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-lg); }
.disco .cover .cdisc { width: 60px; right: -10px; bottom: -10px; }
.disco h3 { font: 700 24px/1.2 var(--serif); margin: 4px 0; }
.disco.sm { grid-template-columns: 96px 1fr; padding: 14px; gap: 16px; }
.disco.sm .cover img, .disco.sm .cover .ph { width: 96px; height: 96px; }
.disco.sm .cover .cdisc { width: 36px; right: -7px; bottom: -7px; }
.disco.sm h3 { font-size: 19px; }
.btgame { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; max-width: 720px; }
.btgame audio { width: 100%; margin: 10px 0 16px; }
#btres > button { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--rule); width: 100%; text-align: left; border-radius: 8px; }
#btres > button:hover { background: var(--paper); }
#btres img, #btres .ph { width: 40px; height: 40px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices button { text-align: left; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; }
.choices button:hover:not([disabled]) { border-color: var(--accent); background: var(--accent-soft); }
.choices button b { display: block; font: 700 16px var(--serif); }
.choices button.good { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.choices button.bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btscore { display: flex; gap: 22px; font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.btscore b { font: 700 20px var(--serif); color: var(--ink); }
.reveal { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.reveal .cover img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.oauthbtns { display: grid; gap: 10px; max-width: 540px; margin: 0 0 22px; }
.oauthbtn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.oauthbtn:hover { border-color: var(--ink); }
.oauthbtn.apple { background: #000; color: #fff; border-color: #000; }
.oauthbtn svg { width: 18px; height: 18px; flex: none; }
.ordiv { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; max-width: 540px; margin: 0 0 18px; }
.ordiv::before, .ordiv::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.bell { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); text-decoration: none !important; color: var(--ink); }
.bell:hover { border-color: var(--rule-strong); }
.bell svg { width: 18px; height: 18px; }
.bell .badge { position: absolute; top: -5px; right: -7px; margin: 0; }
.notif { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--rule); border-radius: 8px; }
.notif.unread { background: var(--accent-soft); }
.notif .t { flex: 1; min-width: 0; }
.notif .when { font-size: 12px; color: var(--mute); }
pre.code { background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; margin: 8px 0 14px; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); padding: 1px 5px; border-radius: 5px; }
.doc pre.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.embedbox { margin-top: 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); }
.embedbox iframe { width: 100%; max-width: 440px; height: 124px; border: 0; display: block; margin-top: 8px; background: var(--bg); }
@media (max-width: 680px) {
  .disco, .disco.sm { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .discs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .fiche > .cover img, .fiche > .cover .ph { width: 150px; height: 150px; }
  .fiche > .cover .cdisc { width: 50px; right: -9px; bottom: -9px; }
}

/* ======================= réseau social ======================= */
/* poids de vote d'un membre recommandé */
.wtag { display: inline-block; margin-left: 6px; padding: 0 6px; font: 700 11px/18px var(--sans); color: var(--gold-fg); background: var(--gold-bg); border: 1px solid var(--gold-bd); border-radius: 999px; vertical-align: 1px; }
/* bouton « communauté » (à côté du nom de l'artiste) : même dégradé, mais un vrai bouton */
.roomlink { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 6px 14px 6px 11px; vertical-align: middle;
  font: 700 12px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #fff !important; background: var(--grad); border-radius: 999px;
  text-decoration: none !important; white-space: nowrap; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, box-shadow .15s, filter .15s; }
.roomlink svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.roomlink:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.roomlink:active { transform: translateY(0); filter: brightness(.96); }
.roomlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* commentaires et messages */
.posts { display: flex; flex-direction: column; }
.post { padding: 12px 4px; border-bottom: 1px solid var(--rule); }
.post .ph-line { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.post .ph-line .rn { font-weight: 700; }
.post .ph-line .rn:hover { color: var(--accent); }
.post .post-act { margin-left: auto; display: flex; gap: 12px; }
.post .post-act .link-btn { font-size: 12px; }
.post-body { margin-top: 4px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.composer { margin-bottom: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.composer textarea { min-height: 64px; resize: vertical; font-family: var(--sans); font-size: 15px; border: 0; padding: 4px 2px; box-shadow: none !important; }

/* communauté d'un artiste */
.roomhead { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.roomhead img, .roomhead .ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #ec4899; }
.roomhead .ph { display: flex; align-items: center; justify-content: center; font: 700 32px var(--serif); background: var(--paper); }
.chat { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; height: min(68vh, 640px); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow); }
.chat-log { flex: 1; overflow-y: auto; padding: 6px 16px; }
.chat-log .post { border-bottom: 0; padding: 8px 0; }
.chat-log .post-body { display: inline-block; margin-top: 4px; padding: 8px 12px; background: var(--paper); border-radius: 4px 14px 14px 14px; max-width: 100%; }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); margin: 0; align-items: flex-end; background: var(--surface); }
.chat-in textarea { flex: 1; min-height: 42px; max-height: 160px; resize: none; font-family: var(--sans); font-size: 15px; border-radius: 22px; padding: 10px 16px; }

/* fil « Pour toi » : plein écran, une carte = un écran, le défilement s'arrête toujours sur une carte entière */
html.feedmode { scroll-snap-type: y mandatory; scroll-padding-top: var(--hdr, 0px); overscroll-behavior-y: none; }
html.feedmode body { background: #0b0b10; }
html.feedmode nav.main, html.feedmode footer.site, html.feedmode #tabnote { display: none; }
html.feedmode main { padding: 0; min-height: 0; }
html.feedmode main > .wrap { max-width: none; padding: 0; }
.feed { display: flex; flex-direction: column; }
.fcard { --fh: calc(100vh - var(--hdr, 0px)); --fh: calc(100dvh - var(--hdr, 0px)); height: var(--fh); scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; color: #fff; isolation: isolate; }
/* cartes hors écran : Safari ne les dessine pas (fonds flous très gourmands, sinon il « oublie » des images sur iPhone) */
.fcard { content-visibility: auto; contain-intrinsic-size: auto 100vw auto var(--fh); }
.fcard .fbg { position: absolute; inset: -40px; z-index: -2; background: #15151d center / cover no-repeat; filter: blur(38px) saturate(1.4) brightness(.55); transform: scale(1.1); }
.fcard .fbg.blindbg { background: var(--grad); filter: brightness(.6) saturate(1.2); }
.fcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.8) 100%); pointer-events: none; }
.fcard .art { align-self: center; width: min(78vw, 46dvh, 440px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 24px 60px rgba(0,0,0,.45); margin-top: 18px; transition: transform .4s; }
.fcard .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard .art.round, .fcard .art.round img { border-radius: 50%; }
.fcard .art .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 700 80px var(--serif); background: rgba(255,255,255,.1); color: #fff; }
.fcard.playing .art { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.015); box-shadow: 0 24px 70px rgba(236, 72, 153, .5); } }
.fcard .cap { width: 100%; max-width: 640px; padding: 14px 84px 26px 20px; z-index: 2; position: relative; }
.fcard .cap .eyebrow { color: #fbbf24; -webkit-text-fill-color: #fbbf24; background: none; }
.fcard h2 { font: 700 28px/1.12 var(--serif); margin: 2px 0 6px; overflow-wrap: anywhere; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.fcard h2 a { color: inherit; text-decoration: none; }
.fcard .cap p { margin: 0 0 6px; color: rgba(255,255,255,.88); }
.fcard .cap a { color: #fff; font-weight: 600; text-decoration: none; }
.fcard .cap a:hover { text-decoration: underline; }
.fcard .fscore { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; margin: 2px 0 4px; }
.fcard .fscore small { font-size: 13px; color: rgba(255,255,255,.75); }
.fcard .mute, .fcard .ask { color: rgba(255,255,255,.75); }
.fmusic { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.85); overflow: hidden; white-space: nowrap; }
.fmusic span:last-child { overflow: hidden; text-overflow: ellipsis; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; flex: none; }
.eq i { width: 3px; height: 4px; background: #fff; border-radius: 1px; }
.fcard.playing .eq i { animation: eq .8s ease-in-out infinite; }
.fcard.playing .eq i:nth-child(2) { animation-delay: .2s; } .fcard.playing .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 50% { height: 12px; } }
/* zone de toucher : lecture / pause, double toucher = coup de cœur */
.tapzone { position: absolute; inset: 0; z-index: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tapplay { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.5); pointer-events: none; }
.tapplay span { width: 70px; height: 70px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); border: 2px solid rgba(255,255,255,.9); position: relative; }
.tapplay span::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
.feed.muted .fcard.visible .tapplay { display: flex; }
.fcard.visible:not(.playing) .tapzone:hover + .heartpop { opacity: 0; }
/* barre d'actions à droite (comme sur TikTok) */
.rail { position: absolute; right: 10px; bottom: 30px; z-index: 3; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.rbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: #fff; font: 600 12px var(--sans); cursor: pointer; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.rbtn svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); fill: #fff; transition: transform .15s; }
.rbtn:hover svg { transform: scale(1.06); }
.rbtn .n { min-height: 1em; }
.rbtn.like.on svg { fill: #ff2d55; }
.rbtn.like.burst svg { animation: likeburst .45s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes likeburst { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* grand cœur au double toucher */
.heartpop { position: absolute; z-index: 4; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; opacity: 0; }
.heartpop svg { width: 100%; height: 100%; fill: #ff2d55; filter: drop-shadow(0 8px 24px rgba(255, 45, 85, .55)); }
.heartpop.go { animation: heartpop .9s ease-out forwards; }
@keyframes heartpop { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 15% { opacity: 1; transform: scale(1.15) rotate(-6deg); } 30% { transform: scale(.95) rotate(-6deg); } 70% { opacity: 1; transform: scale(1) translateY(-10px) rotate(-6deg); } 100% { opacity: 0; transform: scale(1.1) translateY(-60px) rotate(-6deg); } }
/* indication « glisser vers le haut » sur la première carte */
.swipehint-el { position: absolute; z-index: 3; left: 50%; top: 9%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); font: 600 14px var(--sans); pointer-events: none; animation: tipin .3s ease-out; }
.swipehint-el span { font-size: 26px; line-height: 1; animation: swipe 1.4s ease-in-out infinite; }
@keyframes swipe { 0%, 100% { transform: translateY(8px); opacity: .4; } 50% { transform: translateY(-8px); opacity: 1; } }
.soundbtn { position: fixed; right: 14px; top: calc(var(--hdr, 0px) + 12px); z-index: 20; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45) center / 22px no-repeat; backdrop-filter: blur(8px); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 8l6 8M22 8l-6 8' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); }
.soundbtn.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 7a7 7 0 0 1 0 10M19 4a11 11 0 0 1 0 16' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); }
.feedend { min-height: 1px; }
html.feedmode .feedend .msg { color: #fff; background: none; }
.bt-disc { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 700 120px var(--serif); color: #fff; background: var(--grad); border-radius: 50%; }
.blindcard .art { border-radius: 50%; }
.blindcard .cap { padding-right: 20px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.opts .opt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font: 13px/1.3 var(--sans); cursor: pointer; min-width: 0; }
.opts .opt b { font-size: 14px; overflow-wrap: anywhere; }
.opts .opt span { opacity: .75; overflow-wrap: anywhere; }
.opts .opt.right { border-color: #4ade80; background: rgba(74, 222, 128, .25); }
.opts .opt.wrong { border-color: #ff6b85; background: rgba(255, 107, 133, .25); }
.fcard .bres, .fcard .vres { font-size: 14px; }
.votecard .rate { margin: 8px 0; --star: 40px; color: #fff; }
.votecard .rate .rv { color: rgba(255,255,255,.8); flex-basis: 100%; margin: 6px 0 0; } .votecard .rate .rv b { color: #fff; }
.btn.light { background: #fff; color: #111; }
@media (min-width: 900px) { .fcard .cap { padding-bottom: 34px; } .rail { right: calc(50% - 360px); } .fcard h2 { font-size: 34px; } }
@media (max-height: 640px) { .fcard .art { width: min(70vw, 38dvh); margin-top: 10px; } .fcard h2 { font-size: 22px; } .opts .opt { padding: 6px 10px; } }
@media (max-width: 720px) {
  .roomhead img, .roomhead .ph { width: 62px; height: 62px; }
  .chat { height: 62vh; }
}
@media (prefers-reduced-motion: reduce) { .fcard.playing .art, .heartpop.go, .rbtn.like.burst svg, .swipehint-el span, .fcard.playing .eq i { animation: none; } }

/* astuces de prise en main */
.tip { position: fixed; z-index: 60; max-width: min(300px, calc(100vw - 16px)); display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 14px; background: #111118; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: tipin .25s ease-out; }
.tip button { flex: none; border: 0; border-radius: 999px; padding: 5px 12px; background: var(--grad); color: #fff; font: 700 13px var(--sans); cursor: pointer; }
@keyframes tipin { from { opacity: 0; transform: translateY(6px); } }
html:not([data-theme=light]) .tip { background: #fff; color: #111; }
@media (prefers-color-scheme: light) { html:not([data-theme=dark]) .tip { background: #111118; color: #fff; } }
/* fenêtres (compte, Premium) */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(10, 10, 16, 0); display: flex; align-items: center; justify-content: center; padding: 16px; transition: background .2s; }
.sheet-wrap.open { background: rgba(10, 10, 16, .55); }
.sheet { position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 30px 24px 22px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; }
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet h2 { font: 700 24px/1.2 var(--serif); margin: 10px 0 8px; }
.sheet p { color: var(--mute); margin: 0 0 10px; }
.sheet .actions { justify-content: center; margin-top: 16px; }
.sheet .eyebrow { margin: 8px 0 0; }
.sheet-x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--mute); cursor: pointer; }
@media (max-width: 600px) { .sheet-wrap { align-items: flex-end; padding: 0; } .sheet { max-width: none; border-radius: 24px 24px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); } }
/* bandeau en bas : créer un compte / Premium */
.nudge { position: fixed; z-index: 50; left: 50%; bottom: 14px; width: min(720px, calc(100vw - 20px)); display: flex; gap: 12px; align-items: center; padding: 12px 40px 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 16px 40px rgba(0,0,0,.18); transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); }
.nudge.open { transform: translate(-50%, 0); }
.nudge .nt { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; color: var(--mute); }
.nudge .nt b { color: var(--ink); font-size: 15px; }
.nudge .na { display: flex; gap: 6px; flex: none; }
.nudge .nx { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 22px; color: var(--mute); cursor: pointer; }
@media (max-width: 600px) { .nudge { flex-wrap: wrap; bottom: 8px; padding-bottom: max(12px, env(safe-area-inset-bottom)); } .nudge img { display: none; } .nudge .na { width: 100%; } .nudge .na .btn { flex: 1; justify-content: center; } }
html.feedmode .nudge { background: rgba(20, 20, 28, .92); border-color: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
html.feedmode .nudge .nt b { color: #fff; } html.feedmode .nudge .nt { color: rgba(255,255,255,.75); }
/* fonctions Premium visibles mais verrouillées */
.lockbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 18px; border-radius: 16px; background: var(--grad-soft), var(--surface); border: 1px solid var(--rule); }
.lockbar > span:nth-child(2) { flex: 1; min-width: 200px; font-size: 14px; }
.locked { position: relative; cursor: pointer; }
.locked > * { pointer-events: none; user-select: none; }
.locked::after { content: "✦ Premium"; position: absolute; right: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font: 700 11px var(--sans); letter-spacing: .03em; }
.locked:hover { outline: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 6px; border-radius: 12px; }
.matchteaser .kpis b { filter: blur(3px); }
/* coups de cœur sur le profil */
.likegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.liketile { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; min-width: 0; }
.liketile .cover { display: block; width: 100%; }
.liketile .cover img, .liketile .cover .ph { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.liketile .cover .ph { display: flex; align-items: center; justify-content: center; font: 700 40px var(--serif); background: var(--paper); }
.liketile.artist .cover img, .liketile.artist .cover .ph { border-radius: 50%; }
.liketile b { font-size: 14px; overflow-wrap: anywhere; } .liketile .mute { font-size: 12px; overflow-wrap: anywhere; }

/* accueil */
.hero { position: relative; overflow: hidden; padding: 34px 32px 30px; margin-bottom: 26px; background: var(--surface); border: 1px solid var(--rule); border-radius: 26px; box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: 42px; }
.hero .lead { margin-bottom: 8px; }
.hero-star { position: absolute; right: 24px; top: 22px; width: 96px; height: 96px; transform: rotate(-8deg); filter: drop-shadow(0 8px 18px rgba(236, 72, 153, .35)); }
@media (max-width: 680px) { .hero { padding: 24px 20px; border-radius: 20px; } .hero h1 { font-size: 32px; } .hero-star { width: 60px; height: 60px; right: 14px; top: 14px; } }

/* ======================= Premium ======================= */
.ptag { display: inline-block; margin-left: 6px; padding: 0 8px; font: 700 11px/19px var(--sans); color: #fff; background: var(--grad); border-radius: 999px; vertical-align: 2px; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.ptag.dot { padding: 0 6px; }
h1 .ptag { font-size: 13px; line-height: 22px; vertical-align: 6px; margin-left: 10px; }
.upsell { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); position: relative; overflow: hidden; margin: 10px 0; }
.upsell::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.upsell > * { position: relative; }
.upsell div { flex: 1; min-width: 220px; }
.upsell p { color: var(--mute); font-size: 14px; margin-top: 2px; }
.premiumhero .price { font-size: 15px; color: var(--mute); margin: 6px 0 2px; }
.premiumhero .price b { font: 700 34px var(--serif); color: var(--ink); }
.pfeats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pfeat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.pfeat h3 { font: 700 17px var(--serif); margin-bottom: 8px; }
.pfeat ul { list-style: none; display: grid; gap: 6px; font-size: 14px; }
.pfeat li::before { content: "✦ "; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
table.pcmp td:nth-child(n+2), table.pcmp th:nth-child(n+2) { text-align: center; }
@media (max-width: 680px) { .pfeats { grid-template-columns: 1fr; } }

/* couleur d'accent personnelle (Premium) : sur tout le site pour le membre, et sur l'en-tête de son profil */
[data-accent="violet"] { --accent: light-dark(#8b2ee6, #c48cff); }
[data-accent="rose"] { --accent: light-dark(#db2777, #f472b6); }
[data-accent="orange"] { --accent: light-dark(#ea580c, #fb923c); }
[data-accent="jaune"] { --accent: light-dark(#b7791f, #fbbf24); }
[data-accent="vert"] { --accent: light-dark(#15803d, #4ade80); }
[data-accent="bleu"] { --accent: light-dark(#2563eb, #60a5fa); }
[data-accent="rouge"] { --accent: light-dark(#dc2626, #f87171); }
[data-accent] { --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.accents { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--rule-strong); }
.accent-dot[data-accent] { background: var(--accent); }
.accent-dot.on { box-shadow: 0 0 0 2px var(--ink); }
.profilehead { padding: 22px 24px 8px; margin: 0 0 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); position: relative; overflow: hidden; }
.profilehead::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.profilehead > * { position: relative; }
.profilehead[data-accent]::before { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.profilehead[data-accent] .eyebrow { background: none; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.mbadge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule-strong); }
.mbadge.b-premium { background: var(--grad); color: #fff; border-color: transparent; }
.mbadge.b-founder, .mbadge.b-years { color: var(--gold-fg); background: var(--gold-bg); border-color: var(--gold-bd); }
.mbadge.b-trusted { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.favs a { display: grid; gap: 4px; font-size: 13px; }
.favs .cover img, .favs .cover .ph { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: var(--shadow); }
.favs b { font-size: 14px; line-height: 1.25; }
.favs .sc { justify-self: start; }
.favpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 4px; }
.favpick label { display: grid; gap: 4px; font-size: 12px; cursor: pointer; padding: 6px; border-radius: 10px; border: 2px solid transparent; position: relative; }
.favpick label.on { border-color: var(--accent); background: var(--accent-soft); }
.favpick input { position: absolute; top: 10px; left: 10px; accent-color: var(--accent); }
.favpick img, .favpick .ph { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.favpick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matchmeter { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; margin-bottom: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.matchmeter b { font: 700 40px var(--serif); grid-row: span 2; }
.matchmeter .pbar { height: 10px; }
.ranklist .up { color: var(--ok); font-weight: 700; white-space: nowrap; }
.ranklist .down { color: var(--danger); font-weight: 700; white-space: nowrap; }
.ranklist .acts .link-btn[disabled] { opacity: .3; }
.listpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; width: 100%; }

/* ----- classements par pays ----- */
.worldmap { background: var(--map-bg, var(--paper)); border: 1px solid var(--rule); border-radius: 16px; padding: 10px; margin: 8px 0 6px; min-height: 120px; }
.worldsvg { display: block; width: 100%; height: auto; }
.worldsvg path { fill: var(--map-land, color-mix(in srgb, var(--ink) 7%, var(--surface))); stroke: var(--map-bg, var(--paper)); stroke-width: .5; transition: opacity .15s; }
.worldsvg path.has { cursor: pointer; }
.worldsvg path.has:hover { opacity: .75; }
.worldsvg path.ranked { stroke: var(--accent); stroke-width: .8; }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.ccard:hover { border-color: var(--accent); }
.ccard.world { background: var(--accent-soft); }
.ccard .cflag { font-size: 26px; line-height: 1; }
.ccard .mute { font-size: 13px; }
.ccard .pill { align-self: flex-start; }
.cstats { display: flex; gap: 28px; margin: 4px 0 16px; }
.cstats > div { display: flex; flex-direction: column; }
.cstats b { font-size: 26px; }
.ccols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .ccols { grid-template-columns: 1fr; } }
.crow { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.crow img, .crow .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.crow > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.crow > span:nth-child(2) b, .crow > span:nth-child(2) .mute { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvals { font-size: 13px; white-space: nowrap; }
.cdiff { font-weight: 700; font-variant-numeric: tabular-nums; }
.cdiff.pa { color: var(--ok); }
.cdiff.pb { color: var(--danger); }
@media (max-width: 520px) { .crow { grid-template-columns: 40px 1fr auto; } .cvals { display: none; } }
.crow .cover { width: 40px; height: 40px; display: block; }

/* ----- Premium mis en avant ----- */
nav.main a.navprem { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
nav.main a.navprem.on { background: var(--grad); color: #fff; -webkit-background-clip: border-box; background-clip: border-box; }
.promo { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; margin: 0 0 26px; border-radius: 20px; border: 1px solid var(--rule); background: var(--surface); color: inherit; text-decoration: none; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.promo::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.promo > * { position: relative; }
.promo-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-t .eyebrow { margin: 0; }
.promo-t b { font: 700 22px var(--serif); }
.promo:hover { border-color: var(--accent); }
@media (max-width: 680px) { .promo { grid-template-columns: 48px 1fr; padding: 16px; } .promo img { width: 48px; height: 48px; } .promo .btn { grid-column: 1 / -1; justify-self: start; } }
.trialbadge { display: inline-block; margin: 6px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; }
.check.terms { margin: 10px 0 2px; max-width: 560px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--mute); }
/* ----- pages légales et sections ----- */
.doc ul.ident { list-style: none; padding: 0; }
.doc .formbox { border: 1px dashed var(--rule-strong); border-radius: 12px; padding: 4px 16px; background: var(--paper); }
.tofill { color: var(--danger); font-weight: 600; }
.tabsform { display: flex; flex-direction: column; gap: 4px; max-width: 720px; }
.tabrow { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.tabrow > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tabrow .mute { font-size: 13px; }
.switch { position: relative; flex: none; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--rule-strong); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- mobile : rien ne doit dépasser de l'écran ----- */
.kpis.kpis5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 680px) { .kpis.kpis5 { grid-template-columns: repeat(3, 1fr); } }
.doc { overflow-wrap: anywhere; }
@media (max-width: 600px) { .doc table { display: block; overflow-x: auto; } }
/* Les titres très longs (sans espace) se coupent au lieu d'élargir la page */
body { overflow-wrap: break-word; }
h1, h2, h3, .who, .ti, .me, .oe, dd, .rd, .rn, .crumbs, .lead, .msgbody, .cbody, .pfeat li, .faq summary { overflow-wrap: anywhere; }
.fiche > *, .grid2 > *, .list a > .t, .ccols > *, .kpis > *, .bar > *, .hero > *, .promo-t, .review .rh { min-width: 0; }
.fiche > .cover { min-width: auto; }
.grid2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 680px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.fiche { grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 680px) { .fiche { grid-template-columns: minmax(0, 1fr); } }
img, svg, video, iframe { max-width: 100%; }
.nm, .review .rh a, .track .row > * { overflow-wrap: anywhere; min-width: 0; }

/* visiteur sur petit écran : « Créer un compte » est proposé par le bandeau du bas et le menu */
@media (max-width: 420px) { #account .signupbtn { display: none; } }
/* clip vidéo dans le fil : l'image devient un lecteur 16:9, au-dessus de la zone de toucher */
.fcard.clipmode .art { width: min(96vw, 760px, calc(52dvh * 16 / 9)); aspect-ratio: 16 / 9; z-index: 2; position: relative; border-radius: 14px; background: #000; animation: none; }
.fcard.clipmode .art iframe { width: 100%; height: 100%; border: 0; display: block; }
.fcard.clipmode .tapplay { display: none !important; }
.rbtn.clipbtn svg { fill: #fff; }
.fcard.clipmode .rbtn.clipbtn svg { background: var(--grad); }
.blindcard.revealed .art { border-radius: 18px; }
.blindcard.revealed .art img { border-radius: 18px; }
/* blind test : les réponses gardent toute la largeur et ne bougent pas une fois la réponse donnée.
   Le résultat s'affiche au-dessus d'elles et la barre d'actions (commentaires, noter, clip) se place au-dessus du texte. */
.blindcard .bres { margin: 0 0 4px; }
.blindcard .bres:empty { display: none; }
.fcard.blindcard .cap > .rail { right: 10px; bottom: calc(100% + 6px); }

/* commentaires d'une œuvre : panneau qui monte du bas de l'écran (fil « Pour toi ») */
html.csheetopen { overflow: hidden; }
.csheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding-left: var(--side, 0px); background: rgba(0, 0, 0, 0); transition: background .25s; }
.csheet-wrap.open { background: rgba(0, 0, 0, .45); }
.csheet { width: 100%; max-width: 600px; height: min(72dvh, 680px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.35);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.csheet-wrap.open .csheet { transform: translateY(0); }
.csheet-head { position: relative; flex: none; padding: 8px 48px 10px; text-align: center; border-bottom: 1px solid var(--rule); touch-action: none; cursor: grab; }
.csheet-grab { display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: var(--rule-strong); }
.csheet-head h2 { margin: 0; font: 700 16px/1.3 var(--sans); }
.csheet-sub { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csheet-head .sheet-x { top: 12px; }
.csheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 10px; }
.csheet-body .msg { margin-top: 14px; }
.csheet-in { flex: none; display: flex; gap: 8px; align-items: flex-end; margin: 0; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.csheet-in textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; padding: 9px 14px; border-radius: 20px; font: 16px/1.4 var(--sans); }
p.csheet-in { display: block; font-size: 14px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .csheet, .csheet-wrap { transition: none; } }

/* ======================= navigation façon application (octobre 2026) ======================= */
:root { --tabh: 70px; --side: 0px; }
/* en-tête simplifié : logo + notifications ; se replie quand on descend */
header.site { transition: transform .28s ease; will-change: transform; }
header.site .wrap { flex-wrap: nowrap; padding-top: 9px; padding-bottom: 9px; }
header.site .brand .wordmark { height: 30px; }
html.hdr-hide header.site { transform: translateY(-110%); }
.account { gap: 14px; flex-wrap: nowrap; }
.account .loginlink { font-weight: 600; }
.account .bell { position: relative; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); }
.account .bell svg { width: 24px; height: 24px; }
.account .bell .badge { position: absolute; top: 0; right: -2px; }
/* barre d'onglets */
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tabh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: stretch; justify-content: space-around; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--rule); }
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding-bottom: 4px; color: var(--mute); text-decoration: none; font-size: 11px; font-weight: 600; min-width: 0; -webkit-tap-highlight-color: transparent; }
.tabbar .tab .ti { position: relative; display: inline-flex; }
.tabbar .tab svg { width: 27px; height: 27px; }
.tabbar .tab.on { color: var(--ink); }
.tabbar .tab.on svg { stroke-width: 2.4; }
.tabbar .tab .tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.tabbar .tab .badge { position: absolute; top: -4px; right: -10px; }
.tabbar .tabbrand, .tabbar .desk { display: none; }
.tabavatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--sans); color: #fff; background: var(--grad); }
.tab.on .tabavatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.tabavatar[data-accent] { background: var(--accent); }
body { padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); }
.savebar { bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 10px); }
.nudge { bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 10px); }
@media (max-width: 600px) { .nudge { bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 6px); } }
/* ordinateur : colonne de gauche (comme Instagram), plus d'en-tête */
@media (min-width: 900px) {
  :root { --side: 236px; }
  header.site, .topband { display: none; }
  body { padding-bottom: 0; padding-left: var(--side); }
  .tabbar { top: 0; right: auto; bottom: 0; width: var(--side); height: auto; padding: 22px 12px 18px; flex-direction: column; justify-content: flex-start; gap: 4px; border-top: 0; border-right: 1px solid var(--rule); background: var(--surface); backdrop-filter: none; }
  .tabbar .tabbrand { display: block; padding: 6px 12px 24px; }
  .tabbar .tabbrand .wordmark { height: 30px; width: auto; }
  .tabbar .tabbrand .tabstar { display: none; }
  .tabbar .tab, .tabbar .desk { flex: none; display: flex; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 11px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
  .tabbar .tab:hover { background: var(--paper); }
  .tabbar .tab.on { font-weight: 700; }
  .tabbar .tab svg { width: 25px; height: 25px; }
  .tabbar .tabprem { color: var(--accent); }
  .tabbar .tabprem svg { color: #ec4899; }
  .tabbar .tabbottom { margin-top: auto; }
  .savebar { bottom: 12px; left: calc(var(--side) + 12px); }
  .nudge { bottom: 14px; left: calc(50% + var(--side) / 2); }
  .toast { left: calc(50% + var(--side) / 2); }
}
@media (min-width: 900px) and (max-width: 1180px) {
  :root { --side: 76px; }
  .tabbar { padding: 18px 10px; align-items: center; }
  .tabbar .tabbrand { padding: 4px 0 20px; }
  .tabbar .tabbrand .wordmark { display: none !important; }
  .tabbar .tabbrand .tabstar { display: block; }
  .tabbar .tab, .tabbar .desk { padding: 12px; justify-content: center; }
  .tabbar .tab .tl { display: none; }
}
/* le fil : la barre d'onglets passe en sombre, l'en-tête flotte sur la carte */
html.feedmode .tabbar { background: rgba(10, 10, 16, .92); border-color: rgba(255,255,255,.08); }
html.feedmode .tabbar .tab { color: rgba(255,255,255,.6); }
html.feedmode .tabbar .tab.on { color: #fff; }
html.feedmode .tabbar .tab:hover { background: rgba(255,255,255,.06); }
@media (max-width: 899px) {
  html.feedmode header.site { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.feedmode header.site .wordmark.on-light { display: none !important; }
  html.feedmode header.site .wordmark.on-dark { display: block !important; }
  html.feedmode .account, html.feedmode .account a { color: #fff; }
  html.feedmode .topband { display: none; }
  html.feedmode body { padding-bottom: 0; }
  html.feedmode .fcard { --fh: calc(100vh - var(--tabh) - env(safe-area-inset-bottom)); --fh: calc(100dvh - var(--tabh) - env(safe-area-inset-bottom)); }
  html.feedmode .fcard .art { margin-top: 64px; }
  html.feedmode .soundbtn { top: 60px; }
}
@media (min-width: 900px) { html.feedmode .fcard { --fh: 100vh; --fh: 100dvh; } html.feedmode .soundbtn { top: 14px; } html.feedmode .nudge { left: calc(50% + var(--side) / 2); } }
/* sous-onglets des pages carrefour */
.subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 2px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.subnav a.on { background: var(--btn); color: var(--btn-fg); }
@media (min-width: 900px) { main { padding-top: 34px; } }
@media (max-width: 899px) { main { padding-top: 18px; } }
/* Explorer (recherche vide) */
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.xtile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); color: inherit; text-decoration: none; min-width: 0; }
.xtile:hover { border-color: var(--accent); }
.xtile .xi { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.xtile b { font-size: 15px; }
.xtile .mute { font-size: 12.5px; }
/* profil */
.phead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 18px; }
.pavatar { width: 108px; height: 108px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 46px var(--serif); color: #fff; background: var(--grad); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent); }
.phead[data-accent] .pavatar { background: var(--accent); }
.pname { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pname h1 { margin: 0; font-size: 28px; }
.premiumpill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font: 700 12px var(--sans); }
.pstats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 6px; font-size: 14px; color: var(--mute); }
.pstats b { color: var(--ink); font-size: 16px; }
.pmeta { font-size: 13px; color: var(--mute); margin: 2px 0; }
.pbio { margin: 10px 0 0; white-space: pre-wrap; font-size: 15px; }
.phead .badges { margin: 8px 0 0; }
.pactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.pactions .btn svg { width: 17px; height: 17px; }
.pactions #friendbox, .pactions #recbox { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 600px) { .phead { grid-template-columns: 1fr; gap: 12px; } .pavatar { width: 84px; height: 84px; font-size: 36px; } .pname h1 { font-size: 24px; } .pactions > .btn { flex: 1; justify-content: center; } }
.pcard { border: 1px solid var(--rule); border-radius: 18px; padding: 16px; margin: 0 0 24px; background: var(--grad-soft), var(--surface); }
.pcard.on { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pc-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pc-t { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.pc-t .mute { font-size: 13px; }
.pc-a { display: flex; flex-wrap: wrap; gap: 6px; }
.pfeatgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.pft { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.pft.locked::after { display: none; }
.pft:hover { border-color: var(--accent); }
.ptabs { display: flex; border-bottom: 1px solid var(--rule); margin: 8px 0 16px; }
.ptabs button { flex: 1; padding: 12px 6px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 600 14px var(--sans); color: var(--mute); cursor: pointer; display: flex; gap: 6px; justify-content: center; align-items: center; }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ptabs .c { font-size: 12px; color: var(--mute); font-weight: 500; }
/* paramètres */
.settings { max-width: 680px; }
.sgroup { margin: 0 0 22px; }
.sgroup h2 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 8px 4px; }
.scard { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.srow { display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: inherit; text-decoration: none; font: inherit; text-align: left; min-height: 50px; cursor: pointer; }
.scard > :last-child, .scard > #ids:last-child > :last-child { border-bottom: 0; }
.srow.static { cursor: default; }
.srow > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.srow .help { font-size: 12.5px; color: var(--mute); margin: 2px 0 0; }
.srow .mute { font-size: 13.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; }
a.srow:hover, button.srow:hover, .srow.det > summary:hover { background: var(--paper); }
.srow .chev { color: var(--mute); font-size: 20px; line-height: 1; flex: none; }
.srow.danger, .dangertxt { color: var(--danger); }
.srow.det { display: block; padding: 0; cursor: default; }
.srow.det > summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; }
.srow.det > summary::-webkit-details-marker { display: none; }
.srow.det[open] > summary .chev { transform: rotate(90deg); }
.srow.det > .form { padding: 4px 16px 16px; }
.srow .langsel select { max-width: 180px; }
/* communautés : création (Premium) */
.createbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.createbar .hint { flex-basis: 100%; margin: 0; }
/* corrections : logo de la colonne, cloche sur le fil, profil compact sur téléphone, lignes de paramètres */
.tabbar .tabbrand { display: none; }
@media (min-width: 900px) { .tabbar .tabbrand { display: block; } }
html.feedmode .tabbar .tabbrand .wordmark.on-light { display: none !important; }
html.feedmode .tabbar .tabbrand .wordmark.on-dark { display: block !important; }
html.feedmode .account .bell { background: transparent; border-color: transparent; color: #fff; }
.srow > span:first-child { display: block; }
.srow .help { display: block; }
@media (max-width: 600px) {
  .phead { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
  .pavatar { width: 76px; height: 76px; font-size: 32px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent); }
  .pinfo { display: contents; }
  .pname { grid-column: 2; }
  .pstats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 4px; margin: 4px 0 2px; font-size: 12px; }
  .pstats span { display: flex; flex-direction: column; }
  .pmeta, .phead .badges, .pbio { grid-column: 1 / -1; }
}
.account .bell { border: 0; background: none; }

/* extraits de 30 s sur les fiches : bouton lecture / pause des morceaux et de l'œuvre */
.pv-pause { display: none; }
.on > .pv-play { display: none; } .on > .pv-pause { display: block; }
.tplay { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; margin: -4px 8px -4px 0; vertical-align: middle; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.tplay svg { width: 13px; height: 13px; fill: currentColor; }
.tplay:hover { transform: scale(1.08); }
.tplay.on, .track.playing .tplay { background: var(--accent); color: #fff; }
.track.playing .nm { color: var(--accent); }
.btn.pvbtn { display: inline-flex; align-items: center; gap: 8px; }
.btn.pvbtn svg { width: 15px; height: 15px; fill: currentColor; }
/* fiche PDF : lien discret en bas de page */
.pdffoot { margin: 34px 0 0; text-align: right; font-size: 12px; }
.pdffoot .sep { margin: 0 8px; color: var(--mute); }
.pdffoot .link-btn { font-size: inherit; }
.pdffoot .embedbox { text-align: left; }
.pdffoot a { color: var(--mute); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.pdffoot a:hover { color: var(--ink); }
@media print { .pdffoot, .tplay, .pvbtn { display: none !important; } }
.fcard .cap p.because { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 2px; }
/* fil : « Vous connaissez ce morceau ? Noter » */
.trate:empty { display: none; }
.trate { margin-top: 10px; }
.tr-ask { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); color: #fff; font: 13px var(--sans); cursor: pointer; }
.tr-ask b { padding: 5px 12px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; }
.tr-ask:hover b { background: #fbbf24; }
.trate .rate { margin: 6px 0; --star: 36px; color: #fff; }
.trate .rate .rv { color: rgba(255,255,255,.8); } .trate .rate .rv b { color: #fff; }
.trate .ask { margin: 0; font-size: 14px; }
/* photos de profil */
.pavatar.has-img, .tabavatar.has-img { background: var(--paper); overflow: hidden; }
.pavatar img, .tabavatar img, .pav img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.pav { flex: none; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--sans); color: #fff; background: var(--grad); text-decoration: none; overflow: hidden; margin-right: 2px; }
.pav.has-img { background: var(--paper); }
.avedit { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.avedit .pavatar { width: 84px; height: 84px; font-size: 34px; flex: none; }
@media (max-width: 480px) { .avedit { flex-direction: column; align-items: flex-start; } }

/* police des onglets (barre du bas sur téléphone, colonne à gauche sur ordinateur) : Inter, hébergée sur le site
   (aucune requête vers un service tiers, voir public/fonts/LICENSE-Inter.txt) */
@font-face { font-family: "Halfstar UI"; src: url("/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Halfstar UI"; src: url("/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Halfstar UI"; src: url("/fonts/inter-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
.tabbar .tab, .tabbar .desk { font-family: "Halfstar UI", var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.tabbar .tab .tl { letter-spacing: .01em; }
.tabbar .tab.on .tl { font-weight: 700; }
@media (min-width: 900px) { .tabbar .tab .tl { letter-spacing: -.005em; } }

/* encart « Vous êtes un artiste ? » en bas du profil (campagnes : bientôt) */
.artistpromo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 36px 0 8px; padding: 16px 18px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); background: var(--grad-soft); }
.artistpromo .ap-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; }
.artistpromo .ap-ico svg { width: 20px; height: 20px; }
.artistpromo .ap-t { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.artistpromo .ap-t b { font: 700 17px/1.25 var(--serif); }
.artistpromo .ap-t span { font-size: 13px; color: var(--mute); }
.soonpill { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font: 700 10px/18px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); white-space: nowrap; }

/* genres préférés (inscription, profil) : pastilles à cocher */
.genrepick { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { position: relative; display: inline-flex; cursor: pointer; }
.gchip input { position: absolute; opacity: 0; pointer-events: none; }
.gchip span { display: inline-block; padding: 7px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; transition: background .12s, border-color .12s, color .12s; user-select: none; }
.gchip:hover span { border-color: var(--ink); }
.gchip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.gchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* application native (Capacitor) : Google et Apple refusent leur connexion dans une application intégrée → e-mail et mot de passe */
html.native .oauthbtns, html.native .ordiv { display: none; }

/* site de test (staging) : bandeau rayé en haut de chaque page */
.stagingband { position: relative; z-index: 60; padding: 5px 12px; text-align: center; font: 700 12px/1.4 var(--sans); letter-spacing: .04em; color: #3b2700;
  background: repeating-linear-gradient(135deg, #fbbf24 0 14px, #fcd34d 14px 28px); }

/* drapeaux des pays sur Windows : le système n'a pas de drapeaux emoji (il affiche « FR »), on charge alors une police
   qui ne contient que les drapeaux (Twemoji Country Flags, licence CC-BY 4.0). Seulement si le navigateur en a besoin
   (classe noflags posée par app.js) ; copie locale possible dans public/fonts/, sinon chargée depuis jsDelivr. */
@font-face { font-family: "Halfstar Flags"; unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url("/fonts/TwemojiCountryFlags.woff2") format("woff2"), url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2"); font-display: swap; }
html.noflags { --sans: "Halfstar Flags", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Halfstar Flags", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
html.noflags select, html.noflags option { font-family: var(--sans); }

/* après l'inscription : choix des genres (tuiles avec icônes, « Passer → » en haut) */
.welcome { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.welcome .wtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.skipbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--mute); font: 600 14px var(--sans); cursor: pointer; }
.skipbtn:hover { color: var(--ink); border-color: var(--ink); }
.welcome h1 { margin: 0 0 6px; }
.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; }
.gtile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 118px; padding: 16px 10px;
  border: 1.5px solid var(--rule); border-radius: 18px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: center;
  transition: transform .12s, border-color .12s, background .12s, box-shadow .12s; }
.gtile:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.gtile:active { transform: scale(.97); }
.gtile .gi { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--accent); transition: background .12s, color .12s; }
.gtile .gi svg { width: 26px; height: 26px; }
.gtile .gl { font: 600 14px/1.25 var(--sans); }
.gtile .gcheck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700;
  color: #fff; background: var(--grad); opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s; }
.gtile.on { border-color: transparent; background: var(--grad-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.gtile.on .gi { background: var(--grad); color: #fff; }
.gtile.on .gcheck { opacity: 1; transform: none; }
.gtile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.welcome .wbar { position: sticky; bottom: calc(12px + var(--tabh, 0px) + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 12px 14px 12px 18px;
  border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
@media (max-width: 520px) { .gtiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gtile { min-height: 104px; } }
@media (min-width: 900px) { .welcome .wbar { bottom: 16px; } }

/* comptes de musique (Spotify, Deezer) */
.mico { display: inline-flex; width: 22px; height: 22px; flex: none; }
.mico svg { width: 100%; height: 100%; }
.msheet { display: grid; gap: 14px; margin-top: 12px; max-height: 60vh; overflow: auto; }
.mprov { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; }
.mph { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mconnect { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.toolbar .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.captcha { min-height: 65px; }

/* réactions et réponses (commentaires, messages) */
.post-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.reacts { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.reacts button, .reacts .ro { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 9px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface); color: var(--mute); font: 600 12px/1 var(--sans); cursor: pointer; transition: border-color .12s, background .12s, transform .1s; }
.reacts button:active { transform: scale(.92); }
.reacts button:hover { border-color: var(--rule-strong); color: var(--ink); }
.reacts .rlike .rh { font-size: 15px; line-height: 1; }
.reacts .rlike.on { color: #e11d48; border-color: color-mix(in srgb, #e11d48 40%, transparent); background: color-mix(in srgb, #e11d48 8%, var(--surface)); }
.reacts .rchip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.reacts .radd { padding: 2px 8px; font-size: 12px; }
.reactpick { position: absolute; z-index: 90; display: flex; gap: 2px; padding: 5px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg); }
.reactpick button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; transition: transform .1s, background .1s; }
.reactpick button:hover { background: var(--paper); transform: scale(1.18); }
.replies { margin: 6px 0 0 34px; border-left: 2px solid var(--rule); padding-left: 12px; }
.replies:empty { display: none; }
.post.reply { padding: 8px 0; border-bottom: 0; }
.replyform { display: flex; gap: 8px; align-items: flex-end; margin: 8px 0 0 34px; }
.replyform textarea { flex: 1; min-height: 38px; font-family: var(--sans); font-size: 14px; }
.quote { margin: 4px 0; padding: 4px 10px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.quote b { color: var(--ink); }
.replybar { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 8px; font-size: 13px; }
.replybar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-in:has(.replybar) { flex-wrap: wrap; }

/* messages privés */
.dmthreads a { position: relative; }
.dmthreads a.unread .ti { font-weight: 800; }
.dmthreads .pav { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--paper); font-weight: 700; flex: none; }
.dmthreads .pav img { width: 100%; height: 100%; object-fit: cover; }
.dmthreads .me { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.dmthreads .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: #fff; font: 700 11px/1 var(--sans); }
.dmhead { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.dmhead .pav { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--paper); font-weight: 700; }
.dmhead .pav img { width: 100%; height: 100%; object-fit: cover; }
.dmhead h1 { margin: 0; font-size: 24px; }
.dmmsg { display: flex; flex-direction: column; align-items: flex-start; margin: 10px 0; max-width: 82%; }
.dmmsg.me { align-items: flex-end; margin-left: auto; }
.dmmsg .bubble { padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: var(--paper); max-width: 100%; overflow-wrap: anywhere; }
.dmmsg.me .bubble { border-radius: 16px 4px 16px 16px; background: var(--grad); color: #fff; }
.dmmsg.me .bubble .quote { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); border-left-color: #fff; }
.dmmsg .dmtext { white-space: normal; }
.dmmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.dmmsg.me .dmmeta { justify-content: flex-end; }
.dmshare { display: flex; gap: 10px; align-items: center; min-width: 220px; max-width: 320px; padding: 8px; margin: 2px 0 6px; border-radius: 12px; background: var(--surface); color: var(--ink) !important; text-decoration: none !important; border: 1px solid var(--rule); }
.dmshare img, .dmshare .ph { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--paper); font-weight: 700; }
.dmshare .round { border-radius: 50%; }
.dmshare .t { display: grid; gap: 1px; min-width: 0; }
.dmshare .t b, .dmshare .t .mute { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmshare .eyebrow { font-size: 10px; margin: 0; }
.dmpreview .dmshare { max-width: none; }
.fpick { display: grid; gap: 4px; max-height: 46vh; overflow: auto; }
.fpick button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.fpick button:hover { background: var(--paper); }
.fpick .ph { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); font-weight: 700; }
.pactions .btn svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }

/* publications : actions repliées dans un menu « ⋯ » sur le côté */
.post { position: relative; }
.post .ph-line { padding-right: 34px; }
.pmore { position: absolute; top: 8px; right: 0; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none;
  color: var(--mute); font: 700 18px/1 var(--sans); letter-spacing: 1px; cursor: pointer; opacity: .55; transition: opacity .12s, background .12s; }
.pmore:hover, .pmore:focus-visible, .pmore[aria-expanded="true"] { opacity: 1; background: var(--paper); }
@media (hover: hover) { .post > .ph-line .pmore { opacity: 0; } .post:hover > .ph-line .pmore, .post:focus-within > .ph-line .pmore { opacity: .8; } }
.post.reply .pmore { top: 4px; }
.reacts:empty { display: none; }
.reacts { margin-top: 6px; }
.reacts .rchip { min-height: 24px; padding: 1px 8px; }
.reacts .rchip:not(.on) { color: var(--mute); }
.pmenu { position: absolute; z-index: 50; right: 0; top: 40px; min-width: 210px; padding: 6px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.pmenu.up { top: auto; bottom: calc(100% - 4px); }
.pmenu .pm-react { display: flex; justify-content: space-between; gap: 2px; padding: 2px 2px 6px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.pmenu .pm-react button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; transition: transform .1s, background .1s; }
.pmenu .pm-react button:hover { background: var(--paper); transform: scale(1.15); }
.pmenu > button { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.pmenu > button:hover { background: var(--paper); }
.pmenu > button.danger { color: var(--danger); }
.post-body { -webkit-user-select: text; user-select: text; }

/* messagerie 1:1 en plein écran */
html.dmmode footer.site, html.dmmode #subnav, html.dmmode #tabnote, html.dmmode .nudge { display: none !important; }
html.dmmode body { overflow: hidden; }
.dmscreen { position: fixed; z-index: 25; left: 0; right: 0; top: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: var(--surface); }
@media (min-width: 900px) { .dmscreen { left: var(--side); bottom: 0; } }
.dmtop { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.dmtop .dmback { font: 400 30px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 0 6px 4px 0; }
.dmtop .pav { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--paper); font-weight: 700; flex: none; }
.dmtop .pav img { width: 100%; height: 100%; object-fit: cover; }
.dmwho { display: grid; line-height: 1.2; min-width: 0; }
.dmwho a { color: var(--ink); text-decoration: none; }
.dmwho .mute { font-size: 12px; }
.dmlog { flex: 1; overflow-y: auto; padding: 10px 14px 6px; overscroll-behavior: contain; }
.dmscreen .chat-in { border-top: 1px solid var(--rule); padding: 8px 10px calc(8px + env(safe-area-inset-bottom) * 0); }
.dmscreen .chat-in textarea { border-radius: 20px; min-height: 40px; }
.dmscreen .chat-in .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.dmscreen .chat-in .btn svg { width: 20px; height: 20px; margin: 0; }
.dmmsg { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: 3px 0; max-width: 86%; }
.dmmsg.me { align-items: flex-end; margin-left: auto; }
.dmrow { position: relative; display: flex; align-items: center; gap: 4px; max-width: 100%; }
.dmmsg.me .dmrow { flex-direction: row-reverse; }
.dmrow .pmore { position: static; width: 28px; height: 28px; flex: none; opacity: .35; }
@media (hover: hover) { .dmrow .pmore { opacity: 0; } .dmmsg:hover .dmrow .pmore { opacity: .8; } }
.dmmsg .pmenu { top: 100%; right: auto; left: 0; }
.dmmsg.me .pmenu { left: auto; right: 0; }
.dmmsg .pmenu.up { top: auto; bottom: 100%; }
.dmmsg .reacts { margin-top: 2px; }
.dmmsg.me + .dmmsg:not(.me), .dmmsg:not(.me) + .dmmsg.me { margin-top: 12px; }
.fpick .fsend { margin-left: auto; font: 700 12px var(--sans); color: var(--accent); }
.fpick button.sent .fsend { color: var(--ok); }
.sharelink { width: 100%; margin-top: 12px; border: 1px solid var(--rule); border-radius: 12px; }

/* mode application (Capacitor ou site installé) : ni sélection de texte, ni zoom, ni surlignage au toucher */
html.appmode { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; }
html.appmode body, html.appmode .post-body, html.appmode .dmtext { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.appmode * { -webkit-tap-highlight-color: transparent; }
html.appmode img, html.appmode a { -webkit-user-drag: none; -webkit-touch-callout: none; }
html.appmode input, html.appmode textarea, html.appmode select, html.appmode [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* évite le zoom automatique de l'iPhone quand on touche un champ (texte de moins de 16 px) */
@supports (-webkit-touch-callout: none) { html.appmode input, html.appmode textarea, html.appmode select { font-size: max(16px, 1em); } }
html.appmode button, html.appmode a, html.appmode .gtile, html.appmode .rchip { touch-action: manipulation; }
