/* Rapport imprimable — visible uniquement à l'impression */
@page { size: A4 portrait; margin: 0; }

@media print {
  html, body { background: #fff !important; }
  #app, dialog, .toast { display: none !important; }
  #report { display: block !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.rp-page {
  width: 210mm; height: 297mm; padding: 11mm 12mm 9mm; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4.2mm; font-size: 9.6pt; color: #16161d; background: #fff;
  page-break-after: always; break-after: page;
}
.rp-page:last-child { page-break-after: auto; break-after: auto; }
.rp-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 3mm; border-bottom: 2px solid #e4005e; }
.rp-logo { height: 11mm; width: auto; }
.rp-head-r { text-align: right; }
.rp-doc { font-family: var(--display); font-weight: 600; font-size: 11pt; }
.rp-meta { color: #646876; font-size: 8.5pt; }

.rp-hero { background: linear-gradient(115deg, #111117, #2a1240); color: #fff; border-radius: 4mm; padding: 6mm 7mm; display: grid; grid-template-columns: 1fr 1.3fr; gap: 6mm; align-items: center; }
.rp-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 7.5pt; opacity: .7; }
.rp-hero h1 { font-size: 19pt; line-height: 1.1; margin-top: 1mm; }
.rp-title { font-family: var(--display); font-weight: 700; font-size: 14pt; line-height: 1.2; }
.rp-title .t { color: #1fb5c3; }
.rp-title .m { color: #ff3d8b; }
.rp-sub { opacity: .75; font-size: 8.5pt; margin-top: 1.5mm; }

.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.rp-kpis > div { border: 1px solid #e4e4ec; border-radius: 3mm; padding: 3mm 4mm; }
.rp-kpis b { display: block; font-family: var(--display); font-size: 15pt; color: #0d8a96; }
.rp-kpis span { color: #646876; font-size: 8.5pt; }

.rp-blocks { display: grid; grid-template-columns: 1.1fr .9fr 1.1fr; gap: 3mm; }
.rp-block { border: 1px solid #e4e4ec; border-radius: 3mm; overflow: hidden; display: flex; flex-direction: column; }
.rp-block h2 { color: #fff; font-size: 10.5pt; font-weight: 600; padding: 2mm 3.5mm; }
.bg-dark { background: #232634; } .bg-mag { background: #e4005e; } .bg-green { background: #138a5e; }
.bg-teal { background: #0d8a96; } .bg-purple { background: #622181; }
.rp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; padding: 2.5mm; flex: 1; }
.rp-tile { border-radius: 2.5mm; padding: 2.5mm 3mm; }
.rp-block > .rp-tile { margin: 2.5mm; flex: 1; }
.rp-tile .t { font-weight: 600; font-size: 9pt; }
.rp-tile .big { font-family: var(--display); font-weight: 700; font-size: 14.5pt; margin: .5mm 0; white-space: nowrap; }
.rp-tile .d { color: #646876; font-size: 7.8pt; line-height: 1.35; }
.rp-tile.thermal { background: #eff0f3; }
.rp-tile.elec { background: #e7f7f9; } .rp-tile.elec .big { color: #0d8a96; }
.rp-tile.mag { background: #fdebf3; text-align: center; } .rp-tile.mag .big { color: #e4005e; font-size: 20pt; }
.rp-tile.green { background: #e6f5ee; } .rp-tile.green .big { color: #138a5e; }
.rp-pill { display: inline-block; margin: 1.5mm 0; padding: 1mm 3mm; border-radius: 2mm; font-family: var(--display); font-weight: 700; font-size: 13pt; }
.rp-pill small { font: 500 7.8pt var(--font); color: #646876; }
.rp-pill.mag { background: #fbd3e4; color: #e4005e; }

.rp-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.rp-chart { border: 1px solid #e4e4ec; border-radius: 3mm; padding: 3mm 4mm; }
.rp-chart h3 { font-size: 10pt; margin-bottom: 1mm; }
.rp-chart .chart { max-height: 58mm; }
.rp-chart.wide .chart { max-height: 62mm; }
.rp-chart .keys { font-size: 8pt; margin-top: 1mm; }

.rp-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.rp-highlight > div { background: #f4f4f8; border-radius: 3mm; padding: 3mm 4mm; }
.rp-highlight span { display: block; color: #646876; font-size: 8.5pt; }
.rp-highlight b { font-family: var(--display); font-size: 13pt; color: #e4005e; }

.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.rp-table td { padding: 1.4mm 3mm; border-bottom: 1px dashed #e4e4ec; }
.rp-table td:last-child { text-align: right; white-space: nowrap; }
.rp-table tr.hl td { background: #f1eaf6; color: #622181; font-size: 10pt; }
.rp-note { color: #646876; font-size: 8pt; margin: 2mm 3.5mm; }
.rp-chart .rp-note { margin: 1mm 0 0; }

.rp-hyp { border: 1px solid #e4e4ec; border-radius: 3mm; padding: 3mm 4.5mm; background: #fafafd; }
.rp-hyp h3 { font-size: 10pt; margin-bottom: 1mm; }
.rp-hyp ul { margin: 0; padding-left: 4.5mm; font-size: 8.4pt; }
.rp-hyp li { margin: .6mm 0; }
.rp-src { font-size: 7.6pt; color: #646876; margin: 1.5mm 0 0; }

.rp-cta { border-left: 3px solid #e4005e; background: #fdebf3; padding: 3mm 4mm; border-radius: 0 3mm 3mm 0; font-size: 9pt; }

.rp-foot { margin-top: auto; border-top: 1px solid #e4e4ec; padding-top: 2.5mm; display: grid; gap: 1.2mm; }
.rp-warn { font-size: 7.2pt; color: #646876; line-height: 1.4; }
.rp-legal { font-size: 7.2pt; color: #3a3c48; }

.rp-co2note { font-size: 7.4pt; color: #138a5e; text-align: center; padding: 0 2.5mm 2mm; }
.rp-ref { display: grid; grid-template-columns: auto 1fr; gap: 5mm; align-items: center; border: 1px solid #f3c6da; background: #fdf1f6; border-radius: 3mm; padding: 3mm 5mm; }
.rp-ref img { height: 13mm; width: auto; }
.rp-ref .q { font-family: var(--display); font-weight: 600; font-size: 10.5pt; }
.rp-ref .nums { display: flex; gap: 5mm; flex-wrap: wrap; font-size: 8.5pt; color: #3a3c48; margin-top: .8mm; }
.rp-ref .nums b { font-family: var(--display); color: #e4005e; font-size: 11pt; }
.rp-fin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; padding: 2.5mm; }
.rp-fin > div { background: #f1eaf6; border-radius: 2.5mm; padding: 2.5mm 3mm; display: grid; }
.rp-fin span { font-size: 8.5pt; color: #3a3c48; font-weight: 600; }
.rp-fin b { font-family: var(--display); font-size: 13pt; color: #622181; }
.rp-fin b.t { color: #0d8a96; }
.rp-fin small { font-size: 7.6pt; color: #646876; }
.rp-fin > div.pos { background: #fdebf3; }
.rp-fin > div.pos b { color: #e4005e; }
.rp-table tr.bad td { background: #fdecec; color: #8a1c13; }
.rp-inaction { margin: 2.5mm; background: #232634; color: #fff; border-radius: 2.5mm; padding: 2.5mm 4mm; font-size: 9.5pt; }
.rp-inaction b { color: #ff6aa6; font-family: var(--display); font-size: 13pt; }
.rp-plan { font-size: 8.4pt; }
.rp-plan td { text-align: right; white-space: nowrap; padding: 1.3mm 2.2mm; }
.rp-plan td:first-child { text-align: left; }
.rp-plan tr.th td { color: #646876; font-weight: 600; font-size: 7.8pt; border-bottom: 1.5px solid #e4e4ec; }
