/* ===== PARAMÈTRES GÉNÉRAUX ET VARIABLES ===== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

:root {
  --primary-color: #f08a1d;
  --dark-bg: #121212;
  --light-bg: #1a1a1a;
  --text-color: #e0e0e0;
  --text-color-dark: #a0a0a0;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== STYLES PARTAGÉS (NAVBAR, FOOTER) ===== */
.navbar {
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a2a;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}
.navbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.navbar nav li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}
.navbar nav li a:hover,
.navbar nav li a.active {
  color: var(--primary-color);
}
.footer {
  background-color: var(--dark-bg);
  padding: 2rem 0;
  border-top: 1px solid #2a2a2a;
  margin-top: 60px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p {
  margin: 0;
  color: var(--text-color-dark);
}
.social-icons a {
  color: var(--text-color-dark);
  font-size: 1.5rem;
  margin-left: 20px;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--primary-color);
}

/* ===== PAGE SERVEURS ===== */
.servers-page {
  padding: 120px 0 60px 0;
}
.page-header {
  text-align: center;
  margin-bottom: 50px;
}
.page-title {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 10px;
}
.page-title .fas {
  color: var(--primary-color);
  margin-right: 15px;
}
.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-color-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* Grille des cartes de serveur */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.server-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.server-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.server-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.server-card-content {
  padding: 20px;
}
.server-card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0 0 10px 0;
}
.server-card-description {
  font-size: 0.95rem;
  color: var(--text-color-dark);
  line-height: 1.6;
}

/* ===== MODAL SERVEUR ===== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background-color: var(--light-bg);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.modal-backdrop.visible .modal-content {
  transform: scale(1);
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.modal-header {
  position: relative;
  text-align: center;
}
#modal-server-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
#modal-server-name {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: white;
  font-size: 2rem;
  margin: 0;
  text-shadow: 2px 2px 10px black;
}
.modal-body {
  padding: 25px;
}
#modal-server-description {
  margin: 0 0 25px 0;
  line-height: 1.6;
  color: var(--text-color-dark);
}
.links-container {
  display: grid;
  gap: 15px;
}
.modal-link-button {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--dark-bg);
  border: 1px solid #333;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.modal-link-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.03);
}
.modal-link-button i {
  font-size: 1.2rem;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}
