body {
  background-color: #121212;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  --s: 75px;

  --tree-color: #d86c6c;
  --ornament-color: #ff0000;
  --snowflake-color: #ffffff;
  --background-color: #222;

  --_c: var(--tree-color), var(--background-color) 2deg 79deg,
    var(--background-color) 81deg;

  --g0: conic-gradient(from 140deg at 50% 87.5%, var(--_c));
  --g1: conic-gradient(from 140deg at 50% 81.25%, var(--_c));
  --g2: conic-gradient(from 140deg at 50% 75%, var(--_c));

  --g3: conic-gradient(at 10% 20%, #0000 75%, var(--snowflake-color) 0);
  --g4: repeating-conic-gradient(from 45deg,
      var(--ornament-color) 0 25%,
      #fff 0 50%);

  background:
    var(--g0) 0 calc(var(--s) / -4),
    var(--g0) var(--s) calc(3 * var(--s) / 4),
    var(--g1),
    var(--g1) var(--s) var(--s),
    var(--g2) 0 calc(var(--s) / 4),
    var(--g2) var(--s) calc(5 * var(--s) / 4),
    var(--g3) calc(var(--s) / -10) var(--s),
    var(--g3) calc(9 * var(--s) / 10) calc(2 * var(--s)),
    var(--g4) calc(var(--s) / 2) var(--s);

  background-size: calc(2 * var(--s)) calc(2 * var(--s));
  background-position: center center;
  background-repeat: repeat;
}

.back a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 20px;
  margin-left: 5%;
  font-size: 20px;
  text-decoration: none;
  user-select: none;
}

.group-container {
  max-width: 1000px;
  margin: 40px auto;
  background-color: #1d1d1d;
  border-radius: 10px;
  padding: 20px;
  color: white;
}

.group-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.group-banner {
  width: 90%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.group-title-section {
  display: flex;
  align-items: center;
  background-color: #222;
  border-radius: 12px;
  gap: 15px;
  padding: 5px;
  margin-top: -50px;
}

.group-icon {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  border: 3px solid #555555;
  background: #444;
}

.group-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.group-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.group-description p {
  margin: 5px;
  font-size: 18px;
}

.group-server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  padding-left: 5%;
  padding-right: 5%;
  margin-bottom: 50px;
}

.server-card {
  border: #a1a6e12e solid;
  position: relative;
  background-color: #151515;
  width: 500px;
  height: 400px;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: left;
  justify-content: space-between;
}

.server-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}

.server-card-header {
  position: absolute;
  background-color: #151515d6;
  top: 10px;
  left: 15px;
  right: 15px;
  display: flex;
  padding-left: 10px;
  align-items: center;
  border-radius: 10px;
  z-index: 2;
  justify-content: flex-start;
  height: 27%;
}

.server-icon {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  margin-right: 12px;
  border: 3px solid #111;
  background-color: #222;
}

.server-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-title-line h3 {
  font-size: 22px;
  margin: 0;
  color: #fff;
}

.server-stats {
  font-size: 15px;
  color: #ccc;
  margin: 0;
}

.server-tag {
  background-color: #2f67ffd1;
  color: #111;
  border-radius: 5px;
  font-size: 12px;
  padding: 3px 8px;
  display: inline-block;
  margin-top: 4px;
  width: fit-content;
}

.premium-badge {
  width: 27px;
  height: 27px;
  vertical-align: middle;
  user-select: none;
}

.official-badge {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  filter: drop-shadow(0px 0px 4px #dfce71);
  user-select: none;
}

.verified-badge {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  filter: drop-shadow(0px 0px 4px #3a8540);
  user-select: none;
}

.partner-badge {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  filter: drop-shadow(0px 0px 4px #417bbe);
  user-select: none;
}

/* Tooltip */
.badge-container .tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.897);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.badge-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.badge-container .tooltip-verif {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.897);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  bottom: 55%;
  left: 210%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.badge-container:hover .tooltip-verif {
  visibility: visible;
  opacity: 1;
}

.server-description {
  margin-top: 150px;
  color: #ddd;
  font-size: 15px;
  line-height: 1.5;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
}

/* Scrollbar stylisée */
.server-description::-webkit-scrollbar {
  width: 6px;
}

.server-description::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.server-description::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.server-description::-webkit-scrollbar-track {
  background: #222;
}

.server-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.join-btn {
  background: #16752c;
  text-align: center;
  width: 50%;
  color: white;
  padding: 10px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.join-btn:hover {
  background: #1b7e32;
}

.more-btn {
  background: #555;
  text-align: center;
  width: 50%;
  color: white;
  padding: 10px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.more-btn:hover {
  background: #888;
}

@media( max-width: 768px ) {

  .group-banner {
    width: 100%;
    height: 230px;
  }

  .group-icon {
    width: 60px;
    height: 60px;
  }

  .group-title {
    font-size: 25px;
  }

  .group-description p {
    margin: 4px;
    font-size: 17px;
  }

  .server-card {
    height: 350px;
  }

  .server-card-header {
    height: 23%;
  }

  .server-icon {
    width: 75px;
    height: 75px;
  }

  .server-title-line {
    font-size: 20px;
  }

  .premium-badge {
    width: 22px;
    height: 22px;
  }
  
  .official-badge {
    width: 27px;
    height: 27px;
  }
  
  .verified-badge {
    width: 27px;
    height: 27px;
  }
  
  .partner-badge {
    width: 27px;
    height: 27px;
  }

  .server-stats {
    font-size: 14px;
  }

  .server-tag {
    font-size: 11px;
  }

  .server-banner {
    height: 130px;
  }

  .server-description {
    font-size: 14px;
    margin-top: 130px;
    max-height: 150px;
  }

  .join-btn {
    padding: 7px;
  }

  .more-btn {
    padding: 7px;
  }
}