/* Ma Juste Part — composants. Chargé après tokens.css ; n'utilise que les variables des jetons.
   Posez class="mjp" sur le conteneur de page. Version 2 : croisement du système Claude et du kit Perplexity. */
.mjp, .mjp * { box-sizing: border-box; }
.mjp { font-family: var(--font-texte); font-size: 20px; line-height: 1.55; color: var(--encre); }
.mjp h1, .mjp h2, .mjp h3, .mjp p { margin: 0; }
.mjp :focus-visible { outline: var(--focus-epaisseur) solid var(--focus); outline-offset: 3px; }
.mjp svg.mjp-ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mjp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typographie utilitaire */
.mjp-titre-1 { font-family: var(--font-titre); font-weight: 800; font-size: 36px; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.mjp-titre-2 { font-family: var(--font-titre); font-weight: 800; font-size: 28px; line-height: 1.28; letter-spacing: -0.01em; text-wrap: balance; }
.mjp-titre-3 { font-family: var(--font-titre); font-weight: 700; font-size: 23px; line-height: 1.3; }
.mjp-surtitre { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: 0.01em; color: var(--texte-2); }
.mjp-chapeau { font-size: 22px; line-height: 1.55; color: var(--texte-2); max-width: var(--largeur-lecture); }
.mjp-petit { font-size: 17px; line-height: 1.5; color: var(--texte-2); }
.mjp-accent { color: var(--vert-texte); }

/* Bouton : pilule, 64 px, verbe à la première personne */
.mjp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-3);
  min-height: var(--hauteur-bouton); padding: 0 var(--espace-6); border-radius: var(--rayon-bouton);
  font-family: var(--font-texte); font-size: 22px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; }
.mjp-btn--principal, .mjp-btn--valider { background: var(--vert-action); color: var(--sur-vert-action); }
.mjp-btn--secondaire { background: transparent; color: var(--encre); border-color: var(--encre); }
.mjp-btn--aide { background: var(--or); color: var(--sur-or); }
.mjp-btn--lien { background: transparent; color: var(--vert-texte); min-height: var(--cible-min); padding: 0 var(--espace-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.mjp-btn--retour { background: transparent; color: var(--vert-texte); min-height: var(--cible-min); padding: 0 var(--espace-2) 0 0; justify-content: flex-start; }
.mjp-btn--large { width: 100%; }
.mjp-btn:disabled { background: var(--surface-2); color: var(--texte-2); border-color: var(--ligne); cursor: not-allowed; }
.mjp-btn__sous { display: block; font-size: 17px; font-weight: 700; color: var(--texte-2); text-align: center; margin-top: var(--espace-2); }

/* En-tête d'étape : Retour + camembert + position écrite */
.mjp-etape { display: flex; flex-direction: column; gap: var(--espace-3); }
.mjp-etape__haut { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-4); }
.mjp-cam { display: block; flex: none; overflow: visible; }
.mjp-cam__part { fill: var(--surface-2); stroke: var(--fond); stroke-width: 2.5; stroke-linejoin: round; }
.mjp-cam__part--faite { fill: var(--vert); }
.mjp-cam__part--encours { fill: var(--vert); }
.mjp-cam-legende { display: flex; flex-direction: column; align-items: center; gap: var(--espace-1); text-align: center; }
.mjp-cam-legende b { font-size: 19px; }

/* Choix en grosses cartes (Oui / Non / Je ne sais pas, ou liste) */
.mjp-choix { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-3); }
.mjp-choix legend { font-family: var(--font-titre); font-weight: 800; font-size: 28px; line-height: 1.28; margin-bottom: var(--espace-4); padding: 0; }
.mjp-choix__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--espace-3); }
.mjp-choix--liste .mjp-choix__options { grid-template-columns: 1fr; }
.mjp-choix label { display: flex; align-items: center; gap: var(--espace-4); min-height: var(--hauteur-choix); padding: var(--espace-3) var(--espace-5);
  border: 2px solid var(--ligne); border-radius: var(--rayon-choix); background: var(--surface); font-weight: 700; font-size: 22px; line-height: 1.25; cursor: pointer; }
.mjp-choix input { width: 30px; height: 30px; margin: 0; accent-color: var(--vert-action); flex: none; }
.mjp-choix label:has(input:checked) { border-color: var(--vert-action); border-width: 3px; background: var(--vert-doux); padding-left: calc(var(--espace-5) - 1px); }
.mjp-choix label:has(input:focus-visible) { outline: var(--focus-epaisseur) solid var(--focus); outline-offset: 3px; }
.mjp-choix input:focus-visible { outline: none; }
.mjp-choix__sous { display: block; font-weight: 400; font-size: 18px; color: var(--texte-2); }
.mjp-choix label.mjp-choix--nsp { border-style: dashed; }
.mjp-choix label.mjp-choix--nsp:has(input:checked) { border-style: solid; }

/* Compteur − / + */
.mjp-compteur { display: flex; flex-direction: column; gap: var(--espace-2); }
.mjp-compteur__libelle { font-weight: 700; }
.mjp-compteur__ligne { display: inline-flex; align-items: stretch; border: 2px solid var(--ligne); border-radius: var(--rayon-champ); background: var(--surface); width: max-content; }
.mjp-compteur button { width: var(--hauteur-bouton); min-height: var(--hauteur-bouton); border: 0; background: var(--surface-2); color: var(--encre); display: grid; place-items: center; cursor: pointer; }
.mjp-compteur button:first-child { border-radius: 10px 0 0 10px; }
.mjp-compteur button:last-child { border-radius: 0 10px 10px 0; }
.mjp-compteur output { min-width: 4.2em; display: grid; place-items: center; font-family: var(--font-titre); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.mjp-compteur__aide { font-size: 17px; color: var(--texte-2); }

/* Champ guidé : libellé au-dessus, unité dans le champ, « Où le trouver ? » à côté */
.mjp-champ { display: flex; flex-direction: column; gap: var(--espace-2); }
.mjp-champ > label { font-weight: 700; font-size: 20px; }
.mjp-champ__ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--espace-3); align-items: stretch; }
.mjp-champ__saisie { display: flex; align-items: center; min-height: var(--hauteur-bouton); border: 2px solid var(--encre); border-radius: var(--rayon-champ); background: var(--surface); padding: 0 var(--espace-5); }
.mjp-champ__saisie:focus-within { outline: var(--focus-epaisseur) solid var(--focus); outline-offset: 3px; }
.mjp-champ__saisie input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--encre); font-family: var(--font-texte); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; }
.mjp-champ__saisie input:focus { outline: none; }
.mjp-champ__unite { font-weight: 700; font-size: 24px; color: var(--texte-2); }
.mjp-champ__ou { display: flex; flex-direction: column; justify-content: center; gap: 2px; background: var(--surface-2); border-radius: var(--rayon-choix); padding: var(--espace-3) var(--espace-4); border: 0; text-align: left; font-family: var(--font-texte); color: var(--encre); cursor: pointer; min-height: var(--hauteur-bouton); }
.mjp-champ__ou b { font-size: 19px; text-decoration: underline; text-underline-offset: 4px; }
.mjp-champ__ou span { font-size: 17px; color: var(--texte-2); }
.mjp-champ__aide { font-size: 17px; color: var(--texte-2); }

/* Carte de résultat : économie (vert), aide (or), à vérifier (corail), juste (neutre) */
.mjp-resultat { display: flex; flex-direction: column; gap: var(--espace-2); padding: var(--espace-5); border-radius: var(--rayon-carte); background: var(--surface); box-shadow: var(--ombre-carte); border: 2px solid var(--ligne-douce); }
.mjp-resultat__tete { display: flex; align-items: center; gap: var(--espace-3); font-weight: 700; }
.mjp-resultat__surtitre { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.mjp-resultat__pastille { width: 44px; height: 44px; border-radius: var(--rayon-pastille); display: grid; place-items: center; flex: none; }
.mjp-resultat__titre { font-family: var(--font-titre); font-weight: 800; font-size: 23px; line-height: 1.3; }
.mjp-resultat__montant { font-family: var(--font-titre); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mjp-resultat--economie { background: var(--vert-doux); border-color: var(--vert-doux); box-shadow: none; }
.mjp-resultat--economie .mjp-resultat__pastille { background: var(--vert); color: var(--surface); }
.mjp-resultat--economie .mjp-resultat__surtitre, .mjp-resultat--economie .mjp-resultat__montant { color: var(--vert-texte); }
.mjp-resultat--aide { background: var(--or-doux); border-color: var(--or-doux); box-shadow: none; }
.mjp-resultat--aide .mjp-resultat__pastille { background: var(--or); color: var(--sur-or); }
.mjp-resultat--aide .mjp-resultat__surtitre, .mjp-resultat--aide .mjp-resultat__montant { color: var(--or-texte); }
.mjp-resultat--verifier { background: var(--alerte-doux); border-color: var(--alerte-doux); box-shadow: none; }
.mjp-resultat--verifier .mjp-resultat__pastille { background: var(--alerte); color: var(--surface); }
.mjp-resultat--verifier .mjp-resultat__surtitre { color: var(--alerte); }
.mjp-resultat--juste .mjp-resultat__pastille { background: var(--surface-2); color: var(--encre); border: 2px solid var(--ligne); }
/* Ligne compacte d'un récapitulatif : libellé à gauche, montant à droite */
.mjp-resultat--ligne { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--espace-4); row-gap: 2px; padding: var(--espace-4) var(--espace-5); }
.mjp-resultat--ligne .mjp-resultat__montant { font-size: 30px; grid-row: 1 / span 3; grid-column: 2; }
.mjp-resultat--ligne p:not(.mjp-resultat__montant) { grid-column: 1; }
.mjp-resultat__detail { font-size: 18px; color: var(--texte-2); }

/* Offre : Diagnostic gratuit (vert) / Accompagnement (nuit + or) */
.mjp-offre { display: flex; flex-direction: column; gap: var(--espace-3); padding: var(--espace-5); border-radius: var(--rayon-carte); }
.mjp-offre--gratuit { background: var(--vert-doux); color: var(--encre); }
.mjp-offre--accompagne { background: var(--nuit); color: var(--sur-nuit); }
.mjp-offre__surtitre { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.mjp-offre--gratuit .mjp-offre__surtitre { color: var(--vert-texte); }
.mjp-offre--accompagne .mjp-offre__surtitre { color: var(--or); }
.mjp-offre__titre { font-family: var(--font-titre); font-weight: 800; font-size: 26px; line-height: 1.25; }
.mjp-offre ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--espace-2); }
.mjp-offre li { display: flex; gap: var(--espace-3); align-items: flex-start; }
.mjp-offre li svg { margin-top: 2px; }
.mjp-offre--accompagne li svg { color: var(--or); }
.mjp-offre--gratuit li svg { color: var(--vert-texte); }

/* Statut d'un dossier : pastille + mot, jamais la couleur seule */
.mjp-statuts { display: flex; flex-wrap: wrap; gap: var(--espace-3); }
.mjp-statut { display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 40px; padding: 0 var(--espace-4); border-radius: var(--rayon-pastille); font-size: 17px; font-weight: 700; border: 2px solid transparent; }
.mjp-statut::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.mjp-statut--gratuit, .mjp-statut--envoye { background: var(--vert-doux); color: var(--vert-texte); }
.mjp-statut--accompagne { background: var(--nuit); color: var(--sur-nuit); }
.mjp-statut--pret { background: var(--surface-2); color: var(--encre); }
.mjp-statut--attente { background: var(--or-doux); color: var(--or-texte); }
.mjp-statut--obtenue { background: var(--or); color: var(--sur-or); }
.mjp-statut--verifier { background: var(--alerte-doux); color: var(--alerte); }

/* Suivi de dossier : chaque étape franchie, verticale par défaut (se lit comme une liste) */
.mjp-suivi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mjp-suivi li { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--espace-4); position: relative; padding-bottom: var(--espace-5); }
.mjp-suivi li:last-child { padding-bottom: 0; }
.mjp-suivi li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 0; width: 4px; border-radius: 2px; background: var(--ligne-douce); }
.mjp-suivi li.mjp-suivi--fait:not(:last-child)::after { background: var(--vert-action); }
.mjp-suivi__rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--ligne); background: var(--surface); color: var(--surface); grid-row: 1 / span 2; }
.mjp-suivi--fait .mjp-suivi__rond { background: var(--vert-action); border-color: var(--vert-action); color: var(--sur-vert-action); }
.mjp-suivi--encours .mjp-suivi__rond { border-color: var(--or); border-width: 4px; }
.mjp-suivi--encours .mjp-suivi__rond::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--or); }
.mjp-suivi__titre { font-weight: 700; padding-top: 8px; }
.mjp-suivi__date { font-size: 17px; color: var(--texte-2); }

/* Accès humain */
.mjp-conseiller { display: flex; align-items: center; gap: var(--espace-4); padding: var(--espace-4) var(--espace-5); border-radius: var(--rayon-choix); background: var(--surface-2); color: var(--encre); text-decoration: none; min-height: var(--cible-min); }
.mjp-conseiller__rond { width: 48px; height: 48px; border-radius: 50%; background: var(--encre); color: var(--sur-encre); display: grid; place-items: center; flex: none; }
.mjp-conseiller b { display: block; }
.mjp-conseiller__lien { display: block; color: var(--vert-texte); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Outils de lecture */
.mjp-outils { display: flex; align-items: center; gap: var(--espace-3); flex-wrap: wrap; }
.mjp-outils .mjp-btn { min-height: var(--cible-min); padding: 0 var(--espace-5); font-size: 19px; border-width: 2px; border-color: var(--ligne); }
.mjp-outils__taille { display: inline-flex; border: 2px solid var(--ligne); border-radius: var(--rayon-bouton); overflow: hidden; }
.mjp-outils__taille button { min-width: var(--cible-min); min-height: var(--cible-min); border: 0; background: var(--surface); color: var(--encre); font-family: var(--font-texte); font-weight: 700; font-size: 19px; cursor: pointer; }
.mjp-outils__taille button + button { border-left: 2px solid var(--ligne); }

/* Message : information, question, alerte */
.mjp-message { display: flex; gap: var(--espace-4); align-items: flex-start; padding: var(--espace-4) var(--espace-5); border-radius: var(--rayon-choix); border: 2px solid var(--ligne-douce); background: var(--surface); }
.mjp-message__titre { font-weight: 700; }
.mjp-message--info, .mjp-message--question { background: var(--surface-2); border-color: var(--surface-2); }
.mjp-message--question .mjp-message__rond { width: 36px; height: 36px; border-radius: 50%; background: var(--encre); color: var(--sur-encre); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 20px; }
.mjp-message--alerte { background: var(--alerte-doux); border-color: var(--alerte); }
.mjp-message--alerte .mjp-ico { color: var(--alerte); }
.mjp-message p + p { font-size: 18px; color: var(--texte-2); }

/* Grand montant d'un résultat + célébration discrète (parts or et vertes, immobiles) */
.mjp-heros { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--espace-1); padding: var(--espace-4) 0; }
.mjp-heros__surtitre { font-size: 17px; font-weight: 700; color: var(--or-texte); }
.mjp-heros__phrase { font-family: var(--font-titre); font-weight: 800; font-size: 24px; line-height: 1.3; }
.mjp-heros__montant { font-family: var(--font-titre); font-weight: 800; font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; color: var(--vert-texte); font-variant-numeric: tabular-nums; }
.mjp-heros__unite { font-weight: 700; color: var(--texte-2); }
.mjp-fete { position: absolute; inset: 0; pointer-events: none; }
.mjp-fete i { position: absolute; width: 22px; height: 22px; border-radius: 0 0 0 100%; }
.mjp-fete i:nth-child(odd) { background: var(--or); }
.mjp-fete i:nth-child(even) { background: var(--vert); }

/* Écran type d'un parcours (colonne de téléphone) */
.mjp-ecran { background: var(--fond); display: flex; flex-direction: column; gap: var(--espace-5); padding: var(--espace-5); max-width: var(--largeur-colonne); margin: 0 auto; min-height: 100%; }
.mjp-ecran__logo { height: 36px; width: auto; display: block; align-self: flex-start; }
.mjp-ecran__pied { margin-top: auto; display: flex; flex-direction: column; gap: var(--espace-3); }
.mjp-promesse { font-size: 17px; font-weight: 700; color: var(--texte-2); text-align: center; }
.mjp-illus { background: var(--surface); border-radius: var(--rayon-carte); padding: var(--espace-5); display: grid; place-items: center; }
