.page-badge {
  background: var(--gris-fond);
  padding-block: 64px 88px;
}

.page-badge__titre {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.page-badge__sous-titre {
  text-align: center;
  max-width: 560px;
  margin-inline: auto 48px;
  margin-bottom: 48px;
  color: var(--gris-texte);
}

.page-badge__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 980px;
  margin-inline: auto;
}

.page-badge__carte-formulaire {
  padding: 32px;
}

.page-badge__champ-titre {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.page-badge__nom {
  margin-top: 20px;
}

.page-badge__bouton-telecharger {
  margin-top: 20px;
}

.btn-badge__chargement {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-badge__chargement--visible {
  display: inline-flex;
}

.btn-badge__spinner {
  width: 18px;
  height: 18px;
  animation: spin-badge 0.9s linear infinite;
  flex-shrink: 0;
}

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

.page-badge__partage {
  margin-top: 28px;
}

.page-badge__partage-titre {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.page-badge__partage-liste {
  display: flex;
  gap: 12px;
}

.page-badge__partage-liste .pastille-reseau {
  width: 44px;
  height: 44px;
}

.page-badge__partage-liste svg {
  width: 20px;
  height: 20px;
}

/* Aperçu du badge */
.apercu-badge {
  text-align: center;
}

.apercu-badge__conteneur {
  position: relative;
  display: block;
  width: 100%;
}

.apercu-badge__template {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  pointer-events: none;
}

.apercu-badge__cadre-photo {
  position: absolute;
  top: 34%;
  left: 29.5%;
  width: 41%;
  height: 42.5%;
  z-index: 0;
  overflow: hidden;
}

.apercu-badge__cadre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.apercu-badge__cadre-photo svg {
  display: none;
}

.apercu-badge__nom {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 18px;
  margin-top: 14px;
  overflow-wrap: anywhere;
  color: var(--texte-fonce, #0a1a10);
}

.page-badge__legende-apercu {
  text-align: center;
  font-size: 13px;
  color: var(--gris-texte);
  margin-top: 16px;
}
