/* =========================================================================
   a_pmi_trainingpackage — Front CSS
   Bootstrap 4 compatible
   ========================================================================= */

.pkg-account-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* Réduire l'espace sous le paragraphe intro */
.pkg-account-wrapper > p.text-muted {
  margin-bottom: 0.5rem !important;
}

.pkg-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.pkg-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
}

.pkg-card {
  border: 1px solid #e0eaf6;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,111,196,0.06);
  transition: box-shadow 0.2s;
  display: block !important;
  visibility: visible !important;
}

.pkg-card:hover {
  box-shadow: 0 4px 16px rgba(26,111,196,0.12);
}

.pkg-balance-block {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
  border: 1px solid #c8e0f7;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.pkg-balance-hours-main {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a6fc4;
  line-height: 1;
  letter-spacing: -1px;
}

.pkg-balance-hours-label {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pkg-balance-amount-sub {
  color: #6c757d;
  font-size: 0.8rem;
  margin-top: 6px;
}

.pkg-progress {
  height: 10px;
  border-radius: 5px;
  background: #d0e5f7;
  margin: 10px 0;
  overflow: hidden;
}

.pkg-progress-bar {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #1a6fc4, #4a9fd4);
  transition: width 0.5s ease;
}

.pkg-code-display {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  letter-spacing: 3px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 16px;
  display: inline-block;
  user-select: all;
  color: #343a40;
}

.pkg-reveal-btn {
  background: none;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 8px;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pkg-reveal-btn:hover {
  opacity: 1;
  border-color: #1a6fc4;
}

.pkg-history-body {
  display: none;
  margin-top: 0.75rem;
  animation: pkgFadeIn 0.2s ease;
}

@keyframes pkgFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pkg-history-toggle {
  color: #1a6fc4;
  cursor: pointer;
  background: #e8f4fd;
  border: 1px solid #c8e0f7;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}

.pkg-history-toggle:hover {
  background: #d0e8f9;
}

.pkg-empty {
  background: #e8f4fd;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
}

.pkg-empty-icon {
  font-size: 2.5rem;
  margin-right: 1.25rem;
}

body .pkg-cart-banner {
  background: #eef5fc !important;
  border-left: 4px solid #1a6fc4 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  margin-top: 1rem !important;
}

body .pkg-banner-body {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body .pkg-banner-text {
  flex: 1 !important;
}

body .pkg-banner-title {
  font-weight: 600 !important;
  color: #1a6fc4 !important;
  font-size: 0.95rem !important;
  margin: 0 0 6px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body .pkg-banner-check {
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  color: #28a745 !important;
}

body .pkg-banner-info {
  font-size: 0.82rem !important;
  color: #5a6a78 !important;
  margin: 0 !important;
}

body .pkg-banner-action {
  flex-shrink: 0 !important;
}
 
.pkg-empty-state {
  padding: 1.5rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
  margin-top: 0.5rem;
}

.pkg-attestation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4ff;
  border: 1px solid #c8d8f7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #3a4a6b;
}

.pkg-attestation-link {
  color: #1a6fc4;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pkg-attestation-link:hover {
  text-decoration: underline;
}