/* =============================================
   HDC Fidélité v2.0 — CSS
   ============================================= */

.hdc-fid-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #1e1e1e;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* HEADER */
.hdc-fid-header {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: #fff;
}
.hdc-fid-hello { font-size: 13px; opacity: .75; margin-bottom: .4rem; }
.hdc-fid-rank {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: .9rem;
}
.hdc-fid-pts-big {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
.hdc-fid-pts-big span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: .75;
  margin-top: .3rem;
}
.hdc-fid-pts-sub { font-size: 12px; opacity: .55; margin-top: .4rem; }

/* CARDS GÉNÉRIQUES */
.hdc-fid-card {
  background: #f9f9f7;
  border: 1px solid #e0ddd5;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

/* CTA MAGE */
.hdc-fid-mage-cta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-color: #e9c46a;
  background: linear-gradient(135deg, #fffdf4 0%, #fff9e6 100%);
}
.hdc-fid-mage-icon { font-size: 32px; flex-shrink: 0; margin-top: 2px; }
.hdc-fid-mage-body { flex: 1; }
.hdc-fid-mage-title { font-size: 14px; color: #5f5e5a; margin-bottom: .3rem; }
.hdc-fid-mage-sub { font-size: 13px; color: #1e1e1e; line-height: 1.5; }

/* BARRE DE PROGRESSION */
.hdc-fid-bar-track {
  height: 10px;
  background: #e0ddd5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: .4rem;
}
.hdc-fid-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #52b788, #2d6a4f);
  border-radius: 20px;
  transition: width .6s ease;
}
.hdc-fid-bar-gold {
  background: linear-gradient(90deg, #e9c46a, #f4a261);
}
.hdc-fid-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5f5e5a;
}
.hdc-fid-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: .6rem;
}

/* TITRE SECTION */
.hdc-fid-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2d6a4f;
  margin-bottom: .9rem;
}

/* PALIERS */
.hdc-fid-paliers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
@media (max-width: 500px) {
  .hdc-fid-paliers-grid { grid-template-columns: 1fr; }
}
.hdc-fid-palier {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.hdc-fid-palier.done {
  background: #d8f3dc;
  border-color: #52b788;
}
.hdc-fid-palier-max {
  border-color: #e9c46a;
  background: linear-gradient(135deg, #fffdf4, #fff9e6);
}
.hdc-fid-palier-max.done {
  background: linear-gradient(135deg, #d8f3dc, #c9f0dc);
  border-color: #2d6a4f;
}
.hdc-fid-palier-icon { font-size: 22px; margin-bottom: .3rem; }
.hdc-fid-palier-name { font-size: 12px; font-weight: 600; color: #1b4332; margin-bottom: .2rem; line-height: 1.3; }
.hdc-fid-palier-pts { font-size: 18px; font-weight: 700; color: #1b4332; margin-bottom: .2rem; }
.hdc-fid-palier-reward { font-size: 13px; font-weight: 700; color: #2d6a4f; margin-bottom: .5rem; }
.hdc-fid-palier-status { font-size: 12px; }
.hdc-fid-palier-status.done { color: #2d6a4f; font-weight: 600; }
.hdc-fid-palier-status.locked { color: #a0a09b; }

/* STAT PARRAINAGE */
.hdc-fid-parra-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #eef7f2;
  border-color: #52b788;
  margin-top: 1rem;
}
.hdc-fid-parra-icon { font-size: 26px; flex-shrink: 0; }
.hdc-fid-parra-stat strong { display: block; font-size: 14px; margin-bottom: .2rem; }
.hdc-fid-parra-stat p { font-size: 13px; color: #5f5e5a; margin: 0; }

/* COMMENT GAGNER */
.hdc-fid-howto-list { display: flex; flex-direction: column; gap: .85rem; }
.hdc-fid-howto-item { display: flex; align-items: flex-start; gap: .75rem; }
.hdc-fid-howto-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.hdc-fid-howto-item strong { display: block; font-size: 14px; margin-bottom: .15rem; }
.hdc-fid-howto-item p { font-size: 13px; color: #5f5e5a; margin: 0; line-height: 1.5; }

/* BOUTON */
.hdc-fid-btn {
  background: #e9c46a;
  color: #1b4332 !important;
  font-weight: 700;
  font-size: 14px;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background .15s;
  display: inline-block;
}
.hdc-fid-btn:hover { background: #f4a261; }
