.jlb-irl-wrap, .jlb-irl-wrap * { box-sizing: border-box; }
.jlb-irl-wrap { max-width: 980px; margin: 30px auto; font-family: inherit; color: #2b2b2b; }
.jlb-irl-card { background: #fff; border: 1px solid #ead8e2; border-radius: 18px; box-shadow: 0 10px 28px rgba(114, 38, 77, 0.08); padding: 26px; margin-bottom: 24px; }
.jlb-irl-title { color: #72264D; font-size: 1.55rem; line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.jlb-irl-subtitle { color: #666; font-size: 0.98rem; line-height: 1.6; margin: 0 0 22px; }
.jlb-irl-update-badge { display: inline-flex; width: fit-content; margin: 0 0 16px; padding: 5px 10px; border-radius: 999px; background: #F2E5EB; border: 1px solid #ead8e2; color: #72264D; font-size: 0.78rem; font-weight: 700; line-height: 1.2; }
.jlb-irl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jlb-irl-field { display: flex; flex-direction: column; gap: 7px; }
.jlb-irl-field-full { grid-column: 1 / -1; }
.jlb-irl-field label { font-weight: 600; color: #3a3a3a; font-size: 0.94rem; }
.jlb-irl-field input, .jlb-irl-field select, .jlb-irl-field textarea { width: 100%; border: 1px solid #d9c5d0; border-radius: 12px; padding: 12px 13px; font-size: 1rem; background: #fff; color: #222; outline: none; transition: border-color .2s, box-shadow .2s; }
.jlb-irl-field input[readonly] { background: #f8f3f6; color: #72264D; font-weight: 700; cursor: default; }
.jlb-irl-field input:focus, .jlb-irl-field select:focus, .jlb-irl-field textarea:focus { border-color: #72264D; box-shadow: 0 0 0 3px rgba(114, 38, 77, 0.12); }
.jlb-irl-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.jlb-irl-btn { appearance: none; border: 0; border-radius: 6px; padding: 13px 20px; font-size: 0.98rem; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.jlb-irl-btn-primary { background: #72264D; color: #fff; box-shadow: 0 8px 18px rgba(114, 38, 77, 0.22); }
.jlb-irl-btn-secondary { background: #B66F91; color: #fff; }
.jlb-irl-btn:hover { transform: translateY(-1px); }
.jlb-irl-result { display: none; background: #F2E5EB; border-left: 5px solid #72264D; border-radius: 14px; padding: 18px; margin-top: 22px; }
.jlb-irl-result.is-visible { display: block; }
.jlb-irl-result h3 { color: #72264D; margin: 0 0 14px; font-size: 1.2rem; }
.jlb-irl-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jlb-irl-kpi { background: #fff; border-radius: 13px; padding: 14px; border: 1px solid rgba(114, 38, 77, 0.12); }
.jlb-irl-kpi span { display: block; color: #666; font-size: 0.82rem; margin-bottom: 4px; }
.jlb-irl-kpi strong { display: block; color: #222; font-size: 1.15rem; }
.jlb-irl-kpi-main strong { color: #72264D; font-size: 1.28rem; }
.jlb-irl-note { margin-top: 14px; font-size: 0.9rem; color: #555; line-height: 1.6; }
.jlb-irl-table-wrap { overflow-x: auto; overflow-y: hidden; border-radius: 14px; border: 1px solid #ead8e2; background: #fff; }
.jlb-irl-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; margin: 0; }
.jlb-irl-table th { background: #72264D; color: #fff; text-align: left; padding: 13px; font-size: 0.92rem; }
.jlb-irl-table td { padding: 13px; border-bottom: 1px solid #f1e6ec; font-size: 0.94rem; }
.jlb-irl-table tr:last-child td { border-bottom: 1px solid #f1e6ec; }
.jlb-irl-letter { display: none; margin-top: 22px; }
.jlb-irl-letter.is-visible { display: block; }
.jlb-irl-letter-box { background: #fff; border: 1px solid #ead8e2; border-radius: 14px; padding: 18px; white-space: pre-wrap; line-height: 1.65; font-size: 0.96rem; color: #222; margin-top: 18px; }
.jlb-irl-alert { display: none; margin-top: 12px; background: #fff5f7; border: 1px solid #e9bdca; color: #72264D; border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; line-height: 1.5; }
.jlb-irl-alert.is-visible { display: block; }
.jlb-irl-small { color: #777; font-size: 0.86rem; line-height: 1.5; margin-top: 10px; }
@media (max-width: 760px) { .jlb-irl-card { padding: 20px; } .jlb-irl-grid, .jlb-irl-result-grid { grid-template-columns: 1fr; } .jlb-irl-title { font-size: 1.32rem; } .jlb-irl-btn { width: 100%; } .jlb-irl-field-full { grid-column: auto; } }

/* Mention informative DPE, affichée avant la génération de lettre. */
.jlb-irl-dpe-note { margin: 10px 0 0; font-size: 0.87rem; line-height: 1.5; color: #555; }
.jlb-irl-dpe-note strong { color: #72264D; }
.jlb-irl-dpe-note + .jlb-irl-actions { margin-top: 12px; }
