/* LegendeSylvânia - Styles */
:root{
  --bg-overlay: rgba(0,0,0,.55);
  --text: #f5f7fb;
  --muted: #c9cfde;
  --brand: #6fd3ff;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html,body{min-height:100%}
  body{
    margin:0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background-image:
      linear-gradient(180deg, rgba(10,15,26,0.15), rgba(10,15,26,0.35)),
      url('./images/hero.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    background-color: #0a0f1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  /* Desktop: pin the background to viewport to avoid black bottom on long pages */
  @media (min-width: 1024px){
    body{ background-attachment: fixed; }
  }
.backdrop{
  /* Disabled: background moved to body to prevent flicker */
  display: none;
}
/* ===== Header fixe transparent ===== */
/* ===== Header fixe transparent ===== */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.brand {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.brand-logo {
  height: 80px;  /* Augmenté à 80px pour une meilleure visibilité */
  width: auto;
  margin-right: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.brand h1 {
  color: #f5c542;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  font-size: clamp(16px, 2.2vw, 24px);
  margin: 0;
  margin-top: 10px; /* Ajustement de la marge supérieure */
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

.nav a:hover {
  opacity: 0.8;
}

/* Sélecteur de langue */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 2px;
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 16px;
  outline: none;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  margin: 0 2px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-right: 10px;
  }
  
  .lang-btn {
    padding: 4px 10px;
    font-size: 13px;
  }
}

/* Espace réservé pour le header fixe */
body {
  padding-top: 80px;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .brand-logo {
    height: 50px;
  }
  
  .nav {
    display: none;  /* Masquer la nav sur mobile */
  }
  
  .brand h1 {
    font-size: clamp(16px, 5vw, 22px);
  }
  
}

.tag {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .6px;
  display: inline-block;
  margin-left: 10px;
  padding: 0;  /* Suppression du padding qui pouvait causer le flou */
  position: relative;
  top: -2px;  /* Ajustement de l'alignement vertical */
}

/* Grille des fonctionnalités */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: rgba(30, 30, 35, 0.9);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 250px; /* hauteur minimale pour assurer une taille cohérente */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card h4 {
  color: #f5c542;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card li {
  margin-bottom: 8px;
  padding-left: 1.5em;
  position: relative;
  line-height: 1.5;
}

.feature-card li:before {
  content: "•";
  color: var(--brand);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Liste des fonctionnalités */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
  padding: 0 20px;
  list-style: none;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.features-list li {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.features-list h4 {
  color: #f5c542;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Style pour les listes */
.list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.list li {
  padding: 10px 0 10px 30px;
  position: relative;
  margin-bottom: 8px;
  font-size: 1.05em;
}

.list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hero {
  text-align: center;
  padding: 8vh 0 12vh;
  background: transparent;
  position: relative;
  z-index: 1;
  margin-top: -20px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 6vh 0 10vh;
    min-height: calc(100vh - 70px); /* Adjust for smaller header */
  }
}
.subtitle{ color:var(--muted); font-size: clamp(14px, 2.4vw, 18px); }
.cta{ display:flex; gap:12px; justify-content:center; margin-top:18px; flex-wrap:wrap }
  .btn{
    appearance:none; border:1px solid var(--border); background: var(--card);
    padding:12px 16px; border-radius: 12px; color:var(--text); cursor:pointer;
    font-weight:700; letter-spacing:.3px; transition:.2s ease all; text-decoration:none
  }
  .btn.primary{ background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-color: transparent }
  .btn.outline{ background: transparent }
  /* Red button for copy action */
  .btn.copy{
    background: linear-gradient(90deg, #ff4d4f, #ff7875);
    border-color: transparent;
    color: #fff;
  }
  .btn.copy:hover{ filter: brightness(1.05); }

  /* Discord button in official Blurple */
  .btn.discord{
    background: #5865F2; /* Discord Blurple */
    border-color: transparent;
    color: #fff;
  }
  .btn.discord:hover{ background: #4752c4; }
.copy-status{ height:20px; margin-top:6px; color: var(--muted) }
.copy-status.ok{ color: #9effa1 }
.section{ padding: 48px 0 }
/* Dark opaque backdrop behind text sections for readability */
.about,
.section{
  background: rgba(0,0,0,0.5);            /* 50% dark overlay */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;                          /* inner padding for content */
}
.about .features-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:16px;
}
.about .features-grid li{
  background: var(--card); border:1px solid var(--border); border-radius:14px; padding:16px;
}
  .list{ color:var(--muted) }
  .steps{ color:var(--muted) }
  .footer{ color:#a5abc0; padding: 36px 0 28px; font-size:14px; text-align:center }

/* ===== Hero visual enhancements ===== */
.hero-panel{
  background: rgba(10, 15, 26, 0.48);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 20px 22px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}

.hero h2{
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

.hero .subtitle{
  color: #dbe2f3;
  font-weight: 500;
  margin: 0 0 12px;
}
.hero .subtitle strong{
  color: #8ac7ff;
  font-weight: 800;
}

.cta{ gap: 14px; }
.btn{ padding: 14px 18px; }
.btn:focus-visible{
  outline: 2px solid #ffffffaa;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
}

.btn.copy{ background: linear-gradient(90deg, #ff4d4f, #ff7875); }
.btn.copy:hover{ filter: brightness(1.07); }
.btn.copy:active{ transform: translateY(0); filter: brightness(0.98); }

.btn.discord{ background: #5865F2; }
.btn.discord:hover{ background: #4752c4; }
.btn.discord:active{ transform: translateY(0); filter: brightness(0.98); }

/* Indicateur de statut du serveur */
.server-status {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 15px 0;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: #666;
  transition: background-color 0.3s ease;
}

.status-indicator.online .status-dot {
  background-color: #4caf50;
  box-shadow: 0 0 10px #4caf50;
}

.status-indicator.offline .status-dot {
  background-color: #f44336;
}

.status-indicator.loading .status-dot {
  background-color: #ffc107;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.player-count {
  font-size: 0.9em;
  color: var(--muted);
}

.players-online {
  color: var(--brand);
  font-weight: bold;
  font-size: 1.1em;
}

/* Animation de chargement */
@keyframes spin {
  to { transform: rotate(360deg); }
}
