/* ============================== */
/* MENU PRINCIPAL                 */
/* ============================== */
#menu-principal {
  justify-content: center;
  gap: 0;
}

.titre-virus {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: clamp(60px, 12vw, 130px);
  color: #e74c3c;
  text-shadow:
    0 0 20px rgba(231,76,60,0.6),
    0 0 60px rgba(231,76,60,0.3),
    4px 4px 0 #000000;
  letter-spacing: 15px;
  margin-bottom: 5px;
  position: relative;
}
.titre-virus::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

.virus-icons {
  display: flex;
  align-items: center;
  gap: clamp(100px, 20vw, 350px);
  margin-bottom: 10px;
}

.virus-icon {
  width: 50px;
  height: 50px;
  opacity: 0.6;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.scratch-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.scratch-link:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.scratch-texte {
  color: #f39c12;
  font-size: 12px;
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
}
.scratch-pfp {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  border: 2px solid #f39c12;
  box-shadow: 0 0 12px rgba(243,156,18,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================== */
/* MENU ONLINE                    */
/* ============================== */
#menu-online {
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.online-scroll {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0 40px 0;
}

.btn-retour {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 120px;
  height: 42px;
  background: transparent;
  color: #95a5a6;
  font-size: 14px;
  border-radius: 8px;
  border: 1.5px solid #7f8c8d;
  font-family: Arial, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-retour:hover {
  border-color: #bdc3c7;
  color: #bdc3c7;
}

.online-titre {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: clamp(40px, 8vw, 80px);
  color: #e74c3c;
  text-shadow: 0 0 15px rgba(231,76,60,0.5), 3px 3px 0 #000;
  letter-spacing: 10px;
}
.online-sous-titre {
  color: #f39c12;
  font-size: 16px;
  letter-spacing: 6px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.panneau-central {
  background: rgba(26,26,46,0.85);
  border-radius: 20px;
  border: 2px solid #2c3e50;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.btn-creer {
  width: clamp(300px, 40vw, 460px);
  height: 120px;
  background: linear-gradient(180deg, #e74c3c, #c0392b, #96281b);
  color: white;
  border-radius: 16px;
  border: 2px solid #ff6b6b;
  box-shadow: 0 4px 25px rgba(231,76,60,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 25px;
}
.btn-creer .btn-icon {
  width: 50px;
  height: 50px;
  border: 2.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.btn-creer .btn-content {
  text-align: left;
}
.btn-creer .btn-content .btn-label {
  font-size: clamp(18px, 3vw, 28px);
  display: block;
}
.btn-creer .btn-content .btn-sub {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #fad7d3;
  letter-spacing: 1px;
  font-weight: normal;
}

.separateur-ou {
  display: flex;
  align-items: center;
  gap: 15px;
  width: clamp(300px, 40vw, 460px);
}
.separateur-ou .ligne {
  flex: 1;
  height: 1px;
  background: #566573;
  opacity: 0.4;
}
.separateur-ou .ou-cercle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a2e;
  border: 1.5px solid #566573;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #95a5a6;
  font-size: 14px;
  font-weight: bold;
}

.btn-trouver {
  width: clamp(300px, 40vw, 460px);
  height: 120px;
  background: linear-gradient(180deg, #2e86c1, #2471a3, #1a5276);
  color: white;
  border-radius: 16px;
  border: 2px solid #5dade2;
  box-shadow: 0 4px 25px rgba(46,134,193,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 25px;
}
.btn-trouver .btn-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.btn-trouver .btn-content {
  text-align: left;
}
.btn-trouver .btn-content .btn-label {
  font-size: clamp(18px, 3vw, 28px);
  display: block;
}
.btn-trouver .btn-content .btn-sub {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #d4e6f1;
  letter-spacing: 1px;
  font-weight: normal;
}

.info-bas {
  background: rgba(44,62,80,0.5);
  border-radius: 10px;
  padding: 12px 20px;
  color: #bdc3c7;
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 420px;
}

/* ============================== */
/* ECRAN CREATION COMPTE          */
/* ============================== */
#ecran-compte {
  justify-content: center;
  gap: 0;
  z-index: 999;
}

.compte-carte {
  width: clamp(320px, 45vw, 440px);
  background: rgba(26,26,46,0.95);
  border-radius: 20px;
  border: 2px solid #e74c3c;
  overflow: hidden;
  margin-top: 25px;
  box-shadow: 0 0 40px rgba(231,76,60,0.15);
}
.compte-header {
  background: linear-gradient(180deg, #2c3e50, #1a252f);
  padding: 20px;
  text-align: center;
}
.compte-header h3 {
  color: #f39c12;
  font-size: 16px;
  letter-spacing: 3px;
}
.compte-header p {
  color: #7f8c8d;
  font-size: 11px;
  margin-top: 6px;
}
.compte-body {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.compte-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(#4fc3f7, #0288d1);
  border: 4px solid #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 0 20px rgba(231,76,60,0.3);
}

.compte-champ {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compte-champ label {
  color: #bdc3c7;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
}
.compte-champ input {
  background: #1a252f;
  border: 2px solid #34495e;
  border-radius: 10px;
  padding: 12px 16px;
  color: #ecf0f1;
  font-size: 18px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.compte-champ input:focus {
  border-color: #e74c3c;
}
.compte-champ input::placeholder {
  color: #566573;
  font-size: 14px;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}

.btn-creer-compte {
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  color: white;
  border: 2px solid #ff6b6b;
  border-radius: 10px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-creer-compte:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.compte-toggle-link {
  color: #3498db;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  font-family: Arial, sans-serif;
}
.compte-toggle-link:hover { color: #5dade2; }

.pin-counter {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #e74c3c;
  font-family: Arial, sans-serif;
  margin-top: 2px;
}

/* Affichage pseudo dans le menu */
.btn-musique {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #34495e;
  background: rgba(26,26,46,0.85);
  color: #f1c40f;
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-musique:hover {
  background: rgba(52,73,94,0.9);
  transform: scale(1.1);
}
.btn-musique.muted {
  color: #566573;
  border-color: #566573;
}

.menu-pseudo-bar {
  position: absolute;
  top: 15px;
  right: 75px;
  background: rgba(26,26,46,0.85);
  border: 1.5px solid #34495e;
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-gold {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(243,156,18,0.15);
  border: 1px solid #f39c12;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 4px;
}
.menu-gold-icon {
  font-size: 14px;
}
.menu-gold-val {
  color: #f39c12;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 1px;
}
.fin-partie-gold {
  color: #f39c12;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  margin-top: 5px;
  text-shadow: 0 0 10px rgba(243,156,18,0.5);
}
.menu-pseudo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 1px solid #27ae60;
}
.menu-pseudo-nom {
  color: #ecf0f1;
  font-size: 13px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}
.menu-pseudo-edit {
  color: #7f8c8d;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.menu-pseudo-edit:hover { color: #f39c12; }

/* Popup parametres */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.popup-overlay.visible {
  display: flex;
}
.popup-box {
  width: clamp(300px, 40vw, 420px);
  background: #1a1a2e;
  border-radius: 16px;
  border: 2px solid #566573;
  overflow: hidden;
}
.popup-header {
  background: #2c3e50;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup-header h3 {
  color: #f39c12;
  font-size: 15px;
  letter-spacing: 3px;
}
.popup-close {
  background: none;
  border: none;
  color: #7f8c8d;
  font-size: 20px;
  cursor: pointer;
}
.popup-close:hover { color: #e74c3c; }
.popup-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.popup-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.popup-section label {
  color: #bdc3c7;
  font-size: 11px;
  letter-spacing: 2px;
}
.popup-section .pseudo-edit-row {
  display: flex;
  gap: 8px;
}
.popup-section input {
  flex: 1;
  background: #1a252f;
  border: 1.5px solid #34495e;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ecf0f1;
  font-size: 14px;
  font-family: Arial, sans-serif;
  outline: none;
}
.popup-section input:focus { border-color: #f39c12; }
.lang-selector { display:flex; gap:10px; margin-top:8px; }
.lang-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px; background:linear-gradient(180deg,#34495e,#2c3e50); border:2px solid #566573; border-radius:8px; color:#ecf0f1; font-size:14px; font-weight:bold; cursor:pointer; font-family:Arial,sans-serif; }
.lang-btn:hover { background:linear-gradient(180deg,#3d566e,#34495e); border-color:#7f8c8d; }
.lang-btn.active { background:linear-gradient(180deg,#27ae60,#1e8449); border-color:#2ecc71; }
.btn-sauver-pseudo {
  padding: 8px 16px;
  background: linear-gradient(180deg, #27ae60, #1e8449);
  color: white;
  border: 1.5px solid #2ecc71;
  border-radius: 8px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  letter-spacing: 1px;
}
.btn-sauver-pseudo:hover { filter: brightness(1.15); }

.popup-info {
  color: #7f8c8d;
  font-size: 10px;
  font-family: Arial, sans-serif;
  text-align: center;
  line-height: 1.5;
}

/* ============================== */
/* CONFIG HORS LIGNE              */
/* ============================== */
#config-horsline {
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.config-hl-scroll {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 60px 0;
}
.config-hl-formulaire {
  width: clamp(340px, 50vw, 460px);
  background: rgba(26,26,46,0.92);
  border-radius: 16px;
  border: 2px solid #7f8c8d;
  overflow: hidden;
  margin-top: 20px;
}
.config-hl-header {
  background: #2c3e50;
  padding: 12px 20px;
  text-align: center;
}
.config-hl-header h3 {
  color: #bdc3c7;
  font-size: 15px;
  letter-spacing: 3px;
}
.config-hl-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.config-hl-champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.config-hl-champ label {
  color: #bdc3c7;
  font-size: 12px;
  letter-spacing: 2px;
}
.config-hl-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.config-hl-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #34495e;
  border-radius: 4px;
  outline: none;
}
.config-hl-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #576574;
  border: 2px solid #95a5a6;
  cursor: pointer;
  transition: background 0.2s;
}
.config-hl-slider-row input[type="range"]::-webkit-slider-thumb:hover {
  background: #7f8c8d;
}
.config-hl-valeur {
  min-width: 36px;
  height: 36px;
  background: #1a252f;
  border: 1.5px solid #34495e;
  border-radius: 8px;
  color: #ecf0f1;
  font-size: 18px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.config-hl-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.config-hl-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: #34495e;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.config-hl-toggle.active {
  background: #27ae60;
}
.config-hl-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ecf0f1;
  border-radius: 50%;
  transition: transform 0.3s;
}
.config-hl-toggle.active::after {
  transform: translateX(24px);
}
.config-hl-toggle-label {
  color: #95a5a6;
  font-size: 14px;
  font-family: Arial, sans-serif;
}
.config-hl-toggle-label.active {
  color: #2ecc71;
}
#hl-toggle-fanatique.active {
  background: #8e44ad;
}
#hl-toggle-fanatique-label.active {
  color: #8e44ad;
}
.config-hl-resume {
  background: #1a252f;
  border: 1px solid #34495e;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.config-hl-resume-item {
  color: #95a5a6;
  font-size: 12px;
  letter-spacing: 1px;
}
.config-hl-resume-item span {
  color: #ecf0f1;
  font-size: 16px;
  font-family: 'Impact', 'Arial Black', sans-serif;
}
.btn-lancer-hl {
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, #576574, #4a5568, #2d3436);
  color: white;
  border: 2px solid #7f8c8d;
  border-radius: 10px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-lancer-hl:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

