/* ==========================================================================
   Linkezik — direction « affiche risographiée »
   Papier lilas froid, encre bleue riso, rose fluo, surimpression décalée.
   ========================================================================== */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #ECEAF4;
  --sheet: #F9F8FD;
  --sheet-2: #F2F0F9;
  --ink: #1D1A33;
  --ink-2: #3B3758;
  --muted: #6A668A;
  --line: #D6D2E6;
  --blue: #2F4BD8;
  --blue-ink: #2440C4;
  --blue-wash: #DFE3FB;
  --pink: #FF3E9A;
  --pink-wash: #FFE0EF;
  --yellow: #FFD12E;
  --ok: #138A5B;
  --danger: #D3264F;
  --dot: rgba(47, 75, 216, .07);
  --overprint-a: var(--pink);
  --overprint-b: var(--blue);
  --blend: multiply;
  --on-accent: #FFFFFF;
  --radius-sheet: 20px;
  --radius-field: 12px;
  --shadow-print: 0 2px 0 var(--line);
  --font-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131126; --sheet: #1C1936; --sheet-2: #24203F; --ink: #EEECF8; --ink-2: #CFCBE6; --muted: #9D99BC;
    --line: #322D54; --blue: #7D8CFF; --blue-ink: #A3AEFF; --blue-wash: #262A5C; --pink: #FF5FAE; --pink-wash: #3E1F3A;
    --yellow: #FFD84D; --ok: #3CCB8C; --danger: #FF5F7E; --dot: rgba(125, 140, 255, .06); --blend: screen; --on-accent: #120F2A;
    --shadow-print: 0 2px 0 #0B0A18; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131126; --sheet: #1C1936; --sheet-2: #24203F; --ink: #EEECF8; --ink-2: #CFCBE6; --muted: #9D99BC;
  --line: #322D54; --blue: #7D8CFF; --blue-ink: #A3AEFF; --blue-wash: #262A5C; --pink: #FF5FAE; --pink-wash: #3E1F3A;
  --yellow: #FFD84D; --ok: #3CCB8C; --danger: #FF5F7E; --dot: rgba(125, 140, 255, .06); --blend: screen; --on-accent: #120F2A;
  --shadow-print: 0 2px 0 #0B0A18; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 7px 7px;
  font: 400 16px/1.55 var(--font-body); font-feature-settings: "ss01";
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.prose a, .post-body a:not(.hashtag):not(.mention), .contact-list a, .msg a, .auth-alt a, .field a, .check a { text-decoration: underline; text-decoration-thickness: 1px; }
a.avatar, a.tag, a.btn, a.item, a.chat-item, a.notif, a.mini-aud, a.audition-card, a.sheet, .mainnav a, .tabbar a, .side-links a { text-decoration: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; font-stretch: 80%; }
h2 { font-size: 1.45rem; font-weight: 750; font-stretch: 85%; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }

/* ---- La signature : titre en surimpression riso ---- */
.overprint { position: relative; display: inline-block; color: var(--overprint-b); isolation: isolate; }
.overprint::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--overprint-a);
  transform: translate(max(2px, .045em), max(1.5px, .03em)); mix-blend-mode: var(--blend); pointer-events: none; z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .overprint.settle::after { animation: misregister 900ms cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes misregister { from { transform: translate(.3em, -.15em); opacity: 0; } to { transform: translate(max(2px, .045em), max(1.5px, .03em)); opacity: 1; } }

/* ---- Barre du haut ---- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.topbar-in { max-width: 1240px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font: 800 1.75rem/1 var(--font-display); font-stretch: 75%; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; }
.search { flex: 1; max-width: 360px; position: relative; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--sheet); transition: border-color .15s;
}
.search input:focus { border-color: var(--blue); outline: none; }
.search .icon { position: absolute; left: 13px; top: 10px; color: var(--muted); }
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px;
  padding: 7px 8px 5px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: .75rem; font-weight: 600;
}
.mainnav a:hover { background: var(--sheet-2); color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--blue-ink); }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -11px; height: 3px; border-radius: 3px; background: var(--blue); }
.badge {
  position: absolute; top: 2px; right: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pink); color: #fff; font: 700 .68rem/18px var(--font-body); text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.badge:empty, .badge[data-count="0"] { display: none; }
.me-menu { position: relative; }
.me-menu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.me-menu > summary::-webkit-details-marker { display: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px; z-index: 50;
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(29, 26, 51, .35);
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: none; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .94rem;
}
.menu a:hover, .menu button:hover { background: var(--sheet-2); }
.menu hr { border: 0; border-top: 1.5px solid var(--line); margin: 6px 4px; }
.menu .who { padding: 8px 10px 10px; }
.menu .who strong { display: block; }

/* ---- Navigation mobile ---- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .mainnav, .search { display: none; }
  .topbar-in { padding: 0 16px; gap: 10px; }
  .top-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
  .tabbar {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--sheet); border-top: 1.5px solid var(--line);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
  .tabbar a[aria-current="page"] { color: var(--blue-ink); }
  .tabbar .badge { right: calc(50% - 22px); }
  .tabbar .tab-plus span.plus {
    width: 48px; height: 48px; margin-top: -22px; border-radius: 16px; display: grid; place-items: center;
    background: var(--blue); color: #fff; box-shadow: 4px 4px 0 var(--pink);
  }
  body { padding-bottom: 84px; }
}
@media (min-width: 861px) { .top-actions .icon-btn.mobile-only { display: none; } .top-actions { display: contents; } }

/* ---- Mise en page ---- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.wrap.narrow { max-width: 760px; }
.wrap.mid { max-width: 980px; }
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.layout.two { grid-template-columns: minmax(0, 1fr) 320px; }
.rail { position: sticky; top: calc(var(--topbar) + 20px); display: grid; gap: 18px; }
@media (max-width: 1120px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .layout > .rail-right { display: none; } }
@media (max-width: 860px) {
  .wrap { padding: 16px 16px 40px; }
  .layout, .layout.two { grid-template-columns: minmax(0, 1fr); }
  .layout > .rail-left { display: none; }
  .layout.two > .rail { position: static; }
}
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.page-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- Feuilles (surfaces) ---- */
.sheet {
  background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-print); padding: 20px;
}
.sheet.flush { padding: 0; overflow: hidden; }
.sheet-title { font: 700 1rem/1.2 var(--font-display); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sheet-title a { font: 600 .85rem var(--font-body); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid transparent; background: var(--blue); color: var(--on-accent); font-weight: 650;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { box-shadow: 3px 3px 0 var(--pink); transform: translate(-1px, -1px); text-decoration: none; }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--line); }
.btn.soft { background: var(--blue-wash); color: var(--blue-ink); }
.btn.pink { background: var(--pink); }
.btn.pink:hover { box-shadow: 3px 3px 0 var(--blue); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger); color: #fff; box-shadow: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: .875rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--sheet-2); color: var(--ink); }
.icon-btn .badge { right: 2px; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue-ink); cursor: pointer; font-weight: 600; }

/* ---- Formulaires ---- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 650; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .err, .form-error { color: var(--danger); font-size: .86rem; font-weight: 600; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=url], .field input[type=tel], .field input[type=search], .field input:not([type]), .field select, .field textarea, select.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius-field); border: 1.5px solid var(--line);
  background: var(--sheet); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.field.invalid input { border-color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.pw-meter[data-score="2"] span { background: var(--yellow); }
.pw-meter[data-score="3"] span, .pw-meter[data-score="4"] span { background: var(--ok); }

/* Pastilles à cocher (styles, dispos, segments) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--sheet); font-size: .9rem; font-weight: 550; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--sheet-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 550; color: var(--ink-2); }
.tag.blue { background: var(--blue-wash); border-color: transparent; color: var(--blue-ink); }
.tag.pink { background: var(--pink-wash); border-color: transparent; color: var(--pink); }
.tag.sun { background: var(--yellow); border-color: transparent; color: #2A2200; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--sheet-2); border-radius: 999px; border: 1.5px solid var(--line); flex-wrap: wrap; }
.segmented a { padding: 6px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.segmented a[aria-current="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 0 0 1.5px var(--line); }

/* Sélecteur d'instruments */
.inst-family { margin-bottom: 14px; }
.inst-family h4 { font: 650 .85rem var(--font-body); color: var(--muted); margin: 0 0 8px; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.inst {
  position: relative; display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--sheet); cursor: pointer;
}
.inst input[type=checkbox] { position: absolute; opacity: 0; }
.inst .inst-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.inst .inst-name .emo { font-size: 1.15rem; }
.inst select { display: none; height: 32px; padding: 0 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--sheet); font-size: .82rem; }
.inst .main-pick { display: none; font-size: .78rem; gap: 6px; align-items: center; color: var(--muted); }
.inst:has(input[type=checkbox]:checked) { border-color: var(--blue); background: var(--blue-wash); box-shadow: 3px 3px 0 var(--blue); }
.inst:has(input[type=checkbox]:checked) select { display: block; }
.inst:has(input[type=checkbox]:checked) .main-pick { display: flex; }
.inst:has(input[type=checkbox]:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Saisie d'influences en étiquettes */
.taginput { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; min-height: 48px; border-radius: var(--radius-field); border: 1.5px solid var(--line); background: var(--sheet); }
.taginput:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.taginput input { flex: 1; min-width: 160px; border: 0; background: none; outline: none; padding: 4px; }
.taginput .tag button { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: inherit; line-height: 1; font-size: 1rem; }

/* ---- Avatars ---- */
.avatar { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; font: 750 calc(var(--s) * .38)/1 var(--font-display); color: #fff; background: var(--blue); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.c1 { background: var(--pink); }
.avatar.c2 { background: #6C3BD1; }
.avatar.c3 { background: #0E8A7A; }
.avatar.xs { --s: 28px; } .avatar.sm { --s: 36px; } .avatar.lg { --s: 72px; } .avatar.xl { --s: 132px; }
.avatar.square { border-radius: 22%; }
.who-line { display: flex; gap: 12px; align-items: center; min-width: 0; }
.who-line .meta { min-width: 0; }
.who-line .name { font-weight: 700; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-line .name:hover { text-decoration: underline; }
.who-line .sub { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Pass backstage (profil dans la colonne gauche) ---- */
.pass {
  position: relative; background: var(--sheet); border: 1.5px solid var(--line); border-radius: 22px; padding: 34px 18px 0;
  text-align: center; box-shadow: var(--shadow-print); overflow: hidden;
}
.pass::before { /* trou du lanyard */
  content: ""; position: absolute; top: 12px; left: 50%; width: 46px; height: 9px; margin-left: -23px; border-radius: 6px;
  background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}
.pass-band { position: absolute; inset: 0 0 auto 0; height: 74px; background: var(--blue); }
.pass-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .22) 1.3px, transparent 1.4px) 0 0/6px 6px; }
.pass .avatar { position: relative; margin: 6px auto 10px; box-shadow: 0 0 0 4px var(--sheet); }
.pass h3 { margin: 0; font-size: 1.15rem; }
.pass .headline { font-size: .86rem; color: var(--muted); margin: 4px 0 12px; }
.pass-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px dashed var(--line); margin: 0 -18px; }
.pass-stats a { padding: 12px 8px; text-decoration: none; color: var(--ink-2); font-size: .8rem; }
.pass-stats a + a { border-left: 1.5px dashed var(--line); }
.pass-stats strong { display: block; font: 800 1.3rem/1.1 var(--font-display); color: var(--ink); }
.pass-access { background: var(--ink); color: var(--paper); margin: 0 -18px; padding: 9px 12px; font: 700 .78rem/1 var(--font-display); letter-spacing: .02em; display: flex; justify-content: center; gap: 8px; }
.side-links { display: grid; gap: 2px; }
.side-links a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.side-links a:hover { background: var(--sheet-2); color: var(--ink); }

/* ---- Composer ---- */
.composer { padding: 16px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea {
  flex: 1; min-height: 52px; max-height: 360px; border: 0; resize: none; background: transparent; outline: none;
  font-size: 1.05rem; padding: 10px 2px; line-height: 1.5;
}
.composer-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 10px; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.tool:hover { background: var(--sheet-2); color: var(--ink); }
.tool.t-photo .icon { color: var(--blue); } .tool.t-audio .icon { color: var(--pink); } .tool.t-video .icon { color: #0E8A7A; }
.composer-tools .grow { flex: 1; }
.vis-select { height: 36px; padding: 0 30px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sheet); font-size: .86rem; font-weight: 600; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.previews:empty { display: none; }
.pv { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sheet-2); border: 1.5px solid var(--line); display: grid; place-items: center; text-align: center; font-size: .78rem; padding: 6px; }
.pv img, .pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(29, 26, 51, .75); color: #fff; cursor: pointer; z-index: 2; }
.pv .kind { color: var(--muted); display: grid; gap: 4px; justify-items: center; word-break: break-all; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--blue) 0 8px, var(--pink) 8px 16px); transition: width .2s; }

/* ---- Publications ---- */
.post { padding: 0; overflow: visible; }
.post-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 0; }
.post-head .who-line { flex: 1; }
.post-body { padding: 10px 18px 4px; overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 6px; }
.post-body .hashtag, .post-body .mention { font-weight: 650; text-decoration: none; }
.post-body .hashtag:hover, .post-body .mention:hover { text-decoration: underline; }
.vis-icon { display: inline-flex; vertical-align: -3px; }
.post-media { display: grid; gap: 4px; margin: 8px 0 0; }
.post-media.g2 { grid-template-columns: 1fr 1fr; }
.post-media.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media.g3 > :first-child { grid-row: span 2; }
.post-media.g4 { grid-template-columns: 1fr 1fr; }
.post-media .ph { position: relative; background: var(--sheet-2); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; }
.post-media .ph img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.post-media.g2 .ph, .post-media.g4 .ph { aspect-ratio: 1; }
.post-media.g3 .ph { aspect-ratio: auto; min-height: 150px; }
.post-media .more-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29, 26, 51, .55); color: #fff; font: 800 2rem var(--font-display); }
.post-media video, .listing-media video { width: 100%; max-height: 640px; background: #000; }
.post-foot { padding: 6px 10px 10px; }
.post-counts { display: flex; justify-content: space-between; padding: 6px 8px; font-size: .84rem; color: var(--muted); }
.post-actions { display: flex; gap: 2px; border-top: 1.5px solid var(--line); padding-top: 6px; }
.post-actions > * { flex: 1; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 6px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-weight: 650; font-size: .9rem; cursor: pointer; text-decoration: none; }
.act:hover { background: var(--sheet-2); color: var(--ink); }
.act.on { color: var(--pink); }
.react-wrap { position: relative; }
.react-pick {
  position: absolute; bottom: calc(100% + 6px); left: 0; display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--sheet); border: 1.5px solid var(--line); box-shadow: 0 14px 30px -16px rgba(29, 26, 51, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 10;
}
.react-wrap:hover .react-pick, .react-wrap:focus-within .react-pick, .react-pick.open { opacity: 1; visibility: visible; transform: none; }
.react-pick button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; font-size: 1.45rem; cursor: pointer; transition: transform .12s; }
.react-pick button:hover, .react-pick button:focus-visible { transform: scale(1.25) translateY(-3px); }
.comments { border-top: 1.5px solid var(--line); padding: 12px 16px 14px; display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment-bubble { background: var(--sheet-2); border-radius: 4px 16px 16px 16px; padding: 8px 12px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.comment-bubble p { margin: 0; font-size: .94rem; }
.comment-bubble .spread { font-size: .82rem; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input { flex: 1; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 16px; background: var(--sheet); }
.comment-form input:focus { outline: none; border-color: var(--blue); }
.inline-form { display: inline; }
.post-menu { position: relative; }
.post-menu > summary { list-style: none; }
.post-menu > summary::-webkit-details-marker { display: none; }
.feed-tabs { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---- Lecteur audio « forme d'onde imprimée » ---- */
.wave-player { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; margin: 6px 16px; padding: 14px; border-radius: 16px; background: var(--sheet-2); border: 1.5px solid var(--line); }
.wave-player.compact { margin: 0; }
.wave-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.wave-play:hover { transform: scale(1.06); }
.wave-play .icon { fill: currentColor; stroke: none; }
.wave-title { font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.wave-title span:last-child { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.wave { position: relative; height: 46px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: none; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--blue); opacity: .38; transition: opacity .1s; }
.wave i.played { opacity: 1; background: var(--pink); }
.wave:hover i:not(.played) { opacity: .55; }
.wave-player audio { display: none; }

/* ---- Profil ---- */
.cover { position: relative; height: 230px; background: var(--blue); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.empty::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.6px) 0 0/8px 8px, linear-gradient(115deg, transparent 55%, var(--pink) 55% 63%, transparent 63%); mix-blend-mode: normal; }
.profile-id { padding: 0 24px 22px; position: relative; }
.profile-id .avatar.xl { margin-top: -70px; box-shadow: 0 0 0 5px var(--sheet); }
.profile-id h1 { margin: 12px 0 4px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.profile-id .headline { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.profile-meta span { display: inline-flex; gap: 6px; align-items: center; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tabs { display: flex; gap: 4px; padding: 0 16px; border-top: 1.5px solid var(--line); overflow-x: auto; }
.profile-tabs a { padding: 14px 12px; color: var(--ink-2); font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.profile-tabs a:hover { color: var(--ink); border-color: var(--line); }
.skill { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.skill:last-child { border-bottom: 0; }
.skill .emo { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-wash); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.skill .info { flex: 1; min-width: 0; }
.skill .info strong { display: block; }
.level-bar { display: flex; gap: 3px; margin-top: 6px; }
.level-bar i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.level-bar i.on { background: var(--blue); }
.endorse-btn { display: inline-flex; gap: 6px; align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.timeline li:last-child { border: 0; }
.influences { display: flex; flex-wrap: wrap; gap: 8px; }
.influences span { font: 650 1rem/1 var(--font-display); padding: 9px 14px; border-radius: 999px; background: var(--sheet-2); border: 1.5px solid var(--line); }
.influences span:nth-child(3n+1) { transform: rotate(-1.5deg); }
.influences span:nth-child(3n+2) { transform: rotate(1deg); background: var(--pink-wash); border-color: transparent; }
.influences span:nth-child(5n) { background: var(--blue-wash); border-color: transparent; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media-grid a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sheet-2); display: grid; place-items: center; color: var(--muted); position: relative; }
.media-grid img { width: 100%; height: 100%; object-fit: cover; }
.media-grid .kind-chip { position: absolute; left: 6px; bottom: 6px; }
.contact-list { display: grid; gap: 10px; }
.contact-list div { display: flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }

/* ---- Listes de personnes ---- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 16px 16px; position: relative; }
.person .name { font-weight: 750; color: var(--ink); text-decoration: none; margin-top: 8px; }
.person .sub { font-size: .86rem; color: var(--muted); min-height: 2.6em; }
.person .dist { position: absolute; top: 12px; right: 12px; }
.person .insts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 6px 0 10px; }
.person form, .person .btn { margin-top: auto; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .who-line { flex: 1; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.filters .field { margin: 0; }
.filters .check { align-self: center; }

/* Sonar : recherche à proximité */
.sonar { position: relative; width: 74px; height: 74px; flex: none; }
.sonar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); opacity: .0; }
.sonar b { position: absolute; inset: 31px; border-radius: 50%; background: var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .sonar i { animation: ping 2.4s cubic-bezier(.2, .6, .4, 1) infinite; }
  .sonar i:nth-child(2) { animation-delay: .8s; } .sonar i:nth-child(3) { animation-delay: 1.6s; }
}
@media (prefers-reduced-motion: reduce) { .sonar i { opacity: .4; } .sonar i:nth-child(2) { inset: 12px; } .sonar i:nth-child(3) { inset: 24px; } }
@keyframes ping { from { transform: scale(.2); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.finder-head { display: flex; gap: 18px; align-items: center; }

/* ---- Auditions ---- */
.audition-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
a.audition-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blue); border-color: var(--blue); }
.audition-card .emo { width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); display: grid; place-items: center; font-size: 2rem; transform: rotate(-4deg); }
.audition-card h3 { margin: 0 0 4px; }
.mini-aud { display: flex; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; color: inherit; border-bottom: 1.5px dashed var(--line); }
.mini-aud:last-child { border: 0; }
.mini-aud .emo { width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.mini-aud strong { display: block; font-size: .9rem; line-height: 1.25; }

/* ---- Boutique ---- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.item { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.item:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
.item .thumb { aspect-ratio: 4 / 3; background: var(--sheet-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item .price-tag {
  position: absolute; top: 12px; left: -4px; padding: 6px 12px 6px 14px; background: var(--yellow); color: #1D1A00;
  font: 800 1.05rem/1 var(--font-display); border-radius: 0 8px 8px 0; box-shadow: 2px 2px 0 var(--ink);
}
.item .body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.item h3 { font: 700 1rem/1.25 var(--font-body); margin: 0; }
.item .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.item .has { display: flex; gap: 6px; color: var(--muted); }
.item .status-ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: var(--pink); color: #fff; font: 800 .75rem var(--font-display); padding: 4px 40px; }
.save-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sheet); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.save-btn.on { color: var(--pink); }
.save-btn.on .icon { fill: currentColor; }
.gallery { display: grid; gap: 8px; }
.gallery-main { border-radius: 18px; overflow: hidden; background: var(--sheet-2); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 76px; height: 76px; flex: none; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sheet-2); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.big-price { font: 800 2.4rem/1 var(--font-display); font-stretch: 80%; margin: 6px 0 10px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .94rem; margin: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.existing-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.existing-media label { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sheet-2); display: grid; place-items: center; font-size: .8rem; cursor: pointer; border: 2px solid transparent; }
.existing-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.existing-media input { position: absolute; top: 6px; left: 6px; z-index: 2; width: 18px; height: 18px; accent-color: var(--danger); }
.existing-media label:has(input:checked) { border-color: var(--danger); opacity: .6; }
.dropzone { border: 2px dashed var(--line); border-radius: 18px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; display: grid; justify-items: center; gap: 6px; }
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-ink); }
.dropzone strong { color: var(--ink); }

/* ---- Messagerie ---- */
.chat { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - var(--topbar) - 48px); min-height: 480px; }
.chat-list { border-right: 1.5px solid var(--line); overflow-y: auto; }
.chat-list h2 { padding: 18px 18px 8px; margin: 0; }
.chat-item { display: flex; gap: 12px; padding: 12px 18px; text-decoration: none; color: inherit; border-left: 3px solid transparent; }
.chat-item:hover { background: var(--sheet-2); }
.chat-item[aria-current="true"] { background: var(--blue-wash); border-left-color: var(--blue); }
.chat-item .meta { flex: 1; min-width: 0; }
.chat-item .top { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); }
.chat-item .top strong { color: var(--ink); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .last { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item.unread .last { color: var(--ink); font-weight: 650; }
.chat-item.unread .top::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; align-self: center; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1.5px solid var(--line); }
.chat-context { margin: 10px 18px 0; padding: 10px 14px; border-radius: 12px; background: var(--sheet-2); font-size: .88rem; display: flex; gap: 10px; align-items: center; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: min(72%, 560px); padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: var(--sheet-2); align-self: flex-start; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p { margin-top: .5em; }
.msg.mine { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.mine a { color: #fff; }
.msg time { display: block; font-size: .72rem; opacity: .65; margin-top: 3px; }
.chat-form { display: flex; gap: 10px; padding: 12px 18px; border-top: 1.5px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 160px; padding: 11px 16px; border-radius: 22px; border: 1.5px solid var(--line); resize: none; background: var(--sheet); line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--blue); }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - var(--topbar) - 110px); }
  .chat.has-conv .chat-list { display: none; }
  .chat:not(.has-conv) .chat-main { display: none; }
  .msg { max-width: 86%; }
}

/* ---- Notifications & flashs ---- */
.flashes { position: fixed; z-index: 80; top: calc(var(--topbar) + 12px); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--blue); font-weight: 550; }
.flash.error { box-shadow: 4px 4px 0 var(--danger); }
.flash.ok { box-shadow: 4px 4px 0 var(--pink); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; font-size: 1.2rem; line-height: 1; }
@media (prefers-reduced-motion: no-preference) { .flash { animation: drop .35s cubic-bezier(.2, .8, .2, 1.2); } }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.notif { display: flex; gap: 12px; padding: 14px 18px; text-decoration: none; color: inherit; border-bottom: 1.5px solid var(--line); align-items: center; }
.notif:last-child { border: 0; }
.notif.unread { background: var(--blue-wash); }
.notif:hover { background: var(--sheet-2); }
.notif p { margin: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty h3 { color: var(--ink); margin: 0; }
.empty .glyph { font-size: 2.6rem; }

/* ---- Dialogues ---- */
dialog { border: 1.5px solid var(--line); border-radius: 20px; background: var(--sheet); color: var(--ink); padding: 22px; width: min(480px, calc(100% - 32px)); box-shadow: 8px 8px 0 var(--blue); }
dialog::backdrop { background: rgba(20, 17, 40, .55); backdrop-filter: blur(3px); }
dialog.lightbox { width: auto; max-width: 94vw; padding: 0; background: #000; border: 0; box-shadow: none; }
dialog.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
dialog.lightbox .close { position: absolute; top: 10px; right: 10px; color: #fff; background: rgba(0, 0, 0, .45); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---- Accueil visiteur ---- */
.landing { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.landing-top { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 4vw, 48px); }
.landing-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 20px clamp(16px, 4vw, 48px) 60px; max-width: 1320px; margin: 0 auto; width: 100%; }
.hero-title { font: 800 clamp(3.2rem, 9vw, 7.4rem)/.86 var(--font-display); font-stretch: 75%; letter-spacing: -.015em; margin: 0 0 26px; }
.hero-title .line { display: block; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); max-width: 46ch; color: var(--ink-2); margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { height: 52px; padding: 0 26px; font-size: 1.05rem; }
.hero-poster { position: relative; aspect-ratio: 3 / 4; max-height: 640px; justify-self: center; width: 100%; max-width: 460px; }
.poster-sheet {
  position: absolute; inset: 0; border-radius: 6px; background: var(--sheet); border: 1.5px solid var(--line);
  transform: rotate(2.5deg); box-shadow: 10px 12px 0 var(--blue); padding: 26px; display: flex; flex-direction: column; overflow: hidden;
}
.poster-sheet .p-top { display: flex; justify-content: space-between; font: 700 .85rem var(--font-display); }
.poster-sheet .p-name { font: 800 3.6rem/.85 var(--font-display); font-stretch: 75%; margin: auto 0 14px; color: var(--blue); position: relative; }
.poster-sheet .p-name::after { content: attr(data-text); position: absolute; inset: 0; color: var(--pink); transform: translate(4px, 3px); mix-blend-mode: var(--blend); }
.poster-sheet .p-wave { display: flex; align-items: center; gap: 3px; height: 70px; }
.poster-sheet .p-wave i { flex: 1; background: var(--ink); border-radius: 2px; }
.poster-sheet .p-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.poster-stamp { position: absolute; z-index: 2; top: 40%; left: -9%; transform: rotate(-9deg); background: var(--yellow); color: #221C00; padding: 14px 18px; border-radius: 10px; font: 800 1.05rem/1.15 var(--font-display); box-shadow: 4px 4px 0 var(--ink); max-width: 230px; }
.poster-chat { position: absolute; z-index: 2; top: 17%; right: -7%; transform: rotate(-3deg); background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 16px 16px 16px 4px; font-weight: 600; font-size: .92rem; max-width: 220px; box-shadow: 4px 4px 0 var(--pink); }
.landing-strip { border-top: 1.5px solid var(--line); padding: 30px clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1320px; margin: 0 auto; width: 100%; }
.landing-strip h3 { margin: 10px 0 4px; }
.landing-strip p { color: var(--muted); font-size: .95rem; margin: 0; }
.landing-strip .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-ink); }
.landing-strip > div:nth-child(2) .ic { background: var(--pink-wash); color: var(--pink); }
.landing-strip > div:nth-child(3) .ic { background: var(--yellow); color: #221C00; }
@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; }
  .hero-poster { max-width: 340px; margin-top: 10px; }
  .landing-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .landing-strip { grid-template-columns: 1fr; } .poster-chat { right: 0; } .poster-stamp { left: 0; } }

/* ---- Authentification ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-art { position: relative; background: var(--blue); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .2) 1.5px, transparent 1.6px) 0 0/8px 8px; }
.auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; bottom: -160px; background: var(--pink); mix-blend-mode: multiply; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand-word { color: #fff; }
.auth-art blockquote { margin: 0; font: 750 clamp(1.8rem, 3vw, 2.6rem)/1.05 var(--font-display); font-stretch: 80%; max-width: 15ch; }
.auth-art cite { display: block; margin-top: 14px; font: 500 .95rem var(--font-body); opacity: .85; font-style: normal; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-form .inner { width: min(440px, 100%); }
.auth-form h1 { margin-bottom: 6px; }
.auth-alt { margin-top: 20px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 180px; padding: 22px; } .auth-art blockquote { font-size: 1.5rem; } .auth-art::after { width: 260px; height: 260px; right: -80px; bottom: -120px; } }

/* ---- Onboarding ---- */
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps button { flex: 1; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-weight: 650; font-size: .86rem; }
.steps button::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.steps button[aria-current="step"], .steps button.done { color: var(--ink); }
.steps button[aria-current="step"]::before { background: var(--pink); }
.steps button.done::before { background: var(--blue); }
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.geo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.geo-status { font-size: .86rem; color: var(--ok); font-weight: 600; }

/* ---- Tableaux (modération) ---- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 650; font-size: .82rem; }
.table-wrap { overflow-x: auto; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; }
.stat strong { display: block; font: 800 2rem/1 var(--font-display); }
.stat span { color: var(--muted); font-size: .86rem; }

/* ---- Erreurs ---- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-code { font: 800 clamp(6rem, 20vw, 11rem)/.8 var(--font-display); font-stretch: 75%; }

/* ---- Divers ---- */
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--yellow); color: #221C00; font-weight: 600; margin-bottom: 16px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed var(--line); font-size: .92rem; }
.kv:last-child { border: 0; }
.load-more { display: flex; justify-content: center; padding: 8px 0 20px; }
.code-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font: 650 1.05rem var(--font-display); letter-spacing: .04em; padding: 16px; border-radius: 14px; background: var(--sheet-2); }
.qr { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 14px; }
.secret { font: 600 .95rem var(--font-display); letter-spacing: .08em; word-break: break-all; background: var(--sheet-2); padding: 8px 12px; border-radius: 10px; }
.footer-note { text-align: center; color: var(--muted); font-size: .82rem; padding: 10px 0 30px; }
.footer-note a { color: inherit; }
.band-hero-name { font-size: clamp(2.2rem, 6vw, 4rem); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.mt { margin-top: 16px; }
.mini-aud .emo { overflow: hidden; }
.mini-aud .emo img { width: 100%; height: 100%; object-fit: cover; }
.push-right { margin-left: auto; }
.mobile-back { display: none; }
@media (max-width: 860px) { .mobile-back { display: inline-grid; } .hide-sm { display: none; } }
.row > .input, .row > .grow-input { flex: 1; width: auto; min-width: 180px; }
.item-wrap { position: relative; }
.menu-inline button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 0; font-weight: 600; font-size: .88rem; }
.menu-inline button:hover { color: var(--danger); }
.who-line.list-row { text-decoration: none; color: inherit; }

.composer-opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding-left: 56px; }
.composer-opts .label { font-size: .82rem; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .composer-opts { padding-left: 0; } .tool span.t-txt { display: none; } }
.vis-select { max-width: 210px; }
.stack { grid-template-columns: minmax(0, 1fr); }
.segmented { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.segmented a { white-space: nowrap; }
html, body { overflow-x: clip; }
@media (max-width: 560px) { .composer-opts .vis-select { flex: 1; max-width: none; } }
.btn.pink, .msg.mine, .msg.mine a, .tabbar .tab-plus span.plus, .badge { color: var(--on-accent); }

/* ==========================================================================
   Accueil : photos de concerts
   ========================================================================== */
.collage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1.02; justify-self: center; }
.print { position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px; border-radius: 3px; box-shadow: 0 22px 40px -22px rgba(20, 17, 40, .55); }
.print img { width: 100%; height: 100%; object-fit: cover; display: block; }
.print figcaption { position: absolute; left: 12px; bottom: 9px; font: 700 .86rem var(--font-display); color: #1D1A33; }
.print::before { /* ruban adhésif */
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px;
  background: color-mix(in srgb, var(--yellow) 70%, transparent); transform: rotate(-3deg); mix-blend-mode: multiply; z-index: 2;
}
.print.p1 { left: 4%; top: 6%; width: 72%; height: 54%; transform: rotate(-3deg); z-index: 2; }
.print.p2 { right: 0; top: 40%; width: 56%; height: 38%; transform: rotate(4deg); z-index: 3; }
.print.p3 { left: 0; bottom: 0; width: 46%; height: 34%; transform: rotate(-6deg); z-index: 1; }
.print.p2::before { background: color-mix(in srgb, var(--pink) 55%, transparent); left: 30%; }
.collage-stamp { position: absolute; z-index: 4; left: 52%; bottom: 3%; transform: rotate(-8deg); background: var(--yellow); color: #221C00; padding: 12px 16px; border-radius: 10px; font: 800 1rem/1.15 var(--font-display); box-shadow: 4px 4px 0 var(--ink); max-width: 210px; }
.collage-chat { position: absolute; z-index: 4; top: 0; right: 2%; transform: rotate(3deg); background: var(--ink); color: var(--paper); padding: 11px 15px; border-radius: 16px 16px 4px 16px; font-weight: 600; font-size: .9rem; max-width: 210px; box-shadow: 4px 4px 0 var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .print { animation: pin-up .8s cubic-bezier(.2, .9, .25, 1.15) both; }
  .print.p2 { animation-delay: .12s; } .print.p3 { animation-delay: .24s; }
  @keyframes pin-up { from { opacity: 0; translate: 0 26px; scale: .96; } }
}

/* Planche contact */
.filmstrip { background: #14112A; color: #EEECF8; padding: 56px 0 46px; margin-top: 10px; overflow: hidden; }
.filmstrip-title { font: 800 clamp(1.7rem, 4vw, 3rem)/1 var(--font-display); font-stretch: 78%; margin: 0 auto 30px; padding: 0 clamp(16px, 4vw, 48px); width: min(1320px, 100%); text-wrap: balance; }
.film {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; padding: 26px clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle at 13px 8px, #14112A 4px, transparent 4.5px) 0 0 / 26px 16px repeat-x,
    radial-gradient(circle at 13px 8px, #14112A 4px, transparent 4.5px) 0 100% / 26px 16px repeat-x,
    #2A2645;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.frame { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; scroll-snap-align: start; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); transition: transform .4s; }
.frame:hover img { transform: scale(1.04); }
.frame figcaption { position: absolute; left: 10px; bottom: 8px; font: 800 1.05rem var(--font-display); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.frame figcaption::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); margin-right: 7px; }

.landing-strip { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 0; padding-top: 50px; }

.final-cta {
  position: relative; margin: 20px clamp(16px, 4vw, 48px) 0; border-radius: 24px; overflow: hidden; min-height: 360px;
  display: grid; align-items: end; padding: clamp(24px, 5vw, 56px);
  background: linear-gradient(180deg, rgba(20, 17, 42, .1) 20%, rgba(20, 17, 42, .85)), url("../img/live/scene.webp") center / cover;
  color: #fff; max-width: 1320px; width: calc(100% - 2 * clamp(16px, 4vw, 48px)); justify-self: center;
}
.final-cta h2 { font: 800 clamp(2rem, 5vw, 3.8rem)/.95 var(--font-display); font-stretch: 78%; margin: 0 0 22px; }
.landing-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; align-items: flex-start; padding: 26px 16px 90px; color: var(--muted); font-size: .84rem; }
.landing-foot a { color: inherit; }
.credits summary { cursor: pointer; }
.credits p { max-width: 70ch; margin-top: 8px; }

/* Ambiance sonore */
.ambience {
  position: fixed; z-index: 60; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sheet); color: var(--ink);
  font-weight: 650; font-size: .88rem; cursor: pointer; box-shadow: 3px 3px 0 var(--blue);
}
.ambience-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ambience-bars i { width: 3px; height: 4px; background: var(--muted); border-radius: 1px; }
.ambience[aria-pressed="true"] .ambience-bars i { background: var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .ambience[aria-pressed="true"] .ambience-bars i { animation: eq 0.9s ease-in-out infinite alternate; }
  .ambience[aria-pressed="true"] .ambience-bars i:nth-child(2) { animation-delay: .3s; }
  .ambience[aria-pressed="true"] .ambience-bars i:nth-child(3) { animation-delay: .6s; }
}
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Page de connexion : photo de scène teintée à l'encre bleue */
.auth-art { background: var(--blue) url("../img/live/chant.webp") center / cover; background-blend-mode: multiply; }
.auth-art::after { opacity: .75; }

@media (max-width: 900px) {
  .collage { max-width: 460px; margin-top: 10px; }
  .film { grid-auto-columns: 78%; }
}
@media (max-width: 520px) { .hide-xs { display: none; } .collage-chat { right: 0; max-width: 170px; } .collage-stamp { left: 40%; } }

/* Cours particuliers */
.lesson-card { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.lesson-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pink); border-color: var(--pink); }
.lesson-emo { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: var(--blue-wash); box-shadow: inset 0 0 0 3px var(--sheet), 0 0 0 2px var(--blue); }
.lesson-main h3 { margin: 0 0 6px; }
.lesson-main .who-line { gap: 8px; }
.lesson-price { text-align: right; }
.lesson-price strong { display: block; font: 800 1.5rem/1 var(--font-display); }
.lesson-price span { color: var(--muted); font-size: .84rem; }
.lesson-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.lesson-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
@media (max-width: 560px) { .lesson-card { grid-template-columns: 48px 1fr; } .lesson-emo { width: 48px; height: 48px; font-size: 1.4rem; } .lesson-price { grid-column: 2; text-align: left; } }
.landing { grid-template-columns: minmax(0, 1fr); }
.landing-hero > *, .filmstrip, .film { min-width: 0; }
@media (max-width: 900px) { .landing-hero { grid-template-columns: minmax(0, 1fr); } .collage { width: 100%; } }
@media (max-width: 520px) { .ambience { right: 12px; bottom: 12px; padding: 8px 12px; } }
