 /* ===== VIEWER PDF.JS ===== */
 #activite_connexePdfViewer {
     position: relative;
     z-index: 10;
     height: 100%;
     display: flex;
     flex-direction: column;
 }

 #activite_connexePdfCanvas {
     display: block;
     margin: 0 auto;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     border-radius: 4px;
     background: white;
     max-width: 100%;
     transition: transform 0.3s ease;
 }

 #activite_connexePageIndicator {
     min-width: 80px;
     text-align: center;
     font-size: 0.9rem;
     font-weight: 500;
     color: #495057;
     background: #f8f9fa;
     padding: 4px 12px;
     border-radius: 20px;
     border: 1px solid #e9ecef;
 }

 #activite_connexePdfViewer:not(.d-none) {
     animation: fadeIn 0.5s ease-out;
 }

 /* Effet de zoom sur le canvas */
 .pdf-canvas-wrapper.zoomed #activite_connexePdfCanvas {
     transform: scale(var(--zoom-scale, 1));
     transform-origin: top center;
 }


 /* ===== PLEIN ÉCRAN ===== */
 :fullscreen #activite_connexePdfCanvas,
 :-webkit-full-screen #activite_connexePdfCanvas,
 :-moz-full-screen #activite_connexePdfCanvas,
 :-ms-fullscreen #activite_connexePdfCanvas {
     max-width: 95vw;
     max-height: 95vh;
     margin: auto;
     box-shadow: none;
 }

 @media (max-width: 768px) {
     #activite_connexePageIndicator {
         min-width: 70px;
         font-size: 0.85rem;
     }
 }

 @media (max-width: 576px) {
     #activite_connexePageIndicator {
         min-width: 60px;
         font-size: 0.8rem;
         padding: 3px 10px;
     }

 }

 @media (max-width: 576px) {
     #activite_connexePageIndicator {
         min-width: 60px;
         font-size: 0.8rem;
         padding: 3px 10px;
     }
 }

 /* ===== MODE SOMBRE (optionnel) ===== */
 @media (prefers-color-scheme: dark) {
     #activite_connexePdfCanvas {
         background: white;
     }

     #activite_connexePageIndicator {
         background: #4a5568;
         color: #e2e8f0;
         border-color: #718096;
     }
 }