
header {
  background: #333;
  color: #fff;
  padding: 10px 15px;
}

header h1 {
  margin: 0;
}

header nav a {
  color: #fff;
  text-decoration: none;
}

main {
  width: 100%;
  margin: auto;
  padding: 20px 0;
}

footer {
  text-align: center;
  background: #eee;
  padding: 10px;
  font-size: 0.85rem;
}

/* ==== Liste des sujets ==== */
.belcms_forum_topics {
  list-style: none;
  padding: 0;
}

.belcms_forum_topics li {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.belcms_forum_topics a {
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.belcms_forum_bnv,
.belcms_forum_topics span {
  color: #777;
  font-size: 0.85rem;
  margin-left: 10px;
}

/* ==== Thread ==== */
.belcms_forum_post {
  display: flex;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.belcms_forum_author {
  width: 100px;
  min-width: 100px;
  background-color: #f9f9f9;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
  border-right: 1px solid #ddd;
}

.belcms_forum_avatar {
  width: 90px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 8px;
}

.belcms_forum_username {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.belcms_forum_infos {
  font-size: 0.8rem;
  color: #666;
}

.belcms_forum_content {
  flex: 1;
  padding: 10px 15px;
  box-sizing: border-box;
}

/* ==== Responsive ==== */
@media (max-width: 600px) {
  .belcms_forum_post {
    flex-direction: column;
  }

  .belcms_forum_author {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .belcms_forum_avatar {
    max-width: 70px;
  }
}
/* ====== SOUS-CATEGORIES BEL-CMS ====== */

.subcat {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.subcat:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.subcat .card-body {
  padding: 1rem 1.25rem;
}

.subcat h3 {
  font-weight: 600;
  color: #0d6efd; /* Bleu Bootstrap */
}

.subcat p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.subcat .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
}

/* Option : variations de couleur pour distinguer les catégories */
.bg-primary-subtle {
  background-color: #e7f1ff !important;
}

.bg-success-subtle {
  background-color: #e6f7ee !important;
}

.bg-warning-subtle {
  background-color: #fff8e6 !important;
}

.bg-danger-subtle {
  background-color: #ffeaea !important;
}

/* Petits ajustements responsive */
@media (max-width: 576px) {
  .subcat h3 {
    font-size: 0.9rem;
  }
  .subcat p {
    font-size: 0.8rem;
  }
}

.subcat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0.8rem 1.2rem rgba(13, 110, 253, 0.15);
}

.subcat:hover h3 i {
  transform: scale(1.2);
  color: #0b5ed7;
}

.subcat h3 i {
  transition: transform 0.25s ease, color 0.25s ease;
}

.subcat .badge {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.4rem;
}
.bg-primary-subtle { background-color: #d8e8ff !important; }
.bg-success-subtle { background-color: #c9f2dc !important; }
.subcat p {
  color: #5a5a5a;
}

@media (max-width: 576px) {
  .subcat h3 { font-size: 0.85rem; }
  .subcat p  { font-size: 0.75rem; }
}
/* Forcer un fond légèrement coloré + bordure */
.subcat.card {
  background-color: #f8f9fa; /* gris clair */
  border: 1px solid rgba(0,0,0,0.08);
}

/* Rendre le titre bien visible */
.subcat h3 {
  color: #0d6efd; /* Bleu Bootstrap */
  font-weight: 600;
}

/* Assombrir le texte de description */
.subcat p {
  color: #495057;
}

/* Badges plus contrastés */
.subcat .badge {
  font-weight: 600;
}

/* Effet hover même sur thème clair */
.subcat:hover {
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
}

/* Styles pour thèmes clairs */
@media (prefers-color-scheme: light) {
  .subcat.card {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  .subcat h3 {
    color: #0d6efd;
    font-weight: 600;
  }
  .subcat p {
    color: #495057;
  }
  .subcat .badge {
    font-weight: 600;
  }
  .subcat:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
  }
}

/* Styles pour thèmes sombres */
@media (prefers-color-scheme: dark) {
  .subcat.card {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .subcat h3 {
    color: #4dabf7;
    font-weight: 600;
  }
  .subcat p {
    color: #dee2e6;
  }
  .subcat .badge {
    font-weight: 600;
  }
  .subcat:hover {
    background-color: #2c2c2c;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.4);
  }
}
.belcms_forum_black {
  color: #000 !important;
}


.forum-card .metrics {
  min-width: 110px;         /* Garde deux lignes lisibles */
  line-height: 1.2;
}

.forum-card .last-activity .avatar-2lines {
  width: 48px;              /* Hauteur ≈ deux lignes de texte */
  height: 48px;
}

@media (max-width: 575.98px) {
  .forum-card .metrics { min-width: 96px; }
  .forum-card .last-activity .avatar-2lines {
    width: 44px; height: 44px;
  }
}

/* Optionnel: forcer la coupure des titres trop longs */
.forum-card h6 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-card {
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.forum-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ---- Avatar ---- */
.forum-card img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.forum-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* ---- Titre ---- */
.forum-card h6 {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: underline transparent;
  margin: 0;
}
.forum-card h6:hover {
  color: #0d6efd;
  text-decoration-color: #0d6efd;
}

/* ---- Métriques ---- */
.forum-card .metrics {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  line-height: 1.4;
  transition: transform 0.2s ease;
}
.forum-card:hover .metrics {
  transform: translateY(-2px);
}

/* ---- Dernière activité ---- */
.forum-card .last-activity {
  transition: background-color 0.25s ease;
  border-radius: 6px;
  padding: 4px;
}
.forum-card .last-activity:hover {
  background-color: rgba(13, 110, 253, 0.05);
}
.forum-card .avatar-2lines {
  width: 48px;
  height: 48px;
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
  .forum-card .d-flex.flex-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .forum-card .metrics,
  .forum-card .last-activity {
    text-align: left;
  }
}

        .belcms_forum_reponse {
            background: #fff;
            border-radius: 8px;
            padding: 20px;
            max-width: 800px;
            margin: auto;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        }
        .belcms_forum_reponse h2 {
            color: #0077cc;
            margin-bottom: 10px;
        }
        .belcms_forum_section {
            margin-bottom: 15px;
        }
        .belcms_forum_section strong {
            display: block;
            margin-bottom: 5px;
            color: #444;
        }
        .belcms_forum_signature {
            margin-top: 20px;
            font-style: italic;
            color: #777;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }
        .avatar > img {
          width: 60px;
          height: 60px;
          border-radius: 50%;
        }



    /* Style du fond de la popup */
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
    }

    /* Contenu de la popup */
    .popup-content {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      width: 400px;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

    textarea {
      width: 100%;
      height: 100px;
      margin-bottom: 10px;
    }

    button {
      padding: 8px 16px;
      margin-right: 10px;
    }
    .modal-backdrop {
      z-index: 1;
    }
    .modal-backdrop.show {
      opacity: 1;
    }
    .modal {
      margin-top: 70px;
    }

#belcms_forum_btn_reply {
  position: absolute;
  right: 15px;
  bottom: 15px;
}
.author {
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

/* Charte */
    #belcms_forum_charte_title {
      text-align: center;
      font-size: 2.5em;
      color: #2c3e50;
      margin-bottom: 40px;
      animation: belcms_forum_charte_fadeInDown 1s ease-out;
    }

    .belcms_forum_charte_section {
      background-color: #fff;
      padding: 20px;
      margin-bottom: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      animation: belcms_forum_charte_fadeInUp 0.8s ease forwards;
      opacity: 0;
    }

    .belcms_forum_charte_section:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

    .belcms_forum_charte_heading {
      font-size: 1.6em;
      color: #34495e;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .belcms_forum_charte_list {
      list-style: none;
      padding-left: 0;
    }

    .belcms_forum_charte_item {
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: transform 0.2s ease;
    }

    .belcms_forum_charte_item:hover {
      transform: translateX(5px);
    }

    .belcms_forum_charte_item i {
      color: #2ecc71;
      font-size: 1.2em;
      transition: transform 0.3s ease;
    }

    .belcms_forum_charte_item:hover i {
      transform: rotate(360deg);
    }

    @media (max-width: 600px) {
      #belcms_forum_charte_title {
        font-size: 2em;
      }
      .belcms_forum_charte_heading {
        font-size: 1.3em;
      }
      .belcms_forum_charte_section {
        padding: 15px;
      }
    }

    @keyframes belcms_forum_charte_fadeInUp {
      from {
        transform: translateY(30px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes belcms_forum_charte_fadeInDown {
      from {
        transform: translateY(-30px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

.belcms_forum_charte_back-btn {
  display: inline-block;
  background-color: #27ae60;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s, transform 0.3s;
  margin-bottom: 30px;
}