:root {
  --social-ink: #172033;
  --social-muted: #6f7787;
  --social-line: #e5e8f0;
  --social-paper: #ffffff;
  --social-canvas: #f4f6fb;
  --social-green: #3d4fb3;
  --social-green-deep: #263881;
  --social-green-soft: #edf0ff;
  --social-gold: #d6952e;
  --social-blue: #3978a8;
  --social-red: #ba514e;
  --social-radius: 20px;
  --social-shadow: 0 12px 40px rgba(28, 39, 69, 0.07);
}

* { box-sizing: border-box; }

body.social-home {
  min-height: 100vh;
  margin: 0;
  color: var(--social-ink);
  background: var(--social-canvas);
}

.home-social-section header,
.social-home .nv-app-header {
  padding: 0;
  text-align: left;
}

.social-home .nv-app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 232, 240, 0.94);
}

.social-home .nv-header-inner { max-width: 1460px; }
.social-home .nv-header-nav > a[aria-current="page"] { color: var(--social-green); }

.social-shell {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 700px) minmax(240px, 310px);
  gap: 28px;
  align-items: start;
  width: 100%;
  margin: 0 auto;
  padding: 26px 0 72px;
}

.social-left-rail,
.social-right-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.social-kicker {
  margin: 0;
  color: #7e8984;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
}

.social-profile-card,
.social-filter-card,
.social-composer,
.social-tools-card,
.social-team-card,
.social-post {
  overflow: hidden;
  border: 1px solid rgba(218, 225, 218, 0.95);
  border-radius: var(--social-radius);
  background: var(--social-paper);
  box-shadow: var(--social-shadow);
}

.social-profile-card { position: relative; padding: 0 20px 20px; }

.social-profile-cover {
  position: relative;
  height: 88px;
  margin: 0 -20px;
  overflow: hidden;
  background: linear-gradient(140deg, #263881, #6477db);
}

.social-profile-cover > img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.social-profile-cover::before,
.social-profile-cover::after,
.social-profile-cover span {
  position: absolute;
  width: 120px;
  height: 120px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.social-profile-cover::before { top: -70px; left: -34px; }
.social-profile-cover::after { right: -34px; bottom: -82px; }
.social-profile-cover span:first-child { top: -92px; right: 40px; width: 170px; height: 170px; }
.social-profile-cover span:last-child { bottom: -92px; left: 50px; width: 145px; height: 145px; }

.social-profile-avatar,
.social-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  font-weight: 850;
  letter-spacing: 0.03em;
  background: var(--avatar-color, var(--social-green));
  border-radius: 50%;
  overflow: hidden;
}

.social-profile-avatar > img,
.social-avatar > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.social-profile-avatar {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  margin-top: -34px;
  border: 5px solid #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(49, 65, 154, 0.18);
}

.social-profile-copy { padding-top: 14px; }
.social-profile-copy h1 { margin: 8px 0 3px; font-size: 1.22rem; line-height: 1.15; }
.social-profile-copy > p:not(.social-kicker) { margin: 0; color: var(--social-muted); font-size: 0.85rem; }
.social-profile-copy > span { display: block; margin-top: 8px; color: #8a938f; font-size: 0.75rem; }

.social-profile-link {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  color: var(--social-green);
  font-size: 0.8rem;
  font-weight: 780;
  text-decoration: none;
  border-top: 1px solid var(--social-line);
}

.social-filter-card { padding: 20px 12px 12px; }
.social-filter-card > .social-kicker { margin: 0 8px 10px; }

.social-filter {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  padding: 11px 12px;
  color: #56615d;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 680;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-filter:hover { color: var(--social-ink); background: #f5f7f4; transform: translateX(2px); }
.social-filter.is-active { color: var(--social-green-deep); background: var(--social-green-soft); }

.filter-dot { width: 8px; height: 8px; border-radius: 999px; background: #94a09a; box-shadow: 0 0 0 4px rgba(148, 160, 154, 0.12); }
.filter-news { background: var(--social-blue); box-shadow: 0 0 0 4px rgba(57, 120, 168, 0.12); }
.filter-success { background: var(--social-green); box-shadow: 0 0 0 4px rgba(61, 79, 179, 0.12); }
.filter-alert { background: var(--social-red); box-shadow: 0 0 0 4px rgba(186, 81, 78, 0.12); }
.filter-event { background: var(--social-gold); box-shadow: 0 0 0 4px rgba(214, 149, 46, 0.13); }

.social-feed-column { min-width: 0; }

.social-feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 3px 2px 24px;
}

.social-feed-heading h2 { margin: 8px 0 4px; font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -0.045em; line-height: 1; }
.social-feed-heading h2 span:last-child { color: var(--social-green); }
.social-feed-heading > div > p:last-child { margin: 9px 0 0; color: var(--social-muted); font-size: 0.9rem; }

.social-live-indicator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  padding: 7px 10px;
  color: var(--social-green-deep);
  font-size: 0.68rem;
  font-weight: 780;
  background: rgba(237, 240, 255, 0.9);
  border: 1px solid #d8def8;
  border-radius: 999px;
}

.social-live-indicator i { width: 7px; height: 7px; background: #5368d2; border-radius: 999px; box-shadow: 0 0 0 4px rgba(83, 104, 210, 0.12); }

.social-composer { padding: 22px; }
.social-composer-top { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
.social-avatar { width: 42px; height: 42px; font-size: 0.78rem; }

.social-composer-top textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--social-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
  background: transparent;
  border: 0;
  outline: none;
}

.social-composer-top textarea::placeholder { color: #a1aaa5; }
.social-composer-meta { display: flex; justify-content: space-between; gap: 12px; color: #929b97; font-size: 0.68rem; }

.social-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--social-line);
}

.social-composer-tools { display: flex; align-items: center; gap: 12px; min-width: 0; }

.social-attach-button,
.social-category-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #56615d;
  font-size: 0.75rem;
  font-weight: 720;
  background: #f6f8f5;
  border: 1px solid #e3e8e3;
  border-radius: 11px;
}

.social-attach-button { padding: 0 12px; cursor: pointer; }
.social-attach-button:hover { color: var(--social-green); background: var(--social-green-soft); border-color: #cfe1d7; }
.social-attach-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.social-category-field { padding-left: 11px; }
.social-category-field > span { color: #8b9490; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.social-category-field select { height: 36px; padding: 0 30px 0 0; color: var(--social-ink); font: inherit; font-weight: 740; background: transparent; border: 0; outline: 0; cursor: pointer; }

.social-publish-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  height: 42px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 790;
  background: var(--social-green);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(61, 79, 179, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.social-publish-button:hover { background: var(--social-green-deep); transform: translateY(-1px); }
.social-publish-button:disabled { opacity: 0.58; cursor: wait; transform: none; }
.social-publish-button span { font-size: 1.08rem; }

.social-media-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0 56px;
}

.social-media-preview[hidden] { display: none; }
.social-preview-item { position: relative; display: grid; overflow: hidden; aspect-ratio: 1; place-items: center; background: #eef1f4; border-radius: 12px; }
.social-preview-item img,
.social-preview-item video { max-width: 100%; max-height: 100%; object-fit: contain; }
.social-preview-item button { position: absolute; top: 6px; right: 6px; display: grid; width: 24px; height: 24px; place-items: center; padding: 0; color: #fff; font: inherit; font-size: 1rem; background: rgba(13, 25, 21, 0.74); border: 0; border-radius: 50%; cursor: pointer; }
.social-preview-item.is-document { padding: 10px; background: #f7f8fc; border: 1px solid #dde2ee; }

.social-pdf-preview { display: grid; min-width: 0; place-items: center; gap: 6px; color: #53605a; text-align: center; }
.social-pdf-preview strong { display: grid; width: 50px; height: 58px; place-items: center; color: #fff; font-size: .75rem; letter-spacing: .08em; background: #c64747; border-radius: 6px 6px 12px 6px; box-shadow: 0 8px 18px rgba(141, 47, 47, .18); }
.social-pdf-preview span { display: block; max-width: 100%; overflow: hidden; color: var(--social-ink); font-size: .72rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.social-pdf-preview small { color: var(--social-muted); font-size: .63rem; }

.social-form-status { margin: 12px 0 0 56px; padding: 9px 12px; color: #7d3938; font-size: 0.75rem; background: #f9eaea; border-radius: 9px; }
.social-form-status[data-tone="success"] { color: var(--social-green-deep); background: var(--social-green-soft); }

.social-feed-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 30px 2px 14px; }
.social-feed-toolbar h2 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.social-feed-toolbar button { display: grid; width: 34px; height: 34px; place-items: center; color: #6e7974; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--social-line); border-radius: 10px; cursor: pointer; }
.social-feed-toolbar button:hover { color: var(--social-green); border-color: #c6d8cf; }
.social-feed-toolbar svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-feed-toolbar button.is-loading svg { animation: social-spin 700ms linear infinite; }

.social-feed-status { margin: 0; padding: 24px; color: var(--social-muted); font-size: 0.82rem; text-align: center; background: rgba(255, 255, 255, 0.6); border: 1px dashed #d6ddd7; border-radius: 16px; }
.social-feed-status[data-tone="error"] { color: #923e3c; background: #fff6f5; border-color: #eccac8; }
.social-feed-list { display: grid; gap: 18px; }

.social-post { overflow: visible; padding: 20px 20px 0; }
.social-post-header { display: flex; align-items: center; gap: 11px; }
.social-post-header-copy { min-width: 0; flex: 1; text-align: left; }
.social-post-header-copy strong { display: block; overflow: hidden; font-size: 0.86rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.social-post-header-copy span { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: #89928e; font-size: 0.68rem; }
.social-post-header-copy span i { width: 3px; height: 3px; background: #acb3af; border-radius: 50%; }

.social-category-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; color: #53605a; font-size: 0.62rem; font-style: normal; font-weight: 820; text-transform: uppercase; letter-spacing: 0.07em; background: #edf0ed; border-radius: 999px; }
.social-category-badge[data-category="actualite"] { color: #285e83; background: #e6f0f7; }
.social-category-badge[data-category="succes"] { color: #0d694e; background: #e2f2e9; }
.social-category-badge[data-category="alerte"] { color: #993f3c; background: #f8e8e7; }
.social-category-badge[data-category="evenement"] { color: #8b5b13; background: #fbf0dd; }

.social-post-menu { position: relative; }
.social-post-menu > summary { display: grid; width: 32px; height: 32px; place-items: center; color: #88918d; list-style: none; border-radius: 9px; cursor: pointer; }
.social-post-menu > summary::-webkit-details-marker { display: none; }
.social-post-menu > summary:hover { background: #f2f4f2; }
.social-post-menu > div { position: absolute; z-index: 5; top: 36px; right: 0; min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--social-line); border-radius: 12px; box-shadow: 0 16px 35px rgba(23, 32, 29, 0.15); }
.social-post-menu button { width: 100%; padding: 9px 10px; color: #a5403d; font: inherit; font-size: 0.75rem; font-weight: 700; text-align: left; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.social-post-menu button:hover { background: #fff0ef; }

.social-post-body { margin: 17px 2px; color: #2d3733; font-size: 0.91rem; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }

.social-post-media { display: grid; gap: 3px; overflow: hidden; margin: 0 -20px; background: #e8ece8; }
.social-post-media[data-count="1"] { grid-template-columns: 1fr; }
.social-post-media[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.social-post-media[data-count="3"],
.social-post-media[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.social-post-media[data-count="3"] .social-media-item:first-child { grid-row: span 2; }
.social-media-item { position: relative; display: grid; min-height: 210px; padding: 0; overflow: hidden; place-items: center; background: #eef1f4; border: 0; cursor: zoom-in; }
.social-post-media[data-count="1"] .social-media-item { max-height: 520px; }
.social-media-item img,
.social-media-item video { display: block; width: auto; height: auto; max-width: 100%; max-height: 520px; object-fit: contain; }
.social-media-item::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.06)); pointer-events: none; }
.social-video-badge { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 5px 8px; color: #fff; font-size: 0.62rem; font-weight: 800; background: rgba(13, 24, 20, 0.75); border-radius: 7px; }
.social-media-item.is-document { min-height: 230px; padding: 24px 18px; cursor: pointer; }
.social-media-item.is-document .social-pdf-preview strong { width: 64px; height: 74px; font-size: .86rem; }
.social-media-item.is-document .social-pdf-preview span { max-width: min(260px, 100%); font-size: .8rem; }
.social-document-open { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 5px 8px; color: var(--social-green-deep); font-size: .61rem; font-weight: 850; background: #fff; border: 1px solid #d9def3; border-radius: 7px; }

.social-post-summary { display: flex; justify-content: space-between; min-height: 36px; padding: 12px 2px 8px; color: #828c87; font-size: 0.7rem; }
.social-post-summary button { padding: 0; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
.social-post-summary button:hover { color: var(--social-green); text-decoration: underline; }
.social-post-summary button:disabled { cursor: default; text-decoration: none; }

.social-post-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px 0; border-top: 1px solid var(--social-line); }
.social-post-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; color: #68736e; font: inherit; font-size: 0.75rem; font-weight: 740; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.social-post-actions button:hover { color: var(--social-green); background: #f1f6f3; }
.social-post-actions button.is-active { color: var(--social-green); background: var(--social-green-soft); }
.social-post-actions svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-post-actions button.is-active .social-like-icon { fill: currentColor; }

.social-comments { margin: 0 -20px; padding: 14px 20px 18px; background: #f8f9f7; border-radius: 0 0 var(--social-radius) var(--social-radius); border-top: 1px solid #edf0ed; }
.social-comment-list { display: grid; gap: 10px; }
.social-comment { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.social-comment .social-avatar { width: 30px; height: 30px; font-size: 0.6rem; }
.social-comment-bubble { padding: 9px 11px; color: #3d4743; font-size: 0.76rem; line-height: 1.45; background: #fff; border: 1px solid #e5e9e5; border-radius: 5px 13px 13px; }
.social-comment-bubble header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.social-comment-bubble strong { color: var(--social-ink); font-size: 0.71rem; }
.social-comment-bubble time { flex: 0 0 auto; color: #99a19d; font-size: 0.6rem; }
.social-comment-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-delete-comment { margin-top: 5px; padding: 2px 5px; color: #9aa29e; font: inherit; font-size: 0.7rem; background: transparent; border: 0; cursor: pointer; }
.social-delete-comment:hover { color: var(--social-red); }

.social-comment-form { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.social-comment-form .social-avatar { width: 30px; height: 30px; font-size: 0.6rem; }
.social-comment-form input { width: 100%; height: 34px; padding: 0 12px; color: var(--social-ink); font: inherit; font-size: 0.73rem; background: #fff; border: 1px solid #dce2dd; border-radius: 999px; outline: none; }
.social-comment-form input:focus { border-color: #9ca8e2; box-shadow: 0 0 0 3px rgba(61, 79, 179, 0.08); }
.social-comment-form button { width: 34px; height: 34px; padding: 0; color: #fff; font: inherit; background: var(--social-green); border: 0; border-radius: 50%; cursor: pointer; }
.social-comment-form button:disabled { opacity: 0.5; }

.social-load-more { display: block; width: 100%; min-height: 46px; margin-top: 18px; color: var(--social-green); font: inherit; font-size: 0.78rem; font-weight: 760; background: #fff; border: 1px solid #d8e1db; border-radius: 14px; cursor: pointer; }
.social-load-more:hover { background: var(--social-green-soft); }

.social-tools-card,
.social-team-card { padding: 20px; }
.social-tools-card > header { display: flex; align-items: flex-start; justify-content: space-between; }
.social-tools-card h2,
.social-team-card h2 { margin: 6px 0 0; font-size: 1.05rem; }
.social-tools-card > header > span { display: grid; width: 29px; height: 29px; place-items: center; color: var(--social-green); background: var(--social-green-soft); border-radius: 9px; }
.social-tool-list { display: grid; gap: 5px; margin-top: 16px; }

.social-tool-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 7px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  transition: background 150ms ease, transform 150ms ease;
}

.social-tool-list a:hover { background: #f5f7f4; transform: translateX(2px); }
.social-tool-list a[hidden] { display: none; }
.social-tool-list i { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; font-size: 0.65rem; font-style: normal; font-weight: 850; background: var(--social-green); border-radius: 11px; }
.social-tool-list .tool-icon-sales { background: #577b94; }
.social-tool-list .tool-icon-logistics { background: #b87836; }
.social-tool-list .tool-icon-pac { background: #7b63a6; }
.social-tool-list .tool-icon-service { background: #4d819a; }
.social-tool-list .tool-icon-control { background: #354c66; }
.social-tool-list .tool-icon-forecast { background: #708b45; }
.social-tool-list .tool-icon-admin { background: #6a526d; }
.social-tool-list strong { display: block; overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.social-tool-list small { display: block; margin-top: 2px; color: #8a938f; font-size: 0.64rem; }
.social-tool-list b { color: #96a09b; font-size: 0.8rem; }
.social-tools-hint { margin: 14px 0 0; padding-top: 12px; color: #939b97; font-size: 0.64rem; line-height: 1.5; border-top: 1px solid var(--social-line); }

.social-team-card { background: linear-gradient(145deg, #263881, #4458be 58%, #6477db); border-color: transparent; color: #fff; }
.social-team-card .social-kicker { color: rgba(255, 255, 255, 0.62); }
.social-team-card h2 { color: #fff; }
.social-team-stats { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; margin: 18px 0; }
.social-team-stats div { padding: 12px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; }
.social-team-stats strong { display: block; font-size: 1.15rem; }
.social-team-stats span { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.66); font-size: 0.58rem; line-height: 1.35; }
.social-team-avatars { display: flex; min-height: 32px; padding-left: 3px; }
.social-team-avatars .social-avatar { width: 32px; height: 32px; margin-left: -6px; font-size: 0.55rem; border: 2px solid #3448a2; }
.social-team-card > p:last-child { margin: 10px 0 0; color: rgba(255, 255, 255, 0.67); font-size: 0.67rem; }

.social-rail-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 6px; color: #9aa39f; font-size: 0.63rem; }
.social-rail-footer a,
.social-rail-footer button { padding: 0; color: inherit; font: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; }
.social-rail-footer a:hover,
.social-rail-footer button:hover { color: var(--social-green); }

.social-empty-state { padding: 42px 25px; text-align: center; background: #fff; border: 1px dashed #d6ddd7; border-radius: var(--social-radius); }
.social-empty-state span { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; color: var(--social-green); font-size: 1.35rem; background: var(--social-green-soft); border-radius: 17px; }
.social-empty-state h3 { margin: 0; font-size: 1rem; }
.social-empty-state p { max-width: 360px; margin: 8px auto 0; color: var(--social-muted); font-size: 0.77rem; line-height: 1.5; }

.social-lightbox { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; background: #0c110f; border: 0; border-radius: 18px; box-shadow: 0 32px 100px rgba(0, 0, 0, 0.44); }
.social-lightbox::backdrop { background: rgba(10, 16, 14, 0.82); backdrop-filter: blur(7px); }
.social-lightbox > header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px 0 18px; color: #fff; background: #131a17; }
.social-lightbox h2 { margin: 0; font-size: 0.75rem; }
.social-lightbox header button { width: 34px; height: 34px; padding: 0; color: #fff; font: inherit; font-size: 1.4rem; background: transparent; border: 0; cursor: pointer; }
.social-lightbox #lightboxContent { display: grid; min-height: 240px; max-height: calc(100vh - 80px); place-items: center; }
.social-lightbox img,
.social-lightbox video { display: block; max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
.social-lightbox iframe { width: min(1000px, calc(100vw - 32px)); height: calc(100vh - 112px); background: #fff; border: 0; }
.social-pdf-open-link { position: absolute; z-index: 2; top: 8px; right: 58px; padding: 8px 11px; color: #fff; font-size: .68rem; font-weight: 760; text-decoration: none; background: #2c3934; border-radius: 8px; }

.social-likes-dialog { width: min(430px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; overflow: hidden; color: var(--social-ink); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(15, 23, 42, .3); }
.social-likes-dialog::backdrop { background: rgba(15, 23, 42, .68); backdrop-filter: blur(5px); }
.social-likes-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--social-line); }
.social-likes-dialog h2 { margin: 5px 0 0; font-size: 1rem; }
.social-likes-dialog header button { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; padding: 0; color: var(--social-muted); font: inherit; font-size: 1.35rem; background: #f5f7f9; border: 0; border-radius: 10px; cursor: pointer; }
.social-likes-list { display: grid; gap: 4px; max-height: min(560px, calc(100vh - 130px)); padding: 12px; overflow-y: auto; }
.social-like-person { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 12px; }
.social-like-person:hover { background: #f6f7fb; }
.social-like-person .social-avatar { width: 40px; height: 40px; }
.social-like-person div { min-width: 0; }
.social-like-person strong, .social-like-person span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-like-person strong { font-size: .82rem; }
.social-like-person span { margin-top: 3px; color: var(--social-muted); font-size: .68rem; }
.social-likes-empty { margin: 0; padding: 28px 12px; color: var(--social-muted); font-size: .78rem; text-align: center; }

.social-toast { position: fixed; z-index: 130; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 13px 16px; color: #fff; font-size: 0.76rem; font-weight: 680; background: #17231f; border-radius: 12px; box-shadow: 0 15px 44px rgba(13, 31, 24, 0.25); }
.social-toast[data-tone="error"] { background: #8b3735; }

.home-social-section {
  width: min(calc(100% - 36px), 1500px);
  margin: 22px auto 0;
  padding-top: 42px;
  border-top: 1px solid var(--home-line, var(--social-line));
}

.home-social-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-social-section-heading h2 {
  margin: 7px 0 0;
  color: var(--home-ink, var(--social-ink));
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-social-section-heading > div > p:last-child {
  margin: 11px 0 0;
  color: var(--home-muted, var(--social-muted));
  font-size: .92rem;
}

.home-social-section > .social-shell {
  margin-inline: auto;
}

@keyframes social-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .social-shell { grid-template-columns: minmax(190px, 225px) minmax(0, 1fr); width: min(960px, calc(100% - 40px)); }
  .social-right-rail { position: static; grid-column: 1 / -1; grid-template-columns: 1.15fr 0.85fr; }
  .social-rail-footer { display: none; }
}

@media (max-width: 820px) {
  .home-social-section { width: min(calc(100% - 22px), 1500px); padding-top: 30px; }
  .social-shell { display: block; width: min(700px, calc(100% - 28px)); padding-top: 26px; }
  .social-left-rail { position: static; display: block; }
  .social-profile-card { display: none; }
  .social-filter-card { display: flex; gap: 6px; margin-bottom: 22px; padding: 7px; overflow-x: auto; border-radius: 15px; }
  .social-filter-card > .social-kicker { display: none; }
  .social-filter { flex: 0 0 auto; width: auto; padding: 9px 11px; white-space: nowrap; }
  .social-filter:hover { transform: none; }
  .social-feed-heading { margin-top: 0; }
  .social-right-rail { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
  .social-tools-card { order: 1; }
  .social-team-card { order: 2; }
}

@media (max-width: 560px) {
  .home-social-section-heading { align-items: flex-start; }
  .home-social-section-heading h2 { font-size: 2rem; }
  .home-social-section-heading > div > p:last-child { font-size: .8rem; }
  .social-shell { width: 100%; padding: 20px 0 60px; }
  .social-feed-heading { align-items: flex-start; margin-inline: 4px; }
  .social-feed-heading h2 { font-size: 1.72rem; }
  .social-feed-heading > div > p:last-child { font-size: 0.78rem; }
  .social-live-indicator { margin-top: 3px; font-size: 0; }
  .social-live-indicator i { margin: 0; }
  .social-composer { padding: 17px; border-radius: 17px; }
  .social-composer-top { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .social-composer-top > .social-avatar { width: 34px; height: 34px; font-size: 0.62rem; }
  .social-composer-top textarea { min-height: 78px; font-size: 0.88rem; }
  .social-composer-meta span:first-child { display: none; }
  .social-composer-meta { justify-content: flex-end; }
  .social-composer-actions { align-items: stretch; flex-direction: column; }
  .social-composer-tools { justify-content: space-between; }
  .social-category-field > span { display: none; }
  .social-category-field { padding-left: 10px; }
  .social-publish-button { width: 100%; }
  .social-media-preview { grid-template-columns: repeat(2, 1fr); margin-left: 44px; }
  .social-form-status { margin-left: 44px; }
  .social-post { padding: 17px 15px 0; border-radius: 17px; }
  .social-category-badge { display: none; }
  .social-post-body { margin-block: 15px; font-size: 0.85rem; }
  .social-post-media { margin-inline: -15px; }
  .social-media-item { min-height: 155px; }
  .social-media-item.is-document { min-height: 190px; }
  .social-pdf-open-link { position: static; margin: 8px; }
  .social-comments { margin-inline: -15px; padding-inline: 15px; border-radius: 0 0 17px 17px; }
  .social-comment { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .social-comment .social-avatar,
  .social-comment-form .social-avatar { width: 26px; height: 26px; }
  .social-comment-form { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .social-tools-card,
  .social-team-card { border-radius: 17px; }
  .social-toast { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
}

@media (max-width: 420px) {
  body.nv-app .social-composer-tools { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 8px; }
  body.nv-app .social-composer-tools .social-attach-button,
  body.nv-app .social-composer-tools .social-category-field { width: 100%; min-width: 0 !important; justify-content: center; }
  body.nv-app .social-composer-tools .social-category-field select { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Composition éditoriale : fil central et kanbans métier dans la colonne latérale. */
.home-side-tools {
  display: grid;
  max-height: min(62vh, 570px);
  gap: 10px;
  padding-right: 4px;
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-color: #c8cde0 transparent;
  scrollbar-width: thin;
}

.home-side-tools .home-workspaces-heading {
  position: sticky;
  z-index: 12;
  top: 0;
  margin: 0 !important;
  padding: 2px 0 9px !important;
  background: var(--social-canvas);
}

.home-side-tools .home-workspaces-heading span {
  font-size: 8px !important;
}

.home-side-tools .home-workspaces-heading h1 {
  font-size: 21px !important;
}

body.nv-app[data-nv-space="home"] .home-side-tools .home-workspaces {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}

body.nv-app[data-nv-space="home"] .home-side-tools .home-space.tool {
  min-height: 92px !important;
  padding: 10px 11px !important;
}

body.nv-app[data-nv-space="home"] .home-side-tools .home-space-copy h2 {
  font-size: 16px !important;
}

@media (min-width: 981px) and (max-width: 1180px) {
  .social-shell {
    grid-template-columns: minmax(178px, 205px) minmax(0, 1fr) minmax(245px, 270px);
    gap: 18px;
    width: 100%;
  }
  .social-right-rail {
    position: sticky;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .home-side-tools {
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }
  .home-side-tools .home-workspaces-heading {
    position: static;
  }
  body.nv-app[data-nv-space="home"] .home-side-tools .home-workspaces {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.nv-app[data-nv-space="home"] .home-side-tools .home-space-copy h2 {
    font-size: 14px !important;
  }
}
