/* assets/css/account.css */
:root {
  /* Couleurs modernes */
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --dark: #14213d;
  --light: #f8f9fa;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  
  /* Effets */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --glow: 0 0 15px rgba(67, 97, 238, 0.4);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset moderne */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animation de fond futuriste */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(71, 112, 238, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(247, 37, 133, 0.1) 0%, transparent 30%);
  z-index: -2;
  animation: bgPulse 15s infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Conteneur principal avec effet 3D */
.account-container {
   padding-block: 2rem; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  perspective: 1000px;
}

@media (min-width: 992px) {
  .account-container {
    flex-direction: row;
  }
}

/* Sidebar - Design futuriste */
.account-sidebar {
  background: linear-gradient(160deg, var(--dark) 0%, #1a1a2e 100%);
  color: white;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.account-sidebar::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 48%,
    rgba(76, 201, 240, 0.1) 49%,
    rgba(76, 201, 240, 0.1) 51%,
    transparent 52%
  );
  animation: shine 8s infinite linear;
  transform: rotate(30deg);
}

@keyframes shine {
  0% { transform: translateY(-100%) rotate(30deg); }
  100% { transform: translateY(100%) rotate(30deg); }
}

/* Avatar holographique */
.account-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.3);
  animation: float 6s ease-in-out infinite, hologram 8s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes hologram {
  0% { box-shadow: 0 0 20px rgba(76, 201, 240, 0.3); }
  50% { box-shadow: 0 0 30px rgba(76, 201, 240, 0.6); }
  100% { box-shadow: 0 0 20px rgba(76, 201, 240, 0.3); }
}

.account-avatar i {
  font-size: 4rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(76, 201, 240, 0.7);
}

/* Menu animé */
.account-menu ul {
  list-style: none;
}

.account-menu li {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.6s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.account-menu li:nth-child(1) { animation-delay: 0.1s; }
.account-menu li:nth-child(2) { animation-delay: 0.2s; }
.account-menu li:nth-child(3) { animation-delay: 0.3s; }
.account-menu li:nth-child(4) { animation-delay: 0.4s; }

.account-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 50;
  position: relative;
  overflow: hidden;
}

.account-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: var(--transition);
}

.account-menu a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

.account-menu a:hover::before {
  left: 100%;
}

.account-menu .active a {
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.3), transparent);
  color: white;
  border-left: 3px solid var(--accent);
}

.account-menu i {
  margin-right: 0.8rem;
  font-size: 1.3rem;
}

/* Contenu principal */
.account-content {
  flex: 1;
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}

@media (min-width: 992px) {
  .account-content {
    border-radius: 20px 0 0 0;
    margin: 2rem 2rem 2rem ;
    transform: translateZ(20px);
  }
}

/* Titre avec effet de surlignage animé */
.account-content h1 {
  color: var(--dark);
  margin-bottom: 2rem;
  display: inline-flex;
  font-size: 2rem;
  position: relative;
}

.account-content h1 i {
  margin-right: 0.8rem;
  color: var(--primary);
}

.account-content h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  animation: underlineGrow 1s ease-out forwards;
}

@keyframes underlineGrow {
  from { width: 0; opacity: 0; }
  to { width: 70px; opacity: 1; }
}

/* Alertes animées */
.alert {
  padding: 1.2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  animation: alertEnter 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes alertEnter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid var(--success);
  color: var(--success);
}

.alert-error {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger);
  color: var(--danger);
}

/* Section profil - Carte 3D */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform-style: preserve-3d;
}

.profile-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.profile-info:hover {
  transform: translateZ(20px);
  box-shadow: var(--shadow-lg);
}

.profile-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: rainbow 8s linear infinite;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Items d'information */
.info-item {
  display: flex;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-item:nth-child(1) { animation-delay: 0.2s; }
.info-item:nth-child(2) { animation-delay: 0.3s; }
.info-item:nth-child(3) { animation-delay: 0.4s; }
.info-item:nth-child(4) { animation-delay: 0.5s; }

.info-label {
  flex: 0 0 180px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.info-label i {
  margin-right: 0.8rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.info-value {
  flex: 1;
  color: #555;
  font-size: 1.1rem;
}

/* Badges animés */
.verified-badge {
  background: var(--success);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-left: 0.8rem;
  display: inline-flex;
  align-items: center;
  animation: pulse 2s infinite;
}

.unverified-badge {
  background: var(--warning);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-left: 0.8rem;
  display: inline-flex;
  align-items: center;
  animation: shake 0.5s infinite alternate;
}

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

@keyframes shake {
  0% { transform: translateX(0); }
  100% { transform: translateX(-5px); }
}

/* Boutons futuristes */
.profile-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: btnEnter 0.6s ease-out forwards;
}

@keyframes btnEnter {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.btn:nth-child(1) { animation-delay: 0.6s; }
.btn:nth-child(2) { animation-delay: 0.7s; }

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
    }