/* presentation.css */

/* Container général */
.pdf-container {
  position: relative;   /* pour placer le bouton au-dessus */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
  background: transparent; /* hérite du fond global */
  box-sizing: border-box;
}

/* Le PDF (embed) */
.pdf-container embed {
  width: 100%;
  max-width: 900px;    /* limite type feuille A4 */
  height: 90vh;        /* prend presque toute la hauteur écran */
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
}

/* Icône mobile (par défaut cachée sur desktop) */
.pdf-mobile-link {
  display: none;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  color: #333;
  text-decoration: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.pdf-mobile-link img {
  width: 32px;
  height: auto;
  display: block;
  margin: 0 auto 0.25rem;
}

/* Responsive : ≤768px */
@media (max-width: 768px) {
  .pdf-container embed {
    width: 100%;
    max-width: 320px;   /* vignette réduite */
    height: auto;
    aspect-ratio: 3/4;  /* garde un ratio type A4 */
  }
  .pdf-mobile-link {
    display: block;     /* bouton visible par-dessus */
  }
}