/* Page d'une publication du fil (/post/…) — mise en page du 04/09/2026.
   Une seule carte (en-tête d'auteur, texte, médias, réactions, commentaires),
   une colonne de droite (auteur, autres publications, pros à la une). */

.pd-wrap{max-width:1180px;margin:0 auto;padding:16px 16px 40px}
.pd-layout{display:grid;grid-template-columns:minmax(0,680px) 300px;gap:24px;justify-content:center;align-items:start}
@media (max-width:920px){.pd-layout{grid-template-columns:minmax(0,1fr)}.pd-side{display:none}}
.pd-crumb{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:#67748a;margin-bottom:10px}
.pd-crumb a{color:#0c376b;font-weight:600;text-decoration:none}
.pd-crumb a:hover{text-decoration:underline}
.pd-crumb .rep{color:#98a4b6;font-weight:400;font-size:12.5px}
.pd-crumb .rep.off{cursor:not-allowed}

.pd-card{background:#fff;border:1px solid #d9e1ec;border-radius:12px;box-shadow:0 1px 2px rgba(12,55,107,.06),0 6px 20px -12px rgba(12,55,107,.25);overflow:hidden}
.pd-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px}
.pd-head .avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;background:#e3e9f1;cursor:pointer}
.pd-head .who{flex:1;min-width:0}
.pd-head .name{display:flex;align-items:center;gap:6px;min-width:0}
.pd-head .name h2{font-size:16px;font-weight:700;margin:0;color:#10131b;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-head .name h2:hover{text-decoration:underline}
.pd-head .sub{font-size:12.5px;color:#67748a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-head .sub .dot{margin:0 4px;color:#98a4b6}
.pd-head .online{width:9px;height:9px;border-radius:50%;background:#22c55e;flex:none}
.pd-role{flex:none;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:5px;padding:2px 6px;line-height:1.3}
.pd-role.pro{color:#0c376b;border:1px solid rgba(12,55,107,.45)}
.pd-role.jober{color:#3f6b1c;background:#eaf4dd}
.pd-role.staff{color:#fff;background:#10131b}
.pd-role.part{color:#b45f06;background:#fbeedd}
.pd-kindbar{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;padding:0 16px 8px;font-size:12.5px;color:#67748a}
.pd-kind{font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 9px;line-height:1.4}
.pd-kind.actu{background:#f6f8fc;color:#3d4757;border:1px solid #e9eef5}
.pd-kind.offre{background:#eaf4dd;color:#3f6b1c}
.pd-kind.besoin{background:#fbeedd;color:#b45f06}
.pd-kindbar .m{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.pd-kindbar .m i{font-size:11px;color:#98a4b6}
.pd-body{padding:6px 16px 10px;font-size:16px;line-height:1.6;color:#10131b;max-width:66ch;overflow-wrap:anywhere}
.pd-body.ql-editor{padding:6px 16px 10px;height:auto;min-height:0}
.pd-media{position:relative;background:#e3e9f1;overflow:hidden;margin:4px 12px 8px;border-radius:8px}
.pd-media .bg{position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;filter:blur(16px) saturate(.8);opacity:.55}
.pd-media .fg{position:relative;display:block;width:100%;max-height:520px;object-fit:contain;cursor:zoom-in}
.pd-media video{position:relative;display:block;width:100%;max-height:520px;object-fit:contain;background:#10131b}
.pd-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:4px 12px 8px}
.pd-grid > div{border-radius:8px;overflow:hidden;background:#e3e9f1;aspect-ratio:1/1}
.pd-grid > div.tall{grid-row:span 2;aspect-ratio:auto}
.pd-grid img,.pd-grid video{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.pd-foot{display:flex;align-items:center;gap:2px;padding:6px 10px 8px;border-top:1px solid #e9eef5}
.pd-foot .act{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#67748a;font:inherit;font-size:13px;font-weight:600;padding:6px 8px;border-radius:8px;cursor:pointer;white-space:nowrap;text-decoration:none}
.pd-foot .act:hover{background:#f6f8fc;color:#10131b}
.pd-foot .act.liked,.pd-foot .act.text-red-500{color:#c0392b}
.pd-foot .act .n{font-variant-numeric:tabular-nums}
.pd-foot .cta{margin-left:auto;border-radius:999px;font-weight:700;font-size:13px;padding:7px 14px;border:1px solid #0c376b;color:#0c376b;background:transparent;text-decoration:none;white-space:nowrap}
.pd-foot .cta.fill{background:#0c376b;color:#fff}
.pd-foot .guest{font-size:13px;color:#67748a;padding:6px 8px}
.pd-foot .guest a{color:#0c376b;font-weight:600}
.pd-comments{padding:10px 16px 14px;border-top:1px solid #e9eef5}
.pd-comments h4{margin:0 0 10px;font-size:13px;font-weight:700;color:#3d4757}
.pd-comments #comments-container{margin:0}
.pd-comments textarea{width:100%;padding:10px 14px;border:1px solid #d9e1ec;border-radius:12px;background:#fff;font:inherit;font-size:14px;resize:vertical;min-height:44px}
.pd-comments textarea:focus{outline:2px solid #8abf56;outline-offset:1px}
.pd-comments .send{margin-top:8px;border-radius:999px;border:0;background:#0c376b;color:#fff;font:inherit;font-weight:700;font-size:13px;padding:8px 16px;cursor:pointer}
.pd-comments .send:disabled{opacity:.6;cursor:default}.pd-comments .send:active{transform:scale(.96)} /* 24/09 (UX-354) */
.pd-comments .guest{background:#f6f8fc;border:1px solid #e9eef5;border-radius:10px;padding:10px 12px;font-size:13.5px;color:#3d4757;text-align:center}
.pd-comments .guest a{color:#0c376b;font-weight:700}

/* colonne de droite */
.pd-side{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-content:start}
.pd-sb{background:#fff;border:1px solid #d9e1ec;border-radius:12px;box-shadow:0 1px 2px rgba(12,55,107,.06),0 6px 20px -12px rgba(12,55,107,.25);padding:14px 16px}
.pd-sb .ttl{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}
.pd-sb h3{font-size:15px;font-weight:700;margin:0}
.pd-sb .ttl a{font-size:12.5px;font-weight:600;text-decoration:none;color:#0c376b;white-space:nowrap}
.pd-author{text-align:center}
.pd-author img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:#e3e9f1;margin:4px auto 8px;display:block}
.pd-author b{display:block;font-size:15px}
.pd-author p{font-size:13px;color:#67748a;margin:4px 0 0}
.pd-author .btns{display:flex;gap:8px;margin-top:12px}
.pd-author .btns a{flex:1;border-radius:999px;font-weight:700;font-size:12.5px;padding:7px 10px;border:1px solid #0c376b;color:#0c376b;text-decoration:none;text-align:center}
.pd-author .btns a.fill{background:#0c376b;color:#fff}
.pd-mini{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center;padding:7px 0;border-top:1px solid #e9eef5;text-decoration:none;color:#10131b}
.pd-mini:first-of-type{border-top:0}
.pd-mini img,.pd-mini .ph{width:56px;height:42px;object-fit:cover;border-radius:6px;background:#e6eef8;display:block}
.pd-mini b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.3}
.pd-mini span{font-size:11.5px;color:#67748a}
.pd-pro{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid #e9eef5}
.pd-pro:first-of-type{border-top:0}
.pd-pro > div{min-width:0}
.pd-pro img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#e3e9f1}
.pd-pro b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-pro span{display:block;font-size:12px;color:#67748a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-pro a.btn{font-size:12px;font-weight:700;border:1px solid #0c376b;color:#0c376b;border-radius:999px;padding:4px 10px;text-decoration:none;white-space:nowrap}

/* 04/09/2026 — sur téléphone, le pied (réactions, commentaires, partage,
   bouton d'action) passait à droite de l'écran : il replie sur deux lignes. */
@media (max-width:640px){
  .pd-foot{flex-wrap:wrap;row-gap:4px}
  .pd-foot .guest{flex-basis:100%;padding:4px 8px 6px}
  .pd-foot .cta{margin-left:auto}
  .pd-head .name h2{font-size:15px}
  .pd-wrap{padding:10px 10px 32px}
}
.pd-suivre{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:10px}
.pd-suivre .btb-suivi-n{margin-left:0}
