body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
  }

  ::selection {
    color: white;
    background-color: #51473d;
  }

  a {
    color: #6B5D4C;
    text-decoration: none;
    transition: color 0.3s;
  }

  a:hover {
    color: #51473d;
  }

  .site-header {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
  }

  .site-logo {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
  }

  .site-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0.5rem;
  }

  .primary-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
  }

  .primary-menu li {
    margin-left: 1rem;
  }

  .primary-menu li a {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
  }

  .primary-menu li a:hover {
    color: #6B5D4C;
  }

  .primary-menu li a.active {
    color: #6B5D4C;
  }

  .hamburger {
    display: none;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
  }

  .hamburger:hover span {
    background-color: #6B5D4C;
  }

  .product-description {
    padding: 4rem 0;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
  }

  .product-description h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .product-description h4 {
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 0;
  }

  /* Articles list */
  .article-list {
    margin-top: 2rem;
  }

  .article-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
  }

  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .article-card .card-body {
    padding: 1.5rem;
  }

  .article-card .card-img-top {
    height: 200px;
    object-fit: cover;
  }

  .article-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
  }

  .article-meta .meta-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
  }

  .article-meta i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
  }

  .article-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 0;
  }

  .article-tag {
    background-color: #f1f1f1;
    color: #6B5D4C;
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
  }

  .article-tag:hover {
    background-color: #6B5D4C;
    color: #fff;
    text-decoration: none;
  }

  .article-excerpt {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  /* Category Filter */
  .category-filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }

  .category-filter {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #6c757d;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
  }

  .category-filter:hover, .category-filter.active {
    background-color: #6B5D4C;
    border-color: #6B5D4C;
    color: #fff;
  }

  /* Section titles */
  .section-title {
    position: relative;
    margin: 3rem 0 2rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #6B5D4C;
  }

  /* Featured article */
  .featured-article {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 3rem;
  }

  .featured-article-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
  }

  .featured-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
  }

  .featured-article-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .featured-article-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
  }

  /* Search bar */
  .search-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .search-bar {
    position: relative;
  }

  .search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    background-color: #fff;
    transition: all 0.3s;
  }

  .search-input:focus {
    border-color: #6B5D4C;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(107, 93, 76, 0.25);
  }

  .search-button {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s;
  }

  .search-button:hover {
    color: #6B5D4C;
  }

  /* Thread list */
  .thread-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1.5rem;
  }

  .thread-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .thread-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .thread-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
  }

  .thread-meta .meta-item {
    display: flex;
    align-items: center;
    margin-right: 1.25rem;
  }

  .thread-meta i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
  }

  .thread-excerpt {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .thread-tags {
    display: flex;
    flex-wrap: wrap;
  }

  .thread-tag {
    background-color: #f1f1f1;
    color: #6B5D4C;
    border-radius: 50px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
  }

  .thread-tag:hover {
    background-color: #6B5D4C;
    color: #fff;
    text-decoration: none;
  }
  
  .language-badge {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 3px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    vertical-align: middle;
  }

  /* Pagination */
  .pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }

  .pagination .page-item .page-link {
    color: #6B5D4C;
    background-color: #fff;
    border-color: #dee2e6;
    padding: 0.5rem 1rem;
  }

  .pagination .page-item.active .page-link {
    background-color: #6B5D4C;
    border-color: #6B5D4C;
    color: #fff;
  }

  .pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #51473d;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    text-align: center;
  }

  .footer-logo img {
    max-height: 60px;
    border-radius: 50%;
  }

  .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
  }

  .footer-menu li {
    margin: 0 1rem;
  }

  .footer-menu li a {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.3s;
  }

  .footer-menu li a:hover {
    color: #6B5D4C;
  }

  .footer-social {
    text-align: center;
  }

  .footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
  }

  .footer-social ul li {
    margin-left: 1rem;
  }

  .footer-social ul li a {
    color: #cacedb;
    font-size: 1.25rem;
    transition: color 0.3s;
  }

  .footer-social ul li a:hover {
    color: #6B5D4C;
  }

  /* Media Queries */
  @media (max-width: 992px) {
    .hamburger {
      display: inline-block;
    }

    .primary-menu {
      display: none;
      flex-direction: column;
      align-items: flex-start;
    }

    .primary-menu.active {
      display: flex;
    }

    .primary-menu li {
      margin: 0.5rem 0;
    }
  }

  @media (max-width: 767px) {
    .featured-article-image {
      height: 250px;
    }

    .featured-article-title {
      font-size: 1.5rem;
    }

    .article-card .card-img-top {
      height: 180px;
    }

    .footer-menu {
      flex-direction: column;
      align-items: center;
    }

    .footer-menu li {
      margin: 0.5rem 0;
    }

    .footer-social ul {
      justify-content: center;
    }
  }

  #threadModal .modal-dialog {
  max-width: 75%;
}

/* Styles pour les petits écrans */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  .product-description {
    padding: 2rem 0;
  }
  .product-description h1 {
    font-size: 1.75rem;
  }
  .page-title {
    font-size: 1.75rem;
  }
  .hamburger {
    display: block;
  }
  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-bottom: 1px solid #dee2e6;
  }
  .primary-menu.active {
    display: flex;
  }
  .primary-menu li {
    margin: 0.5rem 0;
    margin-left: 0;
  }
  .primary-menu li a {
    padding: 0.75rem;
    font-size: 1.1rem;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .page-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .footer-menu {
    flex-direction: column;
  }
  .footer-menu li {
    margin: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 1.75rem auto; /* Marge verticale et centrage horizontal automatique */
  }
  #threadModal .modal-dialog {
    max-width: 85%;
}
}