/* Futdados Charts — design 2026 */
.fdc {
	--fdc-accent: #15803d;      /* vert FutDados, marque et série principale */
	--fdc-accent-soft: #a7d3b5; /* barres secondaires */
	--fdc-accent-tint: #ecf6ef;
	--fdc-surface: #ffffff;
	--fdc-sunken: #f4f5f3;
	--fdc-line: #e7e8e4;
	--fdc-ink: #161616;
	--fdc-ink-2: #5c5b56;
	--fdc-ink-3: #6f6e69;
	--fdc-link: #0f6b33;
	position: relative;
	margin: 2em auto;
	padding: 0;
	max-width: 760px;
	color: var(--fdc-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}
.fdc *, .fdc *::before, .fdc *::after { box-sizing: border-box; }
.fdc-root {
	background: var(--fdc-surface);
	border: 1px solid var(--fdc-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 16, .04), 0 8px 24px rgba(16, 24, 16, .06);
	overflow: hidden;
}

/* En-tête */
.fdc-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px 18px; }
.fdc-head-crest { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; background: var(--fdc-sunken); display: grid; place-items: center; }
.fdc-head-crest img { max-width: 38px; max-height: 38px; }
.fdc-head-txt { flex: 1; min-width: 0; }
.fdc-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fdc-accent); }
.fdc-name { display: block; margin: 2px 0 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--fdc-ink); }
.fdc-name-sm { font-size: 24px; }
.fdc-meta { display: block; margin-top: 4px; font-size: 14px; color: var(--fdc-ink-2); }

/* Chiffres clés */
.fdc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 24px 20px; }
.fdc-kpi { background: var(--fdc-sunken); border-radius: 12px; padding: 12px 12px 10px; }
.fdc-kpi-v { display: block; font-size: 26px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; }
.fdc-kpi-l { display: block; margin-top: 4px; font-size: 12px; color: var(--fdc-ink-2); }
.fdc-kpi.is-main { background: var(--fdc-accent); color: #fff; }
.fdc-kpi.is-main .fdc-kpi-l { color: rgba(255, 255, 255, .85); }

/* Sections */
.fdc-section { padding: 18px 24px 4px; border-top: 1px solid var(--fdc-line); }
.fdc-sub { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--fdc-ink); }
.fdc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fdc-section-head .fdc-sub { margin: 0; }

/* Tableaux */
.fdc-table-wrap { overflow-x: auto; }
.fdc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 8px; }
.fdc-table th { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--fdc-ink-3); text-align: right; border-bottom: 1px solid var(--fdc-line); white-space: nowrap; background: none; text-transform: none; letter-spacing: 0; }
.fdc-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--fdc-line); background: none; }
.fdc-table tr:last-child td { border-bottom: 0; }
.fdc-table th:first-child, .fdc-table td:first-child, .fdc-table .fdc-club, .fdc-table .fdc-left { text-align: left; }
.fdc-table .fdc-total td { font-weight: 700; border-top: 1px solid var(--fdc-ink); border-bottom: 0; }
.fdc-table .fdc-crest { width: 40px; padding: 6px 4px 6px 0; }
.fdc-img { max-width: 28px; max-height: 28px; width: auto; height: auto; vertical-align: middle; display: inline-block; }
.fdc-table a, .fdc-club a { color: var(--fdc-link); text-decoration: none; font-weight: 600; }
.fdc-table a:hover { text-decoration: underline; }
.fdc-club-name { font-weight: 600; }
.fdc-share { display: block; height: 4px; margin-top: 6px; background: var(--fdc-sunken); border-radius: 2px; overflow: hidden; }
.fdc-share > i { display: block; height: 100%; background: var(--fdc-accent); border-radius: 2px; }
.fdc-strong { font-weight: 700; }
.fdc-muted { color: var(--fdc-ink-2); }

/* Sélecteur segmenté */
.fdc-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--fdc-sunken); border-radius: 10px; }
.fdc-tab { border: 0; background: transparent; color: var(--fdc-ink-2); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.3; min-height: 32px; }
.fdc-tab:hover { color: var(--fdc-ink); }
.fdc-tab[aria-selected="true"] { background: var(--fdc-surface); color: var(--fdc-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.fdc-tab:focus-visible { outline: 2px solid var(--fdc-accent); outline-offset: 2px; }
.fdc-tabbed > .fdc-tabs { margin-bottom: 8px; }
.fdc-block + .fdc-block { margin-top: 16px; }

/* Graphiques */
.fdc-chart { padding: 4px 0 0; }
.fdc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fdc-grid { stroke: var(--fdc-line); stroke-width: 1; stroke-dasharray: 2 4; }
.fdc-axis { stroke: #cfd0cb; stroke-width: 1; }
.fdc-cross { stroke: #9a9993; stroke-width: 1; stroke-dasharray: 3 3; }
.fdc-tick { fill: var(--fdc-ink-3); font-size: 11px; }
.fdc-val { fill: var(--fdc-ink); font-size: 11px; font-weight: 700; }
.fdc-val-hi { fill: var(--fdc-accent); font-size: 12px; font-weight: 800; }
.fdc-mark { transition: opacity .15s; }
.fdc-svg:hover .fdc-mark { opacity: .9; }
.fdc-pie-total { fill: var(--fdc-ink); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.fdc-pie-wrap { display: flex; align-items: center; gap: 24px; padding: 4px 0 8px; flex-wrap: wrap; }
.fdc-pie-wrap .fdc-svg { width: 200px; flex: 0 0 200px; }
.fdc-legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--fdc-ink-2); }
.fdc-legend-v { flex-direction: column; flex: 1; min-width: 200px; gap: 0; }
.fdc-legend-v li { padding: 7px 0; border-bottom: 1px solid var(--fdc-line); }
.fdc-legend-v li:last-child { border-bottom: 0; }
.fdc-legend li { display: flex; align-items: center; gap: 10px; margin: 0; }
.fdc-legend .fdc-img { max-width: 22px; max-height: 22px; }
.fdc-lg-name { color: var(--fdc-ink); flex: 1; font-weight: 600; }
.fdc-lg-val { white-space: nowrap; }
.fdc-sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }

.fdc-details { margin: 4px 0 12px; font-size: 14px; }
.fdc-details summary { cursor: pointer; color: var(--fdc-link); font-weight: 600; padding: 6px 0; list-style-position: inside; }

.fdc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--fdc-line); background: var(--fdc-sunken); font-size: 12px; color: var(--fdc-ink-2); }
.fdc-brand { font-weight: 800; letter-spacing: -.01em; color: var(--fdc-accent); }

.fdc-tip { position: absolute; z-index: 5; pointer-events: none; background: #161616; color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); white-space: nowrap; }
.fdc-tip[hidden] { display: none; }
.fdc-static { display: block; width: 100%; height: auto; }
.fdc-missing { color: #b32d2e; font-size: .9em; }

@media (max-width: 600px) {
	.fdc { font-size: 14px; }
	.fdc-head { padding: 18px 16px 14px; gap: 12px; }
	.fdc-head-crest { width: 48px; height: 48px; flex-basis: 48px; }
	.fdc-name { font-size: 22px; }
	.fdc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; }
	.fdc-kpi.is-main { grid-column: span 2; }
	.fdc-kpi-v { font-size: 22px; }
	.fdc-section { padding: 16px 16px 4px; }
	.fdc-foot { padding: 12px 16px; }
	.fdc-hide-sm { display: none; }
	.fdc-pie-wrap .fdc-svg { width: 170px; flex-basis: 170px; margin: 0 auto; }
}

/* Générique enrichi : chiffres clés variables, empilés, faits, tableau final */
.fdc-kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fdc-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fdc-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fdc-in { font-size: 11px; font-weight: 700; fill: #fff; }
.fdc-note { margin: 6px 0 14px; font-size: 13px; color: var(--fdc-ink-2); }
.fdc-notes { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: fdcn; }
.fdc-notes li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--fdc-line); counter-increment: fdcn; font-size: 14px; line-height: 1.45; color: var(--fdc-ink-2); }
.fdc-notes li::before { content: counter(fdcn); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 7px; background: var(--fdc-accent-tint); color: var(--fdc-accent); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.fdc-notes strong { display: block; color: var(--fdc-ink); font-weight: 700; }
.fdc-bracket { display: block; }
.fdc-round { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.fdc-round h5 { grid-column: 1 / -1; margin: 0 !important; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fdc-ink-3); }
.fdc-match { background: var(--fdc-sunken); border-radius: 10px; padding: 6px 10px; }
.fdc-round:first-child .fdc-match { background: var(--fdc-accent-tint); }
.fdc-match small { display: block; font-size: 11px; color: var(--fdc-ink-3); margin-bottom: 2px; }
.fdc-team { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--fdc-ink-2); padding: 2px 0; }
.fdc-team b { font-variant-numeric: tabular-nums; font-weight: 600; }
.fdc-team.is-win { color: var(--fdc-ink); font-weight: 700; }
.fdc-team.is-win b { color: var(--fdc-accent); font-weight: 800; }
@media (max-width: 560px) {
	.fdc-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Duel */
.fdc-duel-head { display: block; }
.fdc-duel-kicker { text-align: center; margin-bottom: 10px; }
.fdc-duel-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.fdc-duel-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fdc-duel-who.is-b { flex-direction: row-reverse; text-align: right; }
.fdc-duel-name { display: block; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--fdc-ink); text-decoration: none; }
.fdc-vs { font-size: 13px; font-weight: 700; color: var(--fdc-ink-3); text-transform: uppercase; }
.fdc-duel-stats { display: grid; gap: 10px; padding-bottom: 14px; }
.fdc-duel-line { display: grid; grid-template-columns: 56px 1fr minmax(90px, auto) 1fr 56px; align-items: center; gap: 10px; font-size: 14px; }
.fdc-duel-l { text-align: center; color: var(--fdc-ink-2); font-size: 13px; }
.fdc-duel-v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fdc-ink-2); }
.fdc-duel-line .fdc-duel-v:first-child { text-align: right; }
.fdc-duel-v.is-top { color: var(--fdc-ink); font-weight: 800; }
.fdc-duel-bar { display: flex; height: 8px; background: var(--fdc-sunken); border-radius: 4px; overflow: hidden; }
.fdc-duel-bar.is-a { justify-content: flex-end; }
.fdc-duel-bar i { display: block; height: 100%; border-radius: 4px; background: var(--fdc-accent-soft); }
.fdc-duel-bar.is-top i { background: var(--fdc-accent); }
/* Course au meilleur buteur */
.fdc-race { list-style: none; margin: 0 0 14px; padding: 0; }
.fdc-race li { display: grid; grid-template-columns: 24px 32px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fdc-line); }
.fdc-race-rank { font-weight: 700; color: var(--fdc-ink-3); text-align: center; }
.fdc-race li.is-lead .fdc-race-rank { color: var(--fdc-accent); }
.fdc-race-name a, .fdc-race-name > span { font-weight: 700; color: var(--fdc-ink); text-decoration: none; }
.fdc-race-name small { display: block; font-size: 12px; color: var(--fdc-ink-2); }
.fdc-race-g { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fdc-race .fdc-img { max-width: 28px; max-height: 28px; }
/* Hub (cartes joueurs, rendu serveur) */
.fdc-hub { margin: 1.5em 0; font-family: inherit; }
.fdc-hub-title { margin: 0 0 10px; }
.fdc-hub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.fdc-hub li a, .fdc-hub li > div { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e7e8e4; border-radius: 12px; background: #fff; color: #161616; text-decoration: none; }
.fdc-hub li a:hover { border-color: #15803d; }
.fdc-hub-crest img { max-width: 32px; max-height: 32px; display: block; margin: auto; }
.fdc-hub-txt strong { display: block; font-size: 15px; }
.fdc-hub-txt small, .fdc-hub-n small { display: block; font-size: 11px; color: #5c5b56; }
.fdc-hub-n { text-align: right; }
.fdc-hub-n b { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
	.fdc-duel-name { font-size: 16px; }
	.fdc-duel-line { grid-template-columns: 44px 1fr 72px 1fr 44px; gap: 6px; font-size: 13px; }
	.fdc-duel-who { flex-direction: column; text-align: center; }
	.fdc-duel-who.is-b { flex-direction: column; text-align: center; }
}

.fdc-kpis-in { padding: 0 0 14px; }
