/* ── Bouton télécharger en PDF — Equativ brand ──────────────────────────── */

/*
 * Couleurs Equativ :
 *   Orange accent  : #FE5000
 *   Dark / near-black : #0F1115
 *   Blanc          : #FFFFFF
 * Police : "Mona Sans", sans-serif (chargée par le thème)
 */

.pdf-download-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5em;
  padding:         0.6em 1.4em;
  font-family:     "Mona Sans", sans-serif;
  font-size:       0.8rem;
  font-weight:     700;
  line-height:     1;
  letter-spacing:  0.06em;
  text-transform:  uppercase;
  color:           #fff;
  background:      #FE5000;
  border:          2px solid #FE5000;
  border-radius:   0;           /* Equativ utilise des angles droits */
  cursor:          pointer;
  text-decoration: none;
  transition:      background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space:     nowrap;
}

.pdf-download-btn:hover,
.pdf-download-btn:focus-visible {
  background:   #0F1115;
  border-color: #0F1115;
  color:        #fff;
  outline:      none;
  box-shadow:   none;
}

.pdf-download-btn:active {
  background:   #2a2d33;
  border-color: #2a2d33;
}

/* État de chargement */
.pdf-download-btn--loading {
  opacity: 0.7;
  cursor:  not-allowed;
  pointer-events: none;
}

/* Spinner (CSS pur) */
.pdf-spinner {
  display:          inline-block;
  width:            13px;
  height:           13px;
  border:           2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius:    50%;
  animation:        pdf-spin 0.65s linear infinite;
  flex-shrink:      0;
}

@keyframes pdf-spin {
  to { transform: rotate(360deg); }
}

/* Icône SVG */
.pdf-download-btn svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/*
 * Utilitaire : ajoutez la classe .no-pdf sur n'importe quel élément
 * à exclure du PDF (ex. tableau interactif, vidéo, bloc CTA...).
 */
/* .no-pdf {} — exclusion gérée par le JS, pas de style visuel */
