/* Elyra — feuille de style unique.
 * Direction : nuit crépusculaire, verre fumé, accent chaud en dégradé.
 * Polices embarquées (Sora titres, Nunito texte) : aucun appel à un CDN. */

@font-face {
  font-family: Sora;
  src: url("../fonts/sora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("../fonts/sora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Sora;
  src: url("../fonts/sora-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #0a0d1c;
  --bg-2: #0f1328;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --muted: #9aa3c8;
  --faint: #6c74a0;
  --warm: linear-gradient(120deg, #ffb057 0%, #ff6a7a 48%, #b36bff 100%);
  --warm-solid: #ff7a6b;
  --accent: #ff8a5b;
  --rose: #ff5e86;
  --sky: #5ab8ff;
  --mint: #3fd8b0;
  --gold: #ffcf5a;
  --verified: #4fb3ff;
  --danger: #ff5a6a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: sora, nunito, system-ui, sans-serif;
  --center: 620px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(
      900px 600px at 8% -10%,
      rgba(179, 107, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 100% 0%,
      rgba(255, 138, 91, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 50% 120%,
      rgba(90, 184, 255, 0.1),
      transparent 60%
    ),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.01em;
  margin: 0;
}
p {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
.pad {
  padding: 14px 18px;
}
.spacer {
  flex: 1;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row.end {
  justify-content: flex-end;
  margin-top: 14px;
}
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ic {
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  background: var(--surface-3);
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn.primary {
  background: var(--warm);
  border-color: transparent;
  color: #1a0d17;
  box-shadow: 0 8px 24px rgba(255, 106, 122, 0.25);
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  background: rgba(255, 90, 106, 0.15);
  border-color: rgba(255, 90, 106, 0.5);
  color: #ffb3bb;
}
.btn.small {
  padding: 6px 14px;
  font-size: 13.5px;
}
.btn.big {
  padding: 14px 26px;
  font-size: 16.5px;
}
.btn.block {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-btn:hover,
.icon-btn.on {
  background: var(--surface-2);
  color: var(--text);
}
.icon-btn.round {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.link-btn {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.link {
  color: var(--sky);
}
.link:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------- champs */
.input,
.compose-text {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}
.input:focus,
.compose-text:focus {
  outline: none;
  border-color: var(--accent);
}
select.input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  margin: 14px 0 6px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 14px;
}
.check input {
  margin-top: 4px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.check a {
  color: var(--accent);
}
.input-prefix {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding-left: 13px;
}
.input-prefix span {
  color: var(--muted);
  font-weight: 700;
}
.input-prefix .input {
  border: 0;
  background: transparent;
  padding-left: 4px;
}
.form-error {
  color: #ffb3bb;
  min-height: 20px;
  margin: 6px 0;
  font-weight: 600;
}

/* ------------------------------------------------------------- logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px 10px 10px 3px;
  background: var(--warm);
  box-shadow: 0 6px 20px rgba(255, 106, 122, 0.35);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px 8px 9px;
  border-radius: 50%;
  background: #0a0d1c;
  box-shadow: 4px -3px 0 -1px var(--gold);
}
.logo.big {
  font-size: 34px;
  margin-bottom: 22px;
}
.logo.big .logo-mark {
  width: 40px;
  height: 40px;
}

/* ------------------------------------------------------------ coquille */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, var(--center)) 330px;
  justify-content: center;
  gap: 0 26px;
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 8px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side .logo {
  padding: 6px 14px 18px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}
.nav-link.on {
  color: var(--text);
  background: var(--surface-2);
}
.nav-link.on .ic {
  color: var(--accent);
}
.pill {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  margin-left: auto;
}
.publish {
  margin: 14px 6px 0;
  padding: 14px;
  font-size: 16.5px;
}
.me-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.me-card:hover {
  background: var(--surface);
}
.me-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.me-names b,
.me-names .handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.center-col {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
  background: rgba(10, 13, 28, 0.55);
  backdrop-filter: blur(6px);
}
#main {
  padding-bottom: 80px;
  outline: none;
}
.right {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 14px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: none;
}
.topbar,
.bottom,
.fab {
  display: none;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: 21px;
  font-weight: 800;
}
.page-head.sticky,
.tabs.sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 13, 28, 0.82);
  backdrop-filter: blur(16px);
}
.section-title {
  font-size: 16px;
  padding: 18px 18px 8px;
  color: var(--muted);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.page-head .tabs {
  border: 0;
  flex: 1;
  margin: -16px -18px -12px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 15px 10px 13px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
}
.tab:hover {
  background: var(--surface);
  color: var(--text);
}
.tab.on {
  color: var(--text);
}
.tab.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--warm);
}
.tabs .why {
  align-self: center;
  margin: 0 10px;
}

/* ------------------------------------------------------------- panneaux */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.panel.inline {
  margin: 14px 16px;
}
.panel-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.trend {
  display: flex;
  flex-direction: column;
  padding: 9px 4px;
  border-radius: 10px;
}
.trend:hover {
  background: var(--surface);
}
.trend b {
  font-size: 15.5px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.search-box:focus-within {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
}
.search-box input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  padding: 12px 0;
  outline: none;
}
.side-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--faint);
  padding: 0 6px;
}
.side-foot a:hover {
  color: var(--text);
  text-decoration: underline;
}
.join p {
  margin-bottom: 12px;
}

/* --------------------------------------------------- personnes, noms */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.name-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: wrap;
}
.name {
  font-weight: 800;
}
.name:hover {
  text-decoration: underline;
}
.handle {
  color: var(--muted);
  font-size: 14.5px;
}
.verified {
  color: var(--verified);
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 0 6px rgba(79, 179, 255, 0.35));
}
.pro-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 207, 90, 0.4);
  border-radius: 6px;
  padding: 0 5px;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
}
.person-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.people-list {
  display: flex;
  flex-direction: column;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.chip.tiny {
  padding: 1px 8px;
  font-size: 11.5px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.chips .chip {
  cursor: pointer;
}
.chips .chip.on {
  background: rgba(255, 138, 91, 0.18);
  border-color: var(--accent);
  color: var(--text);
}

/* ------------------------------------------------------------ stories */
.stories {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.stories-hint {
  font-size: 13px;
  align-self: center;
}
.story-bubble {
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  flex: none;
}
.ring {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: var(--line-2);
}
.ring.unseen {
  background: var(--warm);
}
.ring.mine {
  background: linear-gradient(120deg, var(--sky), var(--mint));
}
.ring.none {
  background: transparent;
  border: 2px dashed var(--line-2);
  padding: 1px;
}
.ring .avatar {
  border: 3px solid var(--bg);
}
.ring .plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a0d17;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.story-name {
  font-size: 12px;
  color: var(--muted);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-viewer {
  position: relative;
  width: min(420px, 100vw);
  height: min(760px, 100vh);
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sv-bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 3;
}
.sv-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.sv-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.sv-head {
  position: absolute;
  top: 20px;
  left: 10px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.sv-head .icon-btn {
  color: #fff;
}
.sv-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-meta {
  font-size: 13px;
  opacity: 0.85;
}
.sv-stage {
  flex: 1;
  display: grid;
  place-items: center;
}
.sv-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-tap {
  position: absolute;
  top: 70px;
  bottom: 90px;
  width: 35%;
  background: none;
  border: 0;
  z-index: 2;
  cursor: pointer;
}
.sv-tap.left {
  left: 0;
}
.sv-tap.right {
  right: 0;
}
.sv-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 64px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}
.sv-foot {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 13.5px;
}
.sv-views {
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  color: #fff;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.sv-pending {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: rgba(255, 207, 90, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
}
.story-create {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-preview {
  aspect-ratio: 9 / 14;
  max-height: 46vh;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-2);
  padding: 12px;
  text-align: center;
}
.story-preview img,
.story-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------ rédaction */
.composer {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.composer.drag {
  background: rgba(255, 138, 91, 0.08);
}
.modal .composer {
  border: 0;
  padding: 4px 0 0;
}
.compose-grid {
  display: flex;
  gap: 12px;
}
.compose-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compose-text {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 18px;
  resize: none;
  min-height: 44px;
}
.compose-text:focus {
  border: 0;
}
.title-input {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.compose-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.compose-tools .icon-btn {
  color: var(--accent);
}
.compose-tools .icon-btn.on {
  background: rgba(255, 138, 91, 0.18);
}
.char-count {
  color: var(--muted);
  font-size: 13px;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.char-count.over {
  color: var(--danger);
  font-weight: 800;
}
.compose-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.compose-media:empty {
  display: none;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb.loading {
  animation: pulse 1.2s ease-in-out infinite;
}
.thumb-label {
  font-size: 11.5px;
  color: var(--muted);
  padding: 6px;
  text-align: center;
}
.thumb-x {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.compose-context {
  font-size: 14px;
}
.quoted.in-composer {
  pointer-events: none;
}

/* ----------------------------------------------------------- publication */
.post {
  padding: 14px 18px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}
.post:hover {
  background: rgba(255, 255, 255, 0.022);
}
.post.focus {
  cursor: default;
  background: transparent;
}
.post.ancestor {
  border-bottom: 0;
  position: relative;
}
.post.ancestor .post-avatar::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 52px;
  bottom: -14px;
  width: 2px;
  background: var(--line-2);
}
.post.unavailable {
  cursor: default;
  padding: 16px 18px;
}
.context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 6px 30px;
}
.context a:hover {
  text-decoration: underline;
}
.context.featured {
  color: var(--gold);
}
.post-grid {
  display: flex;
  gap: 12px;
}
.post-avatar {
  position: relative;
  flex: none;
  align-self: flex-start;
}
.post-main {
  flex: 1;
  min-width: 0;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}
.post-head .name-line {
  flex-wrap: nowrap;
  overflow: hidden;
}
.post-head .handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-head .time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.post-head .time::before {
  content: "· ";
}
.post-head .time:hover {
  text-decoration: underline;
}
.post-head .more {
  margin-left: auto;
  width: 32px;
  height: 32px;
  margin-top: -6px;
  margin-right: -8px;
}
.reply-to {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}
.reply-to:hover {
  color: var(--accent);
}
.post-body {
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 15.5px;
}
.post-body.big {
  font-size: 19px;
  line-height: 1.45;
  margin-top: 10px;
}
.post-body .mention,
.post-body .tag,
.bio .mention,
.bio .tag,
.reel-body .tag,
.bubble .mention {
  color: var(--accent);
  font-weight: 700;
}
.post-body .mention:hover,
.post-body .tag:hover {
  text-decoration: underline;
}
.report-kicker {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--warm);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-title {
  font-size: 21px;
  line-height: 1.25;
  margin: 4px 0 6px;
  font-weight: 800;
}
.post.report .post-body {
  color: #d8dcf3;
}
.post-meta {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 0 4px 58px;
}
.status {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.status.pending {
  background: rgba(255, 207, 90, 0.1);
  border: 1px solid rgba(255, 207, 90, 0.3);
  color: #ffe6a6;
}
.status.moderated {
  background: rgba(255, 90, 106, 0.1);
  border: 1px solid rgba(255, 90, 106, 0.35);
  color: #ffc2c8;
}
.status .note {
  flex-basis: 100%;
  color: var(--muted);
  font-weight: 400;
}

.actions {
  display: flex;
  justify-content: space-between;
  max-width: 440px;
  margin: 6px 0 0 -8px;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition:
    color 0.15s,
    background 0.15s;
}
.act .n {
  min-width: 14px;
}
.act.reply:hover {
  color: var(--sky);
  background: rgba(90, 184, 255, 0.12);
}
.act.repost:hover,
.act.repost.on {
  color: var(--mint);
}
.act.repost:hover {
  background: rgba(63, 216, 176, 0.12);
}
.act.like:hover,
.act.like.on {
  color: var(--rose);
}
.act.like:hover {
  background: rgba(255, 94, 134, 0.12);
}
.act.like.on .ic {
  fill: currentcolor;
}
.act.like.pop .ic {
  animation: pop 0.3s ease;
}
.act.save:hover,
.act.save.on {
  color: var(--gold);
}
.act.save.on .ic {
  fill: currentcolor;
}
.act.share:hover {
  color: var(--accent);
  background: rgba(255, 138, 91, 0.12);
}

/* carrousel */
.gallery {
  position: relative;
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070f;
}
.gallery .track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery .track::-webkit-scrollbar {
  display: none;
}
.gallery .slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #05070f;
}
.gallery.single .slide {
  aspect-ratio: auto;
  max-height: 620px;
}
.gallery .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery .dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.gallery .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.2s;
}
.gallery .dots i.on {
  background: #fff;
  width: 16px;
  border-radius: 4px;
}
.gallery .counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.gallery .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery:hover .nav {
  opacity: 1;
}
.gallery .nav.prev {
  left: 10px;
}
.gallery .nav.next {
  right: 10px;
}
.gallery.at-start .nav.prev,
.gallery.at-end .nav.next {
  display: none;
}

/* vidéo */
.video {
  position: relative;
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  max-height: 640px;
}
.video.vertical {
  max-width: 380px;
}
.video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.video .duration,
.video .cc-badge {
  position: absolute;
  top: 10px;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 0.2s;
}
.video .duration {
  left: 10px;
}
.video .cc-badge {
  right: 10px;
  display: grid;
  place-items: center;
  padding: 3px 6px;
}
.video.playing .duration,
.video.playing .cc-badge {
  opacity: 0;
}
video::cue {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
}

/* citation */
.quoted {
  display: block;
  margin-top: 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 10px 12px;
  transition: background 0.15s;
}
.quoted:hover {
  background: var(--surface);
}
.quoted.unavailable {
  color: var(--muted);
  font-size: 14px;
}
.quoted-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.quoted-head .time {
  color: var(--muted);
}
.quoted-title {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
}
.quoted-body {
  font-size: 14.5px;
  margin-top: 2px;
  color: #d8dcf3;
}
.quoted-media {
  position: relative;
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 220px;
}
.quoted-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.play-badge,
.tile-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  color: #fff;
}

/* liste */
.list-end {
  padding: 16px 18px 30px;
}
.caught-up {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 22px 0;
}
.caught-up .ic {
  color: var(--mint);
}
.empty {
  text-align: center;
  padding: 56px 28px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty .ic {
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 6px;
}
.empty h3 {
  color: var(--text);
  font-size: 19px;
}
.empty p {
  max-width: 380px;
}
.spinner {
  width: 28px;
  height: 28px;
  margin: 30px auto;
  border-radius: 50%;
  border: 3px solid var(--line-2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

/* --------------------------------------------------------- explorer */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.tile:hover img {
  transform: scale(1.04);
}
.tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s;
}
.tile-hover span {
  display: inline-grid;
}
.tile:hover .tile-hover {
  opacity: 1;
}
.search-box.wide {
  margin: 0;
}
.search-results .panel.inline {
  margin: 6px 16px 12px;
}

/* ----------------------------------------------------------- vidéos */
.reels {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reel {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.reel-video .video {
  margin: 0;
  max-width: none;
}
.reel-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
.reel-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reel-title {
  font-size: 19px;
  line-height: 1.25;
}
.reel-body {
  color: #d8dcf3;
  font-size: 14.5px;
}
.actions.vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
}
.reel-more {
  padding: 20px;
  text-align: center;
}

/* ------------------------------------------------------------- profil */
.profile-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.banner {
  height: 190px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 18px;
  margin-top: -62px;
}
.profile-avatar .avatar {
  border: 4px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 42px;
}
.profile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
}
.profile-names {
  padding: 10px 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.profile-names h1 {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-basis: 100%;
}
.profile-names h1 .verified svg {
  width: 22px;
  height: 22px;
}
.pro-line {
  margin: 8px 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 700;
}
.profile-head .status {
  margin: 10px 18px 0;
}
.bio {
  padding: 10px 18px 0;
  white-space: pre-wrap;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 18px 0;
  font-size: 14px;
}
.profile-meta .muted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-stats {
  display: flex;
  gap: 18px;
  padding: 10px 18px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.profile-stats b {
  color: var(--text);
}
.profile-stats a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------- notifications */
.notif {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.notif:hover {
  background: var(--surface);
}
.notif.unread {
  background: rgba(255, 138, 91, 0.06);
}
.notif-icon {
  width: 34px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  color: var(--accent);
}
.notif.like .notif-icon {
  color: var(--rose);
}
.notif.repost .notif-icon {
  color: var(--mint);
}
.notif.follow .notif-icon {
  color: var(--sky);
}
.notif.moderation .notif-icon {
  color: var(--gold);
}
.notif-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notif-text {
  font-size: 14px;
}

/* ----------------------------------------------------------- messages */
.messages {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.conv-list {
  border-right: 1px solid var(--line);
}
.conv {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
  transition: background 0.15s;
}
.conv:hover,
.conv.on {
  background: var(--surface);
}
.conv.on {
  box-shadow: inset 3px 0 0 var(--accent);
}
.conv-info {
  flex: 1;
  min-width: 0;
}
.conv-top {
  display: flex;
  align-items: center;
  gap: 4px;
}
.conv-top .muted {
  margin-left: auto;
}
.conv.unread b {
  color: #fff;
}
.conv.unread .clamp {
  color: var(--text);
  font-weight: 700;
}
.conv-pane {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.conv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.conv-with {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bubble {
  max-width: 76%;
  align-self: flex-start;
  background: var(--surface-2);
  padding: 9px 13px;
  border-radius: 18px 18px 18px 6px;
  overflow-wrap: anywhere;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--warm);
  color: #1a0d17;
  border-radius: 18px 18px 6px;
}
.bubble.mine .mention {
  color: #3b0a2a;
}
.bubble-time {
  display: block;
  font-size: 11px;
  opacity: 0.65;
  margin-top: 2px;
  text-align: right;
}
.msg-form {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
}
.msg-input {
  resize: none;
  min-height: 44px;
  border-radius: 22px;
  padding: 11px 16px;
}
.cant-write {
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
}
.only-mobile {
  display: none;
}

/* ------------------------------------------------------------ réglages */
.settings .panel.inline {
  padding: 18px;
}
.setting {
  margin-top: 4px;
}
.avatar-edit .avatar {
  box-shadow: 0 0 0 3px var(--line-2);
}
.danger-zone {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 106, 0.35);
  background: rgba(255, 90, 106, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* ------------------------------------------- première visite / portes */
.bare {
  min-height: 100vh;
}
.onboarding {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 16px;
}
.onboard-card {
  width: min(460px, 100%);
  background: rgba(15, 19, 40, 0.75);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onboard-card h1 {
  font-size: 28px;
  font-weight: 800;
}
.onboard-card .btn.block {
  margin-top: 8px;
}

/* -------------------------------------------------------- accueil public */
.landing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.land-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.land-top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: var(--muted);
}
.land-top nav a:hover {
  color: var(--text);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0 70px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 18px 0;
}
.hero h1 em {
  font-style: normal;
  background: var(--warm);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 19px;
  color: #c7cce6;
  max-width: 520px;
  margin-bottom: 26px;
}
.hero .row {
  margin-bottom: 18px;
}
.showcase {
  position: relative;
  height: 520px;
}
.show-card {
  position: absolute;
  width: 230px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  animation: float 9s ease-in-out infinite;
}
.show-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.show-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.show-card.c0 {
  left: 4%;
  top: 6%;
  transform: rotate(-6deg);
}
.show-card.c1 {
  left: 38%;
  top: 0;
  z-index: 2;
  animation-delay: -3s;
}
.show-card.c2 {
  right: 0;
  top: 18%;
  transform: rotate(5deg);
  animation-delay: -5s;
}
.show-card.c3 {
  left: 18%;
  top: 48%;
  transform: rotate(3deg);
  z-index: 3;
  animation-delay: -2s;
}
.show-card.c4 {
  right: 10%;
  top: 58%;
  transform: rotate(-4deg);
  z-index: 1;
  animation-delay: -7s;
}
.show-card.c5 {
  display: none;
}
.land-block {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.land-block h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.hl {
  background: var(--warm);
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature .ic {
  color: var(--accent);
}
.feature h3 {
  font-size: 17px;
}
.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promises li {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.promises .ic {
  color: var(--mint);
  margin-top: 2px;
}
.land-foot {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.land-foot nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------- règles */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.legal-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.legal-nav a.on {
  color: var(--text);
  border-color: var(--accent);
}
.prose h1 {
  font-size: 32px;
  margin: 20px 0 10px;
}
.prose h2 {
  font-size: 19px;
  margin: 24px 0 6px;
}
.prose h3 {
  font-size: 16px;
  margin: 14px 0 4px;
}
.prose p {
  color: #c7cce6;
  margin-bottom: 8px;
}
.legal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 30px;
  margin-bottom: 20px;
}

/* ------------------------------------------------- fenêtres et menus */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 14, 0.7);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade 0.16s ease;
}
.modal-back.out {
  opacity: 0;
  transition: opacity 0.16s;
}
.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #12172e;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
  animation: rise 0.18s ease;
}
.modal.wide {
  width: min(620px, 100%);
}
.modal.bare {
  width: auto;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.modal-head h2 {
  font-size: 19px;
}
.confirm p {
  margin-bottom: 4px;
}
.lightbox {
  position: relative;
  display: grid;
  place-items: center;
}
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
}
.lb-nav,
.lb-close {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lb-nav:hover,
.lb-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-nav.prev {
  left: 18px;
  top: 50%;
}
.lb-nav.next {
  right: 18px;
  top: 50%;
}
.lb-close {
  right: 18px;
  top: 18px;
}
.lb-count {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
}
.ctx-menu {
  position: fixed;
  z-index: 80;
  min-width: 220px;
  background: #161c38;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  animation: rise 0.12s ease;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}
.ctx-item:hover,
.ctx-item:focus {
  background: var(--surface-2);
  outline: none;
}
.ctx-item .ic {
  color: var(--muted);
}
.ctx-item.danger {
  color: #ff9aa5;
}
.ctx-item.danger .ic {
  color: #ff9aa5;
}
.ctx-sep {
  height: 1px;
  background: var(--line);
  margin: 5px 4px;
}
#toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #f3f4ff;
  color: #12162b;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  animation: rise 0.2s ease;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.toast.error {
  background: #ff6a7a;
  color: #fff;
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
}

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

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

@keyframes pop {
  50% {
    transform: scale(1.3);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

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

/* ------------------------------------------------------- tablettes */
@media (max-width: 1260px) {
  .layout {
    grid-template-columns: 88px minmax(0, var(--center)) 300px;
    gap: 0 18px;
  }
  .nav-label,
  .me-names,
  .me-card > span:last-child,
  .logo-word {
    display: none;
  }
  .side {
    align-items: center;
    padding-right: 0;
  }
  .side .logo {
    padding: 6px 0 18px;
  }
  .nav-link {
    padding: 12px;
  }
  .nav-link .pill {
    position: absolute;
    top: 4px;
    right: 2px;
    margin: 0;
  }
  .publish {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    margin: 14px 0 0;
  }
  .publish::before {
    content: none;
  }
}

@media (max-width: 1020px) {
  .layout {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .right {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .showcase {
    height: 440px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .promise {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------- mobiles */
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .layout {
    display: block;
  }
  .side {
    display: none;
  }
  .center-col {
    border: 0;
  }
  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 6;
    background: rgba(10, 13, 28, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .topbar .logo {
    font-size: 21px;
  }
  .topbar .logo-word {
    display: inline;
  }
  .page-head.sticky,
  .tabs.sticky {
    top: 57px;
  }
  .bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(10, 13, 28, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .bottom .nav-link {
    padding: 10px 14px;
  }
  .bottom .nav-link .pill {
    position: absolute;
    top: 2px;
    right: 4px;
  }
  .fab {
    display: grid;
    place-items: center;
    position: fixed;
    right: 18px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: var(--warm);
    color: #1a0d17;
    box-shadow: 0 12px 30px rgba(255, 106, 122, 0.4);
    z-index: 21;
    cursor: pointer;
  }
  #app[data-route="messages"] .fab {
    display: none;
  }
  .post {
    padding: 12px 14px 6px;
  }
  .composer {
    padding: 12px 14px;
  }
  .actions {
    max-width: none;
  }
  .banner {
    height: 130px;
  }
  .profile-row {
    margin-top: -46px;
    padding: 0 14px;
  }
  .profile-avatar .avatar {
    width: 92px !important;
    height: 92px !important;
  }
  .reel {
    grid-template-columns: 1fr;
  }
  .messages {
    grid-template-columns: 1fr;
  }
  .messages.has-thread .conv-list {
    display: none;
  }
  .messages:not(.has-thread) .conv-pane {
    display: none;
  }
  .conv-pane {
    height: calc(100vh - 57px - 64px);
    top: 57px;
  }
  .only-mobile {
    display: inline-grid;
  }
  .land-top nav a {
    display: none;
  }
  .hero {
    padding: 20px 0 40px;
  }
  .showcase {
    height: 360px;
  }
  .show-card {
    width: 160px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .modal-back {
    place-items: end center;
    padding: 0;
  }
  .modal {
    width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
  }
  .modal.bare {
    border-radius: 0;
  }
  .story-viewer {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
  }
  #toasts {
    bottom: 90px;
  }
  .gallery .nav {
    display: none;
  }
}
