/* ========== certificate.css - Quiz ACF SRD ========== */
/* Style du Certificat - Optimisé pour format A4 Paysage (1000x700px) */
#certificate-template {
  display: none;
  width: 1000px;
  height: 700px;
  padding: 30px 50px;
  background: white;
  border: 18px double var(--primary);
  text-align: center;
  font-family: 'Georgia', serif;
  color: #333;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  /* Utilisation de Flexbox pour forcer tout le contenu à tenir dans 700px */
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Modal Plein Écran */
.modal-content.full-screen {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-cert-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #444;
  /* Fond contrasté pour l'aperçu */
  padding: 40px;
  overflow: auto;
}

/* Aperçu propre dans le modal */
.cert-preview-scale {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.6);
  transform-origin: center center;
}

@media (max-width: 1300px) {
  .cert-preview-scale {
    transform: scale(0.5);
  }
}

@media (max-width: 1000px) {
  .cert-preview-scale {
    transform: scale(0.35);
  }
}

@media (max-width: 600px) {
  .cert-preview-scale {
    transform: scale(0.2);
  }
}

.cert-header {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cert-body {
  font-size: 22px;
  line-height: 1.7;
}

.cert-name {
  font-size: 40px;
  font-weight: bold;
  color: var(--secondary);
  display: block;
  margin: 25px 0;
  border-bottom: 3px double #eee;
  padding-bottom: 15px;
}

.cert-footer {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-stamp {
  width: 130px;
  height: 130px;
  border: 5px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  font-weight: bold;
  color: var(--primary);
  font-size: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cert-logos {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.cert-logo {
  height: 60px;
  object-fit: contain;
}

.cert-badge {
  height: 100px;
  margin: 10px 0;
}
