/* ══════════════════════════════════════════
   FIDELITE PAGE — Programme de Fidélité
   ══════════════════════════════════════════ */

:root {
  --loy-gold: #fbbf24;
  --loy-gold-dim: rgba(251,191,36,0.12);
  --loy-gold-glow: rgba(251,191,36,0.25);
  --loy-bronze: #cd7f32;
  --loy-silver: #c0c0c0;
  --loy-diamond: #60a5fa;
}

/* ── HERO ── */
.loyalty-hero {
  position: relative; overflow: hidden;
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
}
.loyalty-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 10%, transparent 100%);
}
.loyalty-hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: min(900px, 140vw); height: min(800px, 120vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, rgba(111,66,193,0.15) 35%, transparent 65%);
  pointer-events: none;
}
.loyalty-tag {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(245,158,11,0.25); background: rgba(245,158,11,0.08);
  border-radius: 100px; padding: 6px 16px 6px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--loy-gold); margin-bottom: 24px;
  animation: fadeUp 0.6s ease both 0.1s;
}
.loyalty-h1 {
  position: relative; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.8rem); letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 16px; animation: fadeUp 0.6s ease both 0.2s;
}
.loyalty-grad {
  background: linear-gradient(135deg, #fbbf24, #a78bfa, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.loyalty-sub {
  position: relative; color: rgba(255,255,255,0.45); font-size: 16px;
  line-height: 1.75; max-width: 560px; margin: 0 auto;
  animation: fadeUp 0.6s ease both 0.3s;
}
.loyalty-hero-actions {
  position: relative; display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
  animation: fadeUp 0.6s ease both 0.4s;
}

/* ── TIERS / PALIERS ── */
.tiers-section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.tiers-header { text-align: center; margin-bottom: 48px; }
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 24px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover { transform: translateY(-4px); }
.tier-card.active { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 30px rgba(245,158,11,0.1); }
.tier-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.tier-icon.bronze { background: rgba(205,127,50,0.12); border: 1px solid rgba(205,127,50,0.25); color: var(--loy-bronze); }
.tier-icon.argent { background: rgba(192,192,192,0.12); border: 1px solid rgba(192,192,192,0.25); color: var(--loy-silver); }
.tier-icon.or { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #f59e0b; }
.tier-icon.diamant { background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.3); color: var(--loy-diamond); }
.tier-name {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800;
  margin-bottom: 6px;
}
.tier-pts { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.tier-bar {
  height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06);
  overflow: hidden; margin-bottom: 14px;
}
.tier-bar-fill { height: 100%; border-radius: 2px; }
.tier-bar-fill.bronze { background: linear-gradient(90deg, #cd7f32, #e8a96e); width: 25%; }
.tier-bar-fill.argent { background: linear-gradient(90deg, #9ca3af, #d1d5db); width: 50%; }
.tier-bar-fill.or { background: linear-gradient(90deg, #f59e0b, #fbbf24); width: 75%; }
.tier-bar-fill.diamant { background: linear-gradient(90deg, #3b82f6, #60a5fa); width: 100%; }
.tier-range { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ── EARN SECTION ── */
.earn-section { padding: 0 24px 80px; max-width: 1100px; margin: 0 auto; }
.earn-header { text-align: center; margin-bottom: 48px; }
.earn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.earn-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.earn-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-2px); }
.earn-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--loy-gold);
}
.earn-icon.purple { background: var(--purple-glow); border-color: rgba(111,66,193,0.25); color: var(--purple); }
.earn-icon.green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: #4ade80; }
.earn-title {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 4px;
}
.earn-pts {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 800;
  color: var(--loy-gold); background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2); border-radius: 6px;
  padding: 2px 8px; margin-bottom: 6px;
}
.earn-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ── LIMIT BADGE ── */
.earn-limit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 24px; padding: 12px 20px;
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.15);
  border-radius: 12px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.earn-limit i { color: var(--loy-gold); font-size: 12px; }
.earn-limit strong { color: rgba(255,255,255,0.8); }

/* ── CONVERT SECTION ── */
.convert-section {
  padding: 60px 24px; max-width: 700px; margin: 0 auto 80px;
}
.convert-box {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 20px; padding: 36px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.convert-box::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, var(--purple), transparent);
}
.convert-title {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  margin-bottom: 8px;
}
.convert-rate {
  font-size: 15px; color: rgba(255,255,255,0.5); margin-bottom: 20px; line-height: 1.7;
}
.convert-highlight {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 20px;
}
.convert-rules {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
}
.convert-rule {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 10px;
}
.convert-rule i { color: var(--purple); font-size: 12px; }

/* ── FAQ SECTION ── */
.loyalty-faq { padding: 0 24px 80px; max-width: 800px; margin: 0 auto; }
.loyalty-faq h2 {
  text-align: center; font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 36px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(111,66,193,0.25); }
.faq-item.open { border-color: rgba(111,66,193,0.35); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--white); text-align: left; line-height: 1.4;
  transition: color 0.15s;
}
.faq-btn span { flex: 1; }
.faq-btn i {
  font-size: 14px; color: rgba(255,255,255,0.35);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-btn i {
  transform: rotate(45deg);
  color: var(--purple);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 300px; opacity: 1;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 13.5px; color: rgba(255,255,255,0.5);
  line-height: 1.75;
}
.faq-answer p strong { color: rgba(255,255,255,0.75); }
.faq-answer p a { color: var(--purple); text-decoration: none; font-weight: 600; }
.faq-answer p a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .earn-grid { grid-template-columns: 1fr; }
  .convert-rules { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .tiers-grid { grid-template-columns: 1fr; }
  .loyalty-hero { padding: 80px 20px 48px; }
  .loyalty-hero-actions { flex-direction: column; align-items: center; }
  .faq-btn { padding: 16px 18px; font-size: 13px; }
  .faq-answer p { padding: 0 18px 16px; font-size: 13px; }
}


/* ── FIDELITE LIGHT THEME ── */
[data-theme="light"] { --loy-gold: #d97706; --loy-gold-dim: rgba(217,119,6,0.06); --loy-gold-glow: rgba(217,119,6,0.12); --loy-bronze: #a16207; --loy-silver: #9ca3af; --loy-diamond: #2563eb; }
[data-theme="light"] .loyalty-hero-bg { background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px) !important; }
[data-theme="light"] .loyalty-hero-glow { background: radial-gradient(circle, rgba(217,119,6,0.05) 0%, rgba(124,58,237,0.04) 35%, transparent 65%) !important; }
[data-theme="light"] .loyalty-h1 { color: #111827; }
[data-theme="light"] .loyalty-sub { color: rgba(17,24,39,0.45); }
[data-theme="light"] .loyalty-tag { border-color: rgba(217,119,6,0.15); background: rgba(217,119,6,0.05); }

/* ══════════════════════════════════════════
   FIDELITE — LIGHT THEME FIXES
   ══════════════════════════════════════════ */
[data-theme="light"] .loyalty-h1 { color: #111827; }
[data-theme="light"] .loyalty-sub { color: rgba(17,24,39,0.45); }

[data-theme="light"] .tier-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .tier-card:hover { border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .tier-card.active { border-color: rgba(217,119,6,0.3); box-shadow: 0 0 30px rgba(217,119,6,0.06); }
[data-theme="light"] .tier-name { color: #111827; }
[data-theme="light"] .tier-pts { color: rgba(17,24,39,0.4); }
[data-theme="light"] .tier-bar { background: rgba(0,0,0,0.06); }
[data-theme="light"] .tier-range { color: rgba(17,24,39,0.35); }

[data-theme="light"] .earn-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .earn-card:hover { border-color: rgba(217,119,6,0.2); }
[data-theme="light"] .earn-title { color: #111827; }
[data-theme="light"] .earn-desc { color: rgba(17,24,39,0.45); }

[data-theme="light"] .earn-limit { background: rgba(217,119,6,0.04); border-color: rgba(217,119,6,0.1); color: rgba(17,24,39,0.5); }
[data-theme="light"] .earn-limit strong { color: rgba(17,24,39,0.75); }

[data-theme="light"] .convert-box { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .convert-title { color: #111827; }
[data-theme="light"] .convert-rate { color: rgba(17,24,39,0.5); }
[data-theme="light"] .convert-rule { color: rgba(17,24,39,0.45); background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }

[data-theme="light"] .faq-item { background: #fff; border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .faq-item:hover { border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .faq-btn { color: #111827; }
[data-theme="light"] .faq-btn i { color: rgba(17,24,39,0.35); }
[data-theme="light"] .faq-answer p { color: rgba(17,24,39,0.5); }
[data-theme="light"] .faq-answer p strong { color: rgba(17,24,39,0.75); }

[data-theme="light"] .tiers-header h2,
[data-theme="light"] .earn-header h2,
[data-theme="light"] .loyalty-faq h2 { color: #111827; }
[data-theme="light"] .tiers-header p,
[data-theme="light"] .earn-header p { color: rgba(17,24,39,0.45); }

[data-theme="light"] .loyalty-hero-bg {
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px) !important;
}
