@font-face {
  font-family: 'MultiCraftFont';
  src: url('MultiCraftFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-deep: #0a0f0c;
  --bg-surface: #111916;
  --bg-card: #161f1a;
  --bg-card-hover: #1a2620;
  --border: rgba(74, 222, 128, 0.12);
  --border-strong: rgba(74, 222, 128, 0.28);
  --green: #4ade80;
  --green-dim: #22c55e;
  --green-glow: rgba(74, 222, 128, 0.35);
  --green-muted: rgba(74, 222, 128, 0.55);
  --text: #e8f5ec;
  --text-muted: #8aab95;
  --text-dim: #5c7364;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --font: 'MultiCraftFont', sans-serif;
  --mono: 'MultiCraftFont', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

#cursor-halo {
  position: fixed;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  transform: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

body.cursor-active #cursor-halo {
  opacity: 1;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 100%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  transition: color var(--transition);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--green);
}

.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px var(--green-glow));
}

.logo em {
  font-style: normal;
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.page {
  display: none;
  animation: fadeIn 0.45s ease forwards;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(74, 222, 128, 0.06);
  color: var(--green-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #86efac 50%, var(--green-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green-dim);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.25);
}

.btn-primary:hover {
  background: var(--green);
  box-shadow: 0 6px 28px rgba(74, 222, 128, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(74, 222, 128, 0.08);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.info-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.info-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.card-link:hover {
  color: #86efac;
}

.card-link.muted {
  color: var(--text-dim);
  cursor: default;
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.info-site-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.info-site-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.info-site-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-site-content a:hover {
  color: #86efac;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.update-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.update-post:hover {
  border-color: var(--border-strong);
}

.update-header {
  padding: 1.5rem 1.75rem 0;
}

.update-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.update-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
  line-height: 1.3;
}

.update-body {
  padding: 1.25rem 1.75rem;
  color: var(--text-muted);
  line-height: 1.75;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.update-body h2,
.update-body h3 {
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.update-body h2 {
  font-size: 1.2rem;
}

.update-body h3 {
  font-size: 1.05rem;
}

.update-body p {
  margin-bottom: 1rem;
}

.update-body ul,
.update-body ol {
  margin: 0 0 1rem 1.5rem;
}

.update-body li {
  margin-bottom: 0.35rem;
}

.update-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.update-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(74, 222, 128, 0.1);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--green);
  word-break: break-word;
}

.update-body pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  max-width: 100%;
}

.update-body pre code {
  background: none;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.update-body blockquote {
  border-left: 3px solid var(--green-dim);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-dim);
  font-style: italic;
}

.update-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.update-images {
  padding: 0 1.75rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.update-images img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: zoom-in;
}

.update-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.datacenters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
  animation: slideUp 0.5s ease backwards;
}

.dc-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dc-card:nth-child(1) {
  animation-delay: 0.05s;
}

.dc-card:nth-child(2) {
  animation-delay: 0.1s;
}

.dc-card:nth-child(3) {
  animation-delay: 0.15s;
}

.dc-card:nth-child(4) {
  animation-delay: 0.2s;
}

.dc-card:nth-child(5) {
  animation-delay: 0.25s;
}

.dc-card:nth-child(6) {
  animation-delay: 0.3s;
}

.dc-card:nth-child(7) {
  animation-delay: 0.35s;
}

.dc-card:nth-child(8) {
  animation-delay: 0.4s;
}

.dc-card:nth-child(9) {
  animation-delay: 0.45s;
}

.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dc-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 600;
  word-break: break-word;
}

.dc-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
  font-weight: 600;
}

.dc-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dc-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.dc-label {
  color: var(--text-dim);
  min-width: 90px;
  flex-shrink: 0;
}

.dc-value {
  color: var(--text-muted);
  word-break: break-word;
}

.servers-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.search-bar {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.search-icon {
  font-size: 0.95rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-dim);
}

.servers-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  animation: slideUp 0.45s ease backwards;
}

.server-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.server-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.server-name-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.server-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.server-location {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.server-players {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.server-players .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
}

.server-players.offline {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.server-players.offline .dot {
  background: #f87171;
  box-shadow: none;
}

.server-admin {
  font-size: 0.75rem;
  color: var(--green-muted);
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(74, 222, 128, 0.06);
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-line;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.server-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.server-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 0;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}

.btn-players {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-players:hover {
  background: rgba(56, 189, 248, 0.22);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.server-card:nth-child(1) {
  animation-delay: 0.05s;
}

.server-card:nth-child(2) {
  animation-delay: 0.1s;
}

.server-card:nth-child(3) {
  animation-delay: 0.15s;
}

.server-card:nth-child(4) {
  animation-delay: 0.2s;
}

.server-card:nth-child(5) {
  animation-delay: 0.25s;
}

.server-card:nth-child(6) {
  animation-delay: 0.3s;
}

.server-card:nth-child(7) {
  animation-delay: 0.35s;
}

.server-card:nth-child(8) {
  animation-delay: 0.4s;
}

.server-card:nth-child(9) {
  animation-delay: 0.45s;
}

/* Styles pour les filtres */
.filters-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 130px;
  max-width: 100%;
}

.filter-select:hover {
  border-color: var(--border-strong);
}

.filter-select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.filter-select option {
  background: var(--bg-card);
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 6, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal-eyebrow {
  color: var(--green-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.modal-box h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
  word-break: break-word;
}

.modal-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.modal-code-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.modal-code {
  flex: 1;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  text-align: center;
  word-break: break-all;
}

.btn-copy {
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--green);
  border-color: var(--border-strong);
}

.modal-close-bottom {
  width: 100%;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  animation: fadeIn 0.25s ease;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(74, 222, 128, 0.15);
  object-fit: contain;
}

/* Styles pour le modal détaillé */
.modal-body {
  margin: 0 0 1.5rem;
  padding: 0;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.modal-status.online {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}

.modal-status.offline {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.modal-status.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

.modal-status.offline .status-dot {
  background: #f87171;
}

.modal-description {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid var(--border);
}

.modal-description h3 {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-description p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.modal-info-item {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-info-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-info-value {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  word-break: break-all;
}

/* Styles pour la pop-up "Liste des joueurs" */
.players-modal-box {
  max-width: 440px;
}

.players-modal-count {
  display: inline-flex;
  align-items: center;
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  width: fit-content;
}

.players-search-bar {
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
}

.players-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.25rem;
}

.players-list-container::-webkit-scrollbar {
  width: 6px;
}

.players-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.players-list-container::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.player-row:hover {
  border-color: var(--border-strong);
}

.player-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.player-name {
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.05em 0.4em;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin-right: 0.3em;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.modal-discord-link {
  margin-top: 0.5rem;
}

.modal-discord-link .btn-discord {
  width: 100%;
  justify-content: center;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

#modal-share-btn {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

#modal-share-btn:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--border-strong);
  color: var(--green);
}

/* ── MEDIA QUERIES ── */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 1rem;
  }

  #app {
    padding: 2rem 1rem 3rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .servers-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .datacenters-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Mobiles */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 15, 12, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    white-space: normal;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 1.5rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  #app {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .update-header {
    padding: 1rem 1.25rem 0;
  }

  .update-title {
    font-size: 1.2rem;
  }

  .update-body {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .update-body pre {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .update-images {
    padding: 0 1.25rem 1.25rem;
    grid-template-columns: 1fr;
  }

  .servers-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-bar {
    min-width: unset;
  }

  .filters-group {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .servers-count {
    text-align: center;
    font-size: 0.8rem;
  }

  .servers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .server-card {
    min-height: 200px;
    padding: 1rem;
  }

  .server-name-wrapper {
    max-width: calc(100% - 70px);
  }

  .server-name {
    font-size: 0.95rem;
  }

  .server-players {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .server-admin {
    font-size: 0.7rem;
  }

  .server-desc {
    font-size: 0.82rem;
    -webkit-line-clamp: 4;
  }

  .server-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .server-actions .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    white-space: normal;
  }

  .datacenters-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dc-card {
    padding: 1rem;
  }

  .dc-name {
    font-size: 0.85rem;
  }

  .dc-row {
    font-size: 0.82rem;
  }

  .dc-label {
    min-width: 75px;
  }

  .modal-box {
    max-width: 100%;
    margin: 0 0.5rem;
    padding: 1.5rem 1rem 1rem;
    max-height: 95vh;
  }

  .modal-box h2 {
    font-size: 1.1rem;
    padding-right: 2rem;
  }

  .modal-code-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-copy {
    width: 100%;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .modal-description p {
    font-size: 0.85rem;
  }

  .players-modal-box {
    max-width: 100%;
  }

  .players-list-container {
    max-height: 45vh;
  }

  .player-row {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
  }

  .info-site-content {
    padding: 1.25rem;
  }

  .info-site-content p {
    font-size: 0.95rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .info-card h2 {
    font-size: 1rem;
  }

  .info-card p {
    font-size: 0.85rem;
  }

  .lightbox {
    padding: 0.5rem;
  }

  .lightbox img {
    max-width: 100vw;
    max-height: 85vh;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 0.95rem;
    gap: 0.4rem;
  }

  .logo-icon {
    font-size: 1.1rem;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .nav-toggle {
    padding: 0.4rem 0.5rem;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
  }

  .filters-group {
    flex-direction: column;
    width: 100%;
  }

  .filter-select {
    width: 100%;
    min-width: unset;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .update-title {
    font-size: 1rem;
  }

  .update-body {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
  }

  .update-header {
    padding: 0.75rem 1rem 0;
  }

  .server-card-head {
    flex-wrap: wrap;
  }

  .server-name-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .server-players {
    align-self: flex-start;
  }

  .modal-box {
    padding: 1rem 0.75rem 0.75rem;
  }

  .modal-box h2 {
    font-size: 1rem;
  }

  .modal-code {
    font-size: 0.95rem;
    padding: 0.5rem;
  }

  .modal-info-value {
    font-size: 0.8rem;
  }
}

@media (hover: none),
(pointer: coarse) {
  #cursor-halo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  #cursor-halo {
    display: none;
  }
  }
