/* ============================================================
   shop.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   129 règles, ~231 lignes.
   Cut & paste pur — aucune simplification ni reformat.
   ============================================================ */

#shopView { position: fixed; inset: 0; background: #080612; overflow: hidden; z-index: 4000; }

.shop-wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

.shop-hdr { text-align: center; padding: 0 0 32px; }

.shop-title-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }

.shop-star { color: #c9a96e; font-size: 1.1rem; animation: shopStarPulse 2.4s ease-in-out infinite; }

.shop-title { font-size: clamp(1.4rem,4vw,2rem); font-weight: 700; color: #e0d8f0; letter-spacing: .06em; margin: 0; }

.shop-subtitle { color: #7a6a9a; font-size: .88rem; margin: 6px 0 0; }

.shop-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 0; align-items: stretch; }

.shop-card {
  background: #0f0d1c; border: 1px solid #2a2040; border-top: 3px solid var(--pc);
  border-radius: 16px; padding: 18px 14px 16px; display: flex; flex-direction: column;
  align-items: center; position: relative;
  transition: transform .22s, box-shadow .22s;
}

.shop-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.45); }

.shop-card--best {
  background: linear-gradient(160deg,#110e20,#0e0c1c);
  box-shadow: 0 0 50px rgba(245,158,11,.2), 0 0 0 1px rgba(245,158,11,.15);
  border-top-width: 4px;
}

.shop-card--current { border-color: var(--pc); box-shadow: 0 0 20px color-mix(in srgb,var(--pc) 20%,transparent); }

/* Badges au-dessus de la carte. Stack en colonne-reverse depuis le bord
   supérieur : 1er badge (DOM order) = sur le bord (chevauche -14px),
   badges suivants = empilés au-dessus, tous hors de la carte.
   Évite le chevauchement avec la gemme quand il y a 2+ badges (cf. Mage). */
.shop-badges {
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  margin-bottom: -14px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.shop-badges > * { pointer-events: auto; }

.shop-badge { font-size: .68rem; font-weight: 700; padding: 3px 11px; border-radius: 20px; letter-spacing: .04em; white-space: nowrap; }

.shop-badge--best { background: linear-gradient(135deg,#f59e0b,#d97706); color: #1a0e00; }

.shop-badge--promo { background: linear-gradient(135deg,#7c3aed,#5b21b6); color: #fff; }

/* Étiquette "Meilleure offre" placée à l'intérieur de la carte (avant le CTA),
   pour éviter l'ambiguïté d'un badge flottant entre 2 rangées. */
.shop-best-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px auto 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(217,119,6,0.10));
  border: 1px solid rgba(245,158,11,0.45);
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245,158,11,0.35);
  white-space: nowrap;
}

.shop-gem-wrap { width: 60px; height: 60px; margin: 6px 0 6px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 12px var(--pc)); }

.shop-gem { width: 100%; height: 100%; object-fit: contain; animation: shopGemFloat 3.5s ease-in-out infinite; }

.shop-gem-fb { font-size: 2.8rem; color: var(--pc); align-items: center; justify-content: center; }

.shop-plan-name { font-size: 1rem; font-weight: 700; color: var(--pc); letter-spacing: .07em; margin-bottom: 2px; text-align: center; }

.shop-plan-tagline { font-size: .68rem; color: #4a4060; text-align: center; margin-bottom: 8px; min-height: 1.8em; line-height: 1.3; }

.shop-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 1px; }

.shop-price-amount { font-size: 1.65rem; font-weight: 800; color: #e0d8f0; line-height: 1; }

.shop-price-period { font-size: .75rem; color: #7a6a9a; }

.shop-price-sub { font-size: .7rem; color: #4a4060; min-height: 1.2em; text-align: center; margin-bottom: 2px; }

.shop-price-save { font-size: .7rem; color: #86efac; font-weight: 600; min-height: 1.2em; text-align: center; margin-bottom: 10px; }

.shop-features { list-style: none; padding: 0; margin: 6px 0 12px; width: 100%; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.shop-feat { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #c0b8d8; }

.shop-feat--no { color: #3a3050; }

.shop-feat-icon { flex-shrink: 0; font-size: .65rem; width: 15px; text-align: center; }

.shop-feat-icon.ok { color: var(--pc); }

.shop-feat-icon.no { color: #2a2040; }

.shop-feat { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }

.shop-feat-row { display: flex; align-items: center; gap: 8px; }

.shop-feat-sub { padding-left: 23px; font-size: .65rem; color: #6a5d8a; line-height: 1.35; font-style: italic; }

.shop-tip-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 5px; cursor: pointer; }

.shop-tip-q { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #5a5070; color: #7a6a9a; font-size: .58rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; user-select: none; }

.shop-tip-box { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1c1830; border: 1px solid #3a3050; border-radius: 10px; padding: 10px 13px; font-size: .7rem; color: #b0a8c8; width: 210px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 200; text-align: left; line-height: 1.5; box-shadow: 0 8px 32px rgba(0,0,0,.5); }

.shop-tip-box.tip-on { opacity: 1; pointer-events: auto; }

.shop-cta { width: 100%; padding: 11px 16px; border-radius: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: all .2s; border: 1px solid var(--pc); background: transparent; color: var(--pc); }

.shop-cta:not(:disabled):hover { background: var(--pc); color: #080612; }

.shop-cta--best { background: linear-gradient(135deg,#f59e0b,#d97706); border-color: transparent; color: #1a0e00; box-shadow: 0 4px 22px rgba(245,158,11,.3); }

.shop-cta--best:not(:disabled):hover { box-shadow: 0 6px 32px rgba(245,158,11,.5); transform: translateY(-1px); background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #1a0e00; }

.shop-cta--current, .shop-cta:disabled { opacity: .45; cursor: not-allowed; }

.shop-active-lbl { margin-top: 7px; font-size: .68rem; color: var(--pc); font-weight: 600; }

.shop-foot { margin-top: 12px; text-align: center; border-top: 1px solid #1a1830; padding-top: 10px; }

.shop-foot-note { font-size: .72rem; color: #4a4060; max-width: 640px; margin: 0 auto 8px; line-height: 1.6; }

.shop-foot-legal { font-size: .65rem; color: #2a2040; }

.shop-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(6px); }

.shop-modal { background: #0f0d1c; border: 1px solid #3a3050; border-radius: 22px; padding: 44px 36px; max-width: 360px; width: 90%; text-align: center; animation: shopModalIn .25s ease; }

.shop-modal-moon { font-size: 3rem; margin-bottom: 14px; }

.shop-modal-h { color: #e0d8f0; font-size: 1.25rem; margin: 0 0 12px; }

.shop-modal-p { color: #7a6a9a; font-size: .84rem; line-height: 1.65; margin: 0 0 26px; }

.shop-back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 5001;
  background: rgba(8,6,18,.85);
  backdrop-filter: blur(8px);
  border: 1px solid #3a3050;
  color: #7a6a9a;
  font-size: .82rem;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .03em;
}

.shop-back-btn:hover { border-color: #a78bfa; color: #a78bfa; background: rgba(167,139,250,.08); }

.shop-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 88px; }

.shop-tab { padding: 8px 28px; border-radius: 20px; border: 1px solid #3a3050; background: transparent; color: #7a6a9a; font-size: .82rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; transition: all .2s; }

.shop-tab--active { background: #1c1830; border-color: #a78bfa; color: #e0d8f0; }

.shop-tab:not(.shop-tab--active):hover { border-color: #5a5070; color: #b0a8c8; }

.shop-pack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 720px; margin: 0 auto; }

.shop-pack-grid > .shop-ad-section { grid-column: 1 / -1; margin: 0 0 6px; }

.shop-pack-card {
  background: #0f0d1c; border: 1px solid #2a2040; border-top: 3px solid var(--pc);
  border-radius: 16px; padding: 32px 16px 22px; display: flex; flex-direction: column;
  align-items: center; position: relative; transition: transform .22s, box-shadow .22s;
}

.shop-pack-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.4); }

.shop-pack-card--popular {
  box-shadow: 0 0 40px rgba(167,139,250,.18), 0 0 0 1px rgba(167,139,250,.2);
  border-top-width: 4px;
}

.shop-ad-section {
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
}

.shop-ad-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 720px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(52,211,153,.10), rgba(16,185,129,.04) 60%, #0f0d1c 100%);
  border: 1px solid rgba(52,211,153,.28);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(52,211,153,.10), 0 6px 20px rgba(0,0,0,.3);
}

.shop-ad-banner-icon {
  font-size: 2.3rem;
  filter: drop-shadow(0 0 12px rgba(52,211,153,.55));
  flex-shrink: 0;
}

.shop-ad-banner-body { flex: 1; min-width: 0; }

.shop-ad-banner-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #d1fae5;
  margin-bottom: 4px;
}

.shop-ad-banner-title .shop-ad-amount {
  font-size: 1.45rem;
  color: #34d399;
  font-weight: 800;
}

.shop-ad-banner-title .shop-ad-unit { font-weight: 600; }

.shop-ad-banner-sub {
  font-size: .82rem;
  color: #9ca8c0;
  margin-bottom: 4px;
}

.shop-ad-banner-note {
  font-size: .72rem;
  color: #6b7280;
  line-height: 1.4;
}

.shop-ad-banner-cta { flex-shrink: 0; }

.shop-ad-banner-cta .shop-cta {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #052e1c;
  font-weight: 700;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .88rem;
  white-space: nowrap;
}

.shop-ad-banner-cta .shop-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(52,211,153,.28);
}

.shop-ad-banner-cta .shop-cta:disabled {
  background: #1f2937;
  color: #6b7280;
  cursor: not-allowed;
  opacity: .85;
}

.shop-ad-banner--disabled {
  opacity: .75;
}

.shop-ad-banner--disabled .shop-ad-banner-icon {
  filter: grayscale(.4) drop-shadow(0 0 8px rgba(107,114,128,.3));
}

.shop-gem-icon { font-size: 2.8rem; color: var(--pc); filter: drop-shadow(0 0 12px var(--pc)); animation: shopGemFloat 3.5s ease-in-out infinite; }

.shop-android-notice { text-align: center; color: #7c6a9a; font-size: .78rem; letter-spacing: .04em; padding: 18px 0 4px; }

.shop-pack-gem { font-size: 2.4rem; color: var(--pc); margin: 4px 0 12px; filter: drop-shadow(0 0 10px var(--pc)); animation: shopGemFloat 3.5s ease-in-out infinite; }

.shop-pack-amount { font-size: 2.6rem; font-weight: 800; color: #e0d8f0; line-height: 1; }

.shop-pack-unit { font-size: .75rem; color: #7a6a9a; letter-spacing: .06em; margin: 4px 0 16px; }

.shop-pack-price { font-size: 1.6rem; font-weight: 700; color: var(--pc); margin-bottom: 6px; }

.shop-pack-note { font-size: .68rem; color: #4a4060; text-align: center; margin-bottom: 18px; line-height: 1.5; }

@media (max-width: 860px) {
    #shopView { overflow-y: auto; }
  .shop-wrap { justify-content: flex-start; height: auto; min-height: 100%; padding: 64px 12px 40px; }
  .shop-hdr { padding: 0 0 8px; }
  .shop-title { font-size: 1.3rem; }
  .shop-subtitle { font-size: .78rem; }
  /* grid-auto-rows: 1fr → toutes les lignes ont la même hauteur (sinon Adepte/Mage
     paraissent plus courts que Voyageur/Initié à cause du nombre de features). */
  .shop-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 1fr; gap: 10px; }
  .shop-card { padding: 14px 10px 12px; border-radius: 12px; }
  .shop-gem-wrap { width: 44px; height: 44px; margin: 4px 0 4px; }
  .shop-price-amount { font-size: 1.35rem; }
  .shop-feat { font-size: .72rem; gap: 6px; }
  .shop-cta { padding: 9px 10px; font-size: .75rem; }
  .shop-foot { margin-top: 8px; }
  .shop-foot-note, .shop-foot-legal { display: none; }
  .shop-pack-grid--with-ad { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .shop-pack-grid--with-ad > .shop-ad-section { grid-column: auto; margin: 0; }
  .shop-pack-grid:not(.shop-pack-grid--with-ad) { grid-template-columns: repeat(2,1fr); gap: 10px; }

  /* Pub : même rythme vertical que les packs pour grille 2x2 homogène */
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner {
      flex-direction: column;
      text-align: center;
      padding: 26px 12px 18px;
      gap: 0;
      height: 100%;
      box-sizing: border-box;
      justify-content: flex-start;
      align-items: center;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-icon {
      font-size: 2.4rem;
      margin: 4px 0 12px;
      line-height: 1;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-body {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 0 0 auto;
      width: 100%;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-title {
      font-size: 2rem;
      line-height: 1;
      font-weight: 800;
      color: #e0d8f0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-title .shop-ad-amount {
      font-size: 2rem;
      line-height: 1;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-title .shop-ad-unit {
      font-size: .75rem;
      color: #7a6a9a;
      letter-spacing: .06em;
      font-weight: 600;
      margin: 4px 0 0;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-sub {
      font-size: .82rem;
      font-weight: 700;
      color: #4ade80;
      margin: 14px 0 6px;
      line-height: 1.35;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-note {
      font-size: .68rem;
      color: #4a4060;
      text-align: center;
      margin: 0 0 14px;
      line-height: 1.5;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-cta {
      width: 100%;
    }
  .shop-pack-grid--with-ad > .shop-ad-section .shop-ad-banner-cta .shop-cta { width: 100%; padding: 11px 14px; font-size: .85rem; }
  .shop-pack-card { padding: 26px 12px 18px; }
  .shop-pack-amount { font-size: 2rem; }
  .shop-pack-price { font-size: 1.3rem; }
  .shop-tabs { margin-bottom: 56px; }
}

@media (max-width: 768px) {
  .shop-tip-wrap { display: none; }
}

@media (min-width: 861px) and (max-width: 1400px) {
  .shop-wrap { max-width: 760px; justify-content: flex-start; padding-top: 80px; padding-bottom: 40px; }
  .shop-hdr { padding: 0 0 28px; }
  .shop-grid { gap: 10px; }
  .shop-card { padding: 16px 12px 14px; }
  .shop-gem-wrap { width: 50px; height: 50px; }
  .shop-price-amount { font-size: 1.5rem; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .shop-wrap { padding: 80px 60px 40px !important; }
  .shop-hdr { padding: 0 0 28px !important; }
}

@media (max-width: 700px) {
  .shop-ad-banner {
      flex-direction: column;
      text-align: center;
      padding: 16px 14px;
      gap: 10px;
    }
  .shop-ad-banner-cta { width: 100%; }
  .shop-ad-banner-cta .shop-cta { width: 100%; padding: 12px; font-size: .92rem; }
  .shop-ad-banner-title { font-size: 1rem; }
  .shop-ad-banner-title .shop-ad-amount { font-size: 1.3rem; }
}


/* ============================================================
   BOUTIQUE — Harmonisation gold premium
   2026-05-17
   ============================================================ */
.shop-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.shop-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-weight: 500 !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.3) !important;
  margin: 0 !important;
}
.shop-star {
  color: #d4af37 !important;
  font-size: 1.1rem;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}
.shop-subtitle {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(212, 175, 55, 0.7) !important;
  font-style: italic !important;
  font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  margin-bottom: 18px !important;
}

/* === Onglets Abonnements / Recharges === */
.shop-tab {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  color: rgba(212, 175, 55, 0.7) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 9px 28px !important;
  border-radius: 999px !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s !important;
}
.shop-tab:not(.shop-tab--active):hover {
  border-color: rgba(212, 175, 55, 0.6) !important;
  color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.05) !important;
}
.shop-tab--active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08)) !important;
  border-color: #d4af37 !important;
  color: #f0d97a !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}

/* === Cards === */
.shop-card {
  background: rgba(2, 6, 23, 0.65) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  border-radius: 14px !important;
}
.shop-card--best {
  border: 1px solid rgba(212, 175, 55, 0.7) !important;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.22), 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}
.shop-card--current {
  border-color: rgba(74, 222, 128, 0.55) !important;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.15) !important;
}

/* === Badges -20% / -30% === */
.shop-badge--best {
  background: linear-gradient(135deg, #f0d97a, #d4af37) !important;
  color: #1a0e00 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
}
.shop-badge--promo {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), rgba(184, 146, 58, 0.45)) !important;
  color: #1a0e00 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
  border: 1px solid rgba(212, 175, 55, 0.7);
}

/* === Plan name + tagline === */
.shop-plan-name {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: #d4af37 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
.shop-plan-tagline {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(212, 175, 55, 0.65) !important;
  font-style: italic !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 8px !important;
}

/* === Buttons Souscrire === */
.shop-cta {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s !important;
}
.shop-cta:not(:disabled):hover {
  border-color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.08) !important;
  color: #f0d97a !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25) !important;
}
.shop-cta--best {
  background: linear-gradient(135deg, #d4af37, #b8923a) !important;
  border-color: #d4af37 !important;
  color: #1a0e00 !important;
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.32) !important;
}
.shop-cta--best:not(:disabled):hover {
  background: linear-gradient(135deg, #f0d97a, #d4af37) !important;
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.45) !important;
  color: #1a0e00 !important;
  transform: translateY(-1px) !important;
}
.shop-cta--manage {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  color: rgba(212, 175, 55, 0.85) !important;
}
.shop-cta--manage:hover {
  border-color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.06) !important;
  color: #f0d97a !important;
}
.shop-cta--current {
  opacity: 0.55 !important;
}

/* === Sparkle icons sous les badges (rendus via SVG/HTML colorés inline) === */
.shop-card .shop-plan-icon,
.shop-card svg[stroke="#a78bfa"],
.shop-card svg[stroke="#3b82f6"],
.shop-card svg[fill="#a78bfa"],
.shop-card svg[fill="#3b82f6"] {
  color: #d4af37 !important;
  stroke: #d4af37 !important;
  fill: #d4af37 !important;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

/* Test : uniformiser Mage et Adepte (Mage retombe en outline or comme les autres) */
.shop-cta--best {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  color: #d4af37 !important;
  box-shadow: none !important;
}
.shop-cta--best:not(:disabled):hover {
  background: rgba(212, 175, 55, 0.08) !important;
  border-color: #d4af37 !important;
  color: #f0d97a !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25) !important;
  transform: none !important;
}

/* Badge -20% : opacité matchée à -30% */
.shop-badge--promo {
  background: linear-gradient(135deg, #d4af37, #b8923a) !important;
  color: #1a0e00 !important;
  border: none !important;
  opacity: 0.85;
}

/* Badge -20% Adepte = identique au badge -30% Mage */
.shop-badge--promo {
  background: linear-gradient(135deg, #f0d97a, #d4af37) !important;
  color: #1a0e00 !important;
  border: none !important;
  opacity: 1 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.06em !important;
}

/* Bouton Retour shop : passe en gold */
.shop-back-btn {
  background: rgba(2, 6, 23, 0.65) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  color: #d4af37 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  letter-spacing: 0.1em !important;
  padding: 7px 18px !important;
  border-radius: 999px !important;
}
.shop-back-btn:hover {
  border-color: #d4af37 !important;
  color: #f0d97a !important;
  background: rgba(212, 175, 55, 0.08) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}

/* ======================================================
   FOLD 5 / écrans ≤400px — Boutique
   ====================================================== */
@media (max-width: 400px) {
  /* Grille abonnements : 2 → 1 colonne */
  .shop-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Grille packs arcanes : pareil */
  .shop-pack-grid,
  .shop-pack-grid--with-ad {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .shop-pack-grid:not(.shop-pack-grid--with-ad) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Tabs : moins de padding, plus petit pour tenir */
  .shop-tab {
    padding: 6px 14px !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.02em !important;
  }
  .shop-tabs {
    gap: 4px !important;
    margin-bottom: 40px !important;
  }
}

/* ======================================================
   FOLD 5 / ≤400px — Boutique 2×2 compressé (override 1-col)
   ====================================================== */
@media (max-width: 400px) {
  /* Force 2 colonnes (annule la règle 1-col précédente) */
  .shop-grid,
  .shop-pack-grid,
  .shop-pack-grid--with-ad,
  .shop-pack-grid:not(.shop-pack-grid--with-ad) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Card : padding interne minimal */
  .shop-card {
    padding: 10px 8px !important;
    border-radius: 10px !important;
  }

  /* Plan name */
  .shop-card .shop-plan-name {
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
  }

  /* Tagline */
  .shop-card .shop-plan-tagline {
    font-size: 0.6rem !important;
    min-height: 2.2em !important;
    line-height: 1.25 !important;
  }

  /* Prix : compresser */
  .shop-card .shop-price-amount {
    font-size: 1.1rem !important;
  }
  .shop-card .shop-price-period {
    font-size: 0.62rem !important;
  }
  .shop-card .shop-price-sub,
  .shop-card .shop-price-save {
    font-size: 0.6rem !important;
    line-height: 1.25 !important;
  }

  /* Features list */
  .shop-card .shop-features {
    font-size: 0.65rem !important;
    margin: 4px 0 8px !important;
  }
  .shop-card .shop-features li {
    line-height: 1.3 !important;
  }

  /* CTA : permettre 2 lignes, plus petit */
  .shop-card .shop-cta {
    padding: 8px 6px !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }
}
