/* amhe.info · page Statistiques : jauges, tuiles, répartitions. Mobile d'abord. */

.jauge { height: 8px; background: var(--fond); border: 1px solid var(--filet); overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--lapis); }
.jauge--grande { height: 16px; border-color: var(--or-fonce); }
.jauge--grande span { background: var(--vermillon); }

.kpi { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--encre); box-shadow: 6px 6px 0 -1px var(--or); }
.kpi__nom { margin: 0; font: 600 var(--t-20)/1.3 var(--livre); }
.kpi__taux { margin: 8px 0 16px; font-family: var(--gothique); font-size: clamp(3.5rem, 14vw, 6rem); line-height: 1; color: var(--vermillon); font-variant-numeric: lining-nums tabular-nums; }
.kpi__def { margin: 16px 0 0; font-size: 1rem; line-height: 1.55; color: var(--texte-doux); max-width: 48em; }

.kpi .etats-barre { height: 16px; }
.kpi__legende { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); font-size: 1rem; }
.kpi__legende .etat { font-size: 1rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.kpi__legende b { margin-left: 4px; font-variant-numeric: lining-nums; }
.kpi__legende li > span { display: block; padding-left: 18px; font-size: var(--t-petit); color: var(--texte-doux); line-height: 1.4; }

.tuiles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tuile { padding: 16px; background: var(--surface); border: 1px solid var(--filet); display: flex; flex-direction: column; gap: 8px; }
.tuile p { margin: 0; }
.tuile__nom { font-weight: 600; font-size: var(--t-20); }
.tuile__nom a { color: var(--encre); text-decoration: none; }
.tuile__nom a:hover { color: var(--vermillon); text-decoration: underline; }
.tuile__taux { font-family: var(--gothique); font-size: var(--t-39); line-height: 1; color: var(--lapis-fonce); font-variant-numeric: lining-nums; }
.tuile__compte { font-size: 1rem; }
.tuile__def { font-size: var(--t-petit); line-height: 1.45; color: var(--texte-doux); }

.volumes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.volume { display: flex; flex-direction: column; padding-block: 12px; border-bottom: 1px solid var(--filet); }
.volume a { color: var(--encre); text-decoration: none; font-size: var(--t-20); }
.volume a:hover { color: var(--vermillon); }
.volume b { font-family: var(--gothique); font-size: var(--t-31); font-weight: 400; color: var(--lapis-fonce); margin-right: 4px; font-variant-numeric: lining-nums; }
.volume span { font-size: var(--t-petit); color: var(--texte-doux); }

.moyennes { margin: 16px 0 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.moyenne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--filet); }
.moyenne dt { font-size: 1rem; }
.moyenne dd { margin: 0; text-align: right; flex: none; max-width: 50%; }
.moyenne dd b { font-family: var(--gothique); font-size: var(--t-25); font-weight: 400; color: var(--lapis-fonce); font-variant-numeric: lining-nums tabular-nums; }
.moyenne dd span { display: block; font-size: 0.8125rem; color: var(--texte-doux); line-height: 1.3; }

.tableau-defile { overflow-x: auto; margin-top: 16px; }
.tableau-stats { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tableau-stats th { text-align: left; font-size: var(--t-petit); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--encre); vertical-align: bottom; }
.tableau-stats td { padding: 8px; border-bottom: 1px solid var(--filet); }
.tableau-stats td:not(:first-child), .tableau-stats th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.tableau-stats .manque { color: var(--vermillon); font-weight: 600; }

.repartitions { display: grid; gap: 32px; margin-top: 16px; }
.repartitions h3 { font-size: var(--t-20); margin: 0 0 8px; }
.repart { list-style: none; margin: 0; padding: 0; }
.repart li { display: grid; grid-template-columns: 8.5em 1fr 4em; align-items: center; gap: 12px; padding-block: 6px; font-size: 1rem; }
.repart__barre { position: relative; height: 12px; background: var(--fond); }
.repart__barre span { position: absolute; inset: 0 auto 0 0; background: var(--filet); }
.repart__barre .repart__fait { background: var(--lapis); }
.repart__n { text-align: right; font-size: var(--t-petit); color: var(--texte-doux); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .repartitions { grid-template-columns: 1fr 1fr; gap: 48px; } }
