/* ==================================================================== */
/* Verdict Immo — feuille de style unique, sans framework.               */
/*                                                                      */
/* Direction : dossier d'expertise imprimé. Papier chaud, encre presque  */
/* noire, un seul accent — le taupe d'Esprit Riche relevé sur la         */
/* bannière de marque (#908478). Serif optique pour les titres et les    */
/* chiffres, grotesque pour le reste. Filets fins plutôt que cartes      */
/* flottantes : on lit un rapport, pas un tableau de bord.               */
/*                                                                      */
/* ⚠️ COHÉRENCE DE MARQUE : les jetons ci-dessous sont ALIGNÉS SUR       */
/* CHALLENGE IMMOBILIER (`challenge-immo/public/styles.css`) — mêmes     */
/* noms, mêmes valeurs, mêmes fichiers de polices. Le participant passe  */
/* du challenge à Verdict Immo au jour 3 : il ne doit pas avoir          */
/* l'impression de changer d'univers. Toute évolution de palette doit    */
/* être faite dans les DEUX fichiers, sinon les deux produits divergent. */
/* ==================================================================== */

/* Polices auto-hébergées, identiques à celles du challenge : rendu garanti
   au pixel près, et aucune dépendance externe (plus d'appel à Google Fonts). */
@import url('/fonts/fonts.css');

:root {
  /* Papier et encre — jamais de blanc pur ni de noir pur */
  --papier: #f6f3ee;
  --papier-carte: #fffdfa;
  --encre: #1c1815;
  --encre-douce: #6b6156;
  --encre-tres-douce: #9a9084;
  --trait: #e0d9cf;
  --trait-fort: #cfc5b7;

  /* L'accent de marque */
  --taupe: #8f8478;
  --taupe-fonce: #6e6357;
  --taupe-clair: #ece6dd;
  --taupe-voile: #f2ede5;

  /* Verdicts — réchauffés pour tenir sur le papier */
  --vert: #4a6b3a;
  --vert-fond: #eaf0e4;
  --or: #9a6f16;
  --or-fond: #f8efdc;
  --orange: #b05a1e;
  --orange-fond: #fbeade;
  --rouge: #9c2f22;
  --rouge-fond: #fae9e6;
  --bleu: #3c5a73;
  --bleu-fond: #e6edf2;

  --rayon: 4px;
  --ombre: 0 1px 2px rgba(28, 24, 21, .04);
  --largeur: 980px;

  --titre: 'Fraunces', Georgia, serif;
  --corps: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  /* Grain discret : le papier ne doit pas être une surface morte */
  background-image: radial-gradient(rgba(143, 132, 120, .05) 1px, transparent 1px);
  background-size: 3px 3px;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-variation-settings: 'opsz' 40, 'SOFT' 0;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-variation-settings: 'opsz' 100; letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
a { color: var(--taupe-fonce); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--encre); }

/* Chiffres tabulaires partout : les colonnes doivent s'aligner */
table, .valeur, .mensualite-cle, input[type=number] { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- */
/* Bandeau de marque                                                 */
/* ---------------------------------------------------------------- */

.bandeau-marque {
  background: var(--taupe-voile);
  border-bottom: 1px solid var(--trait);
}
.bandeau-marque .dedans {
  max-width: var(--largeur); margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: .9rem;
}
.portrait {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #fff; object-fit: cover;
  box-shadow: 0 0 0 1px var(--trait-fort), 0 0 0 4px var(--papier-carte);
}
.signature { flex: 1; min-width: 0; line-height: 1.35; }
.signature .nom {
  font-family: var(--titre); font-weight: 600; font-size: 1rem;
  font-variation-settings: 'opsz' 20; display: block;
}
.signature .role { font-size: .8rem; color: var(--encre-douce); }
.signature .role strong { color: var(--taupe-fonce); font-weight: 600; }
.preuve {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--taupe-fonce); text-align: right; line-height: 1.5; flex: none;
}
.preuve b { display: block; font-family: var(--titre); font-size: 1.05rem; letter-spacing: -.01em; text-transform: none; color: var(--encre); }

@media (max-width: 620px) {
  .bandeau-marque .dedans { padding: .7rem 1rem; gap: .7rem; }
  .preuve { display: none; }
}

/* ---------------------------------------------------------------- */
/* Ossature                                                          */
/* ---------------------------------------------------------------- */

.entete {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--largeur); margin: 0 auto; padding: 1.15rem 1.25rem .9rem;
}
.marque {
  font-family: var(--titre); font-weight: 700; font-size: 1.12rem;
  letter-spacing: -.03em; text-decoration: none; color: var(--encre);
  font-variation-settings: 'opsz' 20;
}
.marque span { color: var(--taupe); }

.fil { display: flex; gap: .3rem; font-size: .73rem; text-transform: uppercase; letter-spacing: .09em; color: var(--encre-tres-douce); }
.fil span { padding: .28rem .65rem; border-radius: 99px; }
.fil span.actif { background: var(--encre); color: var(--papier); }
.fil span.faite { color: var(--taupe-fonce); }
.fil span.faite::before { content: "✓ "; }

main { max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem 5rem; }

.ecran { display: none; }
.ecran.actif { display: block; animation: monte .35s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.carte {
  background: var(--papier-carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.6rem; box-shadow: var(--ombre); margin-bottom: 1.1rem;
}
fieldset.carte { border: 1px solid var(--trait); }
legend {
  font-family: var(--titre); font-weight: 600; padding: 0 .5rem; font-size: 1.08rem;
  font-variation-settings: 'opsz' 20;
}
legend .aide { font-family: var(--corps); font-weight: 400; color: var(--encre-douce); font-size: .85rem; }

.sous { color: var(--encre-douce); margin-top: -.25em; }
.bloc { margin: 2.8rem 0; }
/* Un filet au-dessus de chaque section : c'est ce qui donne le rythme du rapport */
.bloc > h3:first-child { padding-top: 1rem; border-top: 2px solid var(--encre); display: inline-block; }

/* ---------------------------------------------------------------- */
/* Écran 1                                                           */
/* ---------------------------------------------------------------- */

.accroche { text-align: center; max-width: 620px; margin: 2.5rem auto 2.2rem; }
.accroche h1 em { font-style: italic; color: var(--taupe-fonce); }
.chapo { font-size: 1.12rem; color: var(--encre-douce); }
.chapo strong { color: var(--encre); font-weight: 600; }

.etiquette { display: block; font-weight: 600; margin-bottom: .55rem; font-size: .93rem; }
kbd {
  font: 600 .78em var(--corps); background: var(--taupe-clair); border: 1px solid var(--trait-fort);
  border-bottom-width: 2px; border-radius: 4px; padding: .12em .42em;
}

textarea, input[type=text], input[type=email], input[type=number], select {
  width: 100%; font: inherit; font-size: .96rem; color: inherit;
  padding: .6rem .72rem; border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; font-size: .9rem; line-height: 1.6; }
:is(textarea, input, select):focus {
  outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(143, 132, 120, .18);
}

.note-legale {
  font-size: .82rem; color: var(--encre-douce); margin: 1.1rem 0 0;
  border-left: 2px solid var(--taupe); padding-left: .9rem;
}

.rassurances { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .75rem; }
.rassurances li { font-size: .9rem; color: var(--encre-douce); padding-left: 1.5rem; position: relative; }
.rassurances li::before {
  content: "—"; position: absolute; left: 0; color: var(--taupe); font-weight: 700;
}

/* ---------------------------------------------------------------- */
/* Boutons                                                           */
/* ---------------------------------------------------------------- */

.bouton {
  font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer;
  padding: .66rem 1.3rem; border-radius: var(--rayon); border: 1px solid transparent;
  transition: background .15s, color .15s, transform .06s, border-color .15s;
}
.bouton:active { transform: translateY(1px); }
.bouton.principal { background: var(--encre); color: var(--papier); }
.bouton.principal:hover { background: var(--taupe-fonce); }
.bouton.principal[disabled] { background: var(--encre-tres-douce); cursor: progress; }
.bouton.discret { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
.bouton.discret:hover { background: var(--taupe-clair); border-color: var(--taupe); }
.bouton.discret[disabled] { color: var(--encre-tres-douce); cursor: not-allowed; }
.bouton.lien { background: none; border: none; color: var(--encre-douce); text-decoration: underline; padding: .4rem; font-weight: 500; }
.bouton.large { width: 100%; padding: .85rem; font-size: 1rem; }
.bouton.petit { padding: .38rem .8rem; font-size: .85rem; }

.ligne-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: 1.1rem; }
.ligne-actions.collante {
  position: sticky; bottom: 0; background: linear-gradient(transparent, var(--papier) 30%);
  padding: 1.2rem 0 .7rem; z-index: 5;
}

/* ---------------------------------------------------------------- */
/* Formulaire                                                        */
/* ---------------------------------------------------------------- */

/**
 * Alignement des champs — le point qui faisait « pas beau ».
 *
 * Les libellés font une ou deux lignes selon leur longueur : en flex simple, les
 * saisies se retrouvaient à des hauteurs différentes d'une colonne à l'autre, et les
 * indices flottaient n'importe où. On force donc trois bandes horizontales communes —
 * libellé, saisie, indice — via `subgrid`, si bien que tout s'aligne sur la rangée.
 */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-auto-rows: auto auto 1fr;
  gap: .35rem 1rem;
  align-items: start;
}
.champ {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: .3rem;
  margin-bottom: .8rem;
}
.champ > label {
  font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--encre-douce); display: flex; align-items: flex-start; gap: .35rem; flex-wrap: wrap;
  align-self: end; /* les libellés d'une ligne se calent en bas de la bande */
}
.champ .indice { font-size: .78rem; color: var(--encre-douce); line-height: 1.4; }
.champ.pleine { grid-column: 1 / -1; }

/* Les navigateurs sans `subgrid` retombent sur un empilement propre */
@supports not (grid-template-rows: subgrid) {
  .champ { display: flex; flex-direction: column; }
  .champ > label { min-height: 2.4em; }
}

.badge {
  font-size: .66rem; font-weight: 600; padding: .08rem .4rem; border-radius: 3px;
  background: var(--taupe-clair); color: var(--taupe-fonce); white-space: nowrap;
  text-transform: none; letter-spacing: 0;
}
.badge.saisi { background: var(--vert-fond); color: var(--vert); }
.badge.annonce { background: var(--bleu-fond); color: var(--bleu); }
.badge.marche { background: var(--taupe-clair); color: var(--taupe-fonce); }
.badge.estime { background: var(--or-fond); color: var(--or); }

details.repli summary {
  cursor: pointer; font-family: var(--titre); font-weight: 600; font-size: 1.05rem;
  font-variation-settings: 'opsz' 20;
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
details.repli summary::-webkit-details-marker { display: none; }
details.repli summary::before { content: "+"; color: var(--taupe); margin-right: .4rem; font-family: var(--corps); }
details.repli[open] summary::before { content: "–"; }
details.repli[open] summary { margin-bottom: 1.2rem; }
.resume { font-family: var(--corps); font-weight: 400; font-size: .83rem; color: var(--encre-douce); }

.lot {
  border: 1px solid var(--trait); border-left: 3px solid var(--taupe); border-radius: var(--rayon);
  padding: 1.1rem; margin-bottom: .85rem; background: var(--taupe-voile);
}
.lot .entete-lot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.lot .entete-lot strong { font-family: var(--titre); font-size: 1rem; font-variation-settings: 'opsz' 20; }
.lot .supprimer { background: none; border: none; color: var(--encre-tres-douce); cursor: pointer; font-size: 1.05rem; padding: 0 .3rem; }
.lot .supprimer:hover { color: var(--rouge); }
.lot .estimation { font-size: .83rem; color: var(--encre-douce); margin-top: .8rem; grid-column: 1 / -1; }
.lot .estimation strong { color: var(--encre); }

.bandeau {
  background: var(--bleu-fond); border: 1px solid #cddae3; border-left: 3px solid var(--bleu);
  border-radius: var(--rayon); padding: .85rem 1.05rem; font-size: .9rem; margin-bottom: 1.1rem;
}
.bandeau.attention { background: var(--or-fond); border-color: #ecdcb8; border-left-color: var(--or); }

/* ---------------------------------------------------------------- */
/* Verdict                                                           */
/* ---------------------------------------------------------------- */

.carte-verdict { padding: 2.2rem 2rem; border-left: 4px solid var(--encre-douce); position: relative; overflow: hidden; }
.carte-verdict.vert { border-left-color: var(--vert); background: linear-gradient(160deg, var(--vert-fond), var(--papier-carte) 60%); }
.carte-verdict.vert-pale { border-left-color: var(--or); background: linear-gradient(160deg, var(--or-fond), var(--papier-carte) 60%); }
.carte-verdict.bleu { border-left-color: var(--bleu); background: linear-gradient(160deg, var(--bleu-fond), var(--papier-carte) 60%); }
.carte-verdict.orange { border-left-color: var(--orange); background: linear-gradient(160deg, var(--orange-fond), var(--papier-carte) 60%); }
.carte-verdict.rouge { border-left-color: var(--rouge); background: linear-gradient(160deg, var(--rouge-fond), var(--papier-carte) 60%); }

.pastille {
  display: inline-block; font-size: .69rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: .3rem .75rem; border-radius: 2px; margin-bottom: 1.1rem;
  background: var(--encre); color: var(--papier);
}
.vert .pastille { background: var(--vert); }
.vert-pale .pastille { background: var(--or); }
.bleu .pastille { background: var(--bleu); }
.orange .pastille { background: var(--orange); }
.rouge .pastille { background: var(--rouge); }

.titre-verdict {
  font-family: var(--titre); font-variation-settings: 'opsz' 90;
  font-size: clamp(1.4rem, 3.9vw, 2.15rem); font-weight: 600; line-height: 1.2;
  letter-spacing: -.025em; margin: 0 0 .7rem; max-width: 30ch;
}
.chiffres-verdict { font-size: .98rem; color: var(--encre-douce); margin: 0; }
.justification {
  margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--trait);
  font-size: .92rem; color: var(--encre-douce); font-style: italic;
}

/* Comparateur */
.tableau-enveloppe { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--papier-carte); }
table { border-collapse: collapse; width: 100%; font-size: .91rem; min-width: 620px; }
th, td { padding: .7rem .9rem; text-align: right; border-bottom: 1px solid var(--trait); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-size: .69rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--encre-douce); font-weight: 600; border-bottom: 1.5px solid var(--trait-fort);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr.retenu { background: var(--vert-fond); }
tbody tr.retenu td:first-child { font-weight: 700; box-shadow: inset 3px 0 0 var(--vert); }
tbody tr.a-valider { opacity: .58; }
td.positif { color: var(--vert); font-weight: 700; }
td.negatif { color: var(--rouge); font-weight: 700; }
.mention { font-size: .73rem; color: var(--encre-douce); font-weight: 400; font-style: italic; }

/* Listes de restitution */
.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.liste li {
  background: var(--papier-carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: .95rem 1.1rem; font-size: .92rem;
}
.liste.forts li { border-left: 3px solid var(--vert); }
.liste.alertes li { border-left: 3px solid var(--orange); }
.liste.alertes li[data-severite="3"] { border-left-color: var(--rouge); background: var(--rouge-fond); }
.liste.conditions li { border-left: 3px solid var(--or); }
.liste.conditions li.critique { border-left-color: var(--rouge); }
.liste.opportunites li { border-left: 3px solid var(--bleu); }
.liste.questions-bati li { border-left: 3px solid var(--taupe); }
.source-bati { font-style: italic; margin-top: -.4rem; margin-bottom: .9rem; }
.liste.regles li { border-left: 3px solid var(--encre-tres-douce); }
.liste.regles li[data-severite="3"] { border-left-color: var(--rouge); background: var(--rouge-fond); }
.liste.regles li[data-severite="2"] { border-left-color: var(--or); }
.liste.regles li[data-severite="1"] { border-left-color: var(--vert); }
.liste li strong { display: block; margin-bottom: .2rem; font-family: var(--titre); font-variation-settings: 'opsz' 20; font-weight: 600; }
.liste li p { margin: 0; color: var(--encre-douce); font-size: .88rem; }

.ressources { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.ressources a {
  font-size: .79rem; text-decoration: none; padding: .22rem .6rem; border-radius: 2px;
  border: 1px solid var(--trait-fort); color: var(--encre-douce); background: var(--papier-carte);
}
.ressources a.formation { border-color: var(--taupe); color: var(--taupe-fonce); background: var(--taupe-clair); font-weight: 600; }
.ressources a:hover { border-color: var(--encre); color: var(--encre); }

/* Leviers */
.leviers { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .9rem; }
.levier { background: var(--papier-carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.2rem; }
.levier .valeur {
  font-family: var(--titre); font-variation-settings: 'opsz' 60;
  font-size: 1.7rem; font-weight: 600; letter-spacing: -.025em; display: block; margin: .25rem 0;
}
.levier .libelle { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--encre-douce); font-weight: 600; }
.levier .commentaire { font-size: .83rem; color: var(--encre-douce); margin: 0; }
.levier.cible { border-color: var(--taupe); border-top: 3px solid var(--taupe); }
/* Un seul levier (bien sous bail commercial) : la carte ne s'étire pas sur toute la largeur. */
.leviers:has(> .levier:only-child) { grid-template-columns: minmax(215px, 22rem); }
.levier.cible .valeur { color: var(--taupe-fonce); }

/* Jauge de fiabilité */
.fiabilite { display: flex; align-items: center; gap: .8rem; font-size: .82rem; color: var(--encre-douce); margin-top: 1.3rem; }
.jauge { flex: 1; height: 5px; background: var(--trait); border-radius: 99px; overflow: hidden; max-width: 200px; }
.jauge span { display: block; height: 100%; background: var(--taupe); transition: width .5s cubic-bezier(.2,.7,.3,1); }

/* Tensiomètre */
.tensiometre { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.repere { background: var(--papier-carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.1rem; border-top: 3px solid var(--encre-tres-douce); }
.repere.niveau-haut { border-top-color: var(--vert); }
.repere.niveau-moyen { border-top-color: var(--or); }
.repere.niveau-bas { border-top-color: var(--orange); }
.repere .libelle { font-size: .69rem; font-weight: 600; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .09em; }
.repere .valeur { display: block; font-family: var(--titre); font-variation-settings: 'opsz' 60; font-size: 1.85rem; font-weight: 600; letter-spacing: -.025em; margin: .1rem 0; }
.repere .valeur small { font-size: .9rem; font-weight: 500; color: var(--encre-douce); }
.repere .unite { font-size: .76rem; color: var(--encre-douce); display: block; }
.repere .lecture { font-size: .85rem; margin: .65rem 0 0; color: var(--encre-douce); }

/* Fiche DPE */
.numero-dpe { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.numero-dpe .ligne-actions input { max-width: 240px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.fiche-dpe { margin-top: 1rem; border: 1px solid var(--trait-fort); background: var(--taupe-voile); border-radius: var(--rayon); padding: 1.2rem; }
.entete-fiche { display: flex; gap: .95rem; align-items: center; margin-bottom: 1rem; }
.entete-fiche strong { display: block; font-family: var(--titre); font-size: 1rem; font-variation-settings: 'opsz' 20; }
.entete-fiche .sous { font-size: .84rem; margin: 0; }
.etiquette-dpe {
  width: 2.7rem; height: 2.7rem; border-radius: var(--rayon); display: grid; place-items: center;
  font-family: var(--titre); font-size: 1.45rem; font-weight: 700; color: #fff; background: var(--encre-douce); flex: none;
}
.classe-A, .classe-B { background: #3d7a4a; }
.classe-C, .classe-D { background: #78893a; }
.classe-E { background: #b8891a; }
.classe-F { background: var(--orange); }
.classe-G { background: var(--rouge); }

.details-dpe { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .87rem; }
.details-dpe li { color: var(--encre-douce); }
.details-dpe li strong { color: var(--encre); }
.details-dpe li.perime { color: var(--rouge); }

/* Constats des diagnostics */
.constats { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .3rem; font-size: .87rem; }
.constats li { display: flex; gap: .5rem; align-items: baseline; color: var(--encre-douce); }
.constats li span { width: 1.1rem; text-align: center; }
.constats li.etat-present, .constats li.etat-anomalies { color: var(--orange); font-weight: 600; }
.constats li.etat-absent { color: var(--vert); }

/* Liste des meubles de colocation */
.meubles { margin-top: 1rem; }
.meubles-total {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--trait);
}
.meubles-total .valeur { font-family: var(--titre); font-variation-settings: 'opsz' 60; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.meubles-total .par { font-size: .85rem; color: var(--encre-douce); }
.meubles-groupe { margin-bottom: .9rem; }
.meubles-groupe h4 {
  font-family: var(--corps); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--encre-douce); margin: 0 0 .35rem; display: flex; justify-content: space-between;
}
.meubles-groupe ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; font-size: .86rem; }
.meubles-groupe li { display: flex; justify-content: space-between; gap: 1rem; color: var(--encre-douce); }
.meubles-groupe li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.meubles-groupe li.confort { opacity: .68; }

/* Cadre de financement */
.financement { padding: 1.6rem; }
.phrase-financement { font-size: 1.02rem; color: var(--encre-douce); margin-bottom: 1rem; }
.phrase-financement strong { color: var(--encre); }

.mensualite-cle {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem;
  padding: 1.1rem 0 1.3rem; border-bottom: 1px solid var(--trait); margin-bottom: 1.3rem;
}
.mensualite-cle .valeur {
  font-family: var(--titre); font-variation-settings: 'opsz' 144;
  font-size: clamp(2.3rem, 6.5vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; color: var(--encre);
}
.mensualite-cle .unite { font-size: 1rem; color: var(--encre-douce); font-weight: 600; }
.mensualite-cle .decompose { font-size: .85rem; color: var(--encre-douce); flex-basis: 100%; }

.reglages { margin-bottom: 1.3rem; }
.cout-credit {
  background: var(--taupe-voile); border-left: 2px solid var(--taupe); border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: .85rem 1.05rem; font-size: .9rem; margin: 0 0 1.4rem;
}

.variantes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.variantes h4 { font-family: var(--corps); font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; color: var(--encre-douce); margin: 0 0 .5rem; }
table.mini { min-width: 0; font-size: .87rem; }
table.mini td { padding: .42rem .5rem; white-space: nowrap; }
table.mini td:first-child { font-weight: 600; }
table.mini tr.actuel { background: var(--taupe-clair); }
table.mini tr.actuel td:first-child { box-shadow: inset 3px 0 0 var(--taupe); }
.rappel-cf { margin: 1.4rem 0 0; font-size: .85rem; }

/* Questions à l'agent */
ol.liste.plan { counter-reset: etape; }
ol.liste.plan li { counter-increment: etape; padding-left: 3.1rem; position: relative; border-left: 3px solid var(--taupe); }
ol.liste.plan li::before {
  content: counter(etape, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem;
  font-family: var(--titre); font-size: .95rem; font-weight: 700; color: var(--taupe);
}
.quand {
  font-family: var(--corps); font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--encre-douce); background: var(--taupe-clair); padding: .1rem .45rem; border-radius: 2px;
  margin-left: .45rem; white-space: nowrap;
}
.bloc-copie { margin-top: .8rem; }
.questions-agent { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .91rem; }

/* Capture */
.carte-capture { max-width: 460px; margin: 3.5rem auto; text-align: center; }
.carte-capture form { display: grid; gap: .7rem; margin-top: 1.2rem; }
.opt-in { font-size: .79rem; color: var(--encre-douce); text-align: left; display: flex; gap: .5rem; align-items: flex-start; }
.opt-in input { width: auto; margin-top: .22rem; }

/* CTA */
.cta {
  background: var(--encre); color: var(--papier); border-radius: var(--rayon);
  padding: 2.4rem 2rem; text-align: center; margin: 3rem 0;
}
.cta h3 { color: var(--papier); }
.cta p { color: #b3a99c; font-size: .94rem; }
.cta .bouton { max-width: 380px; margin: 0 auto; display: block; text-decoration: none; background: var(--taupe); color: var(--encre); border: none; }
.cta .bouton:hover { background: var(--taupe-clair); }

/* Détail des calculs */
.detail-calcul { font-size: .88rem; }
.detail-calcul table { min-width: 0; }
.detail-calcul td:first-child { color: var(--encre-douce); }

/* Pages de texte */
.page-texte { max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
.page-texte h1 { margin-bottom: .25em; }
.page-texte h2 { font-size: 1.2rem; margin-top: 2.2rem; }
.page-texte .carte h2:first-child { margin-top: 0; }
.page-texte ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.page-texte table { min-width: 0; margin: 1rem 0; }
.page-texte table td, .page-texte table th { white-space: normal; text-align: left; vertical-align: top; }
.page-texte code { background: var(--taupe-clair); padding: .1em .35em; border-radius: 3px; font-size: .88em; }
.page-texte .retour { margin-top: 2.5rem; font-size: .9rem; }
.carte.danger { border-color: #e8c4bf; background: var(--rouge-fond); }
.bouton.danger { background: var(--rouge); color: #fff; }
.bouton.danger:hover { background: #7d251b; }

.pied {
  max-width: var(--largeur); margin: 0 auto; padding: 2.2rem 1.25rem 3.5rem;
  border-top: 1px solid var(--trait); font-size: .8rem; color: var(--encre-douce);
}
.pied .signature-pied { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.pied .signature-pied img { width: 34px; height: 34px; border-radius: 50%; }
.mentions { font-size: .77rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .carte { padding: 1.2rem; }
  .carte-verdict { padding: 1.5rem 1.2rem; }
  .ligne-actions .bouton { flex: 1 1 auto; }
  .bloc { margin: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Fiche copropriété (RNIC) */
.fiche-copro { padding: 1.2rem; }
.entete-copro {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  flex-wrap: wrap; padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 1px solid var(--trait);
}
.entete-copro strong { font-family: var(--titre); font-size: 1.05rem; font-variation-settings: 'opsz' 20; }

.grille-fiches { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem; }
.grille-fiches .carte { margin-bottom: 0; }
