/* Styles partagés entre l'aperçu client et l'admin : couleurs de statut, calendrier, pièces jointes, visionneuse */

/* Couleurs de statut, identiques partout : mauve = à valider, orange = retours à traiter, vert = validé, gris = publié */
:root { --st-pending: #7c5cd6; --st-changes: #e0661f; --st-approved: #1a8f53; --st-published: #8a8a8f; }
@media (prefers-color-scheme: dark) { :root { --st-pending: #a78bfa; --st-changes: #fb923c; --st-approved: #4ade80; --st-published: #8e8e93; } }
.badge .dot, .badge.st-pending .dot { background: #c4b5fd; }
.badge.st-changes .dot { background: #fb923c; }
.badge.st-approved .dot { background: #4ade80; }
.status.st-pending { color: var(--st-pending); }
.status.st-changes { color: var(--st-changes); }
.status.st-approved { color: var(--st-approved); }
.status.st-published { color: var(--st-published); }

/* Calendrier de publication */
.cal { padding: 8px 0 40px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.cal-head h2 { font-size: 18px; margin: 0 6px; min-width: 150px; text-align: center; }
.cal-nav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.cal-nav:hover { background: var(--soft); }
.cal-today { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--blue); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-dow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.is-out { background: var(--soft-2, var(--bg)); }
.cal-day.is-out .cal-num { color: var(--muted); opacity: .6; }
.cal-num { font-size: 12px; font-weight: 600; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--blue); color: #fff; }
.cal-items { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 24px; }
.cal-item { --st: var(--st-pending); display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 6px; min-width: 0;
  background: color-mix(in srgb, var(--st) 14%, var(--soft)); border-left: 3px solid var(--st); }
.cal-item.st-changes { --st: var(--st-changes); }
.cal-item.st-approved { --st: var(--st-approved); }
.cal-item.st-published { --st: var(--st-published); }
.cal-item:hover { filter: brightness(.96); }
.cal-item, .cal-item:hover { text-decoration: none; color: inherit; font-weight: 400; }
.cal-item.st-published { opacity: .7; }
.cal-item.sch-late { box-shadow: inset 0 0 0 1px var(--late, #c62828); }
.cal-thumb { width: 26px; height: 32px; border-radius: 4px; overflow: hidden; flex: 0 0 auto; background: var(--line); }
.cal-thumb.thumb-reel, .cal-thumb.thumb-story { width: 20px; height: 34px; }
.cal-thumb img, .cal-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-meta { display: flex; flex-direction: column; min-width: 0; }
.cal-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-sub { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.cal-sub .dot { width: 6px; height: 6px; background: var(--st); }
.cal-agenda { display: none; }
.cal-unplanned { margin-top: 24px; }
.cal-unplanned h3 { font-size: 14px; margin: 0 0 8px; }
.cal-items-row { flex-direction: row; flex-wrap: wrap; }
.cal-items-row .cal-item { width: 200px; }
.cal-empty { color: var(--muted); text-align: center; padding: 30px 0; }
@media (max-width: 735px) {
  .cal { padding: 8px 16px 40px; }
  .cal-grid { display: none; }
  .cal-agenda { display: flex; flex-direction: column; gap: 14px; }
  .agenda-date { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .agenda-day.is-today .agenda-date { color: var(--blue); }
  .agenda-day .cal-item { margin-bottom: 6px; padding: 6px; }
  .agenda-day .cal-thumb { width: 34px; height: 42px; }
  .cal-items-row .cal-item { width: 100%; }
}

/* Pièces jointes des commentaires */
.cm-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cm-file { position: relative; display: block; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.15); }
.cm-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-file-tag { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.cm-pdf { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,.3); text-decoration: none; color: inherit; font-size: 12px; font-weight: 600; }
.cm-pdf span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-ico { flex: 0 0 auto; background: #d93025; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 5px; border-radius: 4px; }

/* Visionneuse */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lb img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 4px; }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb img { max-width: 100vw; max-height: calc(100vh - 120px); } .lb-prev, .lb-next { top: auto; bottom: 50px; transform: none; } }

/* Légende du calendrier */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -4px 0 12px; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------------------------------------------------------------- Aperçus réseaux (admin et client) */
/* Aperçu Instagram : carte de publication (rendu Instagram, donc fond blanc et arrondis légers) */
.igp-card { background: #fff; color: #000; border: 1px solid #dbdbdb; border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 18px; }
.igp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.igp-head b { font-weight: 600; }
.igp-more { margin-left: auto; letter-spacing: 1px; font-size: 12px; }
.igp-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; font-size: 13px; background: #efefef; color: #737373; }
.igp-media { aspect-ratio: var(--ratio, 4 / 5); background: #000; }
.igp-actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; }
.igp-actions .spacer { flex: 1; }
.igp-caption { padding: 0 12px; overflow-wrap: anywhere; }
.igp-caption b { font-weight: 600; }
.igp-caption .tag-link { color: #00376b; }
.igp-date { padding: 6px 12px 12px; font-size: 10px; letter-spacing: .2px; text-transform: uppercase; color: #737373; }

/* Aperçu Instagram : téléphone (reels et stories) */
.igp-phone { align-self: center; width: min(100%, 320px); padding: 10px; background: #111; border-radius: 34px; box-shadow: 0 12px 34px rgba(18,18,18,.25); }
.igp-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; }
.igp-screen .slide img, .igp-screen .slide video { object-fit: cover; }
.igp-screen .dots { display: none; }
.igp-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; z-index: 2; pointer-events: none; }
.igp-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); }
.igp-bars i.on { background: #fff; }
.igp-top { position: absolute; top: 20px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; pointer-events: none; text-shadow: 0 0 4px rgba(0,0,0,.5); }
.igp-top span { color: rgba(255,255,255,.75); }
.igp-top .igp-av, .igp-bottom .igp-av { width: 28px; height: 28px; }
.igp-reply { position: absolute; left: 12px; right: 12px; bottom: 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 9px 14px; z-index: 2; pointer-events: none; }
.igp-side { position: absolute; right: 10px; bottom: 90px; display: flex; flex-direction: column; gap: 18px; z-index: 2; pointer-events: none; filter: drop-shadow(0 0 3px rgba(0,0,0,.5)); }
.igp-bottom { position: absolute; left: 12px; right: 52px; bottom: 16px; z-index: 2; pointer-events: none; text-shadow: 0 0 4px rgba(0,0,0,.6); }
.igp-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.igp-follow { border: 1px solid rgba(255,255,255,.8); border-radius: 8px; padding: 2px 8px; font-weight: 600; font-size: 12px; }
.igp-bottom p { margin: 0; line-height: 17px; }
.igp-screen .cnav { width: 24px; height: 24px; }
.igp-screen .slide-count { top: 34px; }


/* Facebook et LinkedIn : carte de fil (mise en page reproduite, sans logos officiels) */
.np-card { background: #fff; color: #1c1e21; border: 1px solid #dadde1; border-radius: 8px; overflow: hidden; font: 15px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: left; }
.np-head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px 8px; }
.np-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #e4e6eb; color: #65676b; font-weight: 700; display: grid; place-items: center; }
.np-av-sq { border-radius: 4px; width: 48px; height: 48px; }
.np-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 17px; }
.np-who b { font-weight: 600; font-size: 15px; }
.np-who span { color: #65676b; font-size: 12.5px; }
.np-more { color: #65676b; letter-spacing: 1px; font-size: 12px; }
.np-text { padding: 0; margin: 0 14px 10px; overflow-wrap: anywhere; }
.np-text .tag-link { color: #385898; }
.np-media { aspect-ratio: var(--ratio, 4 / 5); max-height: 640px; background: #000; margin: 0 auto; }
.np-card:has(.np-media) .np-media { box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax); }
.np-media img, .np-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-grid { display: grid; gap: 2px; aspect-ratio: 1 / 1; background: #fff; }
.np-grid-2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1.2; }
.np-grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
.np-grid-3 .np-cell:first-child { grid-column: 1 / -1; }
.np-grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.np-grid-5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 3fr 2fr; }
.np-grid-5 .np-cell:nth-child(-n+2) { grid-column: span 3; }
.np-grid-5 .np-cell:nth-child(n+3) { grid-column: span 2; }
.np-cell { position: relative; overflow: hidden; background: #e4e6eb; min-height: 0; }
.np-cell img, .np-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; font-weight: 700; }
.np-count { display: flex; align-items: center; gap: 6px; padding: 8px 14px; color: #65676b; font-size: 13px; }
.np-count .spacer { flex: 1; }
.np-reac { letter-spacing: -2px; }
.np-actions { display: flex; justify-content: space-around; border-top: 1px solid #dadde1; margin: 0 10px; padding: 4px 0; color: #65676b; font-size: 14px; font-weight: 600; }
.np-actions span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; }
.lip-doc { border-top: 1px solid var(--li-line); border-bottom: 1px solid var(--li-line); background: var(--li-bg); }
.lip-doc-bar { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #1d2226; color: #fff; font-size: 13px; }
.lip-doc-bar b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lip-doc-stage { position: relative; display: grid; place-items: center; min-height: 240px; }
.lip-doc-stage canvas { display: block; max-width: 100%; height: auto; }
.lip-doc-stage .cnav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lip-doc-stage .cnav.prev { left: 8px; } .lip-doc-stage .cnav.next { right: 8px; }
/* Texte replié comme sur chaque réseau (« plus », « Voir plus », « …voir plus ») */
.np-fold { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.np-fold-2 { -webkit-line-clamp: 2; } .np-fold-3 { -webkit-line-clamp: 3; } .np-fold-5 { -webkit-line-clamp: 5; }
.np-fold.is-open { -webkit-line-clamp: unset; display: block; }
.np-fold-toggle { display: block; border: 0; background: none; padding: 0 14px 10px; margin-top: -8px; color: #65676b; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.igp-card .np-fold-toggle { padding: 0 12px; margin: 2px 0 0; color: #737373; font-weight: 400; }
/* Pastilles de réseau (neutres) */
.net { display: inline-flex; align-items: center; justify-content: center; font: 700 10.5px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: .02em; padding: 3px 6px; border-radius: 3px; color: #fff; background: #555; white-space: nowrap; }
.net-instagram { background: #c13584; } .net-facebook { background: #1877f2; } .net-linkedin { background: #0a66c2; } .net-tiktok { background: #111; } .net-pinterest { background: #e60023; }
.cal-sub .net { padding: 1px 3px; font-size: 8.5px; }

/* ---------------------------------------------------------------- Facebook : codes visuels (clair / sombre) */
:root {
  --fb-bg: #F0F2F5; --fb-card: #FFFFFF; --fb-text: #050505; --fb-text-2: #65676B; --fb-line: #CED0D4;
  --fb-hover: #F2F2F2; --fb-bubble: #F0F2F5; --fb-blue: #0866FF; --fb-blue-soft: #EBF5FF; --fb-btn: #E4E6EB;
  --fb-shadow: 0 1px 2px rgba(0,0,0,.2);
  --fb-font: "Segoe UI Historic", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --fb-bg: #18191A; --fb-card: #242526; --fb-text: #E4E6EB; --fb-text-2: #B0B3B8; --fb-line: #3E4042;
          --fb-hover: #3A3B3C; --fb-bubble: #3A3B3C; --fb-blue: #2D88FF; --fb-blue-soft: #263951; --fb-btn: #3A3B3C; --fb-shadow: none; }
}
.fbp { background: var(--fb-card); color: var(--fb-text); border: 0; border-radius: 8px; box-shadow: var(--fb-shadow); font: 400 15px/1.3333 var(--fb-font); }
.fbp .np-head { padding: 12px 16px 0; align-items: center; margin-bottom: 12px; }
.fbp .np-av { width: 40px; height: 40px; background: var(--fb-btn); color: var(--fb-text-2); }
.fbp .np-who { line-height: 1.33; }
.fbp .np-who b { font-weight: 600; font-size: 15px; color: var(--fb-text); }
.fbp .np-who span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fb-text-2); }
.fbp .np-who .fbi { width: 12px; height: 12px; }
.fbp .np-more { color: var(--fb-text-2); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.fbp .np-text { margin: 0 16px 12px; font-size: 15px; line-height: 1.3333; }
.fbp .np-text .tag-link { color: var(--fb-blue); font-weight: 400; }
.fbp + .np-fold-toggle, .fbp .np-fold-toggle { color: var(--fb-text); font-weight: 600; padding: 0 16px 12px; margin-top: -10px; font-size: 15px; }
.fbp .np-media { max-height: none; background: #000; }
.fbp .np-grid { gap: 2px; background: var(--fb-card); }
.fbp .np-count { padding: 10px 16px; font-size: 15px; color: var(--fb-text-2); gap: 4px; }
.fbp .np-count > span:last-child { margin-left: 12px; }
.fb-reacts { display: inline-flex; margin-right: 4px; }
.fb-react { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--fb-card); }
.fb-react + .fb-react { margin-left: -4px; }
.fb-react-like { background: linear-gradient(#18AFFF, #0062DF); }
.fb-react-love { background: linear-gradient(#FF6680, #E61739); }
.fb-actions { margin: 0 16px; padding: 4px 0; border-top: 1px solid var(--fb-line); justify-content: space-between; gap: 4px; color: var(--fb-text-2); font: 600 15px/1 var(--fb-font); }
.fb-actions span { flex: 1; justify-content: center; gap: 8px; padding: 8px 4px; border-radius: 4px; cursor: default; }
.fb-actions span:hover { background: var(--fb-hover); }
.fb-composer { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 8px 0 12px; border-top: 1px solid var(--fb-line); }
.fb-mini-av { width: 32px; height: 32px; font-size: 13px; }
.fb-pill { flex: 1; background: var(--fb-bubble); color: var(--fb-text-2); border-radius: 20px; padding: 8px 12px; font-size: 15px; }
/* Texte replié : aucune marge intérieure en bas (sinon une ligne coupée dépasse sous « Voir plus ») */
.np-fold { padding-bottom: 0 !important; }
.np-fold-toggle { margin-top: -4px !important; }
.np-av.avatar-ph, .igp-av.avatar-ph { font-size: 16px; font-weight: 700; }
.fbp .np-media { max-height: 600px; }

/* ---------------------------------------------------------------- LinkedIn : codes visuels (clair / sombre) */
:root {
  --li-bg: #F4F2EE; --li-card: #FFFFFF; --li-text: rgba(0,0,0,.9); --li-text-2: rgba(0,0,0,.6); --li-line: #E8E8E8;
  --li-hover: rgba(0,0,0,.08); --li-bubble: #F2F2F2; --li-blue: #0A66C2; --li-on-blue: #FFFFFF; --li-green: #01754F; --li-on-green: #FFFFFF;
  --li-pill-line: rgba(0,0,0,.3); --li-shadow: 0 0 0 1px rgba(140,140,140,.2);
  --li-font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, Cantarell, "Droid Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --li-bg: #000000; --li-card: #1B1F23; --li-text: rgba(255,255,255,.9); --li-text-2: rgba(255,255,255,.6); --li-line: #38434F;
          --li-hover: rgba(255,255,255,.08); --li-bubble: #293138; --li-blue: #71B7FB; --li-on-blue: #000000; --li-green: #57B38B; --li-on-green: #000000;
          --li-pill-line: rgba(255,255,255,.3); --li-shadow: 0 0 0 1px rgba(140,140,140,.2); }
}
.lip { background: var(--li-card); color: var(--li-text); border: 0; border-radius: 8px; box-shadow: var(--li-shadow); font: 400 14px/1.43 var(--li-font); }
.lip .np-head { padding: 12px 16px 0; margin-bottom: 8px; gap: 8px; }
.lip .np-av { width: 48px; height: 48px; border-radius: 4px; background: var(--li-bubble); color: var(--li-text-2); }
.lip .np-who { line-height: 1.33; }
.lip .np-who b { font-size: 14px; font-weight: 600; color: var(--li-text); }
.lip .np-who span { font-size: 12px; color: var(--li-text-2); }
.lip .lip-when { display: inline-flex; align-items: center; gap: 4px; }
.lip .lip-when .lii { width: 12px; height: 12px; }
.lip-follow { display: inline-flex; align-items: center; gap: 4px; color: var(--li-blue); font-weight: 600; font-size: 16px; white-space: nowrap; padding: 4px 8px; border-radius: 4px; }
.lip-follow .lii { width: 16px; height: 16px; stroke-width: 2.4; }
.lip .np-text { margin: 0 16px 8px; font-size: 14px; line-height: 1.43; color: var(--li-text); }
.lip .np-text .tag-link { color: var(--li-blue); font-weight: 600; }
.lip .np-fold-toggle { color: var(--li-text-2); font-weight: 400; font-size: 14px; padding: 0 16px 8px; text-align: right; width: 100%; }
.lip .np-media { max-height: 600px; }
.lip .np-grid { gap: 2px; background: var(--li-card); }
.lip .np-count { padding: 8px 16px; font-size: 12px; color: var(--li-text-2); gap: 4px; }
.li-reacts { display: inline-flex; margin-right: 2px; }
.li-react { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--li-card); }
.li-react + .li-react { margin-left: -4px; }
.li-react-like { background: #378FE9; } .li-react-bravo { background: #44712E; } .li-react-idea { background: #E7A33E; }
.li-actions { margin: 0 8px; padding: 4px 0; border-top: 1px solid var(--li-line); justify-content: space-between; gap: 0; color: var(--li-text-2); font: 600 14px/1 var(--li-font); }
.li-actions span { flex: 1; justify-content: center; gap: 6px; padding: 10px 4px; border-radius: 4px; }
.li-actions span:hover { background: var(--li-hover); }
.li-actions .lii { width: 20px; height: 20px; }
.li-composer { display: flex; align-items: center; gap: 8px; padding: 4px 16px 12px; }
.lip .li-mini-av { width: 40px; height: 40px; border-radius: 50%; font-size: 14px; background: var(--li-bubble); color: var(--li-text-2); display: grid; place-items: center; }
.li-pill { flex: 1; border-radius: 24px; padding: 9px 16px; font-size: 14px; color: var(--li-text-2); box-shadow: inset 0 0 0 1px var(--li-pill-line); }
@media (max-width: 480px) { .li-actions span { flex-direction: column; font-size: 12px; gap: 4px; padding: 8px 2px; } }

/* Vignette d'un document PDF (1re page) */
.pdf-thumb { width: 100%; height: 100%; display: grid; place-items: center; background: #E9E3D5; color: #55504A; overflow: hidden; }
.pdf-thumb b { font: 800 13px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em; padding: 4px 7px; border: 1.5px solid currentColor; }
.pdf-thumb canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; background: #fff; }

/* ---------------------------------------------------------------- Aperçu TikTok */
.ttp .igp-screen { font: 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ttp .igp-screen::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; z-index: 1; }
.ttp-tabs { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; z-index: 2; font-size: 14px; color: rgba(255,255,255,.7); pointer-events: none; text-shadow: 0 0 3px rgba(0,0,0,.5); }
.ttp-tabs b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 3px; }
.ttp-side { position: absolute; right: 8px; bottom: 70px; display: flex; flex-direction: column; align-items: center; gap: 13px; z-index: 2; pointer-events: none; filter: drop-shadow(0 0 3px rgba(0,0,0,.45)); }
.ttp-side > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ttp-side small { font-size: 11px; font-weight: 600; }
.ttp-side .ico { fill: #fff; }
.ttp-av { position: relative; margin-bottom: 6px; }
.ttp-av .igp-av { width: 40px; height: 40px; border: 1.5px solid #fff; border-radius: 50%; }
.ttp-av i { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fe2c55; color: #fff; font: 700 14px/18px sans-serif; text-align: center; font-style: normal; }
.ttp-disc .igp-av { width: 30px; height: 30px; border-radius: 50%; border: 6px solid #222; animation: ttp-spin 6s linear infinite; }
@keyframes ttp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ttp-disc .igp-av { animation: none; } }
.ttp-bottom { position: absolute; left: 12px; right: 60px; bottom: 16px; z-index: 2; text-shadow: 0 0 4px rgba(0,0,0,.5); }
.ttp-bottom b { font-size: 15px; }
.ttp-bottom p { margin: 4px 0 6px; font-size: 13.5px; }
.ttp-sound { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ttp-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.ttp-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); }
.ttp-dots i.on { background: #fff; }
.ttp-photo .igp-screen .slide img { object-fit: contain; background: #000; }

/* ---------------------------------------------------------------- Aperçu Pinterest */
.pinp { background: #fff; color: #111; border-radius: 32px; box-shadow: 0 1px 20px rgba(0,0,0,.1); overflow: hidden; font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 520px; width: 100%; }
.pinp-media { position: relative; aspect-ratio: var(--ratio, 2 / 3); background: #efefef; border-radius: 32px 32px 16px 16px; overflow: hidden; }
.pinp-media .carousel, .pinp-media .track, .pinp-media .slide { height: 100%; }
.pinp-media img, .pinp-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinp-domain { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 600; z-index: 2; }
.pinp-body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.pinp-bar { display: flex; align-items: center; gap: 12px; }
.pinp-icons { display: flex; align-items: center; gap: 14px; flex: 1; }
.pinp-icons b { font-size: 14px; letter-spacing: 1px; }
.pinp-board { font-weight: 600; font-size: 14px; }
.pinp-save { background: #e60023; color: #fff; font-weight: 700; border-radius: 24px; padding: 11px 16px; font-size: 15px; }
.pinp-link { font-size: 14px; text-decoration: underline; }
.pinp-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.pinp-text { font-size: 15px; }
.pinp-who { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pinp-who > span:not(.pinp-follow) { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.pinp-who small { color: #5f5f5f; font-size: 13px; }
.pinp-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #efefef; font-weight: 700; }
.pinp-follow { background: #efefef; border-radius: 24px; padding: 10px 16px; font-weight: 700; font-size: 15px; }
.ttp-side .ico { fill: none; }
.ttp-side > span:nth-child(2) .ico { fill: #fff; }
.ttp .slide-count { display: none; }
.ttp .cnav.next { right: 58px; }
