/* metric.css - Styles pour le système de métriques */

/* ================================
   ?? CONTENEUR PRINCIPAL
   ================================ */
.metrics-container {
  background: transparent;
}

.metric-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-section:last-child {
  background: transparent;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================
   ??? SECTION VUES
   ================================ */
.metric-views {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  justify-content: space-around;
  margin-left: 20px;
  margin-right: 20px;
}

.metric-icon {
  font-size: 28px;
  color: #f0b90b;
  opacity: 0.8;
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-views-count {
  font-size: 20px;
  font-weight: 700;
  color: #5d5d5d;
}

.metric-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-unique {
  padding: 7px 30px;
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  gap: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================================
   ??? SECTION VOTE GREEN/RED
   ================================ */
.metric-voting h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.metric-vote-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  height: 50px;
}

.metric-vote-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #717171;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.metric-vote-green {
  border-color: rgba(46, 204, 113, 0.3);
}

.metric-vote-green:hover {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.metric-vote-green.active,
.metric-vote-green.voted {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-color: #2ecc71;
  color: #fff;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.metric-vote-red {
  border-color: rgba(231, 76, 60, 0.3);
}

.metric-vote-red:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(231, 76, 60, 0.2);
}

.metric-vote-red.active,
.metric-vote-red.voted {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-color: #e74c3c;
  color: #fff;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Animation de pulsation */
.metric-vote-btn.pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Compteurs de votes */
.metric-green-count,
.metric-red-count {
  font-weight: bold;
  font-size: 18px;
}

/* ================================
   ?? BARRE DE SENTIMENT CORRIGÉE
   ================================ */
.metric-sentiment-bar {
  position: relative;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: visible; /* Changé pour permettre l'indicateur en dessous */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sentiment-segments {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  overflow: hidden;
}

/* Segments de sentiment */
.sentiment-green,
.sentiment-red,
.sentiment-neutral {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 40px;
  overflow: hidden;
}

.sentiment-green {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.sentiment-red {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.sentiment-neutral {
  background: linear-gradient(90deg, #6c757d, #808080);
}

/* Labels dans les segments */
.sentiment-label {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Cas spécial pour les segments à 100% */
.sentiment-green[style*="width: 100%"],
.sentiment-red[style*="width: 100%"],
.sentiment-neutral[style*="width: 100%"] {
  border-radius: 20px;
}

/* Empêcher l'affichage des segments à 0% */
.sentiment-green[style*="width: 0"],
.sentiment-red[style*="width: 0"] {
  display: none !important;
}

/* Indicateur de couleur mixée */
.sentiment-color-indicator {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter: blur(10px); DISABLED - Performance */
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.sentiment-total {
  font-weight: 600;
}
.airdrop-info .sentiment-back{
  display: none;
}
.sentiment-back {
  /* backdrop-filter: blur(20px); DISABLED - Performance */
  border-radius: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  margin-bottom: 50px;
}
/* Animation d'apparition */
.metric-sentiment-bar.animate-in .sentiment-segments {
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

/* ================================
   ?? SECTION COMMENTAIRES
   ================================ */
.metric-comments-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 40px;
}
.comment-preview {
  background-color: #fafafa;
  padding: 10px 20px 0px 10px;
  border-radius: 0px 10px 10px 10px;
  margin-bottom: 30px;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 3px 8px;
}

.metric-comments-header h4 {
  color: #717171;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.metric-section.metric-comments{
  margin:0px;
  border: 1px solid #80808026;
  border-radius: 15px;
  padding-top: 30px;
  background: white;
}
.metric-comments-count {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  font-size: 20px;
  font-weight: bold;
  color: #5d5d5d;
}
.metric-comments-count i{
color:#f0b90b;
opacity: 0.8;
  font-size: 28px;
}
.title-comment{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0px 10px 20px 10px;
  border-bottom: 1px solid #8080804d;
  font-size: 22px;
}
.title-comment h4{
  color: var(--text-medium, #555);
  font-weight: 500;
  text-align: center;
  font-size: 22px;
}
.title-comment i{
  color: #f0b90b;
  font-weight: 500;
}

/* Formulaire de commentaire */
.metric-comment-form {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding-top: 10px;
}

#commentInput {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
  font-family: inherit;
}

#commentInput:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#commentInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-submit-comment {
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit-comment:active {
  transform: translateY(0);
}

.eye-back {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0px 20px;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}




/* Commentaire individuel */
.metric-comment {
  background: #ececec69;
  border-radius: 10px;
  padding: 15px 15px 0px 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  margin-top:30px;
}

.metric-comment:hover {
  border-color: rgba(240, 185, 11, 0.42);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border: 1px solid white;
}
.comment-reply-to {
  font-size: 12px;
  color: #ffc200;
  margin-left: 60px;
  margin-bottom: 15px;
  margin-top: -10px;
}
.comment-meta {
  flex: 1;
}

.comment-author {
  color: #4b4b4b;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.verified-badge {
  color: #2ecc71;
  font-size: 12px;
}

.comment-time {
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.comment-content {
  color: rgba(41, 41, 41, 0.9);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  word-wrap: break-word;
  margin-left: 70px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}
.comment-actions.btn-publi {
  justify-content: center;
}

.comment-like,
.comment-reply {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
}

.comment-like:hover,
.comment-reply:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.comment-like.liked {
  color: #e74c3c;
}

.comment-like.liked i {
  animation: heartBeat 0.6s;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.comment-like.bounce {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Réponses aux commentaires */
.comment-replies {
  margin-left: 52px;
  margin-top: 15px;
  padding-left: 15px;
  border-left: 2px solid rgba(102, 126, 234, 0.2);
  margin-bottom: 15px;
}

.comment-replies .metric-comment {
  background: rgba(255, 255, 255, 0.02);
}

.comment-replies .metric-comment:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

/* Message aucun commentaire */
.no-comments {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.4);
}

.no-comments i {
  font-size: 60px;
  margin-bottom: 15px;
  opacity: 0.3;
  color: gray;
}

.no-comments p {
  margin: 5px 0;
  color:gray;
}

.text-muted {
  font-size: 13px;
  opacity: 0.7;
}

/* ================================
   ?? NOTIFICATIONS
   ================================ */
.metric-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.95);
  /* backdrop-filter: blur(10px); DISABLED - Performance */
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.metric-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.metric-notification.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Login prompt */
.metric-login-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.97);
  /* backdrop-filter: blur(20px); DISABLED - Performance */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.metric-login-prompt.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.prompt-content i {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 15px;
}

.prompt-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.btn {
  padding: 10px 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  text-decoration: none;
  color: #fff;
}

/* Particules de vote */
.vote-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
}

/* ================================
   ?? INTÉGRATION AIRDROPS
   ================================ */
.toggle-metrics-btn {
  width: 100%;
  padding: 20px;
  margin: 30px 0;
  background: transparent;
  color: #929292;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed gray;
}

.toggle-metrics-btn > div {
  align-items: center;
  display: flex;
}

.toggle-metrics-btn i {
  margin-right: 10px;
  font-size: 30px;
  color: #b5b5b5;
}

.toggle-metrics-btn:hover {
  box-shadow: 0px 0px 15px rgba(83, 83, 83, 0.17);
}

.toggle-metrics-btn.expanded {
  background: transparent
}

.toggle-metrics-btn.expanded:hover {
  opacity: 0.8;
}

.airdrop-metrics-container {
  margin: 20px 0;
}

.metrics-loading {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  border-radius: 12px;
}

.metrics-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.metrics-error {
  text-align: center;
  padding: 20px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Animation pour les métriques */
.airdrop-metrics-container.metrics-initialized {
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 2000px;
    opacity: 1;
  }
}

/* ================================
   ?? RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .metrics-container {
    padding: 0px;
    box-shadow: none;
  }
  
  .metric-views {
    flex-wrap: wrap;
  }
  
  .metric-vote-btn {
    width: 100%;
  }
  
  .comment-content,
  .comment-actions {
    padding-left: 0;
  }

  .comment-content{
    font-size: 12px;
  }
  
  .comment-replies {
    margin-left: 20px;
  }
}


.toggle-metrics-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}



.metrics-loading {
  text-align: center;
  padding: 30px;
  color: #f0b90b;
  font-size: 16px;
}

.metrics-error {
  text-align: center;
  padding: 20px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 8px;
}

/* Animation pour les métriques */
.airdrop-metrics-container.metrics-initialized {
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 1000px;
    opacity: 1;
  }
}

/* Indicateur de réponse */
.reply-indicator {
  background: #f0f2f5;
  border-left: 3px solid #667eea;
  padding: 8px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  font-size: 14px;
}

.reply-indicator strong {
  color: #667eea;
}

.cancel-reply {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.cancel-reply:hover {
  color: #e74c3c;
}

/* Style pour les réponses */
.comment-replies {
  margin-left: 20px;
  margin-top: 10px;
  border-left: 2px solid rgba(240, 185, 11, 0.49);
  padding-left: 25px;
  opacity: 1;
  transition: opacity 0.3s;
}

.comment-replies .metric-comment {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Boutons d'action des commentaires */
.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  justify-content: space-around;
  border-top: 1px solid #dfdfdf;
  padding: 10px;
}

.comment-like,
.comment-reply {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.comment-like:hover {
  background: #f0f2f5;
  color: #e74c3c;
}

.comment-like.liked {
  color: #e74c3c;
}

.comment-like.liked i {
  color: #e74c3c;
}

.comment-reply:hover {
  background: #f0f2f5;
  color: #667eea;
}

/* Animation bounce pour le like */
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.comment-like.bounce {
  animation: bounce 0.4s ease;
}

.comment-like.bounce i {
  animation: bounce 0.4s ease;
}

/* Style du coeur */
.comment-like i {
  font-size: 16px;
  transition: color 0.2s;
}

.comment-like span {
  font-weight: 500;
}
.comment-delete {
  color: #e74c3c;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  transition: opacity 0.2s;
}

.comment-delete:hover {
  opacity: 0.7;
}

.comment-deleted {
  padding: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
}



/*------METRIC INDEX-----*/

/* Barre de métriques en bas de la carte */
.item-metrics-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 15px;
  background: transparent;
  border-radius: 0 0 8px 8px;
  margin-top: auto;
  border-top: 1px solid #eee;
}
.premium-banner-content .item-metrics-bar {
  margin-top: 0;          /* reset du margin-top:auto global */
  margin-bottom: 0;       /* supprime le hack -15px */
  border-top: none;       /* le padding du footer gère l'espacement */
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.ranking-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ranking-item-info {
  flex: 1;
}

/* Items de métriques (vues et commentaires) */
.metric-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b0b0b0;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.metric-item i {
  font-size: 0.9rem;
}

.metric-item span {
  font-weight: 500;
}

/* Jauge de sentiment style Fear & Greed */
.sentiment-gauge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.sentiment-gauge {
  position: relative;
  width: 50px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arc de la jauge - Version simplifiée */
.gauge-arc {
  position: absolute;
  width: 50px;
  height: 25px;
  top: 0;
  left: 0;
  overflow: hidden;
}

/* Arc avec gradient - PLUS ÉPAIS */
.gauge-arc::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 270deg at 50% 50%,
    #e74c3c 0deg,
    #e67e22 36deg,
    #f39c12 72deg,
    #f1c40f 108deg,
    #95e622 144deg,
    #2ecc71 180deg
  );
  /* Arc plus épais : 55% au lieu de 65% */
  mask: radial-gradient(
    circle at center,
    transparent 55%,
    black 55%,
    black 100%
  );
  -webkit-mask: radial-gradient(
    circle at center,
    transparent 55%,
    black 55%,
    black 100%
  );
}

/* Fond gris pour l'arc - PLUS ÉPAIS */
.gauge-arc::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: #e0e0e0;
  mask: radial-gradient(
    circle at center,
    transparent 55%,
    black 55%,
    black 100%
  );
  -webkit-mask: radial-gradient(
    circle at center,
    transparent 55%,
    black 55%,
    black 100%
  );
  z-index: -1;
}

/* Aiguille de la jauge - plus fine */
.gauge-needle {
  position: absolute;
  width: 1px;
  height: 18px;
  background: #333;
  bottom: 5px;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

/* Point central de l'aiguille */
.gauge-needle::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

/* Pointe de l'aiguille (triangle) */
.gauge-needle::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid #333;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

/* Centre de la jauge avec pourcentage - REPOSITIONNÉ */
.gauge-center {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  background: transparent;
  border-radius: 3px;
  padding: 1px 4px;
}

.gauge-value {
  font-size: 0.6rem;
  font-weight: bold;
  color: #666;
  line-height: 1;
}

/* Couleurs dynamiques selon la valeur */
.sentiment-gauge.extreme-fear .gauge-value { 
  color: #e74c3c; 
}
.sentiment-gauge.fear .gauge-value { 
  color: #e67e22;
}
.sentiment-gauge.neutral .gauge-value { 
  color: #f39c12;
}
.sentiment-gauge.greed .gauge-value { 
  color: #95e622;
}
.sentiment-gauge.extreme-greed .gauge-value { 
  color: #2ecc71;
}

/* Animation de l'aiguille */
.sentiment-gauge[data-value] .gauge-needle {
  transform: translateX(-50%) rotate(calc((var(--value, 50) * 1.8deg) - 90deg));
}

/* ================================
   ?? GAUGE-ARC DANS LE MODAL (plus grande)
   ================================ */
.modal-gauge-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sentiment-gauge-wrapper.modal-gauge {
  padding: 5px;
}

.sentiment-gauge-wrapper.modal-gauge .sentiment-gauge {
  width: 80px;
  height: 45px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-arc {
  width: 80px;
  height: 40px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-arc::before,
.sentiment-gauge-wrapper.modal-gauge .gauge-arc::after {
  width: 80px;
  height: 80px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-needle {
  height: 28px;
  bottom: 6px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-needle::before {
  width: 6px;
  height: 6px;
  bottom: -3px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-needle::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #333;
  top: -5px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-center {
  bottom: 2px;
}

.sentiment-gauge-wrapper.modal-gauge .gauge-value {
  font-size: 0.7rem;
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
  .item-metrics-bar {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .metric-item i {
    font-size: 0.85rem;
  }
  
  .sentiment-gauge {
    width: 45px;
    height: 28px;
  }
  
  .gauge-arc {
    width: 45px;
    height: 22px;
  }
  
  .gauge-arc::before,
  .gauge-arc::after {
    width: 45px;
    height: 45px;
  }
  
  .gauge-needle {
    height: 16px;
    bottom: 4px;
  }
  
  .gauge-center {
    bottom: 2px;
    padding: 1px 3px;
  }
  
  .gauge-value {
    font-size: 0.55rem;
  }
}

/* Responsive - Mobiles */
@media (max-width: 480px) {
  .item-metrics-bar {
    padding: 6px 8px;
    gap: 10px;
  }
  
  .metric-item {
    font-size: 0.75rem;
  }
  
  .sentiment-gauge {
    width: 40px;
    height: 25px;
  }
  
  .gauge-arc {
    width: 40px;
    height: 20px;
  }
  
  .gauge-arc::before,
  .gauge-arc::after {
    width: 40px;
    height: 40px;
    /* Arc encore plus épais sur mobile */
    mask: radial-gradient(
      circle at center,
      transparent 50%,
      black 50%,
      black 100%
    );
    -webkit-mask: radial-gradient(
      circle at center,
      transparent 50%,
      black 50%,
      black 100%
    );
  }
  
  .gauge-needle {
    height: 14px;
    bottom: 3px;
  }
  
  .gauge-center {
    bottom: 1px;
    padding: 0 2px;
  }
  
  .gauge-value {
    font-size: 0.5rem;
  }
}

/* Responsive modal gauge - Tablettes */
@media (max-width: 768px) {
  .sentiment-gauge-wrapper.modal-gauge .sentiment-gauge {
    width: 65px;
    height: 38px;
  }
  .sentiment-gauge-wrapper.modal-gauge .gauge-arc {
    width: 65px;
    height: 33px;
  }
  .sentiment-gauge-wrapper.modal-gauge .gauge-arc::before,
  .sentiment-gauge-wrapper.modal-gauge .gauge-arc::after {
    width: 65px;
    height: 65px;
  }
  .sentiment-gauge-wrapper.modal-gauge .gauge-needle {
    height: 22px;
    bottom: 5px;
  }
}

/* Responsive modal gauge - Mobiles */
@media (max-width: 480px) {
  .sentiment-gauge-wrapper.modal-gauge .sentiment-gauge {
    width: 55px;
    height: 32px;
  }
  .sentiment-gauge-wrapper.modal-gauge .gauge-arc {
    width: 55px;
    height: 28px;
  }
  .sentiment-gauge-wrapper.modal-gauge .gauge-arc::before,
  .sentiment-gauge-wrapper.modal-gauge .gauge-arc::after {
    width: 55px;
    height: 55px;
  }
  .sentiment-gauge-wrapper.modal-gauge .gauge-needle {
    height: 18px;
    bottom: 4px;
  }
}

/* Au survol, effet de brillance */
.sentiment-gauge:hover .gauge-arc::before {
  filter: brightness(1.1);
  transition: filter 0.2s;
}

.sentiment-gauge:hover .gauge-needle {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}


/* =============================================
   SECTION MÉTRIQUES DANS LE MODAL
   ============================================= */

.modal-metrics-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bannière d'information */
.modal-metrics-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 8px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-metrics-info i {
  color: var(--primary-color, #3b82f6);
  font-size: 14px;
}

/* Barre de métriques (vues + sentiment) */
.modal-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.modal-metric-item i {
  font-size: 18px;
  color: var(--primary-color, #3b82f6);
}


.metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
}

/* Jauge de sentiment dans le modal */
.modal-metric-sentiment {
  flex: 1;
  display: flex;
  justify-content: center;
}

.modal-sentiment-gauge-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modal-sentiment-gauge {
  width: 120px;
  height: 60px;
  position: relative;
  overflow: hidden;
}

.modal-sentiment-gauge .gauge-arc {
  width: 100%;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  background: conic-gradient(
    from 180deg,
    #e74c3c 0deg,
    #e67e22 45deg,
    #f1c40f 90deg,
    #2ecc71 135deg,
    #27ae60 180deg
  );
  mask: radial-gradient(
    circle at center,
    transparent 40%,
    black 40%,
    black 100%
  );
  -webkit-mask: radial-gradient(
    circle at center,
    transparent 40%,
    black 40%,
    black 100%
  );
}

.modal-sentiment-gauge .gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 50px;
  background: #fff;
  transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-sentiment-gauge .gauge-needle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.modal-sentiment-gauge .gauge-center {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.gauge-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.gauge-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Boutons de vote dans le modal - Accessibles à tous */
.modal-metric-voting {
  display: flex;
  gap: 10px;
  position: relative;
}

.modal-vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.modal-vote-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modal-vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-vote-btn.vote-green:hover {
  background: rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
}

.modal-vote-btn.vote-green:hover::before {
  background: rgba(46, 204, 113, 0.1);
  width: 100%;
  height: 100%;
}

.modal-vote-btn.vote-red:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
}

.modal-vote-btn.vote-red:hover::before {
  background: rgba(231, 76, 60, 0.1);
  width: 100%;
  height: 100%;
}

.modal-vote-btn.voted {
  animation: vote-success 0.5s ease;
  /* Les boutons restent cliquables pour changer ou annuler le vote */
}

.modal-vote-btn.vote-green.voted {
  background: rgba(46, 204, 113, 0.3);
  border-color: #2ecc71;
  color: #2ecc71;
}

.modal-vote-btn.vote-red.voted {
  background: rgba(231, 76, 60, 0.3);
  border-color: #e74c3c;
  color: #e74c3c;
}

@keyframes vote-success {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes vote-pulse {
  0% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.modal-vote-btn.vote-pulse {
  animation: vote-pulse 0.6s ease;
}

/* =============================================
   SECTION COMMENTAIRES DANS LE MODAL
   ============================================= */

.modal-comments-section {
  margin-top: 20px;
}

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

.modal-comments-header h4 {
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-comments-header i {
  color: var(--primary-color, #3b82f6);
}


/* Formulaire de commentaire */
.modal-comment-form {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
  font-family: inherit;
}
.comment-input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  border: 1px dashed #adb5bd;
  text-align: left;
}
.comment-input:focus {
  border:none;
}

.modal-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.modal-comment-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-submit-comment {
  padding: 10px 20px;
  background: var(--primary-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-submit-comment:hover {
  background: var(--primary-hover, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Liste des commentaires avec séparation visuelle */
.modal-comments-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 15px;
}

.modal-comments-list::-webkit-scrollbar {
  width: 6px;
}

.modal-comments-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.modal-comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.modal-comments-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Commentaire individuel */
.modal-comment {
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.modal-comment:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-comment-meta {
  flex: 1;
}

.modal-comment-author {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-comment-author .verified-badge {
  color: var(--primary-color, #3b82f6);
  font-size: 12px;
}

.modal-comment-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.modal-comment-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 48px;
}

.modal-comment-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 48px;
}

.modal-comment-like,
.modal-comment-delete {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.modal-comment-like:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.modal-comment-like.liked {
  color: #e74c3c;
}

.modal-comment-like:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  transform: scale(1.05);
}

.modal-comment-like.like-bounce {
  animation: like-bounce 0.4s ease;
}

@keyframes like-bounce {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-5deg); }
  50% { transform: scale(1.3) rotate(5deg); }
  75% { transform: scale(1.2) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.modal-comment-delete:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

/* Message "aucun commentaire" */
.modal-no-comments {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.modal-no-comments i {
  font-size: 48px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.3);
}

.modal-no-comments p {
  margin: 5px 0;
}

.modal-no-comments .text-muted {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* Prompt de connexion amélioré */
.modal-login-prompt-box {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(239, 186, 18, 0.04) 0%, rgba(242, 198, 59, 0.14) 100%);
  border-radius: 12px;
  border: 1px dashed rgb(240, 185, 11);
  transition: all 0.3s ease;
}
.btn.btn-primary {
border:none;
}

.modal-login-prompt-box:hover {
  background: transparent;
  border: 1px dashed rgb(240, 185, 11);
}

.modal-login-prompt-box i {
  font-size: 32px;
  color: var(--primary-color, #3b82f6);
  margin-bottom: 15px;
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.modal-login-prompt-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-size: 14px;
}

.modal-login-prompt-box .btn {
  padding: 10px 25px;
  background: #f0b90b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.modal-login-prompt-box .btn i {
  font-size: 14px;
  margin: 0;
  animation: none;
}

.modal-login-prompt-box .btn:hover {
  background: #f0b90b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
  border:none;
}

.modal-login-prompt-box .helper-text {
  margin-top: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-login-prompt-box .helper-text i {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Notifications améliorées */
.modal-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-notification.show {
  transform: translateX(0);
}

.modal-notification.success {
  border-left: 4px solid #2ecc71;
}

.modal-notification.success i {
  color: #2ecc71;
}

.modal-notification.error {
  border-left: 4px solid #e74c3c;
}

.modal-notification.error i {
  color: #e74c3c;
}

.modal-notification.info {
  border-left: 4px solid #3b82f6;
}

.modal-notification.info i {
  color: #3b82f6;
}

.modal-login-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-login-prompt.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Loader pour les commentaires */
.spinner-small {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color, #3b82f6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .modal-metrics-bar {
    flex-direction: column;
    gap: 20px;
  }
  
  .modal-metric-sentiment {
    width: 100%;
  }
  
  .modal-comment-content,
  .modal-comment-actions {
    padding-left: 0;
  }
  
  .modal-comments-list {
    max-height: 300px;
  }
}

/* Styles pour les réponses dans le modal */
#airdropModal .reply-indicator {
  background: rgba(112, 112, 112, 0.1);
  border-left: 3px solid var(--primary-color, #707070);
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

#airdropModal .reply-indicator i {
  color: var(--primary-color, #707070);
}

#airdropModal .reply-indicator strong {
  color: var(--primary-color, #707070);
}

#airdropModal .btn-cancel-reply {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  margin-top:10px;
}

#airdropModal .btn-cancel-reply:hover {
  background: #c82333;
}

#airdropModal .comment-form-wrapper {
  position: relative;
}

#airdropModal .comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 0px;
  justify-content: space-around;
  padding:8px;
}








/* =====================================================
   TOKENOMICS SECTION
   ===================================================== */
   

/* =====================================================
   TOKENOMICS SECTION - VERSION COMPLÈTE OPTIMISÉE
   Palette: Blanc, Jaune (#FFD700), Gris, Noir, Vert (#4CAF50)
   ===================================================== */

/* ===========================================
   VARIABLES CSS & CONFIGURATION GLOBALE
   =========================================== */
:root {
    /* Couleurs principales */
    --color-primary: #FFD700;
    --color-success: #4CAF50;
    --color-dark: #1a1a1a;
    --color-gray: #666;
    --color-light-gray: #999;
    --color-bg-light: #f8f8f8;
    --color-border: #e8e8e8;
    
    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 12px rgba(255, 215, 0, 0.3);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-xxl: 24px;
}

/* ===========================================
   CONTAINER PRINCIPAL
   =========================================== */
.tokenomics-section {
    margin: 30px 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tokenomics-container {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: var(--radius-xxl);
    padding: 20px 50px 40px 50px;
    box-shadow: var(--shadow-md), var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Barre de couleur en haut */
.tokenomics-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        var(--color-success) 50%, 
        var(--color-dark) 100%);
}

/* ===========================================
   HEADER SECTION
   =========================================== */
.tokenomics-header {
    margin-bottom: 0px;
}

.tokenomics-title-wrapper {
    display: flex;
  justify-content: center;
  align-items: left;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  flex-direction: column;
}

.title-group {
    display: flex;
    align-items: center;
}

.tokenomics-header h2 {
    color: #555;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.tokenomics-header h2 i {
  font-size: 40px;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #4CAF50B5 50%, #525252 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 40px;
  margin-right: 10px;
}

/* Badges */
.badge-pro {
    background: linear-gradient(135deg, var(--color-primary), #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold);
}

/* Toggle Button */
.tokenomics-toggle-btn {
    background: #ffffff;
    border: 2px solid var(--color-border);
    color: var(--color-gray);
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tokenomics-toggle-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.tokenomics-subtitle {
    color: var(--color-gray);
    font-size: 16px;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Content Toggle */
.tokenomics-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tokenomics-content.expanded {
    display: block;
    opacity: 1;
}

/* ===========================================
   STATS CARDS SECTION
   =========================================== */
.tokenomics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top:20px;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Animation hover pour stat-card */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.stat-card:hover::after {
    transform: translateX(100%);
}

/* Stat Icons */
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-gray);
    flex-shrink: 0;
}

.stat-icon.green {
    background: linear-gradient(135deg, var(--color-success), #45a049);
    color: white;
}

.stat-icon.yellow {
    background: linear-gradient(135deg, var(--color-primary), #FFA500);
    color: #000;
}

/* Stat Info */
.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    display: block;
    color: var(--color-light-gray);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-info .stat-value {
    display: block;
    color: #1a1a1af0;
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    font-size: 20px;
}

.stat-change {
    display: inline-block;
    color: var(--color-gray);
    font-size: 13px;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--color-success);
}

/* ===========================================
   MAIN CONTENT GRID
   =========================================== */
.tokenomics-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* ===========================================
   CHART SECTION
   =========================================== */
.chart-section {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    position: relative;
}

/* Container flex pour layout horizontal */
.chart-flex-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-lg);
}

/* Wrapper du donut à gauche - AGRANDI */
.tokenomics-chart-wrapper {
    flex: 0 0 auto;
    width: 400px;
    height: 400px;
    position: relative;
}

#tokenomicsChart {
    max-height: 100%;
    max-width: 100%;
}

/* Logo central dans le donut */
.chart-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.chart-center-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

.chart-center-text {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   TOOLTIP ZONE - POSITION FIXE
   =========================================== */
.tooltip-zone {
 
    width: 400px;
    min-width: 400px;
    height: 340px;                 /* MODIF : hauteur augmentée */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f9f9f9, #ffffff);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;                    /* MODIF : pas de padding pour maximiser l'espace */
    transition: var(--transition-fast);
    overflow: hidden;              /* AJOUT : pour éviter les débordements */
}

/* Animation de la zone quand tooltip actif */
.tooltip-zone.has-tooltip {
    background: linear-gradient(145deg, #9d9d9d14, #c8c8c81a);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

/* Placeholder text */
.tooltip-placeholder {
    text-align: center;
    color: var(--color-light-gray);
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-fast);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tooltip-placeholder i {
    font-size: 48px;
    color: #e0e0e0;
    margin-bottom: var(--spacing-sm);
    display: block;
    animation: handMove 2s ease-in-out infinite;
}

@keyframes handMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.tooltip-placeholder p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.tooltip-zone.has-tooltip .tooltip-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* ===========================================
   TOOLTIP PERSONNALISÉ - POSITION ABSOLUE FIXE
   =========================================== */
.custom-tooltip {
    position: absolute;
    top: 0;                        /* MODIF : au lieu de 50% */
    left: 0;                       /* MODIF : au lieu de 50% */
    right: 0;                      /* AJOUT : pour prendre toute la largeur */
    bottom: 0;                     /* AJOUT : pour prendre toute la hauteur */
    transform: scale(0.95);        /* MODIF : suppression du translate */
    background: linear-gradient(145deg, #ffffff, #fcfcfc);
    border: 1px solid white;
    border-radius: var(--radius-lg);
    padding: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), var(--shadow-sm);
    z-index: 1000;
    width: 100%;                   /* MODIF : au lieu de 280px */
    height: 100%;                  /* AJOUT : pour prendre toute la hauteur */
    /* backdrop-filter: blur(10px); DISABLED - Performance */
    overflow: hidden;
    display: flex;                 /* AJOUT : pour le layout flex */
    flex-direction: column;        /* AJOUT : organisation verticale */
}

.custom-tooltip.active {
    visibility: visible;
}

.custom-tooltip.show {
    opacity: 1;
    transform: scale(1);           /* MODIF : suppression du translate */
}

/* Effet de lueur en haut du tooltip */
.tooltip-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.8;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Tooltip Header */
.tooltip-header {
    display: flex;
    align-items: center;
    gap: 16px;                     /* MODIF : un peu plus d'espace */
    padding: 20px 24px;            /* MODIF : padding augmenté */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.9));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;                /* AJOUT : empêche le header de rétrécir */
}

.tooltip-icon {
    width: 48px;                   /* MODIF : icône plus grande */
    height: 48px;                  /* MODIF : icône plus grande */
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;               /* MODIF : icône plus grande */
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: iconRotate 0.6s ease-out;
}

@keyframes iconRotate {
    from { transform: rotate(-180deg) scale(0); }
    to { transform: rotate(0) scale(1); }
}

.tooltip-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-title {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 17px;               /* MODIF : texte légèrement plus grand */
    line-height: 1.2;
}

.tooltip-percent {
    background: linear-gradient(135deg, var(--color-primary), #FFC107);
    color: #000;
    padding: 4px 12px;             /* MODIF : padding ajusté */
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 16px;               /* MODIF : pourcentage plus grand */
    display: inline-block;
    box-shadow: var(--shadow-gold);
    animation: slideInRight 0.5s ease-out 0.1s both;
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tooltip Body */
.tooltip-body {
    padding: 24px;                 /* MODIF : padding augmenté */
    flex: 1;                       /* AJOUT : prend tout l'espace restant */
    display: flex;                 /* AJOUT : layout flex */
    flex-direction: column;        /* AJOUT : organisation verticale */
    justify-content: center;       /* AJOUT : centrage vertical */
    gap: 16px;                     /* AJOUT : espacement entre éléments */
}

.tooltip-amount {
    color: var(--color-success);
    font-weight: 700;
    font-size: 22px;               /* MODIF : montant plus grand */
    margin-bottom: 0;              /* MODIF : utilise gap à la place */
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.tooltip-amount i {
    font-size: 20px;               /* MODIF : icône plus grande */
    opacity: 0.8;
}

.tooltip-desc {
    color: var(--color-gray);
    font-size: 15px;               /* MODIF : description plus lisible */
    line-height: 1.6;              /* MODIF : meilleur espacement des lignes */
    margin-bottom: 0;              /* MODIF : utilise gap à la place */
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.tooltip-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;            /* MODIF : padding augmenté */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06));
    border-radius: 24px;           /* MODIF : border-radius plus rond */
    animation: fadeInUp 0.5s ease-out 0.4s both;
    align-self: flex-start;        /* AJOUT : alignement à gauche */
}

.tooltip-status span {
    color: var(--color-dark);
    font-size: 14px;               /* MODIF : texte légèrement plus grand */
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===========================================
   LÉGENDE INTERACTIVE
   =========================================== */
.chart-legend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    position: relative;
    padding-top: 8px;
}

/* Indicateur de cliquabilité */
.chart-legend::before {
    content: 'Cliquez sur un élément pour plus de détails';
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 11px;
    color: var(--color-light-gray);
    font-style: italic;
    opacity: 0.7;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-light2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    user-select: none;
}

.legend-item:hover {
    background: #fff;
    border-color: var(--color-primary);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}

.legend-item:active {
    transform: translateX(2px) scale(0.98);
}

.legend-item.active {
    background: linear-gradient(145deg, #fff, #fffbf0);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

.legend-item.clicked {
    animation: legendClick 0.3s ease;
}

@keyframes legendClick {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.95) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-item span:last-child {
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 500;
}

/* ===========================================
   ALLOCATION DETAILS
   =========================================== */
.tokenomics-details {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 0px;
    border: 1px solid var(--color-border);
}

.details-header {
    display: flex;
    align-items: center;
    padding: 30px;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
    border:none;
}
.details-header:hover {
   background: #f4f4f4;
   border-radius: var(--radius-xl);
}
.title-rep-head{
  display: flex;
  gap: 20px;
  align-items: center;
}
.title-rep-head i{
  color: #9a9a9a;
  font-size: 28px;
  margin-right: 10px;
}

.details-header h3 {
    color: #787878;
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.details-badge {
    background: linear-gradient(135deg, var(--color-success), #45a049);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Allocation List */
.allocation-padding{
 padding: 30px;
  gap: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-top: 2px solid #eee;
  margin: 0px 20px 0px 20px;
}

.allocation-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.allocation-item {
   background: #f9f9f9;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    border: 1px dashed #adb5bd;
}


.allocation-item.highlighted {
    background: linear-gradient(145deg, #fff, #fffbf0);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

/* Allocation Icons */
.allocation-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #666, #333);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.allocation-icon.green {
    background: linear-gradient(135deg, var(--color-success), #45a049);
}

.allocation-icon.yellow {
    background: linear-gradient(135deg, var(--color-primary), #FFA500);
    color: #000;
}

.allocation-icon.white {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #333;
    border: 1px solid #e0e0e0;
}

.allocation-icon.dark {
    background: linear-gradient(135deg, #333, #000);
}

.allocation-icon.green-light {
    background: linear-gradient(135deg, #8BC34A, #7CB342);
}

/* Allocation Info */
.allocation-info {
    flex: 1;
    min-width: 0;
}

.allocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.allocation-name {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 15px;
}

.allocation-percent {
    background: var(--color-primary);
    color: #000;
    font-weight: 800;
    font-size: 16px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.allocation-details {
    margin-bottom: 12px;
}

.allocation-amount {
    color: var(--color-success);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.allocation-desc {
    color: var(--color-gray);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Allocation Status Badges */
.allocation-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.allocation-status.unlocked {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
}

.allocation-status.locked {
    background: rgba(255, 0, 0, 0.05);
    color: #f44336;
}

.allocation-status.partial {
    background: rgba(255, 215, 0, 0.1);
    color: #FFA500;
}

.allocation-status.progressive {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.allocation-status.reserved {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-gray);
}

.allocation-status.flexible {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(76, 175, 80, 0.1));
    color: #333;
}

/* ===========================================
   TIMELINE VESTING
   =========================================== */
.vesting-timeline {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
}

.timeline-header {
    margin-bottom: var(--spacing-lg);
}

.timeline-header h3 {
    color: var(--color-dark);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-header h3 i {
    color: var(--color-primary);
}

/* Progress Bar */
.timeline-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.timeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), var(--color-primary));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.timeline-track {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    text-align: center;
    flex: 1;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.timeline-item.active {
    opacity: 1;
}

.timeline-marker {
    position: relative;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item.active .timeline-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.1);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    border-color: var(--color-primary);
}

/* Timeline Content */
.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-date {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 14px;
}

.timeline-event {
    color: var(--color-gray);
    font-size: 13px;
}

.timeline-status {
    color: var(--color-light-gray);
    font-size: 11px;
    font-weight: 500;
}

.timeline-item.active .timeline-status {
    color: var(--color-success);
}

/* ===========================================
   ANIMATIONS GLOBALES
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1200px) {
    .tokenomics-main {
        grid-template-columns: 1fr;
    }
    
    .chart-flex-container {
        gap: 40px;
    }
    
    .tokenomics-chart-wrapper {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    /* Ajustements généraux */
    .tokenomics-container {
        padding: var(--spacing-md);
    }
    
    .tokenomics-header h2 {
        font-size: 24px;
        margin-left: -20px;
    }
    .tokenomics-header h2 i{
      font-size: 30px;
      margin-right:0px;
    }
    .tokenomics-header {
        margin-bottom:15px;
    }
    
    .tokenomics-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: 15px;
        margin-bottom: 40px;
    }
    .chart-section{
      background: transparent;
    }
    .legend-item{
      width: 30%;
      background: #fff;
    border: 1px solid #80808029;
    flex-direction: column;
    }
    .chart-legend {
  gap: 10px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
    .stat-card {
     padding: 10px 20px;
     }
    
    /* Layout vertical pour le chart */
    .chart-flex-container {
        flex-direction: column;
        gap: 0px;
    }
    
    .tokenomics-chart-wrapper {
        width: 100%;
        max-width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    .tokenomics-toggle-btn {
  width: 100%;
}
   
    .tooltip-zone {
        width: 100%;
        min-width: unset;
        height: auto;             /* MODIF : hauteur ajustée pour mobile */
        order: 2;
        padding: 0;
    }
    
    .custom-tooltip {
        width: 100%;
        max-width: none;           /* MODIF : suppression de la limite */
        height: 100%;
        position: relative;
    }
    
    .tooltip-header {
        padding: 16px 20px;
    }
    
    .tooltip-body {
        padding: 20px;
    }

    .allocation-padding {
  padding: 30px 0px;
  margin: 0px;
  border:none;
}
.allocation-icon{
  position: absolute;
}
.allocation-name {
  text-align: right;
  width: 100%;
  margin-top: 12px;
}


    .chart-legend {
        order: 3;
    }
    
    .chart-legend::before {
        font-size: 10px;
        top: -18px;
    }
    
    /* Timeline mobile */
    .timeline-container {
        flex-direction: column;
        padding-left: 40px;
    }
    
    .timeline-track {
        width: 2px;
        height: 100%;
        left: 20px;
        top: 0;
    }
    
    .timeline-item {
        text-align: left;
        margin-bottom: var(--spacing-lg);
    }
    
    .timeline-dot {
        position: absolute;
        left: -30px;
        top: 0;
    }
    .chart-section {
  border-radius: var(--radius-xl);
  padding: 0px;
  border: none;
  position: relative;
}
.tokenomics-details {
    background: transparent;
    border-radius: none;
    padding: 0px;
    border: none;
}
  .allocation-percent {
    margin-top: var(--spacing-xs);
    text-align: center;
    width: 100%;
    margin-top: 20px;
  }
  .allocation-amount {
  text-align: center;
  margin-bottom: 20px;
}
.allocation-desc {
  font-size: 12px;
  margin: 0;
  text-align: justify;
}
}

@media (max-width: 480px) {
    /* Très petits écrans */
    .tokenomics-stats {
        grid-template-columns: 1fr;
    }
    
    .chart-center-logo img {
        width: 60px;
        height: 60px;
    }

    .details-header {
        gap: var(--spacing-md);
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 15px;
    align-items: center;
    color: gray;
    border: 1px solid #dadada;
    border-radius: 20px;
    }
    .title-rep-head .badge-pro{
      display: none;
    }
    .details-header h3{
      font-size: 16px;
    }
    
    .tooltip-placeholder i {
        font-size: 36px;
    }
    
    .tooltip-placeholder p {
        font-size: 12px;
    }
    
    .custom-tooltip {
        font-size: 13px;
    }
    
    .tooltip-title {
        font-size: 14px;
    }
    
    .tooltip-amount {
        font-size: 16px;
    }
    
    .chart-legend::before {
        display: none;
    }
    
    .chart-legend {
        padding-top: 0;
    }
    
    .allocation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
     .allocation-percent {
    margin-top: var(--spacing-xs);
    text-align: center;
    width: 100%;
    margin-top: 20px;
  }
  
}

/* ===========================================
   OPTIMISATIONS PERFORMANCES
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   UTILITAIRES
   =========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===========================================
   TOOLTIP PAR DÉFAUT
   =========================================== */

/* Masquer le placeholder */
.tooltip-placeholder {
    display: none !important;
}

/* Styles spécifiques au tooltip par défaut */
.custom-tooltip.is-default {
    animation: defaultTooltipEntry 0.6s ease-out;
}

@keyframes defaultTooltipEntry {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Icône gradient pour le tooltip par défaut */
.tooltip-icon-default {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Badge spécial pour le total */
.tooltip-percent-default {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    font-size: 18px !important;
    padding: 6px 14px !important;
}

/* Grille de stats pour le tooltip par défaut */
.tooltip-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
    border-radius: 12px;
}

.tooltip-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tooltip-stat-value {
    font-size: 15px;
    color: #333;
    font-weight: 700;
}

/* Status par défaut avec couleur différente */
.tooltip-status-default {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    color: #FF8C00;
}

.tooltip-status-default i {
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive pour le tooltip par défaut */
@media (max-width: 768px) {
    .tooltip-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .tooltip-percent-default {
        font-size: 16px !important;
    }
}

/* ===========================================
   HOVER TOOLTIP - Tooltip léger au survol
   =========================================== */
.hover-tooltip {
    position: fixed;
    background: #4d4d4dff;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* backdrop-filter: blur(10px); DISABLED - Performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-tooltip.active {
    opacity: 0.9;
    transform: translateY(0);
}

.hover-tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-tooltip-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.hover-tooltip-label {
    font-weight: 600;
    font-size: 12px;
    color: whitesmoke;
    opacity: 0.9;
}

.hover-tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hover-tooltip-percent {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hover-tooltip-amount {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
}

/* Mobile : désactiver le hover tooltip */
@media (max-width: 768px) {
    .hover-tooltip {
        display: none !important;
    }
}


/*   PATCH CSS - STAT CARDS EXPANDABLES */

/* Modifications sur les stat-cards existantes */
.stat-card {
    /* Retirer les propriétés qui entrent en conflit */
    padding: 0 !important; /* Override l'ancien padding */
    display: block !important; /* Override le flex */
}

/* Nouveau wrapper pour le header cliquable */
.stat-card-header {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.stat-card-header:hover {
    background-color: rgba(255, 215, 0, 0.02);
}

/* Ajuster le stat-info pour faire de la place au bouton */
.stat-card.expandable .stat-info {
    padding-right: 0px;
}

/* Nouveau bouton expand */
.stat-expand-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-gray);
    font-size: 14px;
    padding: 0;
    outline: none;
}

.stat-expand-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.stat-expand-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.stat-expand-btn i {
    transition: transform 0.3s ease;
    pointer-events: none;
}

.stat-card.expanded .stat-expand-btn i {
    transform: rotate(180deg);
}

/* ========================================
   MODE MOBILE - Expansion dans la card
   ======================================== */
.stat-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(99, 179, 237, 0.2);
    /* backdrop-filter: blur(10px); DISABLED - Performance */
    position: relative;
}

.stat-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card.expanded .stat-description {
    max-height: 500px;
}

.stat-card.expanded .stat-description::before {
    opacity: 0.8;
}

.stat-description-content {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card.expanded .stat-description-content {
    opacity: 1;
}

/* ========================================
   STYLES COMMUNS - Mobile & Desktop
   ======================================== */

/* Pour mobile : .stat-description p */
/* Pour desktop : .stat-expansion-content p */
.stat-description p,
.stat-expansion-content > p {
    color: #6d6d6d;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.stat-description ul,
.stat-expansion-content > ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.stat-description ul li,
.stat-expansion-content > ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: #ad8e15;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.stat-description ul li:hover,
.stat-expansion-content > ul li:hover {
    transform: translateX(4px);
}

.stat-description ul li:before,
.stat-expansion-content > ul li:before {
    content: '?';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f0b90b, #f0b90b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: white;
  box-shadow: 0 2px 8px rgba(225, 185, 66, 0.3);
}

.stat-description strong,
.stat-expansion-content strong {
    color: #f0b90b;
    font-weight: 600;
    font-size: 14px;
}

/* Box d'highlight */
.stat-highlight {
    padding: 14px 16px;
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
  align-items: center;
  background: #f0b90b3b;
  border-radius: 10px;
  border-left: 5px solid #f0b90b;
}


.stat-highlight i {
    color: #a37f10;
    font-size: 18px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.stat-highlight span {
    color: #a37f10;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .stat-description p,
    .stat-expansion-content > p {
        font-size: 14px;
    }
    
    .stat-description ul li,
    .stat-expansion-content > ul li {
        font-size: 13px;
        padding-left: 28px;
    }
    
    .stat-highlight {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .stat-highlight span {
        font-size: 13px;
        text-align: center;
    }
}

/* Progress bar pour le burn */
.stat-progress {
    margin: 16px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.stat-progress-label {
    display: block;
    color: var(--color-gray);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.stat-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.stat-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-progress-value {
    display: block;
    text-align: right;
    color: var(--color-success);
    font-size: 14px;
    font-weight: 700;
}

/* Animation pour les cartes */
.stat-card.stats-animated {
    animation: statCardEntrance 0.6s ease forwards;
}

@keyframes statCardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive ajustements */
@media (max-width: 768px) {
    .stat-card-header {
        padding: 16px 20px;
    }
    
    .stat-expand-btn {
        right: 16px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .stat-card.expandable .stat-info {
        padding-right: 40px;
    }
    
    .stat-description-content {
        padding: 16px;
    }
    
    .stat-card.expanded .stat-description {
        max-height: 600px;
    }
    
    .stat-highlight {
        align-items: center;
        gap: 6px;
    }
    
    .stat-highlight i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stat-expand-btn {
        right: 12px;
        width: 26px;
        height: 26px;
    }
    
    .stat-description p {
        font-size: 13px;
    }
    
    .stat-description ul li {
        font-size: 12px;
        padding-left: 30px;
    }
    
    .stat-highlight span {
        font-size: 12px;
    }
}

/* Zone d'expansion pour desktop */
/* REMPLACEZ la section .stat-expansion-zone dans votre CSS par celle-ci : */

/* Zone d'expansion pour desktop avec animation de glissement */
.stat-expansion-zone {
    width: 100%;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0.02) 0%, rgba(216, 216, 216, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, rgba(216, 216, 216, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
  background-image: repeating-linear-gradient( 45deg, rgba(207, 207, 207, 0.03) 0px, rgba(162, 162, 162, 0.08) 1px, transparent 1px, transparent 5px );
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-top: var(--spacing-md);
    position: relative;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
}

.stat-expansion-zone.active {
    max-height: 600px; /* Ajustez selon votre contenu */
    opacity: 1;
    transform: translateY(0);
    margin-bottom:50px;
}

/* Animation d'entrée du contenu */
.stat-expansion-zone.active .stat-expansion-content {
    animation: slideContentIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideContentIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de slide pour chaque élément du contenu */
.stat-expansion-zone.active .stat-expansion-header {
    animation: slideElement 0.5s ease-out;
}

.stat-expansion-zone.active .stat-expansion-header + * {
    animation: slideElement 0.5s ease-out 0.1s both;
}

.stat-expansion-zone.active .stat-highlight {
    animation: slideElement 0.5s ease-out 0.2s both;
}

.stat-expansion-zone.active .stat-progress {
    animation: slideElement 0.5s ease-out 0.3s both;
}

@keyframes slideElement {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ligne animée qui apparaît en haut */
.stat-expansion-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    transition: width 0.8s ease-out;
}

.stat-expansion-zone.active::before {
    width: 100%;
}

/* Animation de fermeture */
.stat-expansion-zone.closing {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease-in,
                opacity 0.2s ease-in,
                transform 0.3s ease-in;
}

.stat-expansion-content {
    padding: var(--spacing-lg) var(--spacing-xl);
    position: relative;
}

/* Bouton de fermeture avec animation */
.stat-expansion-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    animation: fadeInRotate 0.5s ease-out 0.4s both;
}

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

.stat-expansion-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.stat-expansion-close i {
    font-size: 14px;
    color: var(--color-gray);
}

.stat-expansion-close:hover i {
    color: #000;
}

/* Sur desktop : layout 2 colonnes */
@media (min-width: 769px) {
    .stat-expansion-zone.active {
        max-height: 800px; /* Plus d'espace sur desktop */
    }
    
    .stat-expansion-content {
        display: flex;
    gap: 20px;
    flex-direction: column;
    }
    
    .stat-expansion-header {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 20px;
        padding-bottom: var(--spacing-md);
        border-bottom: 2px solid rgba(255, 215, 0, 0.1);
        margin-bottom: var(--spacing-md);
        position: relative;
    }
    
    /* Animation de la bordure du header */
    .stat-expansion-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: width 0.6s ease-out 0.3s;
    }
    
    .stat-expansion-zone.active .stat-expansion-header::after {
        width: 100%;
    }
}

/* Sur mobile : cacher cette zone et garder le comportement actuel */
@media (max-width: 768px) {
    .stat-expansion-zone {
        display: none !important;
    }
    
    /* Garder l'expansion dans la carte sur mobile */
    .stat-card.expandable .stat-description {
        display: block !important;
    }
}

/* Desktop : cacher la description dans la carte */
@media (min-width: 769px) {
    .stat-card.expandable .stat-description {
        display: none !important;
    }
}

/* Indicateur de carte active avec pulse */
.stat-card.expandable.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    }
}

.stat-card.expandable.active .stat-expand-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    animation: rotateIn 0.3s ease;
}

@keyframes rotateIn {
    from {
        transform: translateY(-50%) rotate(0);
    }
    to {
        transform: translateY(-50%) rotate(180deg);
    }
}

.stat-card.expandable.active .stat-expand-btn i {
    transform: rotate(180deg);
}

/* Animation de highlight pour la carte active */
.stat-card.expandable.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: slideHighlight 1.5s ease-in-out infinite;
}

@keyframes slideHighlight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* AJOUTEZ ces styles CSS pour améliorer la transition entre contenus : */

/* Animation de fondu pour le switch de contenu */
.stat-expansion-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* État de transition pour le changement de contenu */
.stat-expansion-zone.switching .stat-expansion-content {
    opacity: 0;
    transform: scale(0.95);
}

/* Animation spéciale pour le switch */
@keyframes contentSwitch {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Transition plus rapide pour les boutons lors du switch */
.stat-card.expandable {
    transition: all 0.2s ease;
}

.stat-card.expandable.active.switching-out {
    transform: scale(0.98);
}

.stat-card.expandable.active.switching-in {
    animation: cardSwitchIn 0.3s ease;
}

@keyframes cardSwitchIn {
    0% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Amélioration de l'effet de highlight qui glisse */
.stat-expansion-zone.active .stat-expansion-header h3,
.stat-expansion-zone.active .stat-expansion-header span {
    animation: fadeInText 0.4s ease;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}











/*////////////////////////////////////////////////////////////////*/