/*
 * Rapport client (J1-E) et dossier partenaire (C6). Le rendu est conservé volontairement proche de l'original :
 * une version figée relit sa projection et se présente comme à sa conservation. Seules les couleurs et la police
 * suivent les tokens ; l'avis de démonstration reste encadré et lisible à l'impression.
 */

.report-frame { background: #fff; border: 1px solid var(--ln-line); border-radius: var(--ln-radius); padding: var(--sp-8); margin-top: var(--sp-4); }
.report-frame--version { border-color: var(--ln-line-strong); }
.report-toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-4); }
.report { max-width: 52rem; margin: 0 auto; color: #1a1a1a; font-size: var(--ln-text-base); line-height: 1.5; }
.report__notice { border: 2px solid #b7791f; background: var(--ln-warn-bg); color: var(--ln-warn); padding: 0.6rem 0.9rem; border-radius: var(--ln-radius-sm); margin: 0 0 var(--sp-4); }
.report__header { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--ln-ink); padding-bottom: var(--sp-4); }
.report__identity { flex: 1 1 14rem; }
.report__logo { max-height: 4.5rem; max-width: 14rem; display: block; margin-bottom: 0.5rem; }
.report__firm { margin: 0; }
.report__title-block { flex: 2 1 22rem; }
.report__title { font-size: var(--ln-text-xl); margin: 0 0 0.5rem; letter-spacing: -0.03em; }
.report__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.25rem 1rem; margin: 0; }
.report__meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #555; }
.report__meta dd { margin: 0; }
.report__section { margin-top: var(--sp-6); }
.report__section h2 { font-size: var(--ln-text-md); border-bottom: 1px solid #ccc; padding-bottom: 0.2rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.report__section h3 { font-size: var(--ln-text-base); margin: 1rem 0 0.4rem; }
.report__empty { color: #555; font-style: italic; }
.report__table { font-size: var(--ln-text-sm); }
.report__table th, .report__table td { border-bottom: 1px solid #ddd; }
.report__total th, .report__total td { font-weight: 600; }
.report__figures { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.report__figures li { margin: 0.2rem 0; }
.report__note { font-size: var(--ln-text-sm); color: #333; margin: 0.3rem 0; }
.report__limits li { margin: 0.2rem 0; }
.report__footer { margin-top: var(--sp-8); border-top: 1px solid #ccc; padding-top: 0.6rem; font-size: var(--ln-text-sm); color: #444; }
.report .diagram-wrap { background: none; border: 0; padding: 0; }
.report--partner .report__notice { border-color: var(--ln-accent); background: var(--ln-sky); color: var(--ln-ink); }

/* Lecture du schéma, repliée à l'écran (audit de présentation, 24 septembre 2026, priorité 7). */
.report__reading > summary { cursor: pointer; font-weight: 600; margin: var(--sp-3) 0; }

/* « L'essentiel » : quatre chiffres lus dans la projection (audit du 25 septembre 2026). */
.report__essentials { margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-6); border: 1px solid var(--ln-line-strong); border-radius: var(--ln-radius); background: var(--ln-soft); }
.report__essentials h2 { font-size: var(--ln-text-md); margin-bottom: var(--sp-3); }
.report__essentials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.report__essentials-grid dt { color: var(--ln-muted); font-size: var(--ln-text-sm); }
.report__essentials-grid dd { margin: var(--sp-1) 0 0; }
.report__essentials-grid strong { display: block; font-size: var(--ln-text-lg); font-variant-numeric: tabular-nums; }
.report__essentials-grid small { color: var(--ln-muted); }
@media (max-width: 760px) { .report__essentials-grid { grid-template-columns: 1fr 1fr; } }
.report__activity th { font-weight: 400; color: var(--ln-muted); }
@media print { .report__essentials { background: #fff; } .report__essentials-grid { grid-template-columns: repeat(4, 1fr); } }
