/* Base styles */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0a0f1a;
  color: #e0e0e0;
}
a {
  color: inherit;
  text-decoration: none;
}
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0f1c33;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}
.nav-links a:hover {
  color: #50c8ed;
}
.lang-toggle {
  background: #50c8ed;
  color: #0a0f1a;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 1rem;
  transition: background 0.2s;
}
.lang-toggle:hover {
  background: #38a2c2;
}
/* Sections */
.section {
  padding: 3rem 2rem;
}
.card {
  background-color: #1f2a40;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  color: #50c8ed;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
/* Grids */
.forum-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.promo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: #7a8fa3;
  background: #0f1c33;
}
/* Language visibility */
html.lang-fr .en {
  display: none;
}
html.lang-en .fr {
  display: none;
}
/* Loading screen */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0f1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
  z-index: 1000;
  transition: opacity 0.6s;
}
#loadingScreen.fade-out {
  opacity: 0;
}
.spinner {
  width: 64px;
  height: 64px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top-color: #50c8ed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}