/* Variables CSS */
:root {
  --primary-color: #007b5e;
  --primary-light: #00a884;
  --primary-dark: #005a47;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --sidebar-width: 320px;
  --header-height: 48px;
  --toolbar-height: 48px;
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mode sombre */
[data-theme="dark"] {
  --primary-color: #00a884;
  --primary-light: #00d4a8;
  --primary-dark: #007b5e;
  --secondary-color: #2c3034;
  --text-color: #f8f9fa;
  --text-light: #adb5bd;
  --text-muted: #6c757d;
  --border-color: #495057;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
  padding-bottom: 0;
}

/* Mode sombre pour le body */
body.dark-mode {
  background-color: #1a1d21;
  color: var(--text-color);
}

/* En-tête */
.app-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 0;
  padding-bottom: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
}

.header-left, .header-center, .header-right {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.menu-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.header-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, #e0e0e0 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

.user-actions button {
  background: none;
  border: none;
  color: white;
  font-size: 1.125rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.user-actions button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.user-actions button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.main-container {
  display: flex;
  flex-direction: row;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-radius: 12px 12px 0 0;
  position: relative;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

@media (max-width: 900px) {
  .main-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-height: calc(100vh - var(--header-height));
    height: calc(100vh - var(--header-height));
  }
}

.sidebar {
  width: var(--sidebar-width);
  background-color: white;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: calc(100vh - var(--header-height));
  z-index: 900;
  transform: translateX(-100%);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.search-box {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  z-index: 1;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: var(--transition);
  background-color: var(--secondary-color);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 94, 0.1);
}

.search-clear {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
  display: none;
}

.search-clear:hover {
  background-color: var(--border-color);
  color: var(--text-color);
}

.search-clear.visible {
  display: block;
}

.chapters {
  padding: 0 1rem;
}

.chapter {
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--secondary-color);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius);
  user-select: none;
}

.chapter-header:hover {
  background-color: rgba(0, 123, 94, 0.1);
}

.chapter-header.active {
  background-color: var(--primary-color);
  color: white;
}

.chapter-header::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: var(--transition);
}

.chapter-header.collapsed::after {
  transform: rotate(-90deg);
}

.pages-list {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background-color: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.pages-list.show {
  max-height: 500px;
}

.pages-list li {
  list-style: none;
}

.pages-list li:last-child {
  border-bottom: none;
}

.pages-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.pages-list a:hover {
  background-color: rgba(0, 123, 94, 0.05);
  color: var(--primary-color);
}

.pages-list a.active {
  background-color: rgba(0, 123, 94, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 500;
}

.pages-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.pages-list a.active::before {
  background-color: var(--primary-color);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-footer .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-footer .btn:last-child {
  margin-bottom: 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  transition: var(--transition);
}

.main-content.sidebar-open {
  margin-left: var(--sidebar-width);
}

.toolbar {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.page-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  background-color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
}

.page-number {
  color: var(--primary-color);
  font-weight: 600;
}

.page-separator {
  color: var(--text-muted);
}

.total-pages {
  color: var(--text-light);
}

.tool-actions {
  display: flex;
  gap: 0.25rem;
}

.content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.slide-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  background-color: var(--secondary-color);
}

.image-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: white;
}

.slide-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.navigation-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.learning-tools {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background-color: white;
  border-top: 1px solid var(--border-color);
  justify-content: center;
  flex-wrap: wrap;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  min-width: 80px;
  min-height: 80px;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
}

.tool-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.tool-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tool-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.tool-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: white;
  box-shadow: var(--box-shadow-lg);
  z-index: 1100;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel.open {
  right: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--secondary-color);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.panel-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--text-color);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close:hover {
  background-color: var(--border-color);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state small {
  font-size: 0.875rem;
  line-height: 1.4;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.notification {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  max-width: 400px;
  z-index: 1200;
  display: none;
}

.notification-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--box-shadow-lg);
  border-left: 4px solid var(--info-color);
  animation: slideIn 0.3s ease-out;
}

.notification-content.success {
  border-left-color: var(--success-color);
}

.notification-content.error {
  border-left-color: var(--danger-color);
}

.notification-content.warning {
  border-left-color: var(--warning-color);
}

.notification-content.info {
  border-left-color: var(--info-color);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background-color: transparent;
  color: var(--text-color);
  min-height: 44px;
  min-width: 44px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-icon {
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.btn-block {
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: var(--transition);
  background-color: white;
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 94, 0.1);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Mode sombre */
body.dark-mode .sidebar {
  background-color: #2c3034;
  border-color: #495057;
}

body.dark-mode .toolbar {
  background-color: #2c3034;
  border-color: #495057;
}

body.dark-mode .learning-tools {
  background-color: #2c3034;
  border-color: #495057;
}

body.dark-mode .panel {
  background-color: #2c3034;
}

body.dark-mode .panel-header {
  background-color: #343a40;
  border-color: #495057;
}

body.dark-mode .form-control {
  background-color: #343a40;
  border-color: #495057;
  color: #f8f9fa;
}

body.dark-mode .btn {
  color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
    --header-height: 44px;
    --toolbar-height: 44px;
  }
  
  .app-header {
    padding: 0 0.5rem;
    height: var(--header-height);
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .progress-indicator {
    display: none;
  }
  
  .toolbar {
    padding: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .nav-buttons {
    order: 1;
    flex: 1;
  }
  
  .page-indicator {
    order: 2;
    font-size: 0.75rem;
  }
  
  .tool-actions {
    order: 3;
  }
  
  .btn-text {
    display: none;
  }
  
  .learning-tools {
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .tool-btn {
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
  }
  
  .tool-label {
    font-size: 0.625rem;
  }
  
  .panel {
    width: 100%;
    max-width: none;
  }
  
  .slide-container {
    padding: 0.5rem;
  }
  
  .navigation-controls {
    margin-top: 0.5rem;
  }
  
  .navigation-controls .btn {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0 0.5rem;
  }
  
  .header-title {
    font-size: 0.875rem;
  }
  
  .toolbar {
    padding: 0.25rem;
  }
  
  .page-indicator {
    display: none;
  }
  
  .learning-tools {
    padding: 0.25rem;
  }
  
  .tool-btn {
    min-width: 50px;
    min-height: 50px;
    padding: 0.25rem;
  }
  
  .tool-btn i {
    font-size: 1.25rem;
  }
  
  .tool-label {
    font-size: 0.5rem;
  }
}

/* Améliorations d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible pour l'accessibilité */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Améliorations pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
  .btn, .tool-btn, .menu-toggle, .panel-close {
    min-height: 48px;
    min-width: 48px;
  }
  
  .pages-list a {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
}

/* Support pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .slide-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Animations d'entrée pour les panneaux */
.panel {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Améliorations pour le mode hors ligne */
.offline-indicator {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--warning-color);
  color: #000;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1100;
  transform: translateY(-100%);
  transition: var(--transition);
}

.offline-indicator.show {
  transform: translateY(0);
}

/* Améliorations pour les notifications */
.notification-content {
  position: relative;
  overflow: hidden;
}

.notification-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  animation: progress 3s linear;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Styles pour le menu utilisateur et la déconnexion */
.dropdown-menu {
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0;
  min-width: 280px;
  margin-top: 8px;
}

.dropdown-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
}

.user-avatar {
  display: flex;
  justify-content: center;
}

.user-avatar i {
  color: rgba(255, 255, 255, 0.9);
}

.dropdown-item {
  padding: 12px 20px;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
  transform: translateX(4px);
}

.dropdown-item.text-danger:hover {
  background-color: #fee;
  color: #dc3545;
}

.dropdown-divider {
  margin: 8px 0;
  border-color: var(--border-color);
}

/* Animation pour le dropdown */
.dropdown-menu.show {
  animation: slideInDown 0.3s ease-out;
}

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

/* Styles pour l'état connecté/déconnecté */
.user-logged-in .user-menu-toggle {
  color: var(--success-color);
}

.user-logged-out .user-menu-toggle {
  color: var(--text-color);
}

/* Bouton de déconnexion avec animation */
#logout-btn {
  position: relative;
  overflow: hidden;
}

#logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
  transition: left 0.5s;
}

#logout-btn:hover::before {
  left: 100%;
}

/* Responsive pour le menu utilisateur */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 250px;
    right: 0;
    left: auto;
  }
  
  .dropdown-header {
    padding: 15px;
  }
  
  .dropdown-item {
    padding: 10px 15px;
  }
}

/* Dark mode pour le menu utilisateur */
.dark-mode .dropdown-menu {
  background-color: var(--dark-bg);
  border: 1px solid var(--dark-border);
}

.dark-mode .dropdown-item {
  color: var(--dark-text);
}

.dark-mode .dropdown-item:hover {
  background-color: var(--dark-hover);
}

.dark-mode .dropdown-divider {
  border-color: var(--dark-border);
}
