/* Variables globales */
:root {
  --primary-color: #2196F3;
  --secondary-color: #607D8B;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #F44336;
  --text-color: #2c3e50;
  --text-light: #6c757d;
  --background-color: #f5f5f5;
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition-speed: 0.3s;
}

/* Styles spécifiques au header */
.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  width: 40px;
  height: 40px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-main-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.header-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Styles pour les modules d'info */
.info-module {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.info-module-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-module-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 0.25rem;
}

/* Styles pour le menu */
.menu-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  position: relative;
  z-index: 25;
}

.menu-button-container {
  position: relative;
}

.menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border: none;
  background: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  transition: all 0.2s ease;
  border-radius: 6px;
  gap: 10px;
}

.menu-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.menu-button.active {
  background-color: var(--primary-color);
  color: white;
}

.menu-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.menu-button-text {
  flex: 1;
}

.menu-button-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.menu-button.active .menu-button-arrow {
  transform: rotate(180deg);
}

/* Styles pour les sous-menus */
.submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  background: white;
  margin-top: 2px;
}

.submenu.active {
  max-height: 500px;
}

.submenu-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px 15px 8px 49px;
  border: none;
  background: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
  transition: background-color 0.2s;
}

.submenu-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.submenu-item.active {
  background-color: rgba(33, 150, 243, 0.1);
  color: var(--primary-color);
}

.submenu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Styles pour les sections */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
  .app-sidebar {
    z-index: 1000;
  }
  
  .menu-container {
    background: white;
    height: 100%;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
    padding-left: 20px;
  }

  .submenu-item {
    padding: 8px 15px 8px 44px;
    background: transparent;
  }

  .menu-button.has-submenu .menu-button-arrow {
    opacity: 0.7;
  }

  .menu-button.has-submenu.active .menu-button-arrow {
    opacity: 1;
  }

  .sidebar-overlay {
    z-index: 999;
  }

  .header-title {
    font-size: 1rem;
  }

  .info-module {
    padding: 0.25rem 0.75rem;
    min-width: 70px;
  }

  .info-module-label {
    font-size: 0.7rem;
  }

  .info-module-value {
    font-size: 1rem;
  }
}