/* ================================
   ACCOUNT DASHBOARD STYLES
   ================================ */

/* Loading States */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #C1121F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dashboard Layout */
.account-dashboard { 
  max-width: 1200px; 
  margin: 2rem auto; 
  padding: 0 1rem;
}

/* Account Header */
.account-header { 
  position: relative; 
  margin-bottom: 2rem; 
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cover-photo {
  height: 200px;
  background: linear-gradient(135deg, #C1121F 0%, #780000 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cover-photo:hover {
  transform: scale(1.02);
}

.cover-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,215,0,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cover-edit-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.cover-photo:hover .cover-edit-overlay {
  opacity: 1;
}

.cover-pseudo {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: #FFD700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  margin: 0;
  text-align: center;
}

/* Profile Info */
.profile-info {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  margin-top: -60px;
  align-items: flex-start; /* CHANGÉ: de flex-end à flex-start */
  position: relative;
  z-index: 3;
}

.profile-pic-wrapper { 
  cursor: pointer; 
  position: relative;
  transition: transform 0.3s ease;
}

.profile-pic-wrapper:hover {
  transform: scale(1.05);
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: white;
  transition: all 0.3s ease;
}

.profile-edit-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #C1121F;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-details { 
  flex: 1; 
  margin-top: 0; /* CHANGÉ: de 20px à 0 */
  padding-top: 60px; /* NOUVEAU: pour compenser l'avatar */
}

.user-details h2 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
}

.user-details p { 
  margin: 4px 0; 
  color: #666; 
  font-size: 14px;
}

/* Edit Pseudo Section */
.edit-pseudo { 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; /* CHANGÉ: de 1rem à 0.5rem */
  margin-top: 1rem; /* CHANGÉ: de 1.5rem à 1rem */
  width: 100%; 
}

.edit-pseudo input {
  padding: 12px 16px; 
  border: 2px solid #e5e7eb; 
  border-radius: 8px; 
  width: 100%; /* CHANGÉ: remplace flex: 1 */
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* NOUVEAU */
}

.edit-pseudo input:focus {
  outline: none;
  border-color: #C1121F;
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.1);
}

/* Account Cards */
.account-card {
  background: white; 
  padding: 2rem; 
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.account-card h3 { 
  margin: 0 0 1.5rem 0; 
  color: #333; 
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count-badge {
  background: #e5e7eb; 
  color: #4b5563; 
  padding: 4px 12px; 
  border-radius: 12px; 
  font-size: 0.8rem; 
  font-weight: 500;
}

/* Diagnostic Panel */
.diagnostic-panel {
  margin-bottom: 1rem; 
  padding: 1rem; 
  background: #f3f4f6; 
  border-radius: 8px; 
  border-left: 4px solid #3b82f6;
}

.diagnostic-panel p {
  margin: 0 0 0.5rem 0; 
  font-size: 0.9rem; 
  color: #374151;
}

/* Announcements Grid */
.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.annonce-card {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.annonce-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #C1121F, #780000);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.annonce-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: #C1121F;
}

.annonce-card:hover::before {
  transform: scaleY(1);
}

.annonce-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.annonce-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a202c;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.annonce-date {
  font-size: 0.8rem;
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.annonce-preview {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.annonce-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.annonce-link {
  color: #C1121F;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(193, 18, 31, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.annonce-link:hover {
  background: rgba(193, 18, 31, 0.2);
  transform: translateX(2px);
}

.delete-annonce-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delete-annonce-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  color: #1a202c;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.empty-state p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Danger Zone */
.danger-zone { 
  border-left: 4px solid #ef4444; 
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, #C1121F, #780000);
  color: white; 
  padding: 12px 24px;
  border: none; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-secondary:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-danger { 
  background: linear-gradient(135deg, #ef4444, #dc2626); 
  margin-top: 1rem; 
}

.btn-danger:hover {
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Modal pour voir l'annonce complète */
.annonce-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.annonce-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #1a202c;
}

/* Upload indicators */
.upload-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1f2937;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  z-index: 10001;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.upload-indicator.show {
  display: flex;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: -40px; /* NOUVEAU */
  }
  
  .user-details {
    padding-top: 0; /* NOUVEAU */
    width: 100%; /* NOUVEAU */
  }

  .annonces-grid {
    grid-template-columns: 1fr;
  }

  .account-dashboard {
    padding: 0 0.5rem;
  }

  .edit-pseudo {
    flex-direction: column;
  }

  .cover-pseudo {
    font-size: clamp(24px, 8vw, 48px);
  }
}

@media (max-width: 480px) {
  .account-card {
    padding: 1rem;
  }
  
  .annonce-card {
    padding: 1rem;
  }
  
  .profile-info {
    padding: 1rem;
    margin-top: -40px;
  }
  
  .profile-pic {
    width: 80px;
    height: 80px;
  }
}
/* ================================
   NOUVELLES CARTES MODERNES AVEC LOGOS
   ================================ */

/* Grille des annonces */
.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Nouvelle carte moderne avec logo */
.modern-annonce-card {
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modern-annonce-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #C1121F;
}

.modern-annonce-card:hover .card-logo {
  transform: scale(1.05);
}

/* Container du logo */
.card-logo-container {
  height: 120px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.card-logo-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(193, 18, 31, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.card-logo {
  max-width: 80px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* Contenu de la carte */
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.card-date {
  font-size: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
  align-self: flex-start;
  font-weight: 500;
}

.card-preview {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions de la carte */
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #C1121F;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(193, 18, 31, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(193, 18, 31, 0.2);
}

.card-link-btn:hover {
  background: rgba(193, 18, 31, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.2);
}

.card-delete-btn {
  background: #ef4444;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.card-delete-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  opacity: 1;
}

/* Animations au survol de la carte */
.modern-annonce-card:hover .card-delete-btn {
  opacity: 1;
}

/* Styles pour les cartes vides */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state h3 {
  color: #1a202c;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.empty-state p {
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .annonces-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modern-annonce-card {
    margin-bottom: 0;
  }
  
  .card-logo-container {
    height: 100px;
  }
  
  .card-logo {
    max-width: 60px;
    max-height: 45px;
  }
  
  .card-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .card-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .card-link-btn {
    justify-content: center;
  }
  
  .card-delete-btn {
    width: 100%;
    height: 40px;
    border-radius: 6px;
  }
}

/* Animation de suppression */
.modern-annonce-card.deleting {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Effet de chargement pour les logos */
.card-logo {
  opacity: 0;
  animation: fadeInLogo 0.5s ease forwards;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
  }
}

/* Effet spécial pour les cartes au chargement */
.modern-annonce-card {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInCard 0.5s ease forwards;
}

@keyframes slideInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Délai progressif pour l'animation */
.modern-annonce-card:nth-child(1) { animation-delay: 0.1s; }
.modern-annonce-card:nth-child(2) { animation-delay: 0.2s; }
.modern-annonce-card:nth-child(3) { animation-delay: 0.3s; }
.modern-annonce-card:nth-child(4) { animation-delay: 0.4s; }
.modern-annonce-card:nth-child(5) { animation-delay: 0.5s; }
.modern-annonce-card:nth-child(6) { animation-delay: 0.6s; }

/* AJOUTEZ CE CODE À LA FIN DE VOTRE account-dashboard.css */

/* Logo transparent sur toute la carte */
.card-logo-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--logo-url);
  background-size: 120px 120px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

/* Badge compteur de messages modernisé */
.message-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(193, 18, 31, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal carrousel pour l'historique des messages */
.carousel-modal-container {
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.carousel-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.carousel-counter {
  background: rgba(193, 18, 31, 0.1);
  color: #C1121F;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(193, 18, 31, 0.2);
}

.carousel-content {
  padding: 24px;
}

.message-slide {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message-date-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.message-content {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #C1121F;
  margin-bottom: 16px;
}

.message-content h4 {
  margin: 0 0 1rem 0;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
}

.message-content p {
  margin: 0;
  line-height: 1.7;
  color: #4b5563;
  white-space: pre-wrap;
}

.message-link {
  background: #ecfdf5;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #d1fae5;
}

.message-link h4 {
  margin: 0 0 0.5rem 0;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 600;
}

.message-link a {
  color: #C1121F;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  transition: all 0.2s ease;
}

.message-link a:hover {
  text-decoration: underline;
  color: #780000;
}

/* Navigation carrousel */
.carousel-navigation {
  display: flex;
  justify-content: space-between;
  padding: 0 24px 24px 24px;
  gap: 16px;
}

.carousel-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex: 1;
  font-size: 0.9rem;
}

.carousel-btn:not(:disabled):hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.carousel-prev {
  justify-content: flex-start;
}

.carousel-next {
  justify-content: flex-end;
}

/* Responsive pour les nouvelles fonctionnalités */
@media (max-width: 768px) {
  .carousel-modal-container {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }
  
  .carousel-header {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .carousel-content {
    padding: 16px;
  }
  
  .carousel-navigation {
    flex-direction: column;
    padding: 0 16px 16px 16px;
  }
  
  .message-count-badge {
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .card-logo-container::after {
    background-size: 100px 100px;
    opacity: 0.06;
  }
}
/* CSS complémentaire pour le système de pseudo amélioré */
/* À ajouter dans account-dashboard.css ou dans une balise <style> */

.edit-pseudo {
  position: relative;
  width: 100%;
}

.edit-pseudo input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.edit-pseudo input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-pseudo input[type="text"]:valid {
  border-color: #10b981;
}

.edit-pseudo input[type="text"]:invalid {
  border-color: #ef4444;
}

.edit-pseudo .btn {
  margin-top: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.edit-pseudo .btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
}

.edit-pseudo .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pseudo-validation-wrapper {
  margin-top: 8px;
}

.pseudo-feedback {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.pseudo-errors {
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}

.pseudo-counter {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pseudo-counter.over-limit {
  color: #ef4444;
}

.pseudo-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pseudo-status.valid {
  color: #10b981;
}

.pseudo-status.modified {
  color: #f59e0b;
}

.pseudo-status.error {
  color: #ef4444;
}

/* Animation pour les transitions */
.pseudo-validation-wrapper * {
  transition: color 0.2s ease;
}

/* Styles spécifiques pour le modal */
#pseudo-info {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .edit-pseudo {
    max-width: 100%;
  }
  
  .pseudo-feedback {
    flex-direction: column;
    gap: 4px;
  }
  
  .pseudo-counter {
    align-self: flex-end;
  }
}
.edit-bio {
  margin-top: 1rem; /* CHANGÉ: de 1.5rem à 1rem */
  padding-top: 0; /* CHANGÉ: de 1.5rem à 0 */
  border-top: none; /* CHANGÉ: supprimé */
  width: 100%; /* NOUVEAU */
}

.edit-bio label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.edit-bio textarea {
  width: 100%;
  padding: 12px 16px; /* CHANGÉ: harmonisé avec input */
  border: 2px solid #e5e7eb; /* CHANGÉ: même couleur */
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease; /* CHANGÉ: même transition */
  box-sizing: border-box; /* NOUVEAU */
  font-size: 14px; /* NOUVEAU */
}

.edit-bio textarea:focus {
  outline: none;
  border-color: #C1121F;
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.1); /* NOUVEAU */
}

.bio-feedback {
  display: flex;
  justify-content: flex-end;
  margin: 0.5rem 0;
}

.bio-counter {
  font-size: 12px;
  color: #666;
}
/* Boutons alignés à gauche */
.edit-pseudo > .btn,
.edit-bio > .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Section profile-actions */
.profile-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.profile-actions .btn {
  margin-top: 0;
}

/* Responsive pour les formulaires */
@media (max-width: 768px) {
  .edit-pseudo > .btn,
  .edit-bio > .btn {
    width: 100%;
    align-self: stretch;
  }
}