/* SCI 2072. Matière : le formulaire fiscal papier, ses numéros de case surlignés au marqueur jaune comme le fait un
 * gérant qui recopie ses chiffres. Fond blanc, encre vert sapin, aplats mimosa sur les cases, filets de formulaire.
 * Police unique : Onest (OFL), chiffres tabulaires pour les montants. Public de 45 à 70 ans, au bureau : corps 17 px. */
@font-face { font-family: "Onest"; src: url("/statique/polices/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --encre: #0e3b34; --encre-2: #1d5a50; --texte: #17211e; --doux: #56635f; --filet: #d3dbd7; --filet-2: #e7ece9;
  --papier: #f4f7f5; --blanc: #fff; --mimosa: #f2c94c; --mimosa-pale: #fbefc6;
  --rouge: #b3261e; --rouge-pale: #fbeae8; --ambre: #8a5a00; --ambre-pale: #fdf3dc; --vert: #1f6f4a;
  --r: 6px; --l: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Onest", system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--texte);
  background: var(--blanc); text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
a { color: var(--encre); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; color: var(--encre); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 750; }
h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.l { max-width: var(--l); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 2px; }

.brouillon { background: var(--encre); color: var(--mimosa); text-align: center; font-size: 14px; font-weight: 600; padding: 6px; letter-spacing: .02em; }

/* ------------------------------------------------------------------ haut et pied */
.haut { border-bottom: 1px solid var(--filet); background: var(--blanc); }
.haut .l { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { font-weight: 750; font-size: 22px; letter-spacing: -0.02em; color: var(--encre); text-decoration: none; }
.haut nav { display: flex; gap: 4px; margin-left: auto; }
.haut nav a { text-decoration: none; padding: 10px 14px; border-radius: var(--r); font-weight: 550; color: var(--texte); min-height: 44px; display: inline-flex; align-items: center; }
.haut nav a:hover { background: var(--papier); }
.haut nav a[aria-current] { color: var(--encre); box-shadow: inset 0 -3px 0 var(--mimosa); border-radius: 0; }
.pied { margin-top: 96px; background: var(--encre); color: #dbe7e3; padding: 40px 0 48px; font-size: 15px; }
.pied a { color: #fff; }
.pied .mention { max-width: 760px; color: #dbe7e3; }
.pied .liens { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.pied .liens a { min-height: 44px; display: inline-flex; align-items: center; }
.pied .logo { color: var(--mimosa); font-size: 19px; margin-right: 10px; }

/* ------------------------------------------------------------------ boutons et cases */
.bouton, .b2 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: var(--r);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
}
.bouton { background: var(--encre); color: #fff; }
.bouton:hover { background: var(--encre-2); text-decoration: none; }
.bouton:disabled { opacity: .55; cursor: progress; }
.b2 { background: var(--blanc); color: var(--encre); border: 1.5px solid var(--encre); min-height: 44px; padding: 0 18px; font-size: 16px; }
.b2:hover { background: var(--papier); }
.b2.discret { border-color: var(--filet); color: var(--doux); }
.case {
  display: inline-block; min-width: 2.1em; padding: 1px 6px; margin-right: 10px; border-radius: 3px; background: var(--mimosa);
  color: var(--encre); font-weight: 700; font-size: .86em; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.5;
}
.ref { font-size: 14px; font-weight: 600; color: var(--doux); margin-left: 10px; letter-spacing: 0; vertical-align: middle; }
.source, .maj { font-size: 15px; color: var(--doux); }
.erreur { color: var(--rouge); font-weight: 550; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 8px 0 20px; }

/* ------------------------------------------------------------------ accueil */
.une { background: var(--papier); border-bottom: 1px solid var(--filet); padding: clamp(40px, 6vw, 84px) 0; }
.une-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.chapeau { font-size: clamp(19px, 1.6vw, 22px); color: var(--texte); max-width: 34em; }
.prix-net { color: var(--doux); font-weight: 550; }
.mention-une { font-size: 15px; color: var(--doux); max-width: 36em; border-left: 3px solid var(--mimosa); padding-left: 14px; margin-top: 28px; }
.feuille { margin: 0; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: 0 1px 0 var(--filet), 0 18px 40px -24px rgba(14, 59, 52, .35); overflow: hidden; }
.feuille-tete { display: flex; gap: 18px; background: var(--encre); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px; }
.feuille-tete span:first-child { color: var(--mimosa); }
.feuille table { width: 100%; border-collapse: collapse; font-size: 16px; }
.feuille th { text-align: left; font-weight: 450; padding: 7px 18px; }
.feuille td { text-align: right; padding: 7px 18px; font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.feuille tr + tr { border-top: 1px solid var(--filet-2); }
.feuille tr.calc { background: #fafbfa; }
.feuille tr.calc td { color: var(--encre); }
.feuille tr.fort th, .feuille tr.fort td { font-weight: 750; color: var(--encre); border-top: 2px solid var(--encre); }
.feuille-associes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--filet); }
.feuille-associes div { padding: 12px 18px; display: flex; flex-direction: column; font-size: 14px; color: var(--doux); }
.feuille-associes div + div { border-left: 1px solid var(--filet); }
.feuille-associes b { color: var(--encre); font-size: 18px; font-variant-numeric: tabular-nums; }
.bloc { padding: clamp(48px, 6vw, 80px) 0 0; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--encre); }
.piece { padding: 22px 22px 6px 0; }
.piece + .piece { padding-left: 22px; border-left: 1px solid var(--filet); }
.piece h3 { margin-bottom: .4em; }
.piece p { color: var(--doux); font-size: 16px; }
.deux { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.alertes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alertes li { border-left: 4px solid var(--encre); background: var(--papier); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 2px; font-size: 16px; }
.alertes li b { color: var(--encre); font-size: 15px; }
.alertes li cite { font-style: normal; font-size: 14px; color: var(--doux); }
.alertes li a { justify-self: start; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.alertes .bloquant { border-color: var(--rouge); background: var(--rouge-pale); }
.alertes .bloquant b { color: var(--rouge); }
.alertes .a-verifier { border-color: var(--ambre); background: var(--ambre-pale); }
.alertes .a-verifier b { color: var(--ambre); }
.prix { border-top: 2px solid var(--encre); padding-top: 18px; }
.montant { font-size: clamp(64px, 8vw, 104px); font-weight: 800; color: var(--encre); letter-spacing: -0.04em; line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.inclus { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--encre); }
.inclus li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--filet); position: relative; }
.inclus li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 3px solid var(--encre); border-bottom: 3px solid var(--encre); transform: rotate(-45deg); }
.faq { border-top: 2px solid var(--encre); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--encre); border-bottom: 2px solid var(--encre); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 29px; }
.faq details p { max-width: 46em; color: var(--texte); }

/* ------------------------------------------------------------------ pages de texte */
.etroit .l { max-width: 860px; }
.guide h2, .texte-legal h2 { margin-top: 1.6em; font-size: 24px; }
.encart { margin: 40px 0; padding: 24px; background: var(--papier); border-top: 3px solid var(--mimosa); }
.autres-guides { display: grid; gap: 4px; border-top: 1px solid var(--filet); padding-top: 16px; }
.autres-guides a { min-height: 44px; display: flex; align-items: center; font-weight: 550; }
.texte-legal { font-size: 16px; }
.formulaire { max-width: 560px; }
.relire { display: grid; gap: 8px; margin: 0 0 20px; }
.relire div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; border-bottom: 1px solid var(--filet); padding: 8px 0; }
.relire dt { color: var(--doux); }
.relire dd { margin: 0; }

/* ------------------------------------------------------------------ champs */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; flex: 1; }
.champ label { font-weight: 550; font-size: 16px; color: var(--texte); }
.champ small { color: var(--doux); font-size: 14px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; font-size: 17px; color: var(--texte); background: var(--blanc); border: 1.5px solid #b9c5c0; border-radius: var(--r);
  min-height: 48px; padding: 10px 12px; width: 100%;
}
input:not([type=checkbox]):not([type=radio]), select { height: 50px; }
select { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e3b34' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--mimosa-pale); }
.montant input, .nombre input, .a1 input { text-align: right; font-variant-numeric: tabular-nums; }
.champ.court { flex: 0 1 220px; }
.champ.faux input { border-color: var(--rouge); }
.rangee { display: flex; gap: 16px; flex-wrap: wrap; }
.rangee > .champ { flex: 1 1 220px; }
.rangee > .champ > label { flex: 1 0 auto; display: flex; align-items: flex-end; }
.rangee > .champ > label .case { align-self: flex-end; }
.rangee.quatre > .champ { flex: 1 1 150px; }
.rangee.trois > .champ { flex: 1 1 200px; }
/* un menu ne descend jamais sous 260 px : son libellé choisi se lit en entier (« AP · Appartement » coupé à 103 px de
   texte dans la rangée à quatre de l'ordinateur, kit 04/12 06:20) ; :is() pour battre .quatre et .trois */
:is(.rangee, .rangee.quatre, .rangee.trois) > .champ:has(select) { flex: 1 1 260px; }
.rangee.coches { align-items: center; gap: 8px 28px; margin-bottom: 12px; }
.coche { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 16px; }
.coche input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--encre); flex: none; }
.multi { display: flex; flex-wrap: wrap; gap: 0 24px; margin-bottom: 12px; }
.etiquette { font-weight: 550; font-size: 16px; margin: 8px 0 0; }
.vise { animation: vise 1.6s ease-out; }
@keyframes vise { 0%, 30% { box-shadow: 0 0 0 4px var(--mimosa); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ------------------------------------------------------------------ outil */
.outil main { background: var(--papier); padding-bottom: 40px; }
.outil .pied { margin-top: 0; }
.outil-cadre { padding-top: 28px; }
.outil-haut { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.outil-haut h1 { font-size: clamp(28px, 3vw, 38px); margin: 0; }
.fichier { display: flex; flex-wrap: wrap; gap: 8px; }
.fichier label.b2 { cursor: pointer; }
.etapes { position: relative; display: flex; gap: 0; margin: 22px 0 24px; border-bottom: 2px solid var(--filet); overflow-x: auto; scrollbar-width: none; }
.etapes a { padding: 12px 20px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--doux); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.etapes a[aria-current] { color: var(--encre); border-bottom-color: var(--mimosa); }
.etapes a:hover { color: var(--encre); }
.compte:empty { display: none; }
.compte { min-width: 24px; height: 24px; border-radius: 12px; background: var(--doux); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.compte.rouge { background: var(--rouge); }
.outil-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.saisie { min-width: 0; }
.cadre { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); margin-bottom: 18px; }
.cadre h2 { font-size: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.cadre h2 .ref { margin-right: auto; }
.retirer { margin-left: auto; font: inherit; font-size: 15px; font-weight: 550; color: var(--rouge); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 4px; }
.sous { border-top: 1px solid var(--filet); padding-top: 14px; margin-top: 6px; }
.sous h3 { display: flex; align-items: center; }
.plus { border-top: 1px solid var(--filet-2); margin-top: 4px; }
.plus summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; color: var(--encre); list-style: none; }
.plus summary::-webkit-details-marker { display: none; }
.plus summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 14px; transition: transform .15s; }
.plus[open] summary::before { transform: rotate(45deg); }
.ajouter { margin: 4px 0 22px; }
.suite { display: flex; justify-content: flex-end; margin: 8px 0 24px; }
.bascule { display: inline-flex; border: 1.5px solid var(--encre); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; flex-wrap: wrap; }
.bascule label { cursor: pointer; }
.bascule input { position: absolute; opacity: 0; pointer-events: none; }
.bascule span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 600; color: var(--encre); }
.bascule input:checked + span { background: var(--encre); color: #fff; }
.bascule input:focus-visible + span { outline: 3px solid var(--mimosa); outline-offset: -3px; }
.rappel { background: var(--mimosa-pale); padding: 12px 16px; border-radius: var(--r); font-size: 16px; }
.quote { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 2px solid var(--encre); padding-top: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.quote span { white-space: nowrap; }

table.a1 { width: 100%; border-collapse: collapse; margin-top: 10px; }
.a1 thead th { text-align: left; font-size: 14px; color: var(--doux); font-weight: 600; padding: 0 0 8px; border-bottom: 2px solid var(--encre); }
.a1 thead th:last-child { text-align: right; }
.a1 tbody th { text-align: left; font-weight: 450; padding: 8px 12px 8px 0; font-size: 16px; }
.a1 tbody th label { cursor: text; }
.a1 tbody th small { display: block; color: var(--doux); font-size: 13px; margin: 2px 0 0 calc(2.1em + 22px); }
.a1 tbody td { width: 180px; padding: 5px 0; text-align: right; font-variant-numeric: tabular-nums; }
.a1 tbody tr + tr { border-top: 1px solid var(--filet-2); }
.a1 tr.dont th { padding-left: 28px; }
.a1 tr.calc { background: #fafbfa; }
.a1 tr.calc td { font-weight: 650; color: var(--encre); padding-right: 14px; }
.a1 tr.fort td, .a1 tr.fort th { font-weight: 750; color: var(--encre); border-top: 2px solid var(--encre); font-size: 17px; }
.a1 input { min-height: 44px; }

.recap { position: sticky; top: 16px; background: var(--blanc); border: 1px solid var(--filet); border-top: 4px solid var(--encre); border-radius: var(--r); padding: 20px; }
.recap h2 { font-size: 20px; }
.cadre-i { margin: 0 0 14px; }
.cadre-i div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--filet-2); }
.cadre-i dt { font-size: 15px; }
.cadre-i dt small { display: block; color: var(--doux); font-size: 13px; margin-left: calc(2.1em + 22px); }
.cadre-i dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.cadre-i .fort { border-top: 2px solid var(--encre); border-bottom: 0; }
.cadre-i .fort dd { font-size: 22px; color: var(--encre); font-weight: 750; }
.etat { margin: 0 0 10px; }
.etat a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r); text-decoration: none; font-weight: 650; }
.etat.rouge a { background: var(--rouge-pale); color: var(--rouge); }
.etat.ambre a { background: var(--ambre-pale); color: var(--ambre); }
.etat.vert a { background: #e6f2ec; color: var(--vert); }
.delai { font-size: 15px; color: var(--doux); margin: 0; }
.avis-fichier { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--encre); color: #fff; padding: 6px 6px 6px 22px; min-height: 56px; border-radius: var(--r); font-weight: 550; z-index: 5; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 16px; }
.avis-fichier[hidden] { display: none; }
body:has(.avis-fichier:not([hidden])) { padding-bottom: 104px; }
.avis-fichier span { padding: 8px 0; }
.avis-fichier .retablir { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--r); background: transparent; color: var(--mimosa); font: inherit; font-weight: 650; cursor: pointer; }
.avis-fichier:not(:has(button)) { padding-right: 22px; }
.docs-liste { list-style: none; padding: 0; margin: 0 0 18px; border-top: 2px solid var(--encre); }
.docs-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); color: var(--doux); }
.docs-liste b { color: var(--texte); font-weight: 600; }
.docs-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.payer { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 12px; }
.payer span { color: var(--doux); font-size: 15px; }
.payer .bouton { min-width: 200px; }

/* ------------------------------------------------------------------ documents (écran et impression) */
.imprimer main { background: var(--papier); }
.imprimer .pied { margin-top: 0; }
.d-page { padding-top: 20px; padding-bottom: 40px; }
.d-barre { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 18px; }
.d-barre a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; color: var(--doux); border-radius: var(--r); }
.d-barre a[aria-current] { background: var(--blanc); color: var(--encre); box-shadow: inset 0 -3px 0 var(--mimosa); }
.d-barre .bouton { margin-left: auto; }
.refus { background: var(--blanc); padding: 32px; border: 1px solid var(--filet); border-radius: var(--r); }
article.doc { background: var(--blanc); border: 1px solid var(--filet); padding: 32px 36px; margin: 0 auto 24px; max-width: 980px; font-size: 14.5px; line-height: 1.45; }
.d-tete { display: flex; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--encre); padding-bottom: 12px; margin-bottom: 18px; position: relative; }
.d-tete h1 { font-size: 24px; margin: 0 0 4px; }
.d-tete p { margin: 0; color: var(--doux); max-width: 46em; }
.d-soc { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 14px; white-space: nowrap; }
.d-soc b { color: var(--encre); font-size: 16px; }
.d-brouillon { position: absolute; right: 0; top: -22px; color: var(--rouge); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.d-onglet { font-size: 18px; background: var(--encre); color: #fff; padding: 8px 12px; margin: 22px 0 12px; border-radius: 3px; }
.d-cadre { margin-bottom: 16px; break-inside: avoid; }
.d-cadre h3 { font-size: 16px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--encre); padding-bottom: 4px; margin-bottom: 6px; }
.d-cadre h3 small { font-weight: 500; color: var(--doux); font-size: 13px; }
.d-tab, .d-grille { width: 100%; border-collapse: collapse; }
.d-tab th { text-align: left; font-weight: 450; padding: 5px 8px 5px 0; }
.d-tab td { text-align: right; padding: 5px 0; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.d-tab tr + tr { border-top: 1px solid var(--filet-2); }
.d-grille th, .d-grille td { border: 1px solid var(--filet); padding: 5px 7px; text-align: left; vertical-align: top; }
.d-grille thead th { background: var(--papier); font-weight: 600; font-size: 13px; }
.d-a1 td, .d-a2 td { text-align: right; font-variant-numeric: tabular-nums; }
.d-a1 tbody th, .d-a2 tbody th { font-weight: 450; white-space: nowrap; }
.d-a2 td { text-align: left; }
.d-a2 tr.calc td, .d-a2 tr.num td { text-align: right; font-variant-numeric: tabular-nums; }
tr.calc td { color: var(--encre); }
tr.fort th, tr.fort td { font-weight: 750; color: var(--encre); }
.d-tab tr.fort { border-top: 2px solid var(--encre); }
.d-report thead th { font-size: 13px; color: var(--doux); font-weight: 600; text-align: left; padding-bottom: 6px; }
.d-report td:last-child { text-align: left; padding-left: 24px; }
.d-note { font-size: 13px; color: var(--doux); margin-top: 10px; }
.d-libre { white-space: pre-wrap; }
.vide { color: var(--doux); }
.d-sign { display: flex; justify-content: space-between; gap: 24px; margin-top: 36px; padding-top: 12px; }
.d-sign-pv { flex-wrap: wrap; justify-content: flex-start; }
.d-sign-pv p { width: 30%; border-top: 1px solid var(--texte); padding-top: 6px; min-height: 70px; }
.d-pv h3 { margin-top: 18px; }
.d-pv .vote { color: var(--doux); }
.f-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.f-total { max-width: 420px; margin: 16px 0 0 auto; }

/* ------------------------------------------------------------------ téléphone */
@media (max-width: 980px) {
  .une-grille, .deux { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr 1fr; }
  .piece:nth-child(3) { padding-left: 0; border-left: 0; }
  .piece:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .outil-grille { grid-template-columns: 1fr; }
  .recap { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .haut .l { gap: 12px; min-height: 60px; }
  .haut nav a { padding: 10px 8px; }
  .logo { font-size: 19px; }
  .haut nav a[href="/#prix"] { display: none; }
  .docs { grid-template-columns: 1fr; }
  .piece, .piece + .piece { padding: 18px 0 4px; border-left: 0; }
  .piece + .piece { border-top: 1px solid var(--filet); }
  .feuille th, .feuille td { padding: 7px 12px; }
  .feuille-tete { padding: 10px 12px; gap: 12px; }
  .bouton { width: 100%; }
  /* un menu prend toute la largeur : son libellé choisi se lit en entier (« AP · Appartement », 04/12) ;
     les rangées .quatre et .trois fixent leur flex-basis avec plus de spécificité, d'où leur nom ici */
  :is(.rangee, .rangee.quatre, .rangee.trois) > .champ:has(select) { flex-basis: 100%; }
  .actions .prix-net { width: 100%; text-align: center; }
  .a1 tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .a1 tbody tr.calc { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 8px 10px 8px 0; }
  .a1 tbody th { min-width: 0; overflow-wrap: anywhere; }
  .a1 tbody th { padding: 0 0 6px; }
  .a1 tbody td { width: auto; padding: 0; }
  .a1 tbody th small { margin-left: calc(2.1em + 22px); }
  .a1 tr.dont th { padding-left: 0; }
  .a1 tr.dont { padding-left: 24px; }
  .a1 thead { display: none; }
  /* téléphone : les cinq étapes tiennent sur deux rangées, sans défilement caché */
  .etapes { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 0; overflow: visible; margin: 18px 0 20px; }
  .etapes a { justify-content: center; padding: 10px 4px; font-size: 15px; border-bottom: 2px solid var(--filet); margin-bottom: 0; }
  .etapes a[aria-current] { border-bottom: 3px solid var(--mimosa); }
  .cadre { padding: 16px; margin-left: -6px; margin-right: -6px; }
  .fichier { width: 100%; }
  .fichier .b2 { flex: 1 1 auto; padding: 0 12px; font-size: 15px; }
  .payer .bouton { width: 100%; }
  article.doc { padding: 18px 14px; font-size: 13px; }
  .d-tab td { white-space: normal; overflow-wrap: anywhere; padding-left: 10px; }
  /* grilles des pièces : une carte par ligne, chaque valeur précédée de l'en-tête de sa colonne (data-th, docs.js) */
  .d-grille, .d-grille tbody, .d-grille tr { display: block; }
  .d-grille thead { display: none; }
  .d-grille tr { border: 1px solid var(--filet); border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
  .d-grille th, .d-grille td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; border: 0; padding: 4px 0; text-align: left; overflow-wrap: anywhere; }
  .d-grille tbody th { display: block; font-weight: 650; padding-bottom: 6px; border-bottom: 1px solid var(--filet-2); margin-bottom: 4px; }
  .d-grille td::before { content: attr(data-th); color: var(--doux); font-weight: 450; }
  .d-grille td:not([data-th])::before { content: none; }
  .d-grille td:not([data-th]) { display: block; }
  .d-a1 td, .d-a2 td, .d-a2 tr.calc td, .d-a2 tr.num td { text-align: left; font-variant-numeric: tabular-nums; }
  .d-tete { flex-direction: column; }
  .d-brouillon { position: static; order: -1; margin: 0; }
  .d-soc { align-items: flex-start; text-align: left; }
  .d-barre .bouton { width: auto; }
  .relire div { grid-template-columns: 1fr; gap: 2px; }
  .d-sign-pv p { width: 45%; }
}

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { font-size: 11pt; background: #fff; }
  .haut, .pied, .d-barre, .brouillon { display: none !important; }
  .imprimer main { background: #fff; }
  .d-page { padding: 0; max-width: none; }
  article.doc { border: 0; padding: 0; margin: 0; max-width: none; font-size: 9.5pt; }
  article.doc + article.doc { break-before: page; }
  .d-onglet { break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .case, .d-grille thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .d-cadre h3 { break-after: avoid; }
}
