/* PandaCodeur : bouton de telechargement du sujet en PDF. */

.pc-pdf-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 22px;
}

.pc-fiche-barre .pc-pdf-zone { margin: 0; }

.pc-pdf-bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: #94350d;
  background: #fff;
  border: 1px solid #e2571e;
  border-radius: 9px;
  cursor: pointer;
  line-height: 1.4;
}

.pc-pdf-bouton::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  /* fleche vers un trait : telecharger */
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v8m0 0 3-3m-3 3L5 6M2 12v2h12v-2' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v8m0 0 3-3m-3 3L5 6M2 12v2h12v-2' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pc-pdf-bouton:hover:not(:disabled),
.pc-pdf-bouton:focus-visible {
  background: #fff5ef;
  border-color: #c44714;
}

.pc-pdf-bouton:disabled {
  opacity: .62;
  cursor: progress;
}

.pc-pdf-note {
  font-size: .82rem;
  color: #6b7f92;
}

/* La scene d'export ne doit jamais apparaitre a l'ecran ni a l'impression. */
.pc-pdf-scene { visibility: hidden; }

@media print {
  .pc-pdf-zone,
  .pc-pdf-scene { display: none !important; }
}

@media (max-width: 575.98px) {
  .pc-pdf-zone { gap: 7px 10px; }
  .pc-pdf-bouton { width: 100%; justify-content: center; }
  .pc-pdf-note { font-size: .78rem; }
}
