/* Fin de reprise et compte : hiérarchie commune, police et rouge du site.
   Le montant reste fourni par le serveur. Les détails se déplient en DOM natif. */
:root {
  --rp-encre: var(--bleu-nuit, #0B1F33); --rp-texte: #526174;
  --rp-fond: #f5f7fb; --rp-bord: #e3e8ef; --rp-bleu: #1762c4;
  --rp-vert: #13765b; --rp-dore: #996719; --rp-rouge: var(--primary, #E11D2E);
}
.rp-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; font-size: 11px; font-weight: 700; line-height: 1.4; padding: 6px 10px; border-radius: 30px; background: #edf4ff; color: #1557a5; overflow-wrap: anywhere; }
.rp-tag-green { background: #e5f6ee; color: #11664d; }

/* Une seule surface forte pour le prix ; le texte autour respire. */
.rp-estimate { margin: 16px 0; padding: 24px; background: var(--rp-bleu); border: 0; border-radius: 18px; line-height: 1.5; text-align: left; color: #fff; }
.rp-estimate .reprise-estimation-label { display: block; margin: 0; line-height: 1.3; font-size: 15px; font-weight: 650; color: #e4edff; }
.rp-estimate .reprise-estimation-montant { display: block; font-size: clamp(2.4rem, 7vw, 3.3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; color: #fff; margin: 10px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rp-estimate .range { color: #e4edff; font-size: 13px; line-height: 1.5; }
.rp-estimate .range strong { color: #fff; }
.rp-estimate .rp-estimate-note { color: #e4edff; font-size: 13px; font-weight: 400; line-height: 1.55; max-width: 55ch; margin: 10px 0 0; }
.rp-estimate small { display: block; margin-top: 8px; font-size: 12px; color: #e4edff; }
.rp-estimate-attente .reprise-estimation-montant { font-size: clamp(22px, 5vw, 28px); line-height: 1.3; letter-spacing: -.025em; }
.rp-estimate-verifiee { background: var(--rp-vert); }
.rp-estimate-verifiee .reprise-estimation-label, .rp-estimate-verifiee .rp-estimate-note { color: #e4f6ef; }
/* Première fourchette : la borne haute attire l’œil, les deux bornes restent lisibles. */
.rp-estimate.rp-estimate-initiale { margin: 12px 0; padding: 18px 0; background: #fff; border-radius: 0; border-top: 2px solid var(--rp-rouge); color: var(--rp-encre); }
.rp-estimate-initiale .reprise-estimation-label { color: var(--rp-texte); font-size: 13px; }
.rp-estimate-initiale .reprise-estimation-montant { color: var(--rp-encre); font-size: clamp(2rem, 6vw, 2.7rem); margin-top: 8px; }
.rp-estimate-initiale.rp-estimate-attente .reprise-estimation-montant { font-size: clamp(22px, 5vw, 28px); }
.rp-estimate-initiale .rp-estimate-fourchette { color: var(--rp-encre); font-size: 15px; font-weight: 650; line-height: 1.5; margin: 8px 0 0; }
.rp-estimate-initiale .rp-estimate-note { color: var(--rp-texte); font-size: 12px; margin-top: 4px; }
.reprise-estimation.rp-fin-hote { padding: 0; background: transparent; border: 0; border-radius: 0; }
.page-reprise #repriseEstimationActualiser { min-height:44px; padding:10px 0; border:0; background:transparent; color:var(--rp-texte); box-shadow:none; font-size:13px; font-weight:500; }
.page-reprise #repriseEstimationActualiser:hover { color:var(--rp-encre); text-decoration:underline; }

/* Disponibilité future : aucun champ de téléversement. */
.rp-photos-avenir { margin: 12px 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #697586; text-align: left; }
.rp-photos-avenir-titre { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.5; }
.rp-photos-avenir-titre > .ic { color: #697586; }
.rp-photos-avenir-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; background: #edf0f4; font-size: 10px; font-weight: 700; white-space: nowrap; }
.rp-photos-avenir > p { margin: 6px 0 0; color: inherit; font-size: 12px; line-height: 1.55; }

.rp-explain { margin-top: 12px; border: 0; border-bottom: 1px solid var(--rp-bord); border-radius: 0; background: transparent; text-align: left; }
.rp-explain > summary { min-height: 48px; padding: 14px 0; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--rp-encre); list-style: revert; }
.rp-explain[open] > summary { border-bottom: 0; }
.rp-explain > summary .ic { color: var(--rp-bleu); }
.rp-explain > summary:focus-visible { outline: 2px solid var(--rp-rouge); outline-offset: 3px; border-radius: 6px; }
.rp-details { padding: 0 0 16px; color: var(--rp-texte); font-size: 13px; line-height: 1.6; max-width: 70ch; }
.rp-explain .rp-details p { margin: 0 0 12px; color: var(--rp-texte); font-weight: 400; line-height: 1.6; }
.rp-explain .rp-details p:last-child { margin-bottom: 0; }
.rp-details .rs-points { margin: 0; padding-left: 18px; font-size: 13px; }

/* Le parcours détaillé se lit à la demande dans l’historique. */
.rp-timeline { margin: 12px 0 18px; padding: 0; list-style: none; text-align: left; }
.rp-timeline li { display: flex; align-items: flex-start; gap: 10px; position: relative; padding-bottom: 12px; }
.rp-timeline li:last-child { padding-bottom: 0; }
.rp-timeline li:not(:last-child)::before { content: ''; position: absolute; width: 1px; background: var(--rp-bord); top: 25px; bottom: 3px; left: 11px; }
.rp-timeline li > i, .rp-timeline-dot { width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid var(--rp-bord); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; color: var(--rp-texte); background: #fff; }
.rp-timeline li.done > i { color: var(--rp-vert); background: #e5f6ee; border-color: #c8e8da; }
.rp-timeline li.is-current .rp-timeline-dot { color: var(--rp-bleu); border-color: #b8d4fa; background: #edf4ff; font-weight: 700; }
.rp-timeline strong { display: block; font-size: 13px; color: var(--rp-encre); }
.rp-timeline li > div { min-width: 0; }
.rp-timeline li > div > span { display: block; color: var(--rp-texte); font-size: 12px; line-height: 1.5; margin-top: 3px; }

/* Le montant, pas une seconde carte, porte la couleur du dossier. */
.rs-dossier { padding: 0; border: 0; background: transparent; border-radius: 0; margin: 20px auto; color: var(--rp-encre); }
.rs-entete { margin-bottom: 14px; gap: 8px; }
.rs-titre { font-size: clamp(20px, 4vw, 25px); font-weight: 750; letter-spacing: -.035em; margin-bottom: 12px; }
.rs-reference { overflow-wrap: anywhere; font-size: 12px; letter-spacing: 0; color: #748194; }
.rs-dossier .rs-examen { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; padding: 0; border: 0; color: #5f6e80; font-size: 12px; line-height: 1.5; }
.rs-examen::before { content: ''; width: 6px; height: 6px; margin-top: 5px; flex: 0 0 6px; border-radius: 50%; background: var(--rp-bleu); }
.rs-dossier[data-etape="offre"] .rs-examen::before { background: var(--rp-vert); }
.rs-dossier .rs-variation { margin: 12px 0; padding: 10px 12px; border: 0; border-radius: 9px; background: #edf4ff; color: #20578f; font-size: 12px; line-height: 1.5; }
.rs-dossier .rs-variation-hausse { color: #11664d; background: #e8f6ef; }
.rs-dossier .rs-variation-baisse { color: #8a4c14; background: #fff1df; }
.rs-dossier .rs-validite { margin: 8px 0 0; line-height: 1.5; font-size: 12px; color: #64748b; }
.rs-souhait-initial { margin: 16px 0; padding-left: 12px; border-left: 2px solid var(--rp-bord); font-size: 13px; }
.rs-souhait-titre { color: var(--rp-texte); font-size: 12px; font-weight: 500; }
.rs-souhait-initial .rs-souhait-modele { margin: 4px 0; color: var(--rp-encre); font-weight: 650; overflow-wrap: anywhere; }
.rs-souhait-initial .rs-source { margin: 4px 0 0; }
.rs-dossier .rs-historique { margin-top: 8px; padding: 0; border: 0; border-bottom: 1px solid var(--rp-bord); }
.rs-historique > summary { color: #526174; min-height: 48px; }
.reprise-succes-details > summary { cursor: pointer; min-height: 44px; padding: 12px 0; box-sizing: border-box; }
.reprise-succes-details > summary:focus-visible { outline: 2px solid var(--rp-rouge); outline-offset: 3px; }
.rs-dossier .rs-chronologie { margin-top: 16px; }
.rs-dossier .rs-message.rp-estimate-note { margin-top: 10px; }
.rs-dossier .rp-estimate-initiale .rs-message.rp-estimate-note { margin-top: 4px; }
.page-reprise .reprise-suivi { padding: 24px; box-shadow: none; border: 1px solid var(--rp-bord); }
.page-reprise .reprise-suivi > h2 { font-family: var(--rp-police-offre, inherit); font-size: 24px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; }
.page-reprise .reprise-suivi-statut { display: inline-flex; font-size: 11px; font-weight: 650; color: #1557a5; background: #edf4ff; padding: 5px 9px; border-radius: 20px; }
.page-reprise .reprise-suivi-appareil { font-size: 16px; font-weight: 700; color: var(--rp-encre); }
.reprise-suivi-informations { color: var(--rp-texte); font-size: 12px; }
.reprise-suivi-informations summary { cursor: pointer; min-height: 44px; padding: 12px 0; box-sizing: border-box; }
.reprise-suivi-informations .reprise-suivi-reference strong { font-family: inherit; letter-spacing: 0; }
.reprise-suivi-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.reprise-suivi-actions .rs-retour-questionnaire { font-size: 11px; margin: 0; }
.reprise-suivi-actions .reprise-suivi-actualiser { font-size: 11px; min-height: 44px; padding: 10px; margin: 0; border: 0; background: transparent; }

/* Résultat du questionnaire uniquement : étapes de saisie intactes. */
.page-reprise .wiz-progress[hidden] { display: none; }
.page-reprise .reprise-chemin { gap: 12px; }
.page-reprise .reprise-chemin li { gap: 8px; font-size: 12px; }
.page-reprise .reprise-chemin-numero { flex-basis: 24px; height: 24px; font-size: 11px; }
.page-reprise .reprise-chemin li small { font-size: 11px; }
.page-reprise .step[data-step="11"] > h2 { color: var(--rp-encre); letter-spacing: -.035em; }
.page-reprise .step[data-step="11"] > .subtitle { font-size: 13px; line-height: 1.5; margin-bottom: 18px; max-width: 62ch; }
.page-reprise .step[data-step="11"] .result-card { padding: 12px 0; border: 0; background: transparent; border-radius: 0; margin: 0 0 10px; text-align: left; }
.page-reprise .step[data-step="11"] .result-card .model { font-size: 17px; color: var(--rp-encre); font-weight: 750; }
.page-reprise .step[data-step="11"] .result-card .sans-montant { margin-top: 6px; font-size: 14px; }
.page-reprise .step[data-step="11"] .result-card .range { font-size: 13px; line-height: 1.5; }
.page-reprise .step[data-step="11"] > .reprise-volet { border: 0; border-bottom: 1px solid var(--rp-bord); border-radius: 0; background: transparent; }
.page-reprise .step[data-step="11"] > .reprise-volet > summary { padding: 14px 0; font-size: 13px; color: var(--rp-texte); }
.page-reprise .step[data-step="11"] .result-actions { gap: 10px; margin-top: 18px; padding-top: 18px; }
.page-reprise .step[data-step="11"] .result-actions button { min-height: 44px; padding: 12px; font-size: 12px; }
.page-reprise .step[data-step="11"] .disclaimer { font-size: 12px; background: #edf4ff; padding: 12px; line-height: 1.5; }
.page-reprise .step[data-step="11"] .reprise-succes { background:transparent; color:var(--rp-vert); border:0; padding:0; margin:6px 0 20px; border-radius:0; font-size:13px; box-shadow:none; }
.page-reprise .reprise-succes .reprise-succes-titre { font-size:14px; margin:8px 0; }
.page-reprise .reprise-succes .reprise-lien-suivi { display:inline-flex; align-items:center; min-height:44px; margin:0; font-size:13px; }
.page-reprise .reprise-envoi-suivi .reprise-succes-titre,
.page-reprise .reprise-envoi-suivi .reprise-succes-details { display:none; }
.page-reprise .reprise-envoi-suivi .rs-dossier { margin:12px 0 4px; }
.page-reprise .reprise-envoi-suivi .rs-entete { margin-bottom:8px; }
.page-reprise .step[data-step="11"] .reprise-envoi-suivi .reprise-succes { display:inline-flex; flex-wrap:wrap; vertical-align:middle; margin:0 0 0 16px; }
.page-reprise .reprise-envoi-suivi .reprise-succes-lien { flex-basis:100%; }
.page-reprise .reprise-envoi-suivi #repriseEstimationActualiser { display:inline-flex; vertical-align:middle; font-size:12px; margin:0; }
.page-reprise .reprise-envoi-suivi .reprise-lien-suivi { font-size:12px; }
@media (max-width: 600px) {
  .rp-estimate { padding: 22px 20px; }
  .rs-dossier { margin-block: 16px; }
  .rs-entete { align-items: center; }
  .page-reprise .step[data-step="11"] > h2 { font-size: 24px; }
  .page-reprise .reprise-suivi { padding: 20px; }
}

/* Invitation professionnelle Rami conservée, consultable à la demande. */
.page-reprise .reprise-pro-volet { margin-top: 20px; color: var(--rp-texte); border-top: 1px solid var(--rp-bord); }
.page-reprise .reprise-pro-volet > summary { min-height: 48px; box-sizing: border-box; padding: 14px 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.page-reprise .reprise-pro-volet > summary:focus-visible { outline: 2px solid var(--rp-rouge); outline-offset: 3px; border-radius: 6px; }
