
    :root {
      --primary: #316e8a;
      --bg-start: #f6f9fb;
      --bg-end: #f6f9fb;
      --surface: #ffffff;
      --card-bg: #ffffff;
      --text: #0b2233;
      --muted: #6c757d;
      --nav-bg: rgba(255,255,255,0.95);
      --shadow: 0 6px 18px rgba(13,71,89,0.07);
      --card-radius: 14px;
      --border-color: rgba(0,0,0,0.08);
    }

    html.dark {
      --primary: #2a9d8f;
      --bg-start: #0b1013;
      --bg-end: #0b1013;
      --surface: #0f1115;
      --card-bg: rgba(255,255,255,0.02);
      --text: #e6eef2;
      --muted: #9aa4ad;
      --nav-bg: rgba(255,255,255,0.03);
      --shadow: 0 6px 28px rgba(0,0,0,0.6);
      --border-color: rgba(255,255,255,0.06);
    }

    body {
      font-family: 'Roboto', system-ui, -apple-system, sans-serif;
      background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
      color: var(--text);
      min-height: 100vh;
      transition: background 300ms ease, color 300ms ease;
    }

    .navbar, .bg-light {
      background: var(--nav-bg) !important;
    }

    .navbar .navbar-brand, .navbar .nav-link {
      color: var(--text) !important;
    }

    .brand-icon { font-size: 1.7rem; color: var(--primary); }
    .brand-title { font-weight:600; line-height:1; }
    .brand-sub { font-size:0.75rem; color:var(--muted); }

    .sidebar {
      position: sticky;
      top: 80px;
      max-height: calc(100vh - 100px);
      overflow-y: auto;
      background: var(--card-bg);
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      padding: 1.5rem;
    }

    .search-box {
      position: relative;
      margin-bottom: 1rem;
    }

    .search-box input {
      width: 100%;
      padding: 0.5rem 0.75rem 0.5rem 2.5rem;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: var(--input-bg);
      color: var(--text);
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }

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

    .search-box i {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      pointer-events: none;
    }

    .search-box .clear-search {
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 0.25rem;
      display: none;
    }

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

    .sidebar::-webkit-scrollbar {
      width: 8px;
    }

    .sidebar::-webkit-scrollbar-track {
      background: rgba(0,0,0,0.05);
      border-radius: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 4px;
    }

    .doc-item {
      padding: 0.5rem 1rem;
      margin: 0.25rem 0;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      border-left: 3px solid transparent;
    }

    .doc-item:hover {
      background: rgba(49,110,138,0.1);
      border-left-color: var(--primary);
    }

    .doc-item.active {
      background: rgba(49,110,138,0.15);
      border-left-color: var(--primary);
      font-weight: 500;
    }

    .doc-item.folder {
      font-weight: 500;
      margin-top: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .doc-item.folder .folder-icon {
      transition: transform 0.2s ease;
    }

    .doc-item.folder.collapsed .folder-icon {
      transform: rotate(-90deg);
    }

    .doc-item.folder.collapsed + .folder-contents {
      display: none;
    }

    .folder-contents {
      display: block;
    }

    .doc-item.file {
      margin-left: 1rem;
      font-size: 0.95rem;
    }

    .doc-item.hidden {
      display: none;
    }

    .last-updated {
      font-size: 0.85rem;
      color: var(--muted);
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    #backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  will-change: transform, opacity;
  transform: translateZ(0);
}

#backToTop:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

    #backToTop:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }

    #backToTop.show {
      opacity: 1;
      visibility: visible;
    }

    .content-area {
      background: var(--card-bg);
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      padding: 2.5rem;
      min-height: 500px;
    }

    .markdown-body {
      color: var(--text);
    }

    .markdown-body h1, .markdown-body h2, .markdown-body h3 {
      color: var(--primary);
      margin-top: 1.5rem;
      margin-bottom: 1rem;
      border-bottom: 2px solid var(--border-color);
      padding-bottom: 0.5rem;
    }

    .markdown-body h1 { font-size: 2rem; }
    .markdown-body h2 { font-size: 1.5rem; }
    .markdown-body h3 { font-size: 1.25rem; }

    .markdown-body code {
      background: rgba(49,110,138,0.1);
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      font-size: 0.9em;
    }

    .markdown-body pre {
      background: #1e1e1e;
      border-radius: 8px;
      padding: 1rem;
      overflow-x: auto;
    }

    .markdown-body pre code {
      background: transparent;
      padding: 0;
    }

    .markdown-body blockquote {
      border-left: 4px solid var(--primary);
      padding-left: 1rem;
      margin-left: 0;
      color: var(--muted);
      font-style: italic;
    }

    .markdown-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0;
    }

    .markdown-body table th,
    .markdown-body table td {
      border: 1px solid var(--border-color);
      padding: 0.75rem;
      text-align: left;
    }

    .markdown-body table th {
      background: rgba(49,110,138,0.1);
      font-weight: 500;
    }

    .markdown-body ul, .markdown-body ol {
      padding-left: 2rem;
    }

    .markdown-body a {
      color: var(--primary);
      text-decoration: none;
    }

    .markdown-body a:hover {
      text-decoration: underline;
    }

    .markdown-body img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 1rem 0;
    }

    /* GitHub Alerts (Notes, Warnings, etc.) */
    .markdown-alert {
      padding: 0.75rem 1rem;
      margin: 1rem 0;
      border-left: 4px solid;
      border-radius: 6px;
      display: flex;
      align-items: start;
      gap: 0.75rem;
    }

    .markdown-alert-title {
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .markdown-alert-icon {
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    /* Note - Bleu */
    .markdown-alert.note {
      background-color: rgba(9, 105, 218, 0.1);
      border-left-color: #0969da;
    }
    html.dark .markdown-alert.note {
      background-color: rgba(31, 111, 235, 0.15);
      border-left-color: #1f6feb;
    }
    .markdown-alert.note .markdown-alert-title {
      color: #0969da;
    }
    html.dark .markdown-alert.note .markdown-alert-title {
      color: #1f6feb;
    }

    /* Tip - Vert */
    .markdown-alert.tip {
      background-color: rgba(26, 127, 55, 0.1);
      border-left-color: #1a7f37;
    }
    html.dark .markdown-alert.tip {
      background-color: rgba(46, 160, 67, 0.15);
      border-left-color: #2ea043;
    }
    .markdown-alert.tip .markdown-alert-title {
      color: #1a7f37;
    }
    html.dark .markdown-alert.tip .markdown-alert-title {
      color: #2ea043;
    }

    /* Important - Violet */
    .markdown-alert.important {
      background-color: rgba(130, 80, 223, 0.1);
      border-left-color: #8250df;
    }
    html.dark .markdown-alert.important {
      background-color: rgba(163, 113, 247, 0.15);
      border-left-color: #a371f7;
    }
    .markdown-alert.important .markdown-alert-title {
      color: #8250df;
    }
    html.dark .markdown-alert.important .markdown-alert-title {
      color: #a371f7;
    }

    /* Warning - Jaune/Orange */
    .markdown-alert.warning {
      background-color: rgba(154, 103, 0, 0.1);
      border-left-color: #9a6700;
    }
    html.dark .markdown-alert.warning {
      background-color: rgba(187, 128, 9, 0.15);
      border-left-color: #bb8009;
    }
    .markdown-alert.warning .markdown-alert-title {
      color: #9a6700;
    }
    html.dark .markdown-alert.warning .markdown-alert-title {
      color: #bb8009;
    }

    /* Caution - Rouge */
    .markdown-alert.caution {
      background-color: rgba(207, 34, 46, 0.1);
      border-left-color: #cf222e;
    }
    html.dark .markdown-alert.caution {
      background-color: rgba(248, 81, 73, 0.15);
      border-left-color: #f85149;
    }
    .markdown-alert.caution .markdown-alert-title {
      color: #cf222e;
    }
    html.dark .markdown-alert.caution .markdown-alert-title {
      color: #f85149;
    }

    .loading {
      text-align: center;
      padding: 3rem;
      color: var(--muted);
    }

    .breadcrumb {
      background: transparent;
      padding: 0;
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
    }

    .breadcrumb-item a {
      color: var(--primary);
      text-decoration: none;
    }

    .breadcrumb-item.active {
      color: var(--text);
    }

    html.dark .hljs {
      background: #1e1e1e;
    }

    /* Navbar auto-hide */
.navbar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  will-change: transform;
  transform: translateZ(0); /* Force l'accélération GPU */
  backface-visibility: hidden;
}

.navbar.hidden {
  transform: translate3d(0, -100%, 0);
}

    .sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: top;
  transform: translateZ(0);
}

.sidebar.navbar-hidden {
  top: 20px;
  max-height: calc(100vh - 40px);
}

    /* Barre de progression de lecture */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #2a9d8f);
  z-index: 9999;
  transition: width 0.05s linear; /* Réduit à 0.05s au lieu de 0.1s */
  will-change: width;
  transform: translateZ(0);
}

    /* Bouton copier sur les blocs de code */
    .code-block-wrapper {
      position: relative;
    }

    .copy-code-btn {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      padding: 0.4rem 0.8rem;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 6px;
      color: #fff;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      backdrop-filter: blur(10px);
    }

    .copy-code-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .copy-code-btn.copied {
      background: rgba(46, 160, 67, 0.3);
      border-color: #2ea043;
      color: #2ea043;
    }

    html.dark .copy-code-btn.copied {
      color: #7ee787;
    }

    /* Ancres sur les titres */
    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4 {
      position: relative;
      scroll-margin-top: 100px;
    }

    .markdown-body .header-anchor {
      position: absolute;
      left: -1.5rem;
      opacity: 0;
      color: var(--primary);
      text-decoration: none;
      transition: opacity 0.2s ease;
      font-size: 0.9em;
    }

    .markdown-body h1:hover .header-anchor,
    .markdown-body h2:hover .header-anchor,
    .markdown-body h3:hover .header-anchor,
    .markdown-body h4:hover .header-anchor {
      opacity: 1;
    }

    .markdown-body .header-anchor:hover {
      color: var(--primary);
      opacity: 1 !important;
    }
  /* Footer */
    footer { background: transparent; color: var(--muted); }
    html.dark footer {
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.05);
  }

    /* Styles additionnels */
    .navbar {
      transition: transform 0.3s ease-in-out;
      z-index: 1050;
    }
    .navbar.hidden {
      transform: translateY(-100%);
    }

    /* Mode plein écran */
    .fullscreen-mode .sidebar {
      display: none !important;
    }
    .fullscreen-mode .col-lg-3 {
      display: none !important;
    }
    .fullscreen-mode .col-lg-9 {
      width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
    }
    .fullscreen-mode .content-area {
      max-width: 900px;
      margin: 0 auto;
    }

    .fullscreen-toggle {
      position: fixed;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 1040;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 0 8px 8px 0;
      padding: 15px 10px;
      cursor: pointer;
      box-shadow: 2px 0 8px rgba(0,0,0,0.2);
      transition: all 0.3s ease;
      display: none;
    }
    .fullscreen-mode .fullscreen-toggle {
      display: block;
    }
    .fullscreen-toggle:hover {
      padding-left: 15px;
      background: #0056b3;
    }

    /* Résultats de recherche */
    .search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      max-height: 400px;
      overflow-y: auto;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      z-index: 1000;
      display: none;
      margin-top: 8px;
    }

    .dark .search-results {
      background: #2d3748;
      border-color: #4a5568;
    }

    .search-results.show {
      display: block;
    }

    .search-result-item {
      padding: 12px 16px;
      border-bottom: 1px solid #dee2e6;
      cursor: pointer;
      transition: background 0.2s;
      background: white;
    }

    .dark .search-result-item {
      background: #2d3748;
      border-bottom-color: #4a5568;
    }

    .search-result-item:hover {
      background: #f8f9fa;
    }

    .dark .search-result-item:hover {
      background: #374151;
    }
    .search-result-item:last-child {
      border-bottom: none;
    }
    .search-result-title {
      font-weight: 500;
      margin-bottom: 4px;
      color: #0d6efd;
    }

    .dark .search-result-title {
      color: #60a5fa;
    }

    .search-result-path {
      font-size: 0.85rem;
      color: #6c757d;
      margin-bottom: 4px;
    }

    .dark .search-result-path {
      color: #9ca3af;
    }

    .search-result-excerpt {
      font-size: 0.9rem;
      color: #212529;
    }

    .dark .search-result-excerpt {
      color: #e5e7eb;
    }
    .search-highlight {
      background: yellow;
      font-weight: 500;
      padding: 0 2px;
    }
    .dark .search-highlight {
      background: #ffa500;
      color: #000;
    }
    .search-no-results {
      padding: 20px;
      text-align: center;
      color: #6c757d;
      background: white;
    }

    .dark .search-no-results {
      color: #9ca3af;
      background: #2d3748;
    }

    .content-header-actions {
      border-bottom: 1px solid rgba(0,0,0,0.1);
      padding-bottom: 1rem;
      margin-bottom: 2rem;
    }
    .dark .content-header-actions {
      border-bottom-color: rgba(255,255,255,0.1);
    }

    .last-updated {
      font-size: 0.85rem;
      color: var(--muted);
    }

    /* Accessibilité taille texte */
    .text-zoom-controls {
      display: flex;
      gap: 5px;
    }

    /* Print styles */
    @media print {
      .navbar, .sidebar, .content-header-actions, #backToTop, #readingProgress, .btn, .search-box {
        display: none !important;
      }
      .col-lg-9 { width: 100% !important; }
      .content-area { border: none !important; box-shadow: none !important; }
    }

    /* Code block wrapper */
    .code-block-wrapper {
      position: relative;
    }

    /* Header anchor */
    .header-anchor {
      opacity: 0;
      margin-right: 0.5rem;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    h1:hover .header-anchor,
    h2:hover .header-anchor,
    h3:hover .header-anchor,
    h4:hover .header-anchor {
      opacity: 1;
    }

    /* Hidden class for search */
    .hidden {
      display: none !important;
    }

    /* MODE MOBILE - Sidebar glissante */
    @media (max-width: 991.98px) {
      .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1060;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        padding: 1rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
      }

      .dark .sidebar {
        background: #1a202c;
      }

      .sidebar.show {
        left: 0;
      }

      .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1055;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
      }

      .mobile-overlay.show {
        display: block;
        opacity: 1;
      }

      .mobile-menu-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--primary) !important;
        color: white !important;
        border: none;
        box-shadow: var(--shadow);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s ease;
      }

      .mobile-menu-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(49,110,138,0.3);
      }

      .mobile-menu-btn.active {
        background: #dc3545 !important;
      }

      .mobile-menu-btn i {
        color: white !important;
      }

      .sidebar-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: #212529;
        cursor: pointer;
        padding: 0.5rem;
        line-height: 1;
        z-index: 10;
      }

      .dark .sidebar-close {
        color: #f7fafc;
      }

      .sidebar-close:hover {
        color: #dc3545;
      }
    }

    @media (min-width: 992px) {
      .mobile-menu-btn,
      .mobile-overlay,
      .sidebar-close {
        display: none !important;
      }
    }

    /* Indicateur de raccourcis clavier */
    .keyboard-shortcuts-indicator {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: var(--card-radius);
      padding: 1rem;
      box-shadow: var(--shadow);
      z-index: 1040;
      max-width: 300px;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s ease;
      pointer-events: none;
    }

    .keyboard-shortcuts-indicator.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .keyboard-shortcuts-indicator h6 {
      margin-bottom: 0.75rem;
      color: var(--primary);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .keyboard-shortcut {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--border-color);
      font-size: 0.85rem;
      color: var(--text);
    }

    .keyboard-shortcut:last-child {
      border-bottom: none;
    }

    .keyboard-shortcut kbd {
      background: var(--primary);
      color: white;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 500;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .shortcuts-toggle {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: var(--primary) !important;
      color: white !important;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      z-index: 1039;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .shortcuts-toggle:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(49,110,138,0.3);
    }

    .shortcuts-toggle i {
      color: white !important;
    }

    @media (max-width: 991.98px) {
      .keyboard-shortcuts-indicator {
        display: none !important;
      }

      .shortcuts-toggle {
        display: none !important;
      }

      #backToTop {
        bottom: 90px !important;
        right: 20px;
      }
    }

    /* FOOTER - Style cohérent avec le site */
    #footer {
      background: transparent;
      color: var(--muted);
      margin-top: 4rem;
      border-top: 1px solid var(--border-color);
    }

    #footer footer {
      background: transparent !important;
      padding: 2rem 0 !important;
    }

    .footer-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 1.5rem;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
    }

    .footer-brand i {
      font-size: 1.5rem;
      color: var(--primary);
    }

    .footer-links {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .footer-links a {
      color: var(--text) !important;
      text-decoration: none !important;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow);
    }

    .footer-links a:hover {
      background: rgba(49,110,138,0.1);
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .footer-links a i {
      font-size: 1.1rem;
      color: var(--primary);
    }

    .footer-info {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
      flex: 1;
      min-width: 200px;
    }

    .footer-info small {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .footer-copyright {
      font-weight: 500;
      color: var(--text);
    }

    @media (max-width: 768px) {
      .footer-content {
        flex-direction: column;
        text-align: center;
      }

      .footer-links {
        flex-direction: column;
        width: 100%;
      }

      .footer-links a {
        width: 100%;
        justify-content: center;
      }

      .footer-info {
        order: -1;
      }
    }
/* Optimisations performances mobile */
@media (max-width: 991.98px) {
  /* Réduire les animations sur mobile */
  .sidebar {
    transition: left 0.25s ease-in-out;
  }
  
  .mobile-overlay {
    transition: opacity 0.25s ease-in-out;
  }
  
  /* Désactiver will-change sur mobile pour économiser la mémoire */
  .navbar,
  .sidebar,
  #readingProgress,
  #backToTop {
    will-change: auto;
  }
  
  /* Simplifier les ombres sur mobile */
  .sidebar,
  .content-area {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

/* Amélioration du scroll mobile */
@supports (-webkit-overflow-scrolling: touch) {
  .sidebar {
    -webkit-overflow-scrolling: touch;
  }
}
/* Désactiver temporairement les transitions pendant le scroll rapide */
.disable-transitions * {
  transition: none !important;
}