/* The one visual kit (docs/design/Parcours acheteur.dc.html and its laptop twin, the founder's design of 2026-11-11):
   colour roles, type scale, components. Self-hosted fonts only: an EU-only product sends no
   visitor to a third-party host. Poppins speaks (headlines, the one figure, actions); Instrument
   Sans explains (body, labels, figure rows), always with tabular figures. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500.a09f2fccfee3.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600.72993dddf88a.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-latin-wght.dafadd776a70.woff2") format("woff2"); }

/* Colour roles, by the design's own names: an inline style written as in the design
   (« var(--ink2,#5B6879) ») follows the theme too. Light here; dark under [data-theme="dark"],
   set on <html> by base.html from the buyer's own choice. Contrast (WCAG AA) was measured for
   every pair a page uses, on both grounds of the page gradient and on cards, in both modes. */
:root {
  color-scheme: light;
  /* The brand, never themed: the front door, the attestation's paper, the dot. */
  --navy: #10284A;
  --navy-press: #0B1D37;
  --green: #2BA06E;         /* the dot: marks only, never a button, never text */
  --green-vivid: #3DC98B;   /* on navy only */
  --mist: #AEBACB;          /* secondary text on navy: 7.5:1 */
  --white: #FFFFFF;
  /* Roles */
  --ink: #10284A;           /* 13.5:1 on the page */
  --ink2: #5B6879;          /* secondary text: 5.2:1 on the page, 4.6:1 on Track */
  --primary: #10284A;
  --onPrimary: #FFFFFF;
  --primaryHover: #0B1D37;
  --field: #FFFFFF;
  --fieldStroke: #7D8A9C;   /* inputs, ticks, the switch: 3.2:1 on the page (WCAG 1.4.11) */
  --stroke: #CBD5E1;        /* outlines that do not identify a control on their own */
  --stroke2: #94A3B8;
  --track: #E2E8F0;         /* progress ahead, the waiting button, hover */
  --greenBg: #DFF3E8;
  --greenBgHover: #D2ECDD;
  --greenInk: #1B6F49;      /* 5.3:1 on Green bg */
  --ochre: #9A5B12;         /* only when we need the buyer: 4.6:1 on Ochre bg */
  --ochreBg: #F7EAD5;
  --ochreBgHover: #F3E2C6;
  --shimmer: #AEBACB;
  --placeholder: rgba(255, 255, 255, .55);
  --fade: #F1F5F9;
  --fade0: rgba(241, 245, 249, 0);
  --fade9: rgba(241, 245, 249, .9);
  --glass: radial-gradient(130% 130% at 30% 12%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .66) 50%, rgba(255, 255, 255, .4) 100%);
  --glassEdge: rgba(255, 255, 255, .9);
  --glassShadow: inset 0 1px 1px #fff, inset 0 -10px 18px rgba(16, 40, 74, .05), 0 0 0 1px rgba(16, 40, 74, .07);
  --glassHover: #FFFFFF;
  --bubble: #FFFFFF;
  --paneBubble: #EEF2F7;     /* the other side's bubbles in the laptop's thread card: Ink 13:1 */
  --bubbleShadow: 0 1px 2px rgba(16, 40, 74, .06), 0 2px 10px rgba(16, 40, 74, .04);
  --card: #FFFFFF;
  --sheet: #FFFFFF;          /* the figure's sheet: solid, over a dimmed page */
  --bar: rgba(248, 250, 252, .84);   /* the laptop's top bar, over the page as it scrolls */
  --panel: #FFFFFF;          /* the laptop's side panel (the conseiller's thread) */
  --cardShadow: 0 1px 2px rgba(16, 40, 74, .04), 0 8px 24px -10px rgba(16, 40, 74, .12);
  --page: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  --pageGlow: none;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  /* Type */
  --brand: "Poppins", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  /* The names older templates and the console use */
  --marine: var(--ink); --marine-press: var(--primaryHover); --marine-2: var(--ink2);
  --vert: var(--green); --vert-fonce: var(--greenInk); --vert-clair: var(--greenBg);
  --vert-clair-hover: var(--greenBgHover); --vert-vif: var(--green-vivid);
  --ocre: var(--ochre); --ocre-clair: var(--ochreBg); --ocre-clair-hover: var(--ochreBgHover);
  --papier: var(--fade); --blanc: var(--white); --brume: var(--mist);
  --filet: var(--track); --bordure: var(--stroke); --bordure-champ: var(--fieldStroke);
  --carte: var(--stroke); --survol: var(--track); --piste: var(--track);
  --fg: var(--ink); --bg: var(--fade); --muted: var(--ink2); --accent: var(--primary);
  --accent-fg: var(--onPrimary); --border: var(--stroke); --ok: var(--greenInk); --warn: var(--ochre);
  --bad: var(--ochre);
}

/* Dark: the buyer's choice (docs/design, « Réglages »). Measured: ink 16.4:1 and ink2 7.6:1 on
   the page, 6.3:1 on a card, 5.2:1 on Track; green words 7.4:1 on Green bg; ochre 7.1:1 on
   Ochre bg; inputs and ticks 3.9:1. The warm glow sits in the top right of the first screen,
   where no secondary text is placed (ink2 4.1:1 in its very corner). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F2F4F7;
  --ink2: #A2A8B1;
  --primary: #F2F4F7;
  --onPrimary: #10284A;
  --primaryHover: #FFFFFF;
  --field: rgba(255, 255, 255, .07);
  --fieldStroke: rgba(255, 255, 255, .42);
  --stroke: rgba(255, 255, 255, .22);
  --stroke2: rgba(255, 255, 255, .42);
  --track: rgba(255, 255, 255, .13);
  --greenBg: rgba(61, 201, 139, .16);
  --greenBgHover: rgba(61, 201, 139, .22);
  --greenInk: #6BD3A2;
  --ochre: #E9AE63;
  --ochreBg: rgba(233, 174, 99, .14);
  --ochreBgHover: rgba(233, 174, 99, .2);
  --shimmer: #FFFFFF;
  --placeholder: rgba(255, 255, 255, .04);
  --fade: #161617;
  --fade0: rgba(22, 22, 23, 0);
  --fade9: rgba(22, 22, 23, .9);
  --glass: rgba(255, 255, 255, .1);
  --glassEdge: rgba(255, 255, 255, .1);
  --glassShadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  --glassHover: rgba(255, 255, 255, .16);
  --bubble: rgba(255, 255, 255, .09);
  --paneBubble: rgba(255, 255, 255, .09);
  --bubbleShadow: none;
  --card: rgba(255, 255, 255, .07);
  --sheet: #1C1C1E;
  --bar: rgba(16, 16, 17, .72);
  --panel: #202022;
  --cardShadow: none;
  --page: linear-gradient(180deg, #0E0E0F 0%, #121213 55%, #161617 100%);
  --pageGlow: radial-gradient(120% 65% at 100% 0%, rgba(158, 140, 118, .42) 0%, rgba(96, 86, 74, .18) 40%, rgba(0, 0, 0, 0) 72%);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z' fill='%2310284A'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; background: var(--fade); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background-color: var(--fade);
  background-image: var(--pageGlow), var(--page);
  background-size: 100% 100vh, 100% 100%; background-repeat: no-repeat;
  font: 400 16px/1.45 var(--text); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--primaryHover); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* One centred column: 354 px of content on a 402 pt phone, at most 440 px wide on a desktop. */
body > header, body > main, body > footer { width: 100%; max-width: 440px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
body > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; padding-top: 16px; }
body > main { padding-top: 12px; padding-bottom: 44px; animation: screen-in .32s cubic-bezier(.2, .7, .2, 1) both; }
body > main:focus { outline: none; }
body > footer { padding-bottom: 32px; font-size: 13px; line-height: 1.5; color: var(--ink2); }
body > footer p { margin: 8px 0; }
body > footer button { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.lockup { display: inline-flex; align-items: center; min-height: 44px; }
.lockup img { display: block; height: 20px; width: auto; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font: 600 14px/1.2 var(--brand); }
header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
header nav a[aria-current="page"] { text-decoration: underline; }
header nav form { margin: 0; }
header nav button { min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 22px; color: var(--ink); }
.back:hover { background: var(--track); color: var(--ink); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 12px; }
.skip-link:focus { left: 16px; top: 16px; }

/* --- The buyer and agencies (the founder's rulings of 2026-11-16) -------------------------------
   « monconseiller.ai avec [agence] »: ours first and widest, a thin divider, « avec », the agency's
   logo or its initials (white on #1B6F49, 6.0:1, in either theme) and its name, unless its logo
   spells it (below): one row, the founder's lockup of the RENT video. A band of its own, above the
   page, the same on the way in and signed in. On a phone the row holds our lockup (14 px high,
   159 px wide) and about 130 px more, so an agency that does not fit beside us moves under us as a
   whole, never cut, and the divider goes with the row (.cobrand-pair clips what stands left of its
   own edge); the band is 50 px tall either way. The logo is whatever file the agency gave (PNG or
   JPEG, any shape): 22 px high and 120 px wide at most (24 and 148 on a laptop), so never wider
   than three quarters of our lockup, fitted, never stretched; on a dark page or the laptop's photo
   it stands on white, the ground a logo is drawn for (the founder's yes of 2026-11-22). The sizes
   are the designer's second review of 2026-11-22, after the founder found the larger logos of the
   first cluttered on a phone. */
.cobrand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; width: 100%; max-width: 440px; margin: 0 auto; padding: 8px 24px 0; }
.cobrand-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; min-height: 42px; margin: 0; color: var(--ink); clip-path: inset(-8px -8px -8px 0); }
.cobrand-agency { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: -9px; }
.cobrand-agency::before { content: ""; flex: none; width: 1px; height: 16px; margin-right: 2px; background: var(--stroke); }
.cobrand-ours { display: block; flex: none; height: 14px; width: auto; }
.cobrand-with { font-size: 13px; line-height: 1; color: var(--ink2); }
.cobrand-initials { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #1B6F49; color: #FFFFFF; font: 600 10px/1 var(--brand); letter-spacing: .02em; }
.cobrand-logo { display: block; flex: none; height: 22px; width: auto; max-width: 120px; border-radius: 2px; object-fit: contain; }
:root[data-theme="dark"] .cobrand-logo, .front-agency .cobrand-logo { margin: 0 2px; background: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF; }
.cobrand-name { font: 600 13px/1.2 var(--brand); }
/* A logo that spells the agency's name stands alone (agency_sends.wordmark), the name in its alt,
   and keeps our row down to a 360 px phone: the half stays beside us while « avec » and 97 px
   of logo fit there, then takes the row's rest up to its own width, the logo narrowing to it,
   never stretched; narrower, it moves under us whole as any other. « avec »'s share in em, so
   text zoomed to 200 % moves the half under us rather than shrink the logo. */
.cobrand-agency-logo { flex: 1 1 calc(112px + 1.75em); max-width: max-content; }
.cobrand-agency-logo .cobrand-logo { flex: 0 1 auto; min-width: 0; }
@media (min-width: 1024px) {
  .cobrand { max-width: none; margin: 0; padding: 8px 28px 8px 36px; border-bottom: 1px solid var(--track); }
  .cobrand-pair { gap: 6px 19px; min-height: 40px; }
  .cobrand-agency { gap: 8px; margin-left: -10px; }
  .cobrand-agency::before { height: 18px; margin-right: 1px; }
  .cobrand-ours { height: 18px; }
  .cobrand-with { font-size: 14px; }
  .cobrand-initials { width: 24px; height: 24px; font-size: 11px; }
  .cobrand-logo { height: 24px; max-width: 148px; }
  .cobrand-name { font-size: 14px; }
  body.has-appbar:not(.bar-min) > header:not(:has(> :not(.back, .lockup, .topbar))) { display: none; }
}
/* The way in by an agency's link (the founder's rulings of 2026-11-18, the mock agence-arrivee):
   on a phone the band above the sign-up and the code (.way-band), the signed-in band itself, so
   nothing moves once the code is in, and no header at all on the landing, which has no
   « Retour » (.bare); on a laptop the pair in the photo panel under our lockup, the band no
   more, the agency's logo 28 px high and 160 px wide at most. */
body.bare > header { display: none; }
body.bare > main { padding-top: 24px; }
@media (min-width: 1024px) {
  .way-band { display: none; }
  .front-pair { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; }
  .front-agency { display: inline-flex; align-items: center; gap: 10px; }
  .front-agency .cobrand-logo { height: 28px; max-width: 160px; margin: 0 5px; box-shadow: 0 0 0 5px #FFFFFF; }
  .front-with { font-size: 15px; line-height: 1; color: var(--mist); }
  .front-name { font: 600 16px/1.25 var(--brand); color: #FFFFFF; }
  body.bare > main { margin-top: auto; padding-top: 0; }
}
/* « Ajouter un bien » and « Envoyer à une agence »: the property to choose, then the check. */
.amount-input.listing-price { margin-top: 8px; }
.amount-input.listing-price input[type="text"] { font-size: 34px; }
.listing-source { margin: 12px 0 0; font-size: 14px; overflow-wrap: anywhere; }
form label.listing-choice { align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--track); }
form label.listing-choice input[type="radio"] { margin-top: 2px; }
.listing-choice > span { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.listing-choice-price { font-weight: 600; white-space: nowrap; }
.send-check { margin-top: 12px; padding: 16px 18px; background: var(--card); border-radius: 16px; box-shadow: var(--cardShadow); }
.send-check-listing { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0; font-size: 15px; }
.send-check-listing strong { white-space: nowrap; }
.send-check-to-label { margin: 14px 0 0; font-size: 13px; color: var(--ink2); }
.send-check-to { margin: 2px 0 0; font: 600 22px/1.25 var(--brand); overflow-wrap: anywhere; }
.send-check .caption { margin: 6px 0 0; }
.send-check-url { margin: 6px 0 0; font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.send-check-agency { margin: 4px 0 0; font: 600 16px/1.3 var(--brand); }

/* A screen: its words, then its one action at the foot of the phone (the design's
   « margin-top: auto »). The screen is a direct child of main: .screen-body, then
   .screen-actions; .centered sets a done screen's words in the middle. On a wide window the
   action follows the words. */
.screen { display: flex; flex-direction: column; }
.screen > .screen-body > :first-child { margin-top: 0; }
@media (max-width: 600px) {
  body > main:has(> .screen) { display: flex; flex-direction: column; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
  body > main > .screen { flex: 1 0 auto; }
  .screen > .screen-actions { margin-top: auto; padding-top: 28px; }
  .screen.centered > .screen-body { margin-top: auto; }
  .screen.centered > .screen-body:last-child { margin-bottom: auto; }
}

/* Type scale. Section labels are the design's eyebrows: sentence case, semibold, muted. */
h1 { margin: 0 0 12px; font: 500 26px/1.22 var(--brand); letter-spacing: -0.02em; text-wrap: pretty; }
.display { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; }
h2 { margin: 32px 0 8px; font: 600 14px/1.4 var(--text); color: var(--ink2); }
h3 { margin: 16px 0 6px; font: 600 17px/1.3 var(--brand); letter-spacing: -0.01em; }
p { margin: 12px 0; }
.subtitle { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.subtitle strong { color: var(--ink); font-weight: 600; }
.display + .subtitle { margin-top: 14px; }
.lead { font-size: 17px; line-height: 1.45; }
.dateline { margin: 0 0 6px; font-size: 13px; color: var(--ink2); }
.label, .eyebrow { font-size: 14px; font-weight: 600; color: var(--ink2); }
.muted, .helptext { color: var(--ink2); }
.helptext { margin: 4px 0 6px; font-size: 13px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.5; color: var(--ink2); }
.note { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.amount-l { font: 600 32px/1 var(--brand); letter-spacing: -0.025em; }
.amount-m { font: 600 22px/1.2 var(--brand); letter-spacing: -0.015em; }
.amount-s { font: 600 18px/1.2 var(--brand); letter-spacing: -0.01em; white-space: nowrap; }
.per { font: 400 14px/1 var(--text); color: var(--ink2); }
.figure { font: 600 18px/1 var(--text); }
.split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: 56 tall, r16, Poppins 600 16. A plain button is filled Primary; .secondary is the
   Stroke outline; .quiet is words only (48 tall); .primary spans the column. Green never acts. */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; min-width: 44px; max-width: 100%; padding: 12px 24px;
  border: 1.5px solid var(--primary); border-radius: 16px; background: var(--primary); color: var(--onPrimary);
  font: 600 16px/1.2 var(--brand); letter-spacing: -0.005em; text-align: center; text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--primaryHover); border-color: var(--primaryHover); color: var(--onPrimary); }
button.primary, .button.primary { width: 100%; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: var(--stroke); }
button.secondary:hover, .button.secondary:hover { background: var(--field); color: var(--ink); border-color: var(--stroke); }
button.quiet, .button.quiet { min-height: 48px; padding: 8px 12px; border-color: transparent; border-radius: 14px; background: transparent; color: var(--ink); font-size: 15px; }
button.quiet:hover, .button.quiet:hover { background: var(--track); border-color: transparent; color: var(--ink); }
button.waiting, .button.waiting { background: var(--track); border-color: transparent; color: var(--ink2); cursor: default; }
button:disabled { background: var(--track); border-color: transparent; color: var(--ink2); cursor: default; }
.card button, .card .button { min-height: 48px; border-radius: 14px; font-size: 15px; }
.text-action { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px/1.2 var(--brand); color: var(--ink); text-decoration: none; }
.text-action:hover { text-decoration: underline; color: var(--ink); }

/* Inputs: 56 tall, r14, Instrument 17; the label 13 · 600 Ink 2 above; focus stroke Ink. */
form label, .field > label, legend { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
input:not([type]), input[type="text"], input[type="email"], input[type="number"], input[type="tel"],
input[type="date"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 56px; margin: 0; padding: 0 16px;
  border: 1.5px solid var(--fieldStroke); border-radius: 14px; background: var(--field); color: var(--ink);
  font: 400 17px/1.3 var(--text);
}
textarea { min-height: 120px; padding: 14px 16px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
/* A field in focus (docs/design of 2026-11-11): its border turns ink, as designed, with a soft
   halo in place of the page's 3 px ring, which drew the field thick; still plain to see (WCAG
   2.4.7). */
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focusHalo, rgba(16, 40, 74, .14)); }
:root[data-theme="dark"] { --focusHalo: rgba(255, 255, 255, .22); }
input::placeholder, textarea::placeholder { color: var(--ink2); opacity: 1; }
input[type="file"] { max-width: 100%; font: inherit; }
/* Ticks: the design's 26 px rounded box, filled Primary with its check once ticked. */
input[type="radio"], input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 26px; height: 26px; margin: 0 10px 0 0;
  border: 1.5px solid var(--fieldStroke); border-radius: 8px; background: var(--field) center / 16px no-repeat;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked { border-color: var(--primary); background-color: var(--primary); background-image: var(--tick); }
input[type="radio"]:checked { border-color: var(--primary); background: radial-gradient(circle, var(--onPrimary) 0 4px, var(--primary) 5px); }
input[type="radio"], input[type="checkbox"] { vertical-align: middle; }
/* A label that holds its tick (Django's radio lists): one row, the words beside the tick. */
form label:has(> input[type="radio"]), form label:has(> input[type="checkbox"]) { display: flex; align-items: center; min-height: 44px; margin: 2px 0; font-size: 16px; font-weight: 400; color: var(--ink); cursor: pointer; }
.check-row { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.check-row label { display: inline; margin: 0; font-size: 16px; font-weight: 400; color: var(--ink); cursor: pointer; }
fieldset { margin: 16px 0; padding: 0; border: 0; min-width: 0; }
/* Two answers as side-by-side buttons, the same on every screen of the buyer's space (the
   founder, 2026-11-13; web.forms.choice_buttons puts the class on the group): each radio fills
   its label, the checked one in the primary colour. */
div.yes-no { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
div.yes-no > div { display: contents; }
div.yes-no label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 8px; border: 1.5px solid var(--fieldStroke); border-radius: 14px; font: 600 15px/1.2 var(--brand); color: var(--ink); text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
div.yes-no input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 14px; background: none; opacity: 0; cursor: pointer; }
div.yes-no label:has(input:checked) { border-color: var(--primary); background: var(--primary); color: var(--onPrimary); }
div.yes-no label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { div.yes-no label { transition: none; } }
/* « Vos crédits en cours »: one line open, the others folded under « Crédit 1 (BNP) ». */
.loan-line { margin: 20px 0 0; }
fieldset.loan-line > legend { font: 600 17px/1.3 var(--brand); margin-bottom: 4px; }
details.loan-line { border-bottom: 1px solid var(--stroke); }
details.loan-line > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font: 600 17px/1.3 var(--brand); color: var(--ink); cursor: pointer; list-style: none; }
details.loan-line > summary::-webkit-details-marker { display: none; }
details.loan-line > summary .chevron { flex: none; transition: transform .2s; }
details.loan-line[open] > summary .chevron { transform: rotate(180deg); }
details.loan-line > fieldset { margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { details.loan-line > summary .chevron { transition: none; } }
/* « Retirer » beside a line's title, outside its fold (the product designer, 2026-11-13); a folded
   line says what it holds under its lender: whose, the payment, until when (the mock of
   2026-11-18, credits-en-cours). */
.loan-item { position: relative; margin: 20px 0 0; }
.loan-item > details.loan-line { margin: 0; }
.loan-item > details.loan-line > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 48px auto; align-items: center; column-gap: 12px; }
.loan-item > details.loan-line > summary > .loan-name { padding-right: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }  /* room for « Retirer » */
.loan-item > details.loan-line > summary > .chevron { grid-column: 2; grid-row: 1; }
.loan-sub { grid-column: 1 / -1; display: block; margin: -6px 0 0; padding-bottom: 14px; font: 400 14px/1.4 var(--text); letter-spacing: 0; color: var(--ink2); }
.loan-sub strong { font-weight: 600; color: var(--ink); white-space: nowrap; }
.loan-sub .loader { min-height: 0; vertical-align: -4px; font-size: 14px; }
.loan-sub .loader-ring { width: 18px; height: 18px; }
details.loan-line[open] > summary > .loan-sub { display: none; }
.loan-item > button.loan-retire { position: absolute; top: 0; right: 24px; z-index: 1; min-height: 48px; padding: 0 8px; color: var(--ink2); font-weight: 600; text-decoration: underline; }
/* Each loan's two figures side by side, the euro inside its field; then « ou » and its schedule
   instead, in the dashed box of a document to send (the mock of 2026-11-18). A loan repaid before
   the purchase (« Non ») asks none of them. */
.loan-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.loan-figures > .errorlist { grid-column: 1 / -1; margin: 8px 0 0; }
.loan-figures label { margin-top: 16px; }
.unit-field { position: relative; }
.unit-field input { padding-right: 38px; }
.unit-field .unit { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); font: 400 17px/1 var(--text); color: var(--ink2); pointer-events: none; }
.loan-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink2); }
.loan-or::before, .loan-or::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.loan-doc { margin-top: 14px; }
.loan-doc label.button { width: 100%; min-height: 56px; margin: 0; padding: 8px 14px; border: 1.5px dashed var(--fieldStroke); background: transparent; color: var(--ink); font-size: 15px; text-wrap: balance; }
.loan-doc label.button:hover { border-color: var(--ink); background: var(--field); color: var(--ink); }
.loan-doc label.button.waiting { color: var(--ink2); }
.loan-doc input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.loan-doc svg { flex: none; }
.loan-doc .picker-send { margin-top: 12px; }
.js .loan-doc .picker-send { display: none; }
/* « Remplacer cette pièce » under a card its names hold (the mock documents-identite-attente). */
.doc-rows .loan-doc { margin: 0 0 14px; }
.doc-rows .doc-note + .loan-doc { margin-top: -2px; }
.loan-file { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 6px 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--cardShadow); }
.page-mini { flex: none; width: 30px; height: 38px; border-radius: 4px; background: #FFFFFF repeating-linear-gradient(180deg, #E2E8F0 0 2px, transparent 2px 6px) 6px 8px / 18px 22px no-repeat; box-shadow: 0 1px 2px rgba(16, 40, 74, .08), 0 4px 12px rgba(16, 40, 74, .1); }
.loan-file-words { flex: 1; min-width: 0; }
.loan-file-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.loan-file-state { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--ink2); }
.loan-file-state:empty { display: none; }
.loan-file-state strong { font-weight: 600; color: var(--ink); white-space: nowrap; }
button.loan-file-x { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: var(--ink2); }
button.loan-file-x:hover { color: var(--ink); }
.loan-file-missing { margin: 10px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ochre); }
.loan-fields:has(.loan-continues input[value="no"]:checked) .loan-ask { display: none; }
.loan-removed { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--field); color: var(--ink2); font-size: 15px; }
.loan-removed button.quiet { flex: none; font-weight: 600; }
.add-loan { margin: 16px 0 0; }
.add-loan button.quiet { margin-left: -12px; font-weight: 600; }
.errorlist { margin: 4px 0 6px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ochre); }
[aria-invalid="true"] { border-color: var(--ochre); }
[role="alert"] p { margin: 12px 0; }

/* Surfaces: cards without a stroke, lifted by the soft double shadow (none in dark: the card's
   own lighter ground carries it). */
.card { margin: 12px 0; padding: 18px 20px; background: var(--card); border-radius: 24px; box-shadow: var(--cardShadow); }
section.card { margin-top: 24px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin: 0 0 4px; font-size: 15px; }
/* A card in two parts (the compromis: the purchase, then its date). */
.card-part { margin-top: 18px; }
.card-part > :first-child { margin-top: 0; } .card-part > :last-child { margin-bottom: 0; }
/* Choices to tick (the banks): one per row, its name over its reason; no rule between rows. */
.choices { margin: 20px 0 0; padding: 0; list-style: none; }
.choices > li { padding: 11px 0; }
.choices .check-row { align-items: flex-start; gap: 4px; }
.choices .check-row input { margin-top: 0; margin-right: 10px; }
.choices .check-row label { padding-top: 1px; font-weight: 600; }
.choices .why { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--ink2); }
.choices .check-row.aside { margin-top: 4px; padding-left: 40px; min-height: 0; } /* under its choice: it qualifies it */
.choices .check-row.aside input { width: 22px; height: 22px; border-radius: 7px; background-size: 14px; }
.choices .check-row.aside label { padding-top: 0; font-size: 14px; font-weight: 400; color: var(--ink2); }
/* Done: the check in its Green bg circle, above a Display headline (« C'est parti. »). */
.done-mark { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 28px; border-radius: 50%; background: var(--greenBg); color: var(--greenInk); }
/* Done, in the action's place: the green bar (« Signé · mercredi 4 novembre, 18 h 12 »). */
.done-bar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin: 28px 0 0; padding: 8px 16px; border-radius: 16px; background: var(--greenBg); color: var(--greenInk); font-size: 16px; font-weight: 600; text-align: center; animation: fade-in .3s ease-out both; }
.done-bar svg { flex: none; }
.box { margin: 16px 0 0; padding: 14px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--cardShadow); font-size: 14px; line-height: 1.45; }
.notice-box { margin: 16px 0; padding: 14px 16px; background: var(--ochreBg); border-radius: 16px; font-size: 14px; line-height: 1.45; }
.notice-box h2 { margin: 0 0 6px; color: var(--ochre); }
.notice-box ul { margin: 6px 0 0; padding-left: 18px; }
.messages { margin: 0 0 16px; padding: 0; list-style: none; }
.messages li { margin: 0 0 8px; padding: 12px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--cardShadow); font-size: 15px; line-height: 1.4; }
/* The fee line: written the same way wherever it is told, the amount in Poppins 600 16. */
.fee { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 28px 0 0; }
.fee-title { display: block; font-size: 16px; font-weight: 600; }
.fee-sub { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink2); text-wrap: pretty; }
.fee-amount { font: 600 16px/1.3 var(--brand); white-space: nowrap; }
/* A legal text slot: its own dashed space at the moment it applies, never a modal. */
.slot { margin: 24px 0 0; padding: 14px 16px; border: 1.5px dashed var(--stroke); border-radius: 14px; background: var(--placeholder); font-size: 13px; line-height: 1.45; color: var(--ink2); }
.slot + .slot { margin-top: 12px; }
h2 + .slot, h2 + .slot-scroll { margin-top: 8px; }
.slot p { margin: 0 0 8px; } .slot p:last-child { margin-bottom: 0; }
/* Texts read before a signature, in one scrolling space under the fee (the design's 150 px). */
.slot-scroll { max-height: 150px; margin-top: 24px; overflow: auto; overscroll-behavior: contain; border-radius: 14px; }
.slot-scroll > .slot:first-child { margin-top: 0; }
.specimen { padding: 12px 16px; border: 1.5px dashed var(--ochre); border-radius: 14px; }

/* The one card under the headline: Green bg for what the buyer does or reads next, Ochre bg
   only when we need something again. Kicker · title (the link, over the whole card) · one
   sentence · the action's word. */
.next { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 24px 0 0; padding: 18px 20px; background: var(--greenBg); border-radius: 24px; }
.next:hover { background: var(--greenBgHover); }
.next:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.next .kicker { font-size: 13px; font-weight: 600; color: var(--greenInk); }
.next .next-title { margin: 0; font: 600 17px/1.3 var(--brand); letter-spacing: -0.01em; }
.next .next-title a { color: var(--ink); text-decoration: none; }
.next .next-title a:focus-visible { outline: none; }
.next .next-title a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.next .next-sub { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.next .next-cta { margin-top: 6px; font: 600 15px/1.3 var(--brand); color: var(--greenInk); }
.next.ask { background: var(--ochreBg); }
.next.ask:hover { background: var(--ochreBgHover); }
.next.ask .kicker, .next.ask .next-cta { color: var(--ochre); }

/* The dot of « .ai »: progress, live status, things that went right; always the dot's size. */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dot.live { animation: pulse 1.8s ease-in-out infinite; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 28px 0 0; padding: 0 14px 0 12px; border-radius: 999px; background: var(--greenBg); color: var(--greenInk); font-size: 14px; font-weight: 600; }
/* A mark beside a name (« Conseil de … », « Votre choix »). */
.mark { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--greenBg); color: var(--greenInk); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }

/* Four stages, never more: reached Green, ahead Track; current label Green ink, passed Ink,
   ahead Ink 2. */
.stages { display: flex; gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.stages li { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--ink2); }
.stages li::before { content: ""; display: block; height: 4px; margin-bottom: 10px; border-radius: 2px; background: var(--track); }
.stages li.reached::before { background: var(--green); }
.stages li.passed { color: var(--ink); }
.stages li.current { color: var(--greenInk); }

/* Rows: tight, no rule between them; the label left, the status or figure right. */
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; font-size: 16px; }
.rows .status { display: flex; flex: none; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); text-align: right; white-space: nowrap; }
.rows .status.live, .rows .status.note { color: var(--ink); }
.rows .status.good { color: var(--greenInk); font-weight: 600; }
.bank-rows li > :first-child { font-weight: 600; }
.feed { margin: 0; padding: 0; list-style: none; }
.feed li { display: flex; gap: 16px; padding: 8px 0; }
.feed time { flex: 0 0 58px; padding-top: 2px; font-size: 13px; color: var(--ink2); }
.feed span { font-size: 15px; line-height: 1.4; text-wrap: pretty; }
/* Document rows with person tags: one row per type; a tag per borrower, 26 tall, Instrument 600
   13: outline while still needed, Green bg with the check once read, flipping with a 300 ms
   fade. The row is the summary of what it holds one tap away; its notes stay in sight under
   it. The header above the rows counts what is missing (.label, .figure). */
.doc-head { margin-top: 32px; }
.doc-rows { margin: 6px 0 0; padding: 0; list-style: none; }
.doc-rows summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 44px; padding: 9px 0; cursor: pointer; list-style: none; }
.doc-rows summary::-webkit-details-marker { display: none; }
.doc-rows summary:hover .doc-title { text-decoration: underline; text-underline-offset: 2px; }
.doc-title { flex: 1 1 10rem; min-width: 0; font-size: 16px; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border: 1px solid var(--stroke); border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink2); white-space: nowrap; }
.tag.read { padding-left: 8px; border-color: transparent; background: var(--greenBg); color: var(--greenInk); animation: fade-in .3s ease-out both; }
.tag svg { flex: none; }
.chevron { flex: none; color: var(--ink2); transition: transform .2s ease-out; }
/* The documents list (docs/design of 2026-11-11): the title, then its tags on the same line to
   the right, a borrower's first name alone while a document is still to send; the chevron that
   opens what it is and « Je ne peux pas l'obtenir » stays, quieter. */
.doc-rows summary { flex-wrap: nowrap; }
.doc-rows summary .tags { justify-content: flex-end; }
.doc-rows summary .chevron { width: 16px; height: 16px; color: var(--stroke2, #94A3B8); }
.doc-rows details[open] .chevron { transform: rotate(180deg); }
/* A line whose fold would hold nothing (the mock documents-budget): no chevron, its tags in the
   same column as the others, the chevron's space kept. */
.doc-rows .doc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 44px; padding: 9px 0; }
.doc-rows .doc-row .tags { justify-content: flex-end; }
.doc-rows .chevron-space { flex: none; width: 16px; }
/* Before the budget (the mock documents-budget, round 6): a line is a plain row, its title with
   its « ? », its tags and, only when it holds a file to take back, a chevron of its own (16 px,
   Stroke 2, a 44 px button by negative margins) that opens « Retirer » under the row; never one
   control inside another. Where another line has a chevron, a line without one keeps its
   place, so every tag ends at the same edge. Without the page's script the files show
   (documents.html's <noscript>). */
.row-more { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -9px -14px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--stroke2, #94A3B8); }
.row-more:hover, .row-more:focus-visible { background: transparent; border: 0; color: var(--ink); }
.row-more:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.row-more svg { transition: transform .2s ease-out; }
.row-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.row-space { flex: none; width: 16px; }
/* « Retirer », a small text, not a button (the founder's ruling of 2026-11-22, the mock round 7):
   under the row, right-aligned on the tags' edge (the chevron's column and its gap left clear),
   one per file, the tags' 13 px 600, in Ink and underlined: an action, not a state; each a
   44 px target, stacked without overlap; it never wraps. */
.doc-rows .doc-more.files { display: flex; flex-direction: column; align-items: flex-end; margin-top: -8px; padding: 0 28px 6px 0; }
.doc-rows .doc-more.files[hidden] { display: none; }
.doc-more.files form { margin: 0; }
.file-x { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; max-width: 100%; margin: 0; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 13px/1.2 var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.file-x:hover { background: transparent; border: 0; color: var(--ink); text-decoration-thickness: 2px; }
.file-x:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
/* The « ? », there for whoever looks: a 14 px ring in Ink 2 3 px after the title's last word,
   its « ? » 9 px, kept with that word so it never wraps alone; a 44 px target whose negative
   margins keep the row and the title's line as they were. */
.hint-q { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -15px -21px -15px -12px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); font: 600 9px/1 var(--brand); }
.hint-q:hover, .hint-q:focus-visible { background: transparent; border: 0; color: var(--ink); }
.doc-title .last-word { white-space: nowrap; }
.hint-q:focus-visible { outline: 3px solid var(--ink); outline-offset: -10px; }
.hint-q > span { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border: 1.25px solid currentColor; border-radius: 50%; }
/* Its card, under the « ? » (the browser's popover: a tap, a click, Enter or Space opens and
   closes it, Escape or a tap outside dismisses it; the page's script places it and opens it on
   hover where a pointer hovers): solid, as the sheets, the line's explanation alone. Where the
   browser has no popover, the page's script shows the same card itself (.shown); without the
   script, the explanation sits under its title (documents.html's <noscript>). */
.hint-pop { display: none; position: absolute; inset: auto; margin: 0; width: 300px; max-width: calc(100vw - 32px); padding: 12px 14px; border: 0; border-radius: 14px; background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 74, .08), 0 10px 28px rgba(16, 40, 74, .18); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.hint-pop.shown { display: block; z-index: 40; }
.hint-pop:popover-open { display: block; }
:root[data-theme="dark"] .hint-pop { box-shadow: 0 10px 28px rgba(0, 0, 0, .5); outline: 1px solid var(--stroke); }
.hint-pop p { margin: 0; }
/* « Plus tard », the way out on the way in from the sign-up: the quiet button under the main
   one; and its ×, top right, where a whole flow or a sheet is closed (the sheets' glyph). */
.doc-action .later { display: flex; justify-content: center; width: fit-content; margin: 6px auto 0; font-weight: 600; }
.close-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0 -10px 0 auto; border-radius: 22px; color: var(--ink); }
.close-x:hover { background: var(--track); color: var(--ink); }
@media (min-width: 1024px) {
  /* « Plus tard » and the caption centred under the drop area (the founder's ruling of
     2026-11-22, the mock documents-budget round 4). */
  .doc-action .later { min-width: 0; margin: 12px auto 0; }
  .doc-grid .doc-action > form.picker ~ .caption { text-align: center; }
}
.doc-more { padding: 0 0 16px; }
.doc-more > :first-child { margin-top: 0; }
.doc-note { margin: -4px 0 12px; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.doc-note.ask { color: var(--ochre); font-weight: 600; }
.doc-action { padding-top: 28px; }
/* « À qui est ce document ? »: one tap per borrower, side by side while they fit. */
.choice-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.choice-buttons form { margin: 0; flex: 1 1 9rem; }
.choice-buttons button { width: 100%; min-height: 48px; border-radius: 14px; font-size: 15px; }
.doc-action .caption { margin: 14px 0 0; text-align: center; text-wrap: pretty; }
/* « Chiffrés et hébergés en France. » opens « Vos données et l'IA » (the mock documents-donnees):
   the caption's own words and colour, underlined. */
.doc-action .caption a { color: inherit; text-underline-offset: 2px; }
.doc-action .caption a:hover { color: var(--ink); }

/* The one button that opens the file picker: the native file input, visually hidden, and its
   label set as the primary button. Choosing files sends them; without scripts, a plain send
   button follows. */
.picker { margin: 0; }
.picker label.button { margin: 0; font-size: 16px; color: var(--onPrimary); }
.picker input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.picker label.button.waiting { color: var(--ink2); }
.picker .picker-send { margin-top: 12px; }
.js .picker .picker-send { display: none; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 22px; font: 600 15px/1.2 var(--brand); color: var(--ink); text-decoration: none; }
.row-link:hover span:first-child { text-decoration: underline; }
.row-link .count { font-weight: 400; color: var(--ink2); }

/* The conseiller: a Primary avatar until a photo exists. */
.person { display: flex; align-items: center; gap: 12px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--onPrimary); font-size: 12px; font-weight: 600; flex: none; }
.avatar.bank { background: var(--track); color: var(--ink); font-size: 11px; letter-spacing: .02em; }
.person-name { display: block; padding-top: 1px; font-size: 15px; font-weight: 600; }
.person-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
/* Underlined: a cold reader of 2026-11-09 could not tell bold words from links here. */
.person-actions .text-action { font-size: 14px; text-decoration: underline; }
/* The conseiller's word, signed (« — Sophie »). */
.quote { align-items: flex-start; margin-top: 28px; font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.quote .avatar { margin-top: -2px; }
figure.quote { margin: 36px 0 0; }
figure.quote blockquote { margin: 0; font-size: 17px; line-height: 1.45; }
figure.quote figcaption { margin-top: 6px; font-size: 14px; }

/* A proposition or an offer: no card; the bank, the monthly figure, its terms side by side. */
.option { margin-top: 40px; }
.option + .option { margin-top: 44px; }
.option > :last-child { margin-bottom: 0; }
.option-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0; }
.option-title { margin: 0; font: 600 17px/1.3 var(--brand); letter-spacing: -0.01em; color: var(--ink); }
.option-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 14px 0 0; }
.option-figure .per { font-size: 15px; line-height: 1.3; }
.option .note { margin: 12px 0 0; }
.option > .split { margin: 0; }
.option > .split + .note { margin-top: 8px; }
.option-head + .note, .option-title + .note { margin-top: 4px; }
.option .notice-box { margin: 12px 0 0; }
.option + .total-note { margin-top: 36px; }
.option .choice-buttons { margin-top: 16px; }
.terms { display: flex; gap: 12px; margin: 16px 0 0; }
.terms > div { flex: 1 1 0; min-width: 0; }
.terms > div + div { flex-grow: 1.5; }
.terms dt { font-size: 12px; color: var(--ink2); }
.terms dd { margin: 3px 0 0; font: 600 17px/1.2 var(--text); }
/* Facts in rows: the label left, the value right; tight, no rules. */
.facts { margin: 16px 0 0; }
.facts > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 11px 0; }
.facts dt { font-size: 15px; }
.facts dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; }
/* A date that matters, under its eyebrow (« Vous pourrez l'accepter à partir du »). */
.date-block { margin-top: 32px; }
.date-block > * { margin: 0; }
.date-block .amount-m { margin-top: 6px; }
.date-block .note { margin-top: 8px; }
.figure-rows + .caption { margin-top: 8px; }
/* A document to read or take (« Offre de prêt — Crédit Mutuel », « Votre dossier complet »): its
   paper when it is one, white in either theme as the attestation's; its name over what it is;
   the verb on the right. The whole row is the one tap. */
.doc-line { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 28px; color: var(--ink); text-decoration: none; }
.doc-line:hover { color: var(--ink); }
.doc-line .paper { flex: none; width: 36px; height: 44px; border-radius: 5px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(16, 40, 74, .06), 0 4px 12px rgba(16, 40, 74, .08); }
.doc-line .doc-name { flex: 1; min-width: 0; }
.doc-line-title { display: block; font-size: 15px; font-weight: 600; }
.doc-line-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--ink2); }
.doc-read { flex: none; font: 600 14px/1.2 var(--brand); }
.doc-line:hover .doc-read { text-decoration: underline; }
.quote + .doc-line { margin-top: 32px; }
/* One photo or PDF to add (the offer's receipt, its acceptance): the file input hidden behind
   one outlined button that names the file once chosen. */
.photo-pick { margin-top: 20px; }
.photo-pick label.button { display: flex; width: 100%; margin: 0; overflow-wrap: anywhere; }
.photo-pick label.button.chosen { border-color: var(--ink); }
.photo-pick input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.photo-pick + .helptext { margin-top: 8px; }
/* A headline with its pill beside it (« Vos documents. » and « Résumé »). */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1 { margin: 0; }
/* The day above a Display headline (« jeudi 14 janvier », « Les fonds sont versés. »). */
.dateline-eyebrow { margin: 0; }
.dateline-eyebrow + h1 { margin-top: 10px; }
.vault-note { margin-top: 24px; }

/* Older page parts, in the kit's terms. */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid var(--track); text-align: left; vertical-align: top; }
.badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--stroke); border-radius: 999px; font-size: 13px; font-weight: 600; }
.ok { color: var(--greenInk); } .warn, .bad { color: var(--ochre); }
dl.project { margin: 16px 0; } dl.project > div { padding: 9px 0; }
dl.project dt { font-size: 14px; color: var(--ink2); } dl.project dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
ul.plain { margin: 0; padding: 0; list-style: none; }
ul.lines { margin: 8px 0; padding: 0; list-style: none; } ul.lines > li { margin: 8px 0; overflow-wrap: anywhere; }
details.more { margin-top: 12px; }
details.more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font: 600 15px/1.2 var(--brand); color: var(--ink); }
/* A list of files to take: the name left, whose it is right. */
.file-rows { margin: 4px 0 0; padding: 0; list-style: none; }
.file-rows > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 8px 0; font-size: 15px; }
.file-rows .muted { font-size: 14px; white-space: nowrap; }
.file-rows a { color: var(--ink); text-decoration: none; transition: color .15s; }  /* plain, as designed */
.file-rows a:hover, .file-rows a:focus-visible { color: var(--greenInk); }

/* The brand-mark loader (templates/web/_loader.html): the ring draws itself while the house
   breathes; its words, with a light running across them while something is read (.shimmer). */
.loader { display: inline-flex; align-items: center; gap: 10px; min-height: 22px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink2); }
.loader-ring { display: block; flex: none; width: 22px; height: 22px; }
.loader-track { fill: var(--track); }
.loader-arc { stroke: var(--ink); stroke-dasharray: 100 100; animation: ring-trace 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.loader-house { fill: var(--green); animation: house-breath 1.6s ease-in-out infinite; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .loader.shimmer .loader-text {
    color: transparent;
    background: linear-gradient(90deg, var(--ink2) 0%, var(--ink2) 40%, var(--shimmer) 50%, var(--ink2) 60%, var(--ink2) 100%);
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
    animation: shimmer 1.8s linear infinite;
  }
}

/* Frosted glass: the round buttons over the page (56) with their word under them, and the pill
   (« Résumé »). The dock holds them at the foot of the screen, the page fading under it. */
.glass, button.glass, a.glass {
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--glassEdge); box-shadow: var(--glassShadow); color: var(--ink); transition: background .2s;
}
.glass:hover, button.glass:hover, a.glass:hover, .glass-action:hover .glass { background: var(--glassHover); border-color: var(--glassEdge); color: var(--ink); }
.glass.glass-round { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; min-width: 0; min-height: 0; padding: 0; border-radius: 50%; }
.glass.glass-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 40px; min-width: 0; min-height: 0; padding: 0 14px 0 11px; border-radius: 999px; font: 600 14px/1 var(--brand); letter-spacing: 0; text-decoration: none; }
.glass svg { stroke: var(--ink); }
.glass-badge { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--fade); }
.glass-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.glass-action, button.glass-action { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: 600 13px/1.2 var(--text); text-decoration: none; }
button.glass-action:hover, a.glass-action:hover { background: transparent; color: var(--ink); }
.dock { position: sticky; bottom: 0; z-index: 5; margin: 24px -24px 0; padding: 30px 24px 34px; background: linear-gradient(to bottom, var(--fade0) 0, var(--fade9) 34%, var(--fade) 62%); }

/* A thread: the other side's bubbles left on Bubble with its soft shadow, the buyer's right on
   Green bg; the day centred between them; the composer held at the foot, the page fading
   under it, its send button round and Primary. */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.thread > li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.thread > li.mine { align-items: flex-end; }
.thread-date { align-self: center; margin: 10px 0 2px; font-size: 12px; color: var(--ink2); }
.thread-name { margin: 4px 6px -2px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.bubble { max-width: 86%; margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--bubble); box-shadow: var(--bubbleShadow); font-size: 15px; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
.bubble > :first-child { margin-top: 0; } .bubble > :last-child { margin-bottom: 0; }
.mine > .bubble, .bubble.mine { background: var(--greenBg); box-shadow: none; }
.composer { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: flex-end; gap: 8px; margin: 0 -8px; padding: 24px 8px 24px; background: linear-gradient(to bottom, var(--fade0) 0, var(--fade) 24px); }
.composer input, .composer textarea { flex: 1; min-width: 0; min-height: 48px; padding: 12px 18px; border-radius: 24px; font-size: 16px; line-height: 1.3; }
.composer input { height: 48px; padding-top: 0; padding-bottom: 0; }
.composer textarea { resize: none; overflow-y: hidden; max-height: calc(1.3em * 7 + 26px); }  /* grows with the text to seven lines, then scrolls */
button.send { flex: none; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: var(--onPrimary); }
button.send:hover { background: var(--primaryHover); color: var(--onPrimary); }
button.send svg { stroke: currentColor; }
/* A thread's head (docs/design, screen 19): back, who it is with, the conseiller's booking page;
   the pack's send and a message that waits for the conseiller as lines centred like the day. */
.thread-head { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 52px; }
.thread-head .back { flex: none; }
.thread-who { flex: 1; min-width: 0; margin-left: 4px; }
.thread-who h1 { margin: 0; overflow: hidden; font: 600 16px/1.3 var(--text); letter-spacing: 0; white-space: nowrap; text-overflow: ellipsis; }
.thread-who span { display: block; overflow: hidden; font-size: 13px; color: var(--ink2); white-space: nowrap; text-overflow: ellipsis; }
.head-action { display: inline-flex; flex: none; align-items: center; height: 36px; padding: 0 14px; border: 1.5px solid var(--stroke); border-radius: 999px; font: 600 14px/1 var(--brand); color: var(--ink); text-decoration: none; }
.head-action:hover { background: var(--field); color: var(--ink); }
.thread-line { align-self: center; max-width: 86%; margin: 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink2); text-align: center; text-wrap: pretty; }
.bubble > .visually-hidden:first-child + * { margin-top: 0; }
.bubble .mail-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.screen > .composer { margin-top: auto; }
.bubble p + .mail-body, .bubble p + p { margin-top: 8px; }
.bubble ul { margin: 6px 0 0; padding-left: 18px; }
.thread-empty { margin: 32px 4px 0; font-size: 15px; line-height: 1.45; color: var(--ink2); text-align: center; text-wrap: pretty; }

/* The inbox and the banks (docs/design, screens 21 and 22): one row per thread or bank, the
   whole row a link; Green bg dot while a thread holds what the buyer has not opened. */
.avatar.large { width: 44px; height: 44px; font-size: 13px; }
.avatar.large.bank { font-size: 12px; }
.inbox-card { margin-top: 22px; padding: 4px 18px; }
.inbox-card + .inbox-card { margin-top: 12px; padding-top: 14px; padding-bottom: 6px; }
.inbox-card h2 { margin: 0; font-size: 15px; }
.inbox-rows, .bank-list { margin: 0; padding: 0; list-style: none; }
.inbox-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.inbox-card h2 + .inbox-rows .inbox-row { padding: 10px 0; }
.inbox-row:hover { color: var(--ink); }
.inbox-row:hover .inbox-name { text-decoration: underline; }
.inbox-text { flex: 1; min-width: 0; }
.inbox-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.inbox-name { font-size: 16px; font-weight: 600; }
.inbox-date { flex: none; font-size: 13px; color: var(--ink2); }
.inbox-sub { display: block; margin-top: 1px; font-size: 13px; color: var(--ink2); }
.inbox-last { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.inbox-preview { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; line-height: 1.4; color: var(--ink2); white-space: nowrap; text-overflow: ellipsis; }
.unread .inbox-preview { color: var(--ink); }
.unread-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.bank-list { margin-top: 20px; }
.bank-list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.bank-list a:hover .bank-name { text-decoration: underline; }
.bank-list .bank-text { flex: 1; min-width: 0; }
.bank-name { display: block; font-size: 16px; font-weight: 600; }
.bank-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink2); }
.bank-list .status, .rows.links .status { display: flex; flex: none; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); text-align: right; }
.bank-list .status.live, .bank-list .status.note { color: var(--ink); }
.bank-list .status.good { color: var(--greenInk); font-weight: 600; }
.bank-list .chevron, .card-link svg { flex: none; fill: var(--ink2); }

/* The home (docs/design, screen 08): the badge (the mark turning once into the buyer's
   initials) and « Rechercher » over the headline and its one next step; then white cards; the
   dock at the foot. */
.topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; width: 100%; height: 52px; }
.home-badge-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -4px; border-radius: 22px; }
.home-badge { position: relative; display: block; width: 36px; height: 36px; perspective: 300px; }
.home-badge-turn { position: absolute; inset: 0; transform: rotateY(540deg); transform-style: preserve-3d; }
.home-badge-turn.spin { animation: mark-spin 1.5s cubic-bezier(.55, 0, .15, 1) .6s both; }
.home-badge-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.home-badge-face.initials { transform: rotateY(180deg); background: var(--greenBg); color: var(--greenInk); font: 600 13px/1 var(--brand); letter-spacing: .02em; }
.home-badge-face svg { width: 30px; height: 30px; }
.mark-ring { fill: var(--ink); }
.mark-house { fill: var(--green); }
.search-pill { display: flex; justify-self: center; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 236px; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--card); box-shadow: var(--cardShadow); color: var(--ink2); font-size: 15px; text-decoration: none; }
.search-pill:hover { color: var(--ink); }
.search-pill svg { flex: none; stroke: currentColor; }
.home-head { margin-top: 8px; padding: 0 4px; }
.home-head h1 { margin: 0; }
.next-link, button.next-link { display: block; width: auto; min-width: 0; min-height: 44px; margin: 2px 0 0; padding: 12px 0; border: 0; border-radius: 0; background: transparent; color: var(--greenInk); font: 600 15px/1.3 var(--brand); text-align: left; text-decoration: none; }
.next-link:hover, button.next-link:hover { background: transparent; color: var(--greenInk); text-decoration: underline; }
.next-link.ask, .next-link.ask:hover { color: var(--ochre); }
.next-link.plain, .next-link.plain:hover { color: var(--ink); }
.home-head form, .home-budget form { margin: 0; }
.home-head .box { margin-top: 10px; }
.home-head .button.home-import { margin-top: 20px; width: 100%; }  /* nothing imported yet: the one button */
/* Under it, « J'ai signé mon compromis » as the second button (the founder, 2026-11-13). */
.home-head .home-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.home-head .home-ctas .button.home-import { margin-top: 0; }
.home-head .home-ctas .next-link { margin-top: 0; }
.home-head .home-ctas form { margin: 0; }
.home-head .home-ctas button.home-signed { width: 100%; }
.home-budget { margin-top: 14px; padding: 0 4px; }
.home-budget .figure-link { display: flex; align-items: baseline; gap: 6px; color: var(--ink); text-decoration: none; }
.home-budget .amount { font: 600 36px/1 var(--brand); letter-spacing: -0.03em; }
.home-budget .unit { font: 500 20px/1 var(--brand); color: var(--ink2); }
.home-budget .monthly { margin: 10px 0 0; font-size: 15px; color: var(--ink2); }
.home-budget .budget-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 6px 0 0; }
.home-budget .budget-links .text-action { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.card.home-card { margin: 12px 0 0; padding: 16px 20px 18px; }
.card.home-card.first { margin-top: 20px; padding-bottom: 16px; }
/* « En attente » (docs/design, screen 08): what the file waits on, each a status; one row at most
   carries the action the buyer takes now. */
.card.home-card.waits { margin-top: 20px; padding: 14px 20px 8px; }
.home-main .card.home-card.first + .card.home-card.waits { margin-top: 12px; }  /* under the stages */
.home-card .card-title + .wait-rows { margin-top: 2px; }
.wait-rows { margin: 0; padding: 0; list-style: none; }
.wait-rows li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; }
.wait-row-text { font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.wait-row-status { font-size: 14px; line-height: 1.4; color: var(--ink2); text-wrap: pretty; }
.wait-rows form { margin: 0; }
.wait-rows .next-link { margin: 0; padding: 8px 0; font-size: 14px; }
.home-card .stages { margin: 0; }
.home-card .card-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink2); }
.home-card .card-title + * { margin-top: 12px; }
.card-link { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; font-size: 15px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.card-link:hover { color: var(--ink); }
.card.home-card.banks { padding: 12px 20px 8px; }
.card.home-card.banks h2 { margin: 0; }
.card.home-card.news { padding-bottom: 10px; }
.rows.links li { padding: 0; }
.rows.links a { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.rows.links a:hover > span:first-child { text-decoration: underline; }
.rows.links .status { white-space: nowrap; }
.rows.links .status.live, .rows.links .status.note { color: var(--ink); }
.rows.links .status.good { color: var(--greenInk); font-weight: 600; }
.home-card .split { flex-wrap: nowrap; align-items: flex-start; }
.home-card .place { margin: 0; font-size: 16px; font-weight: 600; }
.home-card .place-what { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--ink2, #5B6879); }
.home-card .deadline { margin: 14px 0 0; font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.home-card .notice-box { margin: 12px 0 0; }
.dock .glass-action .glass-round { color: var(--ink); }

/* A switch (« Mode sombre »): a button with role="switch", its state in aria-checked. Off on
   Field stroke (3.5:1 on a card), on Green; the knob white. */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin: 0; padding: 8px 0; font-size: 16px; }
/* Off: the design's light track (2026-11-11), outlined in the field stroke so the control keeps
   3:1 against the card (WCAG 1.4.11); on: green, no outline. */
button.switch { position: relative; flex: none; width: 52px; height: 32px; min-width: 52px; min-height: 32px; padding: 0; border: 0; border-radius: 16px; background: var(--track); box-shadow: inset 0 0 0 1.5px var(--fieldStroke); transition: background .2s, box-shadow .2s; }
button.switch:hover { background: var(--track); }
button.switch[aria-checked="true"] { box-shadow: none; }
button.switch[aria-checked="true"], button.switch[aria-checked="true"]:hover { background: var(--green); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s; }
button.switch[aria-checked="true"] .switch-knob { left: 23px; }

/* The front door: the only navy surface in either theme, the white lockup, Display in white,
   Mist for the rest; the action turns white so it still reads first. */
body.door { --ink: #FFFFFF; --ink2: #AEBACB; background: var(--navy); color: var(--white); }
body.door > header { padding-top: 28px; }
body.door .lockup img { height: 24px; }
body.door a, body.door a:hover { color: var(--white); }
body.door :focus-visible { outline-color: var(--white); }
body.door h1 { margin-top: 40px; }
body.door p, body.door .subtitle, body.door .helptext, body.door form label, body.door > footer { color: var(--mist); }
body.door p strong { color: var(--white); }
body.door .lead { margin-top: 22px; }
body.door input { border-color: var(--white); background: var(--white); color: var(--navy); }
body.door input::placeholder { color: #5B6879; }
body.door input:focus { border-color: var(--green-vivid); }
body.door button, body.door .button { background: var(--white); border-color: var(--white); color: var(--navy); }
body.door button:hover, body.door .button:hover { background: #F1F5F9; border-color: #F1F5F9; color: var(--navy); }
body.door .errorlist { color: #F7EAD5; }
body.door .messages li { background: transparent; border: 1px solid var(--mist); box-shadow: none; color: var(--white); }
.door-form { margin-top: 40px; }
/* The welcome (docs/design, screen 01, 2026-11-11): the founder's photo full-bleed under the
   navy, the promise's last words in the design's green, the two doors in glass. The overlay is
   the design's, darker over the headline (.68 down to 40 %, where the design had .62 easing to
   .35 at 45 %): measured on the photo composited at 320 to 430 px wide, the brightest pixel
   behind each text gives white headline 6.8:1, « en un clic » 3.3:1 (large text), the doors 8.3:1
   and their second line 6.5:1 (on the blurred photo), « Me connecter » 14.5:1. Without
   backdrop-filter, or when the reader asks for less transparency, the doors turn solid navy. */
body.door.welcome {
  background:
    linear-gradient(180deg, rgba(10, 27, 46, .68) 0%, rgba(10, 27, 46, .68) 40%, rgba(10, 27, 46, .35) 55%, rgba(10, 27, 46, .65) 100%),
    radial-gradient(110% 75% at 20% 28%, rgba(10, 27, 46, .5), transparent 62%),
    url("brand/hero-background.bd82b9615ef1.jpg") 62% center / cover no-repeat,
    #0A1B2E;
}
body.door.welcome .screen-body { margin-top: 92px; }
body.door.welcome h1 { margin: 0; color: var(--white); }
body.door.welcome .promise { color: #2ECC8B; }
body.door.welcome .screen-actions { padding-top: 40px; }
body.door.welcome a.door-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 18px 18px 20px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 24px; background: rgba(255, 255, 255, .10); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); color: var(--white); text-align: left; text-decoration: none; transition: background-color .15s; }
body.door.welcome a.door-choice:hover { background: rgba(255, 255, 255, .16); color: var(--white); }
.door-choice-title { display: block; font: 600 16px/1.2 var(--brand); letter-spacing: -0.005em; }
.door-choice-sub { display: block; margin-top: 3px; font: 400 14px/1.3 var(--text); color: rgba(255, 255, 255, .85); }
body.door a.door-login { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 16px; font: 600 15px/1.2 var(--brand); text-decoration: none; }
body.door a.door-login:hover { background: rgba(255, 255, 255, .08); }
/* Behind a door (docs/design of 2026-11-11, « De quoi avez-vous besoin ? »): « Retour », the
   question, the two goals drawn side by side, each a link; the drawings take the text's colour. */
body.door a.door-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -12px; padding: 0 14px 0 8px; border-radius: 22px; font: 600 14px/1 var(--brand); text-decoration: none; }
body.door a.door-back:hover { background: rgba(255, 255, 255, .08); }
.goal-ask { margin: 0 0 6px; font: 500 24px/1.2 var(--brand); letter-spacing: -0.02em; color: var(--white); }
.goal-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.goal-choices li { display: flex; min-width: 0; }
body.door a.goal-choice { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 8px 8px 12px; border-radius: 20px; color: var(--white); text-decoration: none; transition: background-color .15s; }
body.door a.goal-choice:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.goal-art { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; }
.goal-art .paper { fill: rgba(255, 255, 255, .08); }
.goal-art .tint { fill: rgba(255, 255, 255, .22); }
.goal-choice-title { display: block; margin-top: 8px; padding: 0 2px; font: 600 15px/1.25 var(--brand); letter-spacing: -0.005em; text-wrap: pretty; }
.goal-choice-sub { display: block; margin-top: 3px; padding: 0 2px; font: 400 13px/1.4 var(--text); color: rgba(255, 255, 255, .85); text-wrap: pretty; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.door.welcome a.door-choice, body.door.welcome a.door-choice:hover { background: var(--navy); }
}
@media (prefers-reduced-transparency: reduce) {
  body.door.welcome a.door-choice, body.door.welcome a.door-choice:hover { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* The budget screens (docs/design, screens 04 to 07): one figure in Poppins, the answer; the
   figures that make it in Instrument Sans tabular, right-aligned; the wait in words, each line
   lit as it lands. */
.figure-title { margin: 0; }
.figure-title .label { display: block; margin-bottom: 12px; }
.amount-xl { display: block; font: 600 clamp(40px, 14vw, 56px)/1 var(--brand); letter-spacing: -0.03em; white-space: nowrap; }
.amount-xl .unit { font: 500 28px/1 var(--brand); letter-spacing: 0; color: var(--ink2); }
.figure-title + .subtitle { margin-top: 14px; }
.amount-input { display: flex; align-items: baseline; gap: 8px; margin-top: 44px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.amount-input:has([aria-invalid="true"]) { border-bottom-color: var(--ochre); }
.amount-input input[type="text"] { flex: 1; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font: 600 48px/1 var(--brand); letter-spacing: -0.03em; }
.amount-input .unit { font: 500 26px/1 var(--brand); color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
button.chip { min-height: 38px; min-width: 0; padding: 0 14px; border: 1.5px solid var(--stroke); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px/1 var(--brand); transition: background-color .15s, border-color .15s, color .15s; }
button.chip:hover { background: var(--field); border-color: var(--stroke); color: var(--ink); }
button.chip[aria-pressed="true"], button.chip[aria-pressed="true"]:hover { background: var(--primary); border-color: var(--primary); color: var(--onPrimary); }
.figure-rows { margin: 26px 0 0; padding: 0; list-style: none; }
.figure-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; }
.figure-rows .what { font-size: 15px; line-height: 1.4; }
.figure-rows .sub { display: block; font-size: 13px; color: var(--ink2); }
.figure-rows a.sub { color: var(--ink); }
.figure-rows .figure { white-space: nowrap; }
.wait-lines { display: flex; flex-direction: column; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.wait-lines li { display: flex; align-items: flex-start; gap: 14px; }
.wait-mark { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--track); flex: none; }
.wait-lines li.lit .wait-mark { background: var(--greenBg); color: var(--greenInk); }
.wait-lines li.lit { animation: fade-in .45s ease-out both; }
.wait-title { display: block; font-size: 16px; line-height: 1.35; }
.wait-detail { display: block; margin-top: 3px; font-size: 14px; color: var(--ink2); }
.loader + h1 { margin-top: 14px; }
.figure-rows + .person, .box + .person { margin-top: 20px; }
.subtitle + .person { margin-top: 28px; }
.person .grow { flex: 1; }
.wait-after { margin-top: 32px; }
.person-note { display: block; margin-top: 1px; font-size: 13px; color: var(--ink2); }
.person .text-action { flex: none; font-size: 14px; }
.screen-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.screen-actions > * { margin: 0; }
.screen-actions button, .screen-actions .button { width: 100%; }
.screen-actions .caption { margin: 4px 0 0; text-align: center; text-wrap: pretty; }
.screen-actions .note { text-align: center; text-wrap: pretty; }
.screen-actions .slot { margin-top: 14px; }
/* The attestation: a document, so paper (r6) with its soft shadow, white in either theme; the
   lockup at 14. */
.attestation { margin-top: 26px; padding: 22px 22px 18px; background: #FFFFFF; color: #10284A; border-radius: 6px; box-shadow: 0 1px 2px rgba(16, 40, 74, .05), 0 12px 32px rgba(16, 40, 74, .08); }
.attestation .attestation-lockup { display: block; height: 14px; width: auto; }
.attestation h2 { margin: 22px 0 0; font: 600 17px/1.3 var(--brand); letter-spacing: -0.01em; color: #10284A; }
.attestation p, .attestation dl { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.attestation dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.attestation dt { color: #5B6879; }
.attestation dd { margin: 0; font-weight: 600; white-space: nowrap; }
.attestation .attestation-meta { font-size: 12px; color: #5B6879; }
.attestation .attestation-foot { margin-top: 22px; }
.attestation a { color: #10284A; }
/* Its figures or its wording not in force: the SPÉCIMEN mark, as its PDF's banner (4.6:1). */
.attestation.is-specimen { outline: 1.5px dashed #9A5B12; outline-offset: -1.5px; }
.attestation .attestation-mark { display: inline-block; margin: 0 0 16px; padding: 3px 10px; background: #F7EAD5; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #9A5B12; }
.attestation .attestation-wording { margin-top: 10px; font-size: 13px; line-height: 1.45; color: #5B6879; }
.attestation .attestation-wording p { margin: 0 0 6px; }
/* What an agency reads of one buyer, and the buyer's preview of it (the mock
   agence-acquereur-attestation): the attestation's paper in the order of its PDF. */
.attestation.sheet { margin: 0; padding: 26px 26px 22px; }
@media (min-width: 900px) { .attestation.sheet { padding: 34px 36px 30px; } }
.attestation.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attestation.sheet .sheet-head .attestation-mark { margin: 0; }
.attestation .attestation-mark[hidden], .errorlist[hidden] { display: none; }
.attestation.sheet .sheet-title { margin: 22px 0 0; font: 600 22px/1.25 var(--brand); letter-spacing: -0.01em; color: #10284A; }
.attestation.sheet .dates { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #5B6879; }
.attestation.sheet .who { margin: 22px 0 0; font: 600 22px/1.3 var(--brand); letter-spacing: -0.01em; color: #10284A; }
.attestation.sheet .who .lbl { font-weight: 500; color: #5B6879; }
.attestation.sheet .property { margin: 8px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: #10284A; overflow-wrap: anywhere; }
.attestation.sheet .property[hidden] { display: none; }
.attestation.sheet .property .lbl { font-weight: 400; color: #5B6879; }
.attestation.sheet .lead { margin: 22px 0 0; font-size: 16px; line-height: 1.4; color: #10284A; }
.attestation.sheet .amount { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; color: #10284A; }
.attestation.sheet .amount strong { font: 600 44px/1.1 var(--text); letter-spacing: -0.015em; white-space: nowrap; }
.attestation.sheet .amount .amount-blank { width: 4.2em; border-bottom-color: #94A3B8; }
.attestation.sheet .amount .eur { font-size: 24px; font-weight: 500; color: #5B6879; }
.attestation.sheet .amount .eur b { font-size: 16px; font-weight: 400; color: #10284A; }
.attestation.sheet .amount .tail { font-size: 16px; }
.attestation.sheet .basis { margin: 24px 0 0; }
.attestation.sheet .basis-title { margin: 0; font: 600 15px/1.3 var(--brand); color: #10284A; }
.attestation.sheet .docs { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid #94A3B8; }
.attestation.sheet .docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 8px 0; border-bottom: 1px solid #E2E8F0; font-size: 14px; line-height: 1.35; }
.attestation.sheet .docs li:last-child { border-bottom-color: #94A3B8; }
.attestation.sheet .docs b { font-weight: 600; color: #10284A; }
.attestation.sheet .docs span { color: #5B6879; }
.attestation.sheet .declared { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: #5B6879; }
.attestation.sheet .declared b { font-weight: 600; color: #10284A; }
.attestation.sheet .attestation-wording { margin-top: 22px; }
.attestation.sheet .attestation-wording p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: #5B6879; }
/* The buyer's own attestation before sharing (the mock attestation-prix): the founder's card with
   the PDF's content in its order: the names, the property, the sentence and its amount, what it
   rests on, the wording, our name. */
.attestation.pdf-preview .pv-label { margin: 16px 0 0; font-size: 12px; line-height: 1.4; color: #5B6879; }
.attestation.pdf-preview .pv-name { margin: 2px 0 0; font: 600 20px/1.25 var(--brand); letter-spacing: -0.01em; color: #10284A; }
.attestation.pdf-preview .pv-name .lbl { font-weight: 500; color: #5B6879; }
.attestation.pdf-preview .pv-usage { margin: 0; font-size: 13px; line-height: 1.4; color: #5B6879; }
.attestation.pdf-preview .pv-usage b { font: 600 14px/1.4 var(--brand); color: #10284A; }
.attestation.pdf-preview .pv-property { margin: 2px 0 0; font-size: 14px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.attestation.pdf-preview .pv-property[hidden], .attestation.pdf-preview .pv-label[hidden] { display: none; }
.attestation.pdf-preview .pv-lead { margin: 16px 0 0; font-size: 14px; line-height: 1.4; }
.attestation.pdf-preview .pv-price { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 14px; line-height: 1.2; }
.attestation.pdf-preview .pv-price strong { font: 600 32px/1.15 var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.attestation.pdf-preview .pv-price .eur { font-size: 18px; font-weight: 500; color: #5B6879; }
.attestation.pdf-preview .pv-price .amount-blank { width: 4.2em; border-bottom-color: #94A3B8; }
.attestation.pdf-preview .pv-price .tail { font-size: 14px; }
.attestation.pdf-preview h2 { margin: 22px 0 0; }  /* the card's own title, not the section's */
.attestation.pdf-preview .attestation-meta + .attestation-wording { margin-top: 12px; }
.attestation.pdf-preview .attestation-wording p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: #5B6879; }
.attestation.pdf-preview .pv-section { margin: 18px 0 0; font: 600 14px/1.3 var(--brand); color: #10284A; }
.attestation.pdf-preview .pv-who { margin: 10px 0 0; font: 600 13px/1.35 var(--text); color: #10284A; }
.attestation.pdf-preview .pv-docs { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid #CBD5E1; }
.attestation.pdf-preview .pv-who + .pv-docs { margin-top: 4px; }
.attestation.pdf-preview .pv-docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 6px 0; border-bottom: 1px solid #E2E8F0; font-size: 13px; line-height: 1.35; }
.attestation.pdf-preview .pv-docs b { font-weight: 600; color: #10284A; }
.attestation.pdf-preview .pv-docs span { color: #5B6879; }
.attestation.pdf-preview .pv-declared { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #5B6879; }
.attestation.pdf-preview .pv-declared b { font-weight: 600; color: #10284A; }
.attestation.pdf-preview .pv-declared + .attestation-wording { margin-top: 14px; }
.agency-link { overflow-wrap: anywhere; font-size: 14px; }
.agency-qr { margin: 16px 0 0; }
.agency-qr svg { display: block; max-width: 100%; height: auto; }
/* Where an action is while it is not offered, in place of its button. */
.screen-later { margin: 24px 0 0; font-size: 14px; line-height: 1.45; }

/* A figure the buyer may ask about (docs/design, « D'où vient ce chiffre »): dotted under, tabular;
   it opens its sheet, a native dialog rising from the foot of the phone. */
a.figure-link { color: inherit; text-decoration: none; border-bottom: 1.5px dotted var(--stroke2); padding-bottom: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.figure-link:hover { color: inherit; border-bottom-color: var(--ink); }
dialog.sheet { width: 100%; max-width: 440px; max-height: 88vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--sheet); color: var(--ink); box-shadow: 0 -10px 40px rgba(16, 40, 74, .14); }
dialog.sheet[open] { animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1) both; }
dialog.sheet::backdrop { background: rgba(16, 40, 74, .28); }
.sheet-inner { padding: 10px 24px 32px; }
.sheet-grip { width: 36px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: var(--track); }
.sheet-close { width: 100%; margin-top: 24px; }
.figure-source-label { margin: 0; font: 600 14px/1.4 var(--text); color: var(--ink2); }
.figure-source-value { margin: 6px 0 0; font: 600 34px/1.1 var(--text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.figure-source-value .per { font-size: 16px; }
.figure-source-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14px; font-weight: 600; color: var(--ink2); }
.figure-source-lines { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 0; padding: 0 0 0 32px; list-style: none; font-size: 14px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.figure-source-lines .trace-value { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.figure-source .next-link { margin-top: 12px; }
a.amount-xl.figure-link { display: inline-block; }
.figure-rows a.figure-link { color: var(--ink); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }

@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes ring-trace { 0% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes house-breath { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes mark-spin { from { transform: rotateY(0deg); } to { transform: rotateY(540deg); } }
@media (prefers-reduced-motion: reduce) {
  body > main, .dot.live, .tag.read, .done-bar, .wait-lines li.lit, .loader-house, .home-badge-turn.spin { animation: none; }
  .loader-arc { animation: none; stroke-dashoffset: 0; }
  .loader.shimmer .loader-text { animation: none; color: var(--ink2); background: none; }
  .chevron, .switch-knob, button.switch, .glass { transition: none; }
}
/* Forced colours (Windows contrast themes): the ticks and the switch keep their state. */
@media (forced-colors: active) {
  input[type="radio"], input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; }
  .loader.shimmer .loader-text { color: CanvasText; background: none; }
  button.switch { border: 1px solid ButtonText; }
  .switch-knob { background: ButtonText; }
}

/* « Vos données retenues, à jour. » (docs/design, screen 23): its groups, on its page and beside
   the vault on a laptop. */
.summary-group h2 { margin-top: 36px; }
.summary-group .figure-rows { margin-top: 6px; }
.summary-group .figure { font-variant-numeric: tabular-nums; }
.summary-group .figure.words { font: 400 14px/1.4 var(--text); color: var(--ink2); white-space: normal; text-align: right; }
.summary-group .sub { margin-top: 2px; line-height: 1.4; text-wrap: pretty; }

/* The laptop (docs/design « Parcours acheteur laptop », drawn at 1280 × 760): one build, the same
   pages. From 1024 px wide the top bar takes the back links' and the dock's place, a page takes
   the design's width or its two columns (.wide2: the page's words on the left, its .side on the
   right), the conseiller's thread opens in a panel beside the page, and the way in stands beside
   the founder's photo. Below 1024 px none of it is drawn: the phone stays as it is. Measured
   (WCAG AA): the bar's words are Ink on Bar (14:1 light, 17:1 dark), the search's placeholder
   Ink 2 on Card 5.7:1, the initials Green ink on Green bg 5.3:1 (7.4:1 dark), the panel's Ink and
   Ink 2 on Panel 14.7:1 and 5.7:1 (14.8:1 and 6.8:1 dark). */
.appbar, .front-panel, .panel, .laptop-only, .laptop-inline, .option-labels, .drop-words, .thread-list, .thread-pane-head { display: none; }

@media (min-width: 1024px) {
  :root { --padX: clamp(40px, 6.25vw, 80px); }

  /* The top bar: the mark, the four places, the search, the initials (« Réglages »). */
  .appbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px;
    height: 64px; padding: 0 28px 0 36px; background: var(--bar);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .appbar-mark { display: flex; align-items: center; height: 44px; margin: 0 16px 0 -8px; padding: 0 8px; border-radius: 12px; }
  .appbar-mark svg { display: block; width: 32px; height: 32px; }
  .appnav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .appnav a { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 20px; color: var(--ink); font: 600 15px/1 var(--brand); text-decoration: none; }
  .appnav a:hover { background: var(--track); color: var(--ink); }
  .appnav a[aria-current] { background: var(--card); box-shadow: var(--cardShadow); }
  .appnav .unread-dot { background: var(--green); }
  .appbar-search {
    display: flex; align-items: center; gap: 8px; width: min(420px, 34vw); height: 40px; margin: 0 0 0 auto;
    padding: 0 14px; border-radius: 20px; background: var(--card); box-shadow: var(--cardShadow);
  }
  .appbar-search:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
  .appbar-search svg { flex: none; stroke: var(--ink2); }
  .appbar-search input[type="search"] { flex: 1; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 15px; color: var(--ink); outline: none; }
  .appbar-me { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-left: 6px; border-radius: 50%; background: var(--greenBg); color: var(--greenInk); font: 600 13px/1 var(--brand); letter-spacing: .02em; text-decoration: none; }
  .appbar-me:hover { background: var(--greenBgHover); color: var(--greenInk); }
  .appbar-me[aria-current] { box-shadow: 0 0 0 2px var(--ink); }

  /* What the bar replaces: the back link, the home's own bar, the dock. A header left with
     nothing to show goes (the thread's head and « Passer » stay). */
  body.has-appbar:not(.bar-min) > header > .back, body.has-appbar > header > .lockup, body.has-appbar > header > .topbar, body.has-appbar .dock { display: none; }
  body.has-appbar:not(.bar-min) > header:not(:has(> :not(.back, .lockup, .topbar))) { display: none; }
  body.has-appbar.bar-min > header { justify-content: space-between; }

  /* The frame (the founder's ruling of 2026-11-11: every page fills the window): the window's
     width less the gutters (80 px at 1280, as the design; 40 to 80 px with the window), no cap,
     nothing centred. A page of one column keeps it at the design's 560 px (480 the apport's)
     from the left gutter; a wide page (lay-wide, lay-home, lay-results, lay-split) spreads over
     the frame, its long words held at a readable measure. */
  body.has-appbar > header, body.has-appbar > main, body.has-appbar > footer { --col: 560px; max-width: none; margin: 0; padding-left: var(--padX); padding-right: var(--padX); }
  body.has-appbar.lay-narrow > * { --col: 480px; }
  body.has-appbar:not(.lay-wide, .lay-home, .lay-results, .lay-split) > main > * { max-width: var(--col); }
  body.has-appbar > main :is(h1, .subtitle, .home-head p) { max-width: 760px; }
  /* The home's headline at a measure that holds its longest (« Encore quelques documents pour vos
     nouvelles propositions. ») on two lines, balanced; the column narrows it on a small laptop. */
  body.has-appbar > main .home-head h1 { max-width: 16em; text-wrap: balance; }
  body.has-appbar > header { min-height: 0; padding-top: 24px; justify-content: flex-end; }
  body.has-appbar > main { padding-top: 36px; padding-bottom: 56px; }
  body.has-appbar > main h1 { font-size: 34px; line-height: 1.18; letter-spacing: -0.022em; }
  body.has-appbar > main h1.display { font-size: 44px; line-height: 1.1; letter-spacing: -0.028em; }
  body.has-appbar > main .home-head h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.028em; }
  body.has-appbar > main .subtitle { font-size: 17px; line-height: 1.5; }

  /* Two columns (.wide2 holding a .side): the page's words, then the side spanning them; the
     grid's last row takes what the side has more, so the words never spread. */
  .wide2:has(.side) { display: grid; grid-template-columns: var(--main, minmax(0, 1fr)) var(--side, 420px); grid-template-rows: repeat(16, auto) 1fr; column-gap: var(--gap, clamp(40px, 5.6vw, 72px)); align-items: start; }
  .wide2:has(.side) > *, .wide2:has(.side) > .screen-body > * { grid-column: 1; min-width: 0; }
  .wide2:has(.side) > .screen-body { display: contents; }
  .wide2:has(.side) .side { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
  .wide2:has(.side) .screen-actions { align-items: flex-start; }
  .wide2 .screen-actions button, .wide2 .screen-actions .button, .wide2 .button.primary, .wide2 button.primary { width: auto; min-width: 260px; }
  body.has-appbar.lay-wide .screen-actions > .button.quiet, body.has-appbar.lay-wide main > p > .button.quiet { width: auto; min-width: 0; align-self: flex-start; margin-left: -12px; text-align: left; }
  body.has-appbar.lay-wide .screen-actions { align-items: flex-start; }
  body.has-appbar.lay-wide .screen-actions > .caption { text-align: left; }
  .laptop-only { display: block; }
  .phone-only { display: none; }
  .home-head .home-sub { margin: 6px 0 0; }
  /* The laptop sign-up's « ‹ Retour » (docs/design of 2026-11-11): the chevron and the word. */
  a.back.back-word { width: auto; gap: 2px; padding: 0 14px 0 6px; font: 600 14px/1 var(--brand); color: var(--ink2); text-decoration: none; }
  a.back.back-word svg { width: 18px; height: 18px; }
  /* The laptop home before the compromis (docs/design of 2026-11-11): « Votre budget. », the
     figure with its notary fees, then the monthly payment, the loan and the apport in rows. */
  .home-budget .budget-costs { margin: 8px 0 0; font-size: 15px; color: var(--ink2); }
  .home-budget .figure-rows { max-width: 520px; margin-top: 20px; }
  .home-budget .figure-rows .sub { display: inline; margin-left: 4px; }
  .laptop-inline { display: inline; }
  .phone-inline { display: none; }

  /* Home: where things stand on the left, the stages and the cards on the right. */
  .home-grid { --side: 420px; }
  .home-side { display: flex; flex-direction: column; gap: 12px; }
  .home-side > .card.home-card { margin: 0; }
  .home-head .button.home-import { width: auto; min-width: 240px; margin-top: 28px; }
  .home-head .home-ctas { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 28px; }
  .home-head .home-ctas .button.home-import, .home-head .home-ctas .next-link { margin-top: 0; }
  .home-head .home-ctas .next-link + .next-link { margin-left: 0; }
  .home-head .home-ctas button.home-signed { width: auto; min-width: 240px; }
  .home-budget .amount { font-size: 64px; }
  .home-head .next-link, .home-head .next-link:hover { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 56px; margin-top: 28px; padding: 0 28px; border-radius: 16px; background: var(--primary); color: var(--onPrimary); font-size: 16px; text-decoration: none; }
  .home-head .next-link:hover { background: var(--primaryHover); }
  .home-head .next-link + .next-link { margin-left: 10px; }
  .home-head .next-link > [aria-hidden] { display: none; }
  .home-budget .unit { font-size: 30px; }
  .card.home-card.waits { margin-top: 28px; }
  .home-grid > .card.home-card.news { margin-top: 12px; }
  /* Under the home's two buttons while nothing is there yet (« Documents skipped »): the news at
     the design's distance, not against the buttons (the mock accueil-document-manquant). */
  .home-grid > .card.home-card.news.skipped { margin-top: 36px; }

  /* Documents: the headline, the trace and the one button; the list in a card beside them. */
  .doc-grid { --side: 440px; }
  .doc-list { padding: 22px 28px 14px; background: var(--card); border-radius: 24px; box-shadow: var(--cardShadow); }
  .doc-list .doc-head { margin-top: 0; }
  .doc-grid .doc-action { padding-top: 32px; }
  .doc-grid .picker label.button { width: auto; min-width: 260px; }
  .doc-grid form.picker[data-drop] { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 232px; padding: 24px; border: 1.5px dashed var(--stroke2); border-radius: 24px; transition: background-color .15s, border-color .15s; }
  .doc-grid form.picker[data-drop]:hover, .doc-grid form.picker.dragging { border-color: var(--ink); }
  .doc-grid form.picker.dragging { background: var(--card); }
  .doc-grid .drop-words { display: block; margin: 0 0 20px; font: 600 18px/1.3 var(--brand); letter-spacing: -0.01em; color: var(--ink); }
  .doc-grid .doc-action .caption { text-align: left; }

  /* The vault: each group a card, « Vos données retenues, à jour. » beside them. */
  .vault-grid { --side: 460px; --gap: 56px; }
  .vault-grid .glass-pill { display: none; }
  .vault-group { margin-top: 12px; padding: 16px 24px 10px; background: var(--card); border-radius: 24px; box-shadow: var(--cardShadow); }
  .title-row + .vault-group { margin-top: 24px; }
  .vault-group h2 { margin: 0 0 4px; font-size: 15px; }
  .vault-summary { margin: 0; padding: 24px 28px 12px; }
  .vault-summary .vault-summary-title { margin: 0; font: 600 20px/1.25 var(--brand); letter-spacing: -0.012em; color: var(--ink); }
  .vault-summary .summary-group h2 { margin-top: 22px; }
  .vault-summary .button.quiet { margin: 10px 0 0 -12px; }

  /* Profile and settings: two columns of cards over the frame. The profile's borrowers and
     household rows across it, its finances and project side by side; the settings' who, contact
     and notifications on the left, the data and « Se déconnecter » on the right. */
  .lay-wide .profile-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
  .lay-wide .profile-cards .card.wide { grid-column: 1 / -1; }
  .lay-wide .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 24px; }
  .lay-wide .settings-grid > .settings-col + .settings-col { margin-top: 0; }
  .lay-wide .settings .sign-out { margin-top: 12px; }

  /* The funds: the words and the complete file on the left, the conseiller's word beside. */
  .funds-grid { --side: 440px; align-content: center; }
  .funds-grid figure.quote.side { margin: 0; padding: 20px 24px 22px; background: var(--card); border-radius: 24px; box-shadow: var(--cardShadow); }
  .funds-grid .screen-actions { margin-top: 18px; }
  .funds-grid .doc-line { max-width: 480px; }

  /* The one request, the mandate and the banks: a set column for the words, the rest beside. */
  .request-grid { --main: 540px; --side: minmax(0, 1fr); }
  .request-what { justify-self: center; width: min(100%, 300px); min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 26px 22px; background: #FFFFFF; color: #10284A; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 40, 74, .05), 0 14px 36px rgba(16, 40, 74, .1); }
  .request-what .muted { color: #5B6879; }
  .mandate-grid { --main: 480px; --side: minmax(0, 1fr); }
  .mandate-texts h2 { margin-top: 0; }
  .mandate-texts .slot-scroll { max-height: 600px; }
  .banks-grid { --main: 560px; --side: minmax(0, 1fr); }
  .banks-grid .side .slot { margin-top: 0; min-height: 220px; }

  /* « Envoyez votre compromis. »: the dashed zone holds the words and the button, the file can be
     dropped on it. */
  form.agreement-drop { align-items: center; justify-content: center; min-height: 280px; margin-top: 36px; padding: 40px 24px; border: 1.5px dashed var(--stroke2); border-radius: 24px; transition: background-color .15s, border-color .15s; }
  form.agreement-drop:hover, form.agreement-drop.dragging { border-color: var(--ink); }
  form.agreement-drop.dragging { background: var(--card); }
  form.agreement-drop .drop-zone { min-height: 0; padding: 0; border: 0; gap: 8px; font-size: 15px; }
  form.agreement-drop .drop-title { font-size: 18px; }
  form.agreement-drop label.button { width: auto; min-width: 0; min-height: 48px; margin-top: 22px; padding: 0 24px; }

  /* « Voici ce que nous avons lu. »: the compromis's three cards side by side over the frame. */
  .lay-results .result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .lay-results .result-cards > .card { margin: 0; padding: 22px 24px 24px; }
  .lay-results .screen-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 32px; }
  .lay-results .screen-actions form { margin: 0; }
  .lay-results .screen-actions button.primary { width: auto; min-width: 260px; }
  .lay-results .screen-actions .pill { margin: 0; }

  /* The propositions side by side: a column of labels, one column per bank, the figures in
     rows the eye compares across. */
  .lay-wide .options { display: grid; grid-template-columns: 200px repeat(var(--options, 1), minmax(0, 340px)); grid-template-rows: repeat(6, auto); column-gap: 32px; width: fit-content; max-width: 100%; margin-top: 24px; padding: 8px 36px 28px; background: var(--card); border-radius: 24px; box-shadow: var(--cardShadow); }
  .lay-wide .option-labels { display: contents; }
  .lay-wide .option-labels > span { grid-column: 1; display: flex; align-items: center; font-size: 14px; line-height: 1.35; color: var(--ink2); }
  .lay-wide .option-labels > span:nth-child(1) { grid-row: 1; }
  .lay-wide .option-labels > span:nth-child(2) { grid-row: 2; }
  .lay-wide .option-labels > span:nth-child(3) { grid-row: 3; }
  .lay-wide .option-labels > span:nth-child(4) { grid-row: 4; }
  .lay-wide .option-labels > span:nth-child(5) { grid-row: 5; }
  .lay-wide .option-labels > span:nth-child(6) { grid-row: 6; }
  .lay-wide .options .option, .lay-wide .options .option + .option { display: grid; grid-row: 1 / 7; grid-template-rows: subgrid; margin: 0; }
  .lay-wide .option-top { grid-row: 1; padding: 14px 0; }
  .lay-wide .option-monthly { grid-row: 2; }
  .lay-wide .option .term-rate { grid-row: 3; }
  .lay-wide .option .term-cost { grid-row: 4; }
  .lay-wide .option-notes { grid-row: 5; }
  .lay-wide .option-actions { grid-row: 6; padding-top: 10px; }
  .lay-wide .option-labels > span:nth-child(n+2):nth-child(-n+5), .lay-wide .option-monthly, .lay-wide .option .term-rate, .lay-wide .option .term-cost, .lay-wide .option-notes { display: flex; align-items: center; min-height: 52px; padding: 15px 0; border-top: 1px solid var(--track); }
  .lay-wide .option-notes { flex-direction: column; justify-content: center; align-items: flex-start; }
  .lay-wide .option-monthly .option-figure { margin: 0; }
  .lay-wide .options .terms { display: contents; }
  .lay-wide .options .terms dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lay-wide .options .terms dd { margin: 0; font: 600 18px/1.2 var(--text); }
  .lay-wide .option-notes > :first-child { margin-top: 0; }
  .lay-wide .option-notes .note { font-size: 15px; color: var(--ink); }
  .lay-wide .option-actions .choice-buttons { margin-top: 0; }
  .lay-wide .options + .total-note { margin-top: 14px; }

  /* Messages (docs/design, « Parcours acheteur laptop »): the list of threads on the left, 340 px,
     the open thread's card taking the rest of the frame and the window's height, its messages
     scrolling inside it, its field at its foot. The phone's head of the thread goes: the card
     has its own. */
  body.has-appbar.lay-split > header { display: none; }
  body.has-appbar.lay-split > main {
    display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(24px, 2.5vw, 40px);
    height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: 480px; padding-top: 28px; padding-bottom: 28px;
  }
  body.lay-split > main > .messages { grid-column: 2; grid-row: 1; margin: 0 0 12px; }
  .lay-split .thread-list { display: block; grid-column: 1; grid-row: 1 / 3; min-height: 0; margin: 0 -6px; padding: 0 6px 12px; overflow-y: auto; }
  .lay-split > main .thread-list-title { margin: 6px 0 18px 4px; font: 500 34px/1.18 var(--brand); letter-spacing: -0.022em; }
  .thread-list-sub { margin: 22px 0 4px 14px; font: 600 15px/1.4 var(--text); color: var(--ink2); }
  .thread-list .inbox-rows { display: flex; flex-direction: column; gap: 4px; }
  .thread-list .inbox-row { padding: 12px 14px; border-radius: 18px; }
  .thread-list .inbox-row:hover { background: var(--track); }
  .thread-list .inbox-row.current, .thread-list .inbox-row.current:hover { background: var(--card); box-shadow: var(--cardShadow); }
  .thread-list .inbox-row:hover .inbox-name { text-decoration: none; }
  .inbox-status { display: flex; align-items: center; gap: 6px; }
  .lay-split .thread-pane { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; min-height: 0; background: var(--card); border-radius: 24px; box-shadow: var(--cardShadow); overflow: hidden; }
  .thread-pane-head { display: block; flex: none; padding: 16px 20px 6px 24px; }
  .thread-pane-head .thread-head { min-height: 48px; gap: 10px; }
  .thread-pane-head .avatar { width: 40px; height: 40px; }
  .thread-pane-head .thread-who h2 { margin: 0; overflow: hidden; font: 600 16px/1.3 var(--text); color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
  .thread-pane > .screen-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 28px 16px; }
  .thread-pane > .screen-body > .thread { margin-top: 0; }
  .thread-pane .bubble { max-width: min(86%, 640px); }
  .thread-pane .bubble:not(.mine) { background: var(--paneBubble); box-shadow: none; }
  .thread-pane .mine > .bubble, .thread-pane .bubble.mine { background: var(--greenBg); }
  .thread-pane > .composer { position: static; flex: none; margin: 0; padding: 12px 20px 20px; background: none; }

  /* The conseiller beside the page (my/_panel.html): 400 px on the right, under the bar; the
     page's column narrows beside it and its two columns become one, as the design's. */
  .panel:not([hidden]) {
    position: fixed; top: 72px; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column;
    width: 400px; overflow: hidden; background: var(--panel); color: var(--ink); border-radius: 24px;
    box-shadow: 0 2px 6px rgba(16, 40, 74, .06), 0 24px 60px -12px rgba(16, 40, 74, .3);
    animation: panel-in .28s cubic-bezier(.2, .7, .2, 1) both;
  }
  .panel-close, button.panel-close { position: absolute; top: 14px; right: 12px; z-index: 1; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
  .panel-close:hover, button.panel-close:hover { background: var(--track); color: var(--ink); }
  .panel-close svg { stroke: currentColor; }
  .panel-body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .panel-head { display: flex; flex: none; align-items: center; gap: 12px; padding: 16px 60px 12px 20px; }
  .panel-head .avatar { width: 40px; height: 40px; }
  .panel-head .thread-who h2 { margin: 0; overflow: hidden; font: 600 16px/1.3 var(--text); color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
  .panel-head .thread-who h2:focus { outline: none; }
  .panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 10px; }
  .panel-scroll .thread { margin-top: 0; }
  .panel-scroll .messages li { background: var(--greenBg); box-shadow: none; color: var(--greenInk); font-weight: 600; }
  .panel .composer { position: static; flex: none; margin: 0; padding: 10px 16px 16px; background: none; }
  body.panel-open > header, body.panel-open > main, body.panel-open > footer { width: auto; margin-right: 432px; padding-right: 0; }
  body.panel-open .wide2, body.panel-open .wide2 > .screen-body { display: block; }
  body.panel-open .wide2 .side { margin-top: 24px; }
  body.panel-open .home-side > .card.home-card:first-child { margin-top: 20px; }
  body.panel-open.lay-wide .options { grid-template-columns: 140px repeat(var(--options, 1), minmax(0, 1fr)); column-gap: 20px; padding-left: 24px; padding-right: 24px; }

  /* « D'où vient ce chiffre »: a dialog in the middle of the window, not a sheet from the foot. */
  dialog.sheet { max-width: 480px; max-height: min(640px, 88vh); margin: auto; border-radius: 24px; box-shadow: 0 2px 6px rgba(16, 40, 74, .06), 0 24px 60px -12px rgba(16, 40, 74, .3); }
  dialog.sheet[open] { animation: fade-in .25s ease-out both; }
  .sheet-grip { display: none; }
  .sheet-inner { padding: 28px 32px 30px; }

  /* The way in: the founder's photo in a 520 px panel on the left, the screen on the right. */
  .front-panel {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1; display: flex; flex-direction: column; width: 520px;
    padding: 48px 64px 40px; color: #FFFFFF;
    background:
      linear-gradient(180deg, rgba(10, 27, 46, .62) 0%, rgba(10, 27, 46, .35) 45%, rgba(10, 27, 46, .65) 100%),
      radial-gradient(110% 75% at 20% 28%, rgba(10, 27, 46, .5), transparent 62%),
      url("brand/hero-background.bd82b9615ef1.jpg") 62% center / cover no-repeat,
      #0A1B2E;
  }
  .front-lockup { display: block; align-self: flex-start; width: auto; height: 26px; }
  .front-promise { margin: auto 0; font: 500 48px/1.08 var(--brand); letter-spacing: -0.03em; color: #FFFFFF; text-wrap: pretty; }
  .front-promise .promise { color: #2ECC8B; }
  body.front { display: flex; flex-direction: column; min-height: 100vh; padding-left: 520px; }
  body.front > header, body.front > main, body.front > footer { width: 100%; max-width: 448px; }
  body.front > header { margin-top: auto; }
  body.front > header > .lockup { display: none; }
  body.front > main h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.022em; }
  body.front > main { padding-bottom: 24px; }
  body.front > footer { margin-top: auto; }
  body.front > main:last-of-type { margin-bottom: auto; }

  /* The welcome: the photo panel holds the promise, the two doors stand on the page beside it. */
  body.door.welcome {
    --ink: #10284A; --ink2: #5B6879; display: grid; grid-template-columns: 520px minmax(0, 1fr); grid-template-rows: auto 1fr;
    min-height: 100vh; color: var(--ink); background: var(--fade); background-image: var(--page);
  }
  body.door.welcome::before {
    content: ""; grid-column: 1; grid-row: 1 / 3;
    background:
      linear-gradient(180deg, rgba(10, 27, 46, .62) 0%, rgba(10, 27, 46, .35) 45%, rgba(10, 27, 46, .65) 100%),
      radial-gradient(110% 75% at 20% 28%, rgba(10, 27, 46, .5), transparent 62%),
      url("brand/hero-background.bd82b9615ef1.jpg") 62% center / cover no-repeat,
      #0A1B2E;
  }
  body.door.welcome > header { grid-column: 1; grid-row: 1; z-index: 1; max-width: none; margin: 0; padding: 48px 64px 0; }
  body.door.welcome > header .lockup img { height: 26px; }
  body.door.welcome > header :focus-visible { outline-color: #FFFFFF; }
  body.door.welcome > main { grid-column: 1 / 3; grid-row: 2; max-width: none; margin: 0; padding: 0; }
  body.door.welcome > main > .screen { display: grid; grid-template-columns: 520px minmax(0, 1fr); min-height: 100%; }
  body.door.welcome .screen-body { grid-column: 1; align-self: center; margin: 0; padding: 0 64px 88px; }
  body.door.welcome h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; }
  body.door.welcome .screen-actions { grid-column: 2; align-self: center; justify-self: center; width: 440px; margin: 0; padding: 40px 0 120px; gap: 12px; }
  .front-ask { margin: 0 0 14px; font: 500 28px/1.2 var(--brand); letter-spacing: -0.02em; color: var(--ink); }
  body.door.welcome a.door-choice, body.door.welcome a.door-choice:hover {
    padding: 20px 20px 20px 24px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--cardShadow);
  }
  body.door.welcome a.door-choice:hover { box-shadow: 0 1px 2px rgba(16, 40, 74, .06), 0 14px 32px -10px rgba(16, 40, 74, .26); }
  body.door.welcome .door-choice-title { font-size: 17px; }
  body.door.welcome .door-choice-sub { margin-top: 4px; font-size: 15px; color: var(--ink2); }
  body.door.welcome a.door-login, body.door.welcome a.door-login:hover { align-self: flex-start; justify-content: flex-start; margin: 4px 0 0 -14px; padding: 0 14px; color: var(--ink); }
  body.door.welcome a.door-login:hover { background: var(--track); }
  body.door.welcome a.door-back, body.door.welcome a.door-back:hover { min-height: 36px; margin-bottom: 4px; border-radius: 18px; color: var(--ink2); }
  body.door.welcome a.door-back:hover { background: var(--track); }
  body.door.welcome .goal-ask { margin: 0 0 14px; font-size: 28px; color: var(--ink); }
  .goal-choices { gap: 12px; }
  body.door.welcome a.goal-choice, body.door.welcome a.goal-choice:hover { padding: 10px 10px 14px; color: var(--ink); }
  body.door.welcome a.goal-choice:hover { background: rgba(16, 40, 74, .05); }  /* the design's: lighter than the drawings' tint */
  body.door.welcome .goal-art .paper { fill: var(--card); }
  body.door.welcome .goal-art .tint { fill: var(--track); }
  body.door.welcome .goal-choice-title { margin-top: 10px; padding: 0 4px; font-size: 16px; }
  body.door.welcome .goal-choice-sub { margin-top: 4px; padding: 0 4px; font-size: 14px; color: var(--ink2); }
  body.door.welcome > main :focus-visible { outline-color: var(--ink); }
  body.door.welcome .screen-body :focus-visible { outline-color: #FFFFFF; }
}
@keyframes panel-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel:not([hidden]), dialog.sheet[open] { animation: none; } }

/* The bank's form, step by step (the offer to accept, docs/design of 2026-11-11). */
ol.steps-list { counter-reset: step; margin: 10px 0 24px; padding: 0; list-style: none; }
ol.steps-list li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-size: 15px; line-height: 1.45; }
ol.steps-list li::before { content: counter(step); flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--track); color: var(--ink); font: 600 13px/24px var(--text); text-align: center; }
.result-note-inline { font-size: 13px; color: var(--ink2); }  /* « Votre prêt »: what a term is */
/* « Je décline » under each proposition (docs/design of 2026-11-11): quiet, grey, centred. */
details.more.decline > summary { justify-content: center; font-weight: 400; color: var(--ink2); }
details.more.decline[open] > summary { color: var(--ink); }
/* The loan card: the payment and « /mois » never part (docs/design of 2026-11-11). */
.home-card .split { flex-wrap: nowrap; }  /* the name wraps, the figure stays right */
.home-card .split .amount-m { flex-shrink: 0; white-space: nowrap; }
/* Accepting the offer (docs/design of 2026-11-11): the photo asked in a dashed box, the hint
   inside it on a phone; on a laptop the date and the box side by side, the button its own width,
   and the bank's form drawn on the right. */
.photo-pick.drop label.button { flex-direction: column; gap: 4px; min-height: 96px; border: 1.5px dashed var(--fieldStroke); background: transparent; }
.photo-pick.drop .pick-hint { display: block; font: 400 13px/1.3 var(--text); color: var(--ink2); }
.bulletin-page { padding: 22px 22px 26px; border-radius: 6px; background: #FFFFFF; color: #10284A; box-shadow: 0 1px 2px rgba(16, 40, 74, .06), 0 18px 40px -16px rgba(16, 40, 74, .3); }
.bulletin-bank { margin: 0; font-size: 12px; color: #5B6879; }
.bulletin-title { margin: 6px 0 18px; font: 600 16px/1.2 var(--brand); }
.bulletin-lines { display: block; height: 150px; background: repeating-linear-gradient(180deg, #E2E8F0 0 3px, transparent 3px 12px); }
.bulletin-signs { display: flex; gap: 20px; margin-top: 18px; }
.bulletin-signs span { flex: 1; padding-bottom: 22px; border-bottom: 1px dashed #94A3B8; font-size: 11px; color: #5B6879; }
.bulletin-figure .caption { margin-top: 12px; text-align: center; }
@media (min-width: 1024px) {
  .accept-grid { --side: 260px; }
  .accept-inputs { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 10px; align-items: end; max-width: 620px; }
  .accept-inputs > label { grid-column: 1; }
  .accept-inputs > input { grid-column: 1; grid-row: 2; }
  .accept-inputs > .photo-pick { grid-column: 2; grid-row: 2; margin: 0; }
  .accept-inputs > .errorlist, .accept-inputs > .notice-box, .accept-inputs > .helptext { grid-column: 1 / -1; }
  .photo-pick.drop label.button { min-height: 0; height: 100%; flex-direction: row; }
}
@media (min-width: 1024px) {
  .funds-grid { padding-top: clamp(0px, 16vh, 150px); }  /* mid-height, as designed */
  .funds-grid figure.quote.side { padding: 14px 18px; border-radius: 20px; }
  .funds-grid figure.quote.side blockquote, .funds-grid figure.quote.side figcaption { display: inline; font-size: 14px; }
  .funds-grid figure.quote.side figcaption { margin-left: 4px; }
  .funds-home { margin-top: 14px; }
}
/* The one action stays in reach on a phone (docs/design of 2026-11-11): « Ajouter des documents »
   and the mandate's « Signer » pinned at the foot while the list or the texts scroll. */
@media (max-width: 1023px) {
  form.picker:not(.agreement-drop), .mandate-grid > .screen-actions { position: sticky; bottom: 0; z-index: 2; margin-left: -4px; margin-right: -4px; padding: 14px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--fade) 18px); }
}
/* The mandate on a laptop: « Signer » across the left column; the texts to read in one tall box. */
@media (min-width: 1024px) {
  .mandate-grid .screen-actions > form { align-self: stretch; }
  .mandate-grid .screen-actions > form button, .mandate-grid .screen-actions > .button { width: 100%; }
  .mandate-texts .slot-scroll { max-height: min(60vh, 520px); padding: 16px 18px; border: 1px dashed var(--stroke); border-radius: 16px; }
  .mandate-texts .slot-scroll > .slot { margin: 0 0 14px; padding: 0; border: 0; background: none; }
}
/* The co-borrower's address asked with « Signer » (the founder, 2026-11-12). */
.mandate-grid .screen-actions form label[for="co-email"] { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.mandate-grid .screen-actions form input[type="email"] { margin: 0 0 12px; }

/* « Mes envois aux agences » (the mock mes-envois): the agency's « Mes acquéreurs » (agency.css,
   .buyers) from the buyer's side, a white table with its tinted head on a laptop, one card per
   send on a phone, nothing sideways; a send an agency no longer sees in grey. */
:root { --cardTint: #F3F5F8; }
:root[data-theme="dark"] { --cardTint: rgba(255, 255, 255, .07); }
.envois { width: 100%; max-width: 1000px; margin-top: 24px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--track); border-radius: 20px; box-shadow: var(--cardShadow); overflow: hidden; font-size: 15px; }
.envois thead th { padding: 14px 16px; border-bottom: 1px solid var(--track); background: var(--cardTint); color: var(--ink2); font: 600 13px/1.3 var(--text); text-align: left; white-space: nowrap; }
.envois tbody th, .envois td { padding: 18px 16px; border-bottom: 1px solid var(--track); text-align: left; vertical-align: middle; font-weight: 400; }
.envois tbody tr:last-child > * { border-bottom: 0; }
.envoi-agency { font: 600 16px/1.3 var(--brand); color: var(--ink); }
.envois .property-title { display: block; color: var(--ink); }
.envois .property-note { display: block; margin-top: 2px; font-size: 13px; color: var(--ink2); }
.envois .property-none { color: var(--ink2); }
.envoi-price, .envoi-date { white-space: nowrap; }
.envoi-sees { display: block; font: 600 15px/1.35 var(--brand); color: var(--ink); }
.envoi-until { display: block; margin-top: 2px; font-size: 13px; color: var(--ink2); }
.envoi-until + .envoi-sees, .envoi-sees + .envoi-sees { margin-top: 8px; }
.envoi-row.is-off .envoi-agency, .envoi-row.is-off .property-title, .envoi-row.is-off td, .envoi-row.is-off .envoi-sees { color: var(--ink2); }
.envoi-row.is-off .envoi-sees { font-weight: 500; }
.envoi-row.is-waiting .envoi-sees { color: var(--ink2); }
.envoi-action { text-align: right; }
.envoi-action form { margin: 0; }
.envoi-action button { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.envois .cell-label { display: none; }
.envois .col-agency { width: 21%; } .envois .col-property { width: 26%; } .envois .col-price { width: 11%; }
.envois .col-date { width: 11%; } .envois .col-sees { width: 22%; } .envois .col-action { width: 9%; }
.envois-none .subtitle { margin-top: 12px; }
/* The attestation's foot: one row to that page, with how many sends. */
.envois-link { max-width: 560px; margin-top: 36px; padding: 0 2px; }
.envois-link .count { display: inline-flex; align-items: center; gap: 4px; }
.envois-link svg { fill: var(--ink2); }
@media (max-width: 899px) {
  .envois, .envois tbody, .envois tr, .envois tbody th, .envois td { display: block; }
  .envois { margin-top: 20px; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .envois thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .envois .envoi-row { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 12px; padding: 16px 18px; background: var(--card); border-radius: 20px; box-shadow: var(--cardShadow); }
  .envois .envoi-row > * { width: auto; padding: 0; border: 0; }
  .envoi-row > .envoi-agency-cell { order: 0; flex: 1 1 0; min-width: 0; }
  .envoi-row > .envoi-action { order: 1; flex: none; margin-left: 12px; }
  .envoi-row > .envoi-property { order: 2; flex: 0 0 100%; margin-top: 6px; }
  .envoi-row > .envoi-price { order: 3; flex: none; margin-top: 4px; font-size: 14px; }
  .envoi-row > .envoi-date { order: 4; flex: none; margin-top: 4px; font-size: 14px; color: var(--ink2); }
  .envoi-row > .envoi-date::before { content: "\00a0· "; }
  .envoi-row > .envoi-status { order: 5; flex: 0 0 100%; margin-top: 10px; }
  .envois .cell-label { display: inline; }
  .envois .property-title { display: inline; }
  .envois .property-note { display: inline; margin: 0; font-size: 15px; }
  .envois .property-note::before { content: " · "; }
}

/* The buyer's properties above the price on the send to an agency (the mock envoi-agence-bien;
   their legend, « Pour quel bien ? », for screen readers only), then the chosen one's price as a
   chip under the field; and what the agency reads above the line, « Pour le bien ». */
.bien-choice { margin: 24px 0 0; }
.bien-choice legend { margin: 0 0 4px; padding: 0; }
.bien-choice .listing-choice-words { color: var(--ink); }
.bien-choice .add-bien { margin: 4px 0 0; }
.bien-choice .add-bien .button.quiet { margin-left: -12px; font-weight: 600; }
.bien-choice + label { margin-top: 24px; }
.amount-input + .chips { margin-top: 14px; }
.chips[hidden] { display: none; }
.price-form > p { margin-top: 20px; }
/* What the agency gets, following the buyer's choices (the mock envoi-agence-bien as redrawn on
   2026-11-19, the attestation the agency opens since the rulings of 2026-11-22): beside the form
   on a laptop, under the price on a phone; the amount a blank on the paper, white in either
   theme, until one is typed. */
.send-grid .send-preview { margin-top: 28px; }
.send-preview h2 { margin: 0 0 8px; }
.send-preview .attestation { margin-top: 0; }
.screen-body > .attestation.sheet { margin-top: 16px; }
.send-preview .muted { margin: 14px 0 0; font-size: 14px; }
.amount-blank { display: inline-block; width: 6.5em; height: 1.05em; border-bottom: 1.5px solid #AEBACB; vertical-align: -3px; }
@media (min-width: 1024px) {
  .send-grid { --main: 480px; --side: minmax(0, 520px); }
  .send-grid .send-preview.side { margin-top: 10px; }
  .send-grid .screen-actions { max-width: 480px; align-items: stretch; }
  .send-grid .screen-actions button { width: 100%; min-width: 0; }
}

/* « Votre bien » on the budget and the home (the mocks budget-bien and accueil-bien): its title
   and the mark on one row; its estimated total cost with the notary fees first, in the size of
   the home's price; then the property and its price, and the monthly payment, in the budget's
   rows; above the budget, the conseiller's word under the figures, signed, then one tap to
   write. */
.bien { margin: 24px 0 0; padding: 16px 20px 6px; }
.bien .bien-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin: 0; }
.bien:not(.home-card) .card-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink2); }
.bien .bien-head .card-title { margin: 0; }
.bien .mark svg { flex: none; margin-right: 4px; }
.bien .bien-total { flex-wrap: nowrap; align-items: baseline; margin: 12px 0 0; }
.bien .bien-total-what { font-size: 16px; font-weight: 600; line-height: 1.35; }
.bien .bien-total .amount-s { flex: none; }
.bien .figure-rows { margin: 10px 0 0; border-top: 1px solid var(--track); }
.bien .figure-rows li { padding: 10px 0; }
.bien .figure-rows .figure { font-size: 17px; }
.bien .person.quote { margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--track); font-size: 15px; }
.bien .person.quote .muted { white-space: nowrap; }
.bien .next-link { margin: 4px 0 6px 48px; padding: 8px 0; font-size: 15px; }
.home-main .card.home-card.bien { margin: 20px 0 0; padding: 16px 20px 8px; }
.home-budget .monthly .figure-link { display: inline-flex; }
/* Under the budget's figures, the home's own row (the mock budget-bien as redrawn on 2026-11-19):
   « Attestation → » (or where it is once sent) on the left, « Un chiffre est faux ? » on the
   right, under the figures it questions; its form opens under the row, full width. */
.figure-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin: 4px 0 0; }
.figure-links .next-link { margin: 0; padding: 10px 0; }
.figure-links details.more { margin: 0 0 0 auto; }
.figure-links details.more[open] { flex: 1 0 100%; }
.figure-links details.more > summary { justify-content: flex-end; min-height: 44px; font: 600 14px/1.2 var(--brand); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.figure-links details.more > summary::-webkit-details-marker { display: none; }
@media (min-width: 1024px) {
  .budget-grid { --side: 440px; }
  .budget-grid .bien.side { margin: 0; padding: 22px 28px 10px; }
  /* The actions as the budget draws them without the card: full width in a 560 px column. */
  body.has-appbar.lay-wide .wide2.budget-grid .screen-actions { max-width: 560px; align-items: stretch; }
  .wide2.budget-grid .screen-actions .button, .wide2.budget-grid .screen-actions button { width: 100%; min-width: 0; }
  .home-main .card.home-card.bien { margin-top: 28px; padding: 20px 24px 10px; }
}

/* The attestation on its way while the conseiller looks (the mock budget-attente-identite): the
   kit's document line in its button's place, its paper, its name and who has it; no verb, no
   tap. */
.screen-actions .doc-line.on-its-way { align-items: flex-start; margin: 0 0 6px; }
.doc-line.on-its-way .paper { margin-top: 2px; background: #FFFFFF repeating-linear-gradient(180deg, #E2E8F0 0 2px, transparent 2px 6px) 7px 9px / 22px 26px no-repeat; }
.doc-line.on-its-way .doc-line-meta { margin-top: 3px; font-size: 14px; line-height: 1.4; text-wrap: pretty; }
/* Under it, while a card its names hold is what it waits on: « Ma pièce d'identité → » (the
   mock documents-identite-attente). */
.on-its-way + .card-link-under { margin: -6px 0 6px 50px; padding: 6px 0; font-size: 15px; }

/* « Calculer mon budget » right under the live trace once the last asked document is sent (the
   mock documents-calculer): no « Fermer » line between them. */
.doc-action > .trace + .button.primary, .doc-action > .trace-done + .button.primary { margin-top: 20px; }
.doc-action > .trace-done:has(+ .button.primary) { margin-bottom: 0; }

/* The pages before sign-in end with our registration (the founder's ruling of 2026-11-24, D23;
   the mock inscription): the front door, the sign-up (ours and an agency's link), the sign-in
   and its code. On a phone under the actions, under a hairline, in Ink 2 (Mist on the navy). */
body > footer.reg-foot { padding-top: 0; padding-bottom: 32px; }
.reg-foot p { margin: 0; padding-top: 16px; border-top: 1px solid var(--track); font-size: 12px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.reg-foot a { color: inherit; }
body.door .reg-foot p { border-top-color: rgba(255, 255, 255, .2); color: var(--mist); }
@media (min-width: 1024px) {
  /* On a laptop at the foot of the photo panel, in view on every page of the way in, never in
     the form's column, still the page's last words for a screen reader: Mist on the photo's
     darkest part. */
  body.front > footer.reg-foot { position: fixed; left: 0; bottom: 0; z-index: 2; width: 520px; max-width: none; margin: 0; padding: 0 64px 40px; }
  body.front .reg-foot p { padding-top: 0; border-top: 0; color: var(--mist); }
  body.door.welcome > footer.reg-foot { grid-column: 1; grid-row: 2; align-self: end; z-index: 1; width: auto; max-width: none; margin: 0; padding: 0 64px 40px; }
  body.door.welcome .reg-foot p { max-width: 392px; padding-top: 0; border-top: 0; color: var(--mist); }
}

/* The sign-up's line (D18; the mock inscription): 13 px as the founder drew it, its three links
   in Ink, its two sentences on two lines. */
.terms-line { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); text-align: left; text-wrap: pretty; }
.terms-line a { color: var(--ink); }

/* The test site's mark (the founder's ruling of 2026-11-26): a band above every page, out of
   the flow; the page and what stands fixed at the top of the window start under it. Amber and
   ink, never themed (9.0:1); the words and the flask carry it without the colour. */
.site-test { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; margin: 0; padding: 0 16px; background: #F6C343; color: #10284A; box-shadow: inset 0 -1px 0 rgba(16, 40, 74, .2); font: 500 13px/1 var(--text); white-space: nowrap; }
.site-test > * { color: #10284A !important; }  /* never a page's own text colour (the front door's white) */
.site-test strong { font: 600 13px/1 var(--brand); letter-spacing: .01em; }
.site-test svg { flex: none; }
:root:has(.site-test) { --siteTest: 32px; scroll-padding-top: 32px; }
:root:has(.site-test) body { margin-top: var(--siteTest); min-height: calc(100vh - var(--siteTest)); }
:root:has(.site-test) .agency-side { top: var(--siteTest); }
@media (min-width: 1024px) {
  :root:has(.site-test) .appbar { top: var(--siteTest); }
  :root:has(.site-test) .front-panel { top: var(--siteTest); }
  :root:has(.site-test) .panel:not([hidden]) { top: calc(72px + var(--siteTest)); }
}
@media (min-width: 52.01rem) {
  :root:has(.site-test) body.console > header { top: var(--siteTest); height: calc(100vh - var(--siteTest)); }
}
/* The sign-in code in the test site's band (the founder's ruling of 2026-11-26; the approved mock
   site-test-code): after « Site de test », behind a hairline, in the band's ink on its amber
   (9.0:1); the band keeps its height, so nothing in the page moves. Its live region takes no box
   of its own, so an empty one leaves the band as on every other page. */
.site-test-live { display: contents; }
.site-test-code { display: flex; align-items: center; gap: 8px; height: 18px; margin: 0 0 0 6px; padding-left: 14px; border-left: 1px solid rgba(16, 40, 74, .4); }
.site-test-code b { margin-left: 4px; font: 700 16px/1 var(--text); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
