.forum-container {
  margin-top: 15vh;

  background-color: #f4f7f6; 
  min-height: 85vh;
  padding: 2rem;
}

.forum-container .left-part{
  width: 75%;
}

.forum-container .right-part{
  width: 20%;
}

.forum-form{
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--blue);
  margin-bottom: 2rem;
}

.forum-form .form{
  border-top: 5px solid var(--yellow);
  padding: 1rem 4rem;
  width: 100%;
}

.forum-form h3{
 color: var(--black_soft);
 margin-bottom: 1rem;
}

.forum-form .form input{
  height: 2rem;
}

.forum-form .form textarea{
  padding: 1rem;
}

.forum-form .form input, .forum-form .form textarea{
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.forum-form .form label{
  margin-bottom: 0.5rem;
  font-size: 11pt;
}

.forum-form .form .bouton-standard{
  color: white;
  width: 30%;
  align-self: center;
  border-radius: 3rem;
  background: #01587A;
}

.forum-form .form .bouton-standard:hover{
  width: 40%;
  background-color: var(--blue);
}

.categorie{
  margin-bottom: 3rem; 
}

.categorie .categorie-header{
 
  background-color: #d1d8e0; 
  padding: 1rem 2rem;
  color: #2d3436;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}

.create-sub-category p{
 
  background-color: #ececec;
  text-align: right;
  display: block;
  width: 100%;
  padding: 0.3rem 2rem;
  color: #4b4b4b;
  font-size: 11pt;
}

.create-sub-category .forum-form{
  margin-bottom: 0px !important;
  display: none;
}

.forum-container .btn-icon{
  background-color: var(--white) !important;
  color: var(--black_soft);
  padding: 1px 3px;
  border-radius: 2px;
}

.forum-container .btn-icon:hover{
  background-color: var(--yellow) !important;
}

.forum-table{
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: var(--white);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1); 
}

.forum-table thead tr{
  
  background-color: #f1f2f6;
  color: #2f3542;
}

.forum-table tbody tr td:first-child p:last-child{
  margin-top: 0.4rem;
  font-size: 9pt;
  color: var(--gray);
}

.forum-table th, .forum-table td{
  text-align: left;
  padding: 1rem 2rem;
}

.forum-table th{
  font-weight: 100 !important;
  padding: 1.5rem 1rem !important;
}

.forum-table th:nth-child(1),
.forum-table td:nth-child(1) {
  width: 60%;
}

.forum-table th:nth-child(2),
.forum-table td:nth-child(2) {
  width: 10%;
}

.forum-table th:nth-child(3),
.forum-table td:nth-child(3) {
  width: 30%;
}

.forum-table tr:hover{
  background-color: #f8f9fa; 
}

.forum-table thead tr:hover{
  background-color: #f1f2f6;
}


.bouton-forum{
  background-color: var(--yellow);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.bouton-forum:hover{
  background-color: var(--clear_blue);
}


.sujet-container {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 17vh;
}

.sujet-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.sujet-header h1 {
  font-size: 2rem;
  margin: 0;
  color: #1e272e;
}

.sujet-date {
  color: #a4b0be;
  font-size: 0.95rem;
  margin-top: 5px;
}

.sujet-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2f3640;
  margin-bottom: 40px;
  white-space: pre-wrap;
  display: flex;
}

.sujet-user{
  width: 18vw;
  background: #f1f2f6;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #2d3436;
  line-height: normal;
  white-space:unset;
}

.reponse-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-left: 4px solid var(--blue2);
  padding-left: 10px;
  color: var(--blue2);
}

.reponse-card {
  background: #ffffff;
  border: 1px solid #f1f2f6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.reponse-card:hover {
  transform: translateY(-4px);
  background-color: #fdfdfd;
}

.user-info {
  width: 18vw;
  background: #f1f2f6;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #2d3436;
}

.user-info p {
  margin: 6px 0;
}

.reponse-content {
  flex: 1;
}

.reponse-content p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.reponse-content small {
  color: #a4b0be;
  font-size: 0.85rem;
}

.form-section {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.form-reponse textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  margin-bottom: 15px;
  outline: none;
  transition: border 0.2s ease;
}

.form-reponse textarea:focus, .form-reponse input:focus {
  border-color: var(--blue2);
}

.form-reponse button {
  background-color: var(--blue2);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-reponse button:hover {
  background-color: var(--clear_blue);
}

.form-reponse input{
  height: 2rem;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  margin-bottom: 15px;
  outline: none;
  transition: border 0.2s ease;
}


.forum-add-form{
  line-height: 1.6;
  padding: 0 10rem;
}

.forum-add-form h3{
  color: var(--black_soft);
  font-size: 16pt;
  margin-bottom: 2rem;
}

.forum-add-form h3 span{
  color: var(--blue2);
  font-size: 13pt;
}

