@font-face {
  font-family: 'Avenir_Black';
  src: url('../fonts/Avenir_Black.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham_Bold';
  src: url('../fonts/GOTHAM-BOLD.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham_Book';
  src: url('../fonts/Gotham-Book.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Eau_Bold';
  src: url('../fonts/eau_sans_bold.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Eau_Black';
  src: url('../fonts/eau_sans_black.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Eau_Book';
  src: url('../fonts/eau_sans_book.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: Avenir_Black, sans-serif;
}

/* === HEADER === */
#header-container {
  background-color: #f5f5f5;
  border-bottom: 2px solid #2c4c9a;
  position: fixed;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 17px 20px;
  color: #1a2c56;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 45px;
  margin-right: 10px;
}

.server-name {
  font-size: 1.9rem;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-weight: bold;
  color: #1a2c56;
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.3s ease;
  margin-bottom: 7px;
}

.server-name:hover {
  color: #a59051;
}

/* === NAVIGATION === */
.navbar-center .nav-links {
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
  position: relative;
}

.nav-item {
  position: relative;
  color: #1a2c56;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #a59051;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}


.nav-links .nav-item:hover {
  color: #a59051;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f5f5f5;
  min-width: 150px;
  top: 100%;
  margin-top: 5px;
  left: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding-left: 0;
}

.dropdown-content li a:hover {
  color: #a59051;
}

.dropdown-content li {
  padding: 10px;
  list-style: none;
}

.dropdown-content li a {
  transition: color 0.3s ease;
  color: #2f4c8f;
  display: block;
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.arrow-icon {
  margin-left: 6px;
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}

/* === SERVER BOX === */
.navbar-right {
  text-align: right;
}

.server-box {
  background-color: #347ed7;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f3f3f3;
  font-weight: bold;
  white-space: nowrap;
}

.copy-ip-btn {
  background-color: #2b4889;
  border: none;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.copy-ip-btn:hover {
  background-color: #455a9b;
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #58a93b;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s, transform 0.4s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* === FOOTER === */
footer {
  background-color: #2b4889;
  padding: 12px 10% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  border-top: 3px solid #223869;
}

footer h3 {
  font-size: 1.5rem;
}

footer p {
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 3px solid #294177;
  border-right: 3px solid #294177;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-logo {
  width: 80%;
  height: auto;
  margin-bottom: 10px;
}

.contact {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact a {
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.contact a:hover {
  color: #a59051; /* Change la couleur du texte */
}

.contact a:hover svg {
  fill: #a59051; /* Change la couleur de l'icône au survol */
}

.contact svg {
  fill: #ffffff; /* Couleur de l'icône par défaut */
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  transition: fill 0.3s ease; /* Ajoute la transition pour la couleur de l'icône */
}

/* === SOCIAL MEDIA === */
.social-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0.7;
  margin: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.social-title {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.social-icons {
  display: flex;
  gap: 20px;
}

/* === LEGAL === */
.legal-info {
  flex: 0.7;
  padding: 10px;
  font-size: 0.9rem;
  text-align: right;
}

.legal-info p {
  margin: 5px 0;
}

.legal-info a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.legal-info a:hover {
  color: #a59051;
}

/* === COPYRIGHT === */
.footer-divider {
  width: 100vw;
  border: none;
  border-top: 3px solid #223869;
  margin: 20px 0 0;
}

.copyright {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #d5d5d5;
}

.highlight-gold {
  color: #a59051;
  font-weight: bold;
}

.social-icon {
  color: #ffffff;
  transition: color 0.3s ease, fill 0.3s ease;
}

/* Social Media Icons */
.social-icons svg {
  width: 40px;
  height: 40px;
  fill: white;  /* Default fill color */
  transition: transform 0.3s ease, fill 0.3s ease;
  cursor: pointer;
}

.social-icon.discord:hover svg {
  fill: #5865F2; /* Discord's hover color */
}

.social-icon.youtube:hover svg {
  fill: #FF0000; /* YouTube's hover color */
}

.social-icon.tiktok:hover svg {
  fill: #010101; /* TikTok's hover color */
}

.social-icon.instagram svg path {
  transition: fill 0.3s ease;
}

/* Instagram icon with a smooth fill transition */
.social-icon.instagram svg path {
  transition: fill 0.3s ease; /* Transition for smooth color change */
  fill: white; /* White color by default */
}

.social-icon.instagram:hover svg path {
  fill: #E1306C; /* Gradient fill on hover */
}

html, body {
  overflow-x: hidden;
}

/* Responsive visibilité */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

@media (max-width: 1000px) {
  .mobile-only {
    display: flex;
    align-self: center;
    margin-top: 1rem;
  }

  .desktop-only {
    display: none;
  }

  .navbar-center {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    transition: all 0.3s ease;
  }

  .navbar-center.show {
    display: flex;
    border-bottom: 4px solid #dfdfdf;

  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.hamburger:hover span {
  background-color: #a59051;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1a2c56;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.hamburger.open span {
  background-color: #a59051;
}

@media (max-width: 1130px) {
  .server-status {
    display: none; /* hide desktop version */
  }
}

@media (max-width: 1000px) {
  .hamburger {
    display: flex;
  }

  .navbar-right .server-box {
    display: none; /* hide desktop version */
  }
}

/* Hover underline fix */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #a59051;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

@media (max-width: 1000px) {
  footer {
    padding: 12px 1rem 0;
  }
  .dropdown-content {
    margin-top: 0px;
  }
}
@media (max-width: 1160px) {
  footer {
    padding: 12px 5% 0;
  }
}
@media (max-width: 1100px) {
  .navbar-center .nav-links {
    gap: 20px;
  }
}

@media (max-width: 885px) {
  .footer-container {
    flex-direction: column;
  }
  .footer-left {
    border-left: 0;
    border-right: 0;
    border-top: 3px solid #294177;
    border-bottom: 3px solid #294177;
    padding-bottom: 1rem;
  }
  .legal-info {
    text-align: center;
  }
  .footer-divider {
    margin: 1px 0 0;
  }
  .footer-logo {
    max-width: 30rem;
  }
}

.nav-links li {
  margin-right: auto;
}