/* ============================================================ Spotigo v2
   DA « Nuit de ligne » + fond « Halo » (choisie sur prototype), cartes,
   et styles des fonctions : notifications, temps réel, lignes, n° de parc,
   bannière, modification des publications. Chargé après styles.css. */

/* --- Logo teinté bleu nuit */
.brand img, .auth-logo, .boot img { filter: var(--logo-filter); }
@media (min-width: 960px) { .tabbar::before { filter: var(--logo-filter); } }

/* --- Fond « Halo animé » : deux lueurs bleu acier qui dérivent très lentement */
:root { --halo-a: rgba(47, 102, 201, .13); --halo-b: rgba(47, 102, 201, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --halo-a: rgba(79, 139, 232, .30); --halo-b: rgba(59, 116, 214, .20); } }
:root[data-theme="dark"] { --halo-a: rgba(79, 139, 232, .30); --halo-b: rgba(59, 116, 214, .20); }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
body::before { width: 70vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, var(--halo-a), transparent 68%); animation: halo-a 28s ease-in-out infinite alternate; }
body::after { width: 64vmax; height: 56vmax; right: -20vmax; bottom: -24vmax; background: radial-gradient(circle, var(--halo-b), transparent 68%); animation: halo-b 34s ease-in-out infinite alternate; }
@keyframes halo-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12vmax, 8vmax) scale(1.12); } 100% { transform: translate(4vmax, 18vmax) scale(.95); } }
@keyframes halo-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-10vmax, -8vmax) scale(1.1); } 100% { transform: translate(-3vmax, -18vmax) scale(1); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }


/* --- Cartes : le contenu flotte sur le fond */
.post, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 12px 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px -16px rgba(0, 0, 0, .25);
}
.post { padding-bottom: 12px; }
.stories-bar { border-bottom: 0; padding-bottom: 4px; }
.grid { margin: 0 10px 12px; border-radius: 16px; overflow: hidden; }
.composer { background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin: 12px 10px; padding: 16px; }
.composer .dropzone { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.settings.card { padding: 18px 16px; }
.searchbar, .filter-chips { background: transparent; }
.searchbar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.suggest-card { background: var(--card); }
.sheet { background: var(--card); }
.post-detail .comments-inline { background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin: 0 10px 12px; overflow: hidden; }
.list-card { padding: 6px 0; }
.section-title { padding-left: 16px; padding-right: 16px; }
.auth-card {
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); border-radius: 24px;
  padding: 26px 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
}

/* --- Profil : bannière */
.profile-head.card { padding: 0 0 14px; }
.ph-banner { position: relative; height: 140px; background: var(--brand-grad); background-size: cover; background-position: center; }
.ph-banner.has-img { background-color: var(--surface-2); }
.ph-banner-edit {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
}
.ph-banner-edit .ic { width: 18px; height: 18px; }
.profile-head .ph-top { padding: 0 16px; margin-top: -44px; align-items: flex-end; position: relative; }
.profile-head .ph-top .nr > .avatar { box-shadow: 0 0 0 4px var(--card); }
.profile-head .ph-top .ring > .avatar { box-shadow: 0 0 0 3px var(--card); }
.profile-head .ph-top .ring { box-shadow: 0 0 0 3px var(--card); }
.profile-head .stats { padding-bottom: 4px; }
.profile-head .ph-name, .profile-head .ph-bio, .profile-head .ph-actions { padding: 0 16px; }
.profile-head .ph-actions .btn { white-space: nowrap; padding: 0 10px; font-size: 14px; }
.tabs {
  margin: 12px 10px 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabs button { display: flex; gap: 6px; align-items: center; justify-content: center; font-weight: 650; font-size: 13px; height: 44px; border-bottom-width: 3px; }
.tabs button .ic { width: 20px; height: 20px; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.banner-edit.ph-banner { height: 120px; border-radius: 14px; display: flex; align-items: flex-end; gap: 8px; padding: 10px; margin-bottom: 6px; overflow: hidden; }
.banner-edit .btn { position: relative; z-index: 1; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.banner-edit .btn .ic { width: 16px; height: 16px; }

/* --- Notifications */
.topbar .icon-btn { position: relative; }
.notif-badge {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--like); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg); line-height: 1;
}
.list-item.notif { border-radius: 14px; margin: 2px 6px; }
.list-item.notif.unread { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.notif-av { position: relative; flex: none; }
.notif-type {
  position: absolute; right: -4px; bottom: -4px; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; border: 2px solid var(--card);
}
.notif-type .ic { width: 11px; height: 11px; }
.t-like { background: var(--like); }
.t-comment { background: #2f80ed; }
.t-follow { background: var(--brand); color: var(--on-brand); }
.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--brand) 28%, transparent); } }

/* --- Pastille « nouvelles publications » */
.new-posts {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top) + 8px); z-index: 6;
  margin: 6px auto 0; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 32px);
  background: var(--brand); color: var(--on-brand); padding: 8px 15px; border-radius: 20px;
  font-weight: 700; font-size: 13px; box-shadow: var(--shadow);
}
.new-posts .ic { width: 16px; height: 16px; }

/* --- Couleurs de lignes et numéro de parc */
.line-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px;
  font-weight: 800; font-size: 13px; letter-spacing: .2px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.chip.fleet { font-variant-numeric: tabular-nums; }
.chip.fleet small { font-weight: 600; opacity: .7; margin-right: 2px; }
.line-input { display: flex; gap: 8px; }
.line-input .input { min-width: 0; }
.line-color {
  position: relative; width: 48px; height: 48px; flex: none; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; overflow: hidden;
}
.line-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.line-color i { width: 26px; height: 26px; border-radius: 7px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.line-color i.none { background: conic-gradient(#e2231a, #ffcd00, #00814f, #5291ce, #cf009e, #e2231a) !important; }
.line-preview { margin: -4px 2px 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spot-info .line-badge { box-shadow: 0 1px 4px rgba(0, 0, 0, .4); text-shadow: none; }
.spot-note {
  margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong);
  font-size: 14px; display: flex; gap: 8px; align-items: center;
}
.spot-note .ic { width: 18px; height: 18px; }

/* --- Modifier une publication */
.edit-form { padding: 14px 16px 18px; }
.edit-media { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface-2); }
.edit-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.edit-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.edit-x .ic { width: 12px; height: 12px; }
.edit-thumb.removed img { opacity: .25; filter: grayscale(1); }
.edit-thumb.removed .edit-x { background: var(--danger); }

/* ============================================================ v3 : messages, carte, engins, modération, push, légal */

/* --- Réglages : liens */
.settings-links { margin: 18px -4px 4px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.settings-links a, .settings-links button { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.settings-links a:last-child { border-bottom: 0; }
.settings-links a span, .settings-links button span { flex: 1; font-weight: 600; }
.settings-links a .ic { width: 20px; height: 20px; color: var(--muted); }
.settings-links a:hover { background: var(--surface); }

/* --- Signalement */
.report-form { padding: 8px 16px 18px; }
.report-intro { margin: 0 4px 10px; line-height: 1.45; }
.report-reasons { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.report-reason { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; }
.report-reason:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.report-reason input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.report-reason span { display: flex; flex-direction: column; }
.report-reason small { color: var(--muted); font-size: 13px; }

/* --- Listes de personnes (partage, recherche) */
.share-target { width: 100%; text-align: left; }
.share-target:hover { background: var(--surface); }
.share-grid { margin: 0; border-radius: 0; }

/* --- Messages : liste */
.dm-tabs, .mod-tabs { display: flex; gap: 8px; padding: 12px 12px 2px; flex-wrap: wrap; }
.pill-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.fchip.on .pill-count { background: var(--bg); color: var(--text); }
.dm-note { margin: 14px 24px 0; text-align: center; line-height: 1.45; }
.thread { color: inherit; }
.thread small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.thread small .ic { width: 15px; height: 15px; }
.thread.unread small { color: var(--text); font-weight: 600; }
.thread-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.thread-meta small { color: var(--muted); font-size: 12px; }
.thread.unread .thread-meta small { color: var(--brand); font-weight: 600; }
.thread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* --- Messages : conversation (plein écran, sans barre du bas) */
@media (max-width: 959.98px) { #app.chat-mode .tabbar { display: none; } }
#app.chat-mode .shell { padding-bottom: 0; }
.chat { height: calc(100dvh - var(--top-h) - env(safe-area-inset-top)); display: flex; flex-direction: column; }
.chat-request { margin: 10px; padding: 12px 14px; }
.chat-request p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.chat-request-actions { display: flex; gap: 8px; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.chat-list > [data-msgs] { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.chat-more { align-self: center; margin-bottom: 10px; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 9px 13px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; border-radius: 18px; }
.msg.them .bubble { background: var(--surface-2); border-bottom-left-radius: 6px; cursor: pointer; }
.msg.me .bubble { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; }
.msg.me .bubble .tag { color: inherit; text-decoration: underline; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.msg-seen { align-self: flex-end; font-size: 11px; color: var(--muted); margin-top: 3px; min-height: 14px; }
.msg-post { width: 236px; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; color: inherit; }
.msg-post img, .msg-post-ph { width: 100%; height: 130px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.msg-post-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.msg-post-info small { color: var(--muted); }
.msg-post-info b { color: var(--text); }
.msg-post .chips { gap: 5px; }
.msg-post .line-badge, .msg-post .chip { height: 22px; font-size: 12px; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-form { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.chat-form .input { height: 44px; border-radius: 22px; }
.chat-attach { flex: none; background: var(--surface); border: 1.5px solid var(--line); }
.chat-send { flex: none; background: var(--brand); color: var(--on-brand); }
.chat-send .ic { width: 20px; height: 20px; }
.chat-blocked { text-align: center; padding: 14px; margin: 0; border-top: 1px solid var(--line); }

/* --- Fiche d'engin */
.engine-hero { padding-bottom: 14px; }
.engine-photo { height: 180px; background: var(--brand-grad) center / cover; position: relative; }
.engine-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--card)); }
.engine-head { display: flex; align-items: flex-end; gap: 10px; padding: 0 16px; margin-top: -30px; position: relative; }
.engine-title { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.engine-series { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.engine-number { font-size: 34px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.engine-op { margin: 6px 16px 0; font-size: 14px; color: var(--muted); }
.engine-actions { display: flex; gap: 8px; padding: 12px 16px 0; }
.engine-follow { flex: 1; height: 44px; }
.engine-follow .ic { width: 18px; height: 18px; }
.engine-hint { margin: 8px 16px 0; font-size: 12.5px; }
.engine-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 10px; }
.engine-stats .card { margin: 0; padding: 10px 0; display: flex; flex-direction: column; align-items: center; }
.engine-stats b { font-size: 19px; }
.engine-stats span { font-size: 12px; color: var(--muted); }

/* --- Carte des spots */
.seg-mini { display: flex; padding: 3px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-right: 4px; }
.seg-mini a { height: 32px; padding: 0 10px; border-radius: 15px; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-mini a .ic { width: 16px; height: 16px; }
.seg-mini a.on { background: var(--brand); color: var(--on-brand); }
#app.map-mode .shell { padding-bottom: 0; }
.map-wrap { position: relative; height: calc(100dvh - var(--top-h) - env(safe-area-inset-top) - 52px - var(--tab-h) - env(safe-area-inset-bottom)); margin: 0 10px 10px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 960px) { .map-wrap { height: calc(100dvh - var(--top-h) - 72px); } }
.map { position: absolute; inset: 0; background: var(--surface); }
.map-tiles-dark { filter: invert(1) hue-rotate(195deg) brightness(.85) contrast(.9) saturate(.6); }
.map-pin-wrap { background: none; border: 0; }
.map-pin { position: relative; display: block; border-radius: 50%; border: 3px solid var(--brand); background: var(--surface-2) center / cover; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 25%, transparent), 0 6px 16px rgba(0, 0, 0, .4); box-sizing: border-box; }
.map-pin b { position: absolute; right: -9px; top: -9px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.map-locate { position: absolute; right: 12px; top: 12px; z-index: 500; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-sheet { position: absolute; left: 10px; right: 10px; bottom: 26px; z-index: 600; padding: 6px 14px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.map-sheet .sheet-grab { margin: 2px auto 0; }
.map-sheet-head { display: flex; align-items: center; gap: 10px; padding-right: 34px; }
.map-sheet-head .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-sheet-head small { color: var(--muted); font-size: 13px; }
.map-sheet-close { position: absolute; top: 6px; right: 6px; }
.map-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.map-thumb { height: 66px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.map-thumb img { width: 100%; height: 100%; object-fit: cover; }
.map-attr { position: absolute; left: 8px; bottom: 4px; z-index: 500; margin: 0; font-size: 10px; color: var(--muted); }
.map-attr a { color: inherit; text-decoration: underline; }

/* --- Modération */
.mod-item { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mod-row { display: flex; gap: 12px; }
.mod-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mod-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.mod-ph { display: grid; place-items: center; color: var(--muted); }
.mod-text { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; word-break: break-word; }
.danger-chip { background: color-mix(in srgb, var(--like) 16%, transparent); color: var(--like); }
.mod-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.mod-actions .btn { height: 40px; }
.mod-delete { background: var(--danger) !important; color: #fff !important; }
.mod-ban { color: var(--like); display: flex; align-items: center; justify-content: center; gap: 6px; }
.mod-ban .ic { width: 16px; height: 16px; }
.mod-footer { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mod-footer .hint { margin: 0; line-height: 1.45; }

/* --- Notifications sur le téléphone */
.push-preview { margin: 14px 18px 4px; padding: 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--text) 9%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); display: flex; gap: 10px; align-items: center; }
.push-preview img { width: 36px; height: 36px; border-radius: 9px; filter: var(--logo-filter); }
.push-preview .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
.push-preview-top { display: flex; justify-content: space-between; }
.push-preview-top small { color: var(--muted); font-size: 12px; }
.push-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.push-card .btn { align-self: flex-start; }
.push-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.push-card .push-row { padding: 0; border: 0; }
.list-card .push-row:last-child { border-bottom: 0; }
.push-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-row small { color: var(--muted); font-size: 13px; }
.push-hint { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; line-height: 1.45; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: var(--surface-2); transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch.on { background: var(--brand); }
.switch.on i { transform: translateX(20px); background: var(--on-brand); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- Pages légales */
.legal { padding: 18px 18px 22px; line-height: 1.6; font-size: 15px; }
.legal h1 { margin: 0 0 12px; font-size: 24px; }
.legal h2 { margin: 20px 0 6px; font-size: 16px; }
.legal p { margin: 0 0 8px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal-standalone { max-width: var(--col); margin: 0 auto; padding: 16px 0 30px; }
.legal-standalone > .btn { margin: 0 10px; }

/* --- Inscription */
.rules-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 2px 16px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.rules-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.rules-check a, .auth-legal a { color: var(--brand); text-decoration: underline; }
.auth-legal { text-align: center; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Mot de passe oublié ---------- */
.auth-forgot { display: block; width: fit-content; margin: -6px 2px 16px auto; font-size: 13px; font-weight: 600; color: var(--brand); }
.auth-title { text-align: center; font-size: 19px; margin: 18px 0 4px; }
.auth-card .tagline b { color: var(--text); }
.auth-sent { text-align: center; background: var(--brand-soft); border-radius: 14px; padding: 18px 16px; margin: 18px 0 16px; line-height: 1.5; }
.auth-sent p { margin: 0 0 8px; }
.auth-sent p:last-child { margin-bottom: 0; }
.auth-sent .muted { color: var(--muted); font-size: 13.5px; }
.auth-sent-ic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.auth-sent-ic svg { width: 22px; height: 22px; }
.auth-sent-ic.warn { background: var(--danger); color: #fff; }
.auth-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- Barres horizontales sur ordinateur (catégories, stories) ---------- */
.hscroll { position: relative; }
.hscroll > .filter-chips, .hscroll > .stories-bar { scroll-behavior: auto; }
.hscroll > .dragging { cursor: grabbing; user-select: none; }
.hscroll > .dragging * { pointer-events: none; }
.hscroll-btn {
  position: absolute; top: 50%; z-index: 3; width: 32px; height: 32px; margin-top: -16px; padding: 0;
  display: none; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.hscroll-btn svg { width: 16px; height: 16px; }
.hscroll-btn:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.hscroll-btn.prev { left: 6px; }
.hscroll-btn.next { right: 6px; }
.hscroll.can-prev .hscroll-btn.prev, .hscroll.can-next .hscroll-btn.next { display: grid; }
/* Fondu sur le bord qui cache encore des éléments */
.hscroll.can-next > .filter-chips, .hscroll.can-next > .stories-bar { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.hscroll.can-prev > .filter-chips, .hscroll.can-prev > .stories-bar { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.hscroll.can-prev.can-next > .filter-chips, .hscroll.can-prev.can-next > .stories-bar { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

/* ---------- Fil « Pour toi » : suggestion, repère « à jour », suggestions de comptes ---------- */
.post-sub { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.post-sub .loc { min-width: 0; }
.sugg-tag { flex: none; font-size: 12px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sugg-tag + .loc::before { content: "·"; margin-right: 3px; color: var(--muted); }

.caught-up { margin: 10px 12px 14px; padding: 18px 16px; text-align: center; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.caught-up .cu-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); margin-bottom: 4px; }
.caught-up .cu-ic svg { width: 22px; height: 22px; stroke-width: 2.6; }
.caught-up small { color: var(--muted); font-size: 13px; }

.suggest-block { margin: 4px 0 12px; }
.suggest-block .section-title { padding-top: 10px; }
.see-all { font-size: 13px; font-weight: 600; color: var(--brand); }
.suggest-card { position: relative; flex: 0 0 156px; padding: 18px 10px 12px; }
.suggest-card .btn { width: 100%; justify-content: center; }
.suggest-card small { min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.suggest-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.suggest-x svg { width: 15px; height: 15px; }
.suggest-x:hover { background: var(--surface); color: var(--text); }

/* Colonne de suggestions à droite du fil, sur grand écran */
.side-sugg { display: none; }
@media (min-width: 1240px) {
  .side-sugg { display: block; position: fixed; top: 24px; left: calc(50% + var(--col) / 2 + 40px); width: 300px; }
}
.side-sugg-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.side-sugg-row .avatar { width: 40px; height: 40px; font-size: 15px; }
.side-sugg-row.me .avatar { width: 52px; height: 52px; font-size: 19px; }
.side-sugg-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-sugg-row .uname { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sugg-row small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sugg-row .btn-link { font-size: 13px; }
.side-sugg-title { margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.side-sugg-foot { margin-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.side-sugg-foot a:hover { text-decoration: underline; }

/* ---------- Page d'accueil publique, pages légales autonomes, 404, hors connexion ---------- */
.landing { min-height: 100dvh; display: flex; flex-direction: column; }
.lp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-brand { display: flex; align-items: center; gap: 9px; }
.lp-brand img, .offline img { filter: var(--logo-filter); border-radius: 22%; }
.lp-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-cta .btn { height: 48px; padding: 0 22px; font-size: 16px; }
.lp-foot { border-top: 1px solid var(--line); padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.lp-foot a:hover { color: var(--text); text-decoration: underline; }
.lp-foot p { margin: 0; }
.static-page .lp-main { max-width: var(--col); padding: 20px 10px 30px; }
.static-page .legal h1 { font-size: 26px; }
.nf { text-align: center; padding: 36px 20px; margin-top: 30px; }
.nf h1 { margin: 6px 0 8px; font-size: 26px; }
.nf p { color: var(--muted); margin: 0 0 20px; }
.nf-ic { font-size: 46px; }
.offline { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 4px; }
.offline h1 { margin: 16px 0 6px; }
.offline p { color: var(--muted); max-width: 340px; margin: 0 0 20px; }

/* Installer l'app (guide iPhone) */
.install-steps { text-align: center; padding: 6px 18px 18px; }
.install-steps img { border-radius: 16px; margin: 0 auto 10px; }
.install-steps p { color: var(--muted); margin: 0 0 12px; }
.install-steps ol { text-align: left; margin: 0 0 18px; padding-left: 22px; line-height: 1.9; }
.ios-share { display: inline-grid; place-items: center; vertical-align: middle; width: 26px; height: 26px; border-radius: 7px; background: var(--surface); }
.ios-share svg { width: 16px; height: 16px; }
.settings-links button { width: 100%; text-align: left; }

/* ---------- Couleurs des discussions (façon Snap : un trait par personne) ---------- */
:root { --chat-them: #2f66c9; --chat-me: #a87a10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chat-them: #79a6ef; --chat-me: #e8b33a; } }
:root[data-theme="dark"] { --chat-them: #79a6ef; --chat-me: #e8b33a; }

/* Liste des discussions */
.thread.snap { gap: 12px; padding-top: 11px; padding-bottom: 11px; }
.thread.snap .avatar { width: 50px; height: 50px; font-size: 18px; }
.thread.snap > .ic { width: 18px; height: 18px; color: var(--muted); opacity: .6; flex: none; }
.thread.snap .uname { font-weight: 600; }
.thread.snap.unread .uname { font-weight: 800; }
.thread-handle { color: var(--muted); font-weight: 400; font-size: 12px; }
.thread-status { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; margin-top: 2px; }
.thread-status b { font-weight: 500; }
.thread-status i { font-style: normal; opacity: .7; }
.thread-status .st-ic { width: 12px; height: 12px; flex: none; fill: currentColor; stroke: currentColor; }
.thread-status.st-chat .st-ic { color: var(--chat-them); }
.thread-status.st-spot .st-ic { color: var(--chat-me); }
.thread-status.st-new.st-chat b { color: var(--chat-them); font-weight: 700; }
.thread-status.st-new.st-spot b { color: var(--chat-me); font-weight: 700; }
.streak { color: var(--text); font-weight: 600; }

/* Rangée « Tes amis » */
.dm-friends .section-title { padding-top: 12px; }
.dm-friends .section-title small { margin-left: 6px; }
.dm-friends-row { display: flex; gap: 14px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.dm-friends-row::-webkit-scrollbar { display: none; }
.dm-friend { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: inherit; }
.dm-friend .avatar { width: 56px; height: 56px; font-size: 20px; }
.dm-friend small { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-friends-empty { padding: 0 16px 12px; margin: 0; }

/* Conversation : messages groupés sous « MOI » / le prénom, avec un trait de couleur */
.snap-chat > [data-msgs] { gap: 2px; }
.snap-chat .msg { max-width: 100%; align-self: stretch; align-items: flex-start; padding: 1px 0 1px 10px; border-left: 2px solid var(--c); margin-left: 2px; }
.snap-chat .msg.me { --c: var(--chat-me); align-self: stretch; align-items: flex-start; }
.snap-chat .msg.them { --c: var(--chat-them); }
.snap-chat .msg .bubble, .snap-chat .msg.me .bubble, .snap-chat .msg.them .bubble { background: none; color: var(--text); padding: 2px 0; border-radius: 0; }
.snap-chat .msg.me .bubble .tag { color: var(--brand); }
.snap-chat .msg-post { margin: 4px 0; }
.msg-who { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; margin: 12px 0 3px 2px; }
.msg-who.me { color: var(--chat-me); }
.msg-who.them { color: var(--chat-them); }
.snap-chat .msg-day { align-self: center; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; font-weight: 600; }
.msg-typing { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 2px; font-size: 12px; font-weight: 700; color: var(--chat-them); text-transform: uppercase; letter-spacing: .5px; }
.msg-typing .bubble.typing { background: none; padding: 0; }
.msg-typing .bubble.typing i { background: var(--chat-them); }
.msg-seen { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.msg-seen .st-ic { width: 11px; height: 11px; fill: var(--chat-me); stroke: var(--chat-me); }
.snap-chat ~ .chat-form .input, .chat-form .input { border-radius: 22px; }

/* Amis sur le profil */
.friend-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; vertical-align: middle;
  background: color-mix(in srgb, var(--chat-them) 16%, transparent); color: var(--chat-them); }
.friend-badge .ic { width: 14px; height: 14px; }
.ph-friends { display: flex; align-items: center; gap: 7px; width: calc(100% - 32px); margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); text-align: left; font-size: 14px; }
.ph-friends .ic { width: 18px; height: 18px; }
.ph-friends > .ic:first-child { color: var(--chat-them); }
.ph-friends small { color: var(--muted); flex: 1; }
.ph-friends > .ic:last-child { color: var(--muted); }

/* Miniature vidéo */
.pick-cover { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border-radius: 8px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.pick-cover .ic { width: 15px; height: 15px; }
.pick-media:has(.pick-cover) .pm-type { bottom: 40px; }
.thumb-pick { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }
.tp-stage { align-self: center; width: min(100%, calc(46dvh * var(--tp-ratio))); aspect-ratio: var(--tp-ratio); max-height: 46dvh; border-radius: 14px; overflow: hidden; background: #000; }
.tp-stage video, .tp-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-seg { margin: 0; }
.tp-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tp-seg .ic { width: 16px; height: 16px; }
.tp-frame { position: relative; }
.tp-strip { display: flex; height: 56px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.tp-strip canvas { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.tp-range { position: absolute; left: 0; right: 0; top: 0; height: 56px; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
.tp-range::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.tp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 60px; margin-top: -2px; border-radius: 8px; border: 3px solid var(--brand); background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .0), 0 4px 12px rgba(0, 0, 0, .5); }
.tp-range::-moz-range-track { height: 56px; background: transparent; }
.tp-range::-moz-range-thumb { width: 26px; height: 54px; border-radius: 8px; border: 3px solid var(--brand); background: rgba(255, 255, 255, .12); }
.tp-time { display: block; text-align: center; margin-top: 6px; }
.edit-cover { display: flex; align-items: center; gap: 12px; }
.edit-cover img { width: 64px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.seg button { text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 650; color: var(--muted); font-size: 13.5px; }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }


/* ======================================================================
   DA « Ardoise » — typographie et composants façon app de paiement moderne :
   grands titres très gras et serrés, beaucoup d'air, boutons en pilule,
   champs pleins sans bordure, aplats nets.
   ====================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-tight-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body { font: 15px/1.5 var(--font); letter-spacing: -.003em; font-feature-settings: "cv11", "ss03"; }

/* Titres : gras, serrés, sans fioritures */
.topbar h1, .wordmark, .section-title, .auth h1, .auth-title, .ph-name, .lp2 h1, .lp2 h2, .lp2 h3,
.legal h1, .legal h2, .nf h1, .offline h1, .empty h3, .sheet-title, .caught-up b, .engine-head h1, .engine-title {
  font-family: var(--font-display);
}
.topbar { border-bottom-color: transparent; }
.topbar h1 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.wordmark { font-weight: 800; letter-spacing: -.025em; }
.section-title { font-size: 19px; font-weight: 800; letter-spacing: -.018em; padding: 22px 16px 10px; }
.section-title small { font-family: var(--font); font-size: 13px; letter-spacing: 0; }
.auth h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.auth .tagline { letter-spacing: -.01em; }
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ph-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stats b { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.legal h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.legal h2 { font-size: 18px; font-weight: 800; letter-spacing: -.012em; }
.empty h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.uname { font-weight: 700; letter-spacing: -.012em; }
.likes { font-weight: 700; }

/* Boutons en pilule */
.btn { height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; letter-spacing: -.01em; }
.btn.block { height: 54px; font-size: 16px; }
.btn.small { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; }
.btn:not(.primary):not(.danger) { background: var(--surface); }
.btn-link { font-weight: 700; letter-spacing: -.01em; }

/* Champs pleins, sans bordure ; contour net au focus */
.field > span { color: var(--text); font-weight: 600; font-size: 13.5px; }
.input { height: 54px; border-radius: 14px; border: 1.5px solid transparent; background: var(--surface); font-size: 16px; }
.input:focus { border-color: var(--text); background: var(--card); }
textarea.input { padding: 14px 16px; }

/* Pastilles et filtres arrondis */
.chip, .fchip, .seg-mini, .seg-mini a, .line-badge { border-radius: 999px; }
.fchip { height: 36px; border-color: transparent; background: var(--surface); font-weight: 600; }
.fchip.on { background: var(--text); color: var(--bg); }
.seg { border-radius: 999px; }
.seg a, .seg button { border-radius: 999px; }

/* Cartes : aplat net, ombre très légère en clair seulement */
.post, .card { border-radius: 22px; box-shadow: var(--shadow); }
.ph-banner { background: linear-gradient(135deg, var(--surface-2), var(--surface)); }

/* Barre du bas : bouton « + » en pilule encre */
.tabbar .new-ic { background: var(--text); color: var(--bg); box-shadow: none; border-radius: 999px; }
.tabbar { border-top-color: var(--line); }
.tabbar a.active { font-weight: 700; }

/* Messages : un peu plus d'air */
.thread.snap { padding-top: 13px; padding-bottom: 13px; }

/* Notification flottante en pilule */
#toast { border-radius: 999px; font-weight: 600; }
.auth::before { content: none; }
.auth-card { box-shadow: var(--shadow); }
.stats { column-gap: 6px; min-width: 0; }
.stats > * { min-width: 0; }
.stats span { display: block; font-size: 11.5px; letter-spacing: -.02em; white-space: nowrap; }
.profile-head .ph-top { gap: 10px; padding: 0 12px 0 16px; }
.stats { column-gap: 2px; }

/* Vues des vidéos sur les grilles (profil, Explorer) */
.tile .tile-views { position: absolute; left: 7px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; color: #fff; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tile .tile-views .ic { width: 13px; height: 13px; fill: #fff; stroke: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.tile .tile-dur { left: auto; right: 7px; }

/* ======================================================================
   Version ordinateur (mise en page A « trois colonnes ») :
   navigation complète à gauche, fil plus large au centre, colonne utile
   à droite, le tout regroupé au centre de l'écran.
   ====================================================================== */
@media (max-width: 959.98px) { .desk { display: none !important; } }
@media (min-width: 960px) {
  .mob { display: none !important; }
  .tabbar::before { display: none; }
  .tab-brand { display: flex !important; align-items: center; gap: 10px; padding: 4px 12px 18px !important; color: var(--text) !important; }
  .tab-brand:hover { background: none !important; }
  .tab-brand img { width: 36px; height: 36px; border-radius: 10px; }
  .tab-brand .wordmark { font-size: 24px; }
  .tabbar a { position: relative; }
  .tab-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
  .tab-publish { margin-top: 14px; height: 50px; border-radius: 999px !important; background: var(--text) !important; color: var(--bg) !important; justify-content: center !important; font-weight: 800 !important; gap: 8px !important; }
  .tab-publish .ic { width: 20px; height: 20px; stroke-width: 2.4; }
  .tab-publish:hover { opacity: .9; }
  /* Barre du haut : les messages et notifications sont dans la navigation */
  .topbar > a.icon-btn[href="#/messages"], .topbar > a.icon-btn[href="#/notifications"] { display: none; }
  .topbar .brand { display: none; }
  .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--muted); }
  .top-search .ic { width: 18px; height: 18px; flex: none; }
  .top-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 15px; color: var(--text); }
  .top-search:focus-within { box-shadow: 0 0 0 1.5px var(--text); background: var(--card); }
  /* Stories dans une carte, filtres du fil */
  .stories-bar { margin: 6px 10px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); }
  .feed-filters { display: flex; gap: 8px; padding: 10px 10px 2px; overflow-x: auto; scrollbar-width: none; }
  .feed-filters .fchip { text-decoration: none; color: var(--text); }
}
@media (min-width: 1280px) {
  :root { --fl: max(24px, calc((100vw - 1282px) / 2)); }
  .tabbar { left: var(--fl); width: 248px; border-right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 22px 0; }
  .shell { max-width: 640px; margin-left: calc(var(--fl) + 280px); margin-right: 0; }
  .spots-wrap { left: calc(var(--fl) + 260px); }
  /* Colonne de droite */
  .side-sugg.rail { display: flex; flex-direction: column; gap: 14px; left: calc(var(--fl) + 952px); width: 330px; top: 18px; bottom: 18px; overflow-y: auto; scrollbar-width: none; }
}
.rail-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); }
.rail-box h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rail-box h3 small { font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.rail-me { display: flex; align-items: center; gap: 12px; }
.rail-me .avatar { width: 46px; height: 46px; font-size: 17px; }
.rail-me .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rail-me small { color: var(--muted); font-size: 12.5px; }
.rail-trend, .rail-engine { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: inherit; border-top: 1px solid var(--line); }
.rail-box h3 + .rail-trend, .rail-box h3 + .rail-engine { border-top: 0; }
.rail-trend .grow, .rail-engine .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rail-trend b, .rail-engine b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-trend small, .rail-engine small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-diff { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.trend-diff.up { color: #3fae7a; }
.trend-new { font-size: 12px; font-weight: 700; color: var(--brand); }
.re-thumb { width: 56px; height: 42px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.re-thumb img { width: 100%; height: 100%; object-fit: cover; }
.re-thumb .ic { width: 20px; height: 20px; }
.rail .side-sugg-row { padding: 6px 0; }
.rail .side-sugg-foot { margin: 0; padding: 0 6px; }
.feed-filters .fchip.on { color: var(--bg); }
@media (min-width: 960px) {
  .tabbar a > .ic, .tabbar a > .avatar { order: 0; }
  .tabbar a > .tab-label { order: 1; }
  .tabbar a > .tab-badge { order: 2; }
}

/* ======================================================================
   Fluidité : le halo n'utilise plus de flou (les dégradés sont déjà doux),
   et plus aucun flou d'arrière-plan sur les barres qui restent à l'écran —
   ces effets étaient recalculés à chaque image par-dessus le halo animé.
   ====================================================================== */
body::before, body::after { filter: none; }
body::before { background: radial-gradient(closest-side, var(--halo-a), transparent); }
body::after { background: radial-gradient(closest-side, var(--halo-b), transparent); }
@keyframes halo-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(12vmax, 8vmax, 0) scale(1.12); } 100% { transform: translate3d(4vmax, 18vmax, 0) scale(.95); } }
@keyframes halo-b { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-10vmax, -8vmax, 0) scale(1.1); } 100% { transform: translate3d(-3vmax, -18vmax, 0) scale(1); } }
.topbar, .tabbar, .lp-top, .tabs, .searchbar, .auth-card, .top-search { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.topbar { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.tabbar { background: color-mix(in srgb, var(--bg) 97%, transparent); }
.lp-top { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.tabs { background: var(--card); }
.searchbar { background: var(--bg); }
.auth-card { background: var(--card); }

/* ======================================================================
   Ordinateur : mise en page qui s'adapte à toutes les largeurs d'écran.
   960–1199 px : menu à gauche + fil centré. ≥ 1200 px : trois colonnes
   dont les largeurs grandissent avec l'écran, le tout centré.
   ====================================================================== */
@media (min-width: 960px) {
  .topbar { background: var(--bg); }
  .tabbar { background: transparent; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
  .tabbar { left: 0; width: 220px; }
  .shell { max-width: 620px; margin-left: calc(220px + max(20px, (100vw - 220px - 620px) / 2)); margin-right: 0; }
}
@media (min-width: 1200px) {
  :root {
    --side: clamp(220px, 15vw, 300px);
    --feed: clamp(540px, 42vw, 820px);
    --rail: clamp(290px, 21vw, 420px);
    --gap: clamp(20px, 2.4vw, 56px);
    --fl: max(16px, calc((100vw - var(--side) - var(--feed) - var(--rail) - 2 * var(--gap)) / 2));
  }
  .tabbar { left: var(--fl); width: var(--side); padding: 22px 0; }
  .shell { max-width: var(--feed); margin-left: calc(var(--fl) + var(--side) + var(--gap)); margin-right: 0; }
  .side-sugg.rail { display: flex; position: fixed; flex-direction: column; gap: 14px; top: 18px; bottom: 18px; overflow-y: auto; scrollbar-width: none;
    left: calc(var(--fl) + var(--side) + var(--gap) + var(--feed) + var(--gap)); width: var(--rail); }
  .spots-wrap { left: calc(var(--fl) + var(--side)); }
}


/* ---------- Bannière : cadrage choisi (photo entière par défaut, fond flouté autour) ---------- */
.ph-banner.has-img { overflow: hidden; background: var(--surface-2); }
.ph-banner .pb-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(20px) saturate(1.15); opacity: .55; pointer-events: none; }
.ph-banner .pb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ph-banner-crop { position: absolute; left: 10px; bottom: 10px; z-index: 1; height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; }
.ph-banner-crop .ic { width: 15px; height: 15px; }
.profile-head .ph-banner-crop { left: auto; right: 54px; }
.banner-edit .pb-img, .banner-edit .pb-bg { z-index: 0; }
.bn-editor { display: flex; flex-direction: column; gap: 14px; padding: 6px 16px 18px; }
.bn-frame { position: relative; height: 150px; border-radius: 16px; cursor: grab; touch-action: none; user-select: none; }
.bn-frame.dragging { cursor: grabbing; }
.bn-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.bn-zoom { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.bn-zoom input { flex: 1; accent-color: var(--brand); }
.bn-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-editor .hint { margin: 0; }
.profile-head .ph-banner-edit { top: 10px; bottom: auto; }
.profile-head .ph-banner-crop { top: 11px; bottom: auto; right: 54px; left: auto; }

/* ------------------------------------------------------------ Spots sur ordinateur : vidéo dans un cadre à ses proportions, boutons à côté, aucune bande noire */
.spot-frame { position: absolute; inset: 0; }
@media (min-width: 960px) {
  .spots-wrap { background: transparent; color: var(--text); color-scheme: normal; }
  .spots-top { display: none; } /* titre déjà dans le menu, le son passe dans la colonne de boutons */
  .spot {
    --gutter: 28px;
    width: min(calc(100% - 200px), calc((100dvh - var(--gutter) * 2) * var(--r, .5625)));
    margin: 0 auto; overflow: visible; color: #fff;
  }
  .spot-frame {
    inset: auto 0; top: 50%; transform: translateY(-50%);
    aspect-ratio: var(--r, .5625); max-height: calc(100% - var(--gutter) * 2);
  }
  .spot-stage { border-radius: 18px; overflow: hidden; background: #05070a; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
  .spot-video { object-fit: cover; }
  .spot-shade { border-radius: 0 0 18px 18px; }
  .spot-progress { left: 14px; right: 14px; bottom: 6px; border-radius: 3px; overflow: hidden; }
  .spot-info { right: 16px; bottom: 22px; }
  .spot-actions { right: auto; left: calc(100% + 14px); bottom: 0; color: var(--text); }
  .spot-actions button, .spot-actions a { text-shadow: none; }
  .spot-actions button .ic {
    box-sizing: content-box; width: 26px; height: 26px; padding: 11px; border-radius: 50%;
    background: var(--surface); filter: none; transition: background .15s;
  }
  .spot-actions button:hover .ic { background: var(--surface-2); }
  .spot-actions [data-act="like"].liked .ic { color: var(--like); }
  .spot-actions [data-act="save"].saved { color: inherit; }
  .spot-actions [data-act="save"].saved .ic { color: #e0b000; }
  .spot-avatar .avatar { border-color: var(--bg); }
  /* barre latérale : couleurs normales, plus de noir */
  .immersive .tabbar { background: transparent; border-color: var(--line); color-scheme: normal; }
  .immersive .tabbar a { color: var(--muted); }
  .immersive .tabbar a.active { color: var(--text); }
  .immersive .tabbar a:hover { background: var(--surface); }
  /* stories : fond sombre ardoise, cadre arrondi au lieu d'un écran noir */
  .sv { background: rgba(9, 12, 17, .96); align-items: center; }
  .sv-frame { height: min(100%, calc(100dvh - 40px)); width: auto; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; }
}

/* Conversation sur ordinateur : le menu reste visible, la discussion est posée dans une carte */
@media (min-width: 960px) {
  #app.chat-mode .chat { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; height: calc(100dvh - var(--top-h) - 16px); }
}

/* ---------- Médias : frein à l'enregistrement (appui long, glisser, sélection) ---------- */
img, video { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* ---------- Vidéo illisible sur cet appareil (souvent HEVC) ---------- */
.video-unreadable {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; color: #fff; background: rgba(10, 14, 20, .82); pointer-events: none;
}
.video-unreadable .ic { width: 40px; height: 40px; opacity: .8; }
.video-unreadable b { font-size: 16px; }
.video-unreadable span { font-size: 13px; opacity: .8; max-width: 280px; line-height: 1.4; }

/* ---------- Phase bêta : badge et signalement de bug ---------- */
.beta-badge {
  align-self: center; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); line-height: 1.5;
}
.settings-links button { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.settings-links button .ic { width: 20px; height: 20px; color: var(--muted); }
.settings-links button:hover { background: var(--surface); }
.bug-meta { font-size: 12.5px; }
.bug-msg { white-space: pre-wrap; }
.bug-device summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.bug-device small { display: block; margin-top: 4px; word-break: break-word; color: var(--muted); }
@media (min-width: 960px) {
  .tab-bug { display: flex !important; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border: 0; background: none; border-radius: 999px;
    color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .tab-bug .ic { width: 18px; height: 18px; }
  .tab-bug:hover { background: var(--surface); color: var(--text); }
}

/* ---------- Adresse e-mail à confirmer ---------- */
.verify-banner {
  display: flex; align-items: center; gap: 12px; margin: 10px 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.verify-banner[hidden] { display: none; }
.verify-banner .vb-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.verify-banner .vb-ic .ic { width: 19px; height: 19px; }
.verify-banner b { display: block; font-size: 14.5px; }
.verify-banner small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.verify-banner .btn { flex: 0 0 auto; }
.hevc-sheet { text-align: center; }
.hevc-sheet .hevc-ic { width: 56px; height: 56px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.hevc-sheet .hevc-ic .ic { width: 26px; height: 26px; }
.hevc-sheet p { margin: 0 0 16px; line-height: 1.5; color: var(--text); }
.verify-banner .grow { min-width: 0; }
.page-pad > .verify-banner { margin: 0 0 8px; }

/* ---------- Ordinateur : plus de bande sombre derrière la barre de recherche ----------
   La barre du haut gardait un fond uni alors que la page a un fond dégradé (halo) :
   on la rend transparente et elle défile avec la page. */
@media (min-width: 960px) {
  .topbar { position: relative; background: transparent !important; border-bottom: 0; }
  .searchbar, .tabs { position: relative; top: 0; background: transparent !important; }
  .new-posts { top: 12px; }
}

/* ---------- Pages de connexion : retour au site ---------- */
.auth-back {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 6px -4px; padding: 6px 10px 6px 6px;
  border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600;
}
.auth-back .ic { width: 18px; height: 18px; }
.auth-back:hover { background: var(--surface); color: var(--text); }

/* --- Spots : description compacte (une ligne d'infos) */
.spot-who { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.spot-info .uname { font-size: 15px; flex: none; }
.spot-info .time { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-info .caption { font-size: 13.5px; line-height: 1.38; margin-top: 4px; }
.spot-meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; min-width: 0; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.spot-meta .txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-meta a { color: inherit; text-decoration: underline dotted rgba(255, 255, 255, .6); text-underline-offset: 3px; }
.spot-meta .emoji { flex: none; font-size: 14px; text-shadow: none; }
.spot-meta .line-badge { flex: none; height: 21px; padding: 0 8px; font-size: 11.5px; }
.spot-meta .line-badge.neutral { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.spot-meta .ic { flex: none; width: 14px; height: 14px; }
.spot-place { margin-top: 5px; font-weight: 500; color: rgba(255, 255, 255, .75); }

/* --- Spots sur téléphone : colonne de boutons plus discrète */
@media (max-width: 959px) {
  .spot-actions { right: 6px; bottom: 26px; gap: 12px; }
  .spot-actions button, .spot-actions a { min-width: 44px; gap: 1px; font-size: 11px; }
  .spot-actions .ic { width: 26px; height: 26px; }
  .spot-actions .lbl { display: none; }
  .spot-avatar { margin-bottom: 6px; }
  .spot-avatar .avatar { width: 38px; height: 38px; font-size: 15px; }
  .spot-follow { width: 18px; height: 18px; bottom: -8px; }
  .spot-follow .ic { width: 11px !important; height: 11px !important; }
  .spot-info { right: 66px; bottom: 16px; }
}


/* --- Flamme de connexion */
.flame { width: 22px; height: 22px; flex: none; display: block; }
.flame-btn { display: inline-flex; align-items: center; width: auto; height: 34px; gap: 2px; margin-right: 2px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.flame-btn .flame { width: 20px; height: 20px; }
.flame-pill {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 2px 9px 2px 5px; border-radius: 999px;
  background: var(--surface); font-size: 13px; font-weight: 800; vertical-align: middle; font-variant-numeric: tabular-nums;
}
.flame-pill .flame { width: 17px; height: 17px; }
.streak-sheet { text-align: center; }
.streak-hero { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 0 2px; }
.streak-hero .flame { width: 64px; height: 64px; }
.streak-hero b { font: 800 44px/1 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.streak-title { font-weight: 800; font-size: 18px; margin: 6px 0 0; }
.streak-sheet .hint { margin-top: 2px; }
.streak-sheet > p:not(.hint):not(.streak-title) { color: var(--muted); font-size: 14px; }
.streak-tiers { list-style: none; margin: 12px 0 4px; padding: 0; text-align: left; display: grid; gap: 4px; }
.streak-tiers li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.streak-tiers li small { color: var(--muted); font-weight: 500; }
.streak-tiers li .grow { flex: 1; }
.streak-tiers li.on { background: var(--brand-soft); }

/* --- Défi de la semaine */
.cc-em { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 23px; flex: none; }
.cc-em.big { width: 72px; height: 72px; border-radius: 20px; font-size: 38px; margin: 0 auto 10px; }
.cc-k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.challenge-card {
  display: flex; align-items: center; gap: 12px; margin: 4px 10px 12px; padding: 12px 12px 12px 14px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.challenge-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.challenge-card b { font: 800 15.5px 'Inter Tight', Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.challenge-card .hint { font-size: 12px; }
.challenge-card .btn { flex: none; }
.challenge-chip {
  display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700;
}
.challenge-head { text-align: center; padding: 18px 18px 6px; }
.challenge-head h2 { font: 800 24px/1.15 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; margin: 4px 0 6px; }
.challenge-head p { margin: 4px 0; }
.challenge-head .btn { margin-top: 14px; }
.ch-winner { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.ch-seg { margin: 12px 10px; }
.challenge-opt {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
}
.challenge-opt input { position: absolute; opacity: 0; pointer-events: none; }
.challenge-opt .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.challenge-opt small { color: var(--muted); font-size: 12.5px; }
.challenge-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.challenge-check .ic { width: 15px; height: 15px; stroke-width: 3; }
.challenge-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.challenge-opt:has(input:checked) .challenge-check { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.challenge-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- Brouillons */
.drafts { margin: 0 0 14px; }
.drafts-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.drafts-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.drafts-row::-webkit-scrollbar { display: none; }
.draft { position: relative; flex: none; width: 112px; }
.draft a { display: flex; flex-direction: column; gap: 3px; color: var(--text); }
.draft-img { position: relative; width: 112px; height: 140px; border-radius: 14px; overflow: hidden; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.draft-img img { width: 100%; height: 100%; object-fit: cover; }
.draft-img .ic { width: 28px; height: 28px; }
.draft-img i { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font: 700 11px Inter, sans-serif; font-style: normal; }
.draft-txt { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft small { color: var(--muted); font-size: 11.5px; }
.draft-rm { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.draft-rm .ic { width: 15px; height: 15px; }

/* --- Administration : tableau de bord */
.dash { padding: 0 10px 4px; margin-top: 8px; display: grid; gap: 12px; }
.dash-todo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-alert { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 13px; text-align: left; }
.dash-alert .ic { width: 18px; height: 18px; flex: none; }
.dash-alert b { color: var(--text); font-size: 15px; }
.dash-alert.on { background: var(--brand-soft); color: var(--text); }
.dash-alert.on .ic { color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kpi { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.kpi b { font: 800 24px/1.1 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; font-weight: 600; }
.kpi small { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.dash-chart, .dash-top, .dash-table { padding: 14px; margin: 0; }
.dash-chart header, .dash-top header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dash-chart header .hint { font-size: 12.5px; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.bar i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--brand); opacity: .9; }
.bar.hot i { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--brand); }
.bar-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 4px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); z-index: 2;
}
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.dash-table summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.dash-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dash-table th, .dash-table td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.dash-table th:first-child, .dash-table td:first-child { text-align: left; }
.dash-table th { color: var(--muted); font-weight: 600; }
.dash-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.dash-top ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 6px; }
.dash-top li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; counter-increment: t; }
.dash-top li::before { content: counter(t); color: var(--muted); width: 16px; font-weight: 700; }
.dash-top li a { flex: 1; font-weight: 600; }
.dash-top li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-form { padding: 14px; margin: 8px 10px 12px; display: grid; gap: 2px; }
.ch-form-row { display: flex; gap: 10px; margin-top: 8px; }
.ch-emoji { width: 84px; flex: none; }
.ch-form .grow { flex: 1; min-width: 0; }
.list-card .cc-em { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; }

/* --- v16 : flamme vivante (vacillement continu + halo qui respire, couleur de la flamme) */
.flame.lit { overflow: visible; animation: flame-glow 2.4s ease-in-out infinite; }
.flame.lit .fo, .flame.lit .fi { transform-box: fill-box; transform-origin: 50% 100%; }
.flame.lit .fo { animation: flame-flick 1.8s ease-in-out infinite; }
.flame.lit .fi { animation: flame-core 1.1s ease-in-out infinite; }
.streak-hero .flame.lit { --glow-r: 14px; }
@keyframes flame-flick {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(1.03, .96) skewX(-2deg); }
  45% { transform: scale(.97, 1.05) skewX(1.5deg); }
  70% { transform: scale(1.02, .98) skewX(-1deg); }
}
@keyframes flame-core {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(.88, 1.12); }
  60% { transform: scale(1.06, .92); }
}
@keyframes flame-glow {
  0%, 100% { filter: drop-shadow(0 0 1px var(--glow)); }
  50% { filter: drop-shadow(0 0 var(--glow-r, 6px) var(--glow)); }
}
@media (prefers-reduced-motion: reduce) {
  .flame.lit, .flame.lit .fo, .flame.lit .fi { animation: none; }
}

/* --- v16 : étiquette discrète sur la photo (ligne, matériel, n°, exploitant) */
.photo-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; box-sizing: border-box; max-width: min(70%, 300px);
  display: flex; flex-direction: column; gap: 0; padding: 4px 8px 5px; border-radius: 9px;
  background: rgba(10, 14, 20, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 11.5px; line-height: 1.3; pointer-events: none;
}
.photo-tag .pt-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.photo-tag .pt-top b { font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tag .line-badge { flex: none; height: 15px; min-width: 15px; padding: 0 4px; font-size: 10px; box-sizing: border-box; justify-content: center; }
.photo-tag .line-badge.neutral { background: rgba(255, 255, 255, .22); color: #fff; }
.photo-tag .pt-sub { font-size: 10.5px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tag a { color: inherit; text-decoration: none; pointer-events: auto; }
.photo-tag a:hover { text-decoration: underline; }

/* --- v16 : légendes longues coupées, bouton « Afficher plus » */
.caption.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.spot-info .caption.clamp { -webkit-line-clamp: 2; cursor: auto; }
.caption.clamp.open, .post-detail .caption.clamp { display: block; -webkit-line-clamp: unset; overflow: visible; }
.more-btn {
  align-self: flex-start; margin: -2px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
}
.more-btn:hover { color: var(--text); }
.spot-info .more-btn { color: rgba(255, 255, 255, .85); font-size: 13.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.challenge-chip .ic { flex: none; width: 15px; height: 15px; }

/* ======================================================================
   v17 — DA « douce » : fonds clairs et doux, grandes cartes très arrondies
   sans bordure, photo encadrée dans la carte, boutons ronds, barre du bas
   flottante, un seul bleu Spotigo. Validée sur prototype.
   ====================================================================== */
:root {
  --bg: #f3f6fb; --card: #ffffff; --surface: #eef2f8; --surface-2: #e4e9f1; --line: #e3e8f0;
  --text: #0c1424; --muted: #586377;
  --brand: #2f66c9; --brand-strong: #24539f; --brand-soft: #e4edfc; --on-brand: #fff;
  --brand-grad: linear-gradient(#2f66c9, #2f66c9);
  --ring-grad: linear-gradient(#2f66c9, #2f66c9);
  --shadow: 0 1px 2px rgba(12, 20, 36, .04), 0 12px 32px -18px rgba(12, 20, 36, .22);
  --nav-shadow: 0 14px 34px -14px rgba(12, 20, 36, .35), 0 0 0 1px rgba(12, 20, 36, .05);
  --r-card: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f16; --card: #161d29; --surface: #1e2633; --surface-2: #263041; --line: #232c3a;
    --text: #f1f4f9; --muted: #a3afbd;
    --brand: #4f8be8; --brand-strong: #8bb8ff; --brand-soft: #1a2a45; --on-brand: #0b1220;
    --brand-grad: linear-gradient(#4f8be8, #4f8be8);
    --ring-grad: linear-gradient(#4f8be8, #4f8be8);
    --shadow: none;
    --nav-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f16; --card: #161d29; --surface: #1e2633; --surface-2: #263041; --line: #232c3a;
  --text: #f1f4f9; --muted: #a3afbd;
  --brand: #4f8be8; --brand-strong: #8bb8ff; --brand-soft: #1a2a45; --on-brand: #0b1220;
  --brand-grad: linear-gradient(#4f8be8, #4f8be8);
  --ring-grad: linear-gradient(#4f8be8, #4f8be8);
  --shadow: none;
  --nav-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}
/* Fond animé : les deux lueurs bleues qui dérivent lentement restent (voir plus haut) */

/* Cartes : grandes, sans bordure */
.post, .card, .rail-box, .composer, .challenge-card, .post-detail .comments-inline, .stories-bar {
  border: 0; border-radius: var(--r-card); box-shadow: var(--shadow);
}
.post { margin: 12px 10px 16px; padding-bottom: 14px; }
.post-head { padding: 14px 8px 10px 16px; }
.post .carousel { margin: 0 10px; border-radius: 22px; }
.post .dots { padding-top: 8px; height: 14px; }
.post-actions { gap: 8px; padding: 12px 12px 4px; }
.post-actions.has-dots { margin-top: -4px; }
.post-actions .icon-btn { width: 44px; height: 44px; background: var(--surface); transition: background .15s; }
.post-actions .icon-btn .ic { width: 22px; height: 22px; }
.post-actions .icon-btn:hover { background: var(--surface-2); }
.post-actions .icon-btn.liked { background: color-mix(in srgb, var(--like) 14%, var(--surface)); }
.post-body { padding: 6px 16px 0; }
.post-head .btn-link:not(.following) { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--text); display: inline-flex; align-items: center; font-size: 13.5px; }

/* Avatars sans photo : une couleur pastel par personne */
.avatar.av-0 { background: #ffd9c7; color: #6b2e12; }
.avatar.av-1 { background: #cdeedd; color: #15583a; }
.avatar.av-2 { background: #e2d9ff; color: #3e2a8a; }
.avatar.av-3 { background: #d6e6ff; color: #1d4590; }
.avatar.av-4 { background: #ffeab0; color: #5c4300; }

/* Grand titre de page */
.page-h1 { font: 800 34px/1.05 var(--font-display); letter-spacing: -.04em; margin: 14px 16px 6px; }
.topbar h1 { font-size: 22px; letter-spacing: -.03em; }
.section-title { font-size: 22px; letter-spacing: -.03em; }

/* Stories : anneau bleu plein, barre dans une carte */
.stories-bar { margin: 8px 10px 4px; background: var(--card); padding: 14px 14px 10px; }

/* Boutons secondaires : « Suivre » discret dans les suggestions */
.suggest-card { border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.suggest-card .btn.primary, .side-sugg-row .btn.primary, .rail .btn.primary { background: var(--surface); color: var(--text); }
.btn.primary:hover { background: var(--brand-strong); }
.fchip .ic { width: 17px; height: 17px; margin-right: 6px; }
.fchip { display: inline-flex; align-items: center; }

/* Défi de la semaine : carte douce, trophée dans un rond */
.challenge-card { background: var(--brand-soft); margin: 8px 10px 14px; padding: 16px 16px 16px 14px; box-shadow: none; gap: 14px; }
.challenge-card .cc-em, .challenge-opt .cc-em { width: 48px; height: 48px; border-radius: 50%; background: var(--card); color: var(--brand); }
.challenge-card .cc-em .ic, .challenge-opt .cc-em .ic { width: 24px; height: 24px; }
.cc-em.big { border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.cc-em.big .ic { width: 36px; height: 36px; }
.challenge-card b { font-size: 20px; letter-spacing: -.03em; white-space: normal; line-height: 1.15; margin: 2px 0; }
.challenge-card .hint { color: var(--muted); }
.challenge-card .btn.primary { height: 40px; padding: 0 18px; }

/* Profil */
.profile-head.card { overflow: hidden; }
.ph-banner:not(.has-img) { background: var(--brand-soft); }
.profile-head .ph-top .avatar { width: 92px; height: 92px; font-size: 34px; }
.ph-name { font: 800 28px/1.1 var(--font-display); letter-spacing: -.04em; margin-top: 14px; }
.profile-head .stats { gap: 6px; padding-bottom: 0; }
.profile-head .stats > * { background: var(--surface); border-radius: 18px; padding: 9px 2px 8px; }
.profile-head .stats b { font-size: 19px; }
.ph-actions .btn { height: 44px; }
.tabs { margin: 12px 0 8px; padding: 6px 10px; gap: 6px; border: 0; border-radius: 0; background: var(--bg) !important; overflow: visible; }
.tabs button { height: 40px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); }
.tabs button.on { background: var(--text); color: var(--bg); }
.grid { gap: 4px; margin: 0 10px 12px; border-radius: 0; overflow: visible; }
.grid .tile { border-radius: 14px; }

/* Champs et segments */
.seg { background: var(--surface); }
.seg a.on, .seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(12, 20, 36, .1); }
.input:focus { border-color: var(--brand); }

/* Téléphone et tablette : barre de navigation flottante en pilule */
@media (max-width: 959.98px) {
  :root { --tab-h: 82px; }
  .tabbar {
    left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 520px; height: 66px; padding: 0 6px;
    border: 0; border-radius: 999px; background: var(--card); box-shadow: var(--nav-shadow);
  }
  .tabbar .new-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
  .tabbar .new-ic .ic { width: 24px; height: 24px; stroke-width: 2.4; }
  .tabbar a.active:not(.tab-new)::after { content: ""; position: absolute; bottom: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
  /* Spots : barre classique, sombre, collée en bas */
  #app.immersive { --tab-h: 60px; }
  .immersive .tabbar { left: 0; right: 0; bottom: 0; max-width: none; height: calc(60px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; background: #000; }
  .immersive .tabbar .new-ic { width: 46px; height: 34px; border-radius: 999px; }
  .immersive .tabbar a.active::after { display: none; }
}

/* Ordinateur : menu en pilules, bouton Publier bleu */
@media (min-width: 960px) {
  .tabbar a:not(.tab-brand):not(.tab-publish) { border-radius: 999px !important; }
  .tabbar a.active:not(.tab-brand) { background: var(--card) !important; box-shadow: var(--shadow); color: var(--text); }
  .tab-publish { background: var(--brand) !important; color: var(--on-brand) !important; }
  .rail-box { padding: 16px 18px; }
  .page-h1 { font-size: 40px; margin: 6px 10px 8px; }
  .stories-bar { margin: 6px 10px 4px; }
}

/* ======================================================================
   v17 — Page Publier : zone de dépôt, puis aperçu « dans le fil »,
   vignettes, champs regroupés, bouton Publier toujours à portée.
   ====================================================================== */
.composer { background: transparent; box-shadow: none; padding: 4px 6px 0; margin: 6px 10px 12px; }
.composer .seg { margin-bottom: 14px; }
.cmp-grid { display: flex; flex-direction: column; }
.cmp-main { display: contents; }
.composer, .cmp-grid, .cmp-side, .cmp-form, .cmp-sec, .cmp-form .field { min-width: 0; }
.cmp-grid #dz { order: 1; }
.cmp-grid #cpv { order: 2; }
.cmp-grid #picked { order: 3; }
.cmp-grid #ll-note { order: 4; }
.cmp-grid #spot-note { order: 5; }
.cmp-grid #form { order: 6; }
.composer .dropzone { background: var(--card); border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: var(--r-card); padding: 38px 18px; }
.composer .dropzone .dz-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.composer .dropzone.drag { background: var(--brand-soft); }
/* Aperçu */
#cpv.empty { display: none; }
.cpv-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 0 0 10px; overflow: hidden; }
.cpv-head { display: none; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.cpv-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cpv-head small { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12.5px; }
.cpv-head small .ic { width: 13px; height: 13px; }
.cpv-media { position: relative; margin: 10px 10px 0; border-radius: 22px; overflow: hidden; background: var(--media-bg); aspect-ratio: var(--ratio, 1); max-height: 62vh; }
.cpv-media img { width: 100%; height: 100%; object-fit: cover; }
.cpv-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 14, 20, .62); color: #fff; font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cpv-media .counter { top: 10px; right: 10px; }
.cpv-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: var(--surface); font-weight: 600; font-size: 14px; text-align: center; padding: 20px; }
.cpv-empty .ic { width: 34px; height: 34px; opacity: .7; }
.cpv-cap { display: none; margin: 10px 16px 2px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
/* Vignettes */
.picked { gap: 8px; padding: 12px 2px 2px; scrollbar-width: none; }
.picked::-webkit-scrollbar { display: none; }
.picked:not(.has-video) .pick { flex: 0 0 76px; }
.picked:not(.has-video) .pick-media { width: 76px; height: 76px; border-radius: 16px; cursor: pointer; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.picked:not(.has-video) .pick.on .pick-media { box-shadow: 0 0 0 2.5px var(--brand); }
.picked:not(.has-video) .pick-num { top: 5px; left: 5px; width: 19px; height: 19px; font-size: 11px; }
.picked:not(.has-video) .pick-rm { top: auto; bottom: 5px; right: 5px; width: 26px; height: 26px; }
.picked:not(.has-video) .pick-rm .ic { width: 14px; height: 14px; }
.picked.has-video .pick-media { border-radius: 18px; }
.pick-add { flex: 0 0 76px; height: 76px; border-radius: 16px; border: 2px dashed var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--text); font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.pick-add .ic { width: 20px; height: 20px; color: var(--brand); }
.pick-add small { color: var(--muted); font-weight: 600; font-size: 10.5px; }
.picked.has-video .pick-add { height: 176px; }
.ll-note { display: flex; align-items: center; gap: 6px; margin: 8px 4px 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ll-note .ic { width: 15px; height: 15px; color: var(--brand); }
.composer .spot-note { margin-top: 12px; }
/* Formulaire */
.cmp-form { margin-top: 18px; }
.cmp-form .field > span { display: flex; align-items: baseline; gap: 6px; }
.cap-count { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.cap-count.near { color: var(--danger); }
.cmp-form textarea.input { min-height: 96px; resize: vertical; }
.cmp-sec { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 16px 14px 4px; margin: 0 0 14px; }
.cmp-sec h3 { font: 800 19px/1.2 var(--font-display); letter-spacing: -.03em; margin: 0 2px 12px; }
.cmp-sec .input { background: var(--surface); }
.cmp-sec .input:focus { background: var(--card); }
.transport-pick { position: relative; }
.transport-pick label { position: relative; }
.transport-pick span { gap: 7px; height: 40px; padding: 0 14px; border: 0; background: var(--surface); }
.transport-pick span .ic { width: 19px; height: 19px; }
.transport-pick input:checked + span { background: var(--text); color: var(--bg); }
@media (max-width: 959.98px) {
  .cmp-form .transport-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
  .cmp-form .transport-pick::-webkit-scrollbar { display: none; }
  .cmp-form .transport-pick label { flex: none; }
}
.line-color { width: auto !important; padding: 0 14px 0 10px; gap: 8px; display: inline-flex !important; align-items: center; font-size: 14px; font-weight: 650; white-space: nowrap; }
.line-color i { width: 22px; height: 22px; border-radius: 50%; }
.line-preview { margin: -6px 2px 14px; }
.input-ic { position: relative; display: block; }
.input-ic > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.input-ic > .input { padding-left: 44px; }
/* Défi : interrupteur */
.challenge-opt { border: 0; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); padding: 12px 14px; margin: 0 0 14px; }
.challenge-opt .cc-em { background: var(--brand-soft); }
.challenge-opt b { font-size: 14.5px; }
.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-2); transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.challenge-opt:has(input:checked) { background: var(--card); border-color: transparent; }
.challenge-opt:has(input:checked) .switch { background: var(--brand); }
.challenge-opt:has(input:checked) .switch::after { transform: translateX(18px); }
/* Barre Publier : reste visible au-dessus de la barre de navigation */
.publish-bar { position: sticky; bottom: 0; z-index: 5; margin: 4px -16px 0; padding: 10px 16px calc(var(--tab-h) + env(safe-area-inset-bottom) + 6px); background: var(--bg); }
.publish-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
#app.wide .shell { padding-bottom: 0; }
.pb-hint { display: block; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.publish-bar .btn.block { height: 56px; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 70%, transparent); }
.publish-bar .btn[disabled] { opacity: 1; background: var(--surface-2); color: var(--muted); box-shadow: none; }
.publish-bar .progress { margin-top: 10px; }
/* Ordinateur large : formulaire à gauche, aperçu en direct à droite */
@media (min-width: 1200px) {
  #app.wide .shell { max-width: calc(var(--feed) + var(--gap) + var(--rail)); }
  .composer { margin: 6px 10px 24px; }
  .composer .seg { max-width: 420px; }
  .cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); column-gap: var(--gap); align-items: start; }
  .cmp-main { display: block; min-width: 0; }
  .cmp-side { display: block; position: sticky; top: 18px; }
  #cpv.empty { display: block; }
  .cpv-head, .cpv-cap { display: flex; }
  .cpv-cap { display: -webkit-box; }
  .cpv-badge { display: none; }
  .cpv-card::before { content: "Aperçu en direct"; display: block; padding: 14px 16px 0; font: 800 13px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .cpv-media { max-height: 56vh; }
  .publish-bar { bottom: 0; padding-bottom: 18px; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
  .publish-bar { bottom: 0; padding-bottom: 18px; }
}
/* Page Publier : la notification passe au-dessus du bouton Publier */
@media (max-width: 959.98px) { #app.wide ~ #toast { bottom: calc(var(--tab-h) + 104px + env(safe-area-inset-bottom)); } }
/* ---------- v17.1 : réglage du volume des vidéos (fil, Spots, stories) ---------- */
.vol-box { position: relative; display: flex; align-items: center; gap: 6px; }
.vol-range {
  display: none; width: 104px; height: 30px; margin: 0; padding: 0 10px; box-sizing: content-box; cursor: pointer;
  border-radius: 999px; background: rgba(10, 14, 20, .62); accent-color: #fff; touch-action: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vol-box.show .vol-range { display: block; }
@media (hover: hover) { .vol-box:hover .vol-range { display: block; } }
/* Fil : en bas à droite de la vidéo */
.feed-vol { position: absolute; right: 12px; bottom: 12px; z-index: 3; }
.feed-vol .mute-btn { position: static; }
/* Spots sur téléphone : en haut à droite */
.spots-top .spots-vol { pointer-events: auto; position: absolute; right: 8px; top: calc(env(safe-area-inset-top) + 2px); }
.spots-top .spots-vol .icon-btn { position: static; }
/* Spots sur ordinateur : la réglette sort à droite du bouton Son */
.spot-vol .vol-range { position: absolute; left: calc(100% + 6px); top: 4px; background: var(--surface); accent-color: var(--brand); }
/* Stories : à côté du bouton son */
.sv-vol { flex: none; }
.spots-top:has(.vol-box.show) > span { opacity: 0; }
/* ---------- v17.1 : page Paramètres ---------- */
.prm { padding: 4px 10px 24px; }
.prm-me { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); color: var(--text); margin-top: 6px; }
.prm-me .avatar { width: 56px; height: 56px; font-size: 21px; }
.prm-me .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.prm-me b { font: 800 19px/1.2 var(--font-display); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prm-me small { color: var(--muted); font-size: 13px; }
.prm-me > .ic, .prm-row > .ic:last-child { width: 18px; height: 18px; color: var(--muted); flex: none; }
.prm-h { font: 800 13px var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 22px 8px 8px; }
.prm-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.prm-row, .prm-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; color: var(--text); font: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.prm-row + .prm-row, .prm-item + .prm-item, .prm-item + .prm-row, .prm-row + .prm-item { border-top: 1px solid var(--line); }
.prm-row > span { flex: 1; font-weight: 600; }
.prm-row > .ic:first-child, .prm-label > .ic { width: 20px; height: 20px; color: var(--brand); flex: none; }
.prm-row:hover { background: var(--surface); }
.prm-row.danger, .prm-row.danger .ic { color: var(--danger) !important; }
.prm-item { cursor: default; flex-wrap: wrap; }
.prm-label { flex: 1; display: flex; align-items: center; gap: 12px; font-weight: 600; min-width: 0; }
.prm-seg { margin: 0; width: 100%; max-width: 270px; grid-template-columns: repeat(3, 1fr); padding: 4px; }
.prm-seg button { padding: 7px 4px; }
.prm-note { display: block; padding: 0 16px 14px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.prm-switch { cursor: pointer; flex-wrap: nowrap; }
.prm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.prm-switch input:checked + .switch { background: var(--brand); }
.prm-switch input:checked + .switch::after { transform: translateX(18px); }
.prm-switch input:focus-visible + .switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.prm-vol { flex-wrap: nowrap; }
.prm-vol .prm-label { flex: none; }
.prm-range { flex: 1; min-width: 0; accent-color: var(--brand); }
.prm-vol output { flex: none; width: 44px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13.5px; }
.prm-val { color: var(--muted); font-size: 13.5px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prm-foot { text-align: center; color: var(--muted); font-size: 12.5px; margin: 18px 0 0; }
.settings-more { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--surface); color: var(--text); font-weight: 600; }
.settings-more span { flex: 1; }
.settings-more .ic { width: 20px; height: 20px; color: var(--brand); }
.settings-more .ic:last-child { width: 18px; height: 18px; color: var(--muted); }
@media (min-width: 960px) { .prm { max-width: 640px; } }
/* ---------- v17.2 : animation quand on gagne une flamme ---------- */
.flame-cele {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 8, 14, 0); transition: background .3s; cursor: pointer;
}
.flame-cele.in { background: rgba(5, 8, 14, .6); }
.flame-cele.out { background: rgba(5, 8, 14, 0); }
.fc-card {
  width: min(320px, 100%); padding: 26px 22px 22px; border-radius: 32px; text-align: center; background: var(--card); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); transform: scale(.7) translateY(24px); opacity: 0;
  transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .25s;
}
.flame-cele.in .fc-card { transform: none; opacity: 1; }
.flame-cele.out .fc-card { transform: scale(.92); opacity: 0; transition-duration: .25s; }
.fc-flame { position: relative; width: 132px; height: 132px; margin: 0 auto 6px; }
.fc-flame .flame { width: 132px; height: 132px; --glow-r: 18px; }
.fc-old, .fc-new { position: absolute; inset: 0; display: grid; place-items: center; }
.fc-new { transform: scale(0); animation: fc-pop .75s cubic-bezier(.2, 1.5, .4, 1) .25s forwards; }
.fc-old + .fc-new { animation-delay: .95s; }
.fc-old { animation: fc-fade .5s ease-in .75s forwards; }
.fc-halo { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0; animation: fc-halo 2.2s ease-out .3s infinite; }
.fc-sparks { position: absolute; left: 50%; bottom: 18px; width: 0; height: 0; pointer-events: none; }
.fc-sparks i {
  position: absolute; left: calc(var(--s) / -2); top: 0; width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 8px var(--glow2); opacity: 0;
  animation: fc-spark 1.5s ease-out calc(.45s + var(--d)) 2;
}
.fc-count { height: 62px; overflow: hidden; }
.fc-count b { display: inline-block; font: 800 56px/62px var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fc-count b.roll { animation: fc-roll .5s cubic-bezier(.2, 1.3, .4, 1); }
.fc-title { font: 800 21px/1.2 var(--font-display); letter-spacing: -.03em; margin: 4px 0 4px; }
.fc-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.fc-card .btn { width: 100%; height: 48px; }
.flame-btn.bump { animation: fc-bump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fc-pop { 0% { transform: scale(0) rotate(-12deg); } 70% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes fc-fade { to { transform: scale(.4); opacity: 0; } }
@keyframes fc-halo { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: .55; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes fc-spark { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -150px) scale(.3); } }
@keyframes fc-roll { 0% { transform: translateY(100%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fc-card, .flame-cele { transition: opacity .2s; }
  .fc-new, .fc-old, .fc-halo, .fc-sparks i, .fc-count b.roll, .flame-btn.bump { animation: none !important; }
  .fc-new { transform: none; }
  .fc-old { display: none; }
}
.prm-item:has(.prm-seg) { flex-wrap: wrap; row-gap: 10px; padding-top: 14px; }
.prm-item:has(.prm-seg) .prm-label { flex-basis: 100%; }
.prm-seg { max-width: none; }
.prm-vol output { width: 52px; white-space: nowrap; }

/* ======================================================================
   v18 — Messages privés : liste avec aperçu du dernier message, bulles
   arrondies, cœur, demande de message, ordinateur en deux colonnes.
   ====================================================================== */
#app.dm-list-mode .topbar h1 { opacity: 0; }
.dm-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.dm-list > .page-h1 { margin-bottom: 0; }
.dm-search { display: flex; align-items: center; gap: 10px; height: 46px; margin: 0 12px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.dm-search .ic { width: 19px; height: 19px; flex: none; }
.dm-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.dm-search input::-webkit-search-cancel-button { cursor: pointer; }
.dm-search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.dm-friends .section-title { padding: 0 16px 10px; font-size: 19px; }
.dm-friends-row { padding-bottom: 2px; }
.dm-seg { margin: 0 12px; }
.dm-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.seg-count { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dm-threads { margin: 0 10px; padding: 4px 0; overflow: hidden; }
.dm-threads .empty { padding: 28px 20px; }
.th2 { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; text-decoration: none; }
.th2 + .th2 { border-top: 1px solid var(--line); }
.th2 .avatar { width: 52px; height: 52px; font-size: 19px; flex: none; }
.th-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.th-top, .th-bot { display: flex; align-items: center; gap: 6px; min-width: 0; }
.th-name { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.th-handle { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.th-streak { display: inline-flex; align-items: center; gap: 1px; font-size: 12.5px; font-weight: 800; flex: none; }
.th-streak .flame { width: 15px; height: 15px; }
.th-time { margin-left: auto; padding-left: 6px; font-size: 12.5px; color: var(--muted); flex: none; }
.th-prev { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th2.unread .th-prev { color: var(--text); font-weight: 700; }
.th-badge { min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.th-st { font-size: 12px; color: var(--muted); flex: none; }
@media (hover: hover) { .th2:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); } }
.th2.on, .th2.on:hover { background: var(--brand-soft); }

/* En-tête de conversation : photo, nom, @pseudo · amis · flamme */
.conv-head { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; letter-spacing: 0; }
.conv-head .avatar { width: 40px; height: 40px; font-size: 16px; flex: none; }
.ch-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ch-txt b { font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-txt small { font-size: 12.5px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.ch-streak { display: inline-flex; align-items: center; gap: 2px; }
.ch-streak .flame { width: 13px; height: 13px; }
.ch-streak b { color: var(--text); }
.topbar h1:has(.conv-head) { flex: 1; min-width: 0; font-size: inherit; }

/* Bulles */
.chat-list { padding: 8px 14px 10px; }
.chat-list > [data-msgs] { gap: 3px; }
.msg { max-width: 76%; position: relative; }
.msg.start { margin-top: 10px; }
.msg .bubble { padding: 10px 14px; border-radius: 22px; font-size: 15px; line-height: 1.4; touch-action: manipulation; }
.msg.them .bubble { background: var(--card); color: var(--text); border-bottom-left-radius: 22px; }
.msg.me .bubble { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 22px; }
.msg.them.end .bubble { border-bottom-left-radius: 7px; }
.msg.me.end .bubble { border-bottom-right-radius: 7px; }
.msg .bubble.gone { opacity: .75; }
.msg.liked { margin-bottom: 12px; }
.msg-heart { position: absolute; bottom: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); color: #e5484d; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(12, 20, 36, .18); }
.msg-heart .ic { width: 14px; height: 14px; }
.msg.me .msg-heart { left: -6px; }
.msg.them .msg-heart { right: -6px; }
.msg-heart.pop { animation: heart-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes heart-pop { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .msg-heart.pop { animation: none; } }
.msg-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 5px 12px; margin: 14px 0 4px; }
.msg-seen { font-size: 12px; margin: 6px 4px 0; min-height: 0; }
.chat-hello { margin: auto 0; }
[data-typing] .bubble.typing { padding: 14px 16px; }

/* Spot partagé : grande carte avec l'étiquette sur la photo */
.msg-post { width: 244px; max-width: 100%; box-sizing: border-box; padding: 6px; border: 0; border-radius: 22px; background: var(--card); gap: 6px; text-decoration: none; }
.mp-media { position: relative; display: block; border-radius: 17px; overflow: hidden; }
.msg-post .mp-media img, .msg-post .mp-media .msg-post-ph { display: block; width: 100%; height: 150px; object-fit: cover; }
.msg-post .mp-media .msg-post-ph { display: grid; place-items: center; }
.mp-play { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 14, 20, .55); color: #fff; display: grid; place-items: center; }
.mp-play .ic { width: 16px; height: 16px; }
.mp-foot { display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px; }
.mp-foot small { flex: 1; font-size: 12.5px; color: var(--muted); }
.mp-foot b { color: var(--text); }
.mp-see { font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* Barre d'écriture flottante */
.chat-form { border-top: 0; background: transparent; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
.chat-attach { width: 48px; height: 48px; border: 0; background: var(--card); box-shadow: var(--nav-shadow); }
.chat-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--card); box-shadow: var(--nav-shadow); }
.chat-pill:focus-within { box-shadow: var(--nav-shadow), 0 0 0 2px var(--brand); }
.chat-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.chat-input::placeholder { color: var(--muted); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; cursor: pointer; }
.chat-send .ic { width: 20px; height: 20px; }
.chat-blocked { border-top: 0; }

/* Demande de message */
.chat-request { margin: 6px 0 14px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.chat-request .avatar { width: 72px; height: 72px; font-size: 28px; }
.cr-title { font: 800 22px/1.15 var(--font-display); letter-spacing: -.03em; }
.chat-request p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.chat-request small { font-size: 12.5px; color: var(--muted); }
.chat-req-actions { padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.chat-req-actions .btn { height: 48px; }
.chat-req-actions .btn.primary { height: 52px; }
.cra-row { display: flex; gap: 8px; }
.cra-row .btn { flex: 1; min-width: 0; padding: 0 10px; white-space: nowrap; font-size: 14.5px; }
.chat-request ~ [data-msgs] { margin-top: 0; }
.btn.danger-text { color: var(--danger); }

/* Ordinateur : liste à gauche, conversation à droite */
.dm-head { display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.dm-head .page-h1 { flex: 1; margin: 0; font-size: 34px; }
.dm-head .icon-btn { background: var(--surface); }
.dm-pick { margin: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
.chat-head [data-head] { flex: 1; min-width: 0; }
.chat-head .conv-head .avatar { width: 46px; height: 46px; font-size: 18px; }
.chat-head .ch-txt b { font-size: 17px; }
.chat-head .icon-btn { background: var(--surface); }
.chat-profile { display: inline-flex; align-items: center; gap: 6px; }
.chat-profile .ic { width: 18px; height: 18px; }
@media (min-width: 1200px) {
  #app.dm-desk .topbar { display: none; }
  #app.dm-desk .shell { max-width: none; margin-right: var(--fl); padding: 18px 0 0; }
  .dm-grid { display: grid; grid-template-columns: clamp(320px, 26vw, 400px) minmax(0, 1fr); gap: 20px; height: calc(100dvh - 36px); }
  .dm-col { overflow-y: auto; padding: 22px 6px 14px; scrollbar-width: thin; }
  .dm-col .dm-search, .dm-col .dm-seg { margin: 0 8px; }
  .dm-col .dm-threads { margin: 0; padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
  .dm-col .th2 { border-radius: 20px; padding: 10px 12px; }
  .dm-col .th2 + .th2 { border-top: 0; margin-top: 2px; }
  .dm-col .th2 .avatar { width: 48px; height: 48px; }
  .dm-pane { display: flex; flex-direction: column; overflow: hidden; min-width: 0; padding: 0; }
  .dm-pane > .loader, .dm-pane > .empty { margin: auto; }
  .dm-pane .chat { height: 100%; min-height: 0; background: none; border: 0; }
  .dm-pane .chat-list { background: var(--bg); padding: 10px 26px; }
  .dm-pane .msg { max-width: 60%; }
  .dm-pane .chat-bottom { background: var(--bg); }
  .dm-pane .chat-form { padding: 8px 20px 18px; }
  .dm-pane .chat-req-actions { padding: 10px 26px 20px; }
  .dm-pane .chat-request { max-width: 460px; align-self: center; }
}

/* ---------- v18.1 : J'aime sur les commentaires, aperçu de la page d'accueil ---------- */
.comment { align-items: flex-start; }
.c-like { flex: none; width: 36px; height: 36px; margin: -2px -8px 0 0; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.c-like .ic { width: 17px; height: 17px; }
.c-like.on { color: var(--like); }
.c-like.pop .ic { animation: heart-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@media (prefers-reduced-motion: reduce) { .c-like.pop .ic { animation: none; } }
@media (hover: hover) { .c-like:hover { color: var(--text); } .c-like.on:hover { color: var(--like); } }
.c-likes { font-weight: 600; }
.comment .c-body p { touch-action: manipulation; }
.t-comment_like { background: var(--like); }
.lp-preview {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); box-sizing: border-box;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--card); color: var(--text); box-shadow: var(--nav-shadow); font-size: 14px; font-weight: 600;
}
.lp-preview > .ic { width: 18px; height: 18px; flex: none; color: var(--brand); }
.lp-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-preview .btn { flex: none; }

/* ---------- v18.2 : Explorer façon Instagram (photos et vidéos mélangées, recherche) ---------- */
.x-search { display: flex; align-items: center; gap: 10px; }
.x-search .search-input { flex: 1; min-width: 0; }
.x-search .search-input input { height: 46px; border-radius: 999px; border: 0; background: var(--surface); font-size: 16px; padding-left: 44px; }
.x-search .search-input .ic { left: 16px; }
.x-search .search-input input:focus { box-shadow: 0 0 0 2px var(--brand); }
.x-cancel { flex: none; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; font-size: 15px; padding: 8px 2px; cursor: pointer; }
.x-recent { margin: 4px 10px 12px; padding: 6px 0; }
.x-recent-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 4px; }
.x-recent-head b { font-size: 17px; letter-spacing: -.02em; }
.x-recent-row { display: flex; align-items: center; gap: 4px; padding-right: 6px; }
.x-recent-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; padding: 8px 16px; cursor: pointer; }
.x-recent-go span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-recent-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.x-recent-ic .ic { width: 18px; height: 18px; }
.x-recent-row .icon-btn { color: var(--muted); }
.x-recent-empty { margin: 0; padding: 12px 16px; }
.x-users { margin: 0 10px 8px; }
.xgrid { gap: 3px; margin: 0 8px 12px; }
.xgrid .tile { border-radius: 10px; }
.xgrid .tile.big { grid-row: span 2; aspect-ratio: auto; }
.xgrid .tile.big img, .xgrid .tile.big .tile-fallback { position: absolute; inset: 0; }
@media (min-width: 1200px) {
  #app.x-wide .shell { max-width: calc(var(--feed) + var(--gap) + var(--rail)); }
  .xgrid { gap: 6px; margin: 0 10px 16px; }
  .xgrid .tile { border-radius: 14px; }
}
.tile .tile-frame { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.xgrid .tile.big .tile-frame { position: absolute; inset: 0; }
.xgrid .tile .x-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.xgrid .tile .x-live.on { opacity: 1; }
.xgrid .tile > span { z-index: 1; }

/* ---------- v18.3 : page d'accueil du site (visiteurs) avec de vraies photos ---------- */
.lp2 { background: var(--bg); color: var(--text); overflow-x: clip; }
.lp2 .lp-top { padding-left: max(16px, calc((100% - 1200px) / 2)); padding-right: max(16px, calc((100% - 1200px) / 2)); border-bottom-color: transparent; }
.lp2 .wordmark { font-size: 22px; }
.lp2 .wordmark span { color: var(--brand); }
.lp2-nav { display: none; gap: 4px; }
.lp2-nav button { height: 38px; padding: 0 14px; border-radius: 999px; font: 600 15px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; }
.lp2-nav button:hover { color: var(--text); background: var(--surface); }
.lp2-top-cta { display: flex; gap: 8px; }
.lp2-only-wide { display: none; }
.lp2-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; box-sizing: border-box; }
.lp2-ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lp2-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 13px; }
:root:not([data-theme="dark"]) .lp2-chip { color: var(--brand); }
.lp2 h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: .99; font-weight: 800; letter-spacing: -.04em; margin: 18px 0; }
.lp2 h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin: 14px 0; }
.lp2-lead { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--muted); max-width: 540px; }
.lp2-cta { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 18px; }
.lp2-cta .btn { height: 54px; padding: 0 26px; font-size: 16px; }
.lp2-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.lp2-checks li { display: flex; align-items: center; gap: 6px; }
.lp2-checks .lp2-ic { color: var(--brand); }

/* Photos : coins arrondis, crédit de l'auteur, étiquette de ligne */
.lp2-photo { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--surface-2); }
.lp2-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp2-credit { position: absolute; right: 10px; bottom: 10px; height: 24px; padding: 0 10px; border-radius: 999px; display: flex; align-items: center;
  background: rgba(12, 20, 36, .55); color: #fff; font-size: 12px; font-weight: 600; }
.lp2-credit-tl { right: auto; bottom: auto; left: 14px; top: 14px; }
.lp2-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .93); color: #0c1424; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.lp2-tag-tl { position: absolute; left: 12px; top: 12px; }
.lp2-tags-br { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lp2-line { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 7px; background: #e4572e; color: #fff; font-size: 12px; font-weight: 800; }
.lp2-play { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(12, 20, 36, .55); display: flex; align-items: center; justify-content: center; }
.lp2-play svg, .lp2-bigplay svg { fill: currentColor; }
.lp2-play { color: #fff; }

/* Héros */
.lp2-hero { display: grid; gap: 34px; padding-top: 18px; padding-bottom: 40px; }
.lp2-hero-art { position: relative; padding-bottom: 36px; }
.lp2-hero-photo { aspect-ratio: 4 / 3.3; border-radius: 30px; box-shadow: 0 40px 80px -36px rgba(12, 20, 36, .55); }
.lp2-hero-photo .lp2-credit { bottom: auto; top: 12px; }
.lp2-float { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--text); border-radius: 22px;
  box-shadow: 0 24px 50px -18px rgba(12, 20, 36, .4); }
.lp2-engine { left: 12px; right: 12px; bottom: 0; padding: 12px; }
.lp2-engine img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex: none; }
.lp2-engine div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lp2-engine small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lp2-engine b { font-size: 16px; }
.lp2-engine div span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp2-follow { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13.5px; font-weight: 700; }
.lp2-notif { display: none; right: -14px; top: 56px; width: 270px; padding: 14px 16px; font-size: 13.5px; line-height: 1.35; }
.lp2-notif-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }

/* Sections */
.lp2-section { padding-top: 56px; padding-bottom: 20px; }
.lp2-head { margin-bottom: 18px; }
.lp2-head .lp2-lead { font-size: 15.5px; }
.lp2-center { text-align: center; }
.lp2-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(110px, 31vw, 230px); gap: 4px; margin: 0 -10px; }
.lp2-mosaic .lp2-photo { border-radius: 10px; }
.lp2-mosaic .lp2-tall { grid-row: span 2; }
.lp2-mosaic .lp2-wide-only { display: none; }
.lp2-mosaic .lp2-tag { height: 24px; font-size: 11.5px; padding: 0 3px; }
.lp2-mosaic .lp2-tag-t { display: none; }
.lp2-mosaic .lp2-credit { height: 22px; font-size: 11px; }

/* Fonctionnalités */
.lp2-band { background: var(--card); margin-top: 56px; padding: 56px 0; }
.lp2-feats { display: flex; flex-direction: column; gap: 64px; }
.lp2-feat { display: grid; gap: 24px; align-items: center; }
.lp2-feat-photo { aspect-ratio: 4 / 3; border-radius: 28px; }
.lp2-sheet { background: var(--bg); border-radius: 28px; padding: 16px; }
.lp2-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lp2-sheet-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lp2-sheet-head b { font-size: 17px; }
.lp2-sheet-head span:not(.lp2-num):not(.lp2-follow) { font-size: 13px; color: var(--muted); }
.lp2-num { width: 50px; height: 50px; border-radius: 16px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-display); flex: none; }
.lp2-sheet-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, clamp(90px, 18vw, 150px)); gap: 8px; }
.lp2-sheet-grid .lp2-photo { border-radius: 16px; }
.lp2-sheet-big { grid-row: span 2; }
.lp2-sheet-empty { display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 700; }
.lp2-reels { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.lp2-reel { width: 40%; max-width: 210px; aspect-ratio: 9 / 16; border-radius: 26px; box-shadow: 0 30px 60px -26px rgba(12, 20, 36, .5); }
.lp2-reel-main { width: 46%; max-width: 240px; }
.lp2-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .93); color: #0c1424; display: flex; align-items: center; justify-content: center; }
.lp2-reel-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; font-size: 12.5px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); display: flex; flex-direction: column; }

.lp2-minis { display: grid; gap: 12px; margin-top: 22px; }
.lp2-mini { background: var(--card); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.lp2-mini-ic { width: 48px; height: 48px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp2 .lp2-mini h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.lp2-mini p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Questions */
.lp2-faq { display: grid; gap: 18px; }
.lp2-faq-list { display: flex; flex-direction: column; gap: 8px; }
.lp2-faq details { background: var(--card); border-radius: 20px; padding: 0 20px; box-shadow: var(--shadow); }
.lp2-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 700; font-size: 15.5px; }
.lp2-faq summary::-webkit-details-marker { display: none; }
.lp2-faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.lp2-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lp2-faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Appel final */
.lp2-final-wrap { padding-top: 40px; padding-bottom: 50px; }
.lp2-final { position: relative; overflow: hidden; border-radius: 32px; background: var(--brand); color: var(--on-brand); display: grid; }
.lp2-final-text { padding: 30px 24px 28px; }
.lp2 .lp2-final h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 10px; }
.lp2-final p { margin: 0; font-size: 16px; opacity: .88; }
.lp2-final .lp2-cta { margin: 22px 0 0; }
.lp2-btn-white { background: #fff !important; color: #0c1424 !important; }
.lp2-btn-ghost { background: color-mix(in srgb, var(--on-brand) 16%, transparent) !important; color: var(--on-brand) !important; }
.lp2-final-art { display: none; position: relative; }
.lp2-card-a, .lp2-card-b { position: absolute; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.lp2-card-a { right: 230px; top: 64px; width: 190px; height: 240px; transform: rotate(-6deg); }
.lp2-card-b { right: 50px; top: 36px; width: 200px; height: 260px; transform: rotate(5deg); }
.lp2 .lp-foot { margin-top: 10px; }
.landing:has(~ .lp-preview) .lp-foot { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

@media (min-width: 600px) {
  .lp2-cta { flex-direction: row; flex-wrap: wrap; }
  .lp2-mosaic { margin: 0; gap: 10px; }
  .lp2-mosaic .lp2-photo { border-radius: 18px; }
  .lp2-minis { grid-template-columns: repeat(3, 1fr); }
  .lp2-engine { right: auto; width: 360px; }
  .lp2-notif { display: flex; }
}
@media (min-width: 960px) {
  .lp2-nav { display: flex; }
  .lp2-only-wide { display: inline-flex; }
  .lp2-hero { grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 70px; }
  .lp2-hero-art { padding: 0 0 40px 40px; }
  .lp2-hero-photo { aspect-ratio: auto; height: 520px; border-radius: 36px; }
  .lp2-engine { left: 0; bottom: 0; }
  .lp2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
  .lp2-head .lp2-lead { max-width: 380px; }
  .lp2-section { padding-top: 80px; }
  .lp2-mosaic { grid-template-columns: 1.25fr 1fr 1fr 1.25fr; grid-auto-rows: 230px; gap: 14px; }
  .lp2-mosaic .lp2-photo { border-radius: 22px; }
  .lp2-mosaic .lp2-wide-only { display: block; }
  .lp2-mosaic .lp2-tag { height: 28px; font-size: 12.5px; padding: 0 10px; }
  .lp2-mosaic .lp2-tag-t { display: inline; }
  .lp2-band { margin-top: 90px; padding: 100px 0; }
  .lp2-feats { gap: 110px; }
  .lp2-feat { grid-template-columns: 1fr 1fr; gap: 56px; }
  .lp2-feat-rev > :first-child { order: 2; }
  .lp2-feat-photo { aspect-ratio: auto; height: 400px; border-radius: 32px; }
  .lp2-sheet { padding: 22px; border-radius: 32px; }
  .lp2-faq { grid-template-columns: .8fr 1.2fr; gap: 56px; padding-top: 60px; }
  .lp2-final { grid-template-columns: 1.1fr .9fr; min-height: 320px; border-radius: 40px; }
  .lp2-final-text { padding: 56px 60px; }
  .lp2-final-art { display: block; }
}
.lp2 [id^="lp-"] { scroll-margin-top: 76px; }

/* ---------- v18.4 : fenêtre « nouvelle version » ---------- */
.upd-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(6, 10, 18, .55); animation: fade .2s; }
.upd { position: fixed; z-index: 121; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px)); box-sizing: border-box; padding: 28px 22px 16px; border-radius: 30px;
  background: var(--card); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); text-align: center;
  animation: upd-in .38s cubic-bezier(.2, .9, .25, 1.15); }
.upd.out, .upd-backdrop.out { animation: fade-out .2s forwards; }
@keyframes upd-in { from { opacity: 0; transform: translate(-50%, 40px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes fade-out { to { opacity: 0; } }
.upd-art { position: relative; width: 84px; height: 84px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.upd-art img { position: relative; width: 64px; height: 64px; border-radius: 22%; filter: var(--logo-filter); box-shadow: 0 12px 30px -10px rgba(47, 102, 201, .6); }
.upd-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: upd-ring 2.4s ease-out infinite; }
.upd-ring.r2 { animation-delay: 1.2s; }
@keyframes upd-ring { 0% { opacity: .6; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }
.upd h2 { margin: 0 0 6px; font: 800 23px/1.15 var(--font-display); letter-spacing: -.025em; }
.upd-sub { margin: 0 auto 16px; max-width: 320px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.upd-sub b { color: var(--text); }
.upd-notes { list-style: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 20px; background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 9px; }
.upd-notes li { display: flex; gap: 9px; font-size: 14px; line-height: 1.4; }
.upd-notes .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand); }
.upd-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.upd-later { height: 44px; padding: 0 18px; color: var(--muted); }
@media (min-width: 600px) { .upd { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  @keyframes upd-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } } }
@media (prefers-reduced-motion: reduce) { .upd, .upd-ring { animation: none; } .upd-ring { display: none; } }

/* ---------- v18.4 : fond animé de la page d'accueil du site ---------- */
/* Lueurs qui dérivent + traînées de lumière qui filent, comme sur une photo de nuit à la pose longue. */
.lp2 { position: relative; background: transparent; }
.lp2 > header, .lp2 > main, .lp2 > footer { position: relative; z-index: 1; }
.lp2-sky { position: absolute; left: 0; right: 0; top: 0; height: min(1100px, 150vh); overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  --sky-a: rgba(47, 102, 201, .20); --sky-b: rgba(56, 189, 248, .16); --sky-c: rgba(139, 92, 246, .12); --trail: rgba(47, 102, 201, .55); }
:root[data-theme="dark"] .lp2-sky { --sky-a: rgba(79, 139, 232, .34); --sky-b: rgba(56, 189, 248, .20); --sky-c: rgba(139, 92, 246, .22); --trail: rgba(139, 184, 255, .75); }
.lp2-sky i { position: absolute; border-radius: 50%; will-change: transform; }
.lp2-sky .o1 { width: 60vmax; height: 60vmax; left: -14vmax; top: -24vmax; background: radial-gradient(closest-side, var(--sky-a), transparent); animation: sky-1 22s ease-in-out infinite alternate; }
.lp2-sky .o2 { width: 46vmax; height: 46vmax; right: -12vmax; top: -6vmax; background: radial-gradient(closest-side, var(--sky-b), transparent); animation: sky-2 26s ease-in-out infinite alternate; }
.lp2-sky .o3 { width: 40vmax; height: 40vmax; left: 30%; top: 30%; background: radial-gradient(closest-side, var(--sky-c), transparent); animation: sky-3 30s ease-in-out infinite alternate; }
@keyframes sky-1 { to { transform: translate3d(16vmax, 10vmax, 0) scale(1.15); } }
@keyframes sky-2 { to { transform: translate3d(-14vmax, 14vmax, 0) scale(.9); } }
@keyframes sky-3 { to { transform: translate3d(-18vmax, -10vmax, 0) scale(1.2); } }
.lp2-sky b { position: absolute; left: 0; height: 1.5px; display: none; width: 34vw; min-width: 180px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--trail) 70%, #fff); transform-origin: left center; will-change: transform, opacity;
  animation: sky-trail 9s linear infinite; }
.lp2-sky .t1 { top: 16%; animation-delay: 0s; }
.lp2-sky .t2 { top: 34%; animation-duration: 12s; animation-delay: 3s; width: 26vw; }
.lp2-sky .t3 { top: 52%; animation-duration: 10s; animation-delay: 6s; }
.lp2-sky .t4 { top: 24%; animation-duration: 14s; animation-delay: 8s; width: 20vw; height: 1px; }
.lp2-sky .t5 { top: 44%; animation-duration: 11s; animation-delay: 1.5s; width: 22vw; height: 1px; }
@keyframes sky-trail {
  0% { opacity: 0; transform: translate3d(-40vw, 0, 0) rotate(-8deg); }
  12% { opacity: .5; }
  70% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(120vw, -14vh, 0) rotate(-8deg); }
}
.lp2 .lp-top { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.lp2-band, .lp2-faq, .lp2-final-wrap, .lp2 .lp-foot { position: relative; }
/* Traînées seulement sur grand écran, où il y a de la place autour du texte. */
@media (min-width: 960px) { .lp2-sky b { display: block; } }
@media (prefers-reduced-motion: reduce) { .lp2-sky i, .lp2-sky b { animation: none !important; } .lp2-sky b { display: none !important; } }

/* ---------- v18.4 : mode maintenance (écran visiteurs, panneau admin, pastille) ---------- */
:root { --mnt: #d97706; --mnt-soft: #fdf0dc; --ok: #16a34a; --ok-soft: #dcf5e4; }
:root[data-theme="dark"] { --mnt: #fbbf24; --mnt-soft: #3a2a0d; --ok: #4ade80; --ok-soft: #12301f; }
.mnt { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow: hidden; background: var(--bg); color: var(--text); }
.mnt .mnt-sky { position: absolute; inset: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
.mnt-card { position: relative; z-index: 1; width: 100%; max-width: 440px; box-sizing: border-box; padding: 34px 26px 26px; border-radius: 34px;
  background: var(--card); box-shadow: 0 40px 90px -40px rgba(12, 20, 36, .45); text-align: center; display: flex; flex-direction: column; align-items: center; }
.mnt-art { position: relative; width: 84px; height: 84px; margin-bottom: 18px; }
.mnt-logo { width: 84px; height: 84px; border-radius: 24%; filter: var(--logo-filter); box-shadow: 0 14px 34px -12px rgba(47, 102, 201, .6); }
.mnt-gear { position: absolute; right: -10px; bottom: -10px; width: 38px; height: 38px; border-radius: 50%; background: var(--mnt-soft); color: var(--mnt);
  border: 4px solid var(--card); display: flex; align-items: center; justify-content: center; }
.mnt-gear .ic { width: 20px; height: 20px; animation: mnt-spin 6s linear infinite; }
@keyframes mnt-spin { to { transform: rotate(360deg); } }
.mnt-status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--mnt-soft); color: var(--mnt); font-size: 13px; font-weight: 700; }
.mnt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mnt); box-shadow: 0 0 0 0 var(--mnt); animation: mnt-pulse 1.8s ease-out infinite; flex: none; }
@keyframes mnt-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mnt) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.mnt h1 { margin: 16px 0 10px; font: 800 clamp(28px, 7vw, 36px)/1.04 var(--font-display); letter-spacing: -.035em; }
.mnt-msg { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.mnt-road { position: relative; width: 100%; max-width: 260px; height: 34px; margin: 22px 0 4px; }
.mnt-road::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; border-bottom: 2px dashed var(--line); }
.mnt-bus { position: absolute; bottom: 9px; left: 0; width: 30px; height: 24px; color: var(--brand); animation: mnt-drive 5.5s ease-in-out infinite; }
.mnt-bus .ic { width: 26px; height: 26px; }
@keyframes mnt-drive { 0% { left: -4%; opacity: 0; } 10% { opacity: 1; } 45%, 55% { left: calc(50% - 15px); } 90% { opacity: 1; } 100% { left: 92%; opacity: 0; } }
.mnt-eta { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 9px 14px; border-radius: 16px; background: var(--surface); font-size: 14.5px; }
.mnt-eta .ic { width: 18px; height: 18px; color: var(--brand); }
.mnt-retry { margin-top: 22px; min-width: 180px; }
.mnt-hint { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.mnt-admin { position: relative; z-index: 1; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.mnt-admin:hover { color: var(--text); background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .mnt-gear .ic, .mnt-dot, .mnt-bus, .mnt .mnt-sky i { animation: none !important; } .mnt-bus { left: calc(50% - 15px); } }

/* Pastille pour les admins pendant la maintenance */
.mnt-pill { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--card); color: var(--text);
  box-shadow: var(--nav-shadow); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mnt-pill b { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--mnt-soft); color: var(--mnt); display: flex; align-items: center; }
@media (min-width: 960px) { .mnt-pill { bottom: 22px; left: 24px; transform: none; } }

/* Panneau admin */
.mnt-chip-on { background: var(--mnt-soft) !important; color: var(--mnt) !important; }
.mod-tabs .fchip .ic { width: 16px; height: 16px; }
.mnt-panel { display: flex; flex-direction: column; gap: 12px; margin: 4px 12px 24px; }
.mnt-head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; border-radius: 26px; background: var(--ok-soft); }
.mnt-head.on { background: var(--mnt-soft); }
.mnt-head-ic { width: 48px; height: 48px; border-radius: 16px; background: var(--card); color: var(--ok); display: flex; align-items: center; justify-content: center; flex: none; }
.mnt-head.on .mnt-head-ic { color: var(--mnt); }
.mnt-head-ic .ic { width: 24px; height: 24px; }
.mnt-head b { display: block; font: 800 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.mnt-head small { color: var(--muted); font-size: 13px; }
.mnt-switch { position: relative; width: 58px; height: 34px; border-radius: 999px; border: 0; padding: 0; background: var(--surface-2); cursor: pointer; flex: none; transition: background .2s; }
.mnt-switch span { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.mnt-switch.on { background: var(--mnt); }
.mnt-switch.on span { transform: translateX(24px); }
.mnt-switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.mnt-grid { display: grid; gap: 12px; }
.mnt-form { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-radius: 26px; }
.mnt-label { font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.mnt-presets, .mnt-etas { display: flex; flex-wrap: wrap; gap: 6px; }
.mnt-ta { min-height: 92px; resize: vertical; border-radius: 18px; padding: 12px 14px; line-height: 1.45; font: inherit; }
.mnt-count { align-self: flex-end; margin-top: -4px; }
.mnt-form .btn.block { margin-top: 6px; }
.mnt-go { background: var(--mnt) !important; color: #fff !important; }
:root[data-theme="dark"] .mnt-go { color: #1a1204 !important; }
.mnt-go .ic { width: 18px; height: 18px; margin-right: 6px; }
.mnt-note { margin: 4px 0 0; font-size: 12.5px; }
.mnt-phone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0 4px; }
.mnt-phone-lab { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mnt-phone-screen { width: 215px; height: 466px; border-radius: 34px; overflow: hidden; border: 6px solid var(--surface-2); background: var(--bg); position: relative; }
.mnt-phone-screen .mnt { position: absolute; top: 0; left: 0; width: 390px; height: 845px; min-height: 0; transform: scale(.52); transform-origin: top left; }
@media (min-width: 900px) {
  .mnt-grid { grid-template-columns: 1fr auto; align-items: start; }
  .mnt-phone { padding: 0 6px; }
}

/* ============================================================ v19 : communauté
   Suivre en retour, groupes de discussion, événements avec sondage, forums. */

/* --- Profil : « Te suit » */
.follows-you { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 650; vertical-align: middle; background: var(--surface-2); color: var(--muted); }

/* --- Groupes : photo double, création, membres */
.gav { position: relative; width: 52px; height: 52px; flex: none; display: block; }
.gav .avatar { position: absolute; width: 36px !important; height: 36px !important; font-size: 14px !important; box-shadow: 0 0 0 2.5px var(--card); }
.gav .avatar:first-child { top: 0; left: 0; }
.gav .avatar:last-child { right: 0; bottom: 0; }
.gav .gav-n { background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.th2.on .gav .avatar { box-shadow: 0 0 0 2.5px var(--brand-soft); }
.conv-head .gav { width: 40px; height: 40px; }
.conv-head .gav .avatar { width: 28px !important; height: 28px !important; font-size: 12px !important; }
button.conv-head { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.new-group-row { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 14px; }
.new-group-row:hover { background: var(--surface); }
.new-group-row > .ic { width: 18px; height: 18px; color: var(--muted); }
.ngr-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.ngr-ic .ic { width: 22px; height: 22px; }
.grp-form .field { margin-bottom: 12px; }
.grp-search { margin: 0 0 6px; }
.grp-hint { margin: 0 4px 8px; }
.grp-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.grp-picked:empty { display: none; }
.grp-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 3px; border-radius: 999px; border: 0; background: var(--brand-soft); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.grp-chip .avatar { width: 26px; height: 26px; font-size: 11px; }
.grp-chip .ic { width: 14px; height: 14px; color: var(--muted); }
.grp-people { max-height: min(46vh, 420px); overflow-y: auto; margin: 0 -6px 14px; }
.grp-people .empty { padding: 26px 12px; }
.grp-person { cursor: pointer; border-radius: 14px; }
.grp-person:hover { background: var(--surface); }
.grp-person.in { opacity: .6; cursor: default; }
.grp-check { width: 22px; height: 22px; accent-color: var(--brand); flex: none; cursor: pointer; }
.grp-members .list-item .btn { flex: none; }

/* --- Groupes : bulles avec nom et photo, messages « système » */
.gchat .msg.them.gm { padding-left: 36px; max-width: calc(76% + 36px); }
.gm-name { font-size: 12px; font-weight: 650; color: var(--muted); margin: 0 0 1px 12px; }
.gm-av { position: absolute; left: 0; bottom: 0; }
.gm-av .avatar { width: 28px; height: 28px; font-size: 12px; }
.msg-sys { align-self: center; max-width: 86%; text-align: center; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; line-height: 1.4; }
.msg-sys b { color: var(--text); font-weight: 700; }

/* --- Notifications : lien vers un sujet ou un événement */
.notif-ref { display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.notif-ref .ic { width: 20px; height: 20px; }
.notif-link { color: inherit; }
.notif-type.t-forum_reply, .notif-type.t-meetup_yes, .notif-type.t-meetup_comment, .notif-type.t-meetup_poll, .notif-type.t-meetup_cancel { background: var(--brand); color: var(--on-brand); }

/* --- Communauté : onglets, bandeau */
.com { padding-bottom: 28px; }
.com-seg { margin: 12px 12px 0; }
.com-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; padding: 10px 6px; }
.com-seg button .ic { width: 18px; height: 18px; }
.com-hero { display: flex; align-items: center; gap: 14px; padding: 16px; flex-wrap: wrap; }
.com-hero .grow { flex: 1; min-width: 200px; }
.com-hero b { font-size: 16.5px; letter-spacing: -.01em; }
.com-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.com-hero .btn { flex: none; gap: 6px; }
.com-hero .btn .ic { width: 18px; height: 18px; }
.com-hero-ic { width: 48px; height: 48px; border-radius: 15px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; flex: none; }
.com-hero-ic .ic { width: 24px; height: 24px; }
@media (max-width: 559.98px) { .com-hero .btn { width: 100%; } }
.com-title { padding-top: 18px; }
.com-more { display: block; margin: 6px auto 0; }
.com-none { padding: 0 16px; }

/* --- Événements : cartes */
.mu-list { display: flex; flex-direction: column; }
.mu-list .card { margin-top: 0; }
.mu-card { display: flex; gap: 14px; padding: 14px; color: inherit; text-decoration: none; transition: transform .15s ease; }
@media (hover: hover) { .mu-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); } }
.mu-card:active { transform: scale(.99); }
.mu-card.cancelled .mu-title { text-decoration: line-through; color: var(--muted); }
.mu-list.past .mu-card { opacity: .78; }
.mu-date { width: 56px; height: 62px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.mu-date small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mu-date b { font: 800 26px/1 var(--font-display, inherit); letter-spacing: -.03em; margin-top: 3px; }
.mu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mu-title { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.mu-line { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.mu-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-line .ic { width: 15px; height: 15px; flex: none; }
.mu-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.mu-foot small { font-size: 13px; color: var(--muted); }
.mu-flag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.mu-flag.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.mu-flag.muted { background: var(--surface-2); color: var(--muted); }
.mu-me { margin-left: auto; font-size: 12px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, #1f9d55 16%, transparent); color: #1f9d55; }
.mu-me.maybe { background: color-mix(in srgb, #d98b00 16%, transparent); color: #b77400; }
.faces { display: inline-flex; }
.faces .avatar { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 2px var(--card); }
.faces .avatar + .avatar { margin-left: -7px; }

/* --- Événement : page */
.mu-page { padding-bottom: 28px; }
.mu-hero { padding: 18px 16px; }
.mu-hero.cancelled h2 { text-decoration: line-through; color: var(--muted); }
.mu-hero-top { display: flex; gap: 14px; align-items: flex-start; }
.mu-hero-top .mu-date { width: 64px; height: 70px; }
.mu-hero-top .mu-date b { font-size: 30px; }
.mu-hero-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mu-hero h2 { margin: 0; font: 800 23px/1.15 var(--font-display, inherit); letter-spacing: -.03em; }
.mu-org { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.mu-org .avatar { width: 26px; height: 26px; font-size: 11px; }
.mu-org b { color: var(--text); }
.mu-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mu-fact { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.mu-fact > .ic { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.mu-fact > span { display: flex; flex-direction: column; gap: 2px; }
.mu-fact a { font-size: 13px; font-weight: 700; color: var(--brand); }
.mu-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mu-box { padding: 14px 16px 16px; }
.mu-box-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mu-box-h > b { font-size: 16.5px; }
.mu-rsvps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mu-rsvp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 72px; padding: 8px 4px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.mu-rsvp .ic { width: 22px; height: 22px; }
.mu-rsvp small { font-size: 12px; color: var(--muted); font-weight: 650; }
.mu-rsvp:disabled { opacity: .5; cursor: default; }
.mu-rsvp.r-yes.on { background: color-mix(in srgb, #1f9d55 14%, var(--card)); border-color: #1f9d55; color: #1a8a4a; }
.mu-rsvp.r-maybe.on { background: color-mix(in srgb, #d98b00 14%, var(--card)); border-color: #d98b00; color: #b77400; }
.mu-rsvp.r-no.on { background: var(--surface-2); border-color: var(--muted); color: var(--muted); }
.mu-rsvp.on small { color: inherit; }
.mu-going { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.mu-going b { color: var(--text); }
.mu-going .faces .avatar { width: 28px; height: 28px; font-size: 11px; }
.mu-add-poll { display: flex; align-items: center; gap: 12px; width: calc(100% - 20px); padding: 14px 16px; font: inherit; color: inherit; text-align: left; cursor: pointer; border-style: dashed; }
.mu-add-poll .grow { display: flex; flex-direction: column; gap: 2px; }
.mu-add-poll small { color: var(--muted); font-size: 13px; }
.mu-add-poll > .ic { width: 20px; height: 20px; color: var(--brand); }
.mu-add-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.mu-add-ic .ic { width: 20px; height: 20px; }
.mu-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.mu-tag .ic { width: 16px; height: 16px; }
.mu-q { display: block; font-size: 17px; letter-spacing: -.01em; margin: -2px 0 12px; line-height: 1.3; }
.mu-opts { display: flex; flex-direction: column; gap: 8px; }
.mu-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; overflow: hidden; }
.mu-opt:disabled { cursor: default; }
.mu-opt.on { border-color: var(--brand); }
.mu-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--brand) 16%, transparent); transition: width .4s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.mu-opt.lead .mu-bar { background: color-mix(in srgb, var(--brand) 26%, transparent); }
.mu-opt-l, .mu-opt-r { position: relative; display: flex; align-items: center; gap: 10px; }
.mu-opt-l { min-width: 0; font-weight: 650; }
.mu-opt-l > span:last-child { overflow-wrap: anywhere; }
.mu-opt-r { flex-direction: column; align-items: flex-end; gap: 0; flex: none; line-height: 1.15; }
.mu-opt-r b { font-size: 14.5px; }
.mu-opt-r small { font-size: 11.5px; color: var(--muted); }
.mu-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; }
.mu-opt.on .mu-check { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mu-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.mu-hint { margin: 10px 2px 0; }
@media (prefers-reduced-motion: reduce) { .mu-bar { transition: none; } }
.mu-comments { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.mu-none { margin: 0; }
.mu-c { display: flex; gap: 10px; align-items: flex-start; }
.mu-c .avatar { width: 34px; height: 34px; font-size: 13px; }
.mu-c-b { flex: 1; min-width: 0; background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 8px 12px; }
.mu-c-h { display: flex; align-items: baseline; gap: 8px; }
.mu-c-h small { color: var(--muted); font-size: 12px; }
.mu-c-b p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mu-c-del { width: 32px; height: 32px; color: var(--muted); flex: none; }
.mu-c-del .ic { width: 17px; height: 17px; }
.mu-cform { display: flex; gap: 8px; }
.mu-cform .input { flex: 1; min-width: 0; }
.mu-cform .btn { flex: none; }

/* --- Formulaires événement / sondage */
.mu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mu-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); margin-bottom: 14px; cursor: pointer; }
.mu-toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.mu-toggle span { display: flex; flex-direction: column; gap: 2px; }
.mu-toggle small { color: var(--muted); font-size: 13px; }
.mu-poll-fields { margin-bottom: 8px; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-add { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 12px; }
.poll-add .ic { width: 16px; height: 16px; }

/* --- Forums */
.fr-list { padding: 4px 0; }
.fr-row, .fr-topic { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; }
.fr-row + .fr-row, .fr-topic + .fr-topic { border-top: 1px solid var(--line); }
@media (hover: hover) { .fr-row:hover, .fr-topic:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); } }
.fr-row .grow, .fr-topic .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fr-row b, .fr-topic b { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.fr-row small, .fr-topic small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row small.fr-desc, .fr-topic small.fr-ex { font-size: 13.5px; color: var(--text); opacity: .8; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fr-row > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.fr-ic.avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; font-weight: 800; display: grid; place-items: center; flex: none; }
.fr-topic > .avatar { width: 40px; height: 40px; font-size: 15px; align-self: flex-start; margin-top: 2px; }
.fr-count { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 750; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 999px; flex: none; }
.fr-count.zero { color: var(--muted); background: var(--surface); }
.fr-count .ic { width: 14px; height: 14px; }
.fr-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.fr-head h2 { margin: 0 0 4px; font: 800 22px/1.15 var(--font-display, inherit); letter-spacing: -.03em; }
.fr-head p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; }
.fr-actions { display: flex; gap: 8px; margin: 0 10px; flex-wrap: wrap; }
.fr-actions .btn { gap: 6px; }
.fr-actions .btn .ic { width: 17px; height: 17px; }
.fr-post { padding: 16px; }
.fr-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.fr-crumb .ic { width: 15px; height: 15px; }
.fr-title { margin: 12px 0 10px; font: 800 22px/1.2 var(--font-display, inherit); letter-spacing: -.025em; overflow-wrap: anywhere; }
.fr-author { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.fr-author .avatar { width: 36px; height: 36px; font-size: 14px; }
.fr-author > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.fr-author small { color: var(--muted); font-size: 12.5px; }
.fr-body { margin-top: 14px; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.fr-replies { padding: 4px 0; }
.fr-none { padding: 14px 16px; margin: 0; }
.fr-r { display: flex; gap: 10px; align-items: flex-start; padding: 12px 8px 12px 14px; }
.fr-r + .fr-r { border-top: 1px solid var(--line); }
.fr-r .avatar { width: 36px; height: 36px; font-size: 14px; }
.fr-r-h { display: flex; align-items: baseline; gap: 8px; }
.fr-r-h small { color: var(--muted); font-size: 12px; }
.fr-r p { margin: 3px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fr-r-more { width: 34px; height: 34px; color: var(--muted); flex: none; }
.fr-r-more .ic { width: 18px; height: 18px; }
.fr-r.fresh { animation: fr-in .5s ease; }
@keyframes fr-in { from { background: var(--brand-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .fr-r.fresh { animation: none; } }
.fr-reply-form { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fr-reply-form textarea { resize: vertical; min-height: 84px; }
.fr-reply-form .btn { align-self: flex-end; gap: 6px; }
.fr-reply-form .btn .ic { width: 17px; height: 17px; }

.com-form { padding: 8px 16px 18px; }
.fr-r > .grow { flex: 1; min-width: 0; }
.topbar .conv-head .gav { width: 38px; height: 38px; }
.topbar .conv-head .gav .avatar { width: 26px !important; height: 26px !important; font-size: 11px !important; }

/* ---- v19.1 : liens de réseaux et spots épinglés ---- */
.profile-head .ph-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; }
.ph-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px 5px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.ph-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-link .ic { width: 17px; height: 17px; flex: none; color: var(--brand); }
.ph-link:hover { background: color-mix(in srgb, var(--brand) 18%, var(--card)); }
.ph-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tile .tile-pin { position: absolute; top: 7px; left: 7px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 6px rgba(0, 0, 0, .35); }
.tile .tile-pin .ic { width: 15px; height: 15px; }
.links-edit .link-in { position: relative; display: block; margin-bottom: 8px; }
.links-edit .link-in .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.links-edit .link-in .input { padding-left: 40px; }
.links-edit > span small { font-weight: 400; }
