body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: #000;
  padding: 40px 20px;
  text-align: center;
}

.card-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: 100%;
  max-width: 610px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.logo-header {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.inner {
  padding: 30px;
}

.titre {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 10px;
}

.sous-titre {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

.sous-texte,
.description {
  font-size: 14px;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #000;
  text-align: left;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 30px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-offre {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffb03e;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 40px;
  cursor: pointer;
}

.conditions {
  font-size: 11px;
  margin-top: 20px;
  color: #777;
  text-align: justify;
  line-height: 1.5;
}

.conditions ul {
  text-align: justify;
  display: inline-block;
  margin: 5px auto;
  padding-left: 20px;
}

.mentions-legales {
  font-size: 11px;
  color: #999;
  text-align: justify;
  margin-top: 40px;
  line-height: 1.4;
}

#etat-attente,
#etat-resultat,
#etat-erreur {
  display: none;
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

/* debut*/

.qr-badge-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: nowrap;
}

.col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.qr-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.card-code {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
  text-align: center;
}

.qr-col #qr-code {
  margin: 0 auto;
}

.card-code {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.plus-sign {
  font-size: 48px;
  font-weight: bold;
  color: #ffb03e;
}

.badge-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge-frame {
  border: 3px solid #ffb03e;
  border-radius: 20px;
  padding: 10px;
  background-color: transparent;
  box-sizing: border-box;
  min-height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge-label {
  color: #ffb03e;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  max-width: 300px;
}

@media screen and (max-width: 600px) {
  
  .qr-badge-container {
    flex-direction: column;
    align-items: center;
  }

  .col {
    min-width: 300px;
    min-height: 150px;
  }

  .plus-col {
    min-height: auto;
    height: auto;
    padding: 0 0;
  }

  .badge-frame {
    min-width: 300px;
    min-height: 150px;
  }
}

.card-code {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.liens-actions {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

.liens-actions a {
  text-decoration: none;
  color: #444;
  margin: 0 5px;
}

.liens-actions a:hover {
  text-decoration: underline;
}

.sep {
  color: #aaa;
  margin: 0 3px;
}

.wallet-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 30px auto 0 auto;
  animation: spin 1s linear infinite;
}

.columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
  text-align: left;
  font-size: 14px;
}

.column {
  flex: 1;
}

.notes {
  text-align: right;
  font-size: 12px;
  font-style: italic;
  color: #666;
}

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

button {
  padding: 10px 20px;
  font-size: 15px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  margin: 0 auto;
}

button:hover {
  background: #444;
}

.no-print {
  display: block;
}

body.print-mode .no-print {
  display: none !important;
}

@media print {
  body {
    background: white;
    margin: 0;
    padding: 0;
    height: 100%;
  }

  body * {
    visibility: hidden;
  }

  #etat-resultat,
  #etat-resultat * {
    visibility: visible;
  }

  #etat-resultat {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    page-break-before: avoid;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .card-container {
    box-shadow: none;
    margin: 0 auto;
    height: 297pt;
    width: 600pt;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    page-break-inside: avoid;
    border-radius: 0 !important;
    overflow: visible;
  }

  .logo-header {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0 !important;
    object-fit: cover;
    max-height: 120pt;
    page-break-inside: avoid;
  }

  .inner {
    padding: 15pt 40pt 20pt 40pt;
    page-break-inside: avoid;
  }

  .no-print {
    display: none !important;
  }
}