/* rc100 — Suivi du crédit, retraits, réception, modules. Fonctionne avec tous les thèmes ; reprend le vert FondiRapidi quand il est actif. */
:root{--fd-ink:var(--fr-tx,var(--nrx-text,#10243d));--fd-mu:var(--fr-mu,var(--nrx-muted,#5b6b7d));--fd-card:var(--fr-card,#fff);--fd-line:var(--fa-line,var(--nrx-border,#dce3ed));--fd-acc:var(--fr-ac,var(--nrx-primary,#173b69))}
.fd-st{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap}
.fd-st::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.fd-st-pending{background:#FEF3C7;color:#92400E}.fd-st-ok{background:#D1FAE5;color:#065F46}.fd-st-ko{background:#FEE2E2;color:#991B1B}.fd-st-block{background:#E2E8F0;color:#334155}
html[data-fr=dark] .fd-st-pending{background:rgba(251,191,36,.16);color:#FCD34D}html[data-fr=dark] .fd-st-ok{background:rgba(52,211,153,.16);color:#6EE7B7}html[data-fr=dark] .fd-st-ko{background:rgba(248,113,113,.16);color:#FCA5A5}html[data-fr=dark] .fd-st-block{background:rgba(148,163,184,.18);color:#CBD5E1}

/* héros « Suivi de votre crédit » */
.na-hero.fd-hero{background:linear-gradient(140deg,#0F4A36 0%,#0B3A2A 55%,#082A1F 100%)!important;color:#fff;border-radius:24px;padding:26px 26px 20px;position:relative;overflow:hidden}
:root:not([data-fr]) .na-hero.fd-hero{background:linear-gradient(140deg,var(--nrx-primary,#173b69),#0b1b30)!important}
.na-hero.fd-hero::after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(246,222,155,.28),transparent 70%);pointer-events:none}
.fd-hero *{color:#fff}
.fd-hero-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.fd-hero .na-kicker{letter-spacing:.14em;text-transform:uppercase;font-size:12px;font-weight:700;opacity:.9;margin:0}
.fd-ref{font-size:12px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-weight:600}
.fd-hero .fd-hello{font-size:20px!important;margin:10px 0 4px!important;font-weight:700}
.fd-approved{margin:8px 0 0;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.1);font-size:13.5px;line-height:1.5}
.fd-approved b{color:#B7F5D8}
.fd-figures{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin:18px 0 6px;align-items:end}
.fd-label{margin:0 0 4px;font-size:13px;opacity:.85}
.fd-amount{margin:0;font-size:clamp(30px,5vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.05}
.fd-amount-sm{font-size:clamp(22px,3.4vw,30px)}
.fd-balance{padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16)}
.fd-balance small{display:block;margin-top:4px;font-size:12px;opacity:.85}
.fd-cta-block{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.16)}
.fd-cta-block h2{font-size:17px!important;margin:0 0 4px!important}
.fd-cta-block>p{margin:0 0 12px;font-size:14px;opacity:.9}
.fd-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.fd-hero .fd-actions .button{background:#F6DE9B!important;color:#0C2A20!important;border:0;border-radius:14px;padding:12px 20px;font-weight:800}
.fd-hero .fd-actions .button[disabled]{opacity:.55;cursor:not-allowed}
.fd-hero .fd-actions .fd-secondary{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.45)!important;font-weight:700}
.fd-mode,.fd-why,.fd-wait{margin:10px 0 0;font-size:13px;opacity:.92}
.fd-why{color:#FDE68A}
.fd-upd{margin:14px 0 0;font-size:11.5px;opacity:.7}
.fd-hero .fd-actions .button *{color:inherit}
@media (max-width:640px){.fd-figures{grid-template-columns:1fr}.na-hero.fd-hero{padding:20px 18px 16px}.fd-actions .button{flex:1 1 100%;justify-content:center;text-align:center}}

/* listes */
.fd-wlist h2,.fd-receipts h2{margin-top:0}
.fd-w{padding:12px 0;border-top:1px solid var(--fd-line);display:grid;gap:4px}
.fd-w:first-of-type{border-top:0}
.fd-w-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fd-w-main strong{font-size:17px;color:var(--fd-ink)}
.fd-w small,.fd-rc small{color:var(--fd-mu)}
.fd-note{margin:4px 0 0;font-size:13.5px;line-height:1.5;color:var(--fd-ink)}
.fd-note-ok{padding:10px 12px;border-radius:12px;background:#ECFDF5;color:#065F46}
.fd-note-ko{padding:10px 12px;border-radius:12px;background:#FEF2F2;color:#991B1B}
.fd-note-block{padding:10px 12px;border-radius:12px;background:#F1F5F9;color:#334155}
html[data-fr=dark] .fd-note-ok{background:rgba(52,211,153,.12);color:#A7F3D0}html[data-fr=dark] .fd-note-ko{background:rgba(248,113,113,.12);color:#FECACA}html[data-fr=dark] .fd-note-block{background:rgba(148,163,184,.14);color:#E2E8F0}
.fd-rc{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--fd-line)}
.fd-rc:first-of-type{border-top:0}
.fd-rc>span:first-child{display:grid;gap:2px;color:var(--fd-ink);min-width:0;overflow-wrap:anywhere}
.fd-alert{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:14px 16px;border-radius:18px;background:#FFF7E6;border:1px solid #F5C66B;color:#5B3B00}
.fd-alert p{margin:4px 0 0;font-size:13.5px}
.fd-alert strong,.fd-alert p{color:#5B3B00}
html[data-fr=dark] .fd-alert{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.4)}
html[data-fr=dark] .fd-alert strong,html[data-fr=dark] .fd-alert p{color:#FDE68A}
@media (max-width:640px){.fd-alert{flex-direction:column;align-items:stretch}}
.fd-form .fd-dest{display:grid;gap:3px;padding:12px 14px;margin:10px 0;border-radius:14px;background:var(--fr-chip,#f1f5f9)}
.fd-form .fd-dest small{color:var(--fd-mu)}
.fd-form-status{min-height:1.2em;color:#B42318;font-weight:600}

/* administration */
.fd-admin{margin-top:18px}
.fd-admin-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.fd-admin-head h2{margin:0}
.fd-admin-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;margin:14px 0}
.fd-fund{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;align-items:end;padding:14px;border:1px solid var(--fd-line);border-radius:16px}
.fd-fund h3,.fd-fund .fine,.fd-fund button{grid-column:1/-1}
.fd-fund button{justify-self:start}
.fd-rx{padding:14px;border:1px solid var(--fd-line);border-radius:16px}
.fd-admin h3{margin:16px 0 8px;font-size:16px}
.fd-fund h3,.fd-rx h3{margin:0 0 4px}
.fd-wtable{border:1px solid var(--fd-line);border-radius:16px;padding:4px 14px}
.fd-w-actions{margin-top:6px}
.fd-hist{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--fd-mu)}
.fd-hist li{margin:4px 0}
@media (max-width:900px){.fd-admin-grid,.fd-fund{grid-template-columns:1fr}}
.fd-todo{margin:0 0 18px}
.fd-todo-title{font-size:15px!important;margin:0 0 10px!important;color:var(--fd-ink)}
.fd-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fd-tile{display:grid;gap:3px;text-align:left;padding:14px 16px;border-radius:18px;border:1px solid var(--fd-line);background:var(--fd-card);color:var(--fd-ink);cursor:pointer;font:inherit;position:relative;overflow:hidden}
.fd-tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#94A3B8}
.fd-tile strong{font-size:26px;line-height:1}
.fd-tile span{font-weight:700}
.fd-tile small{color:var(--fd-mu);font-size:12px}
.fd-tile[aria-pressed=true]{outline:2px solid var(--fd-acc);outline-offset:1px}
.fd-q-amber.fd-has::before{background:#F59E0B}.fd-q-slate.fd-has::before{background:#64748B}.fd-q-blue.fd-has::before{background:#0EA5E9}.fd-q-red.fd-has::before{background:#EF4444}
.fd-q-amber.fd-has strong{color:#B45309}.fd-q-red.fd-has strong{color:#DC2626}
html[data-fr=dark] .fd-q-amber.fd-has strong{color:#FCD34D}html[data-fr=dark] .fd-q-red.fd-has strong{color:#FCA5A5}
.fd-qlist{margin-top:12px}
.fd-qrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--fd-line)}
.fd-qrow:first-of-type{border-top:0}
.fd-qrow span{display:grid;gap:2px;color:var(--fd-ink)}
.fd-qrow small{color:var(--fd-mu)}
@media (max-width:1100px){.fd-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.fd-tiles{grid-template-columns:1fr}}
.fd-mods h2{margin-top:22px}
.fd-mods h2:first-child{margin-top:0}
.fd-switch{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--fd-line)}
.fd-switch span{display:grid;gap:2px}
.fd-switch small{color:var(--fd-mu)}
.fd-langs{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 14px}
.fd-langs small{color:var(--fd-mu)}
.fd-secret{padding:12px 14px;border-radius:14px;background:#FFF7E6;border:1px solid #F5C66B;color:#5B3B00;overflow-wrap:anywhere}
.fd-secret code{font-size:13px}
/* priorité sur les styles du bandeau d'accueil existant */
html body .na-hero.fd-hero p.fd-amount{font-size:clamp(30px,5vw,44px)!important;font-weight:800!important;line-height:1.05!important;margin:0!important;color:#fff!important}
html body .na-hero.fd-hero p.fd-amount.fd-amount-sm{font-size:clamp(22px,3.4vw,30px)!important}
html body .na-hero.fd-hero p.fd-label{font-size:13px!important;margin:0 0 4px!important;opacity:.85}
html body .na-hero.fd-hero .fd-cta-block h2{font-size:18px!important;line-height:1.3!important}
html body .na-hero.fd-hero .fd-actions .button:not(.fd-secondary),html body .na-hero.fd-hero .fd-actions .button:not(.fd-secondary) *{background:#F6DE9B!important;color:#0C2A20!important;border:0!important}
html body .na-hero.fd-hero .fd-actions .button.fd-secondary,html body .na-hero.fd-hero .fd-actions .button.fd-secondary *{background:transparent!important;color:#fff!important}
html body .na-hero.fd-hero .fd-actions .button.fd-secondary{border:1px solid rgba(255,255,255,.5)!important}
html body .na-hero.fd-hero .fd-actions .button{border-radius:14px!important;padding:12px 20px!important;font-weight:800!important;min-height:46px}
.fd-paydef{margin:10px 0 0;font-size:13.5px;color:var(--fd-mu)}.fd-paydef b{color:var(--fd-ink)}
/* rc105 : en-tête « Suivi de votre crédit » compact (moitié moins haut) */
html body .na-hero.fd-hero{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);grid-template-areas:"top top" "hello hello" "ok ok" "fig cta" "upd upd";column-gap:28px;row-gap:6px;padding:20px 24px!important;min-height:0!important;align-items:start}
html body .na-hero.fd-hero>.fd-hero-top{grid-area:top;margin:0!important}
html body .na-hero.fd-hero>.fd-hello,html body .na-hero.fd-hero>h1{grid-area:hello;font-size:24px!important;line-height:1.2!important;margin:0 0 4px!important}
html body .na-hero.fd-hero>.fd-approved{grid-area:ok;font-size:13px!important;margin:0 0 4px!important}
html body .na-hero.fd-hero>.fd-figures{grid-area:fig;display:flex!important;flex-wrap:wrap;gap:14px 28px;align-items:flex-end;margin:6px 0 0!important;padding:0!important;border:0!important}
html body .na-hero.fd-hero .fd-figures>div{margin:0!important}
html body .na-hero.fd-hero .fd-balance{padding:10px 14px!important;border-radius:14px!important}
html body .na-hero.fd-hero .fd-label{font-size:12.5px!important;margin:0 0 2px!important;opacity:.85}
html body .na-hero.fd-hero .fd-amount{font-size:32px!important;line-height:1.05!important;margin:0!important;letter-spacing:-.02em}
html body .na-hero.fd-hero .fd-amount-sm{font-size:24px!important}
html body .na-hero.fd-hero .fd-balance small{font-size:11.5px!important}
html body .na-hero.fd-hero>.fd-cta-block{grid-area:cta;margin:6px 0 0!important;padding:0 0 0 24px!important;border:0!important;border-left:1px solid rgba(255,255,255,.14)!important;align-self:stretch}
html body .na-hero.fd-hero .fd-cta-block h2{font-size:16px!important;margin:0 0 4px!important}
html body .na-hero.fd-hero .fd-cta-block>p{font-size:13px!important;line-height:1.45!important;margin:0 0 10px!important;opacity:.85}
html body .na-hero.fd-hero .fd-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0!important}
html body .na-hero.fd-hero .fd-actions .button{min-height:40px!important;padding:0 16px!important;font-size:14px!important;border-radius:12px!important}
html body .na-hero.fd-hero :is(.fd-mode,.fd-why){font-size:12.5px!important;margin:8px 0 0!important}
html body .na-hero.fd-hero>.fd-upd{grid-area:upd;font-size:12px!important;margin:8px 0 0!important;opacity:.75}
html body .na-hero.fd-hero>.fd-wait{grid-column:1/-1;font-size:14px!important;margin:4px 0 0!important}
html body .na-hero.fd-hero>.fd-actions,html body .na-hero.fd-hero>div:not([class]){grid-column:1/-1}
@media (max-width:860px){html body .na-hero.fd-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "hello" "ok" "fig" "cta" "upd";padding:18px!important}html body .na-hero.fd-hero>.fd-cta-block{padding:12px 0 0!important;border-left:0!important;border-top:1px solid rgba(255,255,255,.14)!important}html body .na-hero.fd-hero .fd-amount{font-size:28px!important}}
html body .na-hero.fd-hero .fd-figures p.fd-amount{font-size:32px!important}
html body .na-hero.fd-hero .fd-figures .fd-balance p.fd-amount{font-size:24px!important}
@media (max-width:860px){html body .na-hero.fd-hero .fd-figures p.fd-amount{font-size:28px!important}}
/* rc106 : en-tête « Suivi de votre crédit » — compact, un seul solde, espace en dessous */
html body .na-hero.fd-hero.fd-hero2{display:block!important;padding:18px 22px 16px!important;margin:0 0 24px!important;min-height:0!important}
html body .fd-hero2 .fd-hero-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 2px!important}
html body .fd-hero2 .fd-hero-top .na-kicker{font-size:11.5px!important;margin:0!important;letter-spacing:.12em}
html body .fd-hero2 .fd-ref{font-size:12px!important;padding:4px 10px!important}
html body .fd-hero2 .fd-hello{font-size:20px!important;line-height:1.2!important;margin:0 0 4px!important}
html body .fd-hero2 .fd-approved{font-size:12.5px!important;margin:0 0 6px!important;opacity:.9}
html body .fd-hero2 .fd-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:24px;align-items:center;margin-top:10px}
html body .fd-hero2 .fd-figure p{margin:0!important}
html body .fd-hero2 .fd-label{font-size:12.5px!important;opacity:.85}
html body .fd-hero2 .fd-figure p.fd-amount{font-size:30px!important;line-height:1.1!important;margin:2px 0 4px!important;color:#fff!important;font-weight:800!important;letter-spacing:-.02em}
html body .fd-hero2 .fd-sub{font-size:12.5px!important;line-height:1.45!important;opacity:.8}
html body .fd-hero2 .fd-cta-block{margin:0!important;padding:0 0 0 22px!important;border:0!important;border-left:1px solid rgba(255,255,255,.16)!important}
html body .fd-hero2 .fd-cta-block h2{font-size:15px!important;margin:0 0 8px!important}
html body .fd-hero2 .fd-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0!important}
html body .fd-hero2 .fd-actions .button{min-height:38px!important;padding:0 14px!important;font-size:13.5px!important;border-radius:11px!important}
html body .fd-hero2 :is(.fd-mode,.fd-why){font-size:12px!important;margin:6px 0 0!important;opacity:.85}
html body .fd-hero2 .fd-upd{font-size:11.5px!important;margin:12px 0 0!important;opacity:.7}
@media (max-width:860px){html body .fd-hero2 .fd-main{grid-template-columns:minmax(0,1fr);gap:14px}html body .fd-hero2 .fd-cta-block{padding:12px 0 0!important;border-left:0!important;border-top:1px solid rgba(255,255,255,.16)!important}html body .fd-hero2 .fd-actions .button{flex:1 1 auto}}
html body .fd-hero2 .fd-actions .button:disabled{opacity:.5!important;cursor:not-allowed!important;filter:saturate(.6)}
