/* FC Comptable Pro — typographie et composants du cours
 * Indigo / violet, cartes claires, Plus Jakarta Sans (titres) + Inter (texte).
 */
:root {
	--fcc-ink: #5956E9;          /* brand (setting) */
	--fcc-accent: #8B5CF6;       /* accent (setting) */
	--fcc-dark: #14132B;
	--fcc-paper: #F7F6FC;
	--fcc-card: #FFFFFF;
	--fcc-rule: #E3E8F2;
	--fcc-text: #1E293B;
	--fcc-muted: #5B6682;
	--fcc-ok: #1F9D6B;
	--fcc-ok-bg: #ECFDF5;
	--fcc-bad: #DC3545;
	--fcc-bad-bg: #FEF2F2;
	--fcc-warn-bg: #FFF4EE;
	--fcc-tint: #EEF2FD;
	--fcc-serif: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fcc-sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fcc-radius: 14px;
	--fcc-shadow: 0 1px 2px rgba(15,27,51,.05), 0 8px 24px -12px rgba(15,27,51,.18);
}

/* ── leçon ───────────────────────────────────────────────────────────── */
.fcc-lesson { font-family: var(--fcc-sans); color: var(--fcc-text); font-size: 17px; line-height: 1.7; max-width: 760px; margin: 0 auto; }
.fcc-lesson p, .fcc-lesson li { font-size: inherit; line-height: inherit; }
.fcc-crumb { display: inline-block; font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fcc-ink); background: var(--fcc-tint); padding: 5px 12px; border-radius: 999px; margin: 0 0 14px !important; }
.fcc-lesson__title { font-family: var(--fcc-serif); font-weight: 800; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -.02em; color: var(--fcc-dark); margin: 0 0 22px !important; }
.fcc-lesson h3 { font-family: var(--fcc-serif); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--fcc-dark); margin: 38px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--fcc-rule); }
.fcc-lesson strong { color: var(--fcc-dark); font-weight: 600; }
.fcc-lesson ul, .fcc-lesson ol { padding-left: 1.3em; margin: .5em 0 1em; }
.fcc-lesson li { margin: .35em 0; }
.fcc-lesson li::marker { color: var(--fcc-ink); }
.fcc-lead { font-size: 19px !important; line-height: 1.6 !important; color: #334155; margin: 0 0 8px; }

.fcc-goals { background: #fff; border: 1px solid var(--fcc-rule); border-top: 3px solid var(--fcc-ink); border-radius: var(--fcc-radius); padding: 18px 22px 12px; margin: 0 0 26px; box-shadow: var(--fcc-shadow); }
.fcc-goals__t, .fcc-box__t { font-family: var(--fcc-serif); font-weight: 700; font-size: 13px !important; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px !important; }
.fcc-goals__t { color: var(--fcc-ink); }
.fcc-goals ul { list-style: none; padding: 0; margin: 0; }
.fcc-goals li { position: relative; padding-left: 28px; }
.fcc-goals li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--fcc-ok); border-bottom: 2px solid var(--fcc-ok); transform: rotate(-45deg); }

.fcc-table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--fcc-rule); border-radius: 12px; background: #fff; }
.fcc-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 !important; }
.fcc-table th { background: var(--fcc-tint); color: var(--fcc-dark); font-weight: 600; text-align: left; padding: 11px 14px; border: 0; }
.fcc-table td { padding: 10px 14px; border: 0; border-top: 1px solid var(--fcc-rule); vertical-align: top; }

.fcc-flow { list-style: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 !important; margin: 22px 0 !important; counter-reset: f; }
.fcc-flow li { margin: 0; background: #fff; border: 1px solid var(--fcc-rule); border-radius: 12px; padding: 12px 14px; counter-increment: f; font-size: 15px; }
.fcc-flow li strong { display: block; color: var(--fcc-ink); }
.fcc-flow li strong::before { content: counter(f) " · "; color: var(--fcc-accent); }
.fcc-flow li span { color: var(--fcc-muted); font-size: 14px; }

.fcc-box { border-radius: var(--fcc-radius); padding: 16px 20px; margin: 22px 0; border: 1px solid var(--fcc-rule); background: #fff; }
.fcc-box p { margin: 0 0 .5em; } .fcc-box p:last-child { margin-bottom: 0; }
.fcc-box ul { margin: 0; }
.fcc-box--cas { background: #F6F7FF; border-color: #DCDDFB; }
.fcc-box--cas .fcc-box__t { color: var(--fcc-ink); }
.fcc-box--piege { background: #FFF7F0; border-color: #FBD9BF; }
.fcc-box--piege .fcc-box__t { color: #B45309; }
.fcc-box--retenir { background: #FAF7FF; border-color: #E4D9FC; }
.fcc-box--retenir .fcc-box__t { color: #6D3FD6; }
.fcc-box--recap { background: linear-gradient(135deg, #EEF0FF, #F6F1FF); border-color: #DCD7FB; }
.fcc-box--recap .fcc-box__t { color: var(--fcc-ink); }
.fcc-box--recap p { color: var(--fcc-dark); font-weight: 500; }

.fcc-testez { margin: 26px 0; }
.fcc-testez > .fcc-box__t { color: var(--fcc-dark); }
.fcc-test { border: 1px solid var(--fcc-rule); border-radius: 12px; padding: 0; margin: 8px 0; background: #fff; overflow: hidden; }
.fcc-test summary { cursor: pointer; font-weight: 600; padding: 12px 16px 12px 44px; list-style: none; position: relative; color: var(--fcc-dark); }
.fcc-test summary::-webkit-details-marker { display: none; }
.fcc-test summary::before { content: "?"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--fcc-tint); color: var(--fcc-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.fcc-test[open] summary { border-bottom: 1px solid var(--fcc-rule); }
.fcc-test p { margin: 0 !important; padding: 12px 16px 14px; color: #334155; background: #FBFBFE; }

/* ── quiz : badge de niveau ──────────────────────────────────────────── */
.fcc-level { display: inline-block; vertical-align: middle; font: 600 11px/1 var(--fcc-sans); letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; margin: 0 10px 6px 0; background: var(--fcc-tint); color: #3F3CB8; }
.fcc-level--comp { background: #F3EEFF; color: #6B3FD1; }
.fcc-level--app { background: #FFF6E0; color: #7A5200; }

/* ── quiz : indice en 2 niveaux ──────────────────────────────────────── */
.fcc-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; font-family: var(--fcc-sans); }
.fcc-hint__btn { appearance: none; border: 1px solid #F1D9A0; background: #FFF6E0; color: #7A5200; font: 600 13.5px/1 var(--fcc-sans); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, opacity .15s; }
.fcc-hint__btn:hover:not(:disabled) { background: #FFEFC7; }
.fcc-hint__btn:disabled { opacity: .55; cursor: default; }
.fcc-hint__tip { flex-basis: 100%; margin: 4px 0 0 !important; padding: 10px 14px; border-radius: 10px; background: #FFFBF0; border: 1px solid #F6E6BF; color: #5C4200; font-size: 15px; }
.fcc-hint--done .fcc-hint__btn { display: none; }
.fcc-out { opacity: .35; pointer-events: none; text-decoration: line-through; }

/* ── quiz : explication ──────────────────────────────────────────────── */
.fcc-why { margin: 14px 0 6px; border: 1px solid #CDEBDD; background: var(--fcc-ok-bg); border-radius: 12px; padding: 14px 18px; font-family: var(--fcc-sans); font-size: 15.5px; line-height: 1.6; color: var(--fcc-text); }
.fcc-why__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.fcc-why__head strong { color: var(--fcc-ok); font-weight: 600; }
.fcc-why__dom { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--fcc-muted); }
.fcc-why__body strong { color: var(--fcc-dark); }
.fcc-exam-banner { font-family: var(--fcc-sans); margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--fcc-tint); color: #3F3CB8; font-size: 14.5px; font-weight: 500; }

/* ── results: score by domain ─────────────────────────────────────────── */
.fcc-bd { font-family: var(--fcc-sans); border: 1px solid var(--fcc-rule); border-radius: 18px; background: #fff; box-shadow: var(--fcc-shadow); padding: 20px 22px; margin: 0 0 22px; }
.fcc-bd__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--fcc-rule); padding-bottom: 12px; margin-bottom: 14px; }
.fcc-bd__head h3 { font-family: var(--fcc-serif); font-size: 20px; font-weight: 800; margin: 0; color: var(--fcc-dark); word-spacing: .06em; }
.fcc-bd__total strong { font-family: var(--fcc-serif); font-weight: 800; font-size: 30px; color: var(--fcc-bad); word-spacing: .06em; }
.fcc-bd--pass .fcc-bd__total strong { color: var(--fcc-ok); }
.fcc-bd__total span { color: var(--fcc-muted); margin-left: 8px; font-size: 14px; }
.fcc-bd__row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 2fr 70px; gap: 14px; align-items: center; padding: 7px 0; }
.fcc-bd__lab { font-size: 14.5px; color: var(--fcc-text); line-height: 1.3; }
.fcc-bd__w { display: block; font-size: 12px; color: var(--fcc-muted); }
.fcc-bd__track { height: 8px; background: #EFECE4; border-radius: 4px; position: relative; overflow: hidden; }
.fcc-bd__track::after { content: ""; position: absolute; left: 75%; top: -3px; bottom: -3px; width: 2px; background: var(--fcc-dark); opacity: .45; }
.fcc-bd__fill { height: 100%; border-radius: 4px; }
.fcc-bd__fill--ok { background: var(--fcc-ok); }
.fcc-bd__fill--warn { background: #F59E0B; }
.fcc-bd__fill--bad { background: var(--fcc-bad); }
.fcc-bd__num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fcc-bd__num small { display: block; font-weight: 400; color: var(--fcc-muted); font-size: 12px; }
.fcc-bd__num--ok { color: var(--fcc-ok); } .fcc-bd__num--warn { color: #B45309; } .fcc-bd__num--bad { color: var(--fcc-bad); }
.fcc-bd__foot { margin: 12px 0 0; font-size: 13.5px; color: var(--fcc-muted); }
@media (max-width: 560px) { .fcc-bd__row { grid-template-columns: 1fr 56px; } .fcc-bd__track { grid-column: 1 / -1; order: 3; } }


/* ── buttons (shortcodes) ─────────────────────────────────────────────── */
.fcc-btn { display: inline-block; font: 700 15px/1 var(--fcc-sans); padding: 13px 22px; border-radius: 999px; background: var(--fcc-accent); color: #fff !important; border: 1px solid var(--fcc-accent); box-shadow: 0 8px 20px -8px rgba(255,106,61,.6); text-decoration: none !important; cursor: pointer; }
.fcc-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.fcc-btn--ghost { background: #fff; color: var(--fcc-dark) !important; border-color: var(--fcc-rule); box-shadow: none; }
.fcc-btn--ghost:hover { background: var(--fcc-paper); }
.fcc-muted { color: var(--fcc-muted); }

/* ── [fcc_demo] ──────────────────────────────────────────────────────── */
.fcc-demo { font-family: var(--fcc-sans); color: var(--fcc-text); border: 1px solid var(--fcc-rule); border-radius: 20px; background: #fff; box-shadow: var(--fcc-shadow); padding: 22px 24px; max-width: 760px; }
.fcc-demo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fcc-demo__title { font-family: var(--fcc-serif); font-size: 20px; font-weight: 800; color: var(--fcc-dark); margin: 0; word-spacing: .06em; }
.fcc-demo__count { font-size: 13px; color: var(--fcc-muted); margin: 0; font-variant-numeric: tabular-nums; }
.fcc-demo__bar { height: 6px; border-radius: 3px; overflow: hidden; background: #EFECE4; margin: 12px 0 18px; }
.fcc-demo__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fcc-ink), var(--fcc-accent)); transition: width .3s; }
.fcc-demo__dom { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fcc-muted); margin: 0 0 6px; }
.fcc-demo__q { font-size: 18px; line-height: 1.5; color: var(--fcc-dark); font-weight: 600; margin: 0 0 14px; }
.fcc-demo__opts { display: grid; gap: 8px; }
.fcc-demo__opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; font: 400 15.5px/1.45 var(--fcc-sans); color: var(--fcc-text); background: #fff; border: 1px solid var(--fcc-rule); border-radius: var(--fcc-radius); padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.fcc-demo__opt:hover:not(:disabled) { border-color: var(--fcc-ink); background: var(--fcc-paper); }
.fcc-demo__opt:disabled { cursor: default; }
.fcc-demo__key { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 1px solid var(--fcc-rule); font-size: 12px; font-weight: 600; display: grid; place-items: center; color: var(--fcc-muted); }
.fcc-demo__opt.is-right { border-color: var(--fcc-ok); background: var(--fcc-ok-bg); }
.fcc-demo__opt.is-right .fcc-demo__key { background: var(--fcc-ok); border-color: var(--fcc-ok); color: #fff; }
.fcc-demo__opt.is-wrong { border-color: var(--fcc-bad); background: var(--fcc-bad-bg); }
.fcc-demo__opt.is-wrong .fcc-demo__key { background: var(--fcc-bad); border-color: var(--fcc-bad); color: #fff; }
.fcc-demo__opt.is-out { opacity: .38; text-decoration: line-through; }
.fcc-demo__tools { margin: 12px 0 0; }
.fcc-demo__link { background: none; border: 0; padding: 0; font: 600 14px var(--fcc-sans); color: var(--fcc-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fcc-demo__link:disabled { color: var(--fcc-muted); text-decoration: none; cursor: default; }
.fcc-demo__hint { margin-top: 10px; padding: 10px 14px; background: var(--fcc-warn-bg); border-left: 3px solid var(--fcc-accent); font-size: 14.5px; }
.fcc-demo__hint p { margin: 0; }
.fcc-demo__why { margin-top: 14px; }
.fcc-demo__verdict { font-weight: 600; margin: 0 0 6px; }
.fcc-demo__verdict.is-right { color: var(--fcc-ok); } .fcc-demo__verdict.is-wrong { color: var(--fcc-bad); }
.fcc-demo__expl { font-size: 15px; line-height: 1.6; padding: 10px 14px; background: var(--fcc-paper); border-radius: var(--fcc-radius); margin-bottom: 14px; }
.fcc-demo__score { font-family: var(--fcc-serif); margin: 0 0 8px; word-spacing: .06em; }
.fcc-demo__score strong { font-size: 44px; font-weight: 800; color: var(--fcc-dark); }
.fcc-demo__score span { color: var(--fcc-muted); font-size: 18px; margin-left: 8px; }
.fcc-demo__end { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ── [fcc_tableau_de_bord] ─────────────────────────────────────────────────── */
.fcc-dash { font-family: var(--fcc-sans); border: 1px solid var(--fcc-rule); border-radius: 20px; background: #fff; box-shadow: var(--fcc-shadow); padding: 22px 24px; }
.fcc-dash h3 { font-family: var(--fcc-serif); font-weight: 800; color: var(--fcc-dark); margin: 0; font-size: 22px; word-spacing: .06em; }
.fcc-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fcc-dash__kpis { display: flex; gap: 28px; flex-wrap: wrap; margin: 0 0 16px; }
.fcc-dash__kpis dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fcc-muted); }
.fcc-dash__kpis dd { margin: 0; font-family: var(--fcc-serif); font-weight: 800; font-size: 28px; color: var(--fcc-dark); word-spacing: .06em; }
.fcc-dash__kpis small { font-family: var(--fcc-sans); font-size: 14px; color: var(--fcc-muted); }
.fcc-dash__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fcc-dash__table th { text-align: left; font-weight: 600; color: var(--fcc-muted); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--fcc-rule); padding: 8px 6px; }
.fcc-dash__table td { border-bottom: 1px solid var(--fcc-rule); padding: 9px 6px; vertical-align: top; }
.fcc-dash__table .is-pass { color: var(--fcc-ok); } .fcc-dash__table .is-fail { color: var(--fcc-bad); }

@media print { .fcc-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .fcc-demo__bar i, .fcc-demo__opt { transition: none; } }

.fcc-dash__next { background: #FFF6E0; border-radius: 10px; padding: 10px 14px; color: #7A5200; }
.fcc-table td { white-space: normal; } .fcc-table td:last-child { white-space: nowrap; }
