/* --------------------------------------------------------- */
/* Styles généraux pour les PDF (catalogue Ledermann         */
/* --------------------------------------------------------- */

/* --------------------------------------------------------- */
/* Intro du bloc PDF (bandeau vert clair)                     */
/* --------------------------------------------------------- */
.pdf-intro {
  text-align: center;
  padding: 10px 14px;          
  margin: 12px 0 22px 0;       
  font-size: 1.2em;
  font-weight: 600;
  color: #064420;              
  letter-spacing: 0.6px;
  background-color: #E8F5E9;   
  border-radius: 6px;
  border: 1px solid #b5d8b5;   
  text-shadow: 1px 1px 2px #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}
.pdf-intro::before { content: "🌳 "; font-size: 1.3em; color: #064420; }

/* --------------------------------------------------------- */
/* Zone PDF (conteneur + viewer)                             */
/* --------------------------------------------------------- */
.pdf-container { margin: 20px auto; max-width: 900px; }

.pdf-viewer {
  width: 100%;
  background: #f9f9f9;
  border: 2px solid #ccc;
  border-radius: 5px;
  text-align: left;
  padding: 10px;
  box-sizing: border-box;
  overflow: auto;

  /* Firefox : couleurs contrastées */
  scrollbar-width: auto;
  scrollbar-color: #006400 #E8F5E9;
}

/* Chrome/Edge : barres épaisses */
.pdf-viewer::-webkit-scrollbar { height: 18px; width: 18px; }
.pdf-viewer::-webkit-scrollbar-thumb {
  background: #006400;
  border-radius: 9px;
  border: 3px solid #E8F5E9;
}
.pdf-viewer::-webkit-scrollbar-track { background: #E8F5E9; }

/* Wrapper du rendu PDF (zoom) */
.pdf-page { display: inline-block; transform-origin: top left; will-change: transform; }

/* Canvas PDF */
.pdf-viewer canvas { height: auto; display: block; margin: 0; max-width: 100%; }

/* --------------------------------------------------------- */
/* Boutons de navigation                                     */
/* --------------------------------------------------------- */
.pdf-controls {
  margin-top: 25px;
  margin-bottom: 20px;
  text-align: center;
}

.pdf-controls button {
  padding: 8px 14px;
  margin: 0 5px;
  border: 1px solid #888;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.pdf-controls button:hover:not(:disabled) { background-color: #e0e0e0; border-color: #666; }
.pdf-controls button:focus-visible { outline: 3px solid #2684ff; outline-offset: 2px; }
.pdf-controls button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Navigation */
.pdf-controls .prev,
.pdf-controls .next {
  min-width: 120px;
  background-color: #E8F5E9;
  color: #006400;
  border: 1px solid #006400;
}
.pdf-controls .prev:hover:not(:disabled),
.pdf-controls .next:hover:not(:disabled) { background-color: #d0ebd0; }

/* Zoom */
.pdf-controls .zoom-in,
.pdf-controls .zoom-out {
  background-color: #e6f0ff;
  color: #003366;
  border: 1px solid #003366;
}
.pdf-controls .zoom-in:hover:not(:disabled),
.pdf-controls .zoom-out:hover:not(:disabled) { background-color: #ccdfff; }

/* --------------------------------------------------------- */
/* Bouton de téléchargement en bas du viewer                 */
/* --------------------------------------------------------- */
.pdf-download {
  text-align: center;
  margin-top: 15px;
}

.pdf-download a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #E8F5E9;
  color: #006400;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.pdf-download a:hover { background-color: #d0ebd0; }
.pdf-download a:focus-visible { outline: 3px solid #2684ff; outline-offset: 2px; }

/* --------------------------------------------------------- */
/* Spinner de chargement                                     */
/* --------------------------------------------------------- */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* --------------------------------------------------------- */
/* Responsivité : Desktop vs Mobile                          */
/* --------------------------------------------------------- */
.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; text-align: center; margin-top: 25px; }
  .mobile-only a {
    display: block;
    padding: 15px 30px;
    background-color: #E8F5E9;
    color: #006400;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    max-width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color
