/* === Fidélité Pro — Public CSS === */
:root { --fp-color: #e74c3c; }

/* Widget général */
.fp-widget { background:#fff; border:1.5px solid #e9ecef; border-radius:12px; padding:16px; margin:16px 0; font-family:inherit; box-shadow:0 2px 10px rgba(0,0,0,0.06); }
.fp-widget-head { display:flex; align-items:center; gap:8px; margin-bottom:14px; padding-bottom:12px; border-bottom:2px solid #f0f0f0; }
.fp-widget-ico { font-size:18px; }
.fp-widget-titre { font-size:14px; font-weight:700; color:#333; }

.fp-prog-bloc { margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid #f5f5f5; }
.fp-prog-bloc:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.fp-prog-titre { display:flex; justify-content:space-between; font-size:13px; font-weight:700; color:#333; margin-bottom:10px; }
.fp-cycle { font-size:11px; background:#9b59b6; color:#fff; padding:2px 8px; border-radius:20px; }

/* Cases tampons */
.fp-cases { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.fp-case { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; transition:all .3s; }
.fp-case-ok { background:var(--fp-color); color:#fff; box-shadow:0 2px 8px rgba(231,76,60,0.35); }
.fp-case-vide { background:#f0f0f0; border:2px dashed #ddd; color:#ddd; }
.fp-case-fin.fp-case-ok { background:linear-gradient(135deg,#f39c12,#e67e22); }
.fp-case-fin.fp-case-vide { border-color:#f39c12; color:#f39c12; }

/* Barre */
.fp-barre-fond { background:#f0f0f0; border-radius:6px; height:8px; overflow:hidden; margin-bottom:8px; }
.fp-barre-remplie { height:100%; background:linear-gradient(90deg,var(--fp-color),#f39c12); border-radius:6px; transition:width 1.2s cubic-bezier(.25,.1,.25,1); }
.fp-prog-info { font-size:12px; color:#666; }
.fp-em { color:var(--fp-color); font-style:normal; font-weight:700; }
.fp-gagné { color:var(--fp-color); font-weight:700; }

/* Page Mon Compte */
.fp-compte { font-family:inherit; }
.fp-compte-header { display:flex; align-items:center; gap:16px; padding:24px 28px; border-radius:14px; margin-bottom:24px; color:#fff; }
.fp-compte-header-ico { font-size:44px; }
.fp-compte-titre { margin:0 0 4px; font-size:22px; font-weight:800; color:#fff; }
.fp-compte-desc { margin:0; font-size:14px; color:rgba(255,255,255,0.9); }
.fp-compte-section { margin-bottom:28px; }
.fp-section-h { font-size:17px; font-weight:700; color:#333; margin:0 0 14px; padding-bottom:10px; border-bottom:2px solid #f0f0f0; }

/* Cartes fidélité */
.fp-cartes-grille { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:18px; }
.fp-carte-fidelite { background:#fff; border-radius:14px; border:1.5px solid #e9ecef; padding:18px; box-shadow:0 2px 12px rgba(0,0,0,0.07); transition:transform .2s; }
.fp-carte-fidelite:hover { transform:translateY(-3px); }
.fp-carte-entete { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; font-size:14px; font-weight:700; color:#333; }
.fp-cycle-badge { font-size:11px; background:#9b59b6; color:#fff; padding:2px 8px; border-radius:20px; }

/* Grille cases (Mon Compte) */
.fp-grille-cases { display:grid; grid-template-columns:repeat(auto-fill,minmax(34px,1fr)); gap:6px; margin-bottom:12px; }
.fp-case-compte { width:34px; height:34px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; transition:all .3s; }
.fp-case-compte-ok  { background:var(--fp-color); color:#fff; box-shadow:0 2px 8px rgba(231,76,60,0.3); }
.fp-case-compte-vide{ background:#f5f5f5; border:2px dashed #e0e0e0; color:#ccc; }
.fp-case-compte-fin.fp-case-compte-ok { background:linear-gradient(135deg,#f39c12,#e67e22); }
.fp-case-compte-fin.fp-case-compte-vide { border-color:#f39c12; color:#f39c12; }
.fp-barre-anim { transition:width 1.4s cubic-bezier(.25,.1,.25,1); }

.fp-carte-pied { margin-top:10px; }
.fp-carte-texte { font-size:13px; color:#555; margin:0 0 4px; }
.fp-carte-recompense { font-size:13px; color:var(--fp-color); font-weight:700; margin:0 0 4px; }
.fp-avertiss { font-size:12px; color:#e67e22; margin:0 0 4px; }
.fp-carte-compteur { font-size:12px; color:#bbb; }

/* Coupons */
.fp-coupons-grille { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.fp-coupon-card { background:#fff; border-radius:12px; border:1.5px solid #e9ecef; padding:18px; box-shadow:0 2px 10px rgba(0,0,0,0.06); display:flex; flex-direction:column; gap:10px; }
.fp-coupon-type { font-size:15px; font-weight:700; color:#333; }
.fp-coupon-code-wrap { display:flex; flex-direction:column; gap:4px; }
.fp-coupon-code { font-family:'Courier New',monospace; font-size:22px; font-weight:900; letter-spacing:3px; color:var(--fp-color); background:#fff9f9; border:2px dashed var(--fp-color); border-radius:8px; padding:12px; text-align:center; cursor:pointer; transition:all .2s; user-select:all; }
.fp-coupon-code:hover { background:#ffeaea; }
.fp-coupon-hint { font-size:11px; color:#aaa; text-align:center; margin:0; }
.fp-coupon-exp { font-size:12px; color:#e67e22; margin:0; }

/* Boutons CTA */
.fp-cta-btn { display:inline-block; padding:10px 22px; border-radius:8px; font-size:14px; font-weight:700; text-decoration:none; color:#fff !important; text-align:center; transition:all .2s; }
.fp-cta-btn:hover { opacity:.88; transform:translateY(-1px); }
.fp-cta-sm { padding:7px 16px; font-size:13px; }
.fp-cta-blanc { background:#fff !important; color:var(--fp-color) !important; }

/* CTA bas */
.fp-cta-bas { border-radius:14px; padding:28px; text-align:center; color:#fff; margin-top:20px; }
.fp-cta-bas h3 { color:#fff; margin:0 0 14px; font-size:18px; }

/* Historique */
.fp-histo { width:100%; border-collapse:collapse; font-size:13px; }
.fp-histo th { background:#f8f9fa; padding:8px 12px; text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; border-bottom:2px solid #eee; }
.fp-histo td { padding:10px 12px; border-bottom:1px solid #f0f0f0; }
.fp-statut-pill { display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.fp-sp-bleu { background:#d6eaf8; color:#1a5276; }
.fp-sp-gris { background:#f0f0f0; color:#888; }

/* État vide */
.fp-etat-vide { text-align:center; padding:30px; color:#888; }
.fp-etat-vide p { margin:0 0 14px; }

/* Login notice */
.fp-login-msg { background:#f8f9fa; border-radius:8px; padding:14px 16px; color:#555; font-size:14px; }

@media (max-width:600px) {
    .fp-cartes-grille, .fp-coupons-grille { grid-template-columns:1fr; }
    .fp-compte-header { flex-direction:column; text-align:center; }
    .fp-cta-bas { padding:20px 16px; }
}
