/* ============================================
   Media Sport 235 - Module Cagnottes
   ============================================ */

:root {
    --fr-blue: #003da5;
    --fr-blue-dark: #001f52;
    --fr-red: #ce1126;
    --fr-gold: #ffd700;
    --fr-green: #16a34a;
    --fr-airtel: #e40000;
    --fr-moov: #0066b3;
    --fr-ink: #1a1a2e;
    --fr-muted: #6b7280;
    --fr-line: #e9ecf2;
    --fr-radius: 16px;
}

/* ---------- Hero ---------- */
.fr-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 64px 0 88px;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(255, 215, 0, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(206, 17, 38, .35), transparent 60%),
        linear-gradient(135deg, var(--fr-blue) 0%, var(--fr-blue-dark) 100%);
}
.fr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.fr-hero .container { position: relative; z-index: 1; }
.fr-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; letter-spacing: .3px;
}
.fr-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin: 18px 0 14px; }
.fr-hero h1 .hl { color: var(--fr-gold); }
.fr-hero p.lead { color: rgba(255,255,255,.82); max-width: 560px; font-size: 1.05rem; }
.fr-hero .btn-gold { background: var(--fr-gold); color: var(--fr-ink); font-weight: 700; border: none; }
.fr-hero .btn-gold:hover { background: #ffe34d; }

.fr-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: rgba(255,255,255,.15); border-radius: var(--fr-radius); overflow: hidden;
    backdrop-filter: blur(6px);
}
.fr-stats > div { background: rgba(0, 20, 60, .45); padding: 18px 16px; text-align: center; }
.fr-stats strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800; }
.fr-stats span { font-size: .78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Featured ---------- */
.fr-featured {
    margin-top: -56px; position: relative; z-index: 2;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 30, 80, .15);
    display: grid; grid-template-columns: 1.1fr 1fr;
}
.fr-featured-media { position: relative; min-height: 320px; background: linear-gradient(135deg, var(--fr-blue), var(--fr-red)); }
.fr-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr-featured-media .badge-feat {
    position: absolute; top: 18px; left: 18px; background: var(--fr-gold); color: var(--fr-ink);
    font-weight: 800; font-size: .75rem; padding: 7px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px;
}
.fr-featured-body { padding: 32px; display: flex; flex-direction: column; }
.fr-featured-body h2 { font-size: 1.6rem; font-weight: 800; }
.fr-featured-body h2 a { color: var(--fr-ink); text-decoration: none; }

/* ---------- Filters ---------- */
.fr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fr-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px;
    background: #fff; border: 1px solid var(--fr-line); color: #374151; font-size: .85rem; font-weight: 500;
    text-decoration: none; transition: all .2s;
}
.fr-chip:hover { border-color: var(--fr-blue); color: var(--fr-blue); }
.fr-chip.active { background: var(--fr-blue); border-color: var(--fr-blue); color: #fff; }

/* ---------- Card ---------- */
.fr-card {
    background: #fff; border-radius: var(--fr-radius); overflow: hidden; height: 100%;
    box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.fr-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0, 30, 80, .14); }
.fr-card-media {
    position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
    background: linear-gradient(135deg, var(--cat, var(--fr-blue)), #0b1530);
}
.fr-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fr-card:hover .fr-card-media img { transform: scale(1.05); }
.fr-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,.35); }
.fr-card-cat {
    position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff;
    font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 50px; backdrop-filter: blur(4px);
}
.fr-card-state { position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 50px; }
.fr-card-state.urgent { background: var(--fr-red); color: #fff; }
.fr-card-state.done { background: var(--fr-green); color: #fff; }
.fr-card-state.ended { background: #6b7280; color: #fff; }
.fr-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.fr-card-benef { font-size: .8rem; color: var(--fr-muted); margin-bottom: 6px; }
.fr-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.fr-card-title a { color: var(--fr-ink); text-decoration: none; }
.fr-card-title a:hover { color: var(--fr-blue); }
.fr-card-tagline { font-size: .86rem; color: var(--fr-muted); margin-bottom: 14px; }
.fr-card-figures { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.fr-card-figures strong { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; color: var(--fr-ink); }
.fr-card-figures .fr-pct { color: var(--fr-blue); }
.fr-muted { color: var(--fr-muted); font-size: .78rem; }
.fr-card-body .fr-progress { margin-top: auto; }

/* ---------- Progress ---------- */
.fr-progress { height: 10px; background: #edf0f6; border-radius: 50px; overflow: hidden; position: relative; }
.fr-progress > span {
    display: block; height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, var(--fr-blue), #2f7bff 60%, var(--fr-gold));
    width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.fr-progress.lg { height: 16px; overflow: visible; }
.fr-progress.lg > span { position: relative; }
.fr-progress .pending {
    position: absolute; top: 0; height: 100%; border-radius: 0 50px 50px 0;
    background: repeating-linear-gradient(45deg, rgba(0,61,165,.18), rgba(0,61,165,.18) 6px, rgba(0,61,165,.08) 6px, rgba(0,61,165,.08) 12px);
}
.fr-milestone-dot {
    position: absolute; top: 50%; width: 22px; height: 22px; margin-left: -11px; transform: translateY(-50%);
    background: #fff; border: 3px solid #cfd6e4; border-radius: 50%; z-index: 2; cursor: help;
    display: flex; align-items: center; justify-content: center; font-size: .55rem; color: #fff;
}
.fr-milestone-dot.reached { border-color: var(--fr-gold); background: var(--fr-gold); color: var(--fr-ink); }

/* ---------- Steps ---------- */
.fr-steps { counter-reset: step; }
.fr-step { background: #fff; border-radius: var(--fr-radius); padding: 26px; height: 100%; position: relative; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.fr-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--fr-red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; box-shadow: 0 6px 14px rgba(206,17,38,.35);
}
.fr-step i.big { font-size: 1.8rem; color: var(--fr-blue); margin: 8px 0 12px; }
.fr-step h5 { font-weight: 700; }

.fr-paybadges { display: flex; gap: 10px; flex-wrap: wrap; }
.fr-paybadge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .85rem; color: #fff; }
.fr-paybadge.airtel { background: var(--fr-airtel); }
.fr-paybadge.moov { background: var(--fr-moov); }
.fr-paybadge.bank { background: #198754; }

.fr-cta {
    border-radius: 20px; padding: 40px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--fr-red), #8f0b1a);
}
.fr-cta::after { content: "\f4c4"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -10px; bottom: -40px; font-size: 11rem; opacity: .12; }

/* ---------- Detail page ---------- */
.frd-hero { background: linear-gradient(135deg, var(--fr-blue) 0%, var(--fr-blue-dark) 100%); color: #fff; padding: 34px 0 120px; }
.frd-hero .breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.frd-hero .breadcrumb-item.active, .frd-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.frd-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.frd-wrap { margin-top: -96px; position: relative; z-index: 2; }
.frd-cover { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--fr-blue), var(--fr-red)); position: relative; box-shadow: 0 20px 50px rgba(0,30,80,.2); }
.frd-cover img, .frd-cover iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.frd-cover .fr-card-placeholder { font-size: 5rem; }
.frd-panel { background: #fff; border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.07); padding: 26px; margin-bottom: 24px; }
.frd-panel h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.frd-panel h2 i { color: var(--fr-blue); }
.frd-story { font-size: 1rem; line-height: 1.8; color: #374151; }
.frd-story p { margin-bottom: 1rem; }

.frd-box { position: sticky; top: 90px; }
.frd-amount { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: var(--fr-ink); line-height: 1; }
.frd-amount small { font-size: .9rem; color: var(--fr-muted); font-weight: 600; }
.frd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.frd-kpis > div { background: #f6f8fc; border-radius: 12px; padding: 12px 8px; text-align: center; }
.frd-kpis strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.15rem; color: var(--fr-ink); }
.frd-kpis span { font-size: .72rem; color: var(--fr-muted); text-transform: uppercase; letter-spacing: .4px; }
.frd-donate-btn {
    background: linear-gradient(135deg, var(--fr-red), #a50d1f); color: #fff; border: none; font-weight: 800;
    padding: 15px; border-radius: 14px; width: 100%; font-size: 1.05rem; letter-spacing: .3px;
    box-shadow: 0 10px 24px rgba(206,17,38,.3); transition: transform .2s, box-shadow .2s;
}
.frd-donate-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(206,17,38,.4); }
.frd-verified { display: flex; gap: 10px; align-items: center; background: #eef4ff; color: var(--fr-blue); border-radius: 12px; padding: 10px 14px; font-size: .85rem; }

.frd-share { display: flex; gap: 8px; }
.frd-share a, .frd-share button {
    flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--fr-line); background: #fff;
    display: flex; align-items: center; justify-content: center; color: #374151; font-size: 1.05rem; text-decoration: none; transition: all .2s;
}
.frd-share .wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.frd-share .fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.frd-share .tw:hover { background: #000; color: #fff; border-color: #000; }
.frd-share .cp:hover, .frd-share .qr:hover { background: var(--fr-blue); color: #fff; border-color: var(--fr-blue); }

/* Payment tabs */
.frd-paytabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.frd-paytab {
    border: 2px solid var(--fr-line); background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center;
    cursor: pointer; transition: all .2s; font-weight: 700; font-size: .85rem; color: #374151;
}
.frd-paytab .pay-logo { margin: 0 auto 6px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 800; }
.frd-paytab[data-method="airtel_money"] .pay-logo { background: linear-gradient(135deg, #ff2a2a, #b30000); }
.frd-paytab[data-method="moov_money"] .pay-logo { background: linear-gradient(135deg, #0a84d6, #004b87); }
.frd-paytab[data-method="bank_transfer"] .pay-logo { background: linear-gradient(135deg, #20a46b, #11663f); font-size: 1rem; }
.frd-paytab.active[data-method="airtel_money"] { border-color: var(--fr-airtel); background: #fff5f5; }
.frd-paytab.active[data-method="moov_money"] { border-color: var(--fr-moov); background: #f2f8fd; }
.frd-paytab.active[data-method="bank_transfer"] { border-color: #198754; background: #f1faf5; }
.frd-paypane { display: none; }
.frd-paypane.active { display: block; animation: frFade .3s ease; }
@keyframes frFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.frd-coord { background: #f6f8fc; border-radius: 14px; padding: 6px 16px; }
.frd-coord-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #dde3ee; }
.frd-coord-row:last-child { border-bottom: 0; }
.frd-coord-row label { font-size: .75rem; color: var(--fr-muted); text-transform: uppercase; letter-spacing: .4px; display: block; }
.frd-coord-row .val { font-weight: 700; color: var(--fr-ink); word-break: break-all; }
.frd-coord-row .val.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
.frd-coord-row .val.big { font-size: 1.35rem; letter-spacing: 1px; }
.btn-copy { border: 1px solid var(--fr-line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: .78rem; font-weight: 600; color: var(--fr-blue); white-space: nowrap; }
.btn-copy.copied { background: var(--fr-green); color: #fff; border-color: var(--fr-green); }
.frd-howto { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: how; }
.frd-howto li { position: relative; padding-left: 34px; margin-bottom: 10px; font-size: .9rem; color: #374151; }
.frd-howto li::before {
    counter-increment: how; content: counter(how); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
    background: #e8eefb; color: var(--fr-blue); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center;
}
.frd-motif { background: #fff8db; border: 1px dashed #e6c200; border-radius: 12px; padding: 10px 14px; font-size: .88rem; }

.fr-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fr-amounts button { border: 2px solid var(--fr-line); background: #fff; border-radius: 10px; padding: 10px 4px; font-weight: 700; font-size: .9rem; transition: all .15s; }
.fr-amounts button:hover, .fr-amounts button.active { border-color: var(--fr-blue); color: var(--fr-blue); background: #f2f6ff; }

/* Supporters wall */
.fr-supporter { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f2f6; }
.fr-supporter:last-child { border-bottom: 0; }
.fr-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: .9rem; background: linear-gradient(135deg, var(--fr-blue), #3b82f6);
}
.fr-avatar.anon { background: linear-gradient(135deg, #9ca3af, #4b5563); }
.fr-supporter .msg { background: #f6f8fc; border-radius: 0 12px 12px 12px; padding: 8px 12px; margin-top: 6px; font-size: .88rem; color: #374151; font-style: italic; }
.fr-podium { display: flex; gap: 10px; }
.fr-podium > div { flex: 1; text-align: center; background: #f6f8fc; border-radius: 12px; padding: 12px 6px; }
.fr-podium .medal { font-size: 1.4rem; }

/* Milestones list */
.fr-ms { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.fr-ms:last-child { border-bottom: 0; }
.fr-ms .ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #edf0f6; color: #9aa3b5; flex-shrink: 0; }
.fr-ms.reached .ic { background: var(--fr-gold); color: var(--fr-ink); }
.fr-ms.next .ic { background: var(--fr-blue); color: #fff; animation: frPulse 1.8s infinite; }
@keyframes frPulse { 0% { box-shadow: 0 0 0 0 rgba(0,61,165,.4); } 70% { box-shadow: 0 0 0 10px rgba(0,61,165,0); } 100% { box-shadow: 0 0 0 0 rgba(0,61,165,0); } }

/* Timeline updates */
.fr-timeline { border-left: 3px solid #e3e8f2; margin-left: 8px; padding-left: 22px; }
.fr-timeline-item { position: relative; margin-bottom: 22px; }
.fr-timeline-item::before { content: ""; position: absolute; left: -31px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--fr-red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--fr-red); }

/* Receipt */
.fr-receipt { border: 2px dashed #b7c6e6; border-radius: 18px; padding: 24px; background: linear-gradient(180deg, #f7faff, #fff); }
.fr-receipt .ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 800; color: var(--fr-blue); letter-spacing: 2px; }

/* Mobile sticky donate bar */
.frd-mobilebar {
    display: none; position: fixed; left: 0; right: 0; bottom: 56px; z-index: 1020; padding: 10px 14px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}

/* Wizard (lancer une cagnotte) */
.frw-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 28px; }
.frw-steps::before { content: ""; position: absolute; top: 19px; left: 8%; right: 8%; height: 3px; background: #e3e8f2; z-index: 0; }
.frw-step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .78rem; color: var(--fr-muted); font-weight: 600; }
.frw-step .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid #e3e8f2; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #9aa3b5; transition: all .3s; }
.frw-step.active .dot { border-color: var(--fr-blue); color: var(--fr-blue); box-shadow: 0 0 0 6px rgba(0,61,165,.1); }
.frw-step.active { color: var(--fr-blue); }
.frw-step.done .dot { background: var(--fr-blue); border-color: var(--fr-blue); color: #fff; }
.frw-pane { display: none; }
.frw-pane.active { display: block; animation: frFade .35s ease; }
.frw-card { background: #fff; border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.07); padding: 30px; }
.frw-cat input { display: none; }
.frw-cat label {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 2px solid var(--fr-line);
    border-radius: 14px; cursor: pointer; text-align: center; font-size: .82rem; font-weight: 600; height: 100%; transition: all .2s; background: #fff;
}
.frw-cat label i { font-size: 1.4rem; color: var(--c, var(--fr-blue)); }
.frw-cat input:checked + label { border-color: var(--c, var(--fr-blue)); background: #f6f9ff; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.frw-preview { position: sticky; top: 90px; }
.frw-tip { background: #fffbea; border-radius: 14px; padding: 16px; font-size: .86rem; border-left: 4px solid var(--fr-gold); }

@media (max-width: 991px) {
    .fr-featured { grid-template-columns: 1fr; }
    .fr-featured-media { min-height: 220px; }
    .frd-box { position: static; }
    .frd-mobilebar { display: flex; gap: 10px; align-items: center; }
}
@media (min-width: 768px) {
    .frd-mobilebar { bottom: 0; }
}
@media (max-width: 576px) {
    .fr-hero { padding: 40px 0 76px; }
    .fr-stats strong { font-size: 1.1rem; }
    .fr-featured-body, .frd-panel, .frw-card { padding: 20px; }
    .frd-amount { font-size: 1.6rem; }
    .frw-step span.lbl { display: none; }
    .fr-cta { padding: 28px; }
}
