/* ============================================
   COMPOSANTS UI
   ============================================ */

/* ============================================
   Boutons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--gold-glow);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  margin-bottom: var(--space-lg);
}

.btn-back:hover {
  color: var(--gold);
}

.btn-back span {
  font-size: 1.25rem;
}

.btn-logout {
  margin-top: var(--space-2xl);
}

/* ============================================
   Formulaires
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ============================================
   Modals
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Auth Modal */
.auth-modal {
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.auth-form {
  animation: fadeIn 0.3s ease;
}

.auth-error {
  color: var(--red-error);
  font-size: 0.875rem;
  text-align: center;
  margin-top: var(--space-md);
  min-height: 1.5em;
}

/* Badge Modal */
.badge-modal {
  text-align: center;
  max-width: 400px;
}

.badge-celebration {
  position: relative;
}

.badge-icon-large {
  font-size: 5rem;
  margin-bottom: var(--space-lg);
  animation: badgeBounce 0.6s ease;
}

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

.badge-modal h2 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.badge-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.badge-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Level Up Modal */
.level-modal {
  text-align: center;
  max-width: 400px;
  overflow: visible;
}

.level-celebration {
  position: relative;
}

.level-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  animation: levelPulse 2s ease-in-out infinite;
}

@keyframes levelPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.level-number {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow);
  animation: levelUp 0.6s ease;
}

@keyframes levelUp {
  0% { transform: scale(0.5) translateY(50px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.level-modal h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: var(--space-md) 0 var(--space-sm);
}

.level-name {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.level-desc {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

/* Philosopher Modal */
.philosopher-detail {
  max-width: 600px;
}

.philosopher-header {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.philosopher-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-letter {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--bg-dark);
}

.philosopher-info h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.philosopher-dates {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.philosopher-school-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--cyan-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

.philosopher-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  padding: var(--space-lg);
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--gold);
  margin-bottom: var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.philosopher-ideas h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
}

.philosopher-ideas p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   Cards - Dilemmes
   ============================================ */

.dilemma-list {
  display: grid;
  gap: var(--space-lg);
}

.dilemma-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dilemma-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-gold);
}

.dilemma-card.completed {
  opacity: 0.6;
}

.dilemma-card.completed::after {
  content: '✓';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 30px;
  height: 30px;
  background: var(--green-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.dilemma-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.dilemma-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.dilemma-card-meta {
  display: flex;
  gap: var(--space-sm);
}

.dilemma-difficulty {
  display: flex;
  gap: 2px;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.difficulty-dot.active {
  background: var(--gold);
}

.dilemma-card-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
}

.dilemma-card-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dilemma-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dilemma-card-philosopher {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dilemma-card-xp {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold);
}

/* Dilemma Detail */
.dilemma-card-large {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.dilemma-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.dilemma-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
}

.dilemma-xp {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold);
}

.dilemma-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.dilemma-description {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.dilemma-context {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.context-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-sm);
}

.dilemma-context p {
  color: var(--text-secondary);
  font-style: italic;
}

.context-philosopher {
  margin-top: var(--space-sm);
  color: var(--gold) !important;
  font-style: normal !important;
}

/* Choices */
.dilemma-choices {
  display: grid;
  gap: var(--space-md);
}

.choice-btn {
  display: block;
  width: 100%;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.125rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.choice-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-dark);
}

.choice-btn.selected {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.choice-btn::before {
  content: '';
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.choice-btn.selected::before {
  border-color: var(--gold);
  background: var(--gold);
}

.choice-btn span {
  margin-left: var(--space-2xl);
}

/* Reflection */
.dilemma-reflection {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dilemma-reflection label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.dilemma-reflection textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  margin-bottom: var(--space-lg);
}

.dilemma-reflection textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Result */
.dilemma-result {
  margin-top: var(--space-xl);
  animation: slideUp 0.5s ease;
}

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

.result-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 245, 255, 0.05));
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
}

.result-header {
  margin-bottom: var(--space-lg);
}

.result-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.result-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.result-consequence {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.result-school {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.result-school span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.result-school strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--cyan);
}

.result-xp {
  margin-bottom: var(--space-xl);
}

.xp-earned {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  animation: xpPop 0.5s ease;
}

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

/* ============================================
   Cards - Philosophes
   ============================================ */

/* Filtres par région du monde */
.region-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.region-btn {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.region-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  transform: scale(1.05);
}

.region-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Filtres par époque */
.era-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

/* Message vide */
.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-style: italic;
}

.era-btn {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.era-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.era-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.philosophers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.philosopher-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.philosopher-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-gold);
}

.philosopher-card-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--bg-dark);
}

.philosopher-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.philosopher-card-dates {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.philosopher-card-school {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Badge de région sur les cartes de philosophes */
.philosopher-region-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 1.5rem;
  cursor: help;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.philosopher-card {
  position: relative;
}

/* Actions sur les cartes de philosophes */
.philosopher-card-actions {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-chat {
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(157, 78, 221, 0.1));
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-md);
  color: var(--purple);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-chat:hover {
  background: rgba(157, 78, 221, 0.3);
  border-color: var(--purple);
  transform: scale(1.05);
}

/* ============================================
   Profile
   ============================================ */

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  position: relative;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--gold-light), var(--gold));
  padding: 4px;
  position: relative;
}

.avatar-level {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-dark);
  border: 3px solid var(--bg-dark);
}

.avatar-icon {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.profile-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.profile-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.profile-quote {
  color: var(--text-secondary);
  font-style: italic;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.profile-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Badges Grid */
.badges-section {
  margin-bottom: var(--space-2xl);
}

.subtitle-icon {
  font-size: 1.25rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.badge-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-normal);
}

.badge-item.earned {
  border-color: rgba(212, 175, 55, 0.3);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-item:hover:not(.locked) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-gold);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.badge-item h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.badge-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.history-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.history-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 80px;
}

.history-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.history-choice {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.history-school {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-top: var(--space-xs);
}

/* ============================================
   Toasts
   ============================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 3000;
}

.toast {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  max-width: 350px;
}

.toast.success {
  border-color: var(--green-success);
}

.toast.error {
  border-color: var(--red-error);
}

.toast.info {
  border-color: var(--cyan);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
  margin-bottom: var(--space-2xl);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ============================================
   V2 - DUELS
   ============================================ */

.duels-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.duel-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.duel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.duel-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-gold);
}

.duel-theme-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: var(--space-md);
}

.duel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.duel-question {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.duel-vs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.duel-philo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.duel-philo-preview.left {
  align-items: flex-start;
}

.duel-philo-preview.right {
  align-items: flex-end;
}

.duel-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.duel-vs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.duel-xp {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--bg-dark);
  font-weight: 600;
}

/* Duel Detail */
.duel-detail {
  max-width: 800px;
  margin: 0 auto;
}

.duel-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.duel-main-question {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-2xl);
  text-align: center;
  line-height: 1.4;
}

.duel-arguments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .duel-arguments {
    grid-template-columns: 1fr;
  }
}

.philosopher-argument-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.philosopher-argument-card:hover {
  border-color: var(--gold-dark);
  background: var(--bg-card-hover);
}

.philosopher-argument-card.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 30px var(--gold-glow);
}

.argument-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg-dark);
  margin-bottom: var(--space-md);
}

.argument-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.argument-school {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: var(--space-md);
}

.argument-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.duel-reasoning {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.duel-reasoning label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.duel-reasoning textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  margin-bottom: var(--space-lg);
}

.duel-reasoning textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.duel-result {
  animation: slideUp 0.5s ease;
}

/* ============================================
   V2 - JOURNAL
   ============================================ */

.journal-new-btn {
  width: 100%;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  font-size: 1.125rem;
}

.journal-empty {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
  font-style: italic;
}

.journal-entries-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journal-entry-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.journal-entry-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateX(5px);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.entry-mood {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.entry-preview {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.tag {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--cyan);
}

/* Journal Detail */
.entry-full-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  text-transform: capitalize;
}

.entry-full-mood {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.entry-full-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-xl);
}

.entry-full-content {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  white-space: pre-wrap;
}

.entry-actions {
  display: flex;
  gap: var(--space-md);
}

.btn-danger {
  border-color: var(--red-error);
  color: var(--red-error);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Journal Editor */
.mood-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.mood-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mood-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.mood-btn.selected {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   V2 - MIND MAP (Carte des Idées)
   ============================================ */

.mindmap-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.mindmap-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.mindmap-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.mindmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.theme-card {
  background: var(--bg-card);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.theme-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-gold);
}

.theme-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.theme-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.theme-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.theme-philosophers-preview {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.preview-title {
  color: var(--text-muted);
  margin-right: var(--space-xs);
}

.preview-names {
  color: var(--cyan);
}

/* Theme Detail */
.theme-detail {
  max-width: 800px;
  margin: 0 auto;
}

.theme-detail-header {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 2px solid;
  margin-bottom: var(--space-2xl);
}

.theme-detail-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--space-md);
}

.theme-detail-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.theme-detail-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.theme-philosophers-section {
  margin-bottom: var(--space-2xl);
}

.theme-philosophers-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--gold);
}

.philosophers-ideas-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.philosopher-idea-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}

.idea-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.idea-content strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.idea-school {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-left: var(--space-sm);
}

.idea-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: var(--space-sm);
  line-height: 1.7;
}

/* User Position Section */
.user-position-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.user-position-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--gold);
}

.position-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.user-position-section textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  margin-bottom: var(--space-lg);
}

.user-position-section textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.evolution-note {
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.evolution-note span {
  display: block;
  font-size: 0.875rem;
  color: var(--cyan);
  margin-bottom: var(--space-sm);
}

.evolution-note p {
  color: var(--text-secondary);
  font-style: italic;
}

/* Related Content */
.theme-related-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.related-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.related-item {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.related-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold);
}

.related-item.duel-item {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 245, 255, 0.05));
}

/* ============================================
   V2 - REVEAL PHILOSOPHIQUE
   ============================================ */

.choice-archetype-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--cyan);
  margin-top: var(--space-sm);
  opacity: 0.8;
}

.philosophical-reveal {
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 245, 255, 0.05));
  border: 1px solid var(--gold);
  border-radius: var(--radius-xl);
  animation: revealAppear 0.8s ease;
}

@keyframes revealAppear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.reveal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.reveal-philosopher-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.reveal-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg-dark);
  flex-shrink: 0;
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 20px 10px var(--gold-glow); }
}

.reveal-info h5 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.reveal-school {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: var(--space-sm);
}

.reveal-quote {
  font-style: italic;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  border-left: 2px solid var(--gold);
  margin-top: var(--space-sm);
}

.archetype-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

/* ============================================
   V2 - STAGGER ANIMATIONS
   ============================================ */

.stagger-item {
  opacity: 0;
  animation: staggerFadeIn 0.5s ease forwards;
}

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

/* ============================================
   V2 - CHAT AVEC PHILOSOPHES (IA)
   ============================================ */

.chat-modal {
  max-width: 600px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.chat-philosopher-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg-dark);
}

.chat-philosopher-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.chat-philosopher-info span {
  font-size: 0.875rem;
  color: var(--cyan);
}

.chat-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-success);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

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

.chat-ai-warning {
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 193, 7, 0.1);
  border-bottom: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
  font-size: 0.75rem;
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 300px;
  max-height: 400px;
}

.chat-message {
  display: flex;
  gap: var(--space-sm);
  max-width: 85%;
  animation: messageAppear 0.3s ease;
}

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

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.assistant {
  align-self: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.chat-message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-dark);
}

.chat-message.user .message-avatar {
  background: var(--cyan);
  color: var(--bg-dark);
}

.message-bubble {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  line-height: 1.6;
}

.chat-message.assistant .message-bubble {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
}

.chat-message.user .message-bubble {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
}

/* Typing animation */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: var(--space-xs) 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

.chat-input-container {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input-container textarea {
  flex: 1;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: none;
}

.chat-input-container textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.chat-send {
  padding: var(--space-md) var(--space-lg);
}

.chat-suggestions {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  background: rgba(0, 0, 0, 0.2);
}

.suggestions-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.suggestion-chip {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.suggestion-chip:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   V2 - BOUTON CHAT SUR CARTE PHILOSOPHE
   ============================================ */

.philosopher-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-chat {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(0, 245, 255, 0.05));
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  color: var(--cyan);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-chat:hover {
  background: rgba(0, 245, 255, 0.2);
  transform: translateY(-2px);
}
