/* Accueil membre plus soigné + offres dans le fil (2026-11-15).
   Chargé seulement sur la page des membres, après style.css : tout est préfixé par #membres.m-app. */

/* ---------- Cartes du fil : même rayon, même ombre, même espacement ---------- */
#membres.m-app .panel{border-radius:16px}
#membres.m-app #m-pubs{display:flex;flex-direction:column;gap:12px}
#membres.m-app #m-pubs > *{margin:0}

/* ---------- Bonjour : sur la même ligne que le menu « Moi » (téléphone) ---------- */
@media (max-width:720px){
  #membres.m-app{position:relative;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  #membres.m-app:has(> .m-barre + #m-vue .m-bonjour) > .m-barre{position:absolute;top:2px;inset-inline-end:0;margin:0;z-index:5}
  #membres.m-app .m-bonjour{margin:4px 0 14px;padding-inline-end:96px;font-size:26px}
  #membres.m-app .m-bonjour small{font-size:14.5px;margin-top:2px}
}

/* ---------- « Offres pour vous » : en-tête sur une ligne, cartes plus nettes ---------- */
#membres.m-app .m-bande{padding:14px 0 10px;border-top:0;box-shadow:0 1px 2px rgba(11,23,48,.05),0 8px 24px rgba(11,23,48,.06);position:relative}
#membres.m-app .m-bande::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#1e4ba6,#5582d6 60%,#f5c400)}
#membres.m-app .m-bande-tete{flex-wrap:nowrap;padding:4px 16px 10px;gap:8px}
#membres.m-app .m-bande-tete .m-h2{font-size:18px;white-space:nowrap}
#membres.m-app .m-bande-tete .m-lien{margin-inline-start:auto;font-size:13.5px;font-weight:600;white-space:nowrap;text-decoration:none;color:var(--link)}
#membres.m-app .m-bande-nb{font-size:12px;padding:1px 8px}
#membres.m-app .m-bande-liste{padding:2px 16px 6px;gap:10px;scrollbar-width:none}
#membres.m-app .m-bande-liste::-webkit-scrollbar{display:none}
#membres.m-app .m-bande-carte{flex:0 0 min(250px,74vw);padding:12px 13px;gap:3px;border-radius:14px;background:var(--surface);box-shadow:0 1px 2px rgba(11,23,48,.04)}
#membres.m-app .m-bande-carte strong{font-size:15px;-webkit-line-clamp:2}
#membres.m-app .m-bande-pied{padding-top:8px}
#membres.m-app .m-bande-pied small{font-size:12.5px}
@media (max-width:420px){#membres.m-app .m-bande-tete .m-lien{font-size:0}#membres.m-app .m-bande-tete .m-lien::after{content:"→";font-size:20px;line-height:1}}

/* ---------- Zone de rédaction : boutons en pastilles sur une ligne ---------- */
#membres.m-app .m-composer{padding:16px 14px 12px;gap:12px}
#membres.m-app .m-composer-haut .m-avatar{width:44px;height:44px;flex:none}
#membres.m-app .m-commencer{padding:11px 16px;font-size:15px}
#membres.m-app .m-commencer::before{content:none}
#membres.m-app .m-types{display:flex!important;flex-wrap:wrap!important;gap:8px!important;overflow-x:auto;padding:0 0 2px!important;justify-content:flex-start!important;scrollbar-width:none}
#membres.m-app .m-types::-webkit-scrollbar{display:none}
#membres.m-app .m-type{flex:none!important;flex-direction:row!important;gap:6px!important;white-space:nowrap!important;padding:7px 12px!important;font-size:13.5px!important;line-height:1.2!important;text-align:start!important}
#membres.m-app .m-type .m-ico{width:17px;height:17px}
@media (max-width:720px){#membres.m-app .m-types{flex-wrap:nowrap!important}}

/* ---------- Offre dans le fil ---------- */
#membres.m-app .m-fil-offre{--c:#1e4ba6;--b:#eaf0fc;padding:18px 16px 14px}
#membres.m-app .m-fil-offre .m-fil-etiquette{margin-bottom:10px}
#membres.m-app .m-fo-corps{display:flex;gap:12px;align-items:flex-start}
#membres.m-app .m-fo-corps .org-mark{width:46px;height:46px;border-radius:10px}
#membres.m-app .m-fo-txt{min-width:0;flex:1}
#membres.m-app .m-fil-offre h3{margin:0 0 3px;font-size:17px!important;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#membres.m-app .m-fil-offre .m-fil-meta{margin:0;color:var(--muted);font-size:14px;line-height:1.4}
#membres.m-app .m-fil-offre .m-fil-meta strong{color:var(--fg)}
#membres.m-app .m-fo-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
#membres.m-app .m-fo-tags > span{font:700 12px var(--f-body);padding:3px 9px;border-radius:999px}
#membres.m-app .m-fo-dom{background:var(--chip);color:var(--link)}
#membres.m-app .m-fo-pied{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
#membres.m-app .m-fo-date{font-size:13.5px;color:var(--muted)}
#membres.m-app .m-fo-actions{display:flex;align-items:center;gap:14px;margin-inline-start:auto}
#membres.m-app .m-fo-actions .m-lien{font-size:13.5px;font-weight:600;text-decoration:none;color:var(--link)}
#membres.m-app .m-fo-actions .btn{border-radius:999px;padding:8px 18px;font-size:14.5px}
@media (max-width:420px){#membres.m-app .m-fo-actions .m-lien{display:none}}

/* ---------- Lumen sur l'espace membre : bouton rond, sans bulle d'invitation qui cache la page ---------- */
body:has(#membres.m-app) .ia-invite{display:none!important}
@media (max-width:720px){
  body:has(#membres.m-app) .ia-bulle{width:52px;height:52px;padding:0!important;justify-content:center;gap:0;inset-inline-end:14px;bottom:calc(84px + env(safe-area-inset-bottom))!important;box-shadow:0 6px 18px rgba(11,23,48,.30)}
  body:has(#membres.m-app) .ia-bulle .ia-long,body:has(#membres.m-app) .ia-bulle .ia-court,body:has(#membres.m-app) .ia-bulle > span{display:none!important}
  body:has(#membres.m-app) .ia-bulle svg{width:26px;height:26px}
}

/* ---------- Mode sombre ---------- */
@media (prefers-color-scheme:dark){
  #membres.m-app .m-bande{box-shadow:none}
  #membres.m-app .m-bande-carte{background:var(--bg)}
  #membres.m-app .m-fil-offre{--b:#17294f;--c:#8fb2f5}
  #membres.m-app .m-fo-corps .org-mark{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
  body:has(#membres.m-app) .ia-bulle{box-shadow:0 6px 18px rgba(0,0,0,.5)}
}

/* ---------- « Progresser dans votre métier » : cartes de hauteur raisonnable sur téléphone ---------- */
@media (max-width:720px){
  #membres.m-app .m-pg-bloc .m-pg-q{display:none}
  #membres.m-app .m-pg-bloc{flex-basis:74%}
  #membres.m-app .m-pg-pied{margin-top:6px}
  #membres.m-app .m-pg-bloc .m-pg-t,#membres.m-app .m-pg-bloc > .m-pg-txt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}

/* ---------- Fil plus vivant (2026-11-17) : 24 h du réseau, nouveaux membres, questions à aider, nouvelles publications ---------- */
#membres.m-app .m-vie{padding:14px 16px;background:#0b1730;color:#fff;border:0;border-top:3px solid #f5c400}
#membres.m-app .m-vie-titre{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:700 12.5px var(--f-mono);text-transform:uppercase;letter-spacing:.05em;color:#f5c400}
#membres.m-app .m-vie-point{width:8px;height:8px;border-radius:50%;background:#3ad08a;box-shadow:0 0 0 0 rgba(58,208,138,.6);animation:m-vie-pouls 2.4s ease-out infinite}
@keyframes m-vie-pouls{0%{box-shadow:0 0 0 0 rgba(58,208,138,.55)}70%{box-shadow:0 0 0 8px rgba(58,208,138,0)}100%{box-shadow:0 0 0 0 rgba(58,208,138,0)}}
@media (prefers-reduced-motion:reduce){#membres.m-app .m-vie-point{animation:none}}
#membres.m-app .m-vie-grille{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
#membres.m-app .m-vie-t{display:flex;flex-direction:column;gap:1px;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.07);color:#fff!important;text-decoration:none!important;min-width:0}
#membres.m-app .m-vie-t:hover{background:rgba(255,255,255,.13)}
#membres.m-app .m-vie-t strong{font:800 22px/1.1 var(--f-body);color:#f5c400;font-variant-numeric:tabular-nums}
#membres.m-app .m-vie-t span{font-size:13px;line-height:1.25;color:#e6ecf8}
#membres.m-app .m-vie-t small{font-size:12px;line-height:1.3;color:#9fb5e0}
@media (max-width:720px){#membres.m-app .m-vie-grille{grid-template-columns:repeat(2,1fr)}}

#membres.m-app .m-fil-nouv{border-inline-start:4px solid #f5c400}
#membres.m-app .m-fil-nouv-ici{margin:0 0 8px;font-weight:700;color:var(--fg)}
#membres.m-app .m-fil-nouv-liste{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#membres.m-app .m-fil-nouv-p{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0}
#membres.m-app .m-fil-nouv-av{flex:0 0 46px;width:46px;height:46px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--chip);color:var(--link);font-weight:700;border:2px solid #f5c400}
#membres.m-app .m-fil-nouv-av img,#membres.m-app .m-fil-nouv-av svg{width:100%;height:100%;object-fit:cover;display:block}
#membres.m-app .m-fil-nouv-txt{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
#membres.m-app .m-fil-nouv-txt a{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg);text-decoration:none}
#membres.m-app .m-fil-nouv-txt strong{display:inline}
#membres.m-app .m-fil-nouv-txt small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#membres.m-app .m-fil-nouv-txt small{font-size:13px;color:var(--muted)}
#membres.m-app .m-fil-nouv-txt .m-fil-nouv-q{font-size:12px}
#membres.m-app .m-fil-nouv-p .btn{flex:0 0 auto;position:relative;z-index:1;padding:6px 10px;font-size:13px}
@media (max-width:720px){#membres.m-app .m-fil-nouv-liste{grid-template-columns:1fr}#membres.m-app .m-fil-nouv-p:nth-child(n+5){display:none}}
/* Ordinateur : 3 cartes par ligne, dessin en haut, nom et poste en entier sur toute la largeur, bouton en bas (rien ne se chevauche). */
@media (min-width:721px){
  #membres.m-app .m-fil-nouv-liste{grid-template-columns:repeat(3,minmax(0,1fr))}
  #membres.m-app .m-fil-nouv-p{flex-direction:column;text-align:center;gap:6px;padding:12px 10px}
  #membres.m-app .m-fil-nouv-av{flex-basis:auto;width:56px;height:56px}
  #membres.m-app .m-fil-nouv-txt{width:100%;align-items:center}
  #membres.m-app .m-fil-nouv-txt small{max-width:100%}
  #membres.m-app .m-fil-nouv-txt small[title]{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  #membres.m-app .m-fil-nouv-p .btn{margin-top:auto}
}

#membres.m-app .m-fil-aide{border-inline-start:4px solid #1e4ba6}
#membres.m-app .m-fil-aide-q{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line)}
#membres.m-app .m-fil-aide-q p{margin:0;min-width:0}
#membres.m-app .m-fil-aide-q strong{display:block;font-weight:600}
#membres.m-app .m-fil-aide-q small{color:var(--muted);font-size:12.5px}
#membres.m-app .m-fil-aide-q .btn{flex:0 0 auto}

#membres.m-app .m-vie-nouv{position:sticky;top:72px;z-index:5;display:block;margin:0 auto 12px;padding:8px 16px;border:0;border-radius:999px;background:#f5c400;color:#0b1730;font:700 14px var(--f-body);box-shadow:0 4px 14px rgba(11,23,48,.25);cursor:pointer}
@media (prefers-color-scheme:dark){
  #membres.m-app .m-vie{background:#0f1c38;box-shadow:inset 0 0 0 1px #22325a}
  #membres.m-app .m-fil-aide{border-inline-start-color:#5582d6}
}
