/* ── Variables ── */
:root {
  --bg: #0b0e14;
  --panel: #111726;
  --line: #1a2236;
  --text: #e8eefc;
  --muted: #9aa3b2;
  --gold: #ffd166;
  --header-height: 58px;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #13181d;
  color: #ffffff;
  text-align: center;
  padding: var(--header-height) 20px 20px;
}
.lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
.lang-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 5px !important;
  text-shadow: none !important;
}
.lang-btn.active {
  color: #fff !important;
}
.lang-btn:focus,
.lang-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0b0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}

.brand {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.username {
  font-size: 14px;
  font-weight: 600;
  color: #e8eefc;
}
.profile-link,
.stats-button,
.records-button,
.suggest-button,
.likes-button {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.profile-link:hover,
.stats-button:hover,
.records-button:hover,
.likes-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.stats-button {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
}
.records-button {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}
.likes-button {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}
.suggest-button {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}
.logout-button {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: border-color 0.15s;
}

.logout-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}


.google-icon {
  width: 18px;
  height: 18px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #9aa3b2;
  text-decoration: none;
  font-size: 13px;
  transition: border-color 0.15s;
}
.login-button-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eefc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.google-icon {
  width: 18px;
  height: 18px;
}

/* ✅ Adapter la FAQ au fond sombre */
.faq-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(145deg, #1e2022, #181a1b, #121314);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  /* ✅ Réduire l'espacement en bas de chaque conteneur */
}

/* ✅ Titre principal de la FAQ - Positionné hors du bloc */
.faq-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 50px;
  margin-top: 30px;
  position: relative;
  /* ✅ Nécessaire pour placer la ligne */
  display: inline-block;
  /* ✅ Permet à la ligne de s'adapter à la largeur du titre */
  padding-top: 15px;
  /* ✅ Ajoute un peu d’espace pour le texte */
}

/* ✅ Ajoute une ligne horizontale s'adaptant au titre */
.faq-title::before {
  content: '';
  position: absolute;
  top: 0;
  /* ✅ Positionnée juste au-dessus */
  left: 0;
  width: 100%;
  /* ✅ Adapte la ligne à la largeur du texte */
  height: 3px;
  /* ✅ Épaisseur de la ligne */
  background-color: #ffcc00;
  /* ✅ Jaune pour le design */
  border-radius: 2px;
  /* ✅ Bordures arrondies pour un effet propre */
}

/* ✅ Titres des sections */
.faq-container h2 {
  text-align: center;
  /* ✅ Centrer horizontalement */
  display: flex;
  /* ✅ Utiliser Flexbox pour centrer verticalement */
  align-items: center;
  /* ✅ Centre verticalement le texte */
  height: 20px;
  /* 🔥 Réduit la hauteur du bloc pour réduire l'espace vertical */
  padding: 4px 0;
  /* 🔥 Réduit l'espace intérieur (au-dessus et en dessous) */
  margin: 0 0 18px 0;
  /* 🔥 Réduit légèrement l'espace sous le titre */
  color: #ffcc00;
  /* ✅ Couleur jaune */
}

/* ✅ Ligne de séparation sous chaque titre */
hr {
  border: none;
  height: 2px;
  background: #b1b0ab;
  margin-bottom: 15px;
}

/* ✅ Espacement entre les sections */
.spacer {
  height: 0px;
  /* ✅ Espacement de 20px si necessaire entre les sections */
}

/* ✅ Alignement des blocs bonus */
.bonus-line {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ✅ Blocs bonus - Style minimaliste */
.bonus-block {
  padding: 8px;
  margin: 8px 0;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border-left: 3px solid #b1b0ab;
  border-right: 3px solid #b1b0ab;
  padding-left: 10px;
  padding-right: 10px;
}

/* ✅ Paragraphes */
.faq-container p {
  font-size: 18px;
  /* ✅ Augmenter la taille de la police */
  text-align: center;
  /* ✅ Centrer le texte */
  margin-bottom: 3px;
  /* ✅ Réduire l'espace en dessous */
}

/* ✅ Style spécifique pour la section Classement */
.faq-container .info-block h2 {
  color: #ffcc00;
  /* Jaune pour garder la cohérence */
}

.faq-container .info-block p {
  font-size: 18px;
  text-align: center;
  margin-bottom: 5px;
}

.faq-container p,
.faq-container li {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ── Mobile ── */
@media (max-width: 800px) {
  .header-bar {
    height: 48px !important;
    padding: 0 8px !important;
    gap: 6px !important;
  }
   .lang-switcher {
    display: none !important;
  }
  .brand {
    font-size: 13px !important;
  }
  .header-tabs {
    gap: 4px !important;
  }
  .tab-link {
    font-size: 10px !important;
    padding: 4px 5px !important;
    white-space: nowrap !important;
  }
  .nav-right .records-button,
  .nav-right .likes-button,
  .nav-right .logout-button,
  .nav-right .profile-link {
    display: none !important;
  }
  .nav-right .stats-button {
    font-size: 11px !important;
    padding: 4px 7px !important;
  }
  .profile-img {
    width: 26px !important;
    height: 26px !important;
  }
  .username {
    display: none !important;
  }
  .login-button-google {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  .login-button-google span {
    display: inline !important;
  }
  .google-icon {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width: 768px) {
  .suggest-button {
    display: none !important;
  }
}


/* ── Hamburger ── */
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  z-index: 998;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}
.hamburger-overlay.open {
  display: block;
}

.hamburger-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #111827;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 0 32px;
  overflow-y: auto;
}
.hamburger-panel.open {
  transform: translateX(0);
}

.hamburger-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #9aa3b2;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.5;
}
.hamburger-close:hover {
  color: #fff;
  opacity: 1;
}

.hamburger-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 2px solid rgba(99, 120, 255, 0.5);
}
.hamburger-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.hamburger-username {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hamburger-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px;
  flex: 1;
}
.hamburger-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #e8eefc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    border-left 0.15s;
}
.hamburger-link:last-child {
  border-bottom: none;
}
.hamburger-link:hover {
  background: rgba(99, 120, 255, 0.08);
  border-left: 3px solid rgba(99, 120, 255, 0.6);
  color: #fff;
}
.hamburger-logout {
  color: #9aa3b2;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  border-left: 3px solid transparent;
}
.hamburger-logout:hover {
  color: #fff;
  background: rgba(255, 80, 80, 0.08);
  border-left: 3px solid rgba(255, 80, 80, 0.5);
}
.hamburger-suggest {
  margin-top: 8px;
}
.hamburger-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.hamburger-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 20px 0;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  .nav-right .profile-link,
  .nav-right .stats-button,
  .nav-right .records-button,
  .nav-right .likes-button,
  .nav-right .suggest-button,
  .nav-right .logout-button,
  .nav-right .login-button-google,
  .nav-right .lang-switcher,
  .nav-right .username,
  .nav-right .profile-img,
  .header-tabs {
    display: none !important;
  }
  .nav-right {
    margin-left: auto;
    display: flex !important;
    align-items: center;
    gap: 8px;
    overflow: visible !important;
  }
  .header-bar {
    height: 56px !important;
    padding: 0 12px !important;
    gap: 0 !important;
  }
}
