/* Trouvapop : design « réseau social » sombre par-dessus Divi.
   Les textes restent éditables dans Divi ; couleurs, polices et espacements sont ici. */
:root {
  color-scheme: dark;
  --bg: #0B0A12;
  --surface: #17151F;
  --raise: #221F2D;
  --ink: #F5F3FA;
  --muted: #A29DB4;
  --line: #2C2838;
  --g1: #7B5CFF;
  --g2: #FF2E93;
  --g3: #FF9A3D;
  --cyan: #2BE0FF;
  --grad: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --f-display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --f-body: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
}

/* ---- Divi remis à plat ---- */
html, body.tp, body.tp #page-container, body.tp #et-main-area, body.tp #main-content, body.tp .et-l, body.tp .et_pb_section { background: var(--bg) !important; }
body.tp { color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; font-weight: 500; }
body.tp #page-container { padding-top: 0 !important; overflow: visible !important; }
body.tp #main-content .container:before { display: none; }
body.tp h1, body.tp h2, body.tp h3, body.tp h4, body.tp h5, body.tp h6 { color: var(--ink); padding: 0; font-family: var(--f-display); }
body.tp p { padding: 0; }
body.tp a { color: inherit; }
body.tp button { font: inherit; color: inherit; cursor: pointer; }
body.tp :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
body.tp .et_pb_section.tp-s { padding: 0 !important; margin: 0; row-gap: 0 !important; gap: 0 !important; }
body.tp .et_pb_row.tp-r { width: 100% !important; max-width: 1180px !important; margin: 0 auto !important; padding: 0 max(16px, env(safe-area-inset-left, 0px)) !important; }
body.tp .tp-r .et_pb_column { margin-bottom: 0 !important; }
body.tp .tp-r .et_pb_module { margin-bottom: 0 !important; }
body.tp .et_pb_text_inner > :last-child { margin-bottom: 0; padding-bottom: 0; }
[hidden] { display: none !important; }

/* ---- En-tête (Theme Builder) ---- */
body.tp .et-l--header { position: sticky; top: 0; z-index: 50; }
body.admin-bar.tp .et-l--header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.tp .et-l--header { top: 0; } }
body.tp .et-l--header, body.tp .et-l--header .et_pb_section.tp-s { background: color-mix(in srgb, var(--bg) 88%, transparent) !important; }
body.tp .et-l--header .et_pb_section.tp-s { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.tp .et_pb_row.tp-bar { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 14px; padding-top: 12px !important; padding-bottom: 8px !important; }
body.tp .tp-bar > .et_pb_column { width: auto !important; flex: none !important; margin: 0 !important; }
body.tp .tp-bar > .et_pb_column:last-child { flex: 1 1 auto !important; min-width: 0; }
body.tp .tp-logo p { margin: 0; line-height: 1.2; }
body.tp .tp-logo a, body.tp .logo { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; color: var(--ink); }
body.tp .tp-logo span, body.tp .tp-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-search { display: flex; width: 100%; min-width: 0; margin: 0; }
body.tp .tp-search input { width: 100%; border: 0; background: var(--raise); color: var(--ink); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 15px; }
body.tp .tp-search input::placeholder { color: var(--muted); }

.stories { display: flex; gap: 14px; overflow-x: auto; padding-block: 8px 10px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
body.tp .story { flex: none; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 6px; width: 68px; }
.ring { width: 64px; height: 64px; border-radius: 999px; padding: 3px; background: var(--line); display: grid; }
.story[aria-pressed="true"] .ring { background: var(--grad); }
.ring i { font-style: normal; border-radius: 999px; background: var(--surface); border: 3px solid var(--bg); display: grid; place-items: center; font-size: 28px; }
.story small { font-size: 12px; color: var(--muted); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story[aria-pressed="true"] small { color: var(--ink); font-weight: 700; }
body.tp .tp-ctxt { margin: -2px 0 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
body.tp .tp-ctxt b { color: var(--ink); font-weight: 700; }

.pills { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 12px; scrollbar-width: none; align-items: center; }
.pills::-webkit-scrollbar { display: none; }
body.tp .pill { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--muted); }
body.tp .pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.tp .pills select { flex: none; margin-left: auto; font: inherit; font-size: 14px; background: var(--raise); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 12px; }

/* ---- Intro ---- */
body.tp .et_pb_row.tp-intro { display: flex !important; flex-wrap: wrap !important; gap: 10px 16px; align-items: flex-end; justify-content: space-between; padding-top: 18px !important; padding-bottom: 16px !important; }
body.tp .tp-intro > .et_pb_column { width: auto !important; flex: 0 1 auto !important; margin: 0 !important; }
body.tp .tp-intro h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 4.4vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; max-width: 20ch; }
body.tp .tp-intro h1 .tp-pop { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tp .sample, body.tp .tp-sample p { display: inline-block; font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 4px 9px; margin: 0; }

/* ---- Fil ---- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding-bottom: 56px; }
body.tp .post { position: relative; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 20px; overflow: hidden; text-decoration: none; display: block; isolation: isolate; color: #fff; }
.post .bgv { position: absolute; inset: 0; z-index: -2; }
.post .em { position: absolute; inset: 0 0 22% 0; display: grid; place-items: center; font-size: clamp(80px, 12vw, 120px); z-index: -1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); transition: transform .4s ease; }
.post:hover .em { transform: scale(1.06) rotate(-3deg); }
.post::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(5,4,12,.88) 100%); }
.post .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.post:hover .ph { transform: scale(1.04); }
.p-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rank { font-family: var(--f-display); font-weight: 800; font-size: 13px; background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(6px); }
.hot { font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 10px; }
.p-bottom { position: absolute; left: 14px; right: 58px; bottom: 14px; color: #fff; display: grid; gap: 4px; }
.handle { font-weight: 800; font-size: 13px; opacity: .9; }
.p-bottom .h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.p-bottom .tags { font-size: 13px; opacity: .85; overflow-wrap: anywhere; }
.price { display: inline-block; justify-self: start; margin-top: 4px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.16); border-radius: 8px; padding: 3px 8px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.rail { position: absolute; right: 10px; bottom: 14px; display: grid; gap: 14px; justify-items: center; color: #fff; }
.act { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.act b { width: 38px; height: 38px; border-radius: 999px; background: rgba(0,0,0,.4); display: grid; place-items: center; font-size: 17px; backdrop-filter: blur(6px); }
.act.pop b { background: var(--grad); font-family: var(--f-display); font-size: 12px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 56px 0; }

/* Vidéos à découvrir (défilement infini) */
.vfeed { padding-bottom: 40px; }
.vf-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; margin: 8px 0 14px; }
body.tp .vf-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; margin: 0; }
body.tp .vf-title .tp-pop { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vf-legal { font-size: 12px; color: var(--muted); }
body.tp .vf-legal a { color: var(--muted); text-decoration: underline; }
.vflist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
body.tp .vflist .vcard { border-radius: 16px; padding: 12px; }
body.tp .vf.tiktok { background: linear-gradient(160deg, #101018 0%, #1d1d2b 60%, #0c3540 100%); }
.vf .em { position: absolute; inset: 0 0 25% 0; display: grid; place-items: center; font-size: 64px; z-index: -1; }
.vf .prod { font-family: var(--f-display); font-weight: 600; font-size: 13px; line-height: 1.2; }
.vf .play { width: 48px; height: 48px; font-size: 18px; backdrop-filter: blur(6px); }
.vf-sentinel { height: 1px; }
.vnew .nb { display: inline-block; background: var(--grad); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 10px; letter-spacing: .02em; text-transform: uppercase; margin-right: 2px; }
.vnew .by { font-size: 11px; opacity: .8; }
.vmodal { max-width: 420px; padding-top: 0; }
.vmodal .player.tall { max-width: none; border-radius: 0; }
.vmodal .player.tall iframe { max-height: 70vh; }
.vm-body { padding-top: 16px; gap: 12px; }
body.tp .vm-body h2 { font-size: 18px; }
@media (max-width: 640px) {
  .vflist { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
  .feed { grid-template-columns: 1fr; gap: 12px; }
  body.tp .post { aspect-ratio: auto; height: min(60vh, 480px); scroll-snap-align: start; scroll-margin-top: 210px; }
  html { scroll-snap-type: y proximity; }
  /* Point d'arrêt tout en haut : sans lui, l'aimantage tire la page vers la 1re carte,
     la page n'est jamais tout en haut et Android ne peut pas « tirer pour actualiser » */
  body.tp #page-container { scroll-snap-align: start; }
  /* La page garde le geste natif d'actualisation (pas de blocage du « rebond ») */
  html, body.tp { overscroll-behavior-y: auto; }
  .p-bottom .h3 { font-size: 19px; }
  .post .em { font-size: 120px; }
}

/* ---- Fiche produit ---- */
.sheet-bg { position: fixed; inset: 0; background: rgba(4,3,10,.7); z-index: 100000; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) max(10px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 20px) max(10px, env(safe-area-inset-left, 0px)); backdrop-filter: blur(6px); }
body.admin-bar .sheet-bg { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sheet-bg { top: 46px; } }
.sheet { background: var(--surface); border-radius: 24px; width: 100%; max-width: 760px; position: relative; overflow: hidden; color: var(--ink); }
.cover { height: 120px; background-size: cover; background-position: center; }
body.tp .close { position: absolute; top: 12px; right: 12px; border: 0; background: rgba(0,0,0,.45); color: #fff; width: 40px; height: 40px; border-radius: 999px; font-size: 18px; z-index: 1; }
.prof { padding: 0 22px 24px; display: grid; gap: 18px; }
.prof-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -48px; flex-wrap: wrap; }
.avatar { width: 104px; height: 104px; border-radius: 999px; padding: 4px; background: var(--grad); flex: none; }
.avatar i { font-style: normal; width: 100%; height: 100%; border-radius: 999px; border: 4px solid var(--surface); display: grid; place-items: center; font-size: 46px; }
.avatar img { width: 100%; height: 100%; border-radius: 999px; border: 4px solid var(--surface); object-fit: cover; display: block; }
.prof-name { min-width: 0; flex: 1; display: grid; gap: 2px; padding-bottom: 4px; }
.prof-name .handle { color: var(--muted); }
body.tp .prof h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 3.4vw, 26px); margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; background: var(--raise); border-radius: 16px; padding: 12px 6px; }
.stats div { display: grid; gap: 0; }
.stats strong { font-family: var(--f-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }
body.tp .bio { margin: 0; max-width: 62ch; }
.bio .tags { color: var(--cyan); }
.credit { font-size: 11px; color: var(--muted); margin: -10px 0 0 !important; }
body.tp .credit a { color: var(--muted); }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
body.tp .btn { flex: 1 1 160px; text-align: center; border-radius: 12px; padding: 11px 16px; font-weight: 800; text-decoration: none; border: 0; background: var(--raise); color: var(--ink); }
body.tp .btn.primary { background: var(--grad); color: #fff; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
body.tp .tab { flex: 1; border: 0; background: none; padding: 12px 6px; font-weight: 800; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.tp .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel { display: grid; gap: 14px; }
.why { display: flex; flex-wrap: wrap; gap: 8px; }
.why span { background: var(--raise); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.byc { display: grid; gap: 8px; }
.byc-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; font-size: 14px; }
.barx { height: 8px; background: var(--raise); border-radius: 99px; overflow: hidden; }
.barx i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.byc-row b { text-align: right; font-variant-numeric: tabular-nums; }
body.tp .h4 { font-family: var(--f-display); font-weight: 600; font-size: 15px; margin: 0; color: var(--ink); }

.community { display: grid; gap: 12px; }
.vlist, .videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.tp .vcard { aspect-ratio: 9 / 16; max-width: 100%; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: #fff; position: relative; overflow: hidden; }
.vcard.tiktok { background: linear-gradient(160deg, #101018 0%, #1d1d2b 60%, #0c3540 100%); }
.vcard.yt { background: linear-gradient(160deg, #24080c 0%, #6f1018 100%); }
.vcard.ig { background: linear-gradient(160deg, #3b1474 0%, #b0286c 60%, #f08a3c 100%); }
.vcard .plat { font-weight: 800; font-size: 12px; }
.vcard .play { align-self: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 16px; }
.vcard .tag, .vcard .by { font-size: 11px; opacity: .9; overflow-wrap: anywhere; }
.vcard .go { font-size: 12px; font-weight: 800; }
body.tp .vplay { border: 0; cursor: pointer; text-align: left; font: inherit; isolation: isolate; }
body.tp .vplay.yt { background: #000; }
.vplay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .4s ease; }
.vplay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(5,4,12,.9) 100%); }
.vplay:hover img { transform: scale(1.05); }
.vplay .meta { display: grid; gap: 2px; }
.vplay .tag { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 12px !important; }
.vplay.on { outline: 3px solid var(--g2); outline-offset: -3px; }
.vplay.tiktok .plat::before, .vplay.yt .plat::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; margin-right: 5px; vertical-align: 1px; }
.vplay.tiktok .plat::before { background: var(--cyan); }
.vplay.yt .plat::before { background: #FF3B3B; }
.player { background: #000; border-radius: 16px; overflow: hidden; display: grid; }
.player iframe { width: 100%; border: 0; display: block; }
.player.wide iframe { aspect-ratio: 16 / 9; }
.player.tall { max-width: 340px; width: 100%; justify-self: center; }
.player.tall iframe { aspect-ratio: 9 / 16; max-height: 72vh; }
.player-bar { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--raise); font-size: 13px; font-weight: 700; }
body.tp .player-bar a { color: var(--ink); text-decoration: none; }
body.tp .player-bar button { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 0; }
body.tp .note { font-size: 12px; color: var(--muted); margin: 0; }
body.tp .note a { color: var(--muted); text-decoration: underline; }
.form { display: flex; flex-wrap: wrap; gap: 8px; }
body.tp .form input, body.tp .form textarea { flex: 1 1 200px; min-width: 0; font: inherit; color: var(--ink); background: var(--raise); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; }
body.tp .form input:focus, body.tp .form textarea:focus { border-color: var(--g2); outline: none; }
body.tp .form textarea { flex-basis: 100%; min-height: 64px; resize: vertical; }
body.tp .form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.tp .form button { border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 800; background: var(--grad); color: #fff; }
.form button:disabled { opacity: .45; cursor: default; }
.msg { font-size: 13px; color: var(--muted); flex-basis: 100%; min-height: 1em; }
.msg.err { color: var(--g2); }
.cms { display: grid; gap: 14px; }
.cm { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.av { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.cm-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.cm-head time { color: var(--muted); font-size: 12px; }
body.tp .cm p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
body.tp .hint { color: var(--muted); font-size: 14px; margin: 0; grid-column: 1 / -1; }

/* ---- Likes, favoris, partage ---- */
.tp-searchbar { display: flex; gap: 8px; align-items: center; width: 100%; }
.tp-searchbar .tp-search { flex: 1 1 auto; min-width: 0; }
body.tp .favopen { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--raise); color: var(--ink); border-radius: 12px; padding: 9px 12px; font-weight: 800; font-size: 14px; position: relative; }
.favopen .ic { color: #FFC83D; }
.favopen b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 520px) { .favopen .lb { display: none; } }
body.tp .likebtn, body.tp .favbtn2 { cursor: pointer; font: inherit; font-weight: 800; color: var(--ink); }
.likebtn .ic, .favbtn2 .ic { display: inline-block; transition: transform .2s ease; }
.likebtn[aria-pressed="true"] .ic { color: var(--g2); }
.favbtn2[aria-pressed="true"] .ic { color: #FFC83D; }
.likebtn.burst .ic { animation: tpburst .45s ease; }
@keyframes tpburst { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
body.tp .btn.likebtn, body.tp .btn.favbtn2, body.tp .btn.sharebtn { flex: 0 1 auto; background: var(--raise); border: 0; }
.ctas.small { margin-top: -8px; }
body.tp .affnote { margin: -8px 0 0; font-size: 11px; color: var(--muted); }
.postcell { position: relative; }
body.tp .postlike, body.tp .postfav { position: absolute; right: 10px; display: grid; justify-items: center; gap: 2px; border: 0; background: none; color: #fff; padding: 0; font-size: 12px; }
body.tp .postlike { bottom: 214px; }
body.tp .postfav { top: 50px; right: 12px; }
.postlike .ic, .postfav .ic { width: 38px; height: 38px; border-radius: 999px; background: rgba(0,0,0,.4); display: grid; place-items: center; font-size: 19px; backdrop-filter: blur(6px); }
.likebtn b { font-variant-numeric: tabular-nums; }
body.tp .likebtn.mini { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; justify-content: center; font-weight: 800; }
body.tp .likebtn.mini .ic { font-size: 14px; }
body.tp .likebtn.mini[aria-pressed="true"] { background: rgba(255,46,147,.85); }
body.tp .likebtn.mini[aria-pressed="true"] .ic { color: #fff; }
.vcell { position: relative; }
.vcell > .vcard { width: 100%; }
body.tp .likebtn.mini, body.tp .favbtn2.mini { position: absolute; z-index: 2; border: 0; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 4px 8px; backdrop-filter: blur(6px); }
/* Likes en bas à droite, sur la ligne « vues · date » ; favori en haut à droite */
body.tp .likebtn.mini { bottom: 8px; right: 8px; top: auto; }
body.tp .favbtn2.mini { top: 8px; right: 8px; padding: 4px 7px; }

/* Cartes vidéo : texte compact en bas (titre 2 lignes max), image dégagée */
.vcell .vcard .plat { padding-right: 34px; font-size: 11px; }
.vcell .vcard .meta { display: grid; gap: 2px; padding-right: 2px; }
.vcell .vcard .prod { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.vcell .vcard .tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 12px !important; line-height: 1.25; }
.vcell .vcard .by { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; opacity: .75; }
.vcell .vcard .st { display: block; min-height: 26px; line-height: 26px; padding-right: 58px; font-size: 11px; font-weight: 700; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .vflist .vcell .vcard, .pp-sec .vcell .vcard, .vlist .vcell .vcard { aspect-ratio: 4 / 5; padding: 8px; }
  .player.tall iframe, .vmodal .player.tall iframe { max-height: 60vh; }
  .player.tall { max-width: 300px; }
  .vcell .vcard .by { display: none; }
  .vcell .vcard .prod { font-size: 11px; }
  .vcell .vcard .tag { font-size: 11px !important; }
  .vcell .vcard .play { width: 36px; height: 36px; font-size: 14px; }
  body.tp .likebtn.mini { bottom: 6px; right: 6px; padding: 3px 7px; min-width: 40px; }
  body.tp .favbtn2.mini { top: 6px; right: 6px; }
}
.sharepop { position: absolute; z-index: 5; margin-top: 6px; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: grid; min-width: 170px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
body.tp .sharepop a, body.tp .sharepop button { text-align: left; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; font-weight: 700; font-size: 14px; }
.sharepop a:hover, .sharepop button:hover { background: var(--surface); }
.ctas { position: relative; }
/* Panneau favoris */
.favsheet { max-width: 760px; }
.favsheet .prof { padding-top: 22px; }
body.tp .fav-title { font-family: var(--f-display); font-weight: 800; font-size: 24px; margin: 0; }
.favgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.favitem { position: relative; }
body.tp .favcard { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; width: 100%; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; border: 0; padding: 10px; isolation: isolate; cursor: pointer; text-align: left; }
.favcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.favcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5,4,12,.9)); }
.favcard .em { position: absolute; inset: 0 0 30% 0; display: grid; place-items: center; font-size: 48px; z-index: -1; }
.favcard .play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 99px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.favcard .ft { font-weight: 800; font-size: 13px; line-height: 1.2; }
body.tp .favcard.tiktok { background: linear-gradient(160deg, #101018, #0c3540); }
body.tp .unfav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 99px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
/* Les plus likés cette semaine */
.toplikes { margin: 0 0 18px; }
body.tp .top-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 10px; }
body.tp .top-title .tp-pop { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toprow { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.toprow::-webkit-scrollbar { display: none; }
body.tp .topcard { flex: none; width: 150px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.tc-media { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.tc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-media .em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; }
.tc-rank { position: absolute; left: 8px; bottom: 6px; font-family: var(--f-display); font-weight: 800; font-size: 34px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.tc-name { font-weight: 800; font-size: 13px; line-height: 1.2; }
.tc-likes { font-size: 12px; color: var(--g2); font-weight: 700; }

/* ---- Page produit ---- */
body.tp .tp-pp-s .et_pb_row.tp-r { padding-top: 16px !important; padding-bottom: 56px !important; }
.pp { display: grid; gap: 28px; color: var(--ink); }
body.tp .crumbs { font-size: 13px; color: var(--muted); }
body.tp .crumbs a { color: var(--muted); }
.pp-hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; align-items: start; }
.pp-media { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.pp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-media .em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; }
.pp-info { display: grid; gap: 16px; align-content: start; }
.pp-info .handle { color: var(--muted); }
body.tp .pp h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
body.tp .pp .bio { font-size: 16px; line-height: 1.55; }
body.tp .pp h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(19px, 2.4vw, 24px); margin: 0 0 12px; letter-spacing: -.01em; }
.pp-sec { display: grid; gap: 4px; }
.pp-sec .vlist { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pp-sec .player { margin-bottom: 12px; }
.pp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
body.tp .relcard { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; padding: 12px; isolation: isolate; }
.relcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.relcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5,4,12,.9)); }
.relcard .em { position: absolute; inset: 0 0 25% 0; display: grid; place-items: center; font-size: 56px; z-index: -1; }
.relcard .rt { font-family: var(--f-display); font-weight: 600; font-size: 14px; line-height: 1.2; }
@media (max-width: 760px) {
  .pp-hero, .pp-cols { grid-template-columns: 1fr; }
  .pp-media { aspect-ratio: 1; }
}

/* ---- Publicité ---- */
.adcell { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px dashed var(--line); padding: 26px 10px 10px; min-height: 120px; }
.adcell.adpost { aspect-ratio: 9 / 16; max-width: 100%; }
.adcell.advf { aspect-ratio: 9 / 16; border-radius: 16px; }
.adcell.adwide { min-height: 100px; }
.adcell:has(ins[data-ad-status="unfilled"]) { display: none; } /* aucune annonce servie (site pas encore approuvé, etc.) */
.adlabel { position: absolute; top: 8px; left: 12px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 640px) { .adcell.adpost { aspect-ratio: auto; height: min(60vh, 480px); } .adcell.advf { aspect-ratio: 4 / 5; } }

/* ---- Bandeau de consentement (Google Analytics) ---- */
.tp-consent { position: fixed; z-index: 100001; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; background: var(--raise); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: grid; gap: 10px; font-size: 14px; }
body.tp .tp-consent p { margin: 0; line-height: 1.45; }
body.tp .tp-consent a { color: var(--cyan); }
.tp-consent-btns { display: flex; gap: 10px; }
body.tp .tp-consent .btn { flex: 1; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 800; background: var(--surface); color: var(--ink); cursor: pointer; }
body.tp .tp-consent .btn[data-consent="1"] { background: var(--grad); color: #fff; }

/* ---- Pied de page ---- */
body.tp .tp-footer-s { border-top: 1px solid var(--line); }
body.tp .tp-footer-s .et_pb_row.tp-r { padding-top: 22px !important; padding-bottom: 40px !important; }
body.tp .tp-foot, body.tp .tp-foot p { color: var(--muted); font-size: 13px; }
body.tp .tp-foot a { color: var(--muted); }

/* ---- Pages de texte (mentions, etc.) ---- */
body.tp .tp-page h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 24px 0 16px; }
body.tp .tp-page h2 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
body.tp .tp-page-r { max-width: 820px !important; padding-bottom: 56px !important; }
body.tp .tp-page p, body.tp .tp-page li { color: var(--ink); line-height: 1.6; }
body.tp .tp-page p { margin-bottom: 12px; }
body.tp .tp-page ul { padding-left: 1.2em; margin-bottom: 12px; }
body.tp .tp-todo { background: rgba(255,46,147,.18); color: #FF7DBB; border: 1px dashed var(--g2); border-radius: 6px; padding: 0 5px; }
body.tp .tp-foot .tp-legal { margin-top: 8px; }
body.tp .tp-foot .tp-legal a { text-decoration: underline; }
body.tp .form .legal { flex-basis: 100%; font-size: 12px; color: var(--muted); margin: 0; }
body.tp .form .legal a { color: var(--muted); text-decoration: underline; }
body.tp .tp-page a { color: var(--cyan); }

@media (max-width: 520px) {
  .reels, .vlist, .videos { grid-template-columns: repeat(2, 1fr); }
  .prof { padding: 0 14px 20px; }
  .byc-row { grid-template-columns: 96px 1fr 30px; }
  .stats strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .post .em, .post .ph { transition: none; } .post:hover .em, .post:hover .ph { transform: none; } html { scroll-snap-type: none; } }

/* « Ça buzze sur TikTok » */
.ttrow { margin-top: 22px; }
body.tp button.ttcard { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.tt-media { background: linear-gradient(150deg, #25f4ee 0%, #101018 45%, #fe2c55 100%); }
.tt-at { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 56px; color: #fff; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.ttcard .tc-rank { font-size: 22px; left: auto; right: 10px; }
.ttcard:hover .tc-media, .ttcard:focus-visible .tc-media { outline: 2px solid var(--g2); outline-offset: 2px; }
.ttmodal .ttembed { padding: 0 12px 8px; min-height: 320px; }
.ttmodal .ttembed iframe { max-width: 100%; }
