@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600;700;800&display=swap");
*{box-sizing:border-box}
:root{--bg1:#10052b;--bg2:#250747;--card:#211d49;--card2:#282052;--line:#393365;--text:#b9b4d4;--muted:#8983ae;--pink:#f02d91;--violet:#796cff;--white:#f7f3ff}
html{min-height:100%;background:#13052d}
body{margin:0;min-height:100vh;color:var(--text);font:15px/1.55 "Trebuchet MS",Arial,sans-serif;letter-spacing:.25px;background:
radial-gradient(ellipse at 12% 34%,rgba(213,0,119,.52) 0,rgba(113,0,103,.24) 24%,transparent 48%),
radial-gradient(ellipse at 88% 65%,rgba(132,0,139,.28) 0,transparent 43%),
linear-gradient(145deg,#12052f 0%,#1a0738 47%,#25063c 100%);background-attachment:fixed}
.topbar{height:112px;background:rgba(37,27,78,.96);border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#5424ff,#ec2695) 1;color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.top-inner{max-width:1180px;height:100%;margin:auto;padding:0 24px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;color:#df3b9d;text-decoration:none;font-size:11px;font-weight:900;letter-spacing:.3px;min-width:100px;text-shadow:0 0 12px rgba(240,45,145,.25)}
.hamburger{width:44px;height:44px;border:0;background:transparent;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:5px;cursor:pointer}
.hamburger span{height:4px;width:34px;border-radius:2px;background:#fff;display:block}
.main-nav{display:flex;gap:24px;margin-left:15px}
.main-nav a{color:#bcb5d6;text-decoration:none;font-size:13px;font-weight:700}
.main-nav a.active{color:#fff}
.header-icons{margin-left:auto;display:flex;align-items:center;gap:34px;color:#fff;font:32px/1 Arial,sans-serif}
.page{max-width:1120px;margin:0 auto;padding:30px 22px 44px}
.breadcrumbs{font-size:12px;color:#8983ad;margin:0 0 18px}
.breadcrumbs a{color:#b7acd2;text-decoration:none}.breadcrumbs span{margin:0 8px;color:#655b8f}
.thread-heading{background:rgba(35,30,75,.94);border:1px solid #393366;border-radius:7px;padding:23px 25px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;box-shadow:0 8px 25px rgba(0,0,0,.12)}
.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:900;color:var(--pink);margin-bottom:7px;text-transform:uppercase}
h1{font-size:25px;line-height:1.3;margin:0 0 9px;color:#c6c0e1;font-weight:700;letter-spacing:.7px}
.thread-byline{font-size:13px;color:#918bb2}.thread-byline strong{color:var(--pink)}.sep{margin:0 8px;color:#5e5687}
.thread-actions{display:flex;gap:9px;flex-shrink:0}
.button{border:1px solid transparent;border-radius:2px;padding:10px 15px;font:700 12px "Trebuchet MS",Arial,sans-serif;letter-spacing:1px;cursor:pointer;text-transform:uppercase}
.button-light{background:transparent;border-color:#a12c9d;color:#e5c6eb}.button-primary{background:linear-gradient(110deg,#ef2b8e,#a72bb5);color:#fff;border-color:#d52b9d;box-shadow:0 4px 14px rgba(208,27,143,.16)}
.thread-stats{height:48px;background:rgba(35,30,75,.94);border:1px solid #393366;border-bottom:0;display:flex;align-items:center;padding:0 17px;gap:23px;color:#928cb4}
.thread-stats div{display:flex;align-items:baseline;gap:5px}.thread-stats strong{font-size:15px;color:#d0c9e8}.thread-stats span{font-size:12px}.stats-spacer{flex:1}.page-indicator{color:#918bb2}
.posts{display:flex;flex-direction:column;gap:20px}
.post{display:flex;flex-direction:column;min-height:0;background:rgba(34,30,73,.97);border:1px solid #393568;border-radius:7px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.user-panel{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;column-gap:20px;align-items:center;text-align:left;padding:22px 22px 19px;background:transparent;border:0;border-bottom:1px solid #393568;position:relative}
.user-panel:after{content:"";position:absolute;bottom:-1px;left:55px;width:20px;height:20px;background:var(--card);border-left:1px solid #393568;border-top:1px solid #393568;transform:translateY(50%) rotate(45deg)}
.avatar{grid-column:1;grid-row:1 / span 2;width:100px;height:100px;border-radius:50%;margin:0;display:grid;place-items:center;background:#62c0d7;color:#18516a;font-weight:500;font-size:48px;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.username{grid-column:2;grid-row:1;align-self:end;font-size:21px;font-weight:900;color:var(--pink);overflow-wrap:anywhere;line-height:1.35}
.role{grid-column:2;grid-row:2;align-self:start;font-size:16px;color:#aaa4c8;margin-top:8px;letter-spacing:.7px}
.user-meta{display:none}
.post-main{min-width:0;display:flex;flex-direction:column}
.post-number{position:absolute;top:12px;right:14px;font-size:11px;line-height:1;font-weight:700;color:#8983ae;background:rgba(16,5,43,.38);border:1px solid rgba(137,131,174,.22);border-radius:20px;padding:5px 8px}
.post-content{padding:17px 22px 19px;font-size:16px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;min-height:0;color:#bdb7d8;letter-spacing:.2px}
.post-content p{margin:0 0 12px}.post-content p:last-child{margin-bottom:0}
.post-content a{color:#9182ff}
.post-content blockquote{margin:0 0 13px;padding:0;background:rgba(28,24,65,.62);border:1px solid #403b70;border-left:6px solid var(--violet);color:#b8b1d6}
.post-content blockquote:before{content:"";display:block}
.post-content blockquote{padding:12px 16px}
.post-foot{margin-top:auto;padding:7px 22px;border-top:1px solid rgba(57,53,104,.55);display:flex;justify-content:space-between;color:#817ba5;font-size:11px}
.post-tools{color:#8982b2;letter-spacing:.2px}
.bottom-reply{display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(35,30,75,.96);border:1px solid #393568;padding:18px 20px;margin-top:14px;color:var(--pink);font-size:16px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}
.bottom-reply .button{display:none}
footer{text-align:center;color:#77709d;font-size:11px;padding:25px 0 0}footer span{padding:0 7px}
.error{padding:25px;color:#ffc1dc;background:#281b4d;border:1px solid #9c2b91}
@media(max-width:720px){
 body{font-size:14px;line-height:1.55}
 .topbar{height:112px}
 .top-inner{padding:0 20px;gap:18px}
 .hamburger{width:42px;padding:3px;flex-shrink:0}
 .hamburger span{width:31px;height:4px}
 .brand{font-size:9px;min-width:55px;max-width:65px;overflow:hidden}
 .main-nav{display:none}
 .header-icons{gap:21px;font-size:27px}
 .page{padding:19px 20px 32px}
 .breadcrumbs{font-size:11px;margin-bottom:13px}
 .thread-heading{align-items:flex-start;flex-direction:column;gap:13px;padding:18px 16px;margin-bottom:15px}
 h1{font-size:21px;line-height:1.3}
 .thread-byline{font-size:11px}
 .thread-actions{width:100%}.thread-actions .button{flex:1}
 .thread-stats{height:auto;min-height:43px;padding:8px 13px;gap:15px;flex-wrap:wrap}
 .thread-stats strong{font-size:14px}.thread-stats span{font-size:11px}
 .page-indicator{margin-left:auto}
 .posts{gap:16px}
 .post{border-radius:7px}
 .user-panel{grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;padding:10px 14px;min-height:76px}
 .avatar{width:56px;height:56px;font-size:26px}
 .username{font-size:15px;line-height:1.2}
 .role{font-size:11px;margin-top:3px}
 .post-content{padding:13px 17px 16px;font-size:16px;line-height:1.6}
 .post-content blockquote{padding:10px 13px;font-size:17px}
 .post-foot{padding:7px 22px}
 .bottom-reply{padding:18px 16px;font-size:15px;line-height:1.5}
 footer{font-size:10px}
}
@media(max-width:390px){
 .top-inner{padding:0 13px;gap:13px}
 .header-icons{gap:14px;font-size:24px}
 .page{padding-left:12px;padding-right:12px}
 .user-panel{grid-template-columns:48px minmax(0,1fr);column-gap:10px;padding:9px 12px;min-height:66px}
 .avatar{width:48px;height:48px;font-size:23px}
 .username{font-size:14px}
 .role{font-size:10px;margin-top:2px}
 .post-content{padding:12px 15px 15px;font-size:15.5px;line-height:1.58}
 .post-content blockquote{font-size:15px}
 .bottom-reply{font-size:13px}
}
@media print{body{background:#16062f!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.topbar{print-color-adjust:exact;-webkit-print-color-adjust:exact}.page{max-width:none;padding:12px}.thread-actions,.bottom-reply{display:none}.post,.thread-stats{break-inside:avoid}}

/* Liens de navigation et mention de maquette */
.hamburger{ text-decoration:none; flex-shrink:0; }
.header-icons a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-width:24px}
.header-icons a:hover,.main-nav a:hover,.brand:hover{color:#ff64b5}
.button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.demo-notice{margin:0 0 15px;padding:7px 11px;border:1px solid rgba(239,43,142,.55);background:rgba(239,43,142,.10);color:#ff75ba;text-align:center;font-size:10px;font-weight:900;letter-spacing:1.4px}
@media(max-width:720px){.demo-notice{font-size:9px;padding:6px}}

.post-content .custom-link a{color:#ff4da6;text-decoration:underline;font-weight:800}

/* Ajustements harmonieux des messages : typographie compacte et numéro intégré à l'en-tête membre */
.user-panel{padding-right:42px}
.post-content p{margin-bottom:10px}
.post-content p:last-child{margin-bottom:0}
@media(max-width:720px){
  .user-panel{padding-right:42px}
  .post-content{font-size:16px;line-height:1.58}
  .post-content p{margin-bottom:9px}
  .post-number{top:10px;right:10px;font-size:10px;padding:4px 7px}
}
@media(max-width:390px){
  .post-content{font-size:15px;line-height:1.58}
}

/* Version typographique inspirée de la capture : formes rondes, lecture confortable */
body,button,input,textarea,select,.button,.header-icons{font-family:"Nunito","Trebuchet MS",Arial,sans-serif}
body{letter-spacing:.15px}
.username{font-weight:800;letter-spacing:0}
.role{font-weight:500;letter-spacing:.1px}
.post-main{min-width:0}
.post-meta{min-height:38px;margin:0 17px;padding:9px 0 7px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #393568;color:#9991bd;font-size:12px;font-weight:600}
.post-meta-actions{display:flex;align-items:center;gap:15px}
.post-meta .post-number{position:static;background:none;border:0;padding:0;font-size:12px;color:#8f89b4}
.share-symbol{font-size:16px;line-height:1;color:#8983ae}
.post-content{font-size:16px;line-height:1.58;letter-spacing:.1px;padding-top:13px}
.post-foot{font-size:12px}
@media(max-width:720px){
 .post-meta{margin:0 15px;min-height:37px;padding:8px 0 7px;font-size:12px}
 .post-content{font-size:16px;line-height:1.56;padding-top:13px}
 .username{font-size:18px}
 .role{font-size:13px}
}
@media(max-width:390px){.post-content{font-size:15.5px}}

/* Liens de profils et appel à participation */
.username.user-profile-link{display:inline-block;text-decoration:none;cursor:pointer}
.username.user-profile-link:hover{color:#ff78bd;text-decoration:underline;text-decoration-color:rgba(255,120,189,.65)}
.bottom-reply .participate-link{color:inherit;text-decoration:none;cursor:pointer}
.bottom-reply .participate-link:hover{color:#ff8bc7;text-decoration:underline;text-decoration-color:rgba(255,139,199,.7)}


/* TYPOGRAPHIE V5 — harmonisée sur la capture de référence */
:root{
  --font-forum:"Josefin Sans",sans-serif;
}
html,body,button,input,textarea,select,a,.button,
h1,h2,h3,.brand,.main-nav,.header-icons,.breadcrumbs,
.thread-heading,.thread-byline,.thread-stats,.user-panel,
.username,.role,.user-meta,.post-meta,.post-number,
.post-content,.post-foot,.bottom-reply,footer{
  font-family:var(--font-forum)!important;
}
body{
  font-size:16px;
  line-height:1.55;
  letter-spacing:.35px;
  font-weight:400;
}
.username{
  font-size:19px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:.1px;
}
.role{
  font-size:16px;
  line-height:1.35;
  font-weight:500;
  letter-spacing:.15px;
}
.post-meta{
  font-size:15px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:.15px;
}
.post-meta .post-number{
  font-size:15px;
  font-weight:600;
}
.post-content{
  font-size:18px;
  line-height:1.62;
  letter-spacing:.25px;
  font-weight:400;
}
.post-content blockquote{
  font-size:17px;
  line-height:1.6;
}
.post-foot{
  font-size:13px;
  line-height:1.4;
}
.thread-byline{font-size:14px}
.thread-stats strong{font-size:16px}
.thread-stats span{font-size:13px}
.bottom-reply{
  font-size:16px;
  line-height:1.5;
  letter-spacing:1px;
}
.button{
  font-size:13px;
  letter-spacing:1px;
}
.avatar{
  font-family:var(--font-forum)!important;
  font-weight:500;
}
@media(max-width:720px){
  body{font-size:16px;letter-spacing:.3px}
  .username{font-size:19px;line-height:1.25}
  .role{font-size:16px;line-height:1.35}
  .post-meta{font-size:15px;min-height:39px}
  .post-meta .post-number{font-size:15px}
  .post-content{font-size:18px;line-height:1.62;letter-spacing:.2px;padding:14px 17px 17px}
  .post-content blockquote{font-size:17px}
  .post-foot{font-size:13px}
  .thread-byline{font-size:13px}
  .thread-stats strong{font-size:15px}
  .thread-stats span{font-size:12px}
  .bottom-reply{font-size:15px;line-height:1.55}
  .button{font-size:13px}
}
@media(max-width:390px){
  .username{font-size:18px}
  .role{font-size:15px}
  .post-meta,.post-meta .post-number{font-size:14px}
  .post-content{font-size:17px;line-height:1.6;padding:13px 15px 16px}
  .post-content blockquote{font-size:16px}
  .bottom-reply{font-size:14px}
}


/* V6 — proportions mobiles réduites pour correspondre à la première capture */
@media(max-width:720px){
  body{font-size:13px;line-height:1.5;letter-spacing:.15px}
  .thread-heading{padding:14px 13px;gap:9px;margin-bottom:12px}
  .thread-heading h1,.thread-heading h2{font-size:19px;line-height:1.3}
  .thread-byline{font-size:11px;line-height:1.4}
  .thread-stats{font-size:11px;padding:9px 12px}
  .thread-stats strong{font-size:13px}
  .thread-stats span{font-size:10px}
  .user-panel{
    grid-template-columns:48px minmax(0,1fr);
    column-gap:10px;
    padding:9px 12px;
    padding-right:34px;
    min-height:64px;
  }
  .avatar{width:48px;height:48px;font-size:22px}
  .username{font-size:15px;line-height:1.2;letter-spacing:0;font-weight:700}
  .role{font-size:12px;line-height:1.25;margin-top:2px}
  .user-meta{font-size:10px;line-height:1.25}
  .post-meta{
    min-height:31px;
    margin:0 12px;
    padding:6px 0 5px;
    font-size:11px;
    line-height:1.2;
    gap:8px;
  }
  .post-meta .post-number{font-size:11px}
  .post-meta-actions{gap:10px}
  .share-symbol{font-size:13px}
  .post-content{
    padding:10px 12px 12px;
    font-size:14px;
    line-height:1.48;
    letter-spacing:.05px;
  }
  .post-content p{margin-bottom:7px}
  .post-content blockquote{font-size:13px;line-height:1.45;padding:8px}
  .post-foot{font-size:10px;line-height:1.3;padding:7px 12px}
  .bottom-reply{padding:13px 12px;font-size:12px;line-height:1.4;letter-spacing:.5px}
  .button{font-size:11px;line-height:1.25;padding:8px 11px;letter-spacing:.5px}
  .demo-notice{font-size:8px;line-height:1.35;padding:5px 8px;letter-spacing:1px}
  .thread-actions{gap:7px}
  .thread-actions .button{font-size:10px}
  footer{font-size:9px;line-height:1.4}
}
@media(max-width:390px){
  .thread-heading h1,.thread-heading h2{font-size:18px}
  .username{font-size:14px}
  .role{font-size:11px}
  .post-meta,.post-meta .post-number{font-size:10px}
  .post-content{font-size:13.5px;line-height:1.48;padding:9px 11px 11px}
  .post-content blockquote{font-size:12.5px}
  .bottom-reply{font-size:11px}
}
