/* ============================================================================
 * MYCELL — fil social : commentaires sous les publications, favoris produits
 *                                                      build social-2026-10-07-1
 * Gros textes, grandes cibles (≥ 44 px), contraste AA ; les couleurs suivent
 * le thème (clair / sombre) via les jetons de noyau/theme.css.
 * ========================================================================== */

/* ─── Barre d'actions : 💬 et son compteur, 🛒 rapide ─── */
.post-com-bt { position: relative; width: auto; min-width: 42px; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; }
.post-com-n { font-size: var(--t-s); font-weight: 800; color: var(--ink2); }
.post-com-n:empty { display: none; }
.post-panier { color: var(--accent-t); }

/* ─── Sous la légende : derniers commentaires et « Ajouter un commentaire… » ─── */
.post-com { padding: 0 14px 12px; display: grid; gap: 6px; }
.post-legende + .post-com, .vendu-par + .post-com { margin-top: -6px; }
.post-com-liste { display: grid; gap: 3px; }
.post-com-liste:empty { display: none; }
.post-com-tous { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--ink3); font-size: var(--t-s); font-weight: 700; cursor: pointer; }
.post-com-tous:hover { color: var(--ink2); text-decoration: underline; }
.post-com-ligne { margin: 0; font-size: var(--t-s); line-height: 1.45; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-com-ligne b { color: var(--ink); font-weight: 800; }
.post-com-ajout { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px 6px 6px; border: 1px solid var(--ligne); border-radius: 99px;
  background: var(--carte2); color: var(--ink3); font-size: var(--t-s); text-align: left; cursor: text; transition: border-color .2s, background .2s; }
.post-com-ajout:hover { border-color: color-mix(in srgb, var(--u-a, var(--bleu)) 45%, transparent); background: var(--carte); }
.post-com-invite { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-com-emojis { flex-shrink: 0; letter-spacing: 2px; font-size: 15px; opacity: .85; }
.pastille-membre.mini { width: 30px; height: 30px; font-size: 13px; }
.pastille-membre.anonyme { background: var(--neutre-fond); color: var(--ink3); }
.pastille-membre.anonyme .ic { width: 16px; height: 16px; }

/* ─── Feuille des commentaires ─── */
.fc { display: flex; flex-direction: column; gap: 12px; min-height: min(56vh, 520px); }
.fc-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; flex: 1; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
.fc-com { display: flex; gap: 10px; align-items: flex-start; animation: fc-arrive .35s var(--ease) both; }
@keyframes fc-arrive { from { opacity: 0; transform: translateY(8px); } }
.fc-bulle { flex: 1; min-width: 0; }
.fc-bulle > p { margin: 0; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--carte2); border: 1px solid var(--ligne); font-size: var(--t-m); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.fc-bulle > p b { font-weight: 800; margin-right: 2px; }
.fc-bulle small { display: block; margin: 4px 0 0 6px; font-size: var(--t-xs); color: var(--ink3); }
.fc-bulle small .lien { font-size: inherit; padding: 0; }
.fc-rep { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0 14px; font-size: var(--t-s); color: var(--ink2); }
.fc-rep .avatar { width: 26px; height: 26px; flex-shrink: 0; }
.fc-rep b { color: var(--ink); }
.fc-vide { display: grid; justify-items: center; gap: 8px; padding: 28px 10px; text-align: center; color: var(--ink3); font-size: var(--t-m); }
.fc-vide .ic { width: 34px; height: 34px; opacity: .6; }
.fc-form { position: sticky; bottom: 0; display: grid; gap: 8px; padding-top: 8px; background: linear-gradient(180deg, transparent, var(--carte) 18%); }
.fc-emojis { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fc-emojis button { flex-shrink: 0; width: 44px; height: 40px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte2); font-size: 20px; line-height: 1; cursor: pointer; transition: transform .15s var(--ease); }
.fc-emojis button:active { transform: scale(.9); }
.fc-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 6px; border: 1.5px solid var(--ligne); border-radius: 22px; background: var(--carte); }
.fc-saisie:focus-within { border-color: var(--bleu2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bleu2) 18%, transparent); }
.fc-saisie textarea { flex: 1; min-height: 36px; max-height: 140px; padding: 8px 4px; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: max(16px, var(--t-m)); line-height: 1.4; }
.fc-envoyer { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--bleu2), var(--bleu)); color: #fff; box-shadow: 0 8px 18px -8px var(--bleu); cursor: pointer; }
.fc-envoyer:disabled { opacity: .5; }
.fc-envoyer .ic { width: 20px; height: 20px; }
.fc-connexion { display: grid; gap: 10px; justify-items: start; padding: 14px; border-radius: var(--r); background: var(--carte2); border: 1px solid var(--ligne); }
.fc-connexion p { margin: 0; font-size: var(--t-m); }
.fc-regles { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--t-xs); color: var(--ink3); }
.fc-regles .ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

/* ─── Favoris : deux sortes (boutiques, produits) ─── */
.onglets-favoris { display: flex; width: 100%; max-width: 460px; margin: 0 0 16px; }
.onglets-favoris button { flex: 1; height: 42px; font-size: var(--t-m); }
.onglets-favoris em { font-style: normal; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--neutre-fond); font-size: var(--t-xs); font-weight: 800; color: var(--ink2); }
.onglets-favoris button[aria-selected="true"] em { background: var(--bleu); color: #fff; }
.fp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.fp-carte { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre); animation: fc-arrive .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.fp-visuel { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; background: var(--fond2); overflow: hidden; cursor: pointer; }
.fp-visuel > img, .fp-visuel > svg, .fp-visuel > .vx-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-vide { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink3); }
.fp-vide .ic { width: 40px; height: 40px; }
.fp-corps { display: grid; gap: 2px; padding: 10px 12px 4px; }
.fp-corps b { font-size: var(--t-m); font-weight: 800; line-height: 1.3; }
.fp-corps small { font-size: var(--t-xs); color: var(--ink3); }
.fp-actions { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; margin-top: auto; }
.fp-panier { margin-left: auto; }
.fav.fav-p[aria-pressed="true"] { color: var(--rouge); }
.fav.fav-p[aria-pressed="true"] .ic { fill: currentColor; }

@media (prefers-reduced-motion: reduce) { .fc-com, .fp-carte { animation: none; } }
:root[data-mouvement="reduit"] .fc-com, :root[data-mouvement="reduit"] .fp-carte { animation: none; }

/* ─── Retour en haut (accueil) : discret, au-dessus des onglets ─── */
.haut-page { position: fixed; z-index: 8; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ligne); border-radius: 50%; background: var(--verre); color: var(--ink2); box-shadow: 0 8px 22px -10px rgba(15,45,90,.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .2s ease, transform .25s var(--ease), color .2s; cursor: pointer; }
.haut-page.voir { opacity: .82; transform: none; }
.haut-page:hover, .haut-page:focus-visible { opacity: 1; color: var(--accent-t); }
.haut-page .ic { width: 20px; height: 20px; }
@media (min-width: 1000px) { .haut-page { bottom: 24px; right: 24px; } }
.gopub-ouvert .haut-page { display: none; }

/* ─── Nom de l'app : « Go », en élan (même dégradé que le logo) ─── */
#tete-marque, #cote-marque { font-style: italic; font-weight: 900; letter-spacing: -.5px; padding-right: 2px;
  background: linear-gradient(180deg, #4FD06A 0%, #16A34A 55%, #0B7F3E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marque .par-mycell { display: block; margin-top: -2px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink3); text-transform: none; }
.tete .marque .par-mycell { font-size: 9.5px; }
#tete-marque { font-size: 24px; }
:root[data-contraste="fort"] #tete-marque, :root[data-contraste="fort"] #cote-marque { background: none; color: var(--ink); }
