/*
 * TropSexy : l'app photo et les pages classiques (nouvelle interface).
 * Mise en page : téléphone d'abord (barre du haut, rail de catégories, mosaïque, menu du bas) ;
 * sur ordinateur, même app centrée, mosaïque sur 3 puis 4 colonnes.
 */
:root {
  --night: #120b10; --night-2: #1c1219; --night-3: #281a24; --line: #3a2a35;
  --text: #f7eef3; --soft: #e6d8e0; --muted: #ae98a6;
  --rose: #ff3d7f; --coral: #ff8a5c;
  --gold-1: #f6d683; --gold-2: #c48a2c; --on-gold: #2b1a05;
  --silver: #d9dce4; --bronze: #d99062; --up: #5fd39a; --down: #ff7d8c;
  --brand: linear-gradient(120deg, var(--rose), var(--coral));
  --gold: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dock-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --wide: 1120px;
}

/* ================= Base ================= */
body.ts-app, body.ts-page { margin: 0; background: var(--night); color: var(--text); font: 15px/1.45 var(--f-ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; color-scheme: dark; }
.ts *, .ts *::before, .ts *::after { box-sizing: border-box; }
/* Remises à zéro sans poids (:where) : les classes des composants gardent toujours la main. */
/* Boutons : remise à zéro plus forte que les styles « button » des plugins (WooCommerce, BuddyPress…), qui sinon
   ajoutent marges, bordures et fonds et décalent la zone cliquable. Les composants (.ts .chip…) restent au-dessus. */
.ts button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; text-shadow: none; min-width: 0; min-height: 0; width: auto; height: auto; line-height: inherit; letter-spacing: inherit; text-transform: none; text-decoration: none; outline-offset: 2px; cursor: pointer; text-align: inherit; -webkit-appearance: none; appearance: none; }
.ts :where(input) { font: inherit; color: inherit; }
.ts :where(a) { color: inherit; text-decoration: none; }
.ts :where(img) { max-width: 100%; }
.ts :focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.ts [hidden] { display: none !important; }
.ts .i { width: 24px; height: 24px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts .sr, .ts-seo { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ts-lock, html.ts-lock body { overflow: hidden; }
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .i { width: 14px; height: 14px; stroke-width: 2.2; }
.eyebrow.gold { color: var(--gold-1); }
.center { text-align: center; justify-content: center; }
.ts .ph { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--night-3); }
.ts .ph.bl { filter: blur(14px) brightness(.62) saturate(1.2); transform: scale(1.25); }

/* ================= Barre du haut ================= */
.ts-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2px; height: calc(54px + var(--safe-t)); padding: var(--safe-t) 10px 0 16px; background: rgba(18, 11, 16, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ts-logo { margin-right: auto; display: inline-flex; align-items: center; min-width: 0; }
.ts-logo-txt { font: 700 italic 26px/1 var(--f-display); letter-spacing: -.015em; white-space: nowrap; }
.ts-logo-txt em { font-style: italic; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 3px; }
.ts-logo-img { height: 30px; width: auto; display: block; }
.ts .ts-ib { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.ts-me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ts-vip-pill { display: inline-flex; align-items: center; gap: 5px; height: 32px; margin-left: 4px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--gold); color: var(--on-gold) !important; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }
.ts-vip-pill .i { width: 16px; height: 16px; stroke-width: 2.2; }
.ts-vip-pill.on { background: none; color: var(--gold-1) !important; box-shadow: inset 0 0 0 1.5px var(--gold-1); }
.ts[data-screen="cat"] .ts-top { display: none; }

/* ================= Écrans ================= */
.ts-main { padding-bottom: calc(var(--dock-h) + var(--safe-b) + 24px); }
.ts-screen { max-width: var(--wide); margin: 0 auto; }

/* Rail des catégories (stories) */
.ts-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 14px 14px; scrollbar-width: none; }
.ts-rail::-webkit-scrollbar { display: none; }
.story { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ring { position: relative; display: block; border-radius: 50%; padding: 2.5px; background: var(--brand); }
.story .ring { width: 68px; height: 68px; }
.ring .pic { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid var(--night); }
.story.seen .ring { background: var(--line); }
.story.vip .ring, .ring.gold { background: var(--gold); }
.story .nm { max-width: 74px; font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story.vip .nm { color: var(--gold-1); }
.lk { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; border: 2.5px solid var(--night); }
.lk .i { width: 12px; height: 12px; stroke-width: 2.6; }

/* Puces de tri */
.ts-chips { display: flex; gap: 8px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; }
.ts-chips::-webkit-scrollbar { display: none; }
.ts .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--soft); }
.chip .i { width: 16px; height: 16px; color: var(--coral); }
.ts .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--night); }

/* Mosaïque */
.ts-mosaic { --cols: 2; display: flex; gap: 6px; padding: 0 8px; }
@media (min-width: 640px) { .ts-mosaic { --cols: 3; } }
@media (min-width: 1000px) { .ts-mosaic { --cols: 4; gap: 10px; padding: 0 14px; } .ts-mosaic .mcol { gap: 10px; } }
.mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: var(--r, .75); border-radius: 14px; overflow: hidden; background: var(--night-3); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tile img.ld { opacity: 1; }
.votes { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.votes .i { width: 14px; height: 14px; stroke-width: 2.2; }
.votes.on .i, .act.on .i, .vbtn.on .i { color: var(--rose); fill: currentColor; }
.new { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--rose); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.vtag { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 5px; border-radius: 6px; background: var(--gold); color: var(--on-gold); font: 800 10.5px/1 var(--f-ui); letter-spacing: .06em; }
.vtag .i { width: 12px; height: 12px; stroke-width: 2.4; }
.vtag.inline { position: static; }

/* Carte VIP dans la mosaïque */
.teaser { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; padding: 14px; text-align: left; background: var(--night-2); }
.teaser > .ph { position: absolute; inset: 0; }
.teaser::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(246, 214, 131, .45); pointer-events: none; }
.teaser .in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.teaser strong { font: 600 italic 18px/1.15 var(--f-display); text-wrap: balance; }
.teaser .go { font-size: 12.5px; font-weight: 800; color: var(--gold-1); }
.lockbig { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(196, 138, 44, .35); flex: none; }
.lockbig .i { width: 20px; height: 20px; stroke-width: 2.2; }
.lockbig.sm { width: 36px; height: 36px; }

/* Chargement, fin de liste */
.ts-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 16px 26px; color: var(--muted); font-size: 13px; text-align: center; }
.ts-more.done .spin { display: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--rose); animation: ts-spin .8s linear infinite; flex: none; }
@keyframes ts-spin { to { transform: rotate(360deg); } }

/* ================= Catégorie ================= */
.ts-subbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; height: calc(52px + var(--safe-t)); padding: var(--safe-t) 4px 0; background: rgba(18, 11, 16, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sb-t { text-align: center; font-size: 16px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-cathead { padding: 8px 16px 14px; }
.cat-top { display: flex; align-items: center; gap: 16px; }
.ring.big { width: 88px; height: 88px; flex: none; }
.stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }
.cat-name { margin: 14px 0 4px; display: flex; align-items: center; gap: 10px; font: 600 italic 27px/1.1 var(--f-display); }
.cat-desc { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.5; max-width: 70ch; }
.cat-desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts .more-link { margin-top: 2px; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.ts-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (min-width: 900px) { .ts-grid3 { grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 14px; } }
.g { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--night-3); }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.g img.ld, .g img.bl { opacity: 1; }
.glk { position: absolute; right: 6px; top: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: var(--gold-1); }
.glk .i { width: 12px; height: 12px; stroke-width: 2.4; }
.ts-lockbar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--dock-h) + var(--safe-b) + 10px); z-index: 35; display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin: 0 auto; padding: 14px; border-radius: 22px; background: rgba(28, 18, 25, .97); border: 1px solid rgba(196, 138, 44, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lb-txt { display: flex; gap: 12px; align-items: center; }
.lb-txt b { display: block; font-size: 14.5px; line-height: 1.3; }
.lb-txt span { font-size: 12.5px; color: var(--muted); }
.ts[data-screen="cat"] .ts-main.locked { padding-bottom: 260px; }

/* ================= Boutons communs ================= */
.ts-btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 18px; border-radius: 14px; background: var(--gold); color: var(--on-gold) !important; font-weight: 800; font-size: 15px; text-align: center; }
.ts-btn-gold.big { min-height: 54px; font-size: 16.5px; border-radius: 16px; }
.ts .ts-btn-dark { flex: none; height: 48px; padding: 0 18px; border-radius: 13px; background: var(--text) !important; color: var(--night) !important; font-weight: 800; }
.ts-btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line); font-weight: 750; }
.ts .ts-link { display: block; width: 100%; padding: 8px; text-align: center; font-weight: 700; font-size: 13.5px; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35) !important; }
.fine { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.ts-err { margin: 8px 0 0; color: var(--down); font-size: 13px; font-weight: 650; }

/* ================= Top ================= */
.ts-phead { padding: 6px 16px 12px; }
.ts-ptitle { margin: 0; font: 600 italic 30px/1.1 var(--f-display); }
.ts-psub { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.ts-note { margin: 0 16px 8px; padding: 10px 12px; border-radius: 12px; background: var(--night-2); color: var(--soft); font-size: 13px; }
.ts-podium { display: grid; grid-template-columns: 1fr 1.22fr 1fr; align-items: end; gap: 10px; padding: 10px 14px 6px; max-width: 560px; margin: 0 auto; }
.ts-podium:empty { display: none; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; text-align: center; }
.pod .pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 16px; }
.pod .pic > .clip { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--night-3); }
.pod.p1 .pic > .clip { box-shadow: 0 0 0 2.5px var(--gold-1), 0 18px 44px rgba(246, 214, 131, .2); }
.pod.p2 .pic > .clip { box-shadow: 0 0 0 2px var(--silver); }
.pod.p3 .pic > .clip { box-shadow: 0 0 0 2px var(--bronze); }
.pod .glk { z-index: 2; }
.medal { position: absolute; left: 50%; bottom: -15px; z-index: 2; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 italic 15px/1 var(--f-display); color: var(--on-gold); border: 3px solid var(--night); }
.m1 { background: var(--gold); } .m2 { background: var(--silver); } .m3 { background: var(--bronze); }
.pod .v { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pod .v .i, .rrow .sc .i { width: 14px; height: 14px; color: var(--rose); fill: currentColor; stroke: none; }
.pod .c { font-size: 12px; color: var(--muted); }
.crown { color: var(--gold-1); margin-bottom: 2px; }
.crown .i { width: 26px; height: 26px; fill: rgba(246, 214, 131, .25); }
.ts-ranks { list-style: none; margin: 10px auto 0; padding: 0; max-width: 640px; }
.rrow { display: grid; grid-template-columns: 26px 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 16px; text-align: left; }
.rrow .n { font: 600 italic 18px/1 var(--f-display); color: var(--muted); text-align: center; }
.rrow .th { position: relative; display: block; width: 50px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--night-3); }
.rrow .t { min-width: 0; }
.rrow .t b { display: block; font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .t span { font-size: 12.5px; color: var(--muted); }
.rrow .sc { text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.rrow .sc > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.tr { display: block; font-size: 11.5px; font-weight: 750; }
.tr.up { color: var(--up); } .tr.down { color: var(--down); } .tr.same { color: var(--muted); } .tr.new { color: var(--coral); }

/* ================= Explorer ================= */
.ts-search { display: flex; align-items: center; gap: 10px; margin: 2px 14px 12px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--night-3); color: var(--muted); }
.ts-search .i { width: 20px; height: 20px; }
.ts-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; color: var(--text); }
.ts-search input::placeholder { color: var(--muted); }
.ts-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 18px; }
.ts .qbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--line); font-weight: 750; }
.qbtn .i { width: 20px; height: 20px; }
.cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rose); font-size: 12px; display: inline-grid; place-items: center; }
.ts-sec { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 10px; font-weight: 800; font-size: 15.5px; }
.ts-sec small { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.ts-sec.gold > span { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-1); }
.ts-sec .i { width: 18px; height: 18px; }
.ts-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 20px; }
@media (min-width: 640px) { .ts-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ts-cats { grid-template-columns: repeat(5, 1fr); } }
.ts-cats.three { grid-template-columns: repeat(3, 1fr); }
.ctile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; padding: 12px; background: var(--night-3); }
.ctile > .ph { position: absolute; inset: 0; }
.ctile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .72)); }
.ctile.vip::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--gold-1); pointer-events: none; }
.ctile .lbl { position: relative; z-index: 2; min-width: 0; }
.ctile .lbl b { display: block; font-size: 16px; font-weight: 800; }
.ctile .lbl span { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.ts-cats.three .ctile { aspect-ratio: 3 / 4; padding: 10px; }
.ts-cats.three .lbl b { font-size: 14px; }
.lkc { position: absolute; z-index: 2; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; }
.lkc .i { width: 14px; height: 14px; stroke-width: 2.4; }
.ts-empty { padding: 6px 16px 20px; color: var(--muted); text-align: center; }
.ts-account { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 4px; }
.ts-account .ts-btn-line { flex: 1; }
.acc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; background: var(--night-2); }
.acc img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.acc small { display: block; color: var(--muted); font-size: 12.5px; }

/* Liens légaux */
.ts-legal { padding: 18px 16px 8px; color: var(--muted); font-size: 12.5px; text-align: center; }
.ts .ts-legal a, .ts .ts-legal button { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.ts-legal details { margin-top: 8px; }
.ts-legal summary { cursor: pointer; }
.ts-legal .lg-links { margin-top: 8px; text-align: left; line-height: 1.5; }
.ts-legal .lg-links a { color: var(--soft); }
.ts-legal .lg-copy { margin-top: 8px; }

/* ================= Zone VIP ================= */
.ts-zhero { margin: 4px 12px 16px; padding: 18px 16px; border-radius: 22px; border: 1px solid rgba(196, 138, 44, .45); background: radial-gradient(120% 140% at 0% 0%, rgba(246, 214, 131, .18), transparent 60%), var(--night-2); }
.ts-zhero .ts-ptitle { margin-top: 6px; }
.ts-zhero p { margin: 4px 0 0; font-size: 13.5px; color: var(--soft); }

/* ================= Menu du bas ================= */
.ts-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--dock-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(18, 11, 16, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, .07); }
@media (min-width: 700px) { .ts-dock { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 12px; height: var(--dock-h); padding-bottom: 0; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); } }
.dk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: var(--muted) !important; }
.dk .i { width: 25px; height: 25px; }
.dk[aria-current="page"] { color: var(--text) !important; }
.dk[aria-current="page"] .i { stroke-width: 2.3; }
.dk .sq { width: 46px; height: 34px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255, 61, 127, .38); }
.dk .sq .i { stroke-width: 2.4; }
.dk.dk-vip { color: var(--gold-1) !important; }

/* ================= Visionneuse ================= */
.ts-viewer { position: fixed; inset: 0; z-index: 100; background: #000; touch-action: manipulation; }
.vslides { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.vslides::-webkit-scrollbar { display: none; }
.vslide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; container-type: size; }
.vslide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); pointer-events: none; z-index: 1; transition: opacity .2s; }
.vfill { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) brightness(.42) saturate(1.2); }
.vph { position: relative; width: min(100cqw, calc(100cqh * var(--r, .75))); aspect-ratio: var(--r, .75); max-width: 1100px; touch-action: manipulation; cursor: pointer; }
.vph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vtop { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 4px; padding: calc(6px + var(--safe-t)) 8px 34px; background: linear-gradient(rgba(0, 0, 0, .65), transparent); transition: opacity .2s; }
.vctx { font-weight: 750; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vinfo { position: absolute; left: 14px; right: 84px; bottom: calc(22px + var(--safe-b)); z-index: 2; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); transition: opacity .2s; }
.vinfo p { margin: 6px 0 8px; font-size: 13px; color: rgba(255, 255, 255, .86); }
.vby { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.vby img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, .7); }
.vid { font-variant-numeric: tabular-nums; -webkit-user-select: all; user-select: all; }
.vtitle { display: block; margin: 8px 0 0; font-size: 15px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.vdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; max-width: 520px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .9); white-space: pre-line; overflow-wrap: anywhere; cursor: pointer; }
.vdesc.open { display: block; -webkit-line-clamp: unset; max-height: 38vh; overflow-y: auto; }
.vcat { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 750; text-shadow: none; margin-right: 6px; }
.vcat.vip { background: var(--gold); color: var(--on-gold); }
.vcat .i { width: 13px; height: 13px; stroke-width: 2.4; }
.vrail { position: absolute; right: 6px; bottom: calc(16px + var(--safe-b)); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .2s; }
.ts .vbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; font-size: 12px; font-weight: 750; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; }
.vbtn .i { width: 30px; height: 30px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .5)); }
.ts .vbtn.saved .i { fill: currentColor; }
.ts-viewer.clean .vtop, .ts-viewer.clean .vinfo, .ts-viewer.clean .vrail, .ts-viewer.clean .vslide::after, .ts-viewer.clean .vnav { opacity: 0; pointer-events: none; }
.vnav { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .vnav { position: absolute; z-index: 4; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; transition: opacity .2s; }
  .vnav .ts-ib { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
  .vrail { right: 90px; }
}
.vhint { position: absolute; z-index: 5; left: 50%; bottom: calc(132px + var(--safe-b)); display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; pointer-events: none; transform: translateX(-50%); animation: ts-nudge 1.6s ease-in-out infinite; }
.vhint .i { width: 16px; height: 16px; }
@keyframes ts-nudge { 50% { transform: translate(-50%, -8px); } }
.vlock .vl-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 34px; text-align: center; max-width: 440px; }
.vlock h3 { margin: 0; font: 600 italic 26px/1.15 var(--f-display); text-wrap: balance; }
.vlock p { margin: 0; color: var(--soft); }
.vlock .ts-btn-gold { margin-top: 8px; max-width: 280px; }
.vlock .vfill { filter: blur(30px) brightness(.32) saturate(1.2); }
.burst { position: absolute; z-index: 6; width: 100px; height: 100px; margin: -50px 0 0 -50px; color: var(--rose); pointer-events: none; animation: ts-burst .75s ease-out forwards; }
.burst .i { width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 6px 20px rgba(255, 61, 127, .55)); }
@keyframes ts-burst { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 45% { transform: scale(.95); } 100% { transform: scale(1.25) translateY(-30px); opacity: 0; } }

/* ================= Volet Pass VIP, menu d'une photo ================= */
.ts-sheet-wrap, .ts-menu-wrap { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .62); animation: ts-fade .2s ease-out; }
.ts-sheet { position: relative; width: 100%; max-width: 520px; max-height: 94%; overflow-y: auto; overscroll-behavior: contain; border-radius: 28px 28px 0 0; background: var(--night-2); border-top: 1px solid rgba(196, 138, 44, .45); padding: 10px 20px calc(26px + var(--safe-b)); animation: ts-rise .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .ts-sheet-wrap { align-items: center; } .ts-sheet { border-radius: 28px; border: 1px solid rgba(196, 138, 44, .45); } }
@keyframes ts-fade { from { opacity: 0; } }
@keyframes ts-rise { from { transform: translateY(40px); opacity: .4; } }
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 4px; }
.ts .sh-x { position: absolute; right: 8px; top: 8px; z-index: 3; }
.sh-hero { position: relative; display: flex; justify-content: center; align-items: center; height: 128px; margin: 6px 0 12px; }
.sh-pic { width: 76px; height: 100px; border-radius: 14px; overflow: hidden; border: 3px solid var(--night-2); margin: 0 -9px; transform: rotate(-8deg); background: linear-gradient(160deg, var(--night-3), var(--line)); }
.sh-pic:nth-child(2) { transform: translateY(-8px) scale(1.08); z-index: 1; }
.sh-pic:nth-child(3) { transform: rotate(8deg); }
.sh-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-pic img.bl { filter: blur(10px) brightness(.7); transform: scale(1.3); }
.medallion { position: absolute; left: 50%; bottom: -4px; z-index: 2; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; border: 3px solid var(--night-2); }
.medallion .i { width: 22px; height: 22px; stroke-width: 2.2; }
.sh-title { margin: 6px 0 18px; text-align: center; font: 600 italic 29px/1.1 var(--f-display); text-wrap: balance; }
.ts-sheet .eyebrow { display: flex; justify-content: center; }
.perks { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--soft); }
.perks b { color: var(--text); }
.perks .i { width: 20px; height: 20px; color: var(--gold-1); stroke-width: 2.4; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pass { display: flex; gap: 8px; }
.inp { width: 100%; min-width: 0; height: 48px; border-radius: 13px; border: 1px solid var(--line); background: var(--night); padding: 0 14px; font-size: 16px; color: var(--text); }
.inp::placeholder { color: var(--muted); }
.inp:focus { outline: none; border-color: var(--rose); }
.ts-menu { width: 100%; max-width: 520px; padding: 8px 8px calc(10px + var(--safe-b)); border-radius: 22px 22px 0 0; background: var(--night-2); display: flex; flex-direction: column; animation: ts-rise .22s ease-out; }
.ts .ts-menu > * { display: block; width: 100%; padding: 15px 16px; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-align: center; }
.ts .ts-menu > *:hover { background: var(--night-3); }
.ts .ts-menu .cancel { color: var(--muted); }

/* ================= Messages ================= */
.ts-toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + var(--safe-b) + 20px); z-index: 150; max-width: min(86vw, 420px); padding: 10px 16px; border-radius: 16px; background: var(--text); color: var(--night); font-weight: 700; font-size: 13.5px; line-height: 1.35; text-align: center; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.ts-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ts-toast a { color: var(--rose); text-decoration: underline; pointer-events: auto; }

.ts-cc { position: fixed; left: 10px; right: 10px; bottom: calc(var(--dock-h) + var(--safe-b) + 10px); z-index: 140; max-width: 520px; margin: 0 auto; padding: 16px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); color: var(--soft); font: 14px/1.45 var(--f-ui); }
.ts-cc-t { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.ts-cc p { margin: 0 0 12px; }
.ts-cc a { color: var(--text); text-decoration: underline; }
.ts-cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ts-cc-btns button { margin: 0; padding: 0 10px; box-shadow: none; min-width: 0; line-height: 1; text-transform: none; -webkit-appearance: none; appearance: none; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--night-3); color: var(--text); font: 700 14.5px var(--f-ui); cursor: pointer; }

/* Encadré « photo VIP » (pages classiques, TotalContest) */
.ts-locked-box { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: 20px auto; padding: 28px 20px; border-radius: 22px; background: var(--night-2); border: 1px solid rgba(196, 138, 44, .45); color: var(--soft); text-align: center; }
.ts-locked-box b { color: var(--text); font: 600 italic 24px/1.15 var(--f-display); }
.ts-locked-box p { margin: 0 0 6px; }
.ts-locked-box .ts-lb-i { width: 34px; height: 34px; color: var(--gold-1); fill: none; stroke: currentColor; stroke-width: 2; }
.ts-locked-box .ts-btn-gold { display: flex; width: 100%; min-height: 48px; border-radius: 14px; background: var(--gold); color: var(--on-gold); font-weight: 800; text-decoration: none; align-items: center; justify-content: center; }
.ts-locked-box .ts-lb-link { color: var(--text); text-decoration: underline; font-weight: 700; font-size: 14px; }

/* ================= Pages classiques ================= */
.ts-pagewrap .ts-top { max-width: none; }
/* Pages classiques (Ultimate Member…) : la feuille du thème parent est chargée, elle ne doit pas restyler la barre du haut. */
.ts-pagewrap .ts-top { margin: 0; padding: var(--safe-t) 10px 0 16px; border: 0; }
.ts .ts-top a { color: var(--text); text-decoration: none; }
.ts .ts-top .ts-ib .i, .ts .ts-top .ts-ib svg { color: var(--text); }
.ts-pmain { padding: 8px 12px calc(var(--dock-h) + var(--safe-b) + 24px); max-width: 960px; margin: 0 auto; }
.ts-content { margin: 6px auto 0; max-width: 760px; padding: 20px 18px; border-radius: 22px; background: #fbf8fa; color: #241820; font-size: 15px; line-height: 1.6; }
.ts-content a { color: #c2185b; text-decoration: underline; }
.ts-content h1 { margin: 0 0 14px; font: 600 italic 28px/1.15 var(--f-display); color: #120b10; }
.ts-content.ts-wide { max-width: 960px; }
.ts-content.ts-flush { padding: 0; overflow: hidden; }
.ts-content.ts-dark { background: transparent; color: var(--text); padding: 6px 4px; max-width: 960px; }
.ts-content.ts-dark h1 { color: var(--text); }
.ts-content.ts-dark a { color: inherit; text-decoration: none; }
.ts-empty h1 { margin-top: 30px; }
.ts-list { padding-left: 18px; }

@media (prefers-reduced-motion: reduce) {
  .ts *, .ts *::before, .ts *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
