/* Immigré Social web — refonte V4, intégrée au site.
   Le Social garde l'en-tête du site, sa navigation et le lecteur (plus de page « détachée »).
   Ordinateur : bannière Social + onglets Fil / Hub, carte profil et navigation à gauche, fil au centre,
   « En direct » et tendances à droite. Téléphone : barre d'onglets du site en bas, bouton Publier flottant.
   Uniquement du style : aucun id ni data-* modifié. Les variables --v3-* viennent de site-v3.css. */

html.site-v3 body[data-page="social"] {
  --soc: #2bc0ff;
  --soc-2: #8b3dff;
  --soc-pink: #ff5c8a;
  --soc-green: #53e6a5;
  --soc-gold: #ffd32e;
  --soc-card: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)), var(--v3-bg-2);
  --soc-top: 92px;
  --social-v2-bg: var(--v3-bg);
  --social-v2-panel: var(--v3-bg-2);
  --social-v2-panel-raised: var(--v3-bg-2);
  --social-v2-text: var(--v3-text);
  --social-v2-muted: var(--v3-muted);
  --social-v2-line: var(--v3-line);
  --social-v2-orange: #ff6a3d;
  min-height: 0;
  background: var(--v3-bg);
  background-size: auto;
  color: var(--v3-text);
}
html.site-v3[data-theme="light"]:not([data-night="true"]) body[data-page="social"] { --soc-card: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .84)); }

/* ---------- Le site reste là : en-tête, onglets, pied de page ---------- */
html.site-v3 body[data-page="social"] .site-header { display: grid; }

/* ---------- Grille ---------- */
html.site-v3 body[data-page="social"] .social-shell {
  width: min(1260px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 22px 0 72px;
}
html.site-v3 body[data-page="social"] .social-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
  min-height: 0;
  padding: 0;
}
html.site-v3 body[data-page="social"] .social-main-column { min-width: 0; }

/* ---------- Colonne gauche : carte profil + navigation ---------- */
html.site-v3 body[data-page="social"] .social-sidebar {
  position: sticky;
  top: var(--soc-top);
  display: flex;
  min-height: 0;
  max-height: calc(100dvh - var(--soc-top) - 16px);
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.site-v3 body[data-page="social"] :is(.social-sidebar-brand, .social-sidebar-section-label) { display: none; }

html.site-v3 body[data-page="social"] .social-sidebar-account {
  position: relative;
  order: -1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  margin: 0;
  padding: 58px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 192, 255, .25);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(43, 192, 255, .32), rgba(139, 61, 255, .32)) top / 100% 46px no-repeat,
    var(--soc-card);
  box-shadow: var(--v3-card-shadow);
  color: var(--v3-text);
  text-align: left;
  transition: border-color .2s ease, transform .25s var(--v3-ease);
}
html.site-v3 body[data-page="social"] .social-sidebar-account::before {
  position: absolute;
  top: 10px;
  left: 16px;
  content: "MON PROFIL";
  color: rgba(255, 255, 255, .85);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .16em;
}
html.site-v3 body[data-page="social"] .social-sidebar-account:hover { border-color: rgba(43, 192, 255, .55); transform: translateY(-2px); }
html.site-v3 body[data-page="social"] .social-sidebar-account img {
  width: 56px;
  height: 56px;
  margin-top: -30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--v3-bg-2), 0 0 0 5px var(--soc), 0 10px 22px -8px var(--soc-2);
}
html.site-v3 body[data-page="social"] .social-sidebar-account span { display: grid; min-width: 0; gap: 2px; }
html.site-v3 body[data-page="social"] .social-sidebar-account strong { overflow: hidden; color: var(--v3-text); font-size: 1rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
html.site-v3 body[data-page="social"] .social-sidebar-account small { overflow: hidden; color: var(--v3-muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
html.site-v3 body[data-page="social"] .social-sidebar-account i { color: var(--soc); font-size: 1.3rem; font-style: normal; }

html.site-v3 body[data-page="social"] .social-sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background: var(--soc-card);
  box-shadow: var(--v3-card-shadow);
}
html.site-v3 body[data-page="social"] .social-sidebar-nav button {
  --tile: #8fa2ff;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--v3-muted);
  box-shadow: none;
  text-align: left;
  transition: background .2s ease, color .2s ease;
}
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-page="home"] { --tile: #ff6a3d; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-social-surface="social"] { --tile: #2bc0ff; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-social-surface="hub"] { --tile: #8b3dff; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-community-view-own-profile] { --tile: #ffb347; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button > .social-nav-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile) 18%, transparent);
  color: transparent;
  font-size: 0;
  box-shadow: none;
}
html.site-v3 body[data-page="social"] .social-sidebar-nav button > .social-nav-glyph::before {
  position: static;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  transform: none;
}
html.site-v3 body[data-page="social"] .social-sidebar-nav button > .social-nav-glyph::after { display: none; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-page="home"] > .social-nav-glyph::before { content: "🏠"; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-social-surface="social"] > .social-nav-glyph::before { content: "💬"; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-social-surface="hub"] > .social-nav-glyph::before { content: "✨"; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button[data-community-view-own-profile] > .social-nav-glyph::before { content: "👤"; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button strong { color: inherit; font-size: .92rem; font-weight: 800; }
html.site-v3 body[data-page="social"] .social-sidebar-nav button:hover { background: var(--v3-glass-2); color: var(--v3-text); }
html.site-v3 body[data-page="social"] .social-sidebar-nav button.is-current {
  background: linear-gradient(90deg, color-mix(in srgb, var(--tile) 20%, transparent), transparent 90%);
  color: var(--v3-text);
  box-shadow: inset 3px 0 0 var(--tile);
}
html.site-v3 body[data-page="social"] .social-sidebar-nav button.is-current > .social-nav-glyph { background: linear-gradient(135deg, var(--tile), color-mix(in srgb, var(--tile) 45%, #111)); box-shadow: 0 8px 18px -8px var(--tile); }

html.site-v3 body[data-page="social"] .social-sidebar-post {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--v3-cta);
  color: #1d0a00;
  font-size: .98rem;
  font-weight: 900;
  box-shadow: 0 14px 30px -12px rgba(255, 106, 61, .9);
  transition: transform .2s var(--v3-ease), filter .2s ease;
}
html.site-v3 body[data-page="social"] .social-sidebar-post:hover { filter: brightness(1.08); transform: translateY(-2px); }
html.site-v3 body[data-page="social"] .social-sidebar-post:active { transform: scale(.96); }
html.site-v3 body[data-page="social"] .social-sidebar-post::first-letter { all: unset; }
html.site-v3 body[data-page="social"] .social-sidebar-post span { font-size: 1.25rem; line-height: 1; }

/* ---------- Bannière Social ---------- */
html.site-v3 body[data-page="social"] .social-topbar {
  position: relative;
  top: auto;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  margin: 0 0 16px;
  padding: 24px 22px 18px;
  overflow: hidden;
  border: 1px solid rgba(43, 192, 255, .3);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 61, 255, .42), transparent 55%),
    linear-gradient(135deg, rgba(43, 192, 255, .24), var(--v3-bg-2) 72%);
  box-shadow: 0 30px 60px -40px rgba(43, 192, 255, .85);
}
html.site-v3 body[data-page="social"] .social-topbar::before {
  position: absolute;
  top: 12px;
  left: 22px;
  content: "LA KOMMU EN DIRECT";
  color: var(--soc);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .16em;
}
html.site-v3 body[data-page="social"] .social-topbar::after {
  position: absolute;
  right: -8px;
  bottom: -36px;
  z-index: -1;
  content: "💬";
  font-size: 7.5rem;
  line-height: 1;
  opacity: .14;
  transform: rotate(-10deg);
  pointer-events: none;
}
html.site-v3 body[data-page="social"] .social-topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 10px; }
html.site-v3 body[data-page="social"] .social-topbar-title > div { display: grid; min-width: 0; }
html.site-v3 body[data-page="social"] .social-topbar-title strong {
  background: linear-gradient(180deg, #fff 40%, #9fdcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .01em;
  text-transform: uppercase;
}
html.site-v3[data-theme="light"]:not([data-night="true"]) body[data-page="social"] .social-topbar-title strong { background-image: linear-gradient(180deg, #17151b 40%, #2b6cff); }
html.site-v3 body[data-page="social"] .social-topbar-title span:not(.social-live-mark) { margin-top: 4px; color: var(--v3-muted); font-size: .9rem; }
html.site-v3 body[data-page="social"] .social-live-mark {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--soc-green);
  box-shadow: 0 0 0 4px rgba(83, 230, 165, .18), 0 0 12px var(--soc-green);
  animation: soc-live 1.8s ease-in-out infinite;
}
html.site-v3 body[data-page="social"] .social-surface-tabs {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--v3-line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
}
html.site-v3 body[data-page="social"] .social-surface-tabs button {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--v3-muted);
  font-size: .9rem;
  font-weight: 900;
  transition: background .25s ease, color .2s ease;
}
html.site-v3 body[data-page="social"] .social-surface-tabs button[data-social-surface="social"]::before { content: "💬 "; }
html.site-v3 body[data-page="social"] .social-surface-tabs button[data-social-surface="hub"]::before { content: "✨ "; }
html.site-v3 body[data-page="social"] .social-surface-tabs button.is-active {
  background: linear-gradient(90deg, var(--soc), var(--soc-2));
  color: #fff;
  box-shadow: 0 8px 20px -10px var(--soc);
}
html.site-v3 body[data-page="social"] .social-topbar-actions { grid-column: 2; grid-row: 1; }
html.site-v3 body[data-page="social"] .social-notifications-button {
  position: relative;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--v3-line-2);
  border-radius: 999px;
  background: var(--v3-glass);
  color: var(--v3-text);
  transition: border-color .2s ease, background .2s ease;
}
html.site-v3 body[data-page="social"] .social-notifications-button:hover { border-color: var(--soc); background: var(--v3-glass-2); }
html.site-v3 body[data-page="social"] .social-notifications-button b {
  border-radius: 999px;
  background: var(--soc-pink);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 92, 138, .6);
}

/* ---------- Panneau des notifications et toast ---------- */
html.site-v3 body[data-page="social"] .social-notifications-panel,
html.site-v3 body[data-page="social"] .social-notification-toast {
  border: 1px solid var(--v3-line-2);
  border-radius: 22px;
  background: var(--v3-glass-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
html.site-v3 body[data-page="social"] .social-notifications-panel {
  top: calc(var(--soc-top) - 8px);
  right: max(20px, calc((100vw - 1260px) / 2));
  z-index: 75;
  max-height: calc(100dvh - var(--soc-top) - 24px);
  overflow: auto;
}
@media (max-width: 1099px) {
  html.site-v3 body[data-page="social"] .social-notifications-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - var(--soc-top) - 110px);
  }
}
html.site-v3 body[data-page="social"] .social-notification { border-radius: 14px; transition: background .2s ease; }
html.site-v3 body[data-page="social"] .social-notification:hover { background: var(--v3-glass); }
html.site-v3 body[data-page="social"] :is(.social-notifications-read, .social-notifications-close) { border-radius: 999px; }

/* ---------- Composer ---------- */
html.site-v3 body[data-page="social"] .social-composer-card {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-radius: 26px;
  background: var(--soc-card);
  box-shadow: var(--v3-card-shadow);
  transition: border-color .3s ease, box-shadow .3s ease;
}
html.site-v3 body[data-page="social"] .social-composer-card:focus-within { border-color: color-mix(in srgb, var(--soc) 45%, transparent); box-shadow: 0 0 0 4px rgba(43, 192, 255, .08), var(--v3-card-shadow); }
html.site-v3 body[data-page="social"] .social-composer-avatar { border: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--v3-bg-2), 0 0 0 4px var(--soc); }
html.site-v3 body[data-page="social"] .social-composer-heading .eyebrow { color: var(--soc); letter-spacing: .14em; }
html.site-v3 body[data-page="social"] .social-composer-heading h2 { color: var(--v3-text); font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: 0; text-transform: none; }
html.site-v3 body[data-page="social"] .compose-writing { border: 1px solid var(--v3-line); border-radius: 20px; background: rgba(0, 0, 0, .22); transition: border-color .2s ease; }
html.site-v3[data-theme="light"]:not([data-night="true"]) body[data-page="social"] .compose-writing { background: rgba(255, 255, 255, .85); }
html.site-v3 body[data-page="social"] .compose-writing:focus-within { border-color: var(--soc); }
html.site-v3 body[data-page="social"] .compose-writing textarea { border: 0; background: transparent; color: var(--v3-text); font-size: 1.02rem; box-shadow: none; }
html.site-v3 body[data-page="social"] .compose-writing textarea:focus { outline: 0; box-shadow: none; }
html.site-v3 body[data-page="social"] .compose-writing-meta { color: var(--v3-muted); }
html.site-v3 body[data-page="social"] :is(.social-tool-button, .social-compose-more > summary, .social-filter-button) {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--v3-line-2);
  border-radius: 999px;
  background: var(--v3-glass);
  color: var(--v3-text);
  font-weight: 800;
  transition: border-color .2s ease, background .2s ease;
}
html.site-v3 body[data-page="social"] :is(.social-tool-button, .social-compose-more > summary, .social-filter-button):hover { border-color: color-mix(in srgb, var(--soc) 60%, transparent); background: color-mix(in srgb, var(--soc) 12%, transparent); }
html.site-v3 body[data-page="social"] .social-filter-button[aria-pressed="true"] { border-color: var(--soc-gold); background: rgba(255, 211, 46, .14); color: var(--soc-gold); }
html.site-v3 body[data-page="social"] .social-compose-more > div { border: 1px solid var(--v3-line-2); border-radius: 18px; background: var(--v3-glass-strong); }
html.site-v3 body[data-page="social"] .social-compose-publish { border-top-color: var(--v3-line); }
html.site-v3 body[data-page="social"] .compose-publish-hint { color: var(--v3-muted); }
html.site-v3 body[data-page="social"] :is(#socialPostSubmit, #socialGuestLogin) {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--v3-cta);
  color: #1d0a00;
  font-weight: 900;
  box-shadow: 0 12px 28px -12px rgba(255, 106, 61, .9);
}
html.site-v3 body[data-page="social"] .social-composer-guest h2 { color: var(--v3-text); text-transform: none; }

/* ---------- Fil ---------- */
html.site-v3 body[data-page="social"] .social-feed-panel { border: 0; background: transparent; box-shadow: none; }
html.site-v3 body[data-page="social"] .social-feed-heading {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background: var(--soc-card);
}
html.site-v3 body[data-page="social"] .social-feed-kicker { color: var(--soc-pink); letter-spacing: .14em; }
html.site-v3 body[data-page="social"] .social-feed-heading h2 { color: var(--v3-text); font-size: 1.15rem; letter-spacing: 0; text-transform: none; }
html.site-v3 body[data-page="social"] .social-feed-controls { display: flex; flex: 1 1 260px; justify-content: flex-end; gap: 8px; }
html.site-v3 body[data-page="social"] .social-search-field { flex: 1; max-width: 300px; min-width: 0; }
html.site-v3 body[data-page="social"] .social-search-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--v3-line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: var(--v3-text);
}
html.site-v3[data-theme="light"]:not([data-night="true"]) body[data-page="social"] .social-search-field input { background: rgba(255, 255, 255, .85); }
html.site-v3 body[data-page="social"] .social-search-field input:focus { border-color: var(--soc); outline: 0; box-shadow: 0 0 0 3px rgba(43, 192, 255, .2); }

html.site-v3 body[data-page="social"] .social-feed { display: grid; gap: 12px; }
html.site-v3 body[data-page="social"] .social-post {
  margin: 0;
  padding: 18px 18px 12px;
  border: 1px solid var(--v3-line);
  border-radius: 24px;
  background: var(--soc-card);
  box-shadow: var(--v3-card-shadow);
  transition: border-color .25s ease;
}
html.site-v3 body[data-page="social"] .social-post:hover { border-color: color-mix(in srgb, var(--soc) 32%, transparent); }
html.site-v3 body[data-page="social"] .social-repost-label {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(83, 230, 165, .12);
  color: var(--soc-green);
  font-size: .74rem;
  font-weight: 850;
}
html.site-v3 body[data-page="social"] .social-pinned-label { color: var(--soc-gold); }
html.site-v3 body[data-page="social"] .social-post-head { gap: 12px; }
html.site-v3 body[data-page="social"] .social-post-avatar { width: 46px; height: 46px; border: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--v3-bg-2), 0 0 0 3.5px color-mix(in srgb, var(--soc) 70%, var(--soc-2)); }
html.site-v3 body[data-page="social"] .social-post-meta > button { color: var(--v3-text); font-size: 1rem; font-weight: 900; }
html.site-v3 body[data-page="social"] .social-post-meta > button:hover { color: var(--soc); }
html.site-v3 body[data-page="social"] :is(.social-post-meta > span, .social-post-bio) { color: var(--v3-muted); }
html.site-v3 body[data-page="social"] .social-post-body { margin: 12px 0 4px; color: var(--v3-text); font-size: 1.04rem; line-height: 1.55; }
html.site-v3 body[data-page="social"] :is(.social-post-media, .social-post-youtube, .social-shared-track, .social-poll) { overflow: hidden; border-radius: 18px; }
html.site-v3 body[data-page="social"] :is(.social-shared-track, .social-poll) { border: 1px solid var(--v3-line); background: var(--v3-glass); }
html.site-v3 body[data-page="social"] .social-poll-option { border-radius: 14px; }
html.site-v3 body[data-page="social"] .social-post-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--v3-line); }
html.site-v3 body[data-page="social"] .social-post-action {
  --act: var(--soc);
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--v3-glass);
  color: var(--v3-muted);
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
html.site-v3 body[data-page="social"] .social-post-action img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
html.site-v3 body[data-page="social"] .social-action-repost { --act: var(--soc-green); }
html.site-v3 body[data-page="social"] .social-reaction-keur { --act: var(--soc-pink); }
html.site-v3 body[data-page="social"] .social-reaction-ouin { --act: var(--soc); }
html.site-v3 body[data-page="social"] .social-action-comments { --act: #b98bff; margin-left: auto; }
html.site-v3 body[data-page="social"] .social-action-pin { --act: var(--soc-gold); }
html.site-v3 body[data-page="social"] .social-post-action:hover { border-color: color-mix(in srgb, var(--act) 45%, transparent); background: color-mix(in srgb, var(--act) 14%, transparent); color: var(--act); }
html.site-v3 body[data-page="social"] .social-post-action.is-active { border-color: color-mix(in srgb, var(--act) 55%, transparent); background: color-mix(in srgb, var(--act) 20%, transparent); color: var(--act); }
html.site-v3 body[data-page="social"] .social-post-action:active { transform: scale(.94); }
html.site-v3 body[data-page="social"] .social-comments { margin-left: 0; }
html.site-v3 body[data-page="social"] .social-comments > summary {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--v3-muted);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
html.site-v3 body[data-page="social"] .social-comments > summary:hover,
html.site-v3 body[data-page="social"] .social-comments[open] > summary { background: var(--v3-glass); color: var(--v3-text); }
html.site-v3 body[data-page="social"] .social-comment { border-radius: 16px; background: rgba(255, 255, 255, .025); }
html.site-v3 body[data-page="social"] .social-comment-form { border: 1px solid var(--v3-line-2); border-radius: 20px; background: rgba(0, 0, 0, .2); }
html.site-v3 body[data-page="social"] .social-comment-form:focus-within { border-color: var(--soc); }
html.site-v3 body[data-page="social"] .social-comment-form input { border: 0; background: transparent; color: var(--v3-text); box-shadow: none; }
html.site-v3 body[data-page="social"] .social-comment-form input:focus { outline: 0; }
html.site-v3 body[data-page="social"] .social-comment-form button[type="submit"] { border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--soc), var(--soc-2)); color: #fff; }
html.site-v3 body[data-page="social"] .social-inline-login { border-radius: 999px; color: var(--soc); }
html.site-v3 body[data-page="social"] .social-empty-state {
  padding: 34px 18px;
  border: 1px dashed var(--v3-line-2);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(43, 192, 255, .12), transparent 60%), rgba(255, 255, 255, .02);
  text-align: center;
}
html.site-v3 body[data-page="social"] .social-empty-state::before { display: block; margin-bottom: 8px; content: "🌙"; font-size: 2.2rem; }

/* ---------- Colonne droite ---------- */
html.site-v3 body[data-page="social"] .social-right-sidebar { position: sticky; top: var(--soc-top); display: grid; gap: 14px; }
html.site-v3 body[data-page="social"] .social-side-card {
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: 24px;
  background: var(--soc-card);
  box-shadow: var(--v3-card-shadow);
}
html.site-v3 body[data-page="social"] .social-side-heading { border-bottom-color: var(--v3-line); }
html.site-v3 body[data-page="social"] .social-side-heading small { color: var(--soc-green); letter-spacing: .14em; }
html.site-v3 body[data-page="social"] .social-trends-card .social-side-heading small { color: var(--soc-pink); }
html.site-v3 body[data-page="social"] .social-side-heading strong { color: var(--v3-text); font-size: 1.05rem; }
html.site-v3 body[data-page="social"] .social-side-heading b { padding: 4px 10px; border-radius: 999px; background: rgba(83, 230, 165, .14); color: var(--soc-green); }
html.site-v3 body[data-page="social"] :is(.social-member-row, .social-trend-row) { border-radius: 14px; transition: background .2s ease; }
html.site-v3 body[data-page="social"] :is(.social-member-row, .social-trend-row):hover { background: var(--v3-glass); }
html.site-v3 body[data-page="social"] .social-member-row img { border-radius: 50%; }
html.site-v3 body[data-page="social"] .social-member-row i { background: var(--soc-green); box-shadow: 0 0 8px var(--soc-green); }
html.site-v3 body[data-page="social"] .social-trend-row small { background: linear-gradient(90deg, var(--soc-pink), #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 950; }
html.site-v3 body[data-page="social"] .social-trend-row strong { color: var(--v3-text); }
html.site-v3 body[data-page="social"] .social-trend-row b { color: var(--v3-muted); }

/* ---------- Hub ---------- */
html.site-v3 body[data-page="social"] .web-kommu-center { margin-bottom: 16px; overflow: hidden; border: 1px solid rgba(139, 61, 255, .3); border-radius: 26px; background: var(--soc-card); box-shadow: 0 30px 60px -40px rgba(139, 61, 255, .9); }
html.site-v3 body[data-page="social"] .web-kommu-heading img { display: block; width: 100%; }
html.site-v3 body[data-page="social"] .web-kommu-stats { gap: 8px; padding: 12px; border: 0; background: transparent; }
html.site-v3 body[data-page="social"] .web-kommu-stats > div { --stat: var(--soc-green); border: 1px solid color-mix(in srgb, var(--stat) 28%, transparent); border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--stat) 14%, transparent), transparent); }
html.site-v3 body[data-page="social"] .web-kommu-stats > div:nth-child(2) { --stat: var(--soc-pink); }
html.site-v3 body[data-page="social"] .web-kommu-stats > div:nth-child(3) { --stat: var(--soc); }
html.site-v3 body[data-page="social"] .web-kommu-stats > div:nth-child(4) { --stat: #ffb347; }
html.site-v3 body[data-page="social"] .web-kommu-stats strong { color: var(--stat); font-size: 1.5rem; }
html.site-v3 body[data-page="social"] .web-kommu-body > section { margin: 0 12px 12px; border: 1px solid var(--v3-line); border-radius: 20px; background: rgba(255, 255, 255, .02); }
html.site-v3 body[data-page="social"] :is(.web-kommu-activity-row, .web-kommu-popular-row) { border-radius: 14px; transition: background .2s ease; }
html.site-v3 body[data-page="social"] :is(.web-kommu-activity-row, .web-kommu-popular-row):hover { background: var(--v3-glass); }

/* ---------- Fenêtre d'envoi ---------- */
html.site-v3 body[data-page="social"] .social-upload-panel { border: 1px solid var(--v3-line-2); border-radius: 26px; background: var(--v3-bg-2); }
html.site-v3 body[data-page="social"] .social-upload-dropzone { border: 2px dashed color-mix(in srgb, var(--soc) 45%, transparent); border-radius: 20px; background: rgba(43, 192, 255, .05); }

/* ---------- Tablette : la colonne de droite passe sous le fil ---------- */
@media (max-width: 1240px) {
  html.site-v3 body[data-page="social"] .social-layout { grid-template-columns: 230px minmax(0, 1fr); }
  html.site-v3 body[data-page="social"] .social-right-sidebar { display: none; }
}

/* ---------- Téléphone et petite tablette : une seule colonne, barre d'onglets du site ---------- */
@media (max-width: 1099px) {
  html.site-v3 body[data-page="social"] { --soc-top: 70px; }
  html.site-v3 body[data-page="social"] .social-shell { width: calc(100% - 20px); padding: 12px 0 40px; }
  html.site-v3 body[data-page="social"] .social-layout { display: block; }
  /* La colonne de gauche disparaît : la navigation du site et la bannière suffisent. Seul Publier reste, en bouton flottant. */
  html.site-v3 body[data-page="social"] .social-sidebar {
    position: static !important;
    display: block !important;
    max-height: none;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  html.site-v3 body[data-page="social"] :is(.social-sidebar-nav, .social-sidebar-account) { display: none !important; }
  html.site-v3 body[data-page="social"] .social-sidebar-post {
    position: fixed !important;
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 79;
    width: 58px;
    min-height: 58px;
    height: 58px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 14px 30px -8px rgba(255, 106, 61, .9);
  }
  html.site-v3 body[data-page="social"] .social-sidebar-post strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.site-v3 body[data-page="social"] .social-sidebar-post span { font-size: 1.6rem; }
  html.site-v3 body[data-page="social"]:has(.global-music-player:not([hidden]):not(.is-collapsed)) .social-sidebar-post { bottom: calc(250px + env(safe-area-inset-bottom, 0px)); }

  html.site-v3 body[data-page="social"] .social-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 20px 14px 14px; border-radius: 22px; }
  html.site-v3 body[data-page="social"] .social-topbar::before { left: 14px; }
  html.site-v3 body[data-page="social"] .social-topbar::after { font-size: 5.5rem; bottom: -28px; }
  html.site-v3 body[data-page="social"] .social-surface-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  html.site-v3 body[data-page="social"] .social-surface-tabs button { flex: 1; }
  html.site-v3 body[data-page="social"] .social-topbar-actions { grid-column: 2; grid-row: 1; }
  html.site-v3 body[data-page="social"] .social-notifications-button { width: 46px; padding: 0; justify-content: center; }
  html.site-v3 body[data-page="social"] .social-notifications-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.site-v3 body[data-page="social"] .social-topbar-title span:not(.social-live-mark) { font-size: .8rem; }

  html.site-v3 body[data-page="social"] .social-composer-card { padding: 14px; border-radius: 22px; }
  html.site-v3 body[data-page="social"] .social-feed-heading { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 20px; }
  html.site-v3 body[data-page="social"] .social-feed-controls { justify-content: stretch; }
  html.site-v3 body[data-page="social"] .social-search-field { max-width: none; }
  html.site-v3 body[data-page="social"] .social-post { padding: 15px 14px 10px; border-radius: 22px; }
  html.site-v3 body[data-page="social"] .social-post-action { min-height: 32px; padding: 0 10px; }
  html.site-v3 body[data-page="social"] .web-kommu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes soc-live { 0%, 100% { box-shadow: 0 0 0 4px rgba(83, 230, 165, .18), 0 0 12px var(--soc-green); } 50% { box-shadow: 0 0 0 7px rgba(83, 230, 165, .05), 0 0 6px var(--soc-green); } }

@media (prefers-reduced-motion: reduce) {
  html.site-v3 body[data-page="social"] .social-live-mark { animation: none; }
  html.site-v3 body[data-page="social"] :is(.social-sidebar-account, .social-sidebar-post, .social-post-action):hover { transform: none; }
}

/* Kapsules du jour (social-pulse.js), en haut du fil comme dans l'app. */
html.site-v3 body[data-page="social"] .web-kapsules { margin: 0 0 14px; padding: 12px 14px 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; background: rgba(255, 255, 255, .03); }
html.site-v3 body[data-page="social"] .web-kapsules .app-kapsule-ring { --app-bg: #121318; }
html.site-v3 body[data-page="social"] .web-kapsules .app-kapsule-add { --app-bg: #121318; cursor: pointer; }
html.site-v3 body[data-page="social"] .web-kapsules .app-kapsule-ring:hover { filter: brightness(1.12); }
html.site-v3 body[data-page="social"] .web-kapsules .app-kapsule { flex-basis: 72px; }
/* Studio et visionneur Kapsule : l'app masque tout [hidden], le site non. */
:is(.kapsule-studio, .kapsule-viewer, .app-kapsules) [hidden] { display: none !important; }
