/* =========================================================
   WPZ FORUM — CSS GLOBAL (LIGHT)
   Compatible Forum / Topics / Thread / Modal
   Corrige définitivement le bug modal desktop
   (Conversion LIGHT sans supprimer ni casser ta structure)
   ========================================================= */

/* -------------------------
   Variables (fallback)
   -> On mappe sur TES variables globales
-------------------------- */
:root{
  /* Base light */
  --wpz-forum-bg: var(--bg, #ffffff);
  --wpz-forum-card: var(--bg, #ffffff);
  --wpz-forum-border: var(--border, rgba(0,0,0,.12));
  --wpz-forum-text: var(--text, #111111);
  --wpz-forum-muted: var(--text-soft, rgba(0,0,0,.62));
  --wpz-forum-accent: var(--primary, #c0392b);
  --wpz-forum-radius: var(--radius, 10px);
  --wpz-forum-shadow: var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
}

/* -------------------------
   Base
-------------------------- */
.wpz-wrap{
  color:var(--wpz-forum-text);
}

.wpz-card{
  background:var(--wpz-forum-card);
  border:1px solid var(--wpz-forum-border);
  border-radius:var(--wpz-forum-radius);
  box-shadow:var(--wpz-forum-shadow);
}

.wpz-card__body{
  padding:16px;
}

/* -------------------------
   Buttons
-------------------------- */
.wpz-btn,
.wpz-forum-btn{
  appearance:none;
  border:0;
  border-radius:8px;
  padding:9px 14px;
  font-weight:600;
  cursor:pointer;
  background:var(--wpz-forum-accent);
  color:var(--text-invert, #fff);
  text-decoration:none;
  transition:transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.wpz-btn:hover,
.wpz-forum-btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-sm, 0 6px 18px rgba(0,0,0,.12));
}

.wpz-btn--ghost{
  background:transparent;
  border:1px solid var(--wpz-forum-border);
  color:var(--wpz-forum-accent);
}

.wpz-btn--ghost:hover{
  background:var(--primary-soft, rgba(192,57,43,.12));
}

/* -------------------------
   Breadcrumbs
-------------------------- */
.wpz-breadcrumbs{
  font-size:.9rem;
  color:var(--wpz-forum-muted);
}

.wpz-breadcrumbs a{
  color:inherit;
  text-decoration:none;
}

.wpz-breadcrumbs a:hover{
  text-decoration:underline;
}

/* =========================================================
   FORUM — ARCHIVE (grid legacy)
========================================================= */

.wpz-forum-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.wpz-forum-card h2 a{
  color:var(--wpz-forum-text);
}

.wpz-forum-card p{
  color:var(--wpz-forum-muted);
  line-height:1.45;
}

/* =========================================================
   TOPICS — LIST
========================================================= */

.wpz-topic-list{
  display:grid;
  gap:12px;
}

.wpz-topic-row h2 a{
  color:var(--wpz-forum-text);
}

.wpz-topic-row h2 a:hover{
  text-decoration:underline;
}

/* =========================================================
   WPZ FORUM — FORÇAGE TITRES TOPICS (INLINE OVERRIDE)
   - Corrige les styles inline (color:#fff)
   - Rouge + gras garantis
   ========================================================= */

/* Titre h2 */
.wpz-topic-row h2{
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

/* Lien du titre (inline color:#fff à écraser) */
.wpz-topic-row h2 a{
  color: var(--primary, #c0392b) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Hover */
.wpz-topic-row h2 a:hover{
  color: var(--primary-hover, #a93226) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Première lettre en majuscule */
.wpz-topic-row h2 a::first-letter{
  text-transform: uppercase;
}


/* =========================================================
   SINGLE TOPIC
========================================================= */

.wpz-topic-title{
  font-size:1.4rem;
  text-align:left;
}
.wpz-topic-title::first-letter{
  text-transform: uppercase;
}

.wpz-topic-meta{
  font-size:.9rem;
  color:var(--wpz-forum-muted);
}

/* =========================================================
   THREAD
========================================================= */

.wpz-forum-thread{
  margin-top:18px;
}

.wpz-forum-thread__title{
  margin:0 0 10px;
  font-size:1.2rem;
}

.wpz-forum-thread__list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.wpz-forum-loading{
  color:var(--wpz-forum-muted);
}

/* Message */
.wpz-forum-post{
  background:var(--bg-soft, #f5f6f8);
  border:1px solid var(--border-soft, rgba(0,0,0,.08));
  border-radius:8px;
  padding:12px;
}

.wpz-forum-post__meta{
  font-size:.8rem;
  color:var(--wpz-forum-muted);
  margin-bottom:6px;
}

.wpz-forum-post__content{
  line-height:1.5;
}

/* -------------------------
   Forms
-------------------------- */
.wpz-forum-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}

.wpz-forum-input,
.wpz-forum-textarea{
  background:var(--bg, #fff);
  border:1px solid var(--wpz-forum-border);
  color:var(--wpz-forum-text);
  border-radius:6px;
  padding:8px 10px;
}

.wpz-forum-input:focus,
.wpz-forum-textarea:focus{
  outline:none;
  border-color:var(--wpz-forum-accent);
  box-shadow:0 0 0 2px var(--ring, rgba(192,57,43,.35));
}

.wpz-forum-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.wpz-forum-msg{
  font-size:.85rem;
  color:var(--wpz-forum-muted);
}

/* =========================================================
   CONTEXT BLOCK (films / acteurs / articles)
========================================================= */

.wpz-forum-context{
  margin-top:28px;
  padding:18px;
  background:var(--wpz-forum-card);
  border:1px solid var(--wpz-forum-border);
  border-radius:var(--wpz-forum-radius);
  box-shadow:var(--wpz-forum-shadow);
}

.wpz-forum-context__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.wpz-forum-context__title{
  margin:0;
  font-size:1.25rem;
}

.wpz-forum-context__cta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.wpz-forum-topics{
  list-style:none;
  padding:0;
  margin:0;
}

.wpz-forum-topic{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 0;
  border-bottom:1px solid var(--border-soft, rgba(0,0,0,.08));
}

.wpz-forum-topic:last-child{
  border-bottom:0;
}

.wpz-forum-topic__link{
  color:var(--wpz-forum-text);
  text-decoration:none;
}

.wpz-forum-topic__link:hover{
  text-decoration:underline;
}

/* Badge */
.wpz-forum-badge{
  font-size:.7rem;
  padding:3px 6px;
  border-radius:6px;
  background:var(--bg-muted, #eef0f3);
  border:1px solid var(--border-soft, rgba(0,0,0,.08));
  color:var(--text, #111);
}

.wpz-forum-badge--question{ background:var(--info-soft, rgba(41,128,185,.16)); border-color:rgba(41,128,185,.25); color:var(--info, #2980b9); }
.wpz-forum-badge--analysis{ background:rgba(142,68,173,.12); border-color:rgba(142,68,173,.25); color:#8e44ad; }
.wpz-forum-badge--bug{ background:var(--danger-soft, rgba(231,76,60,.16)); border-color:rgba(231,76,60,.25); color:var(--danger, #e74c3c); }

/* =========================================================
   MODAL — ROBUSTE (FIX BUG DESKTOP)
========================================================= */

/* Overlay */
.wpz-forum-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999999;
}

/* PRIORITÉ ABSOLUE : hidden = jamais visible */
.wpz-forum-modal[hidden]{
  display:none !important;
}

/* Box */
.wpz-forum-modal__box{
  background:var(--bg, #fff);
  border:1px solid var(--wpz-forum-border);
  border-radius:var(--wpz-forum-radius);
  width:min(520px, 92vw);
  box-shadow:var(--shadow, 0 12px 30px rgba(0,0,0,.18));
}

/* Header */
.wpz-forum-modal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--border-soft, rgba(0,0,0,.08));
}

.wpz-forum-modal__close{
  background:none;
  border:0;
  color:var(--text, #111);
  font-size:20px;
  cursor:pointer;
}

/* Body */
.wpz-forum-modal__body{
  padding:14px;
}

/* =========================================================
   PAGINATION
========================================================= */

.wpz-pagination ul{
  display:flex;
  gap:6px;
  list-style:none;
  padding:0;
  margin:0;
}

.wpz-pagination a,
.wpz-pagination span{
  padding:6px 10px;
  border-radius:6px;
  background:var(--bg-muted, #eef0f3);
  border:1px solid var(--border-soft, rgba(0,0,0,.08));
  color:var(--wpz-forum-text);
  text-decoration:none;
}

.wpz-pagination a:hover{
  background:var(--bg-soft, #f5f6f8);
}

.wpz-pagination .current{
  background:var(--wpz-forum-accent);
  border-color:var(--wpz-forum-accent);
  color:var(--text-invert, #fff);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:900px){
  .wpz-forum-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:600px){
  .wpz-forum-context__head{
    flex-direction:column;
    align-items:flex-start;
  }

  .wpz-forum-actions{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Priorité absolue : si hidden -> jamais visible */
.wpz-forum-modal[hidden]{ display:none !important; }

/* =========================================================
   ARCHIVE FORUM — TABLE STYLE (moderne)
========================================================= */

.wpz-forum-archive{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

.wpz-forum-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.wpz-forum-hero__title{
  margin:0;
  font-size:1.6rem;
  line-height:1.1;
  color:var(--couleur-titres, #222);
}

.wpz-forum-hero__sub{
  margin:8px 0 0;
  color:var(--wpz-forum-muted);
}

.wpz-forum-table{
  border:1px solid var(--wpz-forum-border);
  border-radius:var(--wpz-forum-radius);
  overflow:hidden;
  background:var(--bg, #fff);
  box-shadow:var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
}

.wpz-forum-table__head{
  display:grid;
  grid-template-columns: 1fr 140px 260px 120px;
  gap:0;
  padding:12px 14px;
  background:var(--bg-muted, #eef0f3);
  border-bottom:1px solid var(--border-soft, rgba(0,0,0,.08));
  font-weight:700;
  color:var(--text, #111);
}

.wpz-forum-row{
  display:grid;
  grid-template-columns: 1fr 140px 260px 120px;
  gap:0;
  padding:14px;
  border-bottom:1px solid var(--border-soft, rgba(0,0,0,.08));
  background:var(--bg, #fff);
}

.wpz-forum-row:nth-child(even){
  background:var(--bg-soft, #f5f6f8);
}

.wpz-forum-row:last-child{
  border-bottom:0;
}

.wpz-forum-row .muted{
  color:var(--wpz-forum-muted);
  font-size:.9rem;
}

.wpz-forum-row__title{
  font-size:1.05rem;
  line-height:1.2;
}

.wpz-forum-link{
  color:var(--primary, #c0392b);
  text-decoration:none;
}

.wpz-forum-link:hover{
  text-decoration:underline;
}

.wpz-forum-row__desc{
  margin-top:8px;
  color:var(--wpz-forum-muted);
  line-height:1.45;
}

.wpz-forum-row__meta{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.wpz-forum-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.78rem;
  padding:4px 8px;
  border:1px solid var(--border-soft, rgba(0,0,0,.08));
  border-radius:999px;
  background:var(--primary-soft, rgba(192,57,43,.12));
  color:var(--primary, #c0392b);
}

.wpz-forum-last__title{
  display:block;
  color:var(--wpz-forum-text);
  text-decoration:none;
  line-height:1.25;
}

.wpz-forum-last__title:hover{
  text-decoration:underline;
}

.wpz-forum-last__date{
  display:block;
  margin-top:6px;
  font-size:.85rem;
  color:var(--wpz-forum-muted);
}

.c-topics{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:4px;
}

.c-last{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.c-action{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

/* Responsive */
@media (max-width: 980px){
  .wpz-forum-table__head{ display:none; }
  .wpz-forum-row{
    grid-template-columns: 1fr;
    gap:10px;
  }
  .c-action{ justify-content:flex-start; }
  .c-topics{
    flex-direction:row;
    gap:8px;
    align-items:center;
  }
}





/*PAGE SINGLE-TOPIC.PHP*/
/* =========================================================
   WPZ FORUM — SINGLE TOPIC (LIGHT)
   Couvre : breadcrumbs, header topic, meta, actions,
   card contenu, thread réponses, form, états
   Basé sur tes variables globales
   ========================================================= */

:root{
  --wpz-forum-bg: var(--bg, #fff);
  --wpz-forum-soft: var(--bg-soft, #f5f6f8);
  --wpz-forum-mutedbg: var(--bg-muted, #eef0f3);

  --wpz-forum-text: var(--text, #111);
  --wpz-forum-softtext: var(--text-soft, rgba(0,0,0,.62));
  --wpz-forum-mutedtext: var(--text-muted, rgba(0,0,0,.72));

  --wpz-forum-border: var(--border, rgba(0,0,0,.12));
  --wpz-forum-bordersoft: var(--border-soft, rgba(0,0,0,.08));

  --wpz-forum-accent: var(--primary, #c0392b);
  --wpz-forum-accentsoft: var(--primary-soft, rgba(192,57,43,.12));

  --wpz-forum-radius: var(--radius, 10px);
  --wpz-forum-radius-sm: var(--radius-sm, 6px);
  --wpz-forum-shadow: var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
  --wpz-forum-shadow-sm: var(--shadow-sm, 0 6px 18px rgba(0,0,0,.12));

  --wpz-forum-ring: var(--ring, rgba(192,57,43,.35));
  --wpz-forum-font: var(--font-brand, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

/* =========================================================
   Layout wrapper (le template a déjà du inline style,
   on complète visuellement)
========================================================= */

.wpz-wrap{
  font-family: var(--wpz-forum-font);
  color: var(--wpz-forum-text);
}

/* =========================================================
   Breadcrumbs
========================================================= */

.wpz-breadcrumbs{
  font-size: .92rem;
  color: var(--wpz-forum-softtext);
  line-height: 1.35;
}

.wpz-breadcrumbs a{
  color: inherit;
  text-decoration: none;
}

.wpz-breadcrumbs a:hover{
  color: var(--wpz-forum-accent);
  text-decoration: underline;
}

.wpz-breadcrumbs span[aria-hidden="true"]{
  opacity: .6;
}

/* =========================================================
   Header topic
========================================================= */

.wpz-topic-head{
  padding: 0;
}

.wpz-topic-title{
  color: var(--couleur-titres, #222);
  font-size: 1.7rem;
  letter-spacing: .1px;
  text-align:left;
}

.wpz-topic-meta{
  font-size: .95rem;
  color: var(--wpz-forum-softtext);
}

.wpz-topic-meta a{
  color: var(--wpz-forum-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wpz-topic-meta a:hover{
  text-decoration-thickness: 2px;
}

/* Actions (boutons) */
.wpz-topic-actions .wpz-btn{
  white-space: nowrap;
}

/* =========================================================
   Cards (topic content + thread)
========================================================= */

.wpz-card{
  background: var(--wpz-forum-bg);
  border: 1px solid var(--wpz-forum-border);
  border-radius: var(--wpz-forum-radius);
  box-shadow: var(--wpz-forum-shadow);
}

.wpz-card__body{
  padding: 16px;
}

/* Article body (contenu WP) */
.wpz-article-body{
  color: var(--wpz-forum-text);
  line-height: 1.65;
}

.wpz-article-body p{
  margin: 0 0 12px;
}

.wpz-article-body h2, 
.wpz-article-body h3{
  color: var(--couleur-titres, #222);
  line-height: 1.2;
  margin: 18px 0 10px;
}

.wpz-article-body a{
  color: var(--wpz-forum-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wpz-article-body a:hover{
  text-decoration-thickness: 2px;
}

/* =========================================================
   Thread
========================================================= */

.wpz-topic-thread{
  margin-top: 18px;
}

/* Titre "Réponses" (h2 inline dans template) */
.wpz-topic-thread h2{
  font-size: 1.15rem;
  color: var(--couleur-titres, #222);
}

/* Liste des réponses */
.wpz-forum-thread__list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Message muted */
.wpz-forum-muted{
  color: var(--wpz-forum-softtext);
  font-size: .95rem;
}

/* =========================================================
   Posts (si ton JS injecte .wpz-forum-post)
========================================================= */

.wpz-forum-post{
  background: var(--wpz-forum-soft);
  border: 1px solid var(--wpz-forum-bordersoft);
  border-radius: var(--wpz-forum-radius-sm);
  padding: 12px;
}

.wpz-forum-post__meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--wpz-forum-softtext);
  margin-bottom: 6px;
}

.wpz-forum-post__content{
  color: var(--wpz-forum-text);
  line-height: 1.6;
  word-wrap: break-word;
}

.wpz-forum-post__content a{
  color: var(--wpz-forum-accent);
  text-decoration: underline;
}

/* =========================================================
   Votes (si ton JS injecte .wpz-forum-votes)
========================================================= */

.wpz-forum-votes{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.wpz-forum-vote{
  border: 1px solid var(--wpz-forum-border);
  background: var(--wpz-forum-bg);
  color: var(--wpz-forum-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.wpz-forum-vote:hover{
  background: var(--wpz-forum-mutedbg);
  transform: translateY(-1px);
}

.wpz-forum-vote--up{
  border-color: rgba(39,174,96,.25);
}

.wpz-forum-vote--down{
  border-color: rgba(231,76,60,.25);
}

/* =========================================================
   Form réponse
========================================================= */

.wpz-forum-form{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wpz-forum-bordersoft);
}

.wpz-forum-post-content{
  width: 100%;
  background: var(--wpz-forum-bg);
  border: 1px solid var(--wpz-forum-border);
  color: var(--wpz-forum-text);
  border-radius: var(--wpz-forum-radius-sm);
  padding: 10px 12px;
  font-family: var(--wpz-forum-font);
  line-height: 1.55;
  resize: vertical;
  min-height: 110px;
}

.wpz-forum-post-content:focus{
  outline: none;
  border-color: var(--wpz-forum-accent);
  box-shadow: 0 0 0 2px var(--wpz-forum-ring);
}

/* Feedback msg */
.wpz-forum-msg{
  font-size: .92rem;
  color: var(--wpz-forum-softtext);
}

.wpz-forum-msg.is-ok{
  color: var(--success, #27ae60);
}

.wpz-forum-msg.is-err{
  color: var(--danger, #e74c3c);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 900px){
  .wpz-topic-title{ font-size: 1.45rem; }
}

@media (max-width: 560px){
  .wpz-card__body{ padding: 14px; }
  .wpz-forum-votes{ gap: 6px; }
  .wpz-forum-vote{ padding: 6px 9px; }
}







/* =========================================================
   WPZ FORUM — SINGLE FORUM (NO INLINE) + META PRO (SANS BADGE)
   - Meta ligne principale + compteur rouge
   - Dernière réponse en dessous, gris clair, sans badge
   ========================================================= */

.wpz-forum-page{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

.wpz-breadcrumbs{
  margin-bottom:14px;
}

/* Head forum */
.wpz-forum-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.wpz-forum-title{
  margin:0;
  color:var(--couleur-titres, #222);
  line-height:1.15;
}

.wpz-forum-sub{
  margin:8px 0 0;
  color:var(--text-soft, rgba(0,0,0,.62));
}

/* Liste topics (dans un forum) */
.wpz-topic-list--forum{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.wpz-topic-row__body{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.wpz-topic-row__content{
  min-width:260px;
  flex:1 1 520px;
}

/* TITRE : gras + rouge */
.wpz-topic-row__title{
  margin:0;
  font-size:1.05rem;
  line-height:1.2;
}

.wpz-topic-row__title a{
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  color:var(--primary, #c0392b);
}

.wpz-topic-row__title a:hover{
  color:var(--primary-hover, #a93226);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

/* Colonne action */
.wpz-topic-row__action{
  display:flex;
  gap:10px;
  align-items:center;
}

/* =========================================================
   META TOPIC — EXACTEMENT COMME DEMANDÉ
   Ligne 1 : Par X le date - (rouge) N réponse(s)
   En dessous : Dernière réponse par / pseudo / date-heure (gris)
   ========================================================= */

.wpz-topic-row__meta{
  margin-top:8px;
  display:flex;
  flex-direction:column; /* IMPORTANT : colonne */
  gap:10px;
  font-size:.92rem;
}

/* Ligne principale */
.wpz-topic-meta-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text-soft, rgba(0,0,0,.62));
}

.wpz-topic-meta-author{
  font-weight:600;
  color:var(--text, #111);
}

.wpz-topic-meta-date{
  color:var(--text-soft, rgba(0,0,0,.62));
}

.wpz-topic-meta-sep{
  opacity:.6;
}

/* Compteur rouge */
.wpz-topic-meta-count{
  font-weight:800;
  color:var(--primary, #c0392b);
}

/* Dernière réponse (sans badge, gris clair, en dessous) */
/* =========================================================
   WPZ FORUM — DERNIÈRE RÉPONSE SUR UNE SEULE LIGNE
   ========================================================= */

.wpz-topic-meta-last{
  display:flex;              /* au lieu de column */
  flex-direction:row;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  white-space:nowrap;
  color:rgba(0,0,0,.55);
  font-size:.80rem;
}

/* Texte "Dernière réponse par" */
.wpz-topic-meta-last-label{
  font-weight:400;
  color:rgba(0,0,0,.55);
}

/* Pseudo */
.wpz-topic-meta-last-user{
  font-weight:700;
  color:rgba(0,0,0,.65);
}

/* Date + heure */
.wpz-topic-meta-last-date{
  font-size:.88rem;
  color:rgba(0,0,0,.55);
}
/* Dernière réponse : mode relatif (moins de 24h) */
.wpz-topic-meta-last[data-mode="relative"] .wpz-topic-meta-last-date{
  color: var(--primary, #c0392b);
  font-weight: 700;
}

/* Mode date complète : gris normal */
.wpz-topic-meta-last[data-mode="absolute"] .wpz-topic-meta-last-date{
  color: rgba(0,0,0,.55);
  font-weight: 400;
}

/* Dernière réponse : relatif => un peu plus visible */
.wpz-topic-meta-last .wpz-topic-meta-last-date{
  font-weight: 600;
  color: var(--primary, #c0392b);
}



/* Responsive */
@media (max-width: 980px){
  .wpz-forum-head{ align-items:flex-start; }
}




/* =========================================================
   WPZ FORUM — ARCHIVE FORUM (cohérent avec archive topics)
   Template: templates/forum/archive-forum.php
   ========================================================= */

/* Container */
.wpz-forum-archive{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

/* Hero */
.wpz-forum-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.wpz-forum-hero__title{
  margin:0;
  line-height:1.15;
  color:var(--couleur-titres, #222);
  text-align:left;
}

.wpz-forum-hero__sub{
  margin:8px 0 0;
  color:var(--text-soft, rgba(0,0,0,.62));
}

/* Table wrapper (aspect "forum") */
.wpz-forum-table{
  border:1px solid var(--border, rgba(0,0,0,.12));
  border-radius:var(--radius-lg, 14px);
  background:var(--bg, #fff);
  box-shadow:var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
  overflow:hidden;
}

/* Header row */
.wpz-forum-table__head{
  display:grid;
  grid-template-columns: 1.4fr .35fr 1fr .25fr;
  gap:0;
  padding:12px 14px;
  background:var(--bg-soft, #f5f6f8);
  border-bottom:1px solid var(--border, rgba(0,0,0,.12));
  font-weight:700;
  color:var(--couleur-titres, #222);
}

.wpz-forum-table__head .c-action{
  text-align:right;
}

/* Rows */
.wpz-forum-row{
  display:grid;
  grid-template-columns: 1.4fr .35fr 1fr .25fr;
  gap:0;
  padding:14px;
  border-bottom:1px solid var(--border-soft, rgba(0,0,0,.08));
  align-items:center;
  background:transparent;
}

.wpz-forum-row:last-child{
  border-bottom:0;
}

.wpz-forum-row:hover{
  background:var(--bg-muted, #eef0f3);
}

/* Column: Forum */
.wpz-forum-row .c-forum{
  min-width:0;
}

.wpz-forum-row__title{
  margin:0;
  line-height:1.2;
}

.wpz-forum-link{
  font-weight:800;
  color:var(--primary, #c0392b);
  text-decoration:none;
}

.wpz-forum-link:hover{
  color:var(--primary-hover, #a93226);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.wpz-forum-row__desc{
  margin-top:6px;
  color:var(--text-soft, rgba(0,0,0,.62));
  font-size:.92rem;
  line-height:1.35;
}

.wpz-forum-row__meta{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Small pill (light, not a badge) */
.wpz-forum-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  border:1px solid rgba(0,0,0,.10);
  background:var(--bg-soft, #f5f6f8);
  border-radius:999px;
  font-size:.85rem;
  color:var(--text-soft, rgba(0,0,0,.62));
}

/* Column: Topics */
.wpz-forum-row .c-topics{
  text-align:center;
  color:var(--text-soft, rgba(0,0,0,.62));
  font-size:.92rem;
}

.wpz-forum-row .c-topics strong{
  display:block;
  font-size:1.05rem;
  color:var(--couleur-titres, #222);
}

.wpz-forum-row .c-topics .muted{
  display:block;
  margin-top:2px;
  opacity:.9;
}

/* Column: Last topic */
.wpz-forum-row .c-last{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.wpz-forum-last__title{
  font-weight:700;
  color:var(--couleur-titres, #222);
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.wpz-forum-last__title:hover{
  color:var(--primary, #c0392b);
  text-decoration:underline;
  text-underline-offset:3px;
}

.wpz-forum-last__date{
  font-size:.85rem;
  color:var(--text-soft, rgba(0,0,0,.62));
}

.wpz-forum-row .muted{
  color:var(--text-soft, rgba(0,0,0,.62));
}

/* Column: Action */
.wpz-forum-row .c-action{
  text-align:right;
  display:flex;
  justify-content:flex-end;
}

/* Pagination (cohérence) */
.wpz-forum-archive .wpz-pagination{
  margin-top:18px;
  display:flex;
  justify-content:center;
}

/* Responsive */
@media (max-width: 980px){
  .wpz-forum-table__head{
    display:none;
  }

  .wpz-forum-row{
    grid-template-columns: 1fr;
    gap:10px;
    align-items:flex-start;
  }

  .wpz-forum-row .c-topics{
    text-align:left;
    display:flex;
    gap:8px;
    align-items:baseline;
  }

  .wpz-forum-row .c-topics strong{
    display:inline;
  }

  .wpz-forum-row .c-topics .muted{
    display:inline;
    margin:0;
  }

  .wpz-forum-row .c-action{
    justify-content:flex-start;
  }
}










/* =========================================================
   WPZ FORUM — ARCHIVE TOPICS (cohérent)
   ========================================================= */

.wpz-topic-archive{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

.wpz-archive-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.wpz-archive-title{
  margin:0;
  line-height:1.15;
  color:var(--couleur-titres, #222);
  text-align:left;
}

.wpz-archive-sub{
  margin:8px 0 0;
  color:var(--text-soft, rgba(0,0,0,.62));
}

.wpz-topic-list{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.wpz-topic-row__body{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.wpz-topic-row__content{
  min-width:260px;
  flex:1 1 520px;
}

.wpz-topic-row__title{
  margin:0;
  font-size:1.05rem;
  line-height:1.2;
}

.wpz-topic-row__title a{
  font-weight:800;
  color:var(--primary, #c0392b);
  text-decoration:none;
}

.wpz-topic-row__title a:hover{
  color:var(--primary-hover, #a93226);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.wpz-topic-row__meta{
  margin-top:8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:left;
  font-size:.92rem;
  color:var(--text-soft, rgba(0,0,0,.62));
}

/* Compteur en rouge */
.wpz-topic-meta-count{
  font-weight:800;
  color:var(--primary, #c0392b);
}

.wpz-topic-row__action{
  display:flex;
  align-items:center;
  gap:10px;
}

@media (max-width: 980px){
  .wpz-archive-head{ align-items:flex-start; }
}



/* =========================================================
   WPZ FORUM — Communauté UX (titre + bouton full width)
   + badge petit au-dessus du titre
   + répondre petit à droite
   + dernière réponse sur toute la ligne
   ========================================================= */

.wpz-forum-context__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.wpz-forum-context__title{
  margin:0;
}

/* Bouton CTA sur toute la ligne */
.wpz-forum-context__cta{
  flex: 1 0 100%;
}

.wpz-forum-context__cta .wpz-forum-btn{
  width:100%;
  justify-content:center;
}

/* Liste */
.wpz-forum-topics{
  margin:0;
  padding:0;
  list-style:none;
}

.wpz-forum-topic{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 0;
  border-top:1px solid var(--border-soft, rgba(0,0,0,.08));
}

.wpz-forum-topic:first-child{
  border-top:0;
  padding-top:0;
}

/* Colonne gauche (badge + titre + last) */
.wpz-forum-topic__left{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Badge petit au-dessus du titre */
.wpz-forum-badge{
  align-self:flex-start;
  font-size:.72rem;
  line-height:1;
  padding:4px 8px;
  border-radius:999px;
  letter-spacing:.02em;
}

/* Titre */
.wpz-forum-topic__link{
  font-weight:800;
  color:var(--couleur-titres, #222);
  text-decoration:none;
  line-height:1.15;
}

.wpz-forum-topic__link:hover{
  color:var(--primary, #c0392b);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Action à droite (plus petit) */
.wpz-forum-topic__action{
  display:flex;
  align-items:flex-start;
}

.wpz-forum-reply{
  font-size:.82rem;
  padding:6px 10px;
  line-height:1.1;
  white-space:nowrap;
}

/* Dernière réponse sur toute la ligne (en dessous du titre) */
.wpz-forum-topic__last{
  width:100%;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  font-size:.82rem;
  color:rgba(0,0,0,.55);
}

.wpz-forum-topic__last strong{
  font-weight:700;
  color:rgba(0,0,0,.65);
}

.wpz-forum-topic__last time{
  font-weight:600;
  color:var(--primary, #c0392b);
}

/* Mobile: garde le bouton répondre bien aligné */
@media (max-width: 520px){
  .wpz-forum-topic{
    gap:10px;
  }
  .wpz-forum-topic__action{
    margin-left:auto;
  }
}

/* =========================================================
   WPZ FORUM — HEADER COMMUNAUTÉ (titre + bouton même ligne)
   ========================================================= */

.wpz-forum-context__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:nowrap;
}

/* Titre à gauche */
.wpz-forum-context__title{
  margin:0;
  white-space:nowrap;
}

/* Zone CTA à droite */
.wpz-forum-context__cta{
  flex:0 0 auto;
}

/* Bouton poser une question (pas full width ici) */
.wpz-forum-context__cta .wpz-forum-btn{
  width:auto;
  padding:10px 18px;
  font-weight:700;
}

@media (max-width: 640px){
  .wpz-forum-context__head{
    flex-wrap:wrap;
  }

  .wpz-forum-context__cta{
    width:100%;
  }

  .wpz-forum-context__cta .wpz-forum-btn{
    width:100%;
    justify-content:center;
  }
}








/* =========================================================
   WPZ FORUM — SINGLE TOPIC (light, clair, lisible)
   ========================================================= */

.wpz-topic-page{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

/* Carte question */
.wpz-topic-post{
  background:var(--bg, #fff);
  border:1px solid var(--border, rgba(0,0,0,.12));
  border-radius:var(--radius, 10px);
  box-shadow:var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
  overflow:hidden;
}

.wpz-topic-post__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-bottom:1px solid var(--border-soft, rgba(0,0,0,.08));
  flex-wrap:wrap;
}

.wpz-topic-post__titlewrap{ flex:1 1 auto; min-width:260px; }

.wpz-topic-title{
  margin:0;
  line-height:1.15;
  font-weight:900;
  color:var(--couleur-titres, #222);
  text-align:left;
  text-transform:capitalize;
}

.wpz-topic-subline{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:.92rem;
  color:rgba(0,0,0,.58);
}

.wpz-topic-subline__item strong{
  color:rgba(0,0,0,.72);
  font-weight:800;
}

.wpz-topic-forumlink{
  color:var(--primary, #c0392b);
  font-weight:800;
  text-decoration:none;
}
.wpz-topic-forumlink:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.wpz-topic-post__actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex:0 0 auto;
}

.wpz-topic-post__body{
  padding:16px;
}

.wpz-topic-post__footer{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px 16px;
  border-top:1px solid var(--border-soft, rgba(0,0,0,.08));
  background:linear-gradient(to bottom, rgba(192,57,43,.06), transparent);
}

.wpz-topic-reply-hint{
  font-size:.9rem;
  color:rgba(0,0,0,.55);
}

/* Thread */
.wpz-topic-thread{
  margin-top:16px;
  background:var(--bg, #fff);
  border:1px solid var(--border, rgba(0,0,0,.12));
  border-radius:var(--radius, 10px);
  box-shadow:var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
  padding:14px 16px 16px;
}

/* Liste réponses */
.wpz-thread-feed{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Supporte plusieurs markups possibles (ton forum.js) */
.wpz-thread-feed .wpz-forum-post,
.wpz-thread-feed .wpz-forum-item,
.wpz-thread-feed .wpz-forum-row,
.wpz-thread-feed .wpz-post{
  background:var(--bg-soft, #f5f6f8);
  border:1px solid var(--border-soft, rgba(0,0,0,.08));
  border-radius:12px;
  padding:12px;
}

.wpz-thread-feed .wpz-forum-post:hover,
.wpz-thread-feed .wpz-forum-item:hover,
.wpz-thread-feed .wpz-forum-row:hover,
.wpz-thread-feed .wpz-post:hover{
  border-color:rgba(0,0,0,.12);
}

/* Meta réponse */
.wpz-thread-feed .wpz-forum-meta,
.wpz-thread-feed .wpz-post-meta,
.wpz-thread-feed .wpz-forum-post__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-size:.88rem;
  color:rgba(0,0,0,.55);
  margin-bottom:8px;
}

.wpz-thread-feed .wpz-forum-user,
.wpz-thread-feed .wpz-forum-author,
.wpz-thread-feed .wpz-user{
  font-weight:900;
  color:rgba(0,0,0,.72);
}

/* Actions (J'aime / J'aime pas / Score / Répondre) */
.wpz-thread-feed .wpz-forum-actions,
.wpz-thread-feed .wpz-forum-post__actions,
.wpz-thread-feed .wpz-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}

/* Boutons vote : si ce sont des <button> / <a> */
.wpz-thread-feed button,
.wpz-thread-feed .wpz-btn{
  border-radius:10px;
}

.wpz-thread-reply-mini{
  font-size:.82rem;
  padding:6px 10px;
  line-height:1.1;
  font-weight:900;
}


/* =========================================================
   WPZ FORUM — ARCHIVE TOPICS (cohérent + responsive)
   ========================================================= */

.wpz-topic-archive{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
}

.wpz-topic-list{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.wpz-topic-row__body{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.wpz-topic-row__content{
  min-width:260px;
  flex:1 1 560px;
}

/* Titre : gras + rouge */
.wpz-topic-row__title{
  margin:0;
  font-size:1.05rem;
  line-height:1.2;
  text-align:left;
}

.wpz-topic-row__title a{
  text-decoration:none;
  font-weight:800;
  color:var(--primary, #c0392b);
}

.wpz-topic-row__title a:hover{
  color:var(--primary-hover, #a93226);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

/* Meta wrapper */
.wpz-topic-row__meta{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Ligne 1 : Par X • date • forum • count */
.wpz-topic-meta-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:.92rem;
  color:var(--text-soft, rgba(0,0,0,.62));
}

.wpz-topic-meta-author{
  font-weight:600;
  color:var(--text, #111);
}

.wpz-topic-meta-sep{
  opacity:.55;
}

.wpz-topic-meta-forum a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}

.wpz-topic-meta-forum a:hover{
  color:var(--primary, #c0392b);
}

/* Compteur réponses en rouge */
.wpz-topic-meta-count{
  font-weight:800;
  color:var(--primary, #c0392b);
}

/* Dernière réponse : une seule ligne, gris clair */
.wpz-topic-meta-last{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:baseline;
  font-size:.86rem;
  color:rgba(0,0,0,.55);
}

.wpz-topic-meta-last-label{
  opacity:.9;
}

.wpz-topic-meta-last-user{
  font-weight:700;
  color:rgba(0,0,0,.62);
}

.wpz-topic-meta-last-date{
  color:rgba(0,0,0,.55);
}

/* Action */
.wpz-topic-row__action{
  display:flex;
  align-items:center;
}

/* Responsive */
@media (max-width: 720px){
  .wpz-topic-row__content{
    min-width:0;
    flex:1 1 100%;
  }
  .wpz-topic-row__action{
    width:100%;
    justify-content:flex-end;
  }
}


/* Votes en icônes (thumb up/down) */
.wpz-forum-votes--icons{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.wpz-forum-votes--icons .wpz-forum-vote{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border, rgba(0,0,0,.12));
  background:var(--bg, #fff);
  color:var(--text, #111);
  cursor:pointer;
  transition:transform var(--transition-fast,150ms ease), box-shadow var(--transition-fast,150ms ease), border-color var(--transition-fast,150ms ease);
}

.wpz-forum-votes--icons .wpz-forum-vote:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-xs, 0 2px 6px rgba(0,0,0,.06));
  border-color:var(--border-strong, rgba(0,0,0,.2));
}

.wpz-forum-votes--icons .wpz-forum-vote:active{
  transform:translateY(0);
}

.wpz-vote-ico{
  width:18px;
  height:18px;
  display:block;
}

.wpz-vote-count{
  font-weight:800;
  font-size:.8rem;
  line-height:1;
}

/* Option : différencier up/down subtilement */
.wpz-forum-vote--up .wpz-vote-ico{ color: var(--success, #27ae60); }
.wpz-forum-vote--down .wpz-vote-ico{ color: var(--danger, #e74c3c); }
.wpz-vote-ico{
  width:18px;
  height:18px;
  fill:currentColor;
}

.wpz-vote-ico--up{
  color: var(--success, #27ae60);
}

.wpz-vote-ico--down{
  color: var(--primary, #c0392b);
}

.wpz-like span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}


/* TOPBAR (1 ligne) : retour gauche / actions droite */
.wpz-topic-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}

.wpz-topic-topbar__right{
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}

.wpz-topic-topbar__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  text-decoration:none;
  color:var(--text-soft, rgba(0,0,0,.62));
  padding:6px 0;
}

.wpz-topic-topbar__link:hover{
  color:var(--primary, #c0392b);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.wpz-topic-topbar__link--strong{
  color:var(--text, #111);
}

/* Mobile : on garde 1 ligne, on réduit l’espace si besoin */
@media (max-width: 520px){
  .wpz-topic-topbar{
    gap:10px;
  }
  .wpz-topic-topbar__right{
    gap:10px;
  }
  .wpz-topic-topbar__link{
    font-size:.92rem;
  }
}






/* =========================================================
   WPZ FORUM — THREAD en frise (fiable avec réponses décalées)
   - Ligne verticale continue à gauche (très clair)
   - Branche horizontale collée à l’axe ET au message
   - Les réponses (margin-left) ont leur branche décalée plus à gauche
   - La verticale ne dépasse pas au-dessus du 1er trait horizontal
   - Pas de rond
   - Pas de dépassement visible
   ========================================================= */

/* Desktop tokens */
:root{
  --wpz-tl-pad: 34px;                /* colonne frise */
  --wpz-tl-axis: 16px;               /* position de l’axe dans la colonne */
  --wpz-tl-y: 25px;                  /* hauteur des traits */
  --wpz-tl-w: 2px;                   /* épaisseur */
  --wpz-tl-col: rgba(0,0,0,.06);     /* gris plus clair */
}

/* 1) Conteneur : réserve colonne frise + clip horizontal */
.wpz-forum-thread__list,
.wpz-thread-feed{
  position: relative;
  padding-left: var(--wpz-tl-pad);
  overflow-x: hidden;
}

/* 2) Axe vertical : démarre à la hauteur du premier trait horizontal */
.wpz-forum-thread__list::before,
.wpz-thread-feed::before{
  content:"";
  position:absolute;
  left: var(--wpz-tl-axis);
  top: var(--wpz-tl-y);              /* IMPORTANT: pas de dépassement au-dessus */
  bottom: 0;
  width: var(--wpz-tl-w);
  background: var(--wpz-tl-col);
  border-radius: 2px;
}

/* 3) Post : ancre locale */
.wpz-forum-post{
  position: relative;
  overflow: visible;
}

/* 4) Branche horizontale (cas normal, non indenté)
      - part exactement de l’axe (via calc)
      - arrive au bord gauche de la carte */
.wpz-forum-post::before{
  content:"";
  position:absolute;
  top: var(--wpz-tl-y);

  /* départ = axe (dans la colonne frise) */
  left: calc(0px - (var(--wpz-tl-pad) - var(--wpz-tl-axis)));

  /* longueur = distance axe -> bord de la carte */
  width: calc(var(--wpz-tl-pad) - var(--wpz-tl-axis));

  height: var(--wpz-tl-w);
  background: var(--wpz-tl-col);
  border-radius: 2px;
}

/* 5) Réponses indentées :
      ton JS met margin-left: 14px ou 28px (max) :contentReference[oaicite:2]{index=2}
      => on décale UNIQUEMENT le trait horizontal vers la gauche (left plus négatif),
         et on l’allonge pour garder le point d’arrivée au bord du message. */

/* Indent 14px */
.wpz-forum-post[style*="margin-left:14px"]::before{
  left: calc(0px - (var(--wpz-tl-pad) - var(--wpz-tl-axis)) - 14px);
  width: calc(var(--wpz-tl-pad) - var(--wpz-tl-axis) + 14px);
}

/* Indent 28px */
.wpz-forum-post[style*="margin-left:28px"]::before{
  left: calc(0px - (var(--wpz-tl-pad) - var(--wpz-tl-axis)) - 28px);
  width: calc(var(--wpz-tl-pad) - var(--wpz-tl-axis) + 28px);
}

/* =========================================================
   Mobile (colonne frise compacte)
========================================================= */
@media (max-width: 560px){
  :root{
    --wpz-tl-pad: 28px;
    --wpz-tl-axis: 14px;
    --wpz-tl-col: rgba(0,0,0,.055);  /* encore plus clair */
  }

  /* Indent 14px */
  .wpz-forum-post[style*="margin-left:14px"]::before{
    left: calc(0px - (var(--wpz-tl-pad) - var(--wpz-tl-axis)) - 14px);
    width: calc(var(--wpz-tl-pad) - var(--wpz-tl-axis) + 14px);
  }

  /* Indent 28px */
  .wpz-forum-post[style*="margin-left:28px"]::before{
    left: calc(0px - (var(--wpz-tl-pad) - var(--wpz-tl-axis)) - 28px);
    width: calc(var(--wpz-tl-pad) - var(--wpz-tl-axis) + 28px);
  }
}

/* =========================================================
   WPZ FORUM — Format reply: @user (petit rouge gras) + texte à côté
   Nécessite que le JS wrap le @user dans <span class="wpz-mention">
   ========================================================= */

.wpz-forum-post__content p{
  margin: 0;
  line-height: 1.65;
  font-size: .95rem;
  color: var(--text, #111);
}

/* Le @username */
.wpz-forum-post__content .wpz-mention{
  display: inline-block;
  font-size: .82rem;
  font-weight: 900;
  color: var(--primary, #c0392b);
  margin-right: 6px;
  white-space: nowrap;
  vertical-align: baseline;
}




/*Photo de profil de l'utilisateur dans les posts*/
.wpz-forum-post__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.wpz-forum-authorline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.wpz-forum-avatar{
  width:26px;
  height:26px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 26px;
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.10);
}

.wpz-forum-username{
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 220px;
}

@media (max-width:560px){
  .wpz-forum-avatar{ width:24px; height:24px; flex-basis:24px; }
  .wpz-forum-username{ max-width: 160px; }
}



.wpz-forum-posted{
  opacity:.7;
  font-weight:600;
  margin:0 6px;
}
.wpz-forum-postday, .wpz-forum-post__meta time{
  margin-left: 6px;
  font-size: .65rem;
  font-weight: 600;
  opacity: .6;
  white-space: nowrap;
}


/* =========================================================
   PATCH — ARCHIVE FORUM “TABLE” + COLONNES RÉPONSES / ACTIVITÉ
   À coller EN FIN de ton fichier CSS global (après tout le reste)
   Objectif :
   - Ajouter les colonnes .c-replies et .c-activity
   - Afficher l’avatar + dernier posteur + lien topic + date (rules)
   - Responsive : head cachée <980px + rows en “cards” 1 colonne
   - Ne casse rien : uniquement compléments/overrides
   ========================================================= */

/* 1) Table head : on passe à 5 colonnes si la page utilise ces colonnes */
.wpz-forum-table__head{
  /* Forum | Topics | Réponses | Dernière activité | Action */
  grid-template-columns: 1.35fr .35fr .35fr 1.05fr .25fr;
}

/* 2) Rows : même grille 5 colonnes */
.wpz-forum-row{
  grid-template-columns: 1.35fr .35fr .35fr 1.05fr .25fr;
  align-items:center;
}

/* 3) Colonnes “Réponses” */
.c-replies{
  text-align:center;
  color:var(--text-soft, rgba(0,0,0,.62));
  font-size:.92rem;
}
.c-replies strong{
  display:block;
  font-size:1.05rem;
  color:var(--couleur-titres, #222);
}
.c-replies .muted{
  display:block;
  margin-top:2px;
  opacity:.9;
}

/* 4) Colonne “Dernière activité” (avatar + texte) */
.c-activity{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

/* Bloc activité */
.wpz-forum-activity{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.wpz-forum-activity__avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 34px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.10);
}
.wpz-forum-activity__main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

/* Ligne “Nom · Topic” */
.wpz-forum-activity__who{
  display:flex;
  align-items:baseline;
  gap:6px;
  min-width:0;
}
.wpz-forum-activity__name{
  font-weight:900;
  color:rgba(0,0,0,.72);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:22ch;
}
.wpz-forum-activity__sep{
  opacity:.55;
}
.wpz-forum-activity__topic{
  font-weight:800;
  color:var(--couleur-titres, #222);
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:38ch;
}
.wpz-forum-activity__topic:hover{
  color:var(--primary, #c0392b);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Date (rules) */
.wpz-forum-activity__date{
  display:block;
  font-size:.85rem;
  color:var(--text-soft, rgba(0,0,0,.62));
  white-space:nowrap;
}

/* 5) Si fallback = “dernier topic” (tes classes existent déjà) */
.c-activity .wpz-forum-last__title{
  font-weight:700;
}
.c-activity .wpz-forum-last__date{
  font-size:.85rem;
}

/* 6) Responsive tablette : on réduit un peu la colonne activité */
@media (max-width: 1024px){
  .wpz-forum-table__head{
    grid-template-columns: 1.4fr .35fr .35fr 1fr .25fr;
  }
  .wpz-forum-row{
    grid-template-columns: 1.4fr .35fr .35fr 1fr .25fr;
  }
  .wpz-forum-activity__topic{ max-width:30ch; }
}

/* 7) Responsive mobile : head cachée + row en “carte” 1 colonne */
@media (max-width: 980px){
  .wpz-forum-table__head{ display:none; }

  .wpz-forum-row{
    grid-template-columns: 1fr;
    gap:10px;
    align-items:flex-start;
    border-radius:var(--wpz-forum-radius, 10px);
    margin:0 0 12px;
    overflow:hidden;
  }

  /* Réponses + Topics : affichage “inline” comme ton style existant */
  .c-topics, .c-replies{
    text-align:left;
    display:flex;
    gap:8px;
    align-items:baseline;
  }
  .c-topics strong, .c-replies strong{ display:inline; }
  .c-topics .muted, .c-replies .muted{ display:inline; margin:0; }

  /* Action à gauche sur mobile */
  .c-action{
    justify-content:flex-start;
  }

  .wpz-forum-activity__topic{ max-width:26ch; }
}

/* 8) Ultra mobile : avatar légèrement plus petit */
@media (max-width: 560px){
  .wpz-forum-activity__avatar{
    width:30px;
    height:30px;
    flex-basis:30px;
  }
  .wpz-forum-activity__name{ max-width:18ch; }
  .wpz-forum-activity__topic{ max-width:22ch; }
}




.wpz-toast{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  padding: 12px 16px;
  border-radius: 14px;
  background: #dff7e6;
  border: 1px solid rgba(39,174,96,.35);
  color: rgba(0,0,0,.85);
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: opacity .18s ease, transform .18s ease;
}
.wpz-toast.is-on{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wpz-post-highlight{
  outline: 3px solid rgba(39,174,96,.35);
  outline-offset: 4px;
  border-radius: 14px;
}



/* ✅ Garantit l’affichage des dashicons dans le badge */
.wpzge .wpzge-badge-ico .dashicons{
  display:block;
  width:18px;
  height:18px;
  line-height:18px;
  font-size:18px;
  color:#fff;
}
