/* ==============================================================================
   STYLES GESTION & DESIGN DES CARTES DE FIDÉLITÉ - GESTIVA
   ============================================================================== */

.badge-fidelity-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  font-size: 11px;
}

.badge-fidelity-suspended {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
  font-size: 11px;
}

.badge-fidelity-expired {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
  font-size: 11px;
}

/* ─── Aperçu Carte Commerciale Écran ─────────────────────────────────────────── */
.fidelity-card-duo {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.fidelity-card-badge {
  width: 336px;
  height: 212px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  background-color: #ffffff;
  flex-shrink: 0;
}

/* ─── BOÎTE DE LOGO À TAILLE FIXE GARANTIE (SANS FOND BLANC) ─────────────────── */
.fc-fixed-logo-box {
  width: auto;
  height: 30px;
  max-width: 105px;
  max-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.fc-fixed-logo-img {
  max-width: 100px !important;
  max-height: 28px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
}

.fc-fixed-logo-text {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── MODÈLE 1 : FREEPIK REWARDS & CADEAUX (INSPIRÉ MAQUETTE) ───────────────── */
.fc-model-freepik.fc-recto {
  display: flex;
  color: #ffffff;
  position: relative;
}

.fc-freepik-arc {
  position: absolute;
  right: -32px;
  top: -24px;
  bottom: -24px;
  width: 165px;
  border-radius: 50% 0 0 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -6px 0 16px rgba(0,0,0,0.18);
  z-index: 1;
  padding-left: 18px;
}

.fc-arc-gift-icon {
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.fc-arc-stars {
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.fc-arc-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.fc-freepik-content {
  position: relative;
  z-index: 2;
  width: 215px;
  height: 100%;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.fc-freepik-heading {
  line-height: 0.95;
  margin: 4px 0;
}

.fc-heading-l1 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.fc-heading-l2 {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.95;
}

.fc-freepik-subtitle {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.25;
  text-transform: uppercase;
}

.fc-freepik-holder {
  margin-top: 4px;
}

.fc-holder-client-name {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-holder-contact-name {
  font-size: 9px;
  opacity: 0.9;
}

.fc-freepik-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fc-website-label {
  opacity: 0.85;
  text-transform: uppercase;
}

.fc-exp-chip {
  background: rgba(255,255,255,0.22);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 8.5px;
}

/* Verso Freepik */
.fc-model-freepik.fc-verso {
  border: 1px solid #cbd5e1;
}

.fc-verso-container {
  height: 100%;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

.fc-verso-top-strip {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.fc-verso-barcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}

.fc-barcode-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.fc-barcode-wrapper svg {
  max-width: 95%;
  height: 30px;
}

.fc-barcode-num-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 3px;
}

.fc-verso-terms-box {
  text-align: center;
  padding: 2px 4px;
}

.fc-verso-terms-p {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin: 0;
}

.fc-verso-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

.fc-verso-company-brand {
  display: flex;
  flex-direction: column;
}

.fc-verso-company-brand strong {
  font-size: 10.5px;
  letter-spacing: 0.5px;
}

.fc-verso-company-brand span {
  font-size: 7.5px;
  color: #64748b;
  font-weight: 600;
}

/* ─── MODÈLE 2 & 3 (DUALTONE & PRESTIGE) ────────────────────────────────────── */
.fc-inner-dualtone, .fc-prestige-inner {
  height: 100%;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-sizing: border-box;
}

.fc-inner-dualtone-verso, .fc-prestige-vframe {
  height: 100%;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.fc-dualtone-header, .fc-prestige-top, .fc-dualtone-vheader, .fc-prestige-vhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fc-dualtone-title { font-size: 15px; font-weight: 900; margin: 0; }
.fc-dualtone-sub { font-size: 9px; font-weight: 600; }
.fc-dualtone-cardnum, .fc-prestige-num {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

.fc-dualtone-tag, .fc-prestige-seal {
  font-size: 8px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}
