/* ================================================================
   FIDELITE MODULE — Styles v1.2
   Thème boucherie / viande
   Couleurs marque : #91c650 (vert), #406a3a (vert foncé), #e9182d (rouge)
   ================================================================ */

:root {
  --fid-brand-green: #91c650;
  --fid-brand-dark: #406a3a;
  --fid-brand-red: #e9182d;
  --fid-bronze: #CD7F32;
  --fid-argent: #8C8C8C;
  --fid-gold: #C5960C;
  --fid-diamant: #1A8A9E;
  --fid-radius: 12px;
  --fid-shadow: 0 2px 16px rgba(0,0,0,0.07);
  --fid-bg: #faf8f5;
  --fid-text: #2c2c2c;
  --fid-text-light: #777;
}


/* ================================================================
   1. HEADER BADGE (navbar — header-top + header-nav sticky)
   ================================================================ */

.fid-nav-badge-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Badge dans header-right (navbar — à côté du bouton recherche) */
#fid-nav-badge-top {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 8px;
}

/* Badge dans le megamenu sticky — à côté du search */
#fid-nav-badge-sticky {
  margin-right: 12px;
}

#fid-nav-badge-sticky .fid-badge {
  padding: 4px 10px;
  font-size: 11px;
}

/* Badge mobile dans le menu hamburger — sous la croix */
#fid-nav-badge-mobile {
  justify-content: center;
  padding: 12px 24px 16px;
}

/* Wrapper du badge rendu via hook nav_badge.tpl (#fid-header-badge) */
#fid-header-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  vertical-align: middle;
}

/* Sur mobile : on garde le badge visible et on le compacte.
   (avant on le cachait car la JS injectait un badge mobile dédié,
   plus le cas maintenant — le hook PHP affiche partout) */
@media (max-width: 991px) {
  #fid-header-badge {
    margin: 6px;
  }
  #fid-header-badge .fid-badge {
    padding: 4px 10px;
    font-size: 11px;
  }
  #fid-header-badge .fid-badge__pts {
    display: none;       /* gain de place sur très petit écran */
  }
  #fid-header-badge .fid-badge__dot {
    width: 8px;
    height: 8px;
  }
}

.fid-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  text-decoration: none;
  color: var(--fid-text);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fid-badge:hover {
  background: #fff;
  border-color: var(--fid-brand-green);
  box-shadow: 0 2px 10px rgba(145,198,80,0.2);
  text-decoration: none;
  color: var(--fid-text);
}

.fid-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fid-badge__label {
  font-weight: 700;
}

.fid-badge__pts {
  color: var(--fid-text-light);
  font-weight: 400;
  font-size: 11px;
}

.fid-badge--bronze  { border-color: var(--fid-bronze); }
.fid-badge--argent  { border-color: var(--fid-argent); }
.fid-badge--gold    { border-color: var(--fid-gold); }
.fid-badge--diamant { border-color: var(--fid-diamant); }


/* ================================================================
   2. CART WIDGET (displayShoppingCart)
   ================================================================ */

.fid-cart-widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--fid-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.fid-cart-widget--guest {
  text-align: center;
  padding: 14px;
  background: var(--fid-bg);
}

.fid-cart-guest-msg {
  margin: 0;
  font-size: 13px;
  color: var(--fid-text-light);
}

.fid-cart-guest-msg a {
  color: var(--fid-brand-red);
  font-weight: 600;
  text-decoration: underline;
}

.fid-cart-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.fid-cart-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--fid-text);
}

.fid-cart-body {
  margin-bottom: 12px;
}

.fid-cart-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.fid-tier-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fid-cart-points {
  margin-left: auto;
  color: var(--fid-text-light);
  font-size: 13px;
}

.fid-cart-simulated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fid-bg);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.fid-sim-label {
  color: var(--fid-text-light);
}

.fid-sim-value {
  color: var(--fid-brand-dark);
  font-size: 14px;
  font-weight: 700;
}

/* Progress bar */
.fid-progress-wrap {
  margin-bottom: 10px;
}

.fid-progress-bar {
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.fid-progress-bar--large {
  height: 14px;
  border-radius: 7px;
}

.fid-progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.5s ease;
  min-width: 2%;
}

.fid-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.fid-cart-remaining {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.fid-cart-remaining strong {
  color: var(--fid-brand-red);
}

.fid-cart-maxed {
  font-size: 13px;
  color: var(--fid-diamant);
  font-weight: 600;
  margin: 0;
}

.fid-cart-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--fid-text-light);
  text-decoration: none;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  transition: color 0.2s ease;
}

.fid-cart-link:hover {
  color: var(--fid-brand-green);
}


/* ================================================================
   3. ACCOUNT LINK (displayCustomerAccount)
   ================================================================ */

.fid-account-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


/* ================================================================
   3b. PRODUCT PAGE WIDGET (displayProductAdditionalInfo)
   ================================================================ */

.fid-product-widget {
  background: var(--fid-bg);
  border: 1px solid #e8e0d6;
  border-radius: var(--fid-radius);
  padding: 14px 18px;
  margin: 12px 0;
}

.fid-product-points {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fid-text);
  margin-bottom: 8px;
}

.fid-product-star {
  flex-shrink: 0;
}

.fid-product-points strong {
  color: var(--fid-brand-dark);
}

.fid-product-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fid-text-light);
  padding-top: 8px;
  border-top: 1px solid #e8e0d6;
}

.fid-product-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fid-product-tier-label {
  flex: 1;
}

.fid-product-tier-label strong {
  color: var(--fid-text);
}

.fid-product-tier-pts {
  color: #bbb;
  font-size: 11px;
}

.fid-product-link {
  font-size: 11px;
  color: var(--fid-brand-green);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.fid-product-link:hover {
  color: var(--fid-brand-dark);
}

.fid-product-guest {
  font-size: 12px;
  color: var(--fid-text-light);
  padding-top: 8px;
  border-top: 1px solid #e8e0d6;
}

.fid-product-guest a {
  color: var(--fid-brand-red);
  font-weight: 600;
  text-decoration: underline;
}


/* ================================================================
   3c. ORDER CONFIRMATION (displayOrderConfirmation)
   ================================================================ */

.fid-order-confirm {
  background: #fff;
  border: 2px solid var(--fid-brand-green);
  border-radius: var(--fid-radius);
  padding: 0;
  margin: 20px 0;
  overflow: hidden;
}

.fid-order-confirm__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f0f9e8, #fff);
  border-bottom: 1px solid #e8e0d6;
}

.fid-order-confirm__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--fid-brand-dark);
}

.fid-order-confirm__body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.fid-order-confirm__earned {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #edf7e1;
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 90px;
}

.fid-order-confirm__pts-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--fid-brand-dark);
  line-height: 1;
}

.fid-order-confirm__pts-label {
  font-size: 12px;
  color: var(--fid-brand-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.fid-order-confirm__info {
  flex: 1;
}

.fid-order-confirm__tier {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fid-text);
  margin-bottom: 6px;
}

.fid-order-confirm__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fid-order-confirm__total {
  color: var(--fid-text-light);
  font-size: 13px;
  margin-left: auto;
}

.fid-order-confirm__remaining {
  font-size: 13px;
  color: var(--fid-text-light);
}

.fid-order-confirm__remaining strong {
  color: var(--fid-brand-red);
}

.fid-order-confirm__link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--fid-bg);
  border-top: 1px solid #e8e0d6;
  font-size: 13px;
  font-weight: 600;
  color: var(--fid-brand-green);
  text-decoration: none;
  transition: background 0.2s;
}

.fid-order-confirm__link:hover {
  background: #edf7e1;
  color: var(--fid-brand-dark);
}

@media (max-width: 480px) {
  .fid-order-confirm__body {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .fid-order-confirm__tier {
    flex-wrap: wrap;
    justify-content: center;
  }

  .fid-order-confirm__total {
    margin-left: 0;
    width: 100%;
  }
}


/* ================================================================
   4. LOYALTY PAGE — RIZE LIGHT STYLE
   Inspiré de rize.fr/rize2/ (mode jour) :
   crème + vert sapin foncé + accents serif italique vert vif
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,700;1,700&display=swap');

.fid-page {
  --rz-bg:        #f6f8eb;             /* crème très clair (BG global) */
  --rz-bg-soft:   #eef3dc;             /* crème vert pâle (hero) */
  --rz-surface:   #ffffff;             /* cards blanches */
  --rz-surface-2: #fbfaf2;             /* surfaces secondaires */
  --rz-border:    #e2e6cf;             /* bordures subtiles */
  --rz-green-d:   #1f4520;             /* vert sapin foncé (titres, boutons) */
  --rz-green-d2:  #173312;             /* vert sapin très sombre */
  --rz-green:     #91c650;             /* vert tendre (accents italique, dots) */
  --rz-green-2:   #7bb83d;             /* vert vif (italic body) */
  --rz-text:      #1f3d1c;             /* texte principal vert sombre */
  --rz-text-mute: #6b7468;             /* texte secondaire gris-vert */
  --rz-text-soft: #4a5648;             /* texte intermédiaire */
  --rz-radius:    22px;                /* radius généreux */
  --rz-radius-sm: 14px;
  --rz-pill:      999px;
  --rz-serif:     "PT Serif", "Playfair Display", Georgia, serif;
  --rz-shadow:    0 1px 2px rgba(31, 69, 32, 0.04), 0 8px 24px rgba(31, 69, 32, 0.06);

  background: var(--rz-bg);
  color: var(--rz-text);
  padding: 48px 32px 64px;
  border-radius: var(--rz-radius);
  margin: 16px 0 32px;
}

/* --- Pill eyebrow ("PROGRAMME FIDÉLITÉ", "NOS PALIERS"...) — style "NOS UNIVERS" du site --- */
.fid-rize-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rz-green-d);
  background: var(--rz-bg-soft);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-pill);
  padding: 8px 20px;
  text-transform: uppercase;
}

/* --- HERO --- */
.fid-rize-hero {
  text-align: left;
  margin-bottom: 40px;
}

.fid-rize-hero__title {
  font-family: var(--rz-serif);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05;
  color: var(--rz-green-d2);
  margin: 18px 0 20px;
  letter-spacing: -0.01em;
}

.fid-rize-hero__title em {
  font-style: italic;
  color: var(--rz-green-2);
  font-weight: 700;
}

.fid-rize-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--rz-text-soft);
  margin: 0;
  max-width: 640px;
}

/* --- STAT BAR — bande vert sapin (style bande "1996, 10, 4000+" du site) --- */
.fid-rize-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(180deg, var(--rz-green-d) 0%, var(--rz-green-d2) 100%);
  border-radius: var(--rz-radius);
  padding: 40px 24px;
  margin: 0 0 56px;
  box-shadow: 0 8px 32px rgba(31, 69, 32, 0.15);
}

.fid-rize-stats__item {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.fid-rize-stats__item:last-child {
  border-right: none;
}

.fid-rize-stats__value {
  font-family: "Bebas Neue", "Oswald", "Roboto Condensed", var(--rz-serif);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fid-rize-stats__icon {
  font-family: -apple-system, "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 0.65em;
  line-height: 1;
}

.fid-rize-stats__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
}

/* --- PROGRESSION --- */
.fid-rize-progress {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  padding: 32px 36px;
  margin-bottom: 64px;
  box-shadow: var(--rz-shadow);
}

.fid-rize-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--rz-text);
  flex-wrap: wrap;
  gap: 12px;
}

.fid-rize-progress__current,
.fid-rize-progress__next {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--rz-green-d);
}

.fid-rize-progress__counter {
  color: var(--rz-text-mute);
  font-weight: 500;
  font-size: 13px;
}

.fid-rize-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.fid-rize-progress__bar {
  width: 100%;
  height: 12px;
  background: var(--rz-bg-soft);
  border-radius: var(--rz-pill);
  overflow: hidden;
}

.fid-rize-progress__fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.5s ease;
  min-width: 2%;
}

.fid-rize-progress__caption {
  margin: 18px 0 0;
  font-family: var(--rz-serif);
  font-size: 19px;
  color: var(--rz-text);
  line-height: 1.5;
}

.fid-rize-progress__caption em {
  font-style: italic;
  color: var(--rz-green-2);
  font-weight: 700;
}

/* --- MAXED out --- */
.fid-rize-maxed {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 64px;
  box-shadow: var(--rz-shadow);
}

.fid-rize-maxed__icon {
  font-size: 44px;
  display: block;
  margin-bottom: 14px;
}

.fid-rize-maxed__title {
  font-family: var(--rz-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--rz-green-d2);
  margin: 0 0 10px;
}

.fid-rize-maxed__title em {
  font-style: italic;
  color: var(--rz-green-2);
}

.fid-rize-maxed__sub {
  font-size: 15px;
  color: var(--rz-text-mute);
  margin: 0;
}

/* --- SECTIONS génériques --- */
.fid-rize-section {
  margin-bottom: 64px;
}

.fid-rize-section__title {
  font-family: var(--rz-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  color: var(--rz-green-d2);
  margin: 18px 0 32px;
  letter-spacing: -0.01em;
}

.fid-rize-section__title em {
  font-style: italic;
  color: var(--rz-green-2);
  font-weight: 700;
}

/* --- CARTES PALIERS (style cartes "univers" : blanc + ombre douce) --- */
.fid-rize-tiers {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fid-rize-tier {
  position: relative;
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  padding: 32px 24px 26px;
  display: flex !important;
  flex-direction: column;
  box-shadow: var(--rz-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fid-rize-tier:hover {
  border-color: rgba(145, 198, 80, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(31, 69, 32, 0.04), 0 16px 36px rgba(31, 69, 32, 0.10);
}

.fid-rize-tier.is-active {
  border-color: var(--rz-green-d);
  box-shadow: 0 0 0 2px var(--rz-green-d) inset, 0 12px 36px rgba(31, 69, 32, 0.12);
}

.fid-rize-tier__pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rz-green-d);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--rz-pill);
  white-space: nowrap;
}

.fid-rize-tier__head {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rz-border);
  margin-bottom: 18px;
}

.fid-rize-tier__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(31, 69, 32, 0.15);
}

.fid-rize-tier__icon {
  font-size: 32px;
  line-height: 1;
  font-family: -apple-system, "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.fid-rize-tier__title {
  font-family: var(--rz-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--rz-green-d2);
  margin-bottom: 4px;
}

.fid-rize-tier__range {
  font-size: 12px;
  color: var(--rz-text-mute);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.fid-rize-tier__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.fid-rize-tier__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rz-text-soft);
}

.fid-rize-tier__benefits li strong {
  color: var(--rz-green-d);
  font-weight: 700;
}

.fid-rize-tier__empty {
  font-style: italic;
  color: var(--rz-text-mute);
  text-align: center;
  justify-content: center !important;
}

.fid-rize-check {
  color: var(--rz-green-2);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- HISTORIQUE --- */
.fid-rize-history {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  overflow: hidden;
  box-shadow: var(--rz-shadow);
}

.fid-rize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--rz-text);
}

.fid-rize-table thead th {
  background: var(--rz-bg-soft);
  color: var(--rz-green-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--rz-border);
}

.fid-rize-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--rz-border);
  color: var(--rz-text);
}

.fid-rize-table tbody tr:last-child td {
  border-bottom: none;
}

.fid-rize-table tbody tr:hover {
  background: var(--rz-bg);
}

.fid-rize-table tfoot td {
  padding: 18px 22px;
  background: var(--rz-bg-soft);
  border-top: 2px solid var(--rz-border);
  color: var(--rz-green-d);
  font-size: 15px;
}

.fid-rize-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fid-rize-ref {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  color: var(--rz-green-d);
  font-weight: 600;
}

.fid-rize-pts {
  display: inline-block;
  background: var(--rz-bg-soft);
  color: var(--rz-green-d);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--rz-pill);
  letter-spacing: 0.02em;
}

.fid-rize-total {
  font-family: var(--rz-serif);
  color: var(--rz-green-2);
  font-size: 22px;
  font-weight: 700;
}

/* --- EMPTY STATE --- */
.fid-rize-empty {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--rz-shadow);
}

.fid-rize-empty__title {
  font-family: var(--rz-serif);
  font-size: 22px;
  color: var(--rz-green-d2);
  margin: 0 0 8px;
}

.fid-rize-empty__sub {
  color: var(--rz-text-mute);
  margin: 0 0 24px;
  font-size: 14px;
}

/* --- CTA bouton vert sapin (style "Drive →" du site) --- */
.fid-rize-cta {
  display: inline-block;
  background: var(--rz-green-d);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--rz-pill);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fid-rize-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 69, 32, 0.25);
  background: var(--rz-green-d2);
  color: #ffffff !important;
}

/* --- BREAKPOINTS --- */
@media (max-width: 1024px) {
  .fid-rize-tiers {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .fid-rize-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }
  .fid-rize-stats__item:nth-child(2) {
    border-right: none;
  }
  .fid-rize-stats__item:nth-child(-n+2) {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 600px) {
  .fid-page {
    padding: 32px 18px 40px;
    border-radius: var(--rz-radius-sm);
  }
  .fid-rize-tiers {
    grid-template-columns: 1fr !important;
  }
  .fid-rize-stats {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }
  .fid-rize-stats__item {
    border-right: none;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .fid-rize-stats__item:last-child {
    border-bottom: none;
  }
  .fid-rize-progress {
    padding: 24px 20px;
  }
  .fid-rize-progress__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .fid-rize-table thead {
    display: none;
  }
  .fid-rize-table tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rz-border);
  }
  .fid-rize-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 22px;
    border: none;
  }
  .fid-rize-table tbody td::before {
    content: attr(data-label);
    color: var(--rz-text-mute);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .fid-rize-table tfoot {
    display: none;
  }
}


/* ================================================================
   5. RESPONSIVE
   ================================================================ */

/* Sur très grands écrans (hors sidebar), passer en 4 colonnes */
@media (min-width: 1400px) {
  .fid-cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .fid-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .fid-hero__tier {
    font-size: 22px;
  }

  .fid-hero__badge {
    width: 64px;
    height: 64px;
  }

  .fid-hero__icon {
    font-size: 28px;
  }

  .fid-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .fid-card__header {
    padding: 20px 16px 16px;
  }

  .fid-badge__pts {
    display: none;
  }

  /* Table responsive */
  .fid-history-table thead {
    display: none;
  }

  .fid-history-table tbody tr {
    display: block;
    margin-bottom: 8px;
    border: 1px solid #e8e0d6;
    border-radius: 8px;
    overflow: hidden;
  }

  .fid-history-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid #f5f0ea;
  }

  .fid-history-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--fid-text-light);
    font-size: 11px;
    text-transform: uppercase;
  }

  .fid-history-table tfoot {
    display: none;
  }

  .fid-progress-container {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .fid-hero__badge {
    width: 56px;
    height: 56px;
  }

  .fid-hero__icon {
    font-size: 24px;
  }

  .fid-card__icon {
    font-size: 28px;
  }

  .fid-card__name {
    font-size: 16px;
  }

  .fid-section-title {
    font-size: 17px;
  }

}


/* ================================================================
   6. JAUGE CHECKOUT
   ================================================================ */

.fid-checkout-gauge {
  background: #fff;
  border: 1px solid #e8e0d6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fid-checkout-gauge__star {
  flex-shrink: 0;
}

.fid-checkout-gauge__info {
  flex: 1;
  min-width: 0;
}

.fid-checkout-gauge__tier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fid-text);
  margin-bottom: 4px;
}

.fid-checkout-gauge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fid-checkout-gauge__bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.fid-checkout-gauge__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.fid-checkout-gauge__remaining {
  font-size: 11px;
  color: var(--fid-text-light);
  margin-top: 3px;
}

.fid-checkout-gauge__remaining strong {
  color: var(--fid-brand-red);
}

.fid-checkout-gauge__link {
  font-size: 11px;
  color: var(--fid-brand-green);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.fid-checkout-gauge__link:hover {
  color: var(--fid-brand-dark);
}


/* ================================================================
   7. SIDEBAR CART WIDGET (slide-out)
   ================================================================ */

.fid-sidebar-widget {
  background: var(--fid-bg);
  border-top: 1px solid #e8e0d6;
  border-bottom: 1px solid #e8e0d6;
  margin: 0;
  padding: 15px;
  font-size: 13px;
}

.fid-sw-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ece6de;
}

.fid-sw-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--fid-text);
}

.fid-sw-link {
  margin-left: auto;
  font-size: 11px;
  color: var(--fid-brand-green);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.fid-sw-link:hover {
  color: var(--fid-brand-dark);
}

.fid-sw-tier {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.fid-sw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fid-sw-pts {
  margin-left: auto;
  color: var(--fid-text-light);
  font-size: 11px;
}

.fid-sw-sim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf7e1;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.fid-sw-sim-label {
  font-size: 11px;
  color: var(--fid-brand-dark);
}

.fid-sw-sim-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--fid-brand-dark);
}

.fid-sw-progress-wrap {
  margin-bottom: 6px;
}

.fid-sw-progress-bar {
  width: 100%;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.fid-sw-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 2%;
}

.fid-sw-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #aaa;
  margin-top: 3px;
}

.fid-sw-remaining {
  font-size: 11px;
  color: var(--fid-text-light);
}

.fid-sw-remaining strong {
  color: var(--fid-brand-red);
}

.fid-sw-maxed {
  font-size: 11px;
  color: var(--fid-brand-green);
  font-weight: 600;
}
