/* Petit récapitulatif des pièces, dans l'aside du questionnaire existant. */
.rp-pieces { --rp-navy: #0b1f33; margin-top: 14px; border-top: 1px solid #e4e9ef; color: var(--rp-navy); }
.rp-pieces[hidden] { display: none !important; }
.rp-pieces-details { padding-top: 10px; }
.rp-pieces-resume { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0; cursor: pointer; list-style: none; }
.rp-pieces-resume::-webkit-details-marker { display: none; }
.rp-pieces-resume::after { content: '+'; flex: 0 0 auto; width: 20px; font-size: 18px; color: #657489; text-align: center; }
.rp-pieces-details[open] > .rp-pieces-resume::after { content: '−'; }
.rp-pieces-resume:focus-visible { outline: 2px solid #4169a5; outline-offset: 4px; border-radius: 5px; }
.rp-pieces-titre { margin-right: auto; font-size: 14px; font-weight: 800; line-height: 1.3; }
.rp-pieces-montant { flex-shrink: 0; padding: 4px 7px; border-radius: 6px; background: #f1f4f8; color: #526177; font-size: 11px; font-weight: 750; white-space: nowrap; }
.rp-pieces-chiffrees .rp-pieces-montant { background: #eaf5f0; color: #176651; }
.rp-pieces-corps { display: grid; gap: 11px; padding: 9px 0 2px; }
.rp-piece { display: grid; gap: 5px; min-width: 0; }
.rp-piece-libelle { font-size: 12px; font-weight: 750; }
.rp-piece-select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 8px 25px 8px 9px; border: 1px solid #d7e0e9; border-radius: 7px; background-color: #fff; color: var(--rp-navy); font: inherit; font-size: 12px; text-overflow: ellipsis; }
.rp-piece-select:focus-visible { outline: 2px solid #4169a5; outline-offset: 2px; }
.rp-piece-select:disabled { background-color: #f5f7fa; color: #617086; opacity: 1; cursor: default; }
.rp-piece-attente { color: #746034; font-size: 11px; line-height: 1.45; }
.rp-pieces-diagnostics { display: grid; gap: 6px; margin: 0; padding: 9px 10px 9px 24px; border-radius: 7px; background: #fff9ed; color: #74531d; font-size: 12px; line-height: 1.45; }
.rp-pieces-avertissement { margin: 0; color: #746034; font-size: 11px; line-height: 1.5; }
.rp-pieces-total { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid #e4e9ef; font-size: 12px; font-weight: 750; line-height: 1.4; }
.rp-pieces-total strong { color: #176651; font-size: 21px; line-height: 1.25; }
.rp-pieces-total small { color: #526177; font-size: 12px; font-weight: 600; }
.rp-pieces-note { margin: -4px 0 0; color: #718096; font-size: 10px; line-height: 1.4; }
.rp-pieces-actions { display: grid; gap: 8px; padding-top: 3px; }
.rp-pieces-ajouter, .rp-pieces-voir-panier { box-sizing: border-box; display: inline-flex; justify-content: center; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rp-navy); border-radius: 8px; background: var(--rp-navy); color: #fff; font: inherit; font-size: 13px; font-weight: 750; line-height: 1.35; cursor: pointer; }
.rp-pieces-voir-panier { border-color: #cbd8e5; background: #fff; color: var(--rp-navy); }
.rp-pieces-ajouter:disabled { border-color: #dce3ea; background: #eaf0f5; color: #7c8a9a; cursor: default; }
.rp-pieces-ajouter:focus-visible, .rp-pieces-voir-panier:focus-visible { outline: 2px solid #4169a5; outline-offset: 3px; }
.rp-pieces-note-panier, .rp-pieces-statut { margin: 0; font-size: 11px; line-height: 1.5; }
.rp-pieces-note-panier { color: #746034; }
.rp-pieces-statut { color: #526177; }
@media (max-width: 720px) {
  .rp-pieces { margin-top: 9px; }
  .rp-pieces-details { padding-top: 5px; }
  .rp-pieces-titre { font-size: 13px; }
  .rp-pieces-montant { font-size: 11px; }
  .rp-pieces-corps { gap: 10px; }
  .rp-piece-select { min-height: 44px; font-size: 16px; }
  .rp-pieces-total { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .rp-pieces-total strong { font-size: 19px; }
  .rp-pieces-total small { grid-column: 1 / -1; }
}
/* Le même bloc se déploie en bilan à la fin du questionnaire. */
.rp-projet { margin-top: 18px; border-top: 0; text-align: left; }
.rp-projet .rp-pieces-details { padding-top: 0; }
.rp-projet .rp-pieces-resume { margin-bottom: 12px; padding: 0 2px; }
.rp-projet .rp-pieces-titre { font-size: 16px; letter-spacing: -.02em; }
.rp-projet .rp-pieces-montant { padding: 6px 9px; border-radius: 100px; font-size: 11px; }
.rp-projet .rp-pieces-corps { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: start; gap: 22px; padding: 0; }
.rp-projet-configuration { display: grid; gap: 15px; min-width: 0; padding: 22px; border: 1px solid #dfe6ec; border-radius: 18px; background: #fff; }
.rp-projet-entete { display: flex; align-items: center; gap: 9px; }
.rp-projet-entete h3 { margin: 0; color: var(--rp-navy); font-size: 15px; line-height: 1.3; letter-spacing: -.02em; }
.rp-projet-etape { display: inline-flex; flex: 0 0 27px; align-items: center; justify-content: center; height: 27px; border-radius: 50%; background: #eef3f7; color: #547086; font-size: 10px; font-weight: 800; }
.rp-projet-modes { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #edf2f6; }
.rp-projet-mode { flex: 1 1 50%; min-height: 40px; padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; color: #596c7d; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.rp-projet-mode[aria-pressed="true"] { background: #fff; color: var(--rp-navy); box-shadow: 0 2px 8px #152b4112; }
.rp-projet-mode:disabled { opacity: .65; cursor: default; }
.rp-projet-mode:focus-visible, .rp-projet-prix:focus-visible { outline: 2px solid #4169a5; outline-offset: 3px; }
.rp-projet-aide { margin: -4px 0 0; color: #718096; font-size: 11px; line-height: 1.5; }
.rp-projet-achat { display: grid; gap: 7px; }
.rp-projet-prix-champ { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 0; border: 1px solid #cdd9e2; border-radius: 10px; background: #f8fafc; color: #64798a; }
.rp-projet-prix-champ:focus-within { border-color: #6189a2; box-shadow: 0 0 0 3px #376e9020; }
.rp-projet-prix { box-sizing: border-box; width: 100%; min-width: 0; height: 49px; padding: 10px 0 10px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--rp-navy); font: inherit; font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rp-projet-prix::placeholder { color: #a0afba; font-weight: 500; }
.rp-projet-prix[aria-invalid="true"] { color: #925f23; }
.rp-projet-pieces { display: grid; gap: 13px; margin-top: 3px; padding-top: 18px; border-top: 1px solid #e6ecf1; }
.rp-projet .rp-piece-select { min-height: 44px; padding: 10px 28px 10px 11px; border-radius: 9px; font-size: 12px; }
.rp-projet .rp-pieces-note { margin: 0; }
.rp-projet-bilan { display: grid; gap: 0; min-width: 0; padding: 23px; border-radius: 18px; background: #0b2237; color: #fff; box-shadow: 0 8px 24px #09203712; }
.rp-bilan-surtitre { margin: 0 0 22px; color: #b5c6d2; font-size: 11px; line-height: 1.4; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.rp-bilan-lignes { display: grid; gap: 12px; margin: 0; }
.rp-bilan-ligne, .rp-bilan-revente { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; font-size: 12px; line-height: 1.5; }
.rp-bilan-ligne dt { color: #c0ccd5; }
.rp-bilan-ligne dd { margin: 0; color: #f7fafc; font-weight: 650; font-variant-numeric: tabular-nums; }
.rp-bilan-total { display: grid; gap: 6px; margin: 18px 0; padding-top: 18px; border-top: 1px solid #ffffff29; }
.rp-bilan-total > span { color: #bacbd7; font-size: 12px; }
.rp-bilan-total strong { color: #fff; font-size: clamp(25px, 3.5vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rp-bilan-total small { color: #adc1d0; font-size: 11px; line-height: 1.45; }
.rp-bilan-revente { padding-top: 14px; border-top: 1px solid #ffffff29; }
.rp-bilan-revente > span { color: #c0ccd5; }
.rp-bilan-revente strong { color: #fff; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rp-bilan-source { margin: 4px 0 17px; color: #93adbf; font-size: 10px; line-height: 1.4; }
.rp-bilan-potentiel { display: grid; gap: 5px; padding: 16px; border: 1px solid #8cdbc12a; border-radius: 12px; background: #173f3e; color: #a2ebca; }
.rp-bilan-potentiel > span { color: #b8dfd0; font-size: 11px; font-weight: 750; }
.rp-bilan-potentiel strong { color: #b2f5d3; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rp-bilan-potentiel small { color: #abd2c4; font-size: 10px; line-height: 1.45; }
.rp-bilan-potentiel.is-incomplet { border-color: #ffffff1c; background: #20374b; }
.rp-bilan-potentiel.is-incomplet > span, .rp-bilan-potentiel.is-incomplet strong { color: #e2eaf0; }
.rp-bilan-potentiel.is-incomplet small { color: #aec2d0; }
.rp-bilan-potentiel.is-negatif { border-color: #f3cd8e3d; background: #4b3c2c; }
.rp-bilan-potentiel.is-negatif > span, .rp-bilan-potentiel.is-negatif strong { color: #ffddaa; }
.rp-bilan-potentiel.is-negatif small { color: #dfc5a1; }
.rp-bilan-attente { margin: 12px 0 0; color: #d7c59e; font-size: 10px; line-height: 1.5; }
.rp-projet-bilan .rp-pieces-actions { gap: 10px; padding-top: 20px; }
.rp-projet-bilan .rp-pieces-ajouter { min-height: 48px; padding: 12px 11px; border-color: #ecf8f3; border-radius: 10px; background: #ecf8f3; color: #102d3a; font-size: 12px; box-shadow: 0 3px 9px #00000018; }
.rp-projet-bilan .rp-pieces-ajouter:hover:not(:disabled) { background: #d8f3e7; border-color: #d8f3e7; }
.rp-projet-bilan .rp-pieces-ajouter:disabled { background: #324a5d; border-color: #324a5d; color: #a7bac9; box-shadow: none; }
.rp-projet-bilan .rp-pieces-note-panier { color: #a7bdce; font-size: 10px; text-align: center; }
.rp-projet-bilan .rp-pieces-statut { color: #c0eedb; text-align: center; }
@media (max-width: 720px) {
  .rp-projet .rp-pieces-corps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rp-projet .rp-pieces-titre { font-size: 15px; }
  .rp-projet .rp-pieces-montant { font-size: 10px; padding: 5px 7px; }
  .rp-projet-configuration, .rp-projet-bilan { padding: 18px; border-radius: 15px; }
  .rp-projet .rp-piece-select { font-size: 16px; }
  .rp-projet-mode { min-height: 44px; font-size: 13px; }
  .rp-bilan-total strong { font-size: 30px; }
  .rp-projet-bilan .rp-pieces-ajouter { font-size: 13px; }
}
