/* ===== HabDev — personnalisations ===== */

/* Logo */
.hd-logo{font-family:"Space Grotesk",sans-serif;font-size:28px;font-weight:700;letter-spacing:-.04em;line-height:1;align-items:flex-end}
.hd-logo.logo-black{color:#111}.hd-logo.logo-white{color:#f2f2f2}
.hd-logo i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#a3f04a;margin:0 0 4px 2px}

/* Icônes catégories */
.hd-ico{width:26px;height:26px;flex:0 0 26px;border-radius:7px;background:#2b2b2b;border:1px solid #333;display:inline-grid;place-items:center;vertical-align:middle}
.hd-ico i,.hd-role i,.hd-modmenu i,.hd-locked i,.hd-moddel i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal!important}
.hd-ico i{color:#a3f04a!important;font-size:14px!important}

/* Rôles */
.hd-name{font-weight:600}
.hd-name--founder{color:#ff8a3d!important}.hd-name--maintainer{color:#ff5c5c!important}.hd-name--animator{color:#b07cff!important}.hd-name--developer{color:#a3f04a!important}.hd-name--sponsor{color:#f5c542!important}
.hd-role{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:600;line-height:1.5;vertical-align:middle;border:1px solid}
.hd-role i{font-size:10px}
.hd-role--founder{color:#ff8a3d;background:rgba(255,138,61,.12);border-color:rgba(255,138,61,.35)}
.hd-role--maintainer{color:#ff5c5c;background:rgba(255,92,92,.12);border-color:rgba(255,92,92,.35)}
.hd-role--animator{color:#b07cff;background:rgba(176,124,255,.12);border-color:rgba(176,124,255,.35)}
.hd-role--developer{color:#a3f04a;background:rgba(163,240,74,.12);border-color:rgba(163,240,74,.35)}
.hd-role--sponsor{color:#f5c542;background:rgba(245,197,66,.12);border-color:rgba(245,197,66,.35)}

/* Modération */
*:has(>.post-detail-content>.hd-modmenu){position:relative!important}
.post-detail-content>.hd-modmenu{position:absolute;top:30px;right:28px;z-index:5}
.hd-modmenu__btn{width:36px;height:36px;border-radius:10px;border:1px solid #333;background:#262626;color:#cfcfcf;display:grid;place-items:center}
.hd-modmenu__btn:hover{border-color:#ff5c5c;color:#ff5c5c}
.hd-modmenu .dropdown-menu{background:#1f1f1f;border:1px solid #333;border-radius:12px;padding:6px;min-width:210px}
.hd-modmenu__head{padding:6px 10px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#ff5c5c;font-weight:700}
.hd-modmenu .dropdown-item{display:flex;align-items:center;gap:10px;border-radius:8px;padding:8px 10px;color:#e8e8e8;font-size:14px;background:none;border:0;width:100%}
.hd-modmenu .dropdown-item:hover{background:#2b2b2b}
.hd-modmenu .hd-danger{color:#ff5c5c}
.hd-modmenu .dropdown-divider{border-color:#333;margin:4px 0}
.hd-locked{display:flex;align-items:center;gap:8px;padding:12px 16px;margin-bottom:12px;border-radius:10px;background:rgba(245,197,66,.08);border:1px solid rgba(245,197,66,.3);color:#f5c542;font-weight:600}
.hd-locked--hide~.post-reply-form{display:none!important}
.hd-moddel button{margin-left:10px;background:none;border:0;padding:0;color:#ff5c5c;font-size:12px;font-weight:600;cursor:pointer}
.hd-moddel i{font-size:11px}
@media(max-width:768px){.post-detail-content>.hd-modmenu{top:18px;right:16px}}

/* Bannières */
.profile-content__cover{position:relative;overflow:hidden;border-radius:12px 12px 0 0}
.profile-content__cover>img{width:100%!important;height:auto!important;display:block}
.card--header__cover{overflow:hidden}
.card--header__cover img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block}

/* ===== Avatars — composant hdAvatar ===== */
.hd-av{position:relative;display:inline-block;flex:0 0 auto;overflow:hidden;background:#262626;vertical-align:middle;line-height:0}
.hd-av img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border:0!important;padding:0!important;margin:0!important;border-radius:0!important;box-shadow:none!important;display:block!important}

/* Conteneurs du thème neutralisés */
.header-user,.profile-content__avatar,.post-card1__header-profile,.post-card2__header-profile,.post-detail-author__left-author-img,
.single-comment__thumb,.single-comment__thumb>a,.post-reply-form__thumb,.contributors-list__item .thumb{
  width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;
  padding:0!important;border:0!important;outline:0!important;background:none!important;box-shadow:none!important;
  overflow:visible!important;border-radius:0!important;line-height:0!important;display:inline-flex!important}

/* Popup membre */
.card--header__avatar{position:relative!important;display:block!important;width:84px!important;height:84px!important;padding:0!important;border:0!important;background:#262626!important;overflow:hidden!important;border-radius:18px!important;line-height:0;outline:4px solid #1f1f1f}
.card--header__avatar img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important;border:0!important;border-radius:0!important}

/* Profil */
.profile-content__user{display:flex!important;align-items:flex-end!important;gap:16px!important}
.profile-content__user h6{margin:0 0 8px!important;display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.profile-content__avatar{position:relative!important}
.profile-content__avatar form,.profile-content__avatar label,.profile-content__avatar button{z-index:2}
@media(max-width:768px){.hd-av--profile{width:96px!important;height:96px!important}}

/* Filet de sécurité : avatars pas encore convertis */
.header-user img:not(.hd-av img){width:40px!important;height:40px!important;border-radius:12px!important}
.profile-content__avatar img:not(.hd-av img){width:128px!important;height:128px!important;border-radius:22px!important}
.post-card1__header-profile img:not(.hd-av img),.post-card2__header-profile img:not(.hd-av img){width:44px!important;height:44px!important;border-radius:12px!important}
.single-comment__thumb img:not(.hd-av img),.post-reply-form__thumb img:not(.hd-av img){width:40px!important;height:40px!important;border-radius:12px!important}
.contributors-list__item img:not(.hd-av img){width:36px!important;height:36px!important;border-radius:10px!important}
.header-user img,.profile-content__avatar img,.post-card1__header-profile img,.post-card2__header-profile img,.single-comment__thumb img,.post-reply-form__thumb img,.contributors-list__item img{object-fit:cover!important;object-position:center!important;max-width:none!important;padding:0!important;border:0!important;display:block!important}
@media(max-width:768px){.profile-content__avatar img:not(.hd-av img){width:96px!important;height:96px!important}}

/* Footer sombre */
footer,.footer,.footer-area,.footer-section,.copyright,.copyright-area,.footer-bottom{background:#141414!important;border-top:1px solid #262626!important;color:#9b9b9b!important}
footer *,.footer *,.footer-area *,.copyright *,.footer-bottom *{color:#9b9b9b!important;background-color:transparent!important}
footer a,.footer a,.footer-area a,.copyright a,.footer-bottom a{color:#cfcfcf!important;transition:color .15s}
footer a:hover,.footer a:hover,.footer-area a:hover,.copyright a:hover,.footer-bottom a:hover{color:#a3f04a!important}
.welcome-banner img{display:none!important}.welcome-banner__title{margin-top:0!important}

/* Popup nouveau sujet */
.hd-modal .modal-content{background:#1f1f1f;border:1px solid #333;border-radius:16px;color:#ececec}
.hd-modal .modal-header,.hd-modal .modal-footer{border-color:#2c2c2c;padding:18px 22px}
.hd-modal .modal-body{padding:8px 22px 18px}
.hd-modal .modal-title{font-weight:600;font-size:18px}
.hd-modal__where{color:#a3f04a;font-weight:500;font-size:14px;margin-left:6px}
.hd-label{display:block;margin:14px 0 6px;font-size:13px;font-weight:600;color:#cfcfcf}
.hd-label small{color:#7d7d7d;font-weight:400}
.hd-input{width:100%;background:#262626;border:1px solid #333;border-radius:10px;padding:10px 12px;color:#ececec;font-size:14px}
.hd-input:focus{outline:0;border-color:#a3f04a;box-shadow:0 0 0 3px rgba(163,240,74,.15)}
textarea.hd-input{resize:vertical;min-height:140px}
.hd-btn{background:#8cd63f;color:#111;border:0;border-radius:10px;padding:10px 20px;font-weight:600}
.hd-btn:hover{background:#a3f04a}
.hd-btn--ghost{background:transparent;color:#cfcfcf;border:1px solid #333}
.hd-btn--ghost:hover{background:#2b2b2b}

/* Pas de décalage à l'ouverture d'une popup */
html{scrollbar-gutter:stable}
body.modal-open{padding-right:0!important;overflow:hidden!important}
body.modal-open header,body.modal-open .header,body.modal-open .header-area,body.modal-open .fixed-top,body.modal-open .sticky-top,body.modal-open .navbar{padding-right:0!important;margin-right:0!important}


/* Éditeur Quill (popup) */
.hd-editor .ql-toolbar.ql-snow{background:#262626;border:1px solid #333;border-radius:10px 10px 0 0}
.hd-editor .ql-container.ql-snow{background:#1b1b1b;border:1px solid #333;border-top:0;border-radius:0 0 10px 10px;min-height:200px;color:#ececec;font-size:15px;font-family:inherit}
.hd-editor .ql-editor{min-height:200px}
.hd-editor .ql-editor.ql-blank::before{color:#6b6b6b;font-style:normal}
.hd-editor .ql-snow .ql-stroke{stroke:#bdbdbd}.hd-editor .ql-snow .ql-fill{fill:#bdbdbd}
.hd-editor .ql-snow .ql-picker{color:#bdbdbd}
.hd-editor .ql-snow button:hover .ql-stroke,.hd-editor .ql-snow .ql-active .ql-stroke{stroke:#a3f04a}
.hd-editor .ql-snow button:hover .ql-fill,.hd-editor .ql-snow .ql-active .ql-fill{fill:#a3f04a}
.hd-editor .ql-snow .ql-picker-options{background:#1f1f1f;border-color:#333}
.hd-editor .ql-snow .ql-tooltip{background:#1f1f1f;border-color:#333;color:#ececec;box-shadow:none}
.hd-editor .ql-snow .ql-tooltip input{background:#262626;border-color:#333;color:#ececec}
.hd-editor .ql-editor pre.ql-syntax,.hd-editor .ql-editor .ql-code-block-container{background:#111;color:#a3f04a;border-radius:8px}

/* Galerie d'images du sujet */
.hd-gallery{position:relative;margin:14px 0 18px}
.hd-gallery__track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px}
.hd-gallery__track::-webkit-scrollbar{display:none}
.hd-gallery__item{flex:0 0 auto;width:150px;height:105px;border-radius:12px;overflow:hidden;scroll-snap-align:start;border:1px solid #333;background:#262626;display:block;transition:transform .15s,border-color .15s}
.hd-gallery__item:hover{transform:translateY(-2px);border-color:#a3f04a}
.hd-gallery__item img{width:100%;height:100%;object-fit:cover;display:block}
.hd-gallery__nav{display:none;position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:32px;height:32px;border-radius:50%;border:1px solid #333;background:rgba(20,20,20,.9);color:#ececec;place-items:center}
.hd-gallery__nav i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900;font-size:12px}
.hd-gallery__nav--prev{left:-10px}.hd-gallery__nav--next{right:-10px}
.hd-gallery--scroll .hd-gallery__nav{display:grid}
.hd-gallery__nav:hover{border-color:#a3f04a;color:#a3f04a}
@media(max-width:768px){.hd-gallery__item{width:115px;height:82px}}

/* Aperçu dans la popup */
.hd-previews{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.hd-previews img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid #333}

/* ===== Tchat flottant ===== */
.hd-chat{position:fixed;right:24px;bottom:24px;z-index:1040;font-size:14px}
.hd-chat i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
.hd-chat__fab{width:58px;height:58px;border-radius:18px;border:0;background:#8cd63f;color:#111;font-size:22px;display:grid;place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.45);transition:transform .15s,background .15s;position:relative}
.hd-chat__fab:hover{transform:translateY(-2px);background:#a3f04a}
.hd-chat.is-open .hd-chat__fab{transform:scale(.92)}
.hd-chat__unread{position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#ff5c5c;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid #161616}
.hd-chat__panel{position:absolute;right:0;bottom:72px;width:380px;height:560px;max-height:calc(100vh - 120px);background:#1b1b1b;border:1px solid #2f2f2f;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.55);display:flex;flex-direction:column;overflow:hidden}
.hd-chat__panel[hidden]{display:none}
.hd-chat__head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #2a2a2a;background:#202020}
.hd-chat__title{font-weight:700;color:#f2f2f2;display:flex;align-items:center;gap:8px}
.hd-chat__title small{color:#8a8a8a;font-weight:500;font-size:12px}
.hd-chat__dot{width:8px;height:8px;border-radius:50%;background:#8cd63f;box-shadow:0 0 0 3px rgba(140,214,63,.2)}
.hd-chat__tools{display:flex;gap:4px}
.hd-chat__tools button{width:32px;height:32px;border-radius:9px;border:0;background:transparent;color:#bdbdbd;display:grid;place-items:center}
.hd-chat__tools button:hover,.hd-chat__tools button.is-on{background:#2b2b2b;color:#a3f04a}
.hd-chat__tools button[hidden]{display:none}
.hd-chat__rooms{display:flex;gap:6px;padding:10px 12px;overflow-x:auto;border-bottom:1px solid #2a2a2a;scrollbar-width:none}
.hd-chat__rooms::-webkit-scrollbar{display:none}
.hd-chat__room{flex:0 0 auto;border:1px solid #333;background:#232323;color:#cfcfcf;border-radius:99px;padding:5px 12px;font-size:12px;font-weight:600}
.hd-chat__room:hover{border-color:#555}
.hd-chat__room.is-active{background:rgba(163,240,74,.12);border-color:rgba(163,240,74,.45);color:#a3f04a}
.hd-chat__body{position:relative;flex:1;min-height:0}
.hd-chat__msgs{height:100%;overflow-y:auto;padding:12px 10px;display:flex;flex-direction:column;gap:2px}
.hd-chat__msg{position:relative;display:flex;gap:10px;padding:6px 8px;border-radius:10px}
.hd-chat__msg:hover{background:#222}
.hd-chat__msg.is-mention{background:rgba(245,197,66,.08);box-shadow:inset 3px 0 0 #f5c542}
.hd-chat__av{flex:0 0 auto;border-radius:10px;overflow:hidden;background:#2b2b2b;color:#cfcfcf;font-weight:700;font-size:13px;display:grid;place-items:center;cursor:pointer}
.hd-chat__av img{width:100%;height:100%;object-fit:cover;display:block}
.hd-chat__content{min-width:0;flex:1}
.hd-chat__meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;line-height:1.3}
.hd-chat__meta .hd-role{margin-left:2px;padding:1px 6px;font-size:10px}
.hd-chat__meta time{color:#6f6f6f;font-size:11px;margin-left:4px}
.hd-chat__name{font-weight:700;color:#e8e8e8;cursor:pointer}
.hd-chat__name:hover{text-decoration:underline}
.hd-chat__text{color:#d6d6d6;word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.45;margin-top:1px}
.hd-chat__text a{color:#a3f04a;text-decoration:underline}
.hd-chat__del{position:absolute;top:6px;right:6px;display:none;width:26px;height:26px;border-radius:7px;border:0;background:#2b2b2b;color:#ff5c5c;font-size:11px}
.hd-chat__msg:hover .hd-chat__del{display:grid;place-items:center}
.hd-chat__sys{align-self:center;margin:8px 0;padding:5px 12px;border-radius:99px;background:#222;color:#8f8f8f;font-size:12px;text-align:center}
.hd-chat__members{position:absolute;top:0;right:0;bottom:0;width:62%;background:#1f1f1f;border-left:1px solid #2f2f2f;overflow-y:auto;padding:10px;z-index:3}
.hd-chat__members[hidden]{display:none}
.hd-chat__mtitle{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8a8a8a;font-weight:700;margin:2px 4px 8px}
.hd-chat__member{display:flex;align-items:center;gap:8px;padding:6px;border-radius:9px;cursor:pointer;flex-wrap:wrap}
.hd-chat__member:hover{background:#2a2a2a}
.hd-chat__member .hd-role{margin-left:0;padding:1px 6px;font-size:10px}
.hd-chat__pop{position:absolute;right:10px;top:10px;width:230px;background:#202020;border:1px solid #333;border-radius:14px;padding:8px;z-index:5;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.hd-chat__pop[hidden]{display:none}
.hd-chat__pophead{display:flex;align-items:center;gap:10px;padding:6px 6px 10px;border-bottom:1px solid #2c2c2c;margin-bottom:6px}
.hd-chat__pophead .hd-role{margin:4px 0 0;padding:1px 6px;font-size:10px}
.hd-chat__poptitle{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#ff5c5c;font-weight:700;padding:4px 8px 6px}
.hd-chat__popitem{width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;background:none;color:#e6e6e6;border-radius:8px;text-align:left;font-size:13px}
.hd-chat__popitem:hover{background:#2b2b2b}
.hd-chat__popitem i{width:16px;text-align:center;color:#9a9a9a}
.hd-chat__popitem.is-danger,.hd-chat__popitem.is-danger i{color:#ff5c5c}
.hd-chat__popsep{height:1px;background:#2c2c2c;margin:6px 0}
.hd-chat__form{display:flex;gap:8px;padding:10px;border-top:1px solid #2a2a2a;background:#202020}
.hd-chat__form[hidden]{display:none}
.hd-chat__form input{flex:1;min-width:0;background:#262626;border:1px solid #333;border-radius:12px;padding:10px 12px;color:#ececec}
.hd-chat__form input:focus{outline:0;border-color:#a3f04a}
.hd-chat__form button{width:42px;border:0;border-radius:12px;background:#8cd63f;color:#111}
.hd-chat__form button:hover{background:#a3f04a}
.hd-chat__toast{position:absolute;left:12px;right:12px;bottom:70px;padding:9px 12px;border-radius:10px;background:#2b2b2b;border:1px solid #3a3a3a;color:#f2f2f2;font-size:13px;text-align:center;z-index:6}
.hd-chat__toast[hidden]{display:none}
.hd-chat__guest{margin:auto;text-align:center;color:#a8a8a8;padding:30px 20px}
.hd-chat__guest i{font-size:34px;color:#8cd63f;margin-bottom:12px;display:block}
.hd-chat__guest p{margin-bottom:14px}
.hd-chat__guest .hd-btn{display:inline-block;text-decoration:none}
@media(max-width:576px){
  .hd-chat{right:14px;bottom:14px}
  .hd-chat__panel{position:fixed;inset:auto 8px 84px 8px;width:auto;height:70vh}
}

/* Boîte de dialogue centrée */
.hd-dlg{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);opacity:0;transition:opacity .16s}
.hd-dlg.is-open{opacity:1}
.hd-dlg i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
.hd-dlg__box{width:100%;max-width:400px;background:#1f1f1f;border:1px solid #333;border-radius:18px;padding:26px 24px 20px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.6);transform:translateY(10px) scale(.98);transition:transform .16s}
.hd-dlg.is-open .hd-dlg__box{transform:none}
.hd-dlg__icon{width:52px;height:52px;margin:0 auto 14px;border-radius:16px;display:grid;place-items:center;font-size:20px;background:rgba(163,240,74,.12);color:#a3f04a}
.hd-dlg__icon.is-danger{background:rgba(255,92,92,.12);color:#ff5c5c}
.hd-dlg__title{font-size:18px;font-weight:700;color:#f2f2f2;margin:0 0 6px}
.hd-dlg__text{color:#a8a8a8;font-size:14px;line-height:1.5;margin:0 0 4px}
.hd-dlg__input{margin-top:14px;text-align:left}
.hd-dlg__input.is-error{border-color:#ff5c5c!important;box-shadow:0 0 0 3px rgba(255,92,92,.15)!important}
.hd-dlg__actions{display:flex;gap:10px;margin-top:20px}
.hd-dlg__actions .hd-btn{flex:1}
.hd-btn--danger{background:#ff5c5c!important;color:#fff!important}
.hd-btn--danger:hover{background:#ff7373!important}

/* Bouton Tchat (header) */
.hd-topbtn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:12px;border:1px solid #333;color:#e8e8e8!important;font-weight:600;font-size:14px;text-decoration:none;margin-right:10px;transition:border-color .15s,color .15s}
.hd-topbtn i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900;color:#a3f04a}
.hd-topbtn:hover{border-color:#a3f04a}
.hd-topbtn.is-active{background:rgba(163,240,74,.12);border-color:rgba(163,240,74,.45);color:#a3f04a!important}
@media(max-width:576px){.hd-topbtn span{display:none}.hd-topbtn{padding:0 12px}}

/* Page Tchat */
.hd-chat--page{position:static!important;right:auto;bottom:auto;z-index:auto}
.hd-chat--page .hd-chat__fab{display:none}
.hd-chat--page .hd-chat__panel{position:relative;inset:auto;bottom:auto;right:auto;width:100%;height:calc(100vh - 170px);min-height:520px;max-height:none;box-shadow:none;border-radius:16px}
.hd-chat--page .hd-chat__body{display:flex}
.hd-chat--page .hd-chat__msgs{flex:1;height:auto;padding:16px}
.hd-chat--page .hd-chat__members{position:static;width:250px;flex:0 0 250px}
.hd-chat--page .hd-chat__toast{bottom:80px}
@media(max-width:768px){.hd-chat--page .hd-chat__members{position:absolute;width:70%}.hd-chat--page .hd-chat__panel{height:calc(100vh - 140px)}}

/* Tchat : GIF, vocal, outils */
.hd-chat__gif{display:inline-block;margin-top:4px;border-radius:12px;overflow:hidden;border:1px solid #2f2f2f;line-height:0;max-width:100%}
.hd-chat__gif img{display:block;max-width:100%;height:auto;background:#262626}
.hd-voice{display:flex;align-items:center;gap:10px;margin-top:4px;padding:8px 12px;border-radius:14px;background:#242424;border:1px solid #2f2f2f;max-width:280px}
.hd-voice__mic{color:#a3f04a;font-size:12px}
.hd-voice__btn{width:32px;height:32px;flex:0 0 32px;border-radius:50%;border:0;background:#8cd63f;color:#111;display:grid;place-items:center;font-size:12px}
.hd-voice__btn:hover{background:#a3f04a}
.hd-voice__bar{flex:1;height:6px;border-radius:99px;background:#3a3a3a;cursor:pointer;overflow:hidden}
.hd-voice__bar span{display:block;height:100%;width:0;background:#a3f04a;border-radius:99px}
.hd-voice__time{font-size:12px;color:#9a9a9a;font-variant-numeric:tabular-nums;min-width:32px;text-align:right}
.hd-chat__form{flex-wrap:nowrap;align-items:center}
.hd-chat__extra{display:flex;gap:4px}
.hd-chat__extra button{width:38px;height:42px;border:0;border-radius:11px;background:transparent;color:#bdbdbd;font-size:17px;display:grid;place-items:center}
.hd-chat__extra button:hover{background:#2b2b2b;color:#a3f04a}
.hd-chat__extra .hd-gifbtn{font-size:11px;font-weight:800;letter-spacing:.04em}
.hd-chat__send{width:42px;height:42px;border:0;border-radius:12px;background:#8cd63f;color:#111;flex:0 0 42px}
.hd-chat__form.is-recording .hd-chat__extra,.hd-chat__form.is-recording input,.hd-chat__form.is-recording .hd-chat__send{display:none}
.hd-rec{flex:1;display:flex;align-items:center;gap:10px;height:42px;padding:0 6px 0 12px;border-radius:12px;background:rgba(255,92,92,.08);border:1px solid rgba(255,92,92,.3);color:#ffb3b3;font-weight:600}
.hd-rec[hidden]{display:none}
.hd-rec__dot{width:10px;height:10px;border-radius:50%;background:#ff5c5c;animation:hdPulse 1s infinite}
.hd-rec__label{flex:1}
.hd-rec__cancel{border:0;background:transparent;color:#cfcfcf;font-weight:600;padding:6px 10px;border-radius:8px}
.hd-rec__cancel:hover{background:#2b2b2b}
.hd-rec__send{border:0;background:#8cd63f;color:#111;font-weight:700;padding:7px 12px;border-radius:9px}
@keyframes hdPulse{50%{opacity:.25}}
.hd-chat__drawer{position:absolute;left:10px;right:10px;bottom:66px;z-index:7;background:#1f1f1f;border:1px solid #333;border-radius:16px;padding:10px;box-shadow:0 16px 40px rgba(0,0,0,.5);max-height:380px;display:flex;flex-direction:column;gap:8px}
.hd-chat__drawer[hidden]{display:none}
.hd-chat__drawer emoji-picker{width:100%;height:340px;--background:#1f1f1f;--border-color:#2f2f2f;--input-border-color:#333;--input-font-color:#ececec;--input-placeholder-color:#777;--indicator-color:#a3f04a;--button-hover-background:#2b2b2b;--button-active-background:#333;--outline-color:#a3f04a}
.hd-gif__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px;overflow-y:auto;max-height:280px}
.hd-gif__item{border:0;padding:0;background:#262626;border-radius:10px;overflow:hidden;aspect-ratio:4/3}
.hd-gif__item img{width:100%;height:100%;object-fit:cover;display:block}
.hd-gif__item:hover{outline:2px solid #a3f04a}
.hd-gif__empty{grid-column:1/-1;text-align:center;color:#8a8a8a;padding:24px 8px}
.hd-gif__credit{font-size:10px;color:#666;text-align:right;text-transform:uppercase;letter-spacing:.06em}
.hd-chat--page .hd-chat__body{position:relative}

/* Barre de gauche : suit la page, espace avant le footer */
@media(min-width:992px){[class*="sidebar"]:has(.hd-ico),[class*="left-side"]:has(.hd-ico),[class*="col"]:has(> [class*="sidebar"] .hd-ico){position:static!important;top:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}}
footer,.footer,.footer-area,.footer-bottom{position:relative;z-index:20;margin-top:48px!important}

/* Gestion des rôles */
.hd-roles{background:#1f1f1f;border:1px solid #2f2f2f;border-radius:16px;padding:22px}
.hd-roles__head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.hd-roles__head h4{margin:0 0 4px;font-weight:700}
.hd-roles__head p{margin:0;color:#8f8f8f;font-size:14px}
.hd-roles__filter{display:flex;gap:8px;flex-wrap:wrap}
.hd-roles__filter .hd-input{width:auto;min-width:170px}
.hd-roles__list{display:flex;flex-direction:column;gap:8px}
.hd-roles__row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;background:#242424;border:1px solid #2c2c2c}
.hd-roles__user{display:flex;align-items:center;gap:12px;min-width:0}
.hd-roles__user small{color:#7d7d7d;font-size:12px}
.hd-roles__form{display:flex;gap:8px}
.hd-roles__form .hd-input{width:auto;min-width:160px}
.hd-roles__empty{text-align:center;color:#8f8f8f;padding:30px}

/* Cloche de notifications */
.hd-bell{position:relative;margin-right:10px}
.hd-bell i,.hd-ntoast i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
.hd-bell__btn{position:relative;width:44px;height:44px;border-radius:12px;border:1px solid #333;background:transparent;color:#e8e8e8;display:grid;place-items:center;font-size:16px}
.hd-bell__btn:hover{border-color:#a3f04a;color:#a3f04a}
.hd-bell__count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#ff5c5c;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid #1d1d1d}
.hd-bell__menu{position:absolute;right:0;top:54px;width:360px;max-width:calc(100vw - 24px);background:#1f1f1f;border:1px solid #333;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.55);z-index:1060;overflow:hidden}
.hd-bell__menu[hidden]{display:none}
.hd-bell__head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #2c2c2c}
.hd-bell__head button{border:0;background:none;color:#a3f04a;font-size:12px;font-weight:600}
.hd-bell__list{max-height:420px;overflow-y:auto}
.hd-bell__item{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid #262626;color:#d6d6d6!important;text-decoration:none}
.hd-bell__item:hover{background:#252525}
.hd-bell__item.is-unread{background:rgba(163,240,74,.05);box-shadow:inset 3px 0 0 #a3f04a}
.hd-bell__item p{margin:0;font-size:13px;line-height:1.4}
.hd-bell__item small{color:#7d7d7d;font-size:11px}
.hd-bell__av{width:36px;height:36px;flex:0 0 36px;border-radius:10px;overflow:hidden;background:#2b2b2b;display:grid;place-items:center;font-weight:700;color:#cfcfcf}
.hd-bell__av img{width:100%;height:100%;object-fit:cover}
.hd-bell__empty{padding:28px 16px;text-align:center;color:#8a8a8a;font-size:13px}
.hd-ntoast{position:fixed;left:24px;bottom:24px;z-index:2100;display:flex;align-items:center;gap:10px;max-width:360px;padding:12px 16px;border-radius:14px;background:#1f1f1f;border:1px solid #3a3a3a;color:#ececec!important;text-decoration:none;box-shadow:0 14px 40px rgba(0,0,0,.5);transform:translateY(20px);opacity:0;transition:all .25s}
.hd-ntoast.is-in{transform:none;opacity:1}
.hd-ntoast i{color:#a3f04a}

/* Statut en ligne */
.hd-av{overflow:visible!important}
.hd-av img{border-radius:inherit!important}
.hd-av.is-online::after{content:"";position:absolute;right:-2px;bottom:-2px;width:30%;height:30%;min-width:9px;min-height:9px;max-width:16px;max-height:16px;border-radius:50%;background:#3ddc84;border:2px solid #1b1b1b;z-index:2}

/* Mentions */
.hd-mention{color:#a3f04a!important;font-weight:600;background:rgba(163,240,74,.1);padding:0 4px;border-radius:5px;text-decoration:none}

/* Page Membres */
.hd-members{background:#1f1f1f;border:1px solid #2f2f2f;border-radius:16px;padding:22px}
.hd-members__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.hd-member{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:20px 14px;border-radius:14px;background:#242424;border:1px solid #2c2c2c;color:inherit!important;text-decoration:none;transition:border-color .15s,transform .15s}
.hd-member:hover{border-color:#a3f04a;transform:translateY(-2px)}
.hd-member__name{font-size:16px}
.hd-member__badge .hd-role{margin-left:0}
.hd-member__plain{font-size:11px;color:#8a8a8a;border:1px solid #333;border-radius:99px;padding:2px 8px}
.hd-member__meta{font-size:12px;color:#7d7d7d}

/* Code */
pre.hd-code{position:relative;background:#0f0f0f!important;border:1px solid #2c2c2c;border-radius:12px;padding:0!important;margin:12px 0;overflow:hidden}
pre.hd-code code.hljs{display:block;padding:16px 16px 14px!important;background:transparent!important;font-size:13px;line-height:1.55;overflow-x:auto;font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace}
.hd-copy{position:absolute;top:8px;right:8px;border:1px solid #333;background:#1f1f1f;color:#cfcfcf;font-size:11px;font-weight:600;padding:4px 10px;border-radius:8px;opacity:0;transition:opacity .15s}
pre.hd-code:hover .hd-copy{opacity:1}
.hd-copy:hover{color:#a3f04a;border-color:#a3f04a}
.hd-copy i,.hd-solution i,.hd-solved i,.hd-solform i,.hd-level i,.hd-rank i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
:not(pre)>code{background:#262626;color:#a3f04a;padding:1px 6px;border-radius:5px;font-size:.92em}

/* Solution */
.hd-solution{display:inline-flex;align-items:center;gap:5px;margin-left:10px;padding:2px 9px;border-radius:99px;background:rgba(61,220,132,.14);border:1px solid rgba(61,220,132,.4);color:#3ddc84;font-size:11px;font-weight:700}
.hd-solform button{margin-left:10px;border:0;background:none;padding:0;color:#8f8f8f;font-size:12px;font-weight:600}
.hd-solform button:hover{color:#3ddc84}
.single-comment:has(.hd-solution){border:1px solid rgba(61,220,132,.4)!important;background:rgba(61,220,132,.05)!important;border-radius:12px}
.hd-solved{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:1px 8px;border-radius:99px;background:rgba(61,220,132,.14);color:#3ddc84;font-size:11px;font-weight:700;vertical-align:middle}

/* Niveaux */
.hd-level{display:inline-flex;align-items:center;gap:5px;margin-left:6px;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:700;color:var(--lv);background:color-mix(in srgb,var(--lv) 14%,transparent);border:1px solid color-mix(in srgb,var(--lv) 40%,transparent);vertical-align:middle}
.hd-level i{font-size:10px}
.hd-member .hd-level{margin-left:0}

/* Classement */
.hd-rank{background:#1f1f1f;border:1px solid #2f2f2f;border-radius:16px;padding:22px}
.hd-rank h4 i{color:#f5c542}
.hd-rank__tabs{display:flex;gap:6px;background:#262626;padding:4px;border-radius:12px}
.hd-rank__tabs a{padding:8px 14px;border-radius:9px;color:#bdbdbd!important;font-size:13px;font-weight:600;text-decoration:none}
.hd-rank__tabs a.is-active{background:#1b1b1b;color:#a3f04a!important}
.hd-podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:12px;margin:10px 0 18px}
.hd-podium__item{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 10px 16px;border-radius:16px;background:#242424;border:1px solid #2c2c2c;text-decoration:none;color:inherit!important}
.hd-podium__item--1{padding-top:30px;border-color:rgba(245,197,66,.5);background:linear-gradient(180deg,rgba(245,197,66,.10),#242424 60%)}
.hd-podium__item--2{border-color:rgba(200,200,200,.35)}
.hd-podium__item--3{border-color:rgba(205,127,50,.45)}
.hd-podium__rank{position:absolute;top:-14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#111;background:#cfcfcf}
.hd-podium__item--1 .hd-podium__rank{background:#f5c542}
.hd-podium__item--3 .hd-podium__rank{background:#cd7f32}
.hd-podium__pts{font-size:13px;font-weight:700;color:#a3f04a}
.hd-rank__list{display:flex;flex-direction:column;gap:6px}
.hd-rank__row{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:#242424;border:1px solid #2c2c2c;color:inherit!important;text-decoration:none}
.hd-rank__row:hover{border-color:#3a3a3a}
.hd-rank__pos{width:26px;text-align:center;font-weight:800;color:#8a8a8a}
.hd-rank__who{flex:1;min-width:0}
.hd-rank__pts{font-weight:700;color:#a3f04a;font-size:13px}
.hd-rank__legend{margin-top:16px;font-size:12px;color:#777;text-align:center}
@media(max-width:576px){.hd-podium{grid-template-columns:1fr}}

/* ===== Mise en page : pleine largeur, stats fixes à droite ===== */
@media(min-width:992px){.container:has(> .main-wrapper){max-width:100%!important;width:100%!important;padding-left:28px!important;padding-right:28px!important}}
@media(min-width:992px){.main-wrapper{display:flex!important;gap:24px!important;align-items:flex-start!important}}
@media(min-width:992px){.main-wrapper__center{flex:1 1 0%!important;min-width:0!important;max-width:none!important;width:auto!important}}
.main-wrapper-content{display:flex!important;gap:24px!important;align-items:flex-start!important;width:100%!important}
.main-wrapper-content > *{min-width:0}
.main-wrapper-content > :not(:last-child){flex:1 1 0%!important;max-width:none!important;width:auto!important}
.main-wrapper-content > :last-child:not(:only-child){flex:0 0 340px!important;width:340px!important;max-width:340px!important;position:sticky!important;top:96px;align-self:flex-start}
.hd-chatpage{width:100%}
@media(max-width:1199px){
  .main-wrapper-content{flex-direction:column!important}
  .main-wrapper-content > :last-child:not(:only-child){position:static!important;width:100%!important;max-width:100%!important;flex:1 1 auto!important}
}
@media(max-width:768px){.container:has(> .main-wrapper){padding-left:14px!important;padding-right:14px!important}}

/* Fichiers joints */
.hd-files{margin:16px 0;padding:14px;border-radius:14px;background:#1b1b1b;border:1px solid #2c2c2c}
.hd-files i,.hd-reportbtn i,.hd-report i,.hd-modmenu .dropdown-item i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
.hd-files__title{font-weight:700;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.hd-files__title span{background:#2b2b2b;border-radius:99px;padding:0 8px;font-size:12px;color:#a3f04a}
.hd-file{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:#242424;border:1px solid #2f2f2f;margin-top:8px}
.hd-file__icon{font-size:22px;color:#a3f04a;width:28px;text-align:center}
.hd-file__info{flex:1;min-width:0}
.hd-file__name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-file__info small{color:#7d7d7d;font-size:12px}
.hd-file__dl{padding:8px 14px;font-size:13px;text-decoration:none;white-space:nowrap}
.hd-file__del{border:0;background:#2b2b2b;color:#ff5c5c;width:34px;height:34px;border-radius:9px}

/* Signalements */
.hd-reportbtn{margin-left:10px;border:0;background:none;padding:0;color:#7d7d7d;font-size:12px;font-weight:600}
.hd-reportbtn:hover{color:#ff5c5c}
.hd-dlg__box--left .hd-dlg__input{display:block;width:100%;margin-top:12px}
.hd-reports{display:flex;flex-direction:column;gap:10px}
.hd-report{padding:14px 16px;border-radius:14px;background:#242424;border:1px solid #2f2f2f}
.hd-report__top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.hd-report__top small{color:#7d7d7d}
.hd-report__reason{padding:2px 10px;border-radius:99px;background:rgba(255,92,92,.12);border:1px solid rgba(255,92,92,.35);color:#ff5c5c;font-size:12px;font-weight:700}
.hd-report__type{padding:2px 10px;border-radius:99px;background:#2b2b2b;color:#cfcfcf;font-size:12px;font-weight:600}
.hd-report__preview{padding:10px 12px;border-radius:10px;background:#1b1b1b;color:#d6d6d6;font-size:14px}
.hd-report__gone{color:#7d7d7d;font-style:italic}
.hd-report__details{margin-top:8px;color:#bdbdbd;font-size:13px;font-style:italic}
.hd-report__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hd-report__actions .hd-btn{padding:8px 14px;font-size:13px;text-decoration:none}

/* Messages privés */
.hd-pmbtn{margin-right:10px;text-decoration:none}
.hd-pmbtn i,.hd-pm i,.hd-pmstart i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
.hd-pmstart{display:inline-flex;align-items:center;gap:6px;margin-left:10px;padding:6px 12px;font-size:13px;text-decoration:none;vertical-align:middle}
.hd-pm{display:grid;grid-template-columns:320px 1fr;height:calc(100vh - 150px);min-height:520px;background:#1b1b1b;border:1px solid #2f2f2f;border-radius:16px;overflow:hidden}
.hd-pm__side{border-right:1px solid #2a2a2a;display:flex;flex-direction:column;min-height:0;background:#1f1f1f}
.hd-pm__sidehead{padding:16px;border-bottom:1px solid #2a2a2a}
.hd-pm__sidehead h5{margin:0 0 10px;font-weight:700}
.hd-pm__new{display:flex;gap:6px}
.hd-pm__new .hd-btn{padding:0 12px}
.hd-pm__convs{flex:1;overflow-y:auto}
.hd-pm__conv{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #262626;color:inherit!important;text-decoration:none}
.hd-pm__conv:hover{background:#242424}
.hd-pm__conv.is-active{background:rgba(163,240,74,.07);box-shadow:inset 3px 0 0 #a3f04a}
.hd-pm__convinfo{flex:1;min-width:0}
.hd-pm__convtop{display:flex;justify-content:space-between;gap:6px}
.hd-pm__convtop small{color:#6f6f6f;font-size:11px;white-space:nowrap}
.hd-pm__convlast{color:#8f8f8f;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-pm__unread{min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#a3f04a;color:#111;font-size:11px;font-weight:800;display:grid;place-items:center}
.hd-pm__unread[hidden]{display:none}
.hd-pm__empty,.hd-pm__placeholder{text-align:center;color:#8a8a8a;padding:40px 20px}
.hd-pm__empty i,.hd-pm__placeholder i{font-size:34px;color:#8cd63f;margin-bottom:12px;display:block}
.hd-pm__placeholder{margin:auto}
.hd-pm__main{display:flex;flex-direction:column;min-width:0;min-height:0}
.hd-pm__head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #2a2a2a;background:#202020}
.hd-pm__who{flex:1;min-width:0}
.hd-pm__head .hd-btn{padding:6px 12px;font-size:13px;text-decoration:none}
.hd-pm__back{display:none;color:#cfcfcf!important}
.hd-pm__thread{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:8px}
.hd-pm__msg{display:flex;flex-direction:column;align-items:flex-start;max-width:70%}
.hd-pm__msg.is-me{align-self:flex-end;align-items:flex-end}
.hd-pm__bubble{padding:10px 14px;border-radius:16px 16px 16px 4px;background:#262626;border:1px solid #2f2f2f;color:#e6e6e6;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.hd-pm__msg.is-me .hd-pm__bubble{border-radius:16px 16px 4px 16px;background:rgba(140,214,63,.16);border-color:rgba(140,214,63,.35);color:#f2f2f2}
.hd-pm__msg time{font-size:11px;color:#6f6f6f;margin:3px 4px 0}
.hd-pm__hint{margin:auto;color:#8a8a8a}
.hd-pm__form{display:flex;gap:8px;padding:12px;border-top:1px solid #2a2a2a;background:#202020}
.hd-pm__form textarea{flex:1;resize:none;background:#262626;border:1px solid #333;border-radius:12px;padding:11px 14px;color:#ececec;max-height:160px;line-height:1.4}
.hd-pm__form textarea:focus{outline:0;border-color:#a3f04a}
.hd-pm__form .hd-btn{width:46px;padding:0}
@media(max-width:860px){
  .hd-pm{grid-template-columns:1fr}
  .hd-pm.has-active .hd-pm__side{display:none}
  .hd-pm:not(.has-active) .hd-pm__main{display:none}
  .hd-pm__back{display:inline-flex}
  .hd-pm__msg{max-width:85%}
}

/* Popups Bootstrap : toujours centrées, hors des colonnes */
.main-wrapper-content > .modal,.main-wrapper-content .modal{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;flex:none!important;align-self:auto!important}
.modal-dialog{margin-left:auto!important;margin-right:auto!important}

/* Réponses : bouton + popup */
.post-reply-form{display:none!important}
.hd-replybar{display:flex;justify-content:flex-end;margin:20px 0 8px}
.hd-replybar .hd-btn{padding:12px 26px;font-size:15px;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.hd-replybar i,.hd-modal .modal-footer i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}
.hd-reply__tip{display:block;margin-top:8px;color:#7d7d7d;font-size:12px}
#hdReplyModal .hd-editor .ql-container,#hdReplyModal .hd-editor .ql-editor{min-height:220px}

/* Contenu des sujets et réponses : titres et mise en forme */
.post-detail-content h2,.hd-comment-body h2{font-size:1.4rem!important;font-weight:700;margin:22px 0 10px!important;line-height:1.3}
.post-detail-content h3,.hd-comment-body h3{font-size:1.15rem!important;font-weight:700;margin:18px 0 8px!important;line-height:1.35}
.post-detail-content h4{font-size:1.05rem!important;margin:16px 0 6px!important}
.post-detail-content ol,.post-detail-content ul,.hd-comment-body ol,.hd-comment-body ul{padding-left:1.4em;margin:6px 0 12px}
.post-detail-content li,.hd-comment-body li{margin:3px 0;list-style:revert}
.post-detail-content blockquote,.hd-comment-body blockquote{border-left:3px solid #a3f04a;background:#1f1f1f;margin:10px 0;padding:8px 14px;border-radius:0 10px 10px 0;color:#cfcfcf}
.hd-comment-body p{margin:0 0 8px}
.hd-comment-body a,.post-detail-content a{color:#a3f04a}

/* ================= RESPONSIVE ================= */
.hd-mnav{display:none}
img,video{max-width:100%}

/* Portable : boutons du header en icône seule */
@media(max-width:1399px){
  .hd-topbtn span{display:none}
  .hd-topbtn{width:44px;padding:0!important;justify-content:center;margin-right:8px}
}

/* Tablette */
@media(max-width:991px){
  .hd-logo{font-size:24px}
  .hd-roles,.hd-members,.hd-rank{padding:16px}
  .hd-roles__head{flex-direction:column;align-items:stretch}
  .hd-roles__filter{width:100%}
  .hd-roles__filter .hd-input{flex:1 1 140px;min-width:0}
  .hd-members__grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .hd-chat--page .hd-chat__panel{height:calc(100vh - 140px)}
  .hd-chat--page .hd-chat__members{position:absolute;width:75%;right:0}
  .hd-pm{height:calc(100vh - 140px)}
  .post-detail-content>.hd-modmenu{top:16px;right:14px}
}

/* Mobile */
@media(max-width:767px){
  /* Barre de navigation du bas */
  .hd-mnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1035;height:64px;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:rgba(22,22,22,.96);backdrop-filter:blur(10px);border-top:1px solid #2a2a2a;justify-content:space-around}
  .hd-mnav a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#9a9a9a!important;font-size:10px;font-weight:600;text-decoration:none;border-radius:12px}
  .hd-mnav i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal;font-size:18px}
  .hd-mnav a.is-active{color:#a3f04a!important;background:rgba(163,240,74,.08)}
  .hd-mnav b{position:absolute;top:2px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#ff5c5c;color:#fff;font-size:10px;display:grid;place-items:center}
  body{padding-bottom:70px}
  .hd-topbtn,.hd-pmbtn{display:none!important}
  .hd-bell{margin-right:6px}
  .hd-bell__btn{width:40px;height:40px}
  .hd-bell__menu{position:fixed;left:8px;right:8px;top:64px;width:auto}
  .hd-ntoast{left:12px;right:12px;bottom:80px;max-width:none}

  /* Le Salon */
  .hd-chat{right:14px;bottom:80px}
  .hd-chat__fab{width:52px;height:52px;border-radius:16px;font-size:20px}
  .hd-chat__panel{position:fixed!important;inset:62px 8px 146px 8px!important;width:auto!important;height:auto!important;max-height:none!important}
  .hd-chat--page{right:auto;bottom:auto}
  .hd-chat--page .hd-chat__panel{position:relative!important;inset:auto!important;height:calc(100vh - 200px)!important;min-height:420px}
  .hd-chat__members{width:85%!important}
  .hd-chat__extra button{width:34px}
  .hd-chat__drawer{left:6px;right:6px}

  /* Popups */
  .hd-modal .modal-dialog{margin:10px auto!important;max-width:calc(100% - 20px)!important}
  .hd-modal .modal-header,.hd-modal .modal-footer{padding:14px 16px}
  .hd-modal .modal-body{padding:6px 16px 14px}
  .hd-modal .modal-footer .hd-btn{flex:1}
  .hd-dlg__box{padding:22px 18px 16px}

  /* Messages privés */
  .hd-pm{height:calc(100vh - 200px);border-radius:12px}
  .hd-pm__head .hd-btn{display:none}

  /* Profil */
  .profile-content__user{flex-wrap:wrap!important;gap:10px!important}
  .profile-content__user h6{font-size:16px}
  .hd-pmstart{margin:6px 0 0}

  /* Rôles / Membres / Classement / Modération */
  .hd-roles__row{flex-direction:column;align-items:stretch}
  .hd-roles__form{width:100%}
  .hd-roles__form .hd-input{flex:1;min-width:0}
  .hd-members__grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .hd-member{padding:16px 8px}
  .hd-member__meta{font-size:11px}
  .hd-rank__tabs{width:100%}
  .hd-rank__tabs a{flex:1;text-align:center}
  .hd-podium{grid-template-columns:1fr}
  .hd-podium__item--1{order:-1}
  .hd-rank__row{padding:10px}
  .hd-rank__who .hd-role{display:none}
  .hd-report__actions .hd-btn,.hd-report__actions form{flex:1}
  .hd-report__actions form .hd-btn{width:100%}

  /* Sujets */
  .hd-gallery__item{width:110px;height:78px}
  .hd-file{flex-wrap:wrap}
  .hd-file__dl{flex:1;justify-content:center;display:inline-flex;align-items:center;gap:6px}
  .hd-replybar .hd-btn{width:100%;justify-content:center}
  .hd-solform button,.hd-reportbtn{margin-left:0;margin-right:10px}
  pre.hd-code code.hljs{font-size:12px}
  .hd-copy{opacity:1}

  /* Footer */
  footer,.footer,.footer-area,.footer-bottom{margin-top:24px!important;text-align:center}
}

/* Très petits écrans */
@media(max-width:380px){
  .hd-members__grid{grid-template-columns:1fr}
  .hd-mnav span{display:none}
  .hd-mnav i{font-size:20px}
}

/* Point lime façon logo après les titres */
.hd-dot{display:inline-block;width:.24em;height:.24em;min-width:6px;min-height:6px;border-radius:2px;background:#a3f04a;margin-left:.08em;vertical-align:baseline}

/* Réactions */
.hd-reacts{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}
.hd-react{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 9px;border-radius:99px;border:1px solid #2f2f2f;background:#222;color:#cfcfcf;font-size:13px;opacity:.55;transition:all .15s}
.hd-react:hover,.hd-react.has-count{opacity:1}
.hd-react:hover{border-color:#555;transform:translateY(-1px)}
.hd-react.is-mine{border-color:rgba(163,240,74,.6);background:rgba(163,240,74,.1);color:#a3f04a;opacity:1}
.hd-react__e{font-size:15px;line-height:1}
.hd-react__c{font-weight:700;font-size:12px}
.hd-react__c:empty{display:none}
.hd-react.is-pop{transform:scale(1.18)}

/* Badges */
.hd-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;width:100%}
.hd-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:10px;font-size:12px;font-weight:600;color:var(--bc);background:color-mix(in srgb,var(--bc) 12%,transparent);border:1px solid color-mix(in srgb,var(--bc) 35%,transparent);cursor:default}
.hd-badge i,.hd-poll i,.hd-pollbox i,.hd-draftnote i,.hd-trend i{font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;font-weight:900!important;font-style:normal}

/* Sondages */
.hd-pollbox{margin-top:14px;border:1px dashed #3a3a3a;border-radius:12px;padding:10px 12px}
.hd-pollbox summary{cursor:pointer;font-weight:600;color:#cfcfcf;list-style:none}
.hd-pollbox summary small{color:#777;font-weight:400}
.hd-pollbox[open] summary{margin-bottom:10px;color:#a3f04a}
.hd-pollbox .hd-input{margin-top:8px}
.hd-pollbox__foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:10px;flex-wrap:wrap}
.hd-pollbox__foot .hd-btn{padding:6px 12px;font-size:13px}
.hd-pollbox__foot label{color:#bdbdbd;font-size:13px;display:flex;align-items:center;gap:6px}
.hd-poll{margin:16px 0;padding:16px;border-radius:14px;background:#1b1b1b;border:1px solid #2c2c2c}
.hd-poll__q{font-weight:700;font-size:16px;margin-bottom:12px}
.hd-poll__q i{color:#a3f04a;margin-right:4px}
.hd-poll__q small{color:#7d7d7d;font-weight:500;font-size:12px}
.hd-poll__opt{position:relative;display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:8px;border-radius:10px;background:#242424;border:1px solid #2f2f2f;overflow:hidden;cursor:pointer}
.hd-poll__opt.is-mine{border-color:rgba(163,240,74,.5)}
.hd-poll__bar{position:absolute;left:0;top:0;bottom:0;background:rgba(163,240,74,.12);transition:width .4s}
.hd-poll__opt>*:not(.hd-poll__bar){position:relative}
.hd-poll__opt input{accent-color:#a3f04a}
.hd-poll__label{flex:1}
.hd-poll__pct{font-size:12px;font-weight:700;color:#a3f04a;white-space:nowrap}
.hd-poll__foot{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.hd-poll__foot small{color:#7d7d7d}
.hd-poll__foot .hd-btn{padding:8px 16px;font-size:13px;text-decoration:none}

/* Brouillons */
.hd-draftnote{display:flex;align-items:center;gap:8px;margin:6px 0 10px;padding:8px 12px;border-radius:10px;background:rgba(163,240,74,.08);border:1px solid rgba(163,240,74,.3);color:#a3f04a;font-size:13px;font-weight:600}
.hd-draftnote button{margin-left:auto;border:0;background:none;color:#cfcfcf;font-size:12px;font-weight:600;text-decoration:underline}

/* Tendances */
.hd-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.hd-tag{padding:5px 12px;border-radius:99px;background:#242424;border:1px solid #2f2f2f;color:#cfcfcf!important;font-size:calc(13px * var(--w,1));text-decoration:none}
.hd-tag small{color:#7d7d7d;margin-left:2px}
.hd-tag:hover{border-color:#a3f04a;color:#a3f04a!important}
.hd-trend{display:flex;flex-direction:column;gap:10px}
.hd-trend__item{display:flex;gap:12px;align-items:flex-start}
.hd-trend__rank{flex:0 0 34px;height:34px;margin-top:14px;border-radius:10px;display:grid;place-items:center;font-weight:800;background:#262626;color:#9a9a9a}
.hd-trend__item:nth-child(1) .hd-trend__rank{background:#f5c542;color:#111}
.hd-trend__item:nth-child(2) .hd-trend__rank{background:#cfcfcf;color:#111}
.hd-trend__item:nth-child(3) .hd-trend__rank{background:#cd7f32;color:#111}
.hd-trend__card{flex:1;min-width:0}
@media(max-width:767px){.hd-trend__rank{flex-basis:28px;height:28px}.hd-react{height:28px;padding:0 7px}}
.hd-reacts--bottom{margin:16px 0 4px!important}

/* Bannière d'accueil sans fond */
.welcome-banner video,.welcome-banner source,.welcome-banner img,.welcome-banner [class*="video"],.welcome-banner [class*="shape"]{display:none!important}
.welcome-banner{background:#1f1f1f!important;background-image:none!important;border:1px solid #2f2f2f!important;box-shadow:inset 4px 0 0 #a3f04a;min-height:0!important;height:auto!important;padding:28px 32px!important;border-radius:16px!important}
.welcome-banner::before,.welcome-banner::after{display:none!important}
.welcome-banner__title{margin:0!important;font-size:clamp(22px,2.4vw,30px)!important}
@media(max-width:767px){.welcome-banner{padding:20px 20px!important}}
.welcome-banner{display:none!important}
