/* =====================================================================
   Bulle — Navigation (refonte du 15/11) : barre, Discussions, Amis, Moi, Créer
   Tout est sous html.nav2 (classe posée par v5-nav.js) : sans le module,
   l'ancienne navigation reste intacte. Retour arrière : retirer ce fichier.
   ===================================================================== */

/* =================================================================
   ORDINATEUR : la colonne d'espaces
   ================================================================= */
@media (min-width: 761px) {
  html.nav2 body.shell-e .app .rail #btn-amis {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; order: 2; position: relative;
    width: 68px; height: 62px; border-radius: 22px; background: transparent; box-shadow: none; color: var(--texte-2);
  }
  html.nav2 body.shell-e .app .rail #btn-amis .sp-label { display: block; font: 650 11.5px/1 var(--font-ui); letter-spacing: .01em; }
  html.nav2 body.shell-e .app .rail #btn-amis:hover { background: var(--surface-hover); color: var(--texte); }
  html.nav2 body.shell-e .app .rail #btn-amis.active,
  html.nav2 body.shell-e .app .rail #btn-mobile-me.active { background: var(--accent-soft); color: var(--accent-ink, var(--violet)); }
  html.nav2 body.shell-e .app .rail #btn-amis::before { content: none; }
  html.nav2 body.shell-e .app .rail #btn-amis .badge-dot { position: absolute; top: 4px; right: 10px; left: auto; }
  html.nav2 body.shell-e .app .rail #btn-social { order: 3; }
  html.nav2 body.shell-e .app .rail #btn-mobile-me { order: 4; }
  html.nav2 body.shell-e .app .rail #btn-m-create { order: 5; }
}

/* =================================================================
   TÉLÉPHONE : une vraie barre d'onglets, pleine largeur
   Discussions · Amis · ＋ · Fil · Moi
   ================================================================= */
@media (max-width: 760px) {
  html.nav2 body.shell-e { --tabbar-h: 58px; }
  html.nav2 body.shell-e .app { --tabbar-h: 58px; }
  html.nav2 body.shell-e .app .rail {
    left: 0; right: 0; bottom: 0; width: auto; height: calc(var(--tabbar-h) + var(--sab, 0px));
    padding: 0 max(6px, var(--sal, 0px)) var(--sab, 0px) max(6px, var(--sar, 0px));
    border-radius: 0; border: 0; border-top: 1px solid var(--hairline);
    display: flex; flex-direction: row; justify-content: space-around; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--panneau) 86%, transparent); color: var(--texte-3);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: none;
  }
  html.nav2 body.shell-e.dock-tuck .app .rail { translate: 0 calc(100% + 2px); }
  html.nav2 body.shell-e .app .rail .bubble { color: var(--texte-3); }
  html.nav2 body.shell-e .app .rail #btn-home,
  html.nav2 body.shell-e .app .rail #btn-amis,
  html.nav2 body.shell-e .app .rail #btn-social,
  html.nav2 body.shell-e .app .rail #btn-mobile-me {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative;
    flex: 1 1 0; max-width: none; height: var(--tabbar-h); min-height: 0; margin: 0; padding: 0; border-radius: 0;
    background: transparent !important; box-shadow: none !important; color: var(--texte-3);
    -webkit-tap-highlight-color: transparent;
  }
  html.nav2 body.shell-e .app .rail #btn-home { order: 1; }
  html.nav2 body.shell-e .app .rail #btn-amis { order: 2; }
  html.nav2 body.shell-e .app .rail #btn-m-create { order: 3; }
  html.nav2 body.shell-e .app .rail #btn-social { order: 4; }
  html.nav2 body.shell-e .app .rail #btn-mobile-me { order: 5; }
  html.nav2 body.shell-e .app .rail .sp-label { display: block; font: 600 10.5px/1 var(--font-ui); letter-spacing: 0; }
  html.nav2 body.shell-e .app .rail #btn-home svg,
  html.nav2 body.shell-e .app .rail #btn-amis svg,
  html.nav2 body.shell-e .app .rail #btn-social svg,
  html.nav2 body.shell-e .app .rail #btn-mobile-me svg { width: 25px !important; height: 25px !important; stroke-width: 1.9; transition: transform .2s var(--ease-out, ease-out); }
  html.nav2 body.shell-e .app .rail .bubble.m-active,
  html.nav2 body.shell-e .app .rail .bubble.social.m-active { color: var(--violet); background: transparent !important; }
  html.nav2 body.shell-e .app .rail .bubble.m-active svg { stroke-width: 2.3; }
  html.nav2 body.shell-e .app .rail .bubble.m-active .sp-label { font-weight: 750; }
  html.nav2 body.shell-e .app .rail .bubble:active svg { transform: scale(.88); }
  /* Moi : la photo de profil, entourée quand l'onglet est actif */
  html.nav2 body.shell-e .app .rail #btn-mobile-me .avatar { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 1.5px var(--hairline-strong, var(--hairline)); }
  html.nav2 body.shell-e .app .rail #btn-mobile-me.m-active .avatar { box-shadow: 0 0 0 2px var(--panneau), 0 0 0 3.5px var(--violet); }
  /* Créer : une pastille au centre, pas une bulle flottante */
  html.nav2 body.shell-e .app .rail #btn-m-create {
    display: grid !important; place-items: center; flex: 0 0 auto; align-self: center;
    width: 52px; height: 36px; min-height: 0; margin: 0 4px; border-radius: 12px;
    background: var(--sheen, none), var(--iris, var(--violet)); color: #fff;
    box-shadow: 0 6px 14px -8px var(--violet); transition: transform .15s;
  }
  html.nav2 body.shell-e .app .rail #btn-m-create:active { transform: scale(.92); }
  html.nav2 body.shell-e .app .rail #btn-m-create svg { width: 22px !important; height: 22px !important; stroke-width: 2.6; }
  /* Pastilles de non-lus */
  html.nav2 body.shell-e .app .rail .bubble .badge-dot {
    position: absolute; top: 5px; left: calc(50% + 5px); right: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: grid; place-items: center; font: 750 10.5px/1 var(--font-ui); background: var(--accent-2, #F2559F); color: #fff; border: 2px solid var(--panneau);
  }
  html.nav2 body.shell-e .app .rail .badge-dot[hidden] { display: none !important; }

  /* -------- Android : indicateur en pilule derrière l'icône (Material) -------- */
  html.nav2.os-android body.shell-e { --tabbar-h: 64px; }
  html.nav2.os-android body.shell-e .app { --tabbar-h: 64px; }
  html.nav2.os-android body.shell-e .app .rail { background: var(--panneau); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0;
    box-shadow: 0 -1px 0 var(--hairline), 0 -6px 18px -14px rgba(var(--shadow-rgb, 27, 16, 51), .4); }
  html.nav2.os-android body.shell-e .app .rail #btn-home svg,
  html.nav2.os-android body.shell-e .app .rail #btn-amis svg,
  html.nav2.os-android body.shell-e .app .rail #btn-social svg,
  html.nav2.os-android body.shell-e .app .rail #btn-mobile-me svg { width: 24px !important; height: 24px !important; }
  html.nav2.os-android body.shell-e .app .rail .bubble:not(#btn-m-create)::after {
    content: ""; position: absolute; top: 8px; left: 50%; width: 56px; height: 30px; margin-left: -28px; border-radius: 15px; z-index: -1;
    background: var(--accent-soft); transform: scaleX(.4); opacity: 0; transition: transform .25s cubic-bezier(.2, .9, .25, 1), opacity .2s;
  }
  html.nav2.os-android body.shell-e .app .rail .bubble.m-active::after { transform: none; opacity: 1; }
  html.nav2.os-android body.shell-e .app .rail .bubble { isolation: isolate; }
  html.nav2.os-android body.shell-e .app .rail .bubble.m-active { color: var(--accent-ink, var(--violet)); }
  html.nav2.os-android body.shell-e .app .rail .bubble .badge-dot { top: 6px; }
  html.nav2.os-android body.shell-e .app .rail .sp-label { font-size: 11.5px; font-weight: 600; }
  html.nav2.os-android body.shell-e .app .rail #btn-m-create { width: 52px; height: 40px; border-radius: 14px; }
  html.nav2.os-android .ce-page { overscroll-behavior-y: contain; }

  /* -------- iPhone : barre translucide, défilement élastique conservé -------- */
  html.nav2.os-ios body.shell-e .app .rail { background: color-mix(in srgb, var(--panneau) 78%, transparent); }
  html.nav2.os-ios .ce-page { overscroll-behavior-y: auto; }

  /* Pages au-dessus de la barre (elle n'est plus flottante) */
  html.nav2 .ce-page { padding-bottom: calc(var(--tabbar-h, 58px) + var(--sab, 0px) + 18px); }
  /* Le profil (si ouvert) s'arrête au-dessus de la barre */
  html.nav2 body.shell-e.m-profile .modal-back { bottom: calc(var(--tabbar-h) + var(--sab, 0px)); }
}

/* Petits écrans (≤ 360 px) : libellés un peu plus serrés */
@media (max-width: 360px) {
  html.nav2 body.shell-e .app .rail .sp-label { font-size: 9.5px; }
  html.nav2 body.shell-e .app .rail #btn-m-create { width: 46px; }
}

/* =================================================================
   DISCUSSIONS (accueil)
   ================================================================= */
.dz-head, .nv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dz-title, .nv-title { margin: 0; font: 750 clamp(26px, 7vw, 34px)/1.05 var(--font-titre); letter-spacing: -.045em; color: var(--texte); }
.nv-head-act { display: flex; gap: 8px; }
.dz-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 14px; background: var(--panneau-2); color: var(--texte-3); cursor: text; }
.dz-search[hidden] { display: none; }
.dz-search-in { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--texte); font: 500 16px/1 var(--font-ui); outline: none; }
.dz-search-in::-webkit-search-cancel-button { filter: grayscale(1); }
.dz-search:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--violet) 45%, transparent); }
.dz-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dz-sec-h .ce-h2 { display: flex; align-items: center; gap: 8px; }
.dz-oncount { font-weight: 650; letter-spacing: .02em; text-transform: none; color: var(--vert, #2BB673); }
.dz-oncount:empty { display: none; }
.dz-link { border: 0; background: none; padding: 6px 2px; color: var(--violet); font: 650 13.5px/1 var(--font-ui); cursor: pointer; }
.dz-friends { display: grid; gap: 8px; }

/* Rangée d'amis (avec leurs notes) */
.dz-row { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.dz-row::-webkit-scrollbar { display: none; }
.dz-p { flex: none; width: 76px; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--texte); cursor: pointer; scroll-snap-align: start;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.dz-note { position: relative; max-width: 74px; min-height: 26px; padding: 5px 8px; border-radius: 13px; background: var(--panneau); box-shadow: var(--rim, none), 0 4px 10px -6px rgba(var(--shadow-rgb, 27, 16, 51), .35);
  font: 550 11px/1.2 var(--font-ui); color: var(--texte-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; text-align: center; margin-bottom: -10px; z-index: 1; }
.dz-note.is-blank { visibility: hidden; }
.dz-note.is-empty { color: var(--texte-3); font-style: italic; }
.dz-av { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; transition: transform .15s; }
.dz-av .avatar { width: 60px !important; height: 60px !important; font-size: 22px !important; }
.dz-p.is-on .dz-av::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--vert, #2BB673); border: 2.5px solid var(--fond); }
.dz-p .avatar .status-dot, .dz-p .avatar .pres-dot { display: none; }
.dz-p small { max-width: 74px; font: 600 11.5px/1.15 var(--font-ui); color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-p.is-pressing .dz-av, .dz-p:active .dz-av { transform: scale(.92); }
.dz-plus { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font: 800 15px/1 var(--font-ui); border: 2px solid var(--fond); }
.dz-av-add { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink, var(--violet)); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.dz-p .ce-badge { top: 0; right: 0; }

/* Filtres */
.dz-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.dz-chips::-webkit-scrollbar { display: none; }
.dz-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--hairline); background: var(--panneau); color: var(--texte-2); font: 650 13.5px/1 var(--font-ui); cursor: pointer; }
.dz-chip[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: transparent; }
.dz-chip-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent-2, #F2559F); color: #fff; font-size: 10.5px; }
.dz-chip-n[hidden] { display: none; }

/* Liste : sur téléphone, à plat comme une messagerie */
.dz-page { gap: 16px; }
.dz-page .ce-convs { background: none; box-shadow: none; padding: 0; margin: 0 -8px; gap: 0; }
.dz-page .ce-conv { min-height: 68px; padding: 8px; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.dz-page .ce-conv:active { background: var(--surface-hover); }
.dz-page .ce-conv-av .avatar, .dz-page .ce-group { width: 52px !important; height: 52px !important; }
.ce-group.is-comm { border-radius: 30%; }
.ce-group img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ce-conv-av.dz-orb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .7), transparent 42%), linear-gradient(135deg, var(--mo-a, #8B6BFF), var(--mo-b, #FF7EC8)); box-shadow: inset 0 -5px 10px rgba(0, 0, 0, .12); }
.ce-conv.is-bulle .ce-conv-txt small { color: var(--violet); font-weight: 600; }
.dz-action .ce-conv-av.dz-av-add { width: 52px; height: 52px; }
.dz-action .ce-conv-txt b { color: var(--violet); }
.dz-action { color: var(--texte); }
.ce-conv > .nv-ic, .dz-action > .ce-ic { color: var(--texte-3); }
.dz-page .e-empty, .nv-page .e-empty { padding: 32px 16px; }

/* Ordinateur : qui est en ligne */
.dz-home .ce-title { font-size: clamp(26px, 2.6vw, 34px); }
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.dz-card { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-lg, 20px); background: var(--panneau); box-shadow: var(--rim, none), var(--e-1, none); }
.dz-card-who { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.dz-card-av { position: relative; flex: none; }
.dz-card-av .avatar { width: 44px !important; height: 44px !important; }
.dz-card.is-on .dz-card-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--vert, #2BB673); border: 2px solid var(--panneau); }
.dz-card-t { min-width: 0; display: grid; gap: 2px; }
.dz-card-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-card-t small, .dz-card-t .v5-activity { font-size: 12.5px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-card-act { display: flex; gap: 8px; }
.dz-card-act .e-btn--primary { flex: 1; justify-content: center; }
.dz-call { background: var(--panneau-2); color: var(--texte-2); }

/* Nouvelle discussion */
.dz-new-acts { display: grid; gap: 2px; margin: 4px 0 12px; }
.dz-pick { display: grid; gap: 2px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }

/* =================================================================
   AMIS
   ================================================================= */
.nv-page { gap: 16px; }
.nv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--panneau-2); }
.nv-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--texte-2); font: 650 13.5px/1 var(--font-ui); cursor: pointer; }
.nv-tab[aria-selected="true"] { background: var(--panneau); color: var(--texte); box-shadow: 0 2px 8px -4px rgba(var(--shadow-rgb, 27, 16, 51), .35); }
.nv-tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent-2, #F2559F); color: #fff; font-size: 10.5px; }
.nv-tab-n[hidden] { display: none; }
.nv-body { display: grid; gap: 12px; align-content: start; }
.nv-h2 { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font: 700 var(--fs-xs, 12px)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.nv-dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--vert, #2BB673); }
.nv-muted { margin: 0; color: var(--texte-3); font-size: var(--fs-sm, 14px); }
.nv-list { display: grid; gap: 2px; margin: 0 -8px; }
.nv-frow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px; transition: opacity .2s; }
.nv-frow.is-busy { opacity: .45; pointer-events: none; }
.nv-frow-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nv-frow-av { position: relative; flex: none; }
.nv-frow-av .avatar { width: 48px !important; height: 48px !important; }
.nv-frow.is-on .nv-frow-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--vert, #2BB673); border: 2.5px solid var(--fond); }
.nv-frow-t { min-width: 0; display: grid; gap: 2px; }
.nv-frow-t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-frow-t small, .nv-frow-t .v5-activity { font-size: 13px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-frow-act { flex: none; display: flex; align-items: center; gap: 6px; }
.nv-round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--panneau-2); color: var(--texte-2); cursor: pointer; }
.nv-round.is-main { background: var(--accent-soft); color: var(--accent-ink, var(--violet)); }
.nv-round:active { transform: scale(.92); }
.nv-ic { display: inline-grid; place-items: center; line-height: 0; }
.nv-reqbar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--texte);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent-2, #F2559F) 14%, var(--panneau)), var(--panneau)); box-shadow: var(--rim, none); }
.nv-reqbar > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.nv-reqbar small { color: var(--texte-3); font-size: 12.5px; }
.nv-reqbar-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-2, #F2559F); color: #fff; font: 800 15px/1 var(--font-ui); }
.nv-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nv-tool { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 0; border-radius: 16px; background: var(--panneau); box-shadow: var(--rim, none), var(--e-1, none); color: var(--texte); cursor: pointer; text-align: left; }
.nv-tool > span:last-child { min-width: 0; display: grid; gap: 2px; }
.nv-tool b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-tool small { font-size: 11.5px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-tool-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.nv-tool-ic.is-map { background: linear-gradient(135deg, #1FA9CF, #2BB673); }
.nv-tool-ic.is-aff { background: linear-gradient(135deg, var(--violet), var(--accent-2, #F2559F)); }
.nv-addbox { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--panneau); box-shadow: var(--rim, none), var(--e-1, none); }
.nv-addbox .nv-h2 { margin: 0; }
.nv-add { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px 0 14px; border-radius: 14px; background: var(--panneau-2); }
.nv-add:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--violet) 45%, transparent); }
.nv-add-at { color: var(--texte-3); font: 700 16px/1 var(--font-ui); }
.nv-add-in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--texte); font: 600 16px/1 var(--font-ui); outline: none; }
.nv-add .e-btn { height: 40px; }
.nv-note { margin: 0; font-size: 13.5px; min-height: 1em; }
.nv-note.ok { color: var(--vert, #2BB673); }
.nv-note.bad { color: var(--danger, #E5484D); }
.nv-me-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px dashed var(--hairline-strong, var(--hairline)); border-radius: 14px; background: none; color: var(--texte); cursor: pointer; }
.nv-me-code-t { display: grid; gap: 2px; text-align: left; }
.nv-me-code-t small { font-size: 11.5px; color: var(--texte-3); }
.nv-me-code-a { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font: 650 13.5px/1 var(--font-ui); }

/* =================================================================
   MOI
   ================================================================= */
.nv-moi { gap: 14px; }
.nv-mecard { display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: var(--panneau); box-shadow: var(--rim, none), var(--e-1, none); }
.nv-mecard-who { display: flex; align-items: center; gap: 14px; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.nv-mecard-av .avatar { width: 64px !important; height: 64px !important; font-size: 24px !important; }
.nv-mecard-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nv-mecard-t b { font: 750 1.25rem/1.15 var(--font-titre); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-mecard-t small { color: var(--texte-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-mecard-act { display: flex; gap: 8px; flex-wrap: wrap; }
.nv-mecard-act .e-btn { flex: 1; justify-content: center; background: var(--panneau-2); }
.nv-plus { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; color: #fff;
  background: var(--sheen, none), linear-gradient(120deg, var(--violet), var(--accent-2, #F2559F)); box-shadow: 0 10px 24px -14px var(--violet); }
.nv-plus .nv-mrow-t small { color: rgba(255, 255, 255, .82); }
.nv-plus-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.nv-group { display: grid; gap: 8px; }
.nv-mlist { display: grid; padding: 4px; border-radius: 20px; background: var(--panneau); box-shadow: var(--rim, none), var(--e-1, none); }
.modal .nv-mlist { box-shadow: none; background: none; padding: 0; }
.nv-mrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 16px; background: none; color: var(--texte); cursor: pointer; text-align: left; font: 600 15px/1.2 var(--font-ui); }
.nv-mrow:hover, .nv-mrow:active { background: var(--surface-hover); }
.nv-mrow + .nv-mrow { box-shadow: 0 -1px 0 var(--hairline); }
.nv-mrow:hover + .nv-mrow, .nv-mrow + .nv-mrow:hover { box-shadow: none; }
.nv-mrow-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink, var(--violet)); }
.nv-mrow-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nv-mrow-t b { font-weight: 650; }
.nv-mrow-t small { font-size: 12.5px; font-weight: 500; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-mrow > .nv-ic:last-child { color: var(--texte-3); }
.nv-mrow.is-danger { color: var(--danger, #E5484D); }
.nv-mrow.is-staff .nv-mrow-ic { background: color-mix(in srgb, var(--accent-3, #1FA9CF) 16%, var(--panneau)); color: var(--accent-3, #1FA9CF); }
.modal .nv-mrow > .nv-ic:first-child { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink, var(--violet)); }
.modal .nv-mrow.is-danger > .nv-ic:first-child { background: color-mix(in srgb, var(--danger, #E5484D) 12%, var(--panneau)); color: var(--danger, #E5484D); }
.nv-foot { margin: 6px 0 0; text-align: center; color: var(--texte-3); font: 700 12px/1 var(--font-titre); letter-spacing: .2em; text-transform: uppercase; opacity: .6; }

@media (min-width: 761px) {
  .nv-page { max-width: 760px; width: 100%; margin: 0 auto; }
  .nv-title { font-size: 32px; }
}

/* =================================================================
   CRÉER : trois familles, tuiles colorées
   ================================================================= */
.modal.nv-create { display: grid; gap: 10px; }
.nv-ctitle { margin: 0 0 2px; }
.nv-create .nv-h2 { margin: 8px 0 0; }
.nv-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nv-cslot:empty { display: none; }
.nv-ct { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 66px; padding: 12px; border: 0; border-radius: 18px; background: var(--panneau-2); color: var(--texte); cursor: pointer; text-align: left;
  transition: transform .12s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.nv-ct:hover { background: var(--surface-hover); }
.nv-ct:active { transform: scale(.96); }
.nv-ct-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 -4px 10px rgba(0, 0, 0, .12); }
.nv-ct-t { min-width: 0; display: grid; gap: 2px; }
.nv-ct-t b { font: 700 14.5px/1.15 var(--font-ui); }
.nv-ct-t small { font-size: 12px; color: var(--texte-3); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nv-ct.is-post .nv-ct-ic { background: linear-gradient(135deg, #6B4BFF, #8E7BFF); }
.nv-ct.is-story .nv-ct-ic { background: linear-gradient(135deg, #F2559F, #FF9A62); }
.nv-ct.is-snap .nv-ct-ic { background: linear-gradient(135deg, #FFC93C, #FF8A3D); }
.nv-ct.is-live .nv-ct-ic { background: linear-gradient(135deg, #E5484D, #F2559F); }
.nv-ct.is-bulle .nv-ct-ic { background: linear-gradient(135deg, #8B6BFF, #FF7EC8); }
.nv-ct.is-rdv .nv-ct-ic { background: linear-gradient(135deg, #1FA9CF, #6B4BFF); }
.nv-ct.is-group .nv-ct-ic { background: linear-gradient(135deg, #2BB673, #1FA9CF); }
.nv-ct.is-comm .nv-ct-ic { background: linear-gradient(135deg, #52476E, #857BA2); }
@media (min-width: 761px) {
  .modal.nv-create { width: min(560px, calc(100vw - 32px)); }
  .nv-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Correctifs de mise en page (grille à hauteur fixe : les rangées défilantes ne doivent pas être écrasées) */
.dz-page, .nv-page { grid-auto-rows: max-content; }
html.nav2 label.dz-search { display: flex !important; flex-direction: row; flex-wrap: nowrap; align-items: center; margin: 0; }
html.nav2 .dz-search > .ce-ic, html.nav2 .dz-search > .nv-ic { flex: none; }
html.nav2 .dz-search .dz-search-in { width: auto; flex: 1 1 auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; }
/* Rangée d'amis : seul le point vert « en ligne » (pas le point gris de l'avatar) */
.dz-p .avatar .status, .nv-frow .avatar .status, .dz-card .avatar .status { display: none; }
/* Feuille Créer : pas d'anneau de focus au toucher */
.nv-ct:focus:not(:focus-visible) { outline: none; box-shadow: none; }
@media (max-width: 420px) {
  .nv-ct { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; }
  .nv-ct-ic { width: 38px; height: 38px; border-radius: 12px; }
  .nv-ct-t b { font-size: 14px; }
}
.nv-cgrid > .nv-ct:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dz-friends, .nv-body, .nv-group, .ce-sec { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) { #modal-box.modal.nv-create { width: min(560px, calc(100vw - 32px)); max-width: 560px; } }
.dz-row { scroll-padding-inline: 16px; }

/* Discussions (téléphone) : rendez-vous à venir, seulement s'il y en a */
.dz-rdv[hidden] { display: none !important; }
.dz-rdv { margin: 2px 0 6px; gap: 8px; }
.dz-rdv .rv-row { gap: 6px; }

/* ===== Nettoyage du social (15/11) ===== */
/* Téléphone : le Fil retrouve ses onglets (Fil · Vidéos · Découvrir · Rechercher) ; « Enregistrés » et « Mes publications » sont dans Moi */
@media (max-width: 760px) {
  html.nav2 .social > .social-tabs, html.nav2 .social[data-scope="feed"] > .social-tabs, html.nav2 .social[data-scope="discover"] > .social-tabs {
    display: flex !important; margin: 4px 12px 6px; padding: 0; gap: 6px; background: none; border: 0; box-shadow: none; overflow-x: auto; scrollbar-width: none;
  }
  html.nav2 .social > .social-tabs .social-tab { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne, #E6E5DF); background: var(--panneau, #fff); font-size: .86rem; font-weight: 600; gap: 6px; }
  html.nav2 .social > .social-tabs .social-tab.active { background: var(--texte, #15131C) !important; color: var(--fond, #fff) !important; border-color: transparent !important; box-shadow: none !important; }
  html.nav2 .social > .social-tabs .social-tab svg { width: 15px; height: 15px; }
  html.nav2 .social > .social-tabs .social-tab span { display: inline; }
  html.nav2 .social > .social-tabs .social-tab[data-tab="saved"]:not(.active), html.nav2 .social > .social-tabs .social-tab[data-tab="mine"]:not(.active) { display: none; }
}
/* Ordinateur : la colonne « Publications » à gauche fait déjà office d'onglets */
@media (min-width: 761px) {
  html.nav2 .social > .social-tabs { display: none; }
}
/* Ta story : une seule bulle (toucher = voir, + = ajouter) */
.story-item.add.has-story .story-ring { background: conic-gradient(from 210deg, #ffb020, #ff5fa2, var(--violet, #7c5cff), #ff5fa2, #ffb020); }
.story-item.add.has-story .story-ring::after { display: none; }
.story-plus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--violet, #6E58FF); color: #fff; font-weight: 900; font-size: 16px; line-height: 1;
  display: grid; place-items: center; border: 2px solid var(--fond, #fff); cursor: pointer; z-index: 1; }
/* Au-dessus du Fil : une seule invitation à la fois (Affinités, sinon « Ouvrir une bulle ») */
.stories:has(.af-slot > *) .mo-feedpill { display: none; }
