/* Forum V4 : lecture publique sans dépendance externe. */
.v4-forum{max-width:1100px;margin:2rem auto 4rem;padding:0 1.25rem;color:inherit}
.v4-forum-breadcrumb{font-size:.94rem;margin-bottom:1.5rem;line-height:1.65}
.v4-forum-breadcrumb a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.v4-forum-head{padding:2rem;border-radius:18px;background:#e9f0e9;color:#153b34;margin-bottom:2rem}
.v4-forum-head h1{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.2;margin:.2rem 0 1rem}
.v4-forum-head p{line-height:1.65}.v4-forum-eyebrow{font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;font-weight:bold}
.v4-forum-note{background:#f7f2e7;border-left:4px solid #a78b4c;color:#433a27;padding:.85rem 1rem;border-radius:6px;line-height:1.5}
.v4-forum h2{margin:2rem 0 1rem;font-size:1.45rem}.v4-forum-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}
.v4-forum-card,.v4-forum-message{background:#fff;color:#25362f;border:1px solid #d9e2db;border-radius:12px;padding:1.35rem;box-shadow:0 2px 9px #00000009}
.v4-forum-card h3{font-size:1.22rem;margin:0 0 .55rem}.v4-forum-card p{line-height:1.6;margin:.4rem 0}.v4-forum-card a,.v4-forum-list a{color:#1b5548;text-decoration:underline;text-underline-offset:3px}
.v4-forum-meta{display:block;color:#5b685f;font-size:.88rem;margin-top:.5rem}
.v4-forum-list{list-style:none;padding:0;margin:0;border:1px solid #d9e2db;border-radius:12px;overflow:hidden}
.v4-forum-list li{padding:1rem 1.3rem;background:#fff;color:#25362f;border-bottom:1px solid #e5eae5}.v4-forum-list li:last-child{border-bottom:0}
.v4-forum-messages{display:grid;gap:1rem}.v4-forum-message-head{display:flex;flex-wrap:wrap;gap:.4rem 1rem;justify-content:space-between;margin-bottom:1rem;font-size:.92rem}
.v4-forum-message-text{white-space:normal;line-height:1.75;overflow-wrap:anywhere}.v4-forum-pages{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;margin:2rem 0}
.v4-forum-pages a{padding:.5rem .8rem;border:1px solid #bfcfc2;border-radius:7px;color:inherit}
@media(max-width:650px){.v4-forum{padding:0 1rem}.v4-forum-head{padding:1.3rem}.v4-forum-card,.v4-forum-message{padding:1rem}}

/* Participation : formulaires accessibles et adaptés au mobile. */
.v4-forum-participate{margin:1.25rem 0;display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.v4-forum-reply{margin:2rem 0;padding-top:1.25rem;border-top:1px solid #d9e2db}
.v4-forum-form{display:grid;gap:.7rem;max-width:52rem;margin:1.25rem 0}
.v4-forum-form label{font-weight:700;color:inherit}
.v4-forum-form input[type=text],.v4-forum-form textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #849c8d;border-radius:8px;background:#fff;color:#1b2e27;font:inherit;padding:.85rem;line-height:1.5}
.v4-forum-form input:focus-visible,.v4-forum-form textarea:focus-visible,.v4-forum-form button:focus-visible{outline:3px solid #ad824b;outline-offset:2px}
.v4-forum-form button{justify-self:start;cursor:pointer}
.v4-forum-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.v4-forum-error{background:#fff0eb;border-left:4px solid #ae3929;color:#682316;padding:1rem;line-height:1.5}
.v4-forum-success{background:#e8f5ec;border-left:4px solid #217c43;color:#1c542f;padding:1rem;line-height:1.5}
@media(max-width:650px){.v4-forum-form button,.v4-forum-participate .v3-btn{width:100%;text-align:center}}

/* B3 : actions réservées à l’auteur et confirmation accessible de retrait. */
.v4-forum-owner-actions{border-top:1px solid #e5eae5;margin-top:1rem;padding-top:.9rem;display:flex;align-items:flex-start;flex-wrap:wrap;gap:1rem 1.5rem}
.v4-forum-owner-actions a{color:#1b5548;text-decoration:underline;text-underline-offset:3px}
.v4-forum-withdraw{max-width:40rem}
.v4-forum-withdraw summary{color:#6d372d;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.v4-forum-withdraw p{font-size:.93rem;line-height:1.6}
.v4-forum-withdraw form{display:grid;gap:.8rem;margin-top:.6rem}
.v4-forum-withdraw label{display:flex;align-items:flex-start;gap:.55rem;line-height:1.5}
.v4-forum-withdraw input[type=checkbox]{margin-top:.3rem;flex-shrink:0}
.v4-forum-danger{justify-self:start;border:1px solid #8b3d34;background:#fff;color:#793026;font:inherit;font-weight:700;border-radius:8px;padding:.65rem 1rem;cursor:pointer}
.v4-forum-danger:hover{background:#fff0ed}
.v4-forum-owner-actions :focus-visible,.v4-forum-danger:focus-visible{outline:3px solid #ad824b;outline-offset:3px}
@media(max-width:650px){.v4-forum-owner-actions{display:block}.v4-forum-owner-actions > *{margin-bottom:1rem}}

/* F0036-B4-A : abonnement manuel etat clair, boutons clavier et mobile. */
.v4-forum-follow{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem;margin:1rem 0 2rem;padding:1rem 1.25rem;background:#f4f7f2;color:#263b2e;border:1px solid #cad8cf;border-radius:10px}
.v4-forum-follow-state{margin:0;font-weight:600;line-height:1.45}
.v4-forum-follow form{margin:0}
.v4-forum-follow-btn{border:1px solid #356552;border-radius:8px;background:#fff;color:#234d3d;cursor:pointer;padding:.65rem 1.1rem;font:inherit;font-weight:700}
.v4-forum-follow-btn:hover{background:#e6f1eb}
.v4-forum-follow-btn:focus-visible{outline:3px solid #ad824b;outline-offset:3px}
@media(max-width:650px){.v4-forum-follow form,.v4-forum-follow-btn{width:100%}}

/* F0036-B4-B — suivi et lecture */
.v4-forum-private-link a{display:inline-flex;padding:.65rem 1rem;border:1px solid #356552;border-radius:8px;font-weight:700}
.v4-forum-followed-list{list-style:none;margin:1.5rem 0;padding:0;display:grid;gap:1rem}
.v4-forum-followed-item{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1rem 1.25rem;background:#f4f7f2;border:1px solid #cad8cf;border-radius:10px}
.v4-forum-followed-item h2{font-size:1.15rem;margin:.1rem 0 .5rem}
.v4-forum-followed-item form{margin:0;flex-shrink:0}
.v4-forum-followed-status{margin:.5rem 0 0}
@media(max-width:650px){.v4-forum-followed-item{flex-direction:column;align-items:stretch}.v4-forum-followed-item form,.v4-forum-followed-item button{width:100%}}
