/* Dubai Compass — interface du service, octobre 2026. */
:root {
  --ink: #172b44;
  --muted: #596779;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: #dce0e5;
  --blue: #2456d3;
  --blue-dark: #1845b7;
  --blue-light: #eef3fe;
  --copper: #ad6845;
  --copper-text: #975737;
  --sand: #eee9df;
  --green: var(--blue);
  --green-light: var(--blue-light);
  --green-mid: #47617d;
  --orange: var(--copper);
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 44px; line-height: 1.12; letter-spacing: -1.8px; font-weight: 660; }
h1 em { color: var(--ink); font-style: normal; font-weight: inherit; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.55px; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 650; }
p { line-height: 1.65; }
svg { display: block; }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 20px; background: var(--ink); color: white; padding: 14px 18px; z-index: 1000; border-radius: 5px; }
.skip-link:focus { top: 10px; }

/* Une navigation visible, un espace de travail sans détour. */
.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 84px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 16px max(32px, calc((100vw - 1216px) / 2));
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: 1.5px; line-height: 1; }
.brand svg { width: 37px; height: 37px; color: var(--blue); }
.brand-small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2.55px; margin-top: 7px; }
.sidebar nav { display: flex; align-items: center; gap: 3px; }
.sidebar nav[aria-label="Navigation principale"] { flex: 1; }
.sidebar nav[aria-label="Informations"] { flex-shrink: 0; margin-left: auto; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-shrink: 0; }
.header-tools .button { white-space: nowrap; }
.header-tools .text-button { font-size: 12px; white-space: nowrap; }
.nav-item { display: inline-flex; align-items: center; gap: 8px; padding: 12px 13px; color: #566375; font-size: 13px; font-weight: 500; border-radius: 6px; white-space: nowrap; transition: color .15s, background .15s; }
.nav-item:hover { background: #f1f4f8; color: var(--ink); }
.nav-item.active { color: var(--blue); background: var(--blue-light); font-weight: 650; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-dot, .sidebar-label, .sidebar-divider, .sidebar-bottom, .sidebar-footer { display: none; }
.small-count { border: 1px solid var(--line); border-radius: 4px; display: inline-flex; justify-content: center; align-items: center; min-width: 22px; min-height: 21px; padding: 0 5px; font-size: 11px; font-weight: 650; background: white; }
.nav-item .small-count { color: var(--ink); }
.green-dot { display: inline-block; width: 6px; height: 6px; background: var(--copper); border-radius: 50%; flex-shrink: 0; }
.app-shell { margin: 0; }
.topbar { min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1280px; padding: 12px 32px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.breadcrumb { color: var(--muted); font-size: 12px; line-height: 1.5; }
.breadcrumb span { margin: 0 9px; color: #9da6b1; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.currency { color: var(--muted); font-size: 12px; white-space: nowrap; }
.currency span { margin: 0 5px; color: #9ba5b3; }
#mobile-menu { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 17px; border: 1px solid var(--blue); border-radius: 6px; color: white; background: var(--blue); font-size: 13px; font-weight: 600; line-height: 1.35; transition: background .15s, border-color .15s; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-small { min-height: 38px; padding: 9px 13px; font-size: 12px; gap: 9px; }
.button-secondary { color: var(--ink); border-color: #ccd3de; background: white; }
.button-secondary:hover { background: #f1f4f8; border-color: #aebccc; }
.button-light { color: var(--blue); background: var(--blue-light); border-color: #dbe5fd; }
.button-light:hover { background: #e1eaff; border-color: #bdcff8; }
.text-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 5px 0; border: none; color: var(--blue); background: none; font-size: 13px; font-weight: 600; line-height: 1.45; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; border: none; border-radius: 6px; padding: 8px; color: var(--ink); background: transparent; }
.icon-button:hover { background: #edf1f7; }
.button .icon { width: 16px; height: 16px; }
.full-width { width: 100%; justify-content: center; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

main { max-width: 1280px; margin: 0 auto; padding: 28px 32px 0; }
.page { display: none; }
.page.active { display: block; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--copper-text); font-size: 11px; font-weight: 650; line-height: 1.45; letter-spacing: 1.3px; text-transform: uppercase; }
.eyebrow.muted { color: var(--muted); }
.small-muted { font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 400; }

/* Dossiers et état de sauvegarde. */
.workspace-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.workspace-strip > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-strip label, .workspace-label { font-size: 12px; color: var(--muted); }
.workspace-strip select { min-width: 195px; max-width: 300px; background: white; font-weight: 600; }
.workspace-strip .button { min-height: 40px; }
.sync-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 330px; font-size: 11px; font-weight: 500; color: #4d6575; line-height: 1.5; }
.sync-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #54796c; flex-shrink: 0; }
.sync-badge[data-status="saving"]::before, .sync-badge.saving::before { background: var(--copper); }
.sync-badge[data-status="error"], .sync-badge.error { color: #9a482c; }
.sync-badge.sync-error { color: #9a482c; }
.sync-badge.sync-error::before { background: #b35733; }
.sync-badge[data-status="error"]::before, .sync-badge.error::before { background: #b35733; }
.sync-badge[data-status="offline"]::before { background: #7a8796; }

/* Une entrée directe dans la comparaison. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: 56px; padding: 25px 0 32px; }
.hero h1 { max-width: 670px; margin: 15px 0; }
.hero p { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; color: #5d6b7b; font-size: 11px; }
.hero-meta > span { display: flex; gap: 6px; align-items: center; }
.hero-meta .icon { width: 14px; height: 14px; }
.hero-note { position: relative; min-height: 195px; border-left: 1px solid #d9d4ca; padding: 8px 0 8px 27px; overflow: hidden; }
.hero-note h2, .hero-note strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.hero-note p { font-size: 12px; }
.hero-note ol { display: grid; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; counter-reset: hero; }
.hero-note li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); counter-increment: hero; }
.hero-note li::before { content: "0" counter(hero); color: var(--copper-text); font-family: Georgia, serif; font-size: 15px; }
.hero-note .skyline { position: absolute; bottom: -3px; left: auto; right: -8px; width: 160px; height: 93px; opacity: .33; pointer-events: none; }
.hero-note .skyline path { stroke: var(--copper); }
.hero-note .skyline circle { fill: var(--copper); }
.city-card { position: relative; height: 210px; border-radius: 8px; padding: 23px; background: var(--ink); color: white; overflow: hidden; }
.city-top { display: flex; align-items: center; justify-content: space-between; color: #cfdae7; font-size: 11px; letter-spacing: .6px; }
.city-top svg { width: 23px; height: 23px; }
.city-title { position: relative; z-index: 2; max-width: 200px; font-size: 24px; font-weight: 600; letter-spacing: -.55px; line-height: 1.25; margin-top: 16px; }
.skyline { position: absolute; bottom: 25px; right: 0; width: 75%; height: 125px; }
.city-card .skyline path { stroke: #ccdaed; }
.city-card .skyline circle { fill: #d49b72; }
.city-bottom { position: absolute; bottom: 14px; left: 23px; right: 23px; display: flex; justify-content: space-between; color: #c4cedb; font-size: 10px; }

.profile-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 30px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { font-size: 18px; letter-spacing: -.25px; margin-top: 4px; }
.panel-heading .eyebrow { font-size: 10px; letter-spacing: 1px; }
.panel-heading .text-button { font-size: 12px; }
.panel-heading .icon { width: 15px; height: 15px; }
.profile-fields { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 14px; margin-top: 20px; }
.explore-content .profile-budget { display: none; }
.profile-fields label, .form-label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
input, select, textarea { max-width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); border: 1px solid #cfd6e0; border-radius: 6px; background: white; font-size: 13px; line-height: 1.35; }
input::placeholder, textarea::placeholder { color: #778393; opacity: 1; }
select { padding-right: 28px; cursor: pointer; }
.profile-fields select { width: 100%; font-size: 12px; min-height: 43px; }
.profile-budget { display: flex; align-items: center; gap: 9px; padding: 9px 12px; margin-top: 26px; border-radius: 6px; color: var(--blue); background: var(--blue-light); font-size: 11px; line-height: 1.4; }
.profile-budget strong { display: block; color: var(--blue); font-size: 12px; font-weight: 650; }
.profile-budget > span:last-child { margin-left: auto; font-size: 19px; }

.explore-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 26px; align-items: start; }
.explore-layout > :first-child { min-width: 0; }
.project-aside { position: sticky; top: 105px; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; background: white; }
.project-aside h2 { font-size: 18px; }
.project-aside > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 18px; }
.project-aside .eyebrow { font-size: 10px; margin-bottom: 10px; }
.project-aside .button { width: 100%; font-size: 12px; gap: 8px; }
.project-aside .text-button { font-size: 12px; }
.project-snapshot { margin: 0; }
.snapshot-row { border-top: 1px solid var(--line); padding: 14px 0; }
.snapshot-row > span { color: var(--muted); font-size: 11px; display: block; margin-bottom: 6px; }
.project-snapshot strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; }
.project-snapshot .snapshot-empty, .snapshot-empty { color: #667485; font-weight: 400; font-size: 12px; }
.project-snapshot button { margin-top: 4px; }
.snapshot-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.snapshot-heading .eyebrow { margin: 0; }
.snapshot-heading a { color: var(--blue); font-size: 19px; line-height: 1; }
.project-snapshot h2 { font-size: 21px; letter-spacing: -.45px; line-height: 1.35; }
.selection-summary { display: grid; gap: 0; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.selection-row { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.selection-row > div { flex: 1; min-width: 0; }
.selection-row > div > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.selection-number { color: var(--copper-text); font-family: Georgia, serif; font-size: 13px; padding-top: 1px; }
.selection-row strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.selection-row .icon-button { min-width: 24px; min-height: 24px; width: 24px; height: 24px; padding: 4px; color: #65758a; }
.selection-row .icon-button .icon { width: 14px; height: 14px; }
.selection-row button { margin: 0; }
.selection-row .text-button { font-size: 17px; line-height: 1; padding: 2px; }
.snapshot-budget { padding: 0 0 20px; }
.snapshot-budget > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.snapshot-budget strong { color: var(--ink); font-size: 25px; line-height: 1.3; letter-spacing: -.5px; margin-bottom: 5px; }
.snapshot-budget p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.snapshot-budget .text-button { font-size: 12px; margin-top: 5px; }
.project-snapshot > .hint { margin: 12px 0 0; font-size: 11px !important; }
.aside-note { padding-top: 20px; margin-top: 21px; border-top: 1px solid var(--line); color: #65758b; }
.aside-note > .icon { width: 16px; height: 16px; color: var(--copper); margin-bottom: 9px; }
.aside-note p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.aside-note .text-button { margin-top: 8px; }
.selection-summary h3 { font-size: 14px; }
.selection-summary p { color: var(--muted); font-size: 12px; }
.selection-summary .button { margin-top: 4px; }

.compare-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d2d8df; margin-bottom: 22px; }
.tabs { display: flex; gap: 27px; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; border: none; background: none; padding: 4px 0 15px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tab > span { color: #677587; font-family: Georgia, serif; font-size: 12px; }
.tab.active { color: var(--ink); font-weight: 650; }
.tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--blue); }
.tab.active > span { color: var(--blue); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.results-head h2 { font-size: 22px; }
.results-head p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.result-controls { display: flex; gap: 8px; }
.result-controls select { font-size: 12px; padding: 10px 26px 10px 10px; max-width: 205px; }
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; }
.directory-toolbar > input, .directory-toolbar > label { flex: 1; min-width: 180px; }
.directory-toolbar > label { position: relative; }
.directory-toolbar > label .icon { position: absolute; left: 12px; top: 13px; color: var(--muted); width: 16px; height: 16px; }
.directory-toolbar > label input { width: 100%; padding-left: 37px; }
#search-offers { min-height: 42px; }
.view-switch { display: inline-flex; flex-shrink: 0; gap: 3px; padding: 3px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 35px; height: 34px; border: none; border-radius: 4px; padding: 6px 9px; background: transparent; color: #607084; font-size: 12px; }
.view-switch button.active, .view-switch button[aria-pressed="true"] { color: var(--blue); background: var(--blue-light); }
.view-switch button:hover { background: #f1f4f8; }
.view-switch .icon { width: 15px; height: 15px; }
.filter-chip { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 11px; color: #4d617a; background: white; border: 1px solid #d3dbe6; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.filter-chip .icon { width: 14px; height: 14px; }
.filter-chip > span:last-child { font-size: 11px; padding-left: 3px; }
.filter-chip:hover { color: var(--blue); background: #f6f8fe; }
.filter-chip[aria-pressed="true"] { color: var(--blue); background: var(--blue-light); border-color: #b6cafa; }
.context-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 6px; margin-top: 15px; color: #4c6079; background: #eaf0f8; font-size: 12px; line-height: 1.55; }
.context-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0 12px; color: var(--muted); font-size: 12px; }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.legend i { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; margin-left: 6px; }
.legend i.outline-dot { background: none; border: 1px solid #68788d; }

/* Les résultats se lisent comme un annuaire, puis se comparent. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-card { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: white; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.offer-card:hover { border-color: #b5c3d5; box-shadow: 0 3px 14px #14283f06; }
.offer-card.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.offer-card.chosen { border-color: #b7c9ed; }
.offer-card.chosen.selected { border-color: var(--blue); }
.chosen-label { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; padding: 5px 7px; margin-bottom: 12px; color: #3d628a; background: #edf3fb; border-radius: 3px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.offer-header { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding-right: 25px; }
.offer-header > div { min-width: 0; }
.offer-mark { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex-shrink: 0; border: 1px solid #e0e4e9; border-radius: 7px; background: #f1f3f6; color: #49607c; font-family: Georgia, serif; font-size: 23px; }
.offer-mark.dark { background: var(--ink); color: white; border-color: var(--ink); }
.offer-mark.gold { background: #f1e9d9; color: #826135; border-color: #e7dbc2; }
.offer-mark.blue { background: #edf2fb; color: #446fa0; border-color: #dce6f5; }
.offer-mark.clay { background: #f5e8df; color: #925535; border-color: #ead5c7; }
.offer-header h3 { font-size: 15px; font-weight: 650; letter-spacing: -.15px; margin-bottom: 3px; }
.offer-location { color: var(--muted); font-size: 11px; line-height: 1.5; display: block; }
.badge { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; padding: 5px 7px; margin-bottom: 14px; border-radius: 3px; color: #3e6280; background: #eef3f7; font-size: 11px; font-weight: 500; line-height: 1.35; }
.badge.neutral { color: #666054; background: #f1eee7; }
.offer-price { color: var(--ink); font-size: 28px; font-weight: 650; letter-spacing: -.7px; line-height: 1.2; }
.offer-price small { color: var(--muted); font-size: 12px; font-weight: 450; letter-spacing: 0; margin-left: 4px; }
.price-context { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 6px; min-height: 35px; }
.offer-divider { height: 1px; background: #e4e7eb; margin: 16px 0; }
.offer-features { display: grid; gap: 10px; margin-bottom: 15px; }
.feature { display: flex; align-items: flex-start; gap: 7px; color: #42566f; font-size: 12px; line-height: 1.5; }
.feature .icon { width: 13px; height: 13px; color: #436997; margin-top: 2px; }
.offer-caution { min-height: 42px; color: #6c604e; font-size: 11px; line-height: 1.55; padding: 9px 0 15px; margin-top: auto; }
.match-reason { display: flex; gap: 6px; align-items: flex-start; color: #526984; background: #f4f7fb; border-radius: 4px; padding: 8px 10px; margin: 0 0 13px; font-size: 11px; line-height: 1.5; }
.match-reason .icon { width: 13px; height: 13px; margin-top: 2px; }
.favorite-button { position: absolute; right: 13px; top: 15px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #637488; border: none; border-radius: 5px; background: transparent; padding: 7px; }
.favorite-button:hover { background: #f2f5fa; color: var(--blue); }
.favorite-button.active, .favorite-button[aria-pressed="true"] { color: var(--copper); background: #f9eee7; }
.favorite-button.active .icon, .favorite-button[aria-pressed="true"] .icon { fill: #ad68451a; }
.favorite-button .icon { width: 17px; height: 17px; }
.offer-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.offer-actions .text-button { font-size: 12px; }
.compare-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 8px 10px; color: var(--blue); border: 1px solid #cddaf5; border-radius: 5px; background: white; font-size: 11px; font-weight: 600; line-height: 1.4; }
.compare-button:hover { border-color: var(--blue); background: var(--blue-light); }
.compare-button.selected { background: var(--blue); border-color: var(--blue); color: white; }
.compare-button .icon { width: 13px; height: 13px; }
.offer-actions .button { font-size: 11px; min-height: 34px; padding: 8px 10px; gap: 6px; }

.cards.list-view { grid-template-columns: 1fr; gap: 12px; }
.cards.list-view .offer-card { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(230px, 1.15fr) 125px; column-gap: 20px; padding: 21px; }
.cards.list-view .offer-header { grid-column: 1; grid-row: 1; margin-bottom: 10px; padding-right: 0; }
.cards.list-view .offer-header h3 { font-size: 15px; }
.cards.list-view .badge { grid-column: 1; grid-row: 2; margin-bottom: 10px; }
.cards.list-view .offer-price { grid-column: 1; grid-row: 3; font-size: 26px; }
.cards.list-view .price-context { grid-column: 1; grid-row: 4; min-height: 0; margin-top: 5px; }
.cards.list-view .offer-divider { display: none; }
.cards.list-view .offer-features { grid-column: 2; grid-row: 1 / 4; margin: 2px 0 10px; align-self: start; gap: 8px; }
.cards.list-view .offer-caution { grid-column: 2; grid-row: 4; min-height: 0; margin-top: 0; padding: 0; }
.cards.list-view .match-reason { grid-column: 1 / 3; grid-row: 5; margin: 15px 0 0; }
.cards.list-view .chosen-label { grid-column: 1 / 3; grid-row: 6; margin: 12px 0 0; }
.cards.list-view .offer-actions { grid-column: 3; grid-row: 1 / 7; align-self: stretch; justify-content: center; flex-direction: column; align-items: stretch; border-top: none; border-left: 1px solid var(--line); padding: 25px 0 0 15px; gap: 10px; }
.cards.list-view .offer-actions .text-button { justify-content: center; font-size: 11px; }
.cards.list-view .offer-actions .compare-button { width: 100%; }
.cards.list-view .favorite-button { right: 24px; top: 16px; }
.cards.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.grid-view .offer-card { padding: 21px; }
.cards.grid-view .offer-header { padding-right: 25px; }
.cards.grid-view .offer-actions { flex-wrap: wrap; }

.clarity-note { display: flex; align-items: flex-start; gap: 12px; padding: 17px 18px; border: 1px solid #e1dbcf; border-radius: 7px; background: #f0ece4; margin-top: 22px; }
.clarity-note > .icon { color: #8b6d4a; width: 17px; height: 17px; margin-top: 2px; }
.clarity-note strong { color: #594f41; font-size: 12px; font-weight: 650; }
.clarity-note p { color: #665e51; font-size: 12px; line-height: 1.65; margin-top: 4px; }
.clarity-note > a { margin: auto 0 auto 12px; color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap; }
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; padding: 26px 0 5px; border-top: 1px solid var(--line); }
.next-step h2 { font-size: 23px; font-weight: 600; letter-spacing: -.55px; margin-top: 9px; }
.next-step p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.next-step .button { white-space: nowrap; }
.main-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 42px; padding: 23px 0 28px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; color: var(--muted); }
.main-footer span > span { margin: 0 8px; }
.main-footer a { color: #405773; }
.main-footer a:hover { text-decoration: underline; }

/* Budget, parcours et pièces du dossier. */
.page-heading { padding: 17px 0 31px; }
.page-heading h1 { margin: 14px 0; font-size: 40px; }
.page-heading > p { color: var(--muted); font-size: 14px; max-width: 740px; }
.white-panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.white-panel > h2 { font-size: 20px; margin-bottom: 20px; }
.white-panel > p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 12px; }
.budget-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); gap: 25px; align-items: start; }
.budget-layout .form-label { font-size: 13px; }
.budget-layout .form-label select { font-size: 13px; }
.hint { color: var(--muted) !important; font-size: 12px !important; line-height: 1.6; margin: 9px 0 18px; }
.budget-field, .renewal-field { margin-top: 22px; }
.budget-field label, .renewal-field label { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.field-hint { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; margin: 5px 0 9px; }
.amount-input { display: flex; align-items: center; border: 1px solid #cfd6e0; border-radius: 6px; background: white; margin-top: 8px; }
.amount-input input { width: 100%; border: none; border-radius: 6px; font-size: 14px; }
.amount-input > span { color: var(--muted); font-size: 12px; padding-right: 12px; white-space: nowrap; }
.amount-input:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.amount-input input:focus-visible { outline: none; }
.renewal-field { padding-top: 21px; border-top: 1px solid var(--line); }
.renewal-field .small-muted { display: block; margin-top: 5px; }
.budget-summary { position: sticky; top: 105px; padding: 26px; border: 1px solid #d4dff3; border-radius: var(--radius); background: #edf2fc; }
.budget-summary .eyebrow { color: #48648b; }
.sum-label { display: block; color: #4d6280; font-size: 13px; margin: 22px 0 9px; }
.budget-big { color: var(--ink); font-size: 45px; line-height: 1.2; font-weight: 650; letter-spacing: -1.6px; margin-bottom: 6px; }
.completion { margin: 22px 0 12px; }
.completion > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #56677f; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.completion strong { color: var(--ink); font-weight: 650; }
progress { width: 100%; height: 5px; appearance: none; border: none; border-radius: 5px; overflow: hidden; background: #d6dfec; }
progress::-webkit-progress-bar { background: #d6dfec; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 5px; }
#budget-missing { color: #56677f; font-size: 12px; line-height: 1.6; }
.summary-rule { height: 1px; background: #d2dced; margin: 23px 0; }
.budget-summary h3 { font-size: 14px; }
.clean-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 15px 0 23px; }
.clean-list li { position: relative; padding-left: 17px; color: #475d78; font-size: 12px; line-height: 1.5; }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); }
.budget-summary > .text-button { margin-top: 14px; font-size: 12px; }
.annual-view { margin-top: 20px; border-top: 1px solid #d2dced; padding-top: 18px; }
.annual-view > .eyebrow { margin-bottom: 15px; }
.annual-view label { display: block; color: #425a79; font-size: 12px; font-weight: 500; line-height: 1.5; margin-bottom: 15px; }
.annual-view h3 { margin-bottom: 8px; }
.annual-view p { color: #52647c; font-size: 12px; line-height: 1.65; }
.annual-view strong, .annual-total { display: block; color: var(--ink); font-size: 25px; letter-spacing: -.5px; margin: 7px 0; }

.route-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.route-list { display: grid; gap: 12px; margin-top: 24px; }
.route-card { display: flex; align-items: flex-start; gap: 21px; padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.route-step { flex-shrink: 0; min-width: 35px; font-family: Georgia, serif; font-size: 25px; line-height: 1.2; color: var(--copper); }
.route-content { flex: 1; min-width: 0; }
.route-content h2 { font-size: 17px; letter-spacing: -.2px; }
.route-content p { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 7px; }
.route-content a { display: inline-block; font-size: 12px; color: var(--blue); margin-top: 10px; }
.route-card input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.route-card.done { border-color: #c8d7f5; background: #f2f6fe; }
.route-card.done .route-step { color: var(--blue); }

.dossier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dossier-grid.dossier-details { margin-top: 22px; margin-bottom: 30px; }
#dossier-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#dossier-overview .dossier-section { padding: 22px; }
#dossier-overview .eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 13px; }
#dossier-overview h2 { font-size: 19px; letter-spacing: -.4px; line-height: 1.4; margin-bottom: 10px; }
#dossier-overview p { font-size: 12px; line-height: 1.6; }
#dossier-overview .text-button { font-size: 12px; margin-top: 15px; }
.dossier-section { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.dossier-section h2 { font-size: 19px; margin-bottom: 16px; }
.dossier-section h3 { font-size: 14px; margin-top: 20px; }
.dossier-section > p { color: var(--muted); font-size: 13px; }
.dossier-section .form-label { margin: 15px 0; }
.dossier-section textarea { width: 100%; min-height: 150px; resize: vertical; line-height: 1.65; }
.dossier-section .button-row { margin-top: 18px; }
.dossier-section .selection-summary { margin-top: 15px; }
.deadline-list { display: grid; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; }
.deadline-list > li, .deadline-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.deadline-list > li:last-child { border-bottom: none; }
.deadline-list strong { font-weight: 600; display: block; font-size: 13px; }
.deadline-list p, .deadline-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 4px; }
.deadline-list time { white-space: nowrap; color: #5a6b81; font-size: 12px; }
.deadline-list .expired, .deadline-item.expired { color: #95462f; }
.deadline-item > div { flex: 1; }
.deadline-item > div > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
.deadline-item .icon-button { min-width: 25px; min-height: 28px; width: 25px; height: 28px; padding: 5px; }
.deadline-item .icon-button .icon { width: 14px; height: 14px; }
.deadline-item.deadline-soon > div > span { color: #985333; }
.inline-empty { padding: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.inline-empty p { font-size: 13px; color: #425670; margin-bottom: 6px; }
.inline-empty > span { display: block; font-size: 12px; }
.dossier-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 25px; margin-top: 25px; border-top: 1px solid var(--line); }
.dossier-controls .text-button { font-size: 12px; }
.import-label { cursor: pointer; }
.danger-link { color: #a3442b; margin-left: auto; }
.document-list { display: grid; gap: 11px; padding: 0; list-style: none; }
.document-list label { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.55; }
.document-list input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }

/* Une table de devis lisible et des filtres prévisibles. */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-bar h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.section-bar p { margin-top: 8px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 15px; padding: 52px 24px; border: 1px dashed #bfcada; border-radius: var(--radius); background: #fdfdfc; }
.empty-state .empty-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #eef3fb; color: #5c7697; }
.empty-state .icon { width: 24px; height: 24px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { max-width: 450px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.quote-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 17px; }
.quote-filter-bar input { flex: 1; min-width: 220px; }
.quote-filter-bar select { min-width: 165px; }
.quote-filter-bar .small-muted { margin-left: auto; }
.quote-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: white; scrollbar-color: #b9c5d6 #f5f7fa; }
.quote-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.quote-table th, .quote-table td { padding: 17px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.quote-table th { color: #596b82; background: #f4f6f9; font-size: 11px; font-weight: 650; white-space: nowrap; }
.quote-table tr:last-child td { border-bottom: none; }
.quote-table td strong { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.quote-table td p { color: var(--muted); font-size: 12px; max-width: 235px; line-height: 1.6; }
.quote-table td .text-button { font-size: 12px; margin: 0 8px 7px 0; }
.quote-table tbody tr:hover { background: #fafbfc; }
.quote-table .expired { color: #9c482e; }
.quote-status { display: inline-flex; width: fit-content; padding: 4px 6px; background: #edf3fa; color: #466889; border-radius: 3px; font-size: 11px; margin-top: 6px; }
.quote-status.expired { color: #954a30; background: #faf0e9; }

/* Les sources ont la même importance que les montants. */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 0 0 33px; }
.method-grid .white-panel { padding: 22px; }
.method-number { display: block; color: var(--copper); font-family: Georgia, serif; font-size: 25px; margin-bottom: 20px; }
.method-grid h2 { font-size: 18px; letter-spacing: -.25px; }
.method-grid p { font-size: 13px; }
.source-list { border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.source-row:last-child { border-bottom: none; }
.source-row h3 { font-size: 14px; }
.source-row p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.source-row a { color: var(--blue); white-space: nowrap; font-size: 12px; font-weight: 600; }
.source-tag { display: block; color: #696250; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.privacy-panel { margin-top: 28px; }
.privacy-panel button { margin-top: 22px; }

/* La sélection et les fenêtres restent accessibles au clavier. */
.compare-tray { position: fixed; bottom: 20px; left: 32px; right: 32px; z-index: 80; display: flex; align-items: center; gap: 18px; max-width: 1216px; margin: auto; padding: 17px 21px; border: 1px solid #b9cbed; border-radius: 9px; background: #fff; box-shadow: 0 10px 45px #172b4426; }
.compare-tray > div:first-child { min-width: 175px; }
.compare-tray strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
.compare-tray > div:first-child span { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 5px; }
#tray-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-right: auto; }
.tray-chip { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #d7e1f5; border-radius: 5px; background: #f0f4fc; color: #395b89; font-size: 11px; }
.tray-chip button { border: none; padding: 1px 3px; color: #496994; background: none; font-size: 16px; line-height: 1; }
.compare-tray > .text-button { font-size: 12px; }
.compare-tray > .button { font-size: 13px; white-space: nowrap; }
body.has-tray main { padding-bottom: 100px; }
dialog { width: calc(100% - 40px); max-width: 860px; max-height: 88vh; max-height: 88dvh; margin: auto; overflow: auto; padding: 27px; border: 1px solid #d1d9e5; border-radius: 12px; background: #fdfdfc; color: var(--ink); box-shadow: 0 18px 100px #10203938; }
dialog::backdrop { background: #14283f80; backdrop-filter: blur(3px); }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.modal-top .eyebrow { font-size: 11px; }
.modal-title { margin: 0 0 13px; color: var(--ink); font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.75px; }
.modal-lead { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 22px; }
.modal-form, .modalForm { display: grid; gap: 19px; }
.modal-form label, .modalForm label { display: grid; gap: 8px; color: #44566c; font-size: 13px; line-height: 1.5; }
.modal-form textarea, .modalForm textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.modal-form .hint, .modalForm .hint { margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.detail-cell { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.detail-cell > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.detail-cell strong { font-size: 13px; font-weight: 600; line-height: 1.65; }
.detail-list { padding-left: 20px; color: #4e6179; font-size: 13px; line-height: 1.7; margin: 15px 0; }
.detail-list li { margin-bottom: 8px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.detail-source { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 20px; }
.detail-source a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.comparison-table { width: 100%; min-width: 620px; border-collapse: collapse; color: #415570; font-size: 12px; }
.comparison-table td, .comparison-table th { padding: 16px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.comparison-table thead th { background: #eef3fc; color: var(--ink); font-size: 14px; font-weight: 650; }
.comparison-table th:first-child { min-width: 120px; color: #52667f; font-size: 12px; font-weight: 600; }
.comparison-table tbody td { min-width: 155px; }
.comparison-table ul { padding-left: 16px; margin: 0; }
.comparison-table a { color: var(--blue); font-weight: 600; }
.brief-area { width: 100%; min-height: 320px; background: white; resize: vertical; font-size: 13px; line-height: 1.8; }
.note-inline { padding: 13px 15px; background: #f0ece4; color: #665b4b; border-radius: 6px; font-size: 12px; line-height: 1.7; margin: 20px 0; }
.toast { position: fixed; z-index: 200; bottom: 28px; left: 50%; transform: translateX(-50%); width: fit-content; max-width: 90%; padding: 14px 20px; border-radius: 7px; background: var(--ink); color: white; box-shadow: 0 5px 30px #172b4433; font-size: 13px; line-height: 1.5; }
.has-tray .toast { bottom: 120px; }
.no-results { grid-column: 1 / -1; padding: 40px 24px; text-align: center; border: 1px dashed #bdcbdc; border-radius: 8px; background: #fcfcfb; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Diagnostic en quatre étapes, choix simples et progression explicite. */
.wizard-steps { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 27px; list-style: none; padding: 0; }
.wizard-steps > span { display: flex; align-items: center; gap: 8px; color: #5e7088; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .8px; }
.wizard-steps .active, .wizard-steps [aria-current="step"] { color: var(--blue); border-color: var(--blue); font-weight: 650; }
.wizard-steps .done { color: #3e638c; border-color: #adc2ef; }
.wizard-steps span:first-child { font-size: 11px; font-family: Georgia, serif; }
.wizard-progress { width: 45%; max-width: 230px; margin: 0; height: 5px; }
.wizard-progress progress { max-width: 230px; }
.wizard-question { margin: 23px 0; }
.wizard-question h3, .wizard-question legend { font-size: 19px; font-weight: 650; line-height: 1.4; margin-bottom: 9px; letter-spacing: -.3px; }
.wizard-question > p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.wizard-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; }
.wizard-option { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border: 1px solid #d5dde8; border-radius: 7px; background: white; color: var(--ink); text-align: left; font-size: 13px; line-height: 1.5; }
.modal-form .wizard-option { display: flex; gap: 11px; }
.wizard-option:hover { border-color: #9eb6e7; background: #f8faff; }
.wizard-option.selected, .wizard-option.active, .wizard-option[aria-pressed="true"], .wizard-option:has(input:checked) { border-color: var(--blue); background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--blue); }
.wizard-option strong { display: block; font-size: 13px; margin-bottom: 4px; }
.wizard-option p, .wizard-option small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.wizard-option input, .wizard-question input[type="radio"] { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.wizard-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-question input, .wizard-question select { width: 100%; }
.wizard-result { padding: 20px; border: 1px solid #d4e1f5; border-radius: 8px; background: #f0f5fd; margin: 20px 0; }
.wizard-result h3 { margin-bottom: 8px; }
.wizard-result p { color: var(--muted); font-size: 13px; }

/* Aucune information utile ne descend sous onze pixels. */
.panel-heading .eyebrow, .project-aside .eyebrow,
.source-tag, .city-top, .city-bottom,
#dossier-overview .eyebrow { font-size: 11px; }

@media (min-width: 1450px) {
  .hero { padding-top: 31px; padding-bottom: 38px; }
  .hero h1 { font-size: 47px; }
}

@media (max-width: 1180px) {
  .sidebar { gap: 18px; padding-left: 24px; padding-right: 24px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 33px; height: 33px; }
  .brand-small { font-size: 9px; letter-spacing: 2.1px; }
  .header-tools { gap: 10px; }
  .header-tools .currency { display: none; }
  .header-tools .button { font-size: 11px; gap: 6px; }
  .nav-item { padding: 11px 9px; font-size: 12px; gap: 6px; }
  .nav-item .icon { width: 16px; height: 16px; }
  .sidebar nav[aria-label="Informations"] .nav-item .icon { display: none; }
  main { padding-left: 24px; padding-right: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) 285px; gap: 35px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 14px; }
  .explore-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .project-aside { padding: 18px; }
  .results-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .result-controls { flex-wrap: wrap; }
  .cards.list-view .offer-card { grid-template-columns: minmax(160px, .8fr) minmax(160px, 1fr); gap: 0 18px; padding: 19px; }
  .cards.list-view .offer-header { padding-right: 18px; }
  .cards.list-view .offer-actions { grid-column: 1 / 3; grid-row: 7; flex-direction: row; justify-content: flex-end; align-items: center; border-left: none; border-top: 1px solid var(--line); padding: 13px 0 0; margin-top: 16px; }
  .cards.list-view .offer-actions .text-button { margin-right: auto; font-size: 12px; }
  .cards.list-view .offer-actions .compare-button { width: auto; }
  .cards.list-view .favorite-button { top: 13px; right: 11px; }
  .compare-top > .small-muted { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; }
  .clarity-note { flex-wrap: wrap; }
  .clarity-note > div { flex: 1; min-width: 0; }
  .clarity-note > a { margin: 0 0 0 29px; }
}

@media (max-width: 960px) {
  .sidebar { gap: 12px; }
  .nav-item { padding: 11px 8px; gap: 5px; }
  .nav-item .icon { display: none; }
  .sidebar nav[aria-label="Informations"] .nav-item { font-size: 11px; }
  .brand { font-size: 16px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-small { font-size: 8px; letter-spacing: 2px; }
  .header-tools .button { display: none; }
  .explore-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 18px; }
  .project-aside { padding: 17px; }
  .cards.list-view .offer-card { grid-template-columns: 1fr; }
  .cards.list-view .offer-header { grid-column: 1; grid-row: 1; padding-right: 28px; }
  .cards.list-view .badge { grid-row: 2; }
  .cards.list-view .offer-price { grid-row: 3; }
  .cards.list-view .price-context { grid-row: 4; }
  .cards.list-view .offer-features { grid-column: 1; grid-row: 5; margin-top: 17px; margin-bottom: 12px; }
  .cards.list-view .offer-caution { grid-column: 1; grid-row: 6; }
  .cards.list-view .match-reason { grid-column: 1; grid-row: 7; margin-top: 13px; }
  .cards.list-view .chosen-label { grid-column: 1; grid-row: 8; }
  .cards.list-view .offer-actions { grid-column: 1; grid-row: 9; }
  .profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-budget { margin-top: 26px; }
  .method-grid { grid-template-columns: 1fr; gap: 13px; }
  .method-grid .white-panel { display: grid; grid-template-columns: 40px 1fr; gap: 3px 15px; }
  .method-number { grid-row: 1 / 3; margin-bottom: 0; }
  .method-grid h2 { margin-bottom: 5px; }
  .method-grid p { margin-top: 0; }
  .compare-tray #tray-chips { display: none; }
  .compare-tray > .text-button { margin-left: auto; }
  .next-step { align-items: flex-start; flex-direction: column; }
  .budget-layout { grid-template-columns: 1fr; }
  .budget-summary { position: static; }
  .budget-big { font-size: 43px; }
  .section-bar { align-items: flex-start; flex-direction: column; }
  #dossier-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Même espace et mêmes repères sur les petits écrans. */
@media (max-width: 800px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: calc(100vw - 50px); min-height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 26px; padding: 27px 20px; transform: translateX(-105%); transition: transform .2s; background: #fff; border-right: 1px solid var(--line); border-bottom: none; box-shadow: 7px 0 40px #172b4430; }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand { align-self: flex-start; font-size: 20px; margin: 5px 12px 0; }
  .sidebar .brand svg { width: 37px; height: 37px; }
  .sidebar .brand-small { font-size: 10px; letter-spacing: 2.5px; }
  .sidebar nav { display: grid; gap: 7px; flex: 0 !important; margin: 0; }
  .sidebar nav[aria-label="Informations"] { margin-top: auto; }
  .sidebar nav[aria-label="Informations"] .nav-item { font-size: 13px; }
  .sidebar .nav-item { padding: 14px 12px; font-size: 14px; gap: 11px; }
  .sidebar .nav-item .icon { display: block; width: 18px; height: 18px; }
  .sidebar .small-count { margin-left: auto; }
  .header-tools { display: flex; align-items: stretch; flex-direction: column; gap: 15px; margin-top: auto; padding: 19px 12px 0; border-top: 1px solid var(--line); }
  .header-tools .currency { display: inline; font-size: 12px; }
  .header-tools .button { display: inline-flex; font-size: 12px; }
  .topbar { position: sticky; top: 0; z-index: 50; max-width: none; min-height: 66px; padding: 12px 20px; background: rgba(255, 255, 255, .97); }
  .topbar-left, .topbar-right { gap: 10px; }
  #mobile-menu { display: inline-flex; }
  .breadcrumb { font-size: 12px; }
  main { padding: 22px 20px 0; }
  .hero { grid-template-columns: minmax(0, 1fr) 245px; gap: 26px; padding: 23px 0 29px; }
  .hero h1 { font-size: 37px; letter-spacing: -1.4px; }
  .hero p { font-size: 14px; }
  .hero-note { padding-left: 20px; }
  .hero-meta { gap: 13px; }
  .explore-layout { grid-template-columns: 1fr; gap: 23px; }
  .project-aside { position: static; padding: 22px; }
  .project-snapshot { margin: 0; }
  .selection-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; border-top: 0; }
  .selection-row { border-top: 1px solid var(--line); border-bottom: 0; }
  .project-aside .button { width: auto; }
  .results-head { flex-direction: row; align-items: flex-start; }
  .result-controls { flex-direction: column; flex-shrink: 0; }
  .cards.list-view .offer-card { grid-template-columns: minmax(190px, .85fr) minmax(220px, 1.15fr); gap: 0 22px; padding: 22px; }
  .cards.list-view .offer-header { grid-column: 1; grid-row: 1; padding-right: 0; }
  .cards.list-view .badge { grid-column: 1; grid-row: 2; }
  .cards.list-view .offer-price { grid-column: 1; grid-row: 3; }
  .cards.list-view .price-context { grid-column: 1; grid-row: 4; }
  .cards.list-view .offer-features { grid-column: 2; grid-row: 1 / 4; margin-top: 4px; padding-right: 20px; }
  .cards.list-view .offer-caution { grid-column: 2; grid-row: 4; }
  .cards.list-view .match-reason { grid-column: 1 / 3; grid-row: 5; }
  .cards.list-view .chosen-label { grid-column: 1 / 3; grid-row: 6; }
  .cards.list-view .offer-actions { grid-column: 1 / 3; grid-row: 7; }
  .workspace-strip { flex-wrap: wrap; gap: 12px; padding-bottom: 18px; }
  .workspace-strip > div { flex-wrap: wrap; }
  .workspace-tools { justify-content: space-between; }
  .compare-tray { left: 20px; right: 20px; }
  .page-heading h1 { font-size: 36px; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  main { padding: 20px 16px 0; }
  .topbar { min-height: 64px; padding: 10px 11px; gap: 8px; }
  .topbar-left { gap: 4px; }
  .topbar-right { gap: 0; }
  .topbar .button { min-height: 38px; padding: 9px 11px; gap: 6px; font-size: 11px; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb span { margin: 0 4px; }
  .currency { display: none; }
  .workspace-strip { gap: 12px; margin-bottom: 4px; padding-bottom: 16px; }
  .workspace-strip > div { width: 100%; gap: 8px; }
  .workspace-strip select { flex: 1; min-width: 0; max-width: none; font-size: 12px; }
  .workspace-strip .button { min-height: 39px; padding: 10px; font-size: 11px; }
  .workspace-strip label, .workspace-label { font-size: 11px; }
  .sync-badge { font-size: 11px; }
  .hero { display: block; padding: 21px 0 25px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .hero h1 { max-width: 100%; font-size: 37px; letter-spacing: -1.5px; margin: 14px 0 13px; }
  .hero p { font-size: 14px; line-height: 1.7; }
  .hero-meta { font-size: 11px; gap: 15px; margin-top: 17px; }
  .hero-note { min-height: auto; margin-top: 22px; padding: 14px 16px; border-left: 2px solid var(--copper); background: #ece8df; border-radius: 0 5px 5px 0; }
  .hero-note h2, .hero-note strong { font-size: 13px; }
  .hero-note ol { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 11px; max-width: 95%; }
  .hero-note li { gap: 6px; font-size: 11px; }
  .hero-note li::before { font-size: 12px; }
  .hero-note .skyline { display: none; }
  .city-card { height: 165px; margin-top: 22px; }
  .city-title { max-width: 180px; font-size: 21px; margin-top: 8px; }
  .city-top { font-size: 10px; }
  .city-bottom { font-size: 10px; }
  .skyline { width: 56%; height: 110px; bottom: 21px; }
  .profile-panel { padding: 18px; margin-bottom: 24px; }
  .panel-heading { align-items: flex-start; gap: 14px; }
  .panel-heading h2 { font-size: 17px; line-height: 1.4; }
  .panel-heading .eyebrow { font-size: 10px; letter-spacing: .7px; }
  .panel-heading .text-button { max-width: 102px; text-align: left; font-size: 11px; }
  .profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin-top: 18px; }
  .profile-fields label { font-size: 11px; }
  .profile-fields select { padding-left: 9px; padding-right: 22px; font-size: 11px; min-height: 42px; }
  .profile-budget { margin-top: 24px; padding: 8px 9px; }
  .profile-budget > .icon { width: 15px; height: 15px; }
  .profile-budget strong { font-size: 11px; }
  .compare-top { margin-bottom: 20px; }
  .tabs { width: 100%; justify-content: space-between; gap: 14px; }
  .tab { gap: 6px; font-size: 14px; padding-bottom: 14px; }
  .tab > span { font-size: 11px; }
  .results-head { flex-direction: column; gap: 13px; }
  .results-head h2 { font-size: 21px; }
  .results-head p { font-size: 12px; line-height: 1.6; }
  .result-controls { flex-direction: row; width: 100%; gap: 8px; }
  .result-controls select { flex: 1; min-width: 0; max-width: none; font-size: 11px; }
  .directory-toolbar { margin-top: 14px; gap: 8px; flex-wrap: wrap; }
  .directory-toolbar > input, .directory-toolbar > label { min-width: 185px; }
  .directory-toolbar input { font-size: 12px; }
  .view-switch button { padding: 6px; font-size: 11px; min-width: 31px; }
  .view-switch .icon { width: 14px; height: 14px; }
  .filter-chip { font-size: 11px; padding: 8px 9px; min-height: 42px; }
  .filter-chip > span:last-child { font-size: 10px; }
  .directory-toolbar > .search-field { flex-basis: 100%; }
  .directory-toolbar > .view-switch { margin-left: auto; }
  .context-note { font-size: 11px; padding: 10px 12px; margin-top: 13px; }
  .results-meta { gap: 10px; font-size: 11px; padding-top: 15px; }
  .legend { font-size: 10px; gap: 4px; }
  .legend i { margin-left: 4px; }
  .cards, .cards.grid-view { grid-template-columns: 1fr; gap: 13px; }
  .offer-card, .cards.grid-view .offer-card { padding: 20px; }
  .offer-header { margin-bottom: 15px; }
  .offer-header h3 { font-size: 16px; }
  .offer-location { font-size: 11px; }
  .offer-mark { width: 43px; height: 43px; }
  .offer-price { font-size: 29px; }
  .offer-features { gap: 10px; }
  .feature { font-size: 12px; }
  .price-context, .offer-caution, .match-reason { font-size: 11px; }
  .offer-actions { flex-wrap: wrap; }
  .cards.list-view .offer-card { display: flex; flex-direction: column; gap: 0; padding: 20px; }
  .cards.list-view .offer-header { padding-right: 24px; margin-bottom: 12px; }
  .cards.list-view .offer-header h3 { font-size: 16px; }
  .cards.list-view .badge { margin-bottom: 13px; }
  .cards.list-view .offer-price { font-size: 29px; }
  .cards.list-view .price-context { margin-top: 6px; }
  .cards.list-view .offer-features { border-top: 1px solid var(--line); padding: 16px 0 0; margin: 17px 0 13px; }
  .cards.list-view .offer-caution { padding: 0; margin-top: 0; }
  .cards.list-view .match-reason { margin: 13px 0 0; }
  .cards.list-view .offer-actions { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 0 0; margin-top: 15px; }
  .cards.list-view .offer-actions .text-button { font-size: 12px; }
  .cards.list-view .favorite-button { top: 15px; right: 12px; }
  .compare-button, .offer-actions .button { font-size: 11px; min-height: 36px; padding: 8px 11px; }
  .project-aside { padding: 20px; }
  .project-snapshot { margin: 0; }
  .selection-summary { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .selection-row { border-top: 0; border-bottom: 1px solid var(--line); }
  .project-aside .button { width: 100%; }
  .clarity-note { gap: 9px; padding: 15px; margin-top: 19px; }
  .clarity-note p, .clarity-note strong { font-size: 11px; }
  .clarity-note > a { margin-left: 26px; font-size: 12px; }
  .next-step { gap: 19px; margin-top: 24px; padding-top: 22px; }
  .next-step h2 { font-size: 22px; line-height: 1.35; }
  .next-step p { font-size: 12px; }
  .next-step .button { width: 100%; }
  .main-footer { gap: 12px; padding: 21px 0; margin-top: 30px; font-size: 10px; }
  .main-footer span > span { margin: 0 3px; }
  .main-footer > span { max-width: 210px; }
  .main-footer a { text-align: right; }
  .page-heading { padding: 15px 0 25px; }
  .page-heading h1 { font-size: 35px; letter-spacing: -1.35px; }
  .page-heading > p { font-size: 13px; }
  .white-panel { padding: 20px; }
  .budget-summary { padding: 23px; }
  .budget-big { font-size: 39px; }
  .budget-field, .renewal-field { margin-top: 19px; }
  .budget-layout { gap: 18px; }
  .route-card { gap: 13px; padding: 19px 17px; }
  .route-step { min-width: 27px; font-size: 23px; }
  .route-content h2 { font-size: 15px; }
  .route-content p { font-size: 12px; }
  .route-content a { font-size: 11px; }
  .route-header { font-size: 12px; }
  .route-card input[type="checkbox"] { width: 19px; height: 19px; }
  .section-bar { gap: 17px; margin-bottom: 20px; }
  .section-bar h2 { font-size: 19px; }
  .button-row { width: 100%; gap: 8px; }
  .button-row .button { font-size: 12px; padding: 11px 13px; gap: 7px; }
  .quote-filter-bar { gap: 9px; }
  .quote-filter-bar input { flex-basis: 100%; min-width: 0; }
  .quote-filter-bar select { flex: 1; min-width: 135px; font-size: 12px; }
  .quote-filter-bar .small-muted { width: 100%; margin-left: 0; }
  .quote-table th, .quote-table td { padding: 14px; }
  .empty-state { padding: 38px 20px; }
  .empty-state h2 { font-size: 19px; }
  .empty-state p { font-size: 12px; }
  .method-grid .white-panel { padding: 20px; grid-template-columns: 28px 1fr; gap: 5px 13px; }
  .method-number { font-size: 23px; }
  .method-grid h2 { font-size: 17px; }
  .method-grid p { font-size: 12px; }
  .source-row { padding: 17px; gap: 14px; align-items: flex-start; }
  .source-row h3 { font-size: 13px; }
  .source-row p { font-size: 11px; }
  .source-row a { font-size: 11px; margin-top: 20px; }
  .source-tag { font-size: 10px; letter-spacing: .65px; }
  .dossier-grid { grid-template-columns: 1fr; gap: 17px; }
  #dossier-overview { grid-template-columns: 1fr; gap: 13px; }
  #dossier-overview .dossier-section { padding: 20px; }
  .dossier-section { padding: 20px; }
  .dossier-section h2 { font-size: 18px; }
  .deadline-list > li { gap: 12px; flex-wrap: wrap; }
  .deadline-list time { font-size: 11px; }
  .dossier-controls { gap: 12px 20px; }
  .danger-link { margin-left: 0; }
  .compare-tray { bottom: 12px; left: 12px; right: 12px; gap: 10px; padding: 13px; }
  .compare-tray > div:first-child { min-width: 0; flex: 1; }
  .compare-tray strong { font-size: 12px; }
  .compare-tray > div:first-child span { font-size: 10px; max-width: 150px; line-height: 1.5; }
  .compare-tray > .text-button { font-size: 11px; }
  .compare-tray > .button { font-size: 12px; padding: 10px 11px; gap: 6px; min-height: 39px; }
  body.has-tray main { padding-bottom: 100px; }
  dialog { width: calc(100% - 24px); max-height: 92dvh; padding: 20px; border-radius: 10px; }
  .modal-title { font-size: 24px; letter-spacing: -.55px; }
  .modal-lead { font-size: 12px; }
  .modal-top { margin-bottom: 14px; }
  .modal-top .eyebrow { font-size: 10px; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; gap: 15px; }
  .detail-grid { margin: 19px 0; }
  .detail-actions .button { flex: 1 1 100%; }
  .detail-source { font-size: 11px; }
  .detail-cell { padding: 15px; }
  .wizard-steps { gap: 15px; margin: 17px 0 23px; }
  .wizard-steps > span { font-size: 10px; letter-spacing: .5px; }
  .wizard-progress { max-width: 130px; margin: 0; }
  .wizard-progress progress { max-width: 140px; }
  .wizard-question h3, .wizard-question legend { font-size: 18px; }
  .wizard-options { grid-template-columns: 1fr; gap: 9px; }
  .wizard-option { padding: 14px; }
  .wizard-footer { gap: 12px; }
  .wizard-footer .button { font-size: 12px; padding: 11px 13px; }
  .toast { bottom: 20px; font-size: 12px; padding: 13px 17px; }
  .desktop-br { display: none; }
}

@media (max-width: 380px) {
  .breadcrumb { max-width: 160px; font-size: 10px; }
  .topbar .button { padding: 9px; font-size: 10px; }
  .hero h1 { font-size: 34px; }
  .hero-meta { gap: 10px; font-size: 10px; }
  .directory-toolbar > input, .directory-toolbar > label { min-width: 155px; }
  .view-switch button { min-width: 28px; padding: 6px 5px; }
  .view-switch button span { display: none; }
  .results-meta { flex-wrap: wrap; gap: 6px; }
  .tabs { gap: 9px; }
  .tab { font-size: 13px; }
  .compare-tray > .text-button { font-size: 10px; }
  .compare-tray > .button { font-size: 11px; }
}

@media (max-width: 620px) {
  .hero .eyebrow, .panel-heading .eyebrow, .legend,
  .city-top, .city-bottom, .source-tag, .modal-top .eyebrow,
  .workspace-strip .eyebrow, .filter-chip > span:last-child,
  .wizard-steps > span, .main-footer { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Les impressions et les exports PDF gardent le dossier, pas la navigation. */
@media print {
  :root { color: #111; background: white; font-size: 11pt; }
  body { background: white; }
  .sidebar, .topbar, .workspace-strip, .compare-tray, .toast,
  .main-footer, .view-switch, .favorite-button, .button-row,
  .offer-actions, .next-step, #mobile-menu { display: none !important; }
  main { max-width: none; padding: 0; margin: 0; }
  .page.active { display: block !important; }
  .hero { display: block; padding: 0 0 20px; }
  .hero h1, .page-heading h1 { font-size: 27pt; }
  .hero-note, .city-card { display: none; }
  .explore-layout, .budget-layout, .dossier-grid { display: block; }
  .project-aside, .budget-summary { position: static; background: white; margin-top: 20px; }
  .offer-card, .route-card, .white-panel, .dossier-section, .source-row { break-inside: avoid; box-shadow: none; border-color: #aaa; margin-bottom: 10px; }
  .cards, .cards.list-view, .cards.grid-view { display: block; }
  .cards.list-view .offer-card { display: block; }
  .cards.list-view .offer-features { margin-top: 15px; }
  .quote-table-wrap { overflow: visible; border-color: #aaa; }
  .quote-table, .comparison-table { min-width: 0; font-size: 9pt; }
  .quote-table th, .quote-table td { padding: 8px; }
  .quote-table th:last-child, .quote-table td:last-child { display: none; }
  .quote-table td p { font-size: 8pt; max-width: none; }
  .page-heading { padding-top: 0; }
  .method-grid { grid-template-columns: 1fr; gap: 10px; }
  .clarity-note { border-color: #aaa; background: white; }
  dialog[open] { position: static; max-height: none; max-width: none; width: 100%; overflow: visible; box-shadow: none; border: none; padding: 0; }
  dialog[open] .modal-top { display: none; }
  body:has(dialog[open]) > .app-shell { display: none; }
  .detail-actions { display: none; }
  .hint, .small-muted { color: #333 !important; }
  a { text-decoration: none; }
  @page { margin: 16mm; }
}

.print-content { display: none; }
.consent-line { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.5; }
.consent-line input { accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
@media print {
  body > .sidebar, body > .app-shell, body > .compare-tray, body > dialog, body > .toast { display: none !important; }
  .print-content { display: block; white-space: pre-wrap; font-family: Arial, sans-serif; color: #111; font-size: 11pt; line-height: 1.6; }
}
