/*--------HEADER---------*/

/* ========================================
   HEADER PROFESSIONNEL - STYLES
   ======================================== */

:root {
  --header-bg: #ffffff;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --primary-color: #f0b90b;
  --primary-hover: #d4a009;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6c757d;
  --border-color: #e5e5e5;
  --dropdown-bg: #ffffff;
  --mobile-menu-bg: #1a1a1a;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset et base */
.header_section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 950;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  transition: all var(--transition-normal);
}

.header_section.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-actions {
  display: flex;
  gap:20px;
  margin-left: 20px;
  flex-direction: row-reverse;
}

.flex-title {
  display: flex;
}

/* ========== TICKER CRYPTO ========== */
/* ========== TICKER CRYPTO AMÉLIORÉ ========== */
/* Fixer la hauteur du contenu pour éviter les sauts lors de l'update */
.crypto-data {
    min-height: 30px; /* Hauteur du contenu seulement */
    display: flex;
    align-items: center;
}
.crypto-ticker {
    overflow: hidden;
}
.crypto-ticker-bar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  height: 32px;
  position: relative;
    opacity: 0;
  transition: opacity 0.3s ease-in;
}
.crypto-ticker-bar.loaded {
  opacity: 1;
}
.crypto-loading {
  color: #999;
  font-size: 12px;
  padding: 5px 15px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
/* Skeleton loader pour le ticker */
.crypto-ticker-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  height: 30px;
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Masquer le ticker pendant le chargement */
.crypto-ticker-bar.loading .crypto-data {
  display: none;
}
.ticker-container {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  background: linear-gradient(to right, #f8f9fa 90%, transparent);
  padding: 0 20px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  z-index: 2;
  /* Largeur fixe pour éviter le chevauchement */
  min-width: 120px;
}

.ticker-label i {
  color: var(--primary-color);
  font-size: 12px; /* Réduit de 14px */
}

.ticker-label span {
  font-size: 11px; /* Réduit de 12px */
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crypto-ticker {
  width: 100%;
  height: 100%;
  position: relative;
  padding-left: 120px; /* Correspond à min-width du label */
  overflow: hidden;
}

.crypto-data {
  display: flex;
  align-items: center;
  height: 100%;
  /* Animation plus rapide et fluide */
  animation: scroll-crypto 30s linear infinite;
  white-space: nowrap;
  /* Important: pour un défilement continu */
  width: fit-content;
}

.crypto-item {
  display: inline-flex;
  align-items: center;
  margin-right: 30px; /* Réduit de 40px */
  font-size: 12px; /* Réduit de 13px */
  color: var(--text-medium);
  padding: 0 5px; /* Ajout d'un padding pour l'espacement */
}

.crypto-logo {
  width: 14px; /* Réduit de 16px */
  height: 14px; /* Réduit de 16px */
  margin-right: 5px; /* Réduit de 6px */
    object-fit: contain;
}
.crypto-data .crypto-logo {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  object-fit: contain;
}



/* GPU acceleration pour l'animation */
.crypto-data {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Animation améliorée pour un défilement continu */
@keyframes scroll-crypto {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(-50%); /* -50% car le contenu est dupliqué */
  }
}

/* Style pour masquer le ticker quand on scroll */
.header_section.hide-ticker .crypto-ticker-bar {
  height: 0;
  transition: height var(--transition-normal);
}

/* === RESPONSIVE === */

/* Tablettes */
@media (max-width: 768px) {
  .crypto-ticker-bar {
    height: 28px; /* Réduit la hauteur */
  }
  
  .ticker-label {
    min-width: 80px;
    padding: 0 10px 0 10px;
    gap: 5px;
  }
  
  .ticker-label i {
    font-size: 11px;
  }
  
  .ticker-label span {
    font-size: 10px;
    /* Masquer "Market" sur petits écrans */
    display: none;
  }
  
  .crypto-ticker {
    padding-left: 80px;
  }
  
  .crypto-data {
    /* Animation plus rapide sur mobile */
    animation-duration: 20s;
  }
  
  .crypto-item {
    font-size: 11px;
    margin-right: 20px;
  }
  
  .crypto-logo img {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  .crypto-ticker-bar {
    height: 26px;
  }
  
  .ticker-label {
    min-width: 40px;
    padding: 0 8px;
  }
  
  /* Afficher seulement l'icône sur très petits écrans */
  .ticker-label span {
    display: none;
  }
  
  .crypto-ticker {
    padding-left: 40px;
  }
  
  .crypto-data {
    animation-duration: 15s;
  }
  
  .crypto-item {
    font-size: 10px;
    margin-right: 15px;
  }
  
  .crypto-logo img {
    width: 10px;
    height: 10px;
  }
  
  /* Format compact pour les pourcentages sur mobile */
  .crypto-item > span:last-child {
    font-size: 9px;
  }
}

/* Optimisation pour les performances */
.crypto-ticker {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Effet de pause au survol (optionnel) */
.crypto-ticker-bar:hover .crypto-data {
  animation-play-state: paused;
}

/* Style amélioré pour les variations de prix */
.crypto-item .price-up {
  color: #10b981;
  font-weight: 600;
}

.crypto-item .price-down {
  color: #ef4444;
  font-weight: 600;
}

/* ========== NAVIGATION PRINCIPALE ========== */
.main-navigation {
  background: var(--header-bg);
  position: relative;
}

.nav-container {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 5%;
  margin-right: 5%;
}

/* Logo et Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.brand-primary {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-secondary {
  color: var(--text-medium);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -4px;
}

/* Navigation Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
}

/* Menu principal */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  border-right: 1px solid var(--border-color);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
  color: #646464;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
}

.nav-link:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.nav-link i {
  font-size: 16px;
}

.dropdown-icon {
  font-size: 10px;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.nav-item.dropdown-active .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dropdown-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  margin-top: 10px;
}

.nav-item:hover .dropdown-menu,
.nav-item.dropdown-active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-item i {
  font-size: 16px;
  color: var(--primary-color);
  margin-top: 2px;
}

.dropdown-item div {
  display: flex;
  flex-direction: column;
}

.dropdown-item span {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
}

.dropdown-item small {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Stats Widget */
.stats-widget {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 15px;
  border-right: 1px solid var(--border-color);
  justify-content: space-around;
  background: #555;
  background-image: repeating-linear-gradient( 45deg, rgba(106, 106, 106, 0.1) 0px, rgba(157, 157, 157, 0) 1px, #53535336 1px, #00000012 5px );
}

.stats-widget .stat-label {
  font-size: 12px;
  color: #fff;
  font-weight: 200;
  margin-right: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  margin:5px;
}
.stat-item .stat-label {
  margin-bottom: 0px !important;
}

.stat-item i {
  font-size: 14px;
  color: #b0b0b0;
}

.stat-item span {
  font-weight: 500;
  font-size: 12px;
  color: #fff;
}

/* Language Selector */
.language-selector {
  position: relative;
  margin:auto;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-button:hover {
  border-color: rgb(194, 194, 194);
  color: white;
}

.current-lang {
  font-size: 18px;
}

.lang-button i {
  font-size: 14px;
  color: var(--text-medium);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: -45px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  margin-top: 17px;
}

.language-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.lang-dropdown button:hover {
  background: #f8f9fa;
}

/* User Profile */
.user-profile {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: background var(--transition-fast);
}

.profile-button:hover {
  background: #f8f9fa;
}

.profile-button img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-button i {
  font-size: 10px;
  color: var(--text-medium);
  margin-right: 6px;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  margin-top: 10px;
  overflow: hidden;
}

.user-profile:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
}

.profile-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 600;
  color: #464646;
  font-size: 20px;
}

.profile-email {
  font-size: 14px;
  color: #f0b90b;
}

.profile-menu {
  padding: 8px;
}

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  margin-bottom: 5px;
}

.profile-menu a:hover {
  background-color: #f0bb0b1d;
}

.profile-menu a i {
  font-size: 14px;
  color: var(--text-medium);
}

.profile-menu-mobile {
  padding: 8px;
  display: flex;
  justify-content: space-around;
}

.profile-menu-mobile a {
  display: flex;
  align-items: center;
  gap:12px;
  padding:10px 12px;
  color: #fff;
  text-decoration:none;
  border-radius:8px;
  transition: all var(--transition-fast);
  background-color: #ffffff3b;
  margin:10px;
}

.profile-menu-mobile a:hover {
  background: #f8f9fa;
}

.profile-menu-mobile a i {
  font-size: 14px;
  color: #fff;
}

/* Login Button */
.login-button {
  position: relative;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 185, 11, 0.3);
}

.login-dropdown {
  position: absolute;
  top: 100%;
  right: -17px;
  background: white;
  border-radius: 0px 0px 8px 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  margin-top: 8px;
  transform: translateY(-10px);

}

.login-button:hover .login-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-option,
.signup-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.login-option:hover,
.signup-option:hover {
  background: #f0b90b;
  color:white;
}

.login-head-title{
padding: 30px;
  margin-bottom: 0px;
  border-radius: 18px 18px 0px 0px;
  background: #6c6c6c;
    background-image: none;
  background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.05) 1px, #b4b4b414 1px, #fff0 5px );
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.login-head-title i {
  color: white;
  font-size: 2rem;
}

.login-content-form{
  padding: 30px 50px 50px 50px;
}

.title-con {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  color: gray;
}
.title-con h2{
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}
.title-con i{
  font-size: 18px;
}

/* Cache le contenu par défaut */
.toggle-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.8s ease;
}

/* Affiche le contenu quand ouvert */
.toggle-content.open {
  max-height: 5000px; /* Ajuste selon ton contenu */
  opacity: 1;
  padding: 0px 50px 50px 50px;
}
.gauge-base-container .toggle-content.open {
  padding: 0px;
}
.tokenomics-details .toggle-content.open {
  padding: 0px;
}


/* Rotation de l'icône chevron */
.toggle-btn.active i.fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--mobile-menu-bg);
  transition: right var(--transition-normal);
  z-index: 1001;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.nav-mobile.active {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header img {
  height: 50px;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #8a8a8a;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile User Section */
.mobile-user-section {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg,rgba(255, 255, 255, 0.25) 0%, rgba(109, 109, 109, 0.45) 50%, rgba(37, 37, 37, 0.15) 100%);
  background-image: repeating-linear-gradient( 45deg, rgba(207, 207, 207, 0.1) 0px, rgba(162, 162, 162, 0.1) 1px, transparent 1px, transparent 5px );
}

.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-user-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff26;
}

.mobile-user-info {
  display: flex;
  flex-direction: column;
}

.mobile-user-name {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.mobile-logout {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
}

.mobile-login-section {
  display: flex;
  gap: 10px;
}
.mobile-login-section i{
  margin-right: 5px;
}

.mobile-btn-login,
.mobile-btn-signup {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-btn-login {
  background: var(--primary-color);
  color: white;
}

.mobile-btn-signup {
  background: rgb(93, 93, 93);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-dash {
  display: flex;
  justify-content: space-around;
  background: rgb(117, 117, 117);
}

/* Mobile Stats */
.mobile-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  display: none;
}

.mobile-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-stat i {
  font-size: 20px;
  color: var(--primary-color);
}

.mobile-stat div {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin: auto 5px;
}

/* Mobile Nav */

.mobile-nav {
  background-color: #454545;
}

.mobile-nav-item {
  position: relative;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 30px;
  background: none;
  border: none;
  color: white;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link i:first-child {
  width: 24px;
  font-size: 18px;
  color: #a8a8a8;
}

.mobile-nav-link span {
  flex: 1;
  text-align: left;
  margin-left: 12px;
  padding:10px;
}

.mobile-nav-link i:last-child {
  font-size: 12px;
  transition: transform var(--transition-fast);
}

.mobile-nav-item.active .mobile-nav-link i:last-child {
  transform: rotate(90deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background: rgba(0, 0, 0, 0.3);
}

.mobile-nav-item.active .mobile-submenu {
  max-height: 200px;
}

.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 50px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.mobile-submenu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Language */
.mobile-language {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.mobile-lang-options {
  display: flex;
  gap: 10px;
}

.mobile-lang-options button {
  flex: 1;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 12px;
}

.mobile-lang-options button.active {
  background:#8e8e8e;
  border-color:#fff;
}
.flex-title-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}
.flex-title-mobile span{
  color: gray;
  font-size: 20px;
  margin-left: 15px;
}
.flex-title-mobile i{
  color: gray;
  font-size: 25px;
}
/* Mobile Footer */
.mobile-menu-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.mobile-menu-footer img {
  height: 40px;
  opacity: 0.5;
}

/* ========== ANIMATIONS ET EFFETS ========== */
/* Scroll Effects */
.header_section.hide-ticker .crypto-ticker-bar {
  height: 0;
  transition: height var(--transition-normal);
}
.header_section.hide-ticker .stats-widget {
  height: 0;
  transition: height var(--transition-normal);
}

.header_section.scrolled {
  background: rgba(255, 255, 255, 0.99);
  /* backdrop-filter: blur(10px); DISABLED - Performance */
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {

  
  .stats-widget {
    gap: 15px;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  /* Masquer desktop nav */
  .nav-desktop {
    display: none;
  }
  
  /* Afficher mobile toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Ajuster le ticker */
  .ticker-label span {
    display: none;
  }
  
  .ticker-label {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .nav-container {
    height: 60px;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  
  .nav-mobile {
    width: 100%;
    max-width: none;
  }

  .flex-title {
  padding-left: 0px;
  text-align: left;
  margin:0;
}
.brand-primary {
  font-size: 20px;
}

.brand-secondary {
  font-size: 20px;
}
}

/* ── Overrides login-page (account + auth pages) ── */
.login-page .stats-widget,
.login-page .crypto-ticker-bar {
  display: none;
}

.login-page {
  padding-top: 60px;
}


/* ============================================================
   LANGUAGE SELECTOR — Bouton + Popup 16 langues
   À ajouter à la fin de header.css
   ============================================================ */


/* ─── Bouton langue desktop ─────────────────────────────────── */

.language-selector {
  position: relative;
  margin: auto;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.lang-button:hover {
  background: #f4f4f4;
  border-color: #bbb;
}

.lang-btn-flag {
  font-size: 17px;
  line-height: 1;
}

.lang-btn-code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-medium);
}

.lang-btn-chevron {
  font-size: 10px;
  color: var(--text-light);
  transition: transform var(--transition-fast);
}

/* Rotation du chevron quand le popup est ouvert */
body.lang-popup-open .lang-btn-chevron {
  transform: rotate(180deg);
}


/* ─── Overlay ────────────────────────────────────────────────── */

.lang-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Animation au show */
@keyframes langPopupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lang-popup-overlay.lang-popup-show {
  display: flex;
  animation: langPopupFadeIn 0.2s ease;
}


/* ─── Popup ──────────────────────────────────────────────────── */

.lang-popup {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* Animation d'entrée */
  transform: translateY(-18px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-popup-overlay.lang-popup-show .lang-popup {
  transform: translateY(0) scale(1);
}


/* ─── Header popup ───────────────────────────────────────────── */

.lang-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.lang-popup-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

.lang-popup-title i {
  color: var(--primary-color);
  font-size: 16px;
}

.lang-popup-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  font-size: 13px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lang-popup-close:hover {
  background: #ffe5e5;
  color: #e53e3e;
}


/* ─── Recherche ──────────────────────────────────────────────── */

.lang-popup-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #f4f4f4;
  flex-shrink: 0;
}

.lang-popup-search i {
  color: #aaa;
  font-size: 13px;
  flex-shrink: 0;
}

.lang-popup-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #333;
  background: transparent;
  font-family: inherit;
  background-color: #f9f9f9 !important;
}

.lang-popup-search input::placeholder {
  color: #bbb;
}


/* ─── Grille des langues ─────────────────────────────────────── */

.lang-popup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;

  /* Scrollbar discrète */
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.lang-popup-grid::-webkit-scrollbar {
  width: 4px;
}

.lang-popup-grid::-webkit-scrollbar-track {
  background: transparent;
}

.lang-popup-grid::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}


/* ─── Carte langue ───────────────────────────────────────────── */

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  background: #f9f9f9;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lang-card:hover {
  background: #f0f7ff;
  border-color: #c5deff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 90, 200, 0.08);
}

.lang-card.active {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15);
}

/* Petite encoche "active" en haut à droite */
.lang-card.active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--primary-color);
}

.lang-card-flag {
  font-size: 24px;
  line-height: 1;
  display: block;
}

.lang-card-native {
  font-size: 12px;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lang-card-name {
  font-size: 10px;
  color: #999;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


/* ─── Footer popup ───────────────────────────────────────────── */

.lang-popup-footer {
  padding: 10px 20px 14px;
  border-top: 1px solid #f4f4f4;
  flex-shrink: 0;
  text-align: center;
}

.lang-popup-footer span {
  font-size: 11px;
  color: #bbb;
}


/* ─── Blocage du scroll body ─────────────────────────────────── */

body.lang-popup-open {
  overflow: hidden;
}


/* ─── Bouton langue mobile ───────────────────────────────────── */

.mobile-language {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.mobile-lang-open-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  text-align: left;
}

.mobile-lang-open-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn-flag-mobile {
  font-size: 20px;
  line-height: 1;
}

.lang-btn-native-mobile {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.mobile-lang-open-btn i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}


/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 560px) {
  /* Bottom sheet sur mobile */
  .lang-popup {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }

  .lang-popup-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .lang-popup {
    transform: translateY(30px);
  }
  .lang-popup-overlay.lang-popup-show .lang-popup {
    transform: translateY(0);
  }

  /* ── Grille 4 colonnes compactes avec noms ── */
  .lang-popup-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 12px 14px;
    gap: 6px;
  }

  .lang-card {
    padding: 10px 4px 8px;
    border-radius: 9px;
  }

  .lang-card-flag {
    font-size: 22px;
  }

  .lang-card-native {
    font-size: 10px;
    font-weight: 600;
  }

  /* Afficher le nom anglais en gris clair — aide à l'identification */
  .lang-card-name {
    display: block;
    font-size: 9px;
    color: #bbb;
  }
}

@media (max-width: 400px) {
  .lang-popup-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .lang-card-name {
    display: none;
  }
}